From bc6bc477dcb3407a8e618511fb1c46231b778bd2 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Thu, 29 Aug 2024 02:22:36 +0200 Subject: [PATCH] new structuire update --- configs/config.yaml | 7 +- lollms_core | 2 +- lollms_webui.py | 4 +- requirements.txt | 2 +- .../{index-16bc4928.js => index-0d154971.js} | 356 +++++++++--------- ...{index-b411a75c.css => index-30c8ee0f.css} | 2 +- web/dist/index.html | 4 +- web/src/views/SettingsView.vue | 81 +--- zoos/personalities_zoo | 2 +- 9 files changed, 210 insertions(+), 250 deletions(-) rename web/dist/assets/{index-16bc4928.js => index-0d154971.js} (90%) rename web/dist/assets/{index-b411a75c.css => index-30c8ee0f.css} (99%) diff --git a/configs/config.yaml b/configs/config.yaml index 2ee9cdc7..b15e60b6 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Multimodal Systems Configuration file =========================== -version: 133 +version: 134 binding_name: null model_name: null model_variant: null @@ -105,6 +105,7 @@ active_tts_service: "None" # xtts (offline), openai_tts (API key required), elev active_tti_service: "None" # autosd (offline), dall-e (online) active_stt_service: "None" # whisper (offline), asr (offline or online), openai_whiosper (API key required) active_ttm_service: "None" # musicgen (offline) +active_ttv_service: "None" # cog_video_x (offline) # -------------------- Services -------------------------- # ***************** STT ***************** @@ -204,6 +205,10 @@ comfyui_model: v1-5-pruned-emaonly.ckpt enable_motion_ctrl_service: false motion_ctrl_base_url: http://localhost:7861 + +# ***************** TTV ***************** +cog_video_x_model: "THUDM/CogVideoX-5b" + # ***************** TTT ***************** # ollama service diff --git a/lollms_core b/lollms_core index 62df82e8..9d19668e 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 62df82e8e336b285e0b5e3b34fe1977b15d382f5 +Subproject commit 9d19668e9a57e991d33a44daa5816b436b4ecb51 diff --git a/lollms_webui.py b/lollms_webui.py index 70eb5696..e2213823 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -421,7 +421,7 @@ class LOLLMSWebUI(LOLLMSElfServer): mounted_personalities.append(personality) if self.config.auto_read and len(personality.audio_samples)>0: try: - from lollms.services.xtts.lollms_xtts import LollmsXTTS + from lollms.services.tts.xtts.lollms_xtts import LollmsXTTS if self.tts is None: voice=self.config.xtts_current_voice if voice!="main_voice": @@ -1354,7 +1354,7 @@ class LOLLMSWebUI(LOLLMSElfServer): if self.tts and self.config.auto_read and len(self.personality.audio_samples)>0: try: self.process_data("Generating voice output",MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_STEP_START,client_id=client_id) - from lollms.services.xtts.lollms_xtts import LollmsXTTS + from lollms.services.tts.xtts.lollms_xtts import LollmsXTTS voice=self.config.xtts_current_voice if voice!="main_voice": voices_folder = self.lollms_paths.custom_voices_path diff --git a/requirements.txt b/requirements.txt index 71594ec6..5bce70b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ wheel psutil pytest GitPython -ascii-colors>=0.3.2 +ascii-colors>=0.4.2 beautifulsoup4 packaging diff --git a/web/dist/assets/index-16bc4928.js b/web/dist/assets/index-0d154971.js similarity index 90% rename from web/dist/assets/index-16bc4928.js rename to web/dist/assets/index-0d154971.js index 5adbfc80..41cdcbd6 100644 --- a/web/dist/assets/index-16bc4928.js +++ b/web/dist/assets/index-0d154971.js @@ -1,4 +1,4 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function fb(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const jt={},Go=[],Ps=()=>{},KO=()=>!1,jO=/^on[^a-z]/,uu=t=>jO.test(t),mb=t=>t.startsWith("onUpdate:"),nn=Object.assign,gb=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},QO=Object.prototype.hasOwnProperty,kt=(t,e)=>QO.call(t,e),rt=Array.isArray,Vo=t=>Ca(t)==="[object Map]",xa=t=>Ca(t)==="[object Set]",my=t=>Ca(t)==="[object Date]",XO=t=>Ca(t)==="[object RegExp]",bt=t=>typeof t=="function",en=t=>typeof t=="string",Al=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",Dw=t=>qt(t)&&bt(t.then)&&bt(t.catch),Lw=Object.prototype.toString,Ca=t=>Lw.call(t),ZO=t=>Ca(t).slice(8,-1),Pw=t=>Ca(t)==="[object Object]",bb=t=>en(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pd=fb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},JO=/-(\w)/g,oi=pu(t=>t.replace(JO,(e,n)=>n?n.toUpperCase():"")),eM=/\B([A-Z])/g,ao=pu(t=>t.replace(eM,"-$1").toLowerCase()),_u=pu(t=>t.charAt(0).toUpperCase()+t.slice(1)),_d=pu(t=>t?`on${_u(t)}`:""),Nl=(t,e)=>!Object.is(t,e),zo=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Od=t=>{const e=parseFloat(t);return isNaN(e)?t:e},tM=t=>{const e=en(t)?Number(t):NaN;return isNaN(e)?t:e};let gy;const lg=()=>gy||(gy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ht(t){if(rt(t)){const e={};for(let n=0;n{if(n){const s=n.split(sM);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Ge(t){let e="";if(en(t))e=t;else if(rt(t))for(let n=0;nZr(n,e))}const K=t=>en(t)?t:t==null?"":rt(t)||qt(t)&&(t.toString===Lw||!bt(t.toString))?JSON.stringify(t,Fw,2):String(t),Fw=(t,e)=>e&&e.__v_isRef?Fw(t,e.value):Vo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i])=>(n[`${s} =>`]=i,n),{})}:xa(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!rt(e)&&!Pw(e)?String(e):e;let Xn;class Bw{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xn,!e&&Xn&&(this.index=(Xn.scopes||(Xn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Xn;try{return Xn=this,e()}finally{Xn=n}}}on(){Xn=this}off(){Xn=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},Vw=t=>(t.w&fr)>0,zw=t=>(t.n&fr)>0,pM=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s{(u==="length"||u>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":rt(t)?bb(n)&&a.push(o.get("length")):(a.push(o.get(qr)),Vo(t)&&a.push(o.get(dg)));break;case"delete":rt(t)||(a.push(o.get(qr)),Vo(t)&&a.push(o.get(dg)));break;case"set":Vo(t)&&a.push(o.get(qr));break}if(a.length===1)a[0]&&ug(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ug(yb(c))}}function ug(t,e){const n=rt(t)?t:[...t];for(const s of n)s.computed&&Ey(s);for(const s of n)s.computed||Ey(s)}function Ey(t,e){(t!==Ds||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function hM(t,e){var n;return(n=Md.get(t))==null?void 0:n.get(e)}const fM=fb("__proto__,__v_isRef,__isVue"),$w=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Al)),mM=hu(),gM=hu(!1,!0),bM=hu(!0),EM=hu(!0,!0),yy=yM();function yM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=It(this);for(let r=0,o=this.length;r{t[e]=function(...n){wa();const s=It(this)[e].apply(this,n);return Ra(),s}}),t}function vM(t){const e=It(this);return Yn(e,"has",t),e.hasOwnProperty(t)}function hu(t=!1,e=!1){return function(s,i,r){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&r===(t?e?Zw:Xw:e?Qw:jw).get(s))return s;const o=rt(s);if(!t){if(o&&kt(yy,i))return Reflect.get(yy,i,r);if(i==="hasOwnProperty")return vM}const a=Reflect.get(s,i,r);return(Al(i)?$w.has(i):fM(i))||(t||Yn(s,"get",i),e)?a:pn(a)?o&&bb(i)?a:a.value:qt(a)?t?eR(a):Wn(a):a}}const SM=Yw(),TM=Yw(!0);function Yw(t=!1){return function(n,s,i,r){let o=n[s];if(Zo(o)&&pn(o)&&!pn(i))return!1;if(!t&&(!Id(i)&&!Zo(i)&&(o=It(o),i=It(i)),!rt(n)&&pn(o)&&!pn(i)))return o.value=i,!0;const a=rt(n)&&bb(s)?Number(s)t,fu=t=>Reflect.getPrototypeOf(t);function fc(t,e,n=!1,s=!1){t=t.__v_raw;const i=It(t),r=It(e);n||(e!==r&&Yn(i,"get",e),Yn(i,"get",r));const{has:o}=fu(i),a=s?Sb:n?Tb:Ol;if(o.call(i,e))return a(t.get(e));if(o.call(i,r))return a(t.get(r));t!==i&&t.get(e)}function mc(t,e=!1){const n=this.__v_raw,s=It(n),i=It(t);return e||(t!==i&&Yn(s,"has",t),Yn(s,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function gc(t,e=!1){return t=t.__v_raw,!e&&Yn(It(t),"iterate",qr),Reflect.get(t,"size",t)}function vy(t){t=It(t);const e=It(this);return fu(e).has.call(e,t)||(e.add(t),Ii(e,"add",t,t)),this}function Sy(t,e){e=It(e);const n=It(this),{has:s,get:i}=fu(n);let r=s.call(n,t);r||(t=It(t),r=s.call(n,t));const o=i.call(n,t);return n.set(t,e),r?Nl(e,o)&&Ii(n,"set",t,e):Ii(n,"add",t,e),this}function Ty(t){const e=It(this),{has:n,get:s}=fu(e);let i=n.call(e,t);i||(t=It(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&Ii(e,"delete",t,void 0),r}function xy(){const t=It(this),e=t.size!==0,n=t.clear();return e&&Ii(t,"clear",void 0,void 0),n}function bc(t,e){return function(s,i){const r=this,o=r.__v_raw,a=It(o),c=e?Sb:t?Tb:Ol;return!t&&Yn(a,"iterate",qr),o.forEach((d,u)=>s.call(i,c(d),c(u),r))}}function Ec(t,e,n){return function(...s){const i=this.__v_raw,r=It(i),o=Vo(r),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,d=i[t](...s),u=n?Sb:e?Tb:Ol;return!e&&Yn(r,"iterate",c?dg:qr),{next(){const{value:h,done:f}=d.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Gi(t){return function(...e){return t==="delete"?!1:this}}function NM(){const t={get(r){return fc(this,r)},get size(){return gc(this)},has:mc,add:vy,set:Sy,delete:Ty,clear:xy,forEach:bc(!1,!1)},e={get(r){return fc(this,r,!1,!0)},get size(){return gc(this)},has:mc,add:vy,set:Sy,delete:Ty,clear:xy,forEach:bc(!1,!0)},n={get(r){return fc(this,r,!0)},get size(){return gc(this,!0)},has(r){return mc.call(this,r,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:bc(!0,!1)},s={get(r){return fc(this,r,!0,!0)},get size(){return gc(this,!0)},has(r){return mc.call(this,r,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:bc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Ec(r,!1,!1),n[r]=Ec(r,!0,!1),e[r]=Ec(r,!1,!0),s[r]=Ec(r,!0,!0)}),[t,n,e,s]}const[OM,MM,IM,kM]=NM();function mu(t,e){const n=e?t?kM:IM:t?MM:OM;return(s,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(kt(n,i)&&i in s?n:s,i,r)}const DM={get:mu(!1,!1)},LM={get:mu(!1,!0)},PM={get:mu(!0,!1)},UM={get:mu(!0,!0)},jw=new WeakMap,Qw=new WeakMap,Xw=new WeakMap,Zw=new WeakMap;function FM(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BM(t){return t.__v_skip||!Object.isExtensible(t)?0:FM(ZO(t))}function Wn(t){return Zo(t)?t:gu(t,!1,Ww,DM,jw)}function Jw(t){return gu(t,!1,RM,LM,Qw)}function eR(t){return gu(t,!0,Kw,PM,Xw)}function GM(t){return gu(t,!0,AM,UM,Zw)}function gu(t,e,n,s,i){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=BM(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return i.set(t,a),a}function Ho(t){return Zo(t)?Ho(t.__v_raw):!!(t&&t.__v_isReactive)}function Zo(t){return!!(t&&t.__v_isReadonly)}function Id(t){return!!(t&&t.__v_isShallow)}function tR(t){return Ho(t)||Zo(t)}function It(t){const e=t&&t.__v_raw;return e?It(e):t}function jl(t){return Nd(t,"__v_skip",!0),t}const Ol=t=>qt(t)?Wn(t):t,Tb=t=>qt(t)?eR(t):t;function xb(t){cr&&Ds&&(t=It(t),qw(t.dep||(t.dep=yb())))}function Cb(t,e){t=It(t);const n=t.dep;n&&ug(n)}function pn(t){return!!(t&&t.__v_isRef===!0)}function ct(t){return nR(t,!1)}function VM(t){return nR(t,!0)}function nR(t,e){return pn(t)?t:new zM(t,e)}class zM{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:It(e),this._value=n?e:Ol(e)}get value(){return xb(this),this._value}set value(e){const n=this.__v_isShallow||Id(e)||Zo(e);e=n?e:It(e),Nl(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ol(e),Cb(this))}}function Lt(t){return pn(t)?t.value:t}const HM={get:(t,e,n)=>Lt(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return pn(i)&&!pn(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function sR(t){return Ho(t)?t:new Proxy(t,HM)}class qM{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=e(()=>xb(this),()=>Cb(this));this._get=n,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function $M(t){return new qM(t)}function YM(t){const e=rt(t)?new Array(t.length):{};for(const n in t)e[n]=iR(t,n);return e}class WM{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return hM(It(this._object),this._key)}}class KM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kd(t,e,n){return pn(t)?t:bt(t)?new KM(t):qt(t)&&arguments.length>1?iR(t,e,n):ct(t)}function iR(t,e,n){const s=t[e];return pn(s)?s:new WM(t,e,n)}class jM{constructor(e,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vb(e,()=>{this._dirty||(this._dirty=!0,Cb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=It(this);return xb(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function QM(t,e,n=!1){let s,i;const r=bt(t);return r?(s=t,i=Ps):(s=t.get,i=t.set),new jM(s,i,r||!i,n)}function dr(t,e,n,s){let i;try{i=s?t(...s):t()}catch(r){bu(r,e,n)}return i}function fs(t,e,n,s){if(bt(t)){const r=dr(t,e,n,s);return r&&Dw(r)&&r.catch(o=>{bu(o,e,n)}),r}const i=[];for(let r=0;r>>1;Il(On[s])Zs&&On.splice(e,1)}function eI(t){rt(t)?qo.push(...t):(!wi||!wi.includes(t,t.allowRecurse?Dr+1:Dr))&&qo.push(t),oR()}function Cy(t,e=Ml?Zs+1:0){for(;eIl(n)-Il(s)),Dr=0;Drt.id==null?1/0:t.id,tI=(t,e)=>{const n=Il(t)-Il(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function lR(t){pg=!1,Ml=!0,On.sort(tI);const e=Ps;try{for(Zs=0;Zsen(m)?m.trim():m)),h&&(i=n.map(Od))}let a,c=s[a=_d(e)]||s[a=_d(oi(e))];!c&&r&&(c=s[a=_d(ao(e))]),c&&fs(c,t,6,i);const d=s[a+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,fs(d,t,6,i)}}function cR(t,e,n=!1){const s=e.emitsCache,i=s.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!bt(t)){const c=d=>{const u=cR(d,e,!0);u&&(a=!0,nn(o,u))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!r&&!a?(qt(t)&&s.set(t,null),null):(rt(r)?r.forEach(c=>o[c]=null):nn(o,r),qt(t)&&s.set(t,o),o)}function Eu(t,e){return!t||!uu(e)?!1:(e=e.slice(2).replace(/Once$/,""),kt(t,e[0].toLowerCase()+e.slice(1))||kt(t,ao(e))||kt(t,e))}let xn=null,yu=null;function Dd(t){const e=xn;return xn=t,yu=t&&t.type.__scopeId||null,e}function Ss(t){yu=t}function Ts(){yu=null}function Ie(t,e=xn,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&Fy(-1);const r=Dd(e);let o;try{o=t(...i)}finally{Dd(r),s._d&&Fy(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function hp(t){const{type:e,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:c,emit:d,render:u,renderCache:h,data:f,setupState:m,ctx:_,inheritAttrs:g}=t;let b,E;const y=Dd(t);try{if(n.shapeFlag&4){const S=i||s;b=Qs(u.call(S,S,h,r,m,f,_)),E=c}else{const S=e;b=Qs(S.length>1?S(r,{attrs:c,slots:a,emit:d}):S(r,null)),E=e.props?c:sI(c)}}catch(S){ml.length=0,bu(S,t,1),b=V(ms)}let v=b;if(E&&g!==!1){const S=Object.keys(E),{shapeFlag:R}=v;S.length&&R&7&&(o&&S.some(mb)&&(E=iI(E,o)),v=ki(v,E))}return n.dirs&&(v=ki(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),b=v,Dd(y),b}const sI=t=>{let e;for(const n in t)(n==="class"||n==="style"||uu(n))&&((e||(e={}))[n]=t[n]);return e},iI=(t,e)=>{const n={};for(const s in t)(!mb(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function rI(t,e,n){const{props:s,children:i,component:r}=t,{props:o,children:a,patchFlag:c}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?wy(s,o,d):!!o;if(c&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense;function aI(t,e){e&&e.pendingBranch?rt(t)?e.effects.push(...t):e.effects.push(t):eI(t)}const yc={};function In(t,e,n){return uR(t,e,n)}function uR(t,e,{immediate:n,deep:s,flush:i,onTrack:r,onTrigger:o}=jt){var a;const c=Gw()===((a=bn)==null?void 0:a.scope)?bn:null;let d,u=!1,h=!1;if(pn(t)?(d=()=>t.value,u=Id(t)):Ho(t)?(d=()=>t,s=!0):rt(t)?(h=!0,u=t.some(S=>Ho(S)||Id(S)),d=()=>t.map(S=>{if(pn(S))return S.value;if(Ho(S))return Gr(S);if(bt(S))return dr(S,c,2)})):bt(t)?e?d=()=>dr(t,c,2):d=()=>{if(!(c&&c.isUnmounted))return f&&f(),fs(t,c,3,[m])}:d=Ps,e&&s){const S=d;d=()=>Gr(S())}let f,m=S=>{f=y.onStop=()=>{dr(S,c,4)}},_;if(Pl)if(m=Ps,e?n&&fs(e,c,3,[d(),h?[]:void 0,m]):d(),i==="sync"){const S=tk();_=S.__watcherHandles||(S.__watcherHandles=[])}else return Ps;let g=h?new Array(t.length).fill(yc):yc;const b=()=>{if(y.active)if(e){const S=y.run();(s||u||(h?S.some((R,C)=>Nl(R,g[C])):Nl(S,g)))&&(f&&f(),fs(e,c,3,[S,g===yc?void 0:h&&g[0]===yc?[]:g,m]),g=S)}else y.run()};b.allowRecurse=!!e;let E;i==="sync"?E=b:i==="post"?E=()=>Tn(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),E=()=>Rb(b));const y=new vb(d,E);e?n?b():g=y.run():i==="post"?Tn(y.run.bind(y),c&&c.suspense):y.run();const v=()=>{y.stop(),c&&c.scope&&gb(c.scope.effects,y)};return _&&_.push(v),v}function lI(t,e,n){const s=this.proxy,i=en(t)?t.includes(".")?pR(s,t):()=>s[t]:t.bind(s,s);let r;bt(e)?r=e:(r=e.handler,n=e);const o=bn;ea(this);const a=uR(i,r.bind(s),n);return o?ea(o):$r(),a}function pR(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i{Gr(n,e)});else if(Pw(t))for(const n in t)Gr(t[n],e);return t}function P(t,e){const n=xn;if(n===null)return t;const s=wu(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let r=0;r{t.isMounted=!0}),Aa(()=>{t.isUnmounting=!0}),t}const os=[Function,Array],hR={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:os,onEnter:os,onAfterEnter:os,onEnterCancelled:os,onBeforeLeave:os,onLeave:os,onAfterLeave:os,onLeaveCancelled:os,onBeforeAppear:os,onAppear:os,onAfterAppear:os,onAppearCancelled:os},cI={name:"BaseTransition",props:hR,setup(t,{slots:e}){const n=Db(),s=_R();let i;return()=>{const r=e.default&&Ab(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const g of r)if(g.type!==ms){o=g;break}}const a=It(t),{mode:c}=a;if(s.isLeaving)return fp(o);const d=Ry(o);if(!d)return fp(o);const u=kl(d,a,s,n);Jo(d,u);const h=n.subTree,f=h&&Ry(h);let m=!1;const{getTransitionKey:_}=d.type;if(_){const g=_();i===void 0?i=g:g!==i&&(i=g,m=!0)}if(f&&f.type!==ms&&(!rr(d,f)||m)){const g=kl(f,a,s,n);if(Jo(f,g),c==="out-in")return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},fp(o);c==="in-out"&&d.type!==ms&&(g.delayLeave=(b,E,y)=>{const v=fR(s,f);v[String(f.key)]=f,b._leaveCb=()=>{E(),b._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=y})}return o}}},dI=cI;function fR(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function kl(t,e,n,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:_,onBeforeAppear:g,onAppear:b,onAfterAppear:E,onAppearCancelled:y}=e,v=String(t.key),S=fR(n,t),R=(I,x)=>{I&&fs(I,s,9,x)},C=(I,x)=>{const O=x[1];R(I,x),rt(I)?I.every(B=>B.length<=1)&&O():I.length<=1&&O()},A={mode:r,persisted:o,beforeEnter(I){let x=a;if(!n.isMounted)if(i)x=g||a;else return;I._leaveCb&&I._leaveCb(!0);const O=S[v];O&&rr(t,O)&&O.el._leaveCb&&O.el._leaveCb(),R(x,[I])},enter(I){let x=c,O=d,B=u;if(!n.isMounted)if(i)x=b||c,O=E||d,B=y||u;else return;let H=!1;const te=I._enterCb=k=>{H||(H=!0,k?R(B,[I]):R(O,[I]),A.delayedLeave&&A.delayedLeave(),I._enterCb=void 0)};x?C(x,[I,te]):te()},leave(I,x){const O=String(t.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return x();R(h,[I]);let B=!1;const H=I._leaveCb=te=>{B||(B=!0,x(),te?R(_,[I]):R(m,[I]),I._leaveCb=void 0,S[O]===t&&delete S[O])};S[O]=t,f?C(f,[I,H]):H()},clone(I){return kl(I,e,n,s)}};return A}function fp(t){if(vu(t))return t=ki(t),t.children=null,t}function Ry(t){return vu(t)?t.children?t.children[0]:void 0:t}function Jo(t,e){t.shapeFlag&6&&t.component?Jo(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ab(t,e=!1,n){let s=[],i=0;for(let r=0;r1)for(let r=0;rnn({name:t.name},e,{setup:t}))():t}const $o=t=>!!t.type.__asyncLoader,vu=t=>t.type.__isKeepAlive,uI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Db(),s=n.ctx;if(!s.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,r=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:h}}}=s,f=h("div");s.activate=(y,v,S,R,C)=>{const A=y.component;d(y,v,S,0,a),c(A.vnode,y,v,S,A,a,R,y.slotScopeIds,C),Tn(()=>{A.isDeactivated=!1,A.a&&zo(A.a);const I=y.props&&y.props.onVnodeMounted;I&&ls(I,A.parent,y)},a)},s.deactivate=y=>{const v=y.component;d(y,f,null,1,a),Tn(()=>{v.da&&zo(v.da);const S=y.props&&y.props.onVnodeUnmounted;S&&ls(S,v.parent,y),v.isDeactivated=!0},a)};function m(y){mp(y),u(y,n,a,!0)}function _(y){i.forEach((v,S)=>{const R=Eg(v.type);R&&(!y||!y(R))&&g(S)})}function g(y){const v=i.get(y);!o||!rr(v,o)?m(v):o&&mp(o),i.delete(y),r.delete(y)}In(()=>[t.include,t.exclude],([y,v])=>{y&&_(S=>ll(y,S)),v&&_(S=>!ll(v,S))},{flush:"post",deep:!0});let b=null;const E=()=>{b!=null&&i.set(b,gp(n.subTree))};return ci(E),Ql(E),Aa(()=>{i.forEach(y=>{const{subTree:v,suspense:S}=n,R=gp(v);if(y.type===R.type&&y.key===R.key){mp(R);const C=R.component.da;C&&Tn(C,S);return}m(y)})}),()=>{if(b=null,!e.default)return null;const y=e.default(),v=y[0];if(y.length>1)return o=null,y;if(!Ll(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let S=gp(v);const R=S.type,C=Eg($o(S)?S.type.__asyncResolved||{}:R),{include:A,exclude:I,max:x}=t;if(A&&(!C||!ll(A,C))||I&&C&&ll(I,C))return o=S,v;const O=S.key==null?R:S.key,B=i.get(O);return S.el&&(S=ki(S),v.shapeFlag&128&&(v.ssContent=S)),b=O,B?(S.el=B.el,S.component=B.component,S.transition&&Jo(S,S.transition),S.shapeFlag|=512,r.delete(O),r.add(O)):(r.add(O),x&&r.size>parseInt(x,10)&&g(r.values().next().value)),S.shapeFlag|=256,o=S,dR(v.type)?v:S}}},pI=uI;function ll(t,e){return rt(t)?t.some(n=>ll(n,e)):en(t)?t.split(",").includes(e):XO(t)?t.test(e):!1}function _I(t,e){mR(t,"a",e)}function hI(t,e){mR(t,"da",e)}function mR(t,e,n=bn){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Su(e,s,n),n){let i=n.parent;for(;i&&i.parent;)vu(i.parent.vnode)&&fI(s,e,n,i),i=i.parent}}function fI(t,e,n,s){const i=Su(e,t,s,!0);gR(()=>{gb(s[e],i)},n)}function mp(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function gp(t){return t.shapeFlag&128?t.ssContent:t}function Su(t,e,n=bn,s=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;wa(),ea(n);const a=fs(e,n,t,o);return $r(),Ra(),a});return s?i.unshift(r):i.push(r),r}}const Pi=t=>(e,n=bn)=>(!Pl||t==="sp")&&Su(t,(...s)=>e(...s),n),mI=Pi("bm"),ci=Pi("m"),gI=Pi("bu"),Ql=Pi("u"),Aa=Pi("bum"),gR=Pi("um"),bI=Pi("sp"),EI=Pi("rtg"),yI=Pi("rtc");function vI(t,e=bn){Su("ec",t,e)}const Nb="components";function tt(t,e){return ER(Nb,t,!0,e)||t}const bR=Symbol.for("v-ndc");function Tu(t){return en(t)?ER(Nb,t,!1)||t:t||bR}function ER(t,e,n=!0,s=!1){const i=xn||bn;if(i){const r=i.type;if(t===Nb){const a=Eg(r,!1);if(a&&(a===e||a===oi(e)||a===_u(oi(e))))return r}const o=Ay(i[t]||r[t],e)||Ay(i.appContext[t],e);return!o&&s?r:o}}function Ay(t,e){return t&&(t[e]||t[oi(e)]||t[_u(oi(e))])}function Ke(t,e,n,s){let i;const r=n&&n[s];if(rt(t)||en(t)){i=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,r&&r[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,c=o.length;aLl(e)?!(e.type===ms||e.type===Pe&&!yR(e.children)):!0)?t:null}function SI(t,e){const n={};for(const s in t)n[e&&/[A-Z]/.test(s)?`on:${s}`:_d(s)]=t[s];return n}const _g=t=>t?IR(t)?wu(t)||t.proxy:_g(t.parent):null,hl=nn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_g(t.parent),$root:t=>_g(t.root),$emit:t=>t.emit,$options:t=>Ob(t),$forceUpdate:t=>t.f||(t.f=()=>Rb(t.update)),$nextTick:t=>t.n||(t.n=Le.bind(t.proxy)),$watch:t=>lI.bind(t)}),bp=(t,e)=>t!==jt&&!t.__isScriptSetup&&kt(t,e),TI={get({_:t},e){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:c}=t;let d;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(bp(s,e))return o[e]=1,s[e];if(i!==jt&&kt(i,e))return o[e]=2,i[e];if((d=t.propsOptions[0])&&kt(d,e))return o[e]=3,r[e];if(n!==jt&&kt(n,e))return o[e]=4,n[e];hg&&(o[e]=0)}}const u=hl[e];let h,f;if(u)return e==="$attrs"&&Yn(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==jt&&kt(n,e))return o[e]=4,n[e];if(f=c.config.globalProperties,kt(f,e))return f[e]},set({_:t},e,n){const{data:s,setupState:i,ctx:r}=t;return bp(i,e)?(i[e]=n,!0):s!==jt&&kt(s,e)?(s[e]=n,!0):kt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||t!==jt&&kt(t,o)||bp(e,o)||(a=r[0])&&kt(a,o)||kt(s,o)||kt(hl,o)||kt(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:kt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ny(t){return rt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let hg=!0;function xI(t){const e=Ob(t),n=t.proxy,s=t.ctx;hg=!1,e.beforeCreate&&Oy(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:o,watch:a,provide:c,inject:d,created:u,beforeMount:h,mounted:f,beforeUpdate:m,updated:_,activated:g,deactivated:b,beforeDestroy:E,beforeUnmount:y,destroyed:v,unmounted:S,render:R,renderTracked:C,renderTriggered:A,errorCaptured:I,serverPrefetch:x,expose:O,inheritAttrs:B,components:H,directives:te,filters:k}=e;if(d&&CI(d,s,null),o)for(const U in o){const W=o[U];bt(W)&&(s[U]=W.bind(n))}if(i){const U=i.call(n,n);qt(U)&&(t.data=Wn(U))}if(hg=!0,r)for(const U in r){const W=r[U],ne=bt(W)?W.bind(n,n):bt(W.get)?W.get.bind(n,n):Ps,le=!bt(W)&&bt(W.set)?W.set.bind(n):Ps,me=Je({get:ne,set:le});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>me.value,set:Se=>me.value=Se})}if(a)for(const U in a)vR(a[U],s,n,U);if(c){const U=bt(c)?c.call(n):c;Reflect.ownKeys(U).forEach(W=>{Yo(W,U[W])})}u&&Oy(u,t,"c");function q(U,W){rt(W)?W.forEach(ne=>U(ne.bind(n))):W&&U(W.bind(n))}if(q(mI,h),q(ci,f),q(gI,m),q(Ql,_),q(_I,g),q(hI,b),q(vI,I),q(yI,C),q(EI,A),q(Aa,y),q(gR,S),q(bI,x),rt(O))if(O.length){const U=t.exposed||(t.exposed={});O.forEach(W=>{Object.defineProperty(U,W,{get:()=>n[W],set:ne=>n[W]=ne})})}else t.exposed||(t.exposed={});R&&t.render===Ps&&(t.render=R),B!=null&&(t.inheritAttrs=B),H&&(t.components=H),te&&(t.directives=te)}function CI(t,e,n=Ps){rt(t)&&(t=fg(t));for(const s in t){const i=t[s];let r;qt(i)?"default"in i?r=Zn(i.from||s,i.default,!0):r=Zn(i.from||s):r=Zn(i),pn(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function Oy(t,e,n){fs(rt(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function vR(t,e,n,s){const i=s.includes(".")?pR(n,s):()=>n[s];if(en(t)){const r=e[t];bt(r)&&In(i,r)}else if(bt(t))In(i,t.bind(n));else if(qt(t))if(rt(t))t.forEach(r=>vR(r,e,n,s));else{const r=bt(t.handler)?t.handler.bind(n):e[t.handler];bt(r)&&In(i,r,t)}}function Ob(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let c;return a?c=a:!i.length&&!n&&!s?c=e:(c={},i.length&&i.forEach(d=>Ld(c,d,o,!0)),Ld(c,e,o)),qt(e)&&r.set(e,c),c}function Ld(t,e,n,s=!1){const{mixins:i,extends:r}=e;r&&Ld(t,r,n,!0),i&&i.forEach(o=>Ld(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=wI[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const wI={data:My,props:Iy,emits:Iy,methods:cl,computed:cl,beforeCreate:Ln,created:Ln,beforeMount:Ln,mounted:Ln,beforeUpdate:Ln,updated:Ln,beforeDestroy:Ln,beforeUnmount:Ln,destroyed:Ln,unmounted:Ln,activated:Ln,deactivated:Ln,errorCaptured:Ln,serverPrefetch:Ln,components:cl,directives:cl,watch:AI,provide:My,inject:RI};function My(t,e){return e?t?function(){return nn(bt(t)?t.call(this,this):t,bt(e)?e.call(this,this):e)}:e:t}function RI(t,e){return cl(fg(t),fg(e))}function fg(t){if(rt(t)){const e={};for(let n=0;n1)return n&&bt(e)?e.call(s&&s.proxy):e}}function MI(t,e,n,s=!1){const i={},r={};Nd(r,Cu,1),t.propsDefaults=Object.create(null),TR(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=s?i:Jw(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function II(t,e,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=It(i),[c]=t.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h{c=!0;const[f,m]=xR(h,e,!0);nn(o,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!c)return qt(t)&&s.set(t,Go),Go;if(rt(r))for(let u=0;u-1,m[1]=g<0||_-1||kt(m,"default"))&&a.push(h)}}}const d=[o,a];return qt(t)&&s.set(t,d),d}function ky(t){return t[0]!=="$"}function Dy(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Ly(t,e){return Dy(t)===Dy(e)}function Py(t,e){return rt(e)?e.findIndex(n=>Ly(n,t)):bt(e)&&Ly(e,t)?0:-1}const CR=t=>t[0]==="_"||t==="$stable",Mb=t=>rt(t)?t.map(Qs):[Qs(t)],kI=(t,e,n)=>{if(e._n)return e;const s=Ie((...i)=>Mb(e(...i)),n);return s._c=!1,s},wR=(t,e,n)=>{const s=t._ctx;for(const i in t){if(CR(i))continue;const r=t[i];if(bt(r))e[i]=kI(i,r,s);else if(r!=null){const o=Mb(r);e[i]=()=>o}}},RR=(t,e)=>{const n=Mb(e);t.slots.default=()=>n},DI=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=It(e),Nd(e,"_",n)):wR(e,t.slots={})}else t.slots={},e&&RR(t,e);Nd(t.slots,Cu,1)},LI=(t,e,n)=>{const{vnode:s,slots:i}=t;let r=!0,o=jt;if(s.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:(nn(i,e),!n&&a===1&&delete i._):(r=!e.$stable,wR(e,i)),o=e}else e&&(RR(t,e),o={default:1});if(r)for(const a in i)!CR(a)&&!(a in o)&&delete i[a]};function gg(t,e,n,s,i=!1){if(rt(t)){t.forEach((f,m)=>gg(f,e&&(rt(e)?e[m]:e),n,s,i));return}if($o(s)&&!i)return;const r=s.shapeFlag&4?wu(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:c}=t,d=e&&e.r,u=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(en(d)?(u[d]=null,kt(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),bt(c))dr(c,a,12,[o,u]);else{const f=en(c),m=pn(c);if(f||m){const _=()=>{if(t.f){const g=f?kt(h,c)?h[c]:u[c]:c.value;i?rt(g)&&gb(g,r):rt(g)?g.includes(r)||g.push(r):f?(u[c]=[r],kt(h,c)&&(h[c]=u[c])):(c.value=[r],t.k&&(u[t.k]=c.value))}else f?(u[c]=o,kt(h,c)&&(h[c]=o)):m&&(c.value=o,t.k&&(u[t.k]=o))};o?(_.id=-1,Tn(_,n)):_()}}}const Tn=aI;function PI(t){return UI(t)}function UI(t,e){const n=lg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:c,setText:d,setElementText:u,parentNode:h,nextSibling:f,setScopeId:m=Ps,insertStaticContent:_}=t,g=(N,z,Y,ce=null,re=null,xe=null,Ne=!1,ie=null,Re=!!z.dynamicChildren)=>{if(N===z)return;N&&!rr(N,z)&&(ce=Z(N),Se(N,re,xe,!0),N=null),z.patchFlag===-2&&(Re=!1,z.dynamicChildren=null);const{type:ge,ref:De,shapeFlag:L}=z;switch(ge){case xu:b(N,z,Y,ce);break;case ms:E(N,z,Y,ce);break;case hd:N==null&&y(z,Y,ce,Ne);break;case Pe:H(N,z,Y,ce,re,xe,Ne,ie,Re);break;default:L&1?R(N,z,Y,ce,re,xe,Ne,ie,Re):L&6?te(N,z,Y,ce,re,xe,Ne,ie,Re):(L&64||L&128)&&ge.process(N,z,Y,ce,re,xe,Ne,ie,Re,_e)}De!=null&&re&&gg(De,N&&N.ref,xe,z||N,!z)},b=(N,z,Y,ce)=>{if(N==null)s(z.el=a(z.children),Y,ce);else{const re=z.el=N.el;z.children!==N.children&&d(re,z.children)}},E=(N,z,Y,ce)=>{N==null?s(z.el=c(z.children||""),Y,ce):z.el=N.el},y=(N,z,Y,ce)=>{[N.el,N.anchor]=_(N.children,z,Y,ce,N.el,N.anchor)},v=({el:N,anchor:z},Y,ce)=>{let re;for(;N&&N!==z;)re=f(N),s(N,Y,ce),N=re;s(z,Y,ce)},S=({el:N,anchor:z})=>{let Y;for(;N&&N!==z;)Y=f(N),i(N),N=Y;i(z)},R=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{Ne=Ne||z.type==="svg",N==null?C(z,Y,ce,re,xe,Ne,ie,Re):x(N,z,re,xe,Ne,ie,Re)},C=(N,z,Y,ce,re,xe,Ne,ie)=>{let Re,ge;const{type:De,props:L,shapeFlag:M,transition:Q,dirs:ye}=N;if(Re=N.el=o(N.type,xe,L&&L.is,L),M&8?u(Re,N.children):M&16&&I(N.children,Re,null,ce,re,xe&&De!=="foreignObject",Ne,ie),ye&&Sr(N,null,ce,"created"),A(Re,N,N.scopeId,Ne,ce),L){for(const se in L)se!=="value"&&!pd(se)&&r(Re,se,null,L[se],xe,N.children,ce,re,ke);"value"in L&&r(Re,"value",null,L.value),(ge=L.onVnodeBeforeMount)&&ls(ge,ce,N)}ye&&Sr(N,null,ce,"beforeMount");const X=(!re||re&&!re.pendingBranch)&&Q&&!Q.persisted;X&&Q.beforeEnter(Re),s(Re,z,Y),((ge=L&&L.onVnodeMounted)||X||ye)&&Tn(()=>{ge&&ls(ge,ce,N),X&&Q.enter(Re),ye&&Sr(N,null,ce,"mounted")},re)},A=(N,z,Y,ce,re)=>{if(Y&&m(N,Y),ce)for(let xe=0;xe{for(let ge=Re;ge{const ie=z.el=N.el;let{patchFlag:Re,dynamicChildren:ge,dirs:De}=z;Re|=N.patchFlag&16;const L=N.props||jt,M=z.props||jt;let Q;Y&&Tr(Y,!1),(Q=M.onVnodeBeforeUpdate)&&ls(Q,Y,z,N),De&&Sr(z,N,Y,"beforeUpdate"),Y&&Tr(Y,!0);const ye=re&&z.type!=="foreignObject";if(ge?O(N.dynamicChildren,ge,ie,Y,ce,ye,xe):Ne||W(N,z,ie,null,Y,ce,ye,xe,!1),Re>0){if(Re&16)B(ie,z,L,M,Y,ce,re);else if(Re&2&&L.class!==M.class&&r(ie,"class",null,M.class,re),Re&4&&r(ie,"style",L.style,M.style,re),Re&8){const X=z.dynamicProps;for(let se=0;se{Q&&ls(Q,Y,z,N),De&&Sr(z,N,Y,"updated")},ce)},O=(N,z,Y,ce,re,xe,Ne)=>{for(let ie=0;ie{if(Y!==ce){if(Y!==jt)for(const ie in Y)!pd(ie)&&!(ie in ce)&&r(N,ie,Y[ie],null,Ne,z.children,re,xe,ke);for(const ie in ce){if(pd(ie))continue;const Re=ce[ie],ge=Y[ie];Re!==ge&&ie!=="value"&&r(N,ie,ge,Re,Ne,z.children,re,xe,ke)}"value"in ce&&r(N,"value",Y.value,ce.value)}},H=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{const ge=z.el=N?N.el:a(""),De=z.anchor=N?N.anchor:a("");let{patchFlag:L,dynamicChildren:M,slotScopeIds:Q}=z;Q&&(ie=ie?ie.concat(Q):Q),N==null?(s(ge,Y,ce),s(De,Y,ce),I(z.children,Y,De,re,xe,Ne,ie,Re)):L>0&&L&64&&M&&N.dynamicChildren?(O(N.dynamicChildren,M,Y,re,xe,Ne,ie),(z.key!=null||re&&z===re.subTree)&&Ib(N,z,!0)):W(N,z,Y,De,re,xe,Ne,ie,Re)},te=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{z.slotScopeIds=ie,N==null?z.shapeFlag&512?re.ctx.activate(z,Y,ce,Ne,Re):k(z,Y,ce,re,xe,Ne,Re):$(N,z,Re)},k=(N,z,Y,ce,re,xe,Ne)=>{const ie=N.component=KI(N,ce,re);if(vu(N)&&(ie.ctx.renderer=_e),jI(ie),ie.asyncDep){if(re&&re.registerDep(ie,q),!N.el){const Re=ie.subTree=V(ms);E(null,Re,z,Y)}return}q(ie,N,z,Y,re,xe,Ne)},$=(N,z,Y)=>{const ce=z.component=N.component;if(rI(N,z,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,z,Y);return}else ce.next=z,JM(ce.update),ce.update();else z.el=N.el,ce.vnode=z},q=(N,z,Y,ce,re,xe,Ne)=>{const ie=()=>{if(N.isMounted){let{next:De,bu:L,u:M,parent:Q,vnode:ye}=N,X=De,se;Tr(N,!1),De?(De.el=ye.el,U(N,De,Ne)):De=ye,L&&zo(L),(se=De.props&&De.props.onVnodeBeforeUpdate)&&ls(se,Q,De,ye),Tr(N,!0);const Ae=hp(N),Ce=N.subTree;N.subTree=Ae,g(Ce,Ae,h(Ce.el),Z(Ce),N,re,xe),De.el=Ae.el,X===null&&oI(N,Ae.el),M&&Tn(M,re),(se=De.props&&De.props.onVnodeUpdated)&&Tn(()=>ls(se,Q,De,ye),re)}else{let De;const{el:L,props:M}=z,{bm:Q,m:ye,parent:X}=N,se=$o(z);if(Tr(N,!1),Q&&zo(Q),!se&&(De=M&&M.onVnodeBeforeMount)&&ls(De,X,z),Tr(N,!0),L&&Ue){const Ae=()=>{N.subTree=hp(N),Ue(L,N.subTree,N,re,null)};se?z.type.__asyncLoader().then(()=>!N.isUnmounted&&Ae()):Ae()}else{const Ae=N.subTree=hp(N);g(null,Ae,Y,ce,N,re,xe),z.el=Ae.el}if(ye&&Tn(ye,re),!se&&(De=M&&M.onVnodeMounted)){const Ae=z;Tn(()=>ls(De,X,Ae),re)}(z.shapeFlag&256||X&&$o(X.vnode)&&X.vnode.shapeFlag&256)&&N.a&&Tn(N.a,re),N.isMounted=!0,z=Y=ce=null}},Re=N.effect=new vb(ie,()=>Rb(ge),N.scope),ge=N.update=()=>Re.run();ge.id=N.uid,Tr(N,!0),ge()},U=(N,z,Y)=>{z.component=N;const ce=N.vnode.props;N.vnode=z,N.next=null,II(N,z.props,ce,Y),LI(N,z.children,Y),wa(),Cy(),Ra()},W=(N,z,Y,ce,re,xe,Ne,ie,Re=!1)=>{const ge=N&&N.children,De=N?N.shapeFlag:0,L=z.children,{patchFlag:M,shapeFlag:Q}=z;if(M>0){if(M&128){le(ge,L,Y,ce,re,xe,Ne,ie,Re);return}else if(M&256){ne(ge,L,Y,ce,re,xe,Ne,ie,Re);return}}Q&8?(De&16&&ke(ge,re,xe),L!==ge&&u(Y,L)):De&16?Q&16?le(ge,L,Y,ce,re,xe,Ne,ie,Re):ke(ge,re,xe,!0):(De&8&&u(Y,""),Q&16&&I(L,Y,ce,re,xe,Ne,ie,Re))},ne=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{N=N||Go,z=z||Go;const ge=N.length,De=z.length,L=Math.min(ge,De);let M;for(M=0;MDe?ke(N,re,xe,!0,!1,L):I(z,Y,ce,re,xe,Ne,ie,Re,L)},le=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{let ge=0;const De=z.length;let L=N.length-1,M=De-1;for(;ge<=L&&ge<=M;){const Q=N[ge],ye=z[ge]=Re?Xi(z[ge]):Qs(z[ge]);if(rr(Q,ye))g(Q,ye,Y,null,re,xe,Ne,ie,Re);else break;ge++}for(;ge<=L&&ge<=M;){const Q=N[L],ye=z[M]=Re?Xi(z[M]):Qs(z[M]);if(rr(Q,ye))g(Q,ye,Y,null,re,xe,Ne,ie,Re);else break;L--,M--}if(ge>L){if(ge<=M){const Q=M+1,ye=QM)for(;ge<=L;)Se(N[ge],re,xe,!0),ge++;else{const Q=ge,ye=ge,X=new Map;for(ge=ye;ge<=M;ge++){const pt=z[ge]=Re?Xi(z[ge]):Qs(z[ge]);pt.key!=null&&X.set(pt.key,ge)}let se,Ae=0;const Ce=M-ye+1;let Fe=!1,Ze=0;const ft=new Array(Ce);for(ge=0;ge=Ce){Se(pt,re,xe,!0);continue}let st;if(pt.key!=null)st=X.get(pt.key);else for(se=ye;se<=M;se++)if(ft[se-ye]===0&&rr(pt,z[se])){st=se;break}st===void 0?Se(pt,re,xe,!0):(ft[st-ye]=ge+1,st>=Ze?Ze=st:Fe=!0,g(pt,z[st],Y,null,re,xe,Ne,ie,Re),Ae++)}const Be=Fe?FI(ft):Go;for(se=Be.length-1,ge=Ce-1;ge>=0;ge--){const pt=ye+ge,st=z[pt],Ye=pt+1{const{el:xe,type:Ne,transition:ie,children:Re,shapeFlag:ge}=N;if(ge&6){me(N.component.subTree,z,Y,ce);return}if(ge&128){N.suspense.move(z,Y,ce);return}if(ge&64){Ne.move(N,z,Y,_e);return}if(Ne===Pe){s(xe,z,Y);for(let L=0;Lie.enter(xe),re);else{const{leave:L,delayLeave:M,afterLeave:Q}=ie,ye=()=>s(xe,z,Y),X=()=>{L(xe,()=>{ye(),Q&&Q()})};M?M(xe,ye,X):X()}else s(xe,z,Y)},Se=(N,z,Y,ce=!1,re=!1)=>{const{type:xe,props:Ne,ref:ie,children:Re,dynamicChildren:ge,shapeFlag:De,patchFlag:L,dirs:M}=N;if(ie!=null&&gg(ie,null,Y,N,!0),De&256){z.ctx.deactivate(N);return}const Q=De&1&&M,ye=!$o(N);let X;if(ye&&(X=Ne&&Ne.onVnodeBeforeUnmount)&&ls(X,z,N),De&6)Me(N.component,Y,ce);else{if(De&128){N.suspense.unmount(Y,ce);return}Q&&Sr(N,null,z,"beforeUnmount"),De&64?N.type.remove(N,z,Y,re,_e,ce):ge&&(xe!==Pe||L>0&&L&64)?ke(ge,z,Y,!1,!0):(xe===Pe&&L&384||!re&&De&16)&&ke(Re,z,Y),ce&&de(N)}(ye&&(X=Ne&&Ne.onVnodeUnmounted)||Q)&&Tn(()=>{X&&ls(X,z,N),Q&&Sr(N,null,z,"unmounted")},Y)},de=N=>{const{type:z,el:Y,anchor:ce,transition:re}=N;if(z===Pe){Ee(Y,ce);return}if(z===hd){S(N);return}const xe=()=>{i(Y),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(N.shapeFlag&1&&re&&!re.persisted){const{leave:Ne,delayLeave:ie}=re,Re=()=>Ne(Y,xe);ie?ie(N.el,xe,Re):Re()}else xe()},Ee=(N,z)=>{let Y;for(;N!==z;)Y=f(N),i(N),N=Y;i(z)},Me=(N,z,Y)=>{const{bum:ce,scope:re,update:xe,subTree:Ne,um:ie}=N;ce&&zo(ce),re.stop(),xe&&(xe.active=!1,Se(Ne,N,z,Y)),ie&&Tn(ie,z),Tn(()=>{N.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},ke=(N,z,Y,ce=!1,re=!1,xe=0)=>{for(let Ne=xe;NeN.shapeFlag&6?Z(N.component.subTree):N.shapeFlag&128?N.suspense.next():f(N.anchor||N.el),he=(N,z,Y)=>{N==null?z._vnode&&Se(z._vnode,null,null,!0):g(z._vnode||null,N,z,null,null,null,Y),Cy(),aR(),z._vnode=N},_e={p:g,um:Se,m:me,r:de,mt:k,mc:I,pc:W,pbc:O,n:Z,o:t};let we,Ue;return e&&([we,Ue]=e(_e)),{render:he,hydrate:we,createApp:OI(he,we)}}function Tr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Ib(t,e,n=!1){const s=t.children,i=e.children;if(rt(s)&&rt(i))for(let r=0;r>1,t[n[a]]0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}const BI=t=>t.__isTeleport,fl=t=>t&&(t.disabled||t.disabled===""),Uy=t=>typeof SVGElement<"u"&&t instanceof SVGElement,bg=(t,e)=>{const n=t&&t.to;return en(n)?e?e(n):null:n},GI={__isTeleport:!0,process(t,e,n,s,i,r,o,a,c,d){const{mc:u,pc:h,pbc:f,o:{insert:m,querySelector:_,createText:g,createComment:b}}=d,E=fl(e.props);let{shapeFlag:y,children:v,dynamicChildren:S}=e;if(t==null){const R=e.el=g(""),C=e.anchor=g("");m(R,n,s),m(C,n,s);const A=e.target=bg(e.props,_),I=e.targetAnchor=g("");A&&(m(I,A),o=o||Uy(A));const x=(O,B)=>{y&16&&u(v,O,B,i,r,o,a,c)};E?x(n,C):A&&x(A,I)}else{e.el=t.el;const R=e.anchor=t.anchor,C=e.target=t.target,A=e.targetAnchor=t.targetAnchor,I=fl(t.props),x=I?n:C,O=I?R:A;if(o=o||Uy(C),S?(f(t.dynamicChildren,S,x,i,r,o,a),Ib(t,e,!0)):c||h(t,e,x,O,i,r,o,a,!1),E)I||vc(e,n,R,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const B=e.target=bg(e.props,_);B&&vc(e,B,null,d,0)}else I&&vc(e,C,A,d,1)}AR(e)},remove(t,e,n,s,{um:i,o:{remove:r}},o){const{shapeFlag:a,children:c,anchor:d,targetAnchor:u,target:h,props:f}=t;if(h&&r(u),(o||!fl(f))&&(r(d),a&16))for(let m=0;m0?Ls||Go:null,HI(),Dl>0&&Ls&&Ls.push(t),t}function w(t,e,n,s,i,r){return NR(l(t,e,n,s,i,r,!0))}function dt(t,e,n,s,i){return NR(V(t,e,n,s,i,!0))}function Ll(t){return t?t.__v_isVNode===!0:!1}function rr(t,e){return t.type===e.type&&t.key===e.key}const Cu="__vInternal",OR=({key:t})=>t??null,fd=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?en(t)||pn(t)||bt(t)?{i:xn,r:t,k:e,f:!!n}:t:null);function l(t,e=null,n=null,s=0,i=null,r=t===Pe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&OR(e),ref:e&&fd(e),scopeId:yu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xn};return a?(kb(c,n),r&128&&t.normalize(c)):n&&(c.shapeFlag|=en(n)?8:16),Dl>0&&!o&&Ls&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ls.push(c),c}const V=qI;function qI(t,e=null,n=null,s=0,i=null,r=!1){if((!t||t===bR)&&(t=ms),Ll(t)){const a=ki(t,e,!0);return n&&kb(a,n),Dl>0&&!r&&Ls&&(a.shapeFlag&6?Ls[Ls.indexOf(t)]=a:Ls.push(a)),a.patchFlag|=-2,a}if(JI(t)&&(t=t.__vccOpts),e){e=$I(e);let{class:a,style:c}=e;a&&!en(a)&&(e.class=Ge(a)),qt(c)&&(tR(c)&&!rt(c)&&(c=nn({},c)),e.style=Ht(c))}const o=en(t)?1:dR(t)?128:BI(t)?64:qt(t)?4:bt(t)?2:0;return l(t,e,n,s,i,o,r,!0)}function $I(t){return t?tR(t)||Cu in t?nn({},t):t:null}function ki(t,e,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=t,a=e?MR(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&OR(a),ref:e&&e.ref?n&&i?rt(i)?i.concat(fd(e)):[i,fd(e)]:fd(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Pe?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ki(t.ssContent),ssFallback:t.ssFallback&&ki(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function et(t=" ",e=0){return V(xu,null,t,e)}function Na(t,e){const n=V(hd,null,t);return n.staticCount=e,n}function G(t="",e=!1){return e?(T(),dt(ms,null,t)):V(ms,null,t)}function Qs(t){return t==null||typeof t=="boolean"?V(ms):rt(t)?V(Pe,null,t.slice()):typeof t=="object"?Xi(t):V(xu,null,String(t))}function Xi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ki(t)}function kb(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(rt(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),kb(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Cu in e)?e._ctx=xn:i===3&&xn&&(xn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else bt(e)?(e={default:e,_ctx:xn},n=32):(e=String(e),s&64?(n=16,e=[et(e)]):n=8);t.children=e,t.shapeFlag|=n}function MR(...t){const e={};for(let n=0;nbn||xn;let Lb,_o,By="__VUE_INSTANCE_SETTERS__";(_o=lg()[By])||(_o=lg()[By]=[]),_o.push(t=>bn=t),Lb=t=>{_o.length>1?_o.forEach(e=>e(t)):_o[0](t)};const ea=t=>{Lb(t),t.scope.on()},$r=()=>{bn&&bn.scope.off(),Lb(null)};function IR(t){return t.vnode.shapeFlag&4}let Pl=!1;function jI(t,e=!1){Pl=e;const{props:n,children:s}=t.vnode,i=IR(t);MI(t,n,i,e),DI(t,s);const r=i?QI(t,e):void 0;return Pl=!1,r}function QI(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=jl(new Proxy(t.ctx,TI));const{setup:s}=n;if(s){const i=t.setupContext=s.length>1?ZI(t):null;ea(t),wa();const r=dr(s,t,0,[t.props,i]);if(Ra(),$r(),Dw(r)){if(r.then($r,$r),e)return r.then(o=>{Gy(t,o,e)}).catch(o=>{bu(o,t,0)});t.asyncDep=r}else Gy(t,r,e)}else kR(t,e)}function Gy(t,e,n){bt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=sR(e)),kR(t,n)}let Vy;function kR(t,e,n){const s=t.type;if(!t.render){if(!e&&Vy&&!s.render){const i=s.template||Ob(t).template;if(i){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:c}=s,d=nn(nn({isCustomElement:r,delimiters:a},o),c);s.render=Vy(i,d)}}t.render=s.render||Ps}ea(t),wa(),xI(t),Ra(),$r()}function XI(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Yn(t,"get","$attrs"),e[n]}}))}function ZI(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return XI(t)},slots:t.slots,emit:t.emit,expose:e}}function wu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(sR(jl(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in hl)return hl[n](t)},has(e,n){return n in e||n in hl}}))}function Eg(t,e=!0){return bt(t)?t.displayName||t.name:t.name||e&&t.__name}function JI(t){return bt(t)&&"__vccOpts"in t}const Je=(t,e)=>QM(t,e,Pl);function Pb(t,e,n){const s=arguments.length;return s===2?qt(e)&&!rt(e)?Ll(e)?V(t,null,[e]):V(t,e):V(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ll(n)&&(n=[n]),V(t,e,n))}const ek=Symbol.for("v-scx"),tk=()=>Zn(ek),nk="3.3.4",sk="http://www.w3.org/2000/svg",Lr=typeof document<"u"?document:null,zy=Lr&&Lr.createElement("template"),ik={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e?Lr.createElementNS(sk,t):Lr.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>Lr.createTextNode(t),createComment:t=>Lr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Lr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,r){const o=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{zy.innerHTML=s?`${t}`:t;const a=zy.content;if(s){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function rk(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function ok(t,e,n){const s=t.style,i=en(n);if(n&&!i){if(e&&!en(e))for(const r in e)n[r]==null&&yg(s,r,"");for(const r in n)yg(s,r,n[r])}else{const r=s.display;i?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}const Hy=/\s*!important$/;function yg(t,e,n){if(rt(n))n.forEach(s=>yg(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=ak(t,e);Hy.test(n)?t.setProperty(ao(s),n.replace(Hy,""),"important"):t[s]=n}}const qy=["Webkit","Moz","ms"],Ep={};function ak(t,e){const n=Ep[e];if(n)return n;let s=oi(e);if(s!=="filter"&&s in t)return Ep[e]=s;s=_u(s);for(let i=0;iyp||(_k.then(()=>yp=0),yp=Date.now());function fk(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;fs(mk(s,n.value),e,5,[s])};return n.value=t,n.attached=hk(),n}function mk(t,e){if(rt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Wy=/^on[a-z]/,gk=(t,e,n,s,i=!1,r,o,a,c)=>{e==="class"?rk(t,s,i):e==="style"?ok(t,n,s):uu(e)?mb(e)||uk(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):bk(t,e,s,i))?ck(t,e,s,r,o,a,c):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),lk(t,e,s,i))};function bk(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&Wy.test(e)&&bt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Wy.test(e)&&en(n)?!1:e in t}const Vi="transition",Wa="animation",Us=(t,{slots:e})=>Pb(dI,LR(t),e);Us.displayName="Transition";const DR={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},Ek=Us.props=nn({},hR,DR),xr=(t,e=[])=>{rt(t)?t.forEach(n=>n(...e)):t&&t(...e)},Ky=t=>t?rt(t)?t.some(e=>e.length>1):t.length>1:!1;function LR(t){const e={};for(const H in t)H in DR||(e[H]=t[H]);if(t.css===!1)return e;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,_=yk(i),g=_&&_[0],b=_&&_[1],{onBeforeEnter:E,onEnter:y,onEnterCancelled:v,onLeave:S,onLeaveCancelled:R,onBeforeAppear:C=E,onAppear:A=y,onAppearCancelled:I=v}=e,x=(H,te,k)=>{Qi(H,te?u:a),Qi(H,te?d:o),k&&k()},O=(H,te)=>{H._isLeaving=!1,Qi(H,h),Qi(H,m),Qi(H,f),te&&te()},B=H=>(te,k)=>{const $=H?A:y,q=()=>x(te,H,k);xr($,[te,q]),jy(()=>{Qi(te,H?c:r),xi(te,H?u:a),Ky($)||Qy(te,s,g,q)})};return nn(e,{onBeforeEnter(H){xr(E,[H]),xi(H,r),xi(H,o)},onBeforeAppear(H){xr(C,[H]),xi(H,c),xi(H,d)},onEnter:B(!1),onAppear:B(!0),onLeave(H,te){H._isLeaving=!0;const k=()=>O(H,te);xi(H,h),UR(),xi(H,f),jy(()=>{H._isLeaving&&(Qi(H,h),xi(H,m),Ky(S)||Qy(H,s,b,k))}),xr(S,[H,k])},onEnterCancelled(H){x(H,!1),xr(v,[H])},onAppearCancelled(H){x(H,!0),xr(I,[H])},onLeaveCancelled(H){O(H),xr(R,[H])}})}function yk(t){if(t==null)return null;if(qt(t))return[vp(t.enter),vp(t.leave)];{const e=vp(t);return[e,e]}}function vp(t){return tM(t)}function xi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Qi(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function jy(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let vk=0;function Qy(t,e,n,s){const i=t._endId=++vk,r=()=>{i===t._endId&&s()};if(n)return setTimeout(r,n);const{type:o,timeout:a,propCount:c}=PR(t,e);if(!o)return s();const d=o+"end";let u=0;const h=()=>{t.removeEventListener(d,f),r()},f=m=>{m.target===t&&++u>=c&&h()};setTimeout(()=>{u(n[_]||"").split(", "),i=s(`${Vi}Delay`),r=s(`${Vi}Duration`),o=Xy(i,r),a=s(`${Wa}Delay`),c=s(`${Wa}Duration`),d=Xy(a,c);let u=null,h=0,f=0;e===Vi?o>0&&(u=Vi,h=o,f=r.length):e===Wa?d>0&&(u=Wa,h=d,f=c.length):(h=Math.max(o,d),u=h>0?o>d?Vi:Wa:null,f=u?u===Vi?r.length:c.length:0);const m=u===Vi&&/\b(transform|all)(,|$)/.test(s(`${Vi}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:m}}function Xy(t,e){for(;t.lengthZy(n)+Zy(t[s])))}function Zy(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function UR(){return document.body.offsetHeight}const FR=new WeakMap,BR=new WeakMap,GR={name:"TransitionGroup",props:nn({},Ek,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Db(),s=_R();let i,r;return Ql(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!wk(i[0].el,n.vnode.el,o))return;i.forEach(Tk),i.forEach(xk);const a=i.filter(Ck);UR(),a.forEach(c=>{const d=c.el,u=d.style;xi(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const h=d._moveCb=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,Qi(d,o))};d.addEventListener("transitionend",h)})}),()=>{const o=It(t),a=LR(o);let c=o.tag||Pe;i=r,r=e.default?Ab(e.default()):[];for(let d=0;ddelete t.mode;GR.props;const ii=GR;function Tk(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function xk(t){BR.set(t,t.el.getBoundingClientRect())}function Ck(t){const e=FR.get(t),n=BR.get(t),s=e.left-n.left,i=e.top-n.top;if(s||i){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",t}}function wk(t,e,n){const s=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=PR(s);return i.removeChild(s),r}const mr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return rt(e)?n=>zo(e,n):e};function Rk(t){t.target.composing=!0}function Jy(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const pe={created(t,{modifiers:{lazy:e,trim:n,number:s}},i){t._assign=mr(i);const r=s||i.props&&i.props.type==="number";Ri(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=Od(a)),t._assign(a)}),n&&Ri(t,"change",()=>{t.value=t.value.trim()}),e||(Ri(t,"compositionstart",Rk),Ri(t,"compositionend",Jy),Ri(t,"change",Jy))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:s,number:i}},r){if(t._assign=mr(r),t.composing||document.activeElement===t&&t.type!=="range"&&(n||s&&t.value.trim()===e||(i||t.type==="number")&&Od(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},$e={deep:!0,created(t,e,n){t._assign=mr(n),Ri(t,"change",()=>{const s=t._modelValue,i=ta(t),r=t.checked,o=t._assign;if(rt(s)){const a=Eb(s,i),c=a!==-1;if(r&&!c)o(s.concat(i));else if(!r&&c){const d=[...s];d.splice(a,1),o(d)}}else if(xa(s)){const a=new Set(s);r?a.add(i):a.delete(i),o(a)}else o(VR(t,r))})},mounted:ev,beforeUpdate(t,e,n){t._assign=mr(n),ev(t,e,n)}};function ev(t,{value:e,oldValue:n},s){t._modelValue=e,rt(e)?t.checked=Eb(e,s.props.value)>-1:xa(e)?t.checked=e.has(s.props.value):e!==n&&(t.checked=Zr(e,VR(t,!0)))}const Ak={created(t,{value:e},n){t.checked=Zr(e,n.props.value),t._assign=mr(n),Ri(t,"change",()=>{t._assign(ta(t))})},beforeUpdate(t,{value:e,oldValue:n},s){t._assign=mr(s),e!==n&&(t.checked=Zr(e,s.props.value))}},Dt={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const i=xa(e);Ri(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Od(ta(o)):ta(o));t._assign(t.multiple?i?new Set(r):r:r[0])}),t._assign=mr(s)},mounted(t,{value:e}){tv(t,e)},beforeUpdate(t,e,n){t._assign=mr(n)},updated(t,{value:e}){tv(t,e)}};function tv(t,e){const n=t.multiple;if(!(n&&!rt(e)&&!xa(e))){for(let s=0,i=t.options.length;s-1:r.selected=e.has(o);else if(Zr(ta(r),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ta(t){return"_value"in t?t._value:t.value}function VR(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Nk=["ctrl","shift","alt","meta"],Ok={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Nk.some(n=>t[`${n}Key`]&&!e.includes(n))},j=(t,e)=>(n,...s)=>{for(let i=0;in=>{if(!("key"in n))return;const s=ao(n.key);if(e.some(i=>i===s||Mk[i]===s))return t(n)},wt={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ka(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Ka(t,!0),s.enter(t)):s.leave(t,()=>{Ka(t,!1)}):Ka(t,e))},beforeUnmount(t,{value:e}){Ka(t,e)}};function Ka(t,e){t.style.display=e?t._vod:"none"}const Ik=nn({patchProp:gk},ik);let nv;function kk(){return nv||(nv=PI(Ik))}const Dk=(...t)=>{const e=kk().createApp(...t),{mount:n}=e;return e.mount=s=>{const i=Lk(s);if(!i)return;const r=e._component;!bt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function Lk(t){return en(t)?document.querySelector(t):t}function Pk(){return zR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function zR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Uk=typeof Proxy=="function",Fk="devtools-plugin:setup",Bk="plugin:settings:set";let ho,vg;function Gk(){var t;return ho!==void 0||(typeof window<"u"&&window.performance?(ho=!0,vg=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(ho=!0,vg=global.perf_hooks.performance):ho=!1),ho}function Vk(){return Gk()?vg.now():Date.now()}class zk{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const s={};if(e.settings)for(const o in e.settings){const a=e.settings[o];s[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return Vk()}},n&&n.on(Bk,(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 n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Hk(t,e){const n=t,s=zR(),i=Pk(),r=Uk&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(Fk,t,e);else{const o=r?new zk(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function fb(t,e){const n=Object.create(null),s=t.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const jt={},Go=[],Ps=()=>{},KO=()=>!1,jO=/^on[^a-z]/,uu=t=>jO.test(t),mb=t=>t.startsWith("onUpdate:"),nn=Object.assign,gb=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},QO=Object.prototype.hasOwnProperty,Dt=(t,e)=>QO.call(t,e),rt=Array.isArray,Vo=t=>Ca(t)==="[object Map]",xa=t=>Ca(t)==="[object Set]",my=t=>Ca(t)==="[object Date]",XO=t=>Ca(t)==="[object RegExp]",bt=t=>typeof t=="function",en=t=>typeof t=="string",Al=t=>typeof t=="symbol",qt=t=>t!==null&&typeof t=="object",Dw=t=>qt(t)&&bt(t.then)&&bt(t.catch),Lw=Object.prototype.toString,Ca=t=>Lw.call(t),ZO=t=>Ca(t).slice(8,-1),Pw=t=>Ca(t)==="[object Object]",bb=t=>en(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pd=fb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pu=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},JO=/-(\w)/g,oi=pu(t=>t.replace(JO,(e,n)=>n?n.toUpperCase():"")),eM=/\B([A-Z])/g,ao=pu(t=>t.replace(eM,"-$1").toLowerCase()),_u=pu(t=>t.charAt(0).toUpperCase()+t.slice(1)),_d=pu(t=>t?`on${_u(t)}`:""),Nl=(t,e)=>!Object.is(t,e),zo=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Od=t=>{const e=parseFloat(t);return isNaN(e)?t:e},tM=t=>{const e=en(t)?Number(t):NaN;return isNaN(e)?t:e};let gy;const lg=()=>gy||(gy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ht(t){if(rt(t)){const e={};for(let n=0;n{if(n){const s=n.split(sM);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Ge(t){let e="";if(en(t))e=t;else if(rt(t))for(let n=0;nZr(n,e))}const K=t=>en(t)?t:t==null?"":rt(t)||qt(t)&&(t.toString===Lw||!bt(t.toString))?JSON.stringify(t,Fw,2):String(t),Fw=(t,e)=>e&&e.__v_isRef?Fw(t,e.value):Vo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i])=>(n[`${s} =>`]=i,n),{})}:xa(e)?{[`Set(${e.size})`]:[...e.values()]}:qt(e)&&!rt(e)&&!Pw(e)?String(e):e;let Xn;class Bw{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xn,!e&&Xn&&(this.index=(Xn.scopes||(Xn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Xn;try{return Xn=this,e()}finally{Xn=n}}}on(){Xn=this}off(){Xn=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},Vw=t=>(t.w&fr)>0,zw=t=>(t.n&fr)>0,pM=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s{(u==="length"||u>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":rt(t)?bb(n)&&a.push(o.get("length")):(a.push(o.get(qr)),Vo(t)&&a.push(o.get(dg)));break;case"delete":rt(t)||(a.push(o.get(qr)),Vo(t)&&a.push(o.get(dg)));break;case"set":Vo(t)&&a.push(o.get(qr));break}if(a.length===1)a[0]&&ug(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);ug(yb(c))}}function ug(t,e){const n=rt(t)?t:[...t];for(const s of n)s.computed&&Ey(s);for(const s of n)s.computed||Ey(s)}function Ey(t,e){(t!==Ds||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function hM(t,e){var n;return(n=Md.get(t))==null?void 0:n.get(e)}const fM=fb("__proto__,__v_isRef,__isVue"),$w=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Al)),mM=hu(),gM=hu(!1,!0),bM=hu(!0),EM=hu(!0,!0),yy=yM();function yM(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=It(this);for(let r=0,o=this.length;r{t[e]=function(...n){wa();const s=It(this)[e].apply(this,n);return Ra(),s}}),t}function vM(t){const e=It(this);return Yn(e,"has",t),e.hasOwnProperty(t)}function hu(t=!1,e=!1){return function(s,i,r){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&r===(t?e?Zw:Xw:e?Qw:jw).get(s))return s;const o=rt(s);if(!t){if(o&&Dt(yy,i))return Reflect.get(yy,i,r);if(i==="hasOwnProperty")return vM}const a=Reflect.get(s,i,r);return(Al(i)?$w.has(i):fM(i))||(t||Yn(s,"get",i),e)?a:pn(a)?o&&bb(i)?a:a.value:qt(a)?t?eR(a):Wn(a):a}}const SM=Yw(),TM=Yw(!0);function Yw(t=!1){return function(n,s,i,r){let o=n[s];if(Zo(o)&&pn(o)&&!pn(i))return!1;if(!t&&(!Id(i)&&!Zo(i)&&(o=It(o),i=It(i)),!rt(n)&&pn(o)&&!pn(i)))return o.value=i,!0;const a=rt(n)&&bb(s)?Number(s)t,fu=t=>Reflect.getPrototypeOf(t);function fc(t,e,n=!1,s=!1){t=t.__v_raw;const i=It(t),r=It(e);n||(e!==r&&Yn(i,"get",e),Yn(i,"get",r));const{has:o}=fu(i),a=s?Sb:n?Tb:Ol;if(o.call(i,e))return a(t.get(e));if(o.call(i,r))return a(t.get(r));t!==i&&t.get(e)}function mc(t,e=!1){const n=this.__v_raw,s=It(n),i=It(t);return e||(t!==i&&Yn(s,"has",t),Yn(s,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function gc(t,e=!1){return t=t.__v_raw,!e&&Yn(It(t),"iterate",qr),Reflect.get(t,"size",t)}function vy(t){t=It(t);const e=It(this);return fu(e).has.call(e,t)||(e.add(t),Ii(e,"add",t,t)),this}function Sy(t,e){e=It(e);const n=It(this),{has:s,get:i}=fu(n);let r=s.call(n,t);r||(t=It(t),r=s.call(n,t));const o=i.call(n,t);return n.set(t,e),r?Nl(e,o)&&Ii(n,"set",t,e):Ii(n,"add",t,e),this}function Ty(t){const e=It(this),{has:n,get:s}=fu(e);let i=n.call(e,t);i||(t=It(t),i=n.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return i&&Ii(e,"delete",t,void 0),r}function xy(){const t=It(this),e=t.size!==0,n=t.clear();return e&&Ii(t,"clear",void 0,void 0),n}function bc(t,e){return function(s,i){const r=this,o=r.__v_raw,a=It(o),c=e?Sb:t?Tb:Ol;return!t&&Yn(a,"iterate",qr),o.forEach((d,u)=>s.call(i,c(d),c(u),r))}}function Ec(t,e,n){return function(...s){const i=this.__v_raw,r=It(i),o=Vo(r),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,d=i[t](...s),u=n?Sb:e?Tb:Ol;return!e&&Yn(r,"iterate",c?dg:qr),{next(){const{value:h,done:f}=d.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Gi(t){return function(...e){return t==="delete"?!1:this}}function NM(){const t={get(r){return fc(this,r)},get size(){return gc(this)},has:mc,add:vy,set:Sy,delete:Ty,clear:xy,forEach:bc(!1,!1)},e={get(r){return fc(this,r,!1,!0)},get size(){return gc(this)},has:mc,add:vy,set:Sy,delete:Ty,clear:xy,forEach:bc(!1,!0)},n={get(r){return fc(this,r,!0)},get size(){return gc(this,!0)},has(r){return mc.call(this,r,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:bc(!0,!1)},s={get(r){return fc(this,r,!0,!0)},get size(){return gc(this,!0)},has(r){return mc.call(this,r,!0)},add:Gi("add"),set:Gi("set"),delete:Gi("delete"),clear:Gi("clear"),forEach:bc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Ec(r,!1,!1),n[r]=Ec(r,!0,!1),e[r]=Ec(r,!1,!0),s[r]=Ec(r,!0,!0)}),[t,n,e,s]}const[OM,MM,IM,kM]=NM();function mu(t,e){const n=e?t?kM:IM:t?MM:OM;return(s,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(Dt(n,i)&&i in s?n:s,i,r)}const DM={get:mu(!1,!1)},LM={get:mu(!1,!0)},PM={get:mu(!0,!1)},UM={get:mu(!0,!0)},jw=new WeakMap,Qw=new WeakMap,Xw=new WeakMap,Zw=new WeakMap;function FM(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BM(t){return t.__v_skip||!Object.isExtensible(t)?0:FM(ZO(t))}function Wn(t){return Zo(t)?t:gu(t,!1,Ww,DM,jw)}function Jw(t){return gu(t,!1,RM,LM,Qw)}function eR(t){return gu(t,!0,Kw,PM,Xw)}function GM(t){return gu(t,!0,AM,UM,Zw)}function gu(t,e,n,s,i){if(!qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=BM(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return i.set(t,a),a}function Ho(t){return Zo(t)?Ho(t.__v_raw):!!(t&&t.__v_isReactive)}function Zo(t){return!!(t&&t.__v_isReadonly)}function Id(t){return!!(t&&t.__v_isShallow)}function tR(t){return Ho(t)||Zo(t)}function It(t){const e=t&&t.__v_raw;return e?It(e):t}function jl(t){return Nd(t,"__v_skip",!0),t}const Ol=t=>qt(t)?Wn(t):t,Tb=t=>qt(t)?eR(t):t;function xb(t){cr&&Ds&&(t=It(t),qw(t.dep||(t.dep=yb())))}function Cb(t,e){t=It(t);const n=t.dep;n&&ug(n)}function pn(t){return!!(t&&t.__v_isRef===!0)}function ct(t){return nR(t,!1)}function VM(t){return nR(t,!0)}function nR(t,e){return pn(t)?t:new zM(t,e)}class zM{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:It(e),this._value=n?e:Ol(e)}get value(){return xb(this),this._value}set value(e){const n=this.__v_isShallow||Id(e)||Zo(e);e=n?e:It(e),Nl(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ol(e),Cb(this))}}function Lt(t){return pn(t)?t.value:t}const HM={get:(t,e,n)=>Lt(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return pn(i)&&!pn(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function sR(t){return Ho(t)?t:new Proxy(t,HM)}class qM{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=e(()=>xb(this),()=>Cb(this));this._get=n,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function $M(t){return new qM(t)}function YM(t){const e=rt(t)?new Array(t.length):{};for(const n in t)e[n]=iR(t,n);return e}class WM{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return hM(It(this._object),this._key)}}class KM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kd(t,e,n){return pn(t)?t:bt(t)?new KM(t):qt(t)&&arguments.length>1?iR(t,e,n):ct(t)}function iR(t,e,n){const s=t[e];return pn(s)?s:new WM(t,e,n)}class jM{constructor(e,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vb(e,()=>{this._dirty||(this._dirty=!0,Cb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=It(this);return xb(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function QM(t,e,n=!1){let s,i;const r=bt(t);return r?(s=t,i=Ps):(s=t.get,i=t.set),new jM(s,i,r||!i,n)}function dr(t,e,n,s){let i;try{i=s?t(...s):t()}catch(r){bu(r,e,n)}return i}function fs(t,e,n,s){if(bt(t)){const r=dr(t,e,n,s);return r&&Dw(r)&&r.catch(o=>{bu(o,e,n)}),r}const i=[];for(let r=0;r>>1;Il(On[s])Zs&&On.splice(e,1)}function eI(t){rt(t)?qo.push(...t):(!wi||!wi.includes(t,t.allowRecurse?Dr+1:Dr))&&qo.push(t),oR()}function Cy(t,e=Ml?Zs+1:0){for(;eIl(n)-Il(s)),Dr=0;Drt.id==null?1/0:t.id,tI=(t,e)=>{const n=Il(t)-Il(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function lR(t){pg=!1,Ml=!0,On.sort(tI);const e=Ps;try{for(Zs=0;Zsen(m)?m.trim():m)),h&&(i=n.map(Od))}let a,c=s[a=_d(e)]||s[a=_d(oi(e))];!c&&r&&(c=s[a=_d(ao(e))]),c&&fs(c,t,6,i);const d=s[a+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,fs(d,t,6,i)}}function cR(t,e,n=!1){const s=e.emitsCache,i=s.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!bt(t)){const c=d=>{const u=cR(d,e,!0);u&&(a=!0,nn(o,u))};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!r&&!a?(qt(t)&&s.set(t,null),null):(rt(r)?r.forEach(c=>o[c]=null):nn(o,r),qt(t)&&s.set(t,o),o)}function Eu(t,e){return!t||!uu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Dt(t,e[0].toLowerCase()+e.slice(1))||Dt(t,ao(e))||Dt(t,e))}let xn=null,yu=null;function Dd(t){const e=xn;return xn=t,yu=t&&t.type.__scopeId||null,e}function Ss(t){yu=t}function Ts(){yu=null}function Ie(t,e=xn,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&Fy(-1);const r=Dd(e);let o;try{o=t(...i)}finally{Dd(r),s._d&&Fy(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function hp(t){const{type:e,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:c,emit:d,render:u,renderCache:h,data:f,setupState:m,ctx:_,inheritAttrs:g}=t;let b,E;const y=Dd(t);try{if(n.shapeFlag&4){const S=i||s;b=Qs(u.call(S,S,h,r,m,f,_)),E=c}else{const S=e;b=Qs(S.length>1?S(r,{attrs:c,slots:a,emit:d}):S(r,null)),E=e.props?c:sI(c)}}catch(S){ml.length=0,bu(S,t,1),b=V(ms)}let v=b;if(E&&g!==!1){const S=Object.keys(E),{shapeFlag:R}=v;S.length&&R&7&&(o&&S.some(mb)&&(E=iI(E,o)),v=ki(v,E))}return n.dirs&&(v=ki(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),b=v,Dd(y),b}const sI=t=>{let e;for(const n in t)(n==="class"||n==="style"||uu(n))&&((e||(e={}))[n]=t[n]);return e},iI=(t,e)=>{const n={};for(const s in t)(!mb(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function rI(t,e,n){const{props:s,children:i,component:r}=t,{props:o,children:a,patchFlag:c}=e,d=r.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?wy(s,o,d):!!o;if(c&8){const u=e.dynamicProps;for(let h=0;ht.__isSuspense;function aI(t,e){e&&e.pendingBranch?rt(t)?e.effects.push(...t):e.effects.push(t):eI(t)}const yc={};function In(t,e,n){return uR(t,e,n)}function uR(t,e,{immediate:n,deep:s,flush:i,onTrack:r,onTrigger:o}=jt){var a;const c=Gw()===((a=bn)==null?void 0:a.scope)?bn:null;let d,u=!1,h=!1;if(pn(t)?(d=()=>t.value,u=Id(t)):Ho(t)?(d=()=>t,s=!0):rt(t)?(h=!0,u=t.some(S=>Ho(S)||Id(S)),d=()=>t.map(S=>{if(pn(S))return S.value;if(Ho(S))return Gr(S);if(bt(S))return dr(S,c,2)})):bt(t)?e?d=()=>dr(t,c,2):d=()=>{if(!(c&&c.isUnmounted))return f&&f(),fs(t,c,3,[m])}:d=Ps,e&&s){const S=d;d=()=>Gr(S())}let f,m=S=>{f=y.onStop=()=>{dr(S,c,4)}},_;if(Pl)if(m=Ps,e?n&&fs(e,c,3,[d(),h?[]:void 0,m]):d(),i==="sync"){const S=tk();_=S.__watcherHandles||(S.__watcherHandles=[])}else return Ps;let g=h?new Array(t.length).fill(yc):yc;const b=()=>{if(y.active)if(e){const S=y.run();(s||u||(h?S.some((R,C)=>Nl(R,g[C])):Nl(S,g)))&&(f&&f(),fs(e,c,3,[S,g===yc?void 0:h&&g[0]===yc?[]:g,m]),g=S)}else y.run()};b.allowRecurse=!!e;let E;i==="sync"?E=b:i==="post"?E=()=>Tn(b,c&&c.suspense):(b.pre=!0,c&&(b.id=c.uid),E=()=>Rb(b));const y=new vb(d,E);e?n?b():g=y.run():i==="post"?Tn(y.run.bind(y),c&&c.suspense):y.run();const v=()=>{y.stop(),c&&c.scope&&gb(c.scope.effects,y)};return _&&_.push(v),v}function lI(t,e,n){const s=this.proxy,i=en(t)?t.includes(".")?pR(s,t):()=>s[t]:t.bind(s,s);let r;bt(e)?r=e:(r=e.handler,n=e);const o=bn;ea(this);const a=uR(i,r.bind(s),n);return o?ea(o):$r(),a}function pR(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i{Gr(n,e)});else if(Pw(t))for(const n in t)Gr(t[n],e);return t}function P(t,e){const n=xn;if(n===null)return t;const s=wu(n)||n.proxy,i=t.dirs||(t.dirs=[]);for(let r=0;r{t.isMounted=!0}),Aa(()=>{t.isUnmounting=!0}),t}const os=[Function,Array],hR={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:os,onEnter:os,onAfterEnter:os,onEnterCancelled:os,onBeforeLeave:os,onLeave:os,onAfterLeave:os,onLeaveCancelled:os,onBeforeAppear:os,onAppear:os,onAfterAppear:os,onAppearCancelled:os},cI={name:"BaseTransition",props:hR,setup(t,{slots:e}){const n=Db(),s=_R();let i;return()=>{const r=e.default&&Ab(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const g of r)if(g.type!==ms){o=g;break}}const a=It(t),{mode:c}=a;if(s.isLeaving)return fp(o);const d=Ry(o);if(!d)return fp(o);const u=kl(d,a,s,n);Jo(d,u);const h=n.subTree,f=h&&Ry(h);let m=!1;const{getTransitionKey:_}=d.type;if(_){const g=_();i===void 0?i=g:g!==i&&(i=g,m=!0)}if(f&&f.type!==ms&&(!rr(d,f)||m)){const g=kl(f,a,s,n);if(Jo(f,g),c==="out-in")return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},fp(o);c==="in-out"&&d.type!==ms&&(g.delayLeave=(b,E,y)=>{const v=fR(s,f);v[String(f.key)]=f,b._leaveCb=()=>{E(),b._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=y})}return o}}},dI=cI;function fR(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function kl(t,e,n,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:_,onBeforeAppear:g,onAppear:b,onAfterAppear:E,onAppearCancelled:y}=e,v=String(t.key),S=fR(n,t),R=(I,x)=>{I&&fs(I,s,9,x)},C=(I,x)=>{const O=x[1];R(I,x),rt(I)?I.every(B=>B.length<=1)&&O():I.length<=1&&O()},A={mode:r,persisted:o,beforeEnter(I){let x=a;if(!n.isMounted)if(i)x=g||a;else return;I._leaveCb&&I._leaveCb(!0);const O=S[v];O&&rr(t,O)&&O.el._leaveCb&&O.el._leaveCb(),R(x,[I])},enter(I){let x=c,O=d,B=u;if(!n.isMounted)if(i)x=b||c,O=E||d,B=y||u;else return;let H=!1;const te=I._enterCb=k=>{H||(H=!0,k?R(B,[I]):R(O,[I]),A.delayedLeave&&A.delayedLeave(),I._enterCb=void 0)};x?C(x,[I,te]):te()},leave(I,x){const O=String(t.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return x();R(h,[I]);let B=!1;const H=I._leaveCb=te=>{B||(B=!0,x(),te?R(_,[I]):R(m,[I]),I._leaveCb=void 0,S[O]===t&&delete S[O])};S[O]=t,f?C(f,[I,H]):H()},clone(I){return kl(I,e,n,s)}};return A}function fp(t){if(vu(t))return t=ki(t),t.children=null,t}function Ry(t){return vu(t)?t.children?t.children[0]:void 0:t}function Jo(t,e){t.shapeFlag&6&&t.component?Jo(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Ab(t,e=!1,n){let s=[],i=0;for(let r=0;r1)for(let r=0;rnn({name:t.name},e,{setup:t}))():t}const $o=t=>!!t.type.__asyncLoader,vu=t=>t.type.__isKeepAlive,uI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Db(),s=n.ctx;if(!s.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const i=new Map,r=new Set;let o=null;const a=n.suspense,{renderer:{p:c,m:d,um:u,o:{createElement:h}}}=s,f=h("div");s.activate=(y,v,S,R,C)=>{const A=y.component;d(y,v,S,0,a),c(A.vnode,y,v,S,A,a,R,y.slotScopeIds,C),Tn(()=>{A.isDeactivated=!1,A.a&&zo(A.a);const I=y.props&&y.props.onVnodeMounted;I&&ls(I,A.parent,y)},a)},s.deactivate=y=>{const v=y.component;d(y,f,null,1,a),Tn(()=>{v.da&&zo(v.da);const S=y.props&&y.props.onVnodeUnmounted;S&&ls(S,v.parent,y),v.isDeactivated=!0},a)};function m(y){mp(y),u(y,n,a,!0)}function _(y){i.forEach((v,S)=>{const R=Eg(v.type);R&&(!y||!y(R))&&g(S)})}function g(y){const v=i.get(y);!o||!rr(v,o)?m(v):o&&mp(o),i.delete(y),r.delete(y)}In(()=>[t.include,t.exclude],([y,v])=>{y&&_(S=>ll(y,S)),v&&_(S=>!ll(v,S))},{flush:"post",deep:!0});let b=null;const E=()=>{b!=null&&i.set(b,gp(n.subTree))};return ci(E),Ql(E),Aa(()=>{i.forEach(y=>{const{subTree:v,suspense:S}=n,R=gp(v);if(y.type===R.type&&y.key===R.key){mp(R);const C=R.component.da;C&&Tn(C,S);return}m(y)})}),()=>{if(b=null,!e.default)return null;const y=e.default(),v=y[0];if(y.length>1)return o=null,y;if(!Ll(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return o=null,v;let S=gp(v);const R=S.type,C=Eg($o(S)?S.type.__asyncResolved||{}:R),{include:A,exclude:I,max:x}=t;if(A&&(!C||!ll(A,C))||I&&C&&ll(I,C))return o=S,v;const O=S.key==null?R:S.key,B=i.get(O);return S.el&&(S=ki(S),v.shapeFlag&128&&(v.ssContent=S)),b=O,B?(S.el=B.el,S.component=B.component,S.transition&&Jo(S,S.transition),S.shapeFlag|=512,r.delete(O),r.add(O)):(r.add(O),x&&r.size>parseInt(x,10)&&g(r.values().next().value)),S.shapeFlag|=256,o=S,dR(v.type)?v:S}}},pI=uI;function ll(t,e){return rt(t)?t.some(n=>ll(n,e)):en(t)?t.split(",").includes(e):XO(t)?t.test(e):!1}function _I(t,e){mR(t,"a",e)}function hI(t,e){mR(t,"da",e)}function mR(t,e,n=bn){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Su(e,s,n),n){let i=n.parent;for(;i&&i.parent;)vu(i.parent.vnode)&&fI(s,e,n,i),i=i.parent}}function fI(t,e,n,s){const i=Su(e,t,s,!0);gR(()=>{gb(s[e],i)},n)}function mp(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function gp(t){return t.shapeFlag&128?t.ssContent:t}function Su(t,e,n=bn,s=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;wa(),ea(n);const a=fs(e,n,t,o);return $r(),Ra(),a});return s?i.unshift(r):i.push(r),r}}const Pi=t=>(e,n=bn)=>(!Pl||t==="sp")&&Su(t,(...s)=>e(...s),n),mI=Pi("bm"),ci=Pi("m"),gI=Pi("bu"),Ql=Pi("u"),Aa=Pi("bum"),gR=Pi("um"),bI=Pi("sp"),EI=Pi("rtg"),yI=Pi("rtc");function vI(t,e=bn){Su("ec",t,e)}const Nb="components";function tt(t,e){return ER(Nb,t,!0,e)||t}const bR=Symbol.for("v-ndc");function Tu(t){return en(t)?ER(Nb,t,!1)||t:t||bR}function ER(t,e,n=!0,s=!1){const i=xn||bn;if(i){const r=i.type;if(t===Nb){const a=Eg(r,!1);if(a&&(a===e||a===oi(e)||a===_u(oi(e))))return r}const o=Ay(i[t]||r[t],e)||Ay(i.appContext[t],e);return!o&&s?r:o}}function Ay(t,e){return t&&(t[e]||t[oi(e)]||t[_u(oi(e))])}function Ke(t,e,n,s){let i;const r=n&&n[s];if(rt(t)||en(t)){i=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,r&&r[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,c=o.length;aLl(e)?!(e.type===ms||e.type===Pe&&!yR(e.children)):!0)?t:null}function SI(t,e){const n={};for(const s in t)n[e&&/[A-Z]/.test(s)?`on:${s}`:_d(s)]=t[s];return n}const _g=t=>t?IR(t)?wu(t)||t.proxy:_g(t.parent):null,hl=nn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>_g(t.parent),$root:t=>_g(t.root),$emit:t=>t.emit,$options:t=>Ob(t),$forceUpdate:t=>t.f||(t.f=()=>Rb(t.update)),$nextTick:t=>t.n||(t.n=Le.bind(t.proxy)),$watch:t=>lI.bind(t)}),bp=(t,e)=>t!==jt&&!t.__isScriptSetup&&Dt(t,e),TI={get({_:t},e){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:c}=t;let d;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(bp(s,e))return o[e]=1,s[e];if(i!==jt&&Dt(i,e))return o[e]=2,i[e];if((d=t.propsOptions[0])&&Dt(d,e))return o[e]=3,r[e];if(n!==jt&&Dt(n,e))return o[e]=4,n[e];hg&&(o[e]=0)}}const u=hl[e];let h,f;if(u)return e==="$attrs"&&Yn(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==jt&&Dt(n,e))return o[e]=4,n[e];if(f=c.config.globalProperties,Dt(f,e))return f[e]},set({_:t},e,n){const{data:s,setupState:i,ctx:r}=t;return bp(i,e)?(i[e]=n,!0):s!==jt&&Dt(s,e)?(s[e]=n,!0):Dt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||t!==jt&&Dt(t,o)||bp(e,o)||(a=r[0])&&Dt(a,o)||Dt(s,o)||Dt(hl,o)||Dt(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Dt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ny(t){return rt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let hg=!0;function xI(t){const e=Ob(t),n=t.proxy,s=t.ctx;hg=!1,e.beforeCreate&&Oy(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:o,watch:a,provide:c,inject:d,created:u,beforeMount:h,mounted:f,beforeUpdate:m,updated:_,activated:g,deactivated:b,beforeDestroy:E,beforeUnmount:y,destroyed:v,unmounted:S,render:R,renderTracked:C,renderTriggered:A,errorCaptured:I,serverPrefetch:x,expose:O,inheritAttrs:B,components:H,directives:te,filters:k}=e;if(d&&CI(d,s,null),o)for(const U in o){const W=o[U];bt(W)&&(s[U]=W.bind(n))}if(i){const U=i.call(n,n);qt(U)&&(t.data=Wn(U))}if(hg=!0,r)for(const U in r){const W=r[U],ne=bt(W)?W.bind(n,n):bt(W.get)?W.get.bind(n,n):Ps,le=!bt(W)&&bt(W.set)?W.set.bind(n):Ps,me=Je({get:ne,set:le});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>me.value,set:Se=>me.value=Se})}if(a)for(const U in a)vR(a[U],s,n,U);if(c){const U=bt(c)?c.call(n):c;Reflect.ownKeys(U).forEach(W=>{Yo(W,U[W])})}u&&Oy(u,t,"c");function q(U,W){rt(W)?W.forEach(ne=>U(ne.bind(n))):W&&U(W.bind(n))}if(q(mI,h),q(ci,f),q(gI,m),q(Ql,_),q(_I,g),q(hI,b),q(vI,I),q(yI,C),q(EI,A),q(Aa,y),q(gR,S),q(bI,x),rt(O))if(O.length){const U=t.exposed||(t.exposed={});O.forEach(W=>{Object.defineProperty(U,W,{get:()=>n[W],set:ne=>n[W]=ne})})}else t.exposed||(t.exposed={});R&&t.render===Ps&&(t.render=R),B!=null&&(t.inheritAttrs=B),H&&(t.components=H),te&&(t.directives=te)}function CI(t,e,n=Ps){rt(t)&&(t=fg(t));for(const s in t){const i=t[s];let r;qt(i)?"default"in i?r=Zn(i.from||s,i.default,!0):r=Zn(i.from||s):r=Zn(i),pn(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function Oy(t,e,n){fs(rt(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function vR(t,e,n,s){const i=s.includes(".")?pR(n,s):()=>n[s];if(en(t)){const r=e[t];bt(r)&&In(i,r)}else if(bt(t))In(i,t.bind(n));else if(qt(t))if(rt(t))t.forEach(r=>vR(r,e,n,s));else{const r=bt(t.handler)?t.handler.bind(n):e[t.handler];bt(r)&&In(i,r,t)}}function Ob(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let c;return a?c=a:!i.length&&!n&&!s?c=e:(c={},i.length&&i.forEach(d=>Ld(c,d,o,!0)),Ld(c,e,o)),qt(e)&&r.set(e,c),c}function Ld(t,e,n,s=!1){const{mixins:i,extends:r}=e;r&&Ld(t,r,n,!0),i&&i.forEach(o=>Ld(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=wI[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const wI={data:My,props:Iy,emits:Iy,methods:cl,computed:cl,beforeCreate:Ln,created:Ln,beforeMount:Ln,mounted:Ln,beforeUpdate:Ln,updated:Ln,beforeDestroy:Ln,beforeUnmount:Ln,destroyed:Ln,unmounted:Ln,activated:Ln,deactivated:Ln,errorCaptured:Ln,serverPrefetch:Ln,components:cl,directives:cl,watch:AI,provide:My,inject:RI};function My(t,e){return e?t?function(){return nn(bt(t)?t.call(this,this):t,bt(e)?e.call(this,this):e)}:e:t}function RI(t,e){return cl(fg(t),fg(e))}function fg(t){if(rt(t)){const e={};for(let n=0;n1)return n&&bt(e)?e.call(s&&s.proxy):e}}function MI(t,e,n,s=!1){const i={},r={};Nd(r,Cu,1),t.propsDefaults=Object.create(null),TR(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=s?i:Jw(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function II(t,e,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=It(i),[c]=t.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let h=0;h{c=!0;const[f,m]=xR(h,e,!0);nn(o,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!c)return qt(t)&&s.set(t,Go),Go;if(rt(r))for(let u=0;u-1,m[1]=g<0||_-1||Dt(m,"default"))&&a.push(h)}}}const d=[o,a];return qt(t)&&s.set(t,d),d}function ky(t){return t[0]!=="$"}function Dy(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Ly(t,e){return Dy(t)===Dy(e)}function Py(t,e){return rt(e)?e.findIndex(n=>Ly(n,t)):bt(e)&&Ly(e,t)?0:-1}const CR=t=>t[0]==="_"||t==="$stable",Mb=t=>rt(t)?t.map(Qs):[Qs(t)],kI=(t,e,n)=>{if(e._n)return e;const s=Ie((...i)=>Mb(e(...i)),n);return s._c=!1,s},wR=(t,e,n)=>{const s=t._ctx;for(const i in t){if(CR(i))continue;const r=t[i];if(bt(r))e[i]=kI(i,r,s);else if(r!=null){const o=Mb(r);e[i]=()=>o}}},RR=(t,e)=>{const n=Mb(e);t.slots.default=()=>n},DI=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=It(e),Nd(e,"_",n)):wR(e,t.slots={})}else t.slots={},e&&RR(t,e);Nd(t.slots,Cu,1)},LI=(t,e,n)=>{const{vnode:s,slots:i}=t;let r=!0,o=jt;if(s.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:(nn(i,e),!n&&a===1&&delete i._):(r=!e.$stable,wR(e,i)),o=e}else e&&(RR(t,e),o={default:1});if(r)for(const a in i)!CR(a)&&!(a in o)&&delete i[a]};function gg(t,e,n,s,i=!1){if(rt(t)){t.forEach((f,m)=>gg(f,e&&(rt(e)?e[m]:e),n,s,i));return}if($o(s)&&!i)return;const r=s.shapeFlag&4?wu(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:c}=t,d=e&&e.r,u=a.refs===jt?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(en(d)?(u[d]=null,Dt(h,d)&&(h[d]=null)):pn(d)&&(d.value=null)),bt(c))dr(c,a,12,[o,u]);else{const f=en(c),m=pn(c);if(f||m){const _=()=>{if(t.f){const g=f?Dt(h,c)?h[c]:u[c]:c.value;i?rt(g)&&gb(g,r):rt(g)?g.includes(r)||g.push(r):f?(u[c]=[r],Dt(h,c)&&(h[c]=u[c])):(c.value=[r],t.k&&(u[t.k]=c.value))}else f?(u[c]=o,Dt(h,c)&&(h[c]=o)):m&&(c.value=o,t.k&&(u[t.k]=o))};o?(_.id=-1,Tn(_,n)):_()}}}const Tn=aI;function PI(t){return UI(t)}function UI(t,e){const n=lg();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:c,setText:d,setElementText:u,parentNode:h,nextSibling:f,setScopeId:m=Ps,insertStaticContent:_}=t,g=(N,z,Y,ce=null,re=null,xe=null,Ne=!1,ie=null,Re=!!z.dynamicChildren)=>{if(N===z)return;N&&!rr(N,z)&&(ce=Z(N),Se(N,re,xe,!0),N=null),z.patchFlag===-2&&(Re=!1,z.dynamicChildren=null);const{type:ge,ref:De,shapeFlag:L}=z;switch(ge){case xu:b(N,z,Y,ce);break;case ms:E(N,z,Y,ce);break;case hd:N==null&&y(z,Y,ce,Ne);break;case Pe:H(N,z,Y,ce,re,xe,Ne,ie,Re);break;default:L&1?R(N,z,Y,ce,re,xe,Ne,ie,Re):L&6?te(N,z,Y,ce,re,xe,Ne,ie,Re):(L&64||L&128)&&ge.process(N,z,Y,ce,re,xe,Ne,ie,Re,_e)}De!=null&&re&&gg(De,N&&N.ref,xe,z||N,!z)},b=(N,z,Y,ce)=>{if(N==null)s(z.el=a(z.children),Y,ce);else{const re=z.el=N.el;z.children!==N.children&&d(re,z.children)}},E=(N,z,Y,ce)=>{N==null?s(z.el=c(z.children||""),Y,ce):z.el=N.el},y=(N,z,Y,ce)=>{[N.el,N.anchor]=_(N.children,z,Y,ce,N.el,N.anchor)},v=({el:N,anchor:z},Y,ce)=>{let re;for(;N&&N!==z;)re=f(N),s(N,Y,ce),N=re;s(z,Y,ce)},S=({el:N,anchor:z})=>{let Y;for(;N&&N!==z;)Y=f(N),i(N),N=Y;i(z)},R=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{Ne=Ne||z.type==="svg",N==null?C(z,Y,ce,re,xe,Ne,ie,Re):x(N,z,re,xe,Ne,ie,Re)},C=(N,z,Y,ce,re,xe,Ne,ie)=>{let Re,ge;const{type:De,props:L,shapeFlag:M,transition:Q,dirs:ye}=N;if(Re=N.el=o(N.type,xe,L&&L.is,L),M&8?u(Re,N.children):M&16&&I(N.children,Re,null,ce,re,xe&&De!=="foreignObject",Ne,ie),ye&&Sr(N,null,ce,"created"),A(Re,N,N.scopeId,Ne,ce),L){for(const se in L)se!=="value"&&!pd(se)&&r(Re,se,null,L[se],xe,N.children,ce,re,ke);"value"in L&&r(Re,"value",null,L.value),(ge=L.onVnodeBeforeMount)&&ls(ge,ce,N)}ye&&Sr(N,null,ce,"beforeMount");const X=(!re||re&&!re.pendingBranch)&&Q&&!Q.persisted;X&&Q.beforeEnter(Re),s(Re,z,Y),((ge=L&&L.onVnodeMounted)||X||ye)&&Tn(()=>{ge&&ls(ge,ce,N),X&&Q.enter(Re),ye&&Sr(N,null,ce,"mounted")},re)},A=(N,z,Y,ce,re)=>{if(Y&&m(N,Y),ce)for(let xe=0;xe{for(let ge=Re;ge{const ie=z.el=N.el;let{patchFlag:Re,dynamicChildren:ge,dirs:De}=z;Re|=N.patchFlag&16;const L=N.props||jt,M=z.props||jt;let Q;Y&&Tr(Y,!1),(Q=M.onVnodeBeforeUpdate)&&ls(Q,Y,z,N),De&&Sr(z,N,Y,"beforeUpdate"),Y&&Tr(Y,!0);const ye=re&&z.type!=="foreignObject";if(ge?O(N.dynamicChildren,ge,ie,Y,ce,ye,xe):Ne||W(N,z,ie,null,Y,ce,ye,xe,!1),Re>0){if(Re&16)B(ie,z,L,M,Y,ce,re);else if(Re&2&&L.class!==M.class&&r(ie,"class",null,M.class,re),Re&4&&r(ie,"style",L.style,M.style,re),Re&8){const X=z.dynamicProps;for(let se=0;se{Q&&ls(Q,Y,z,N),De&&Sr(z,N,Y,"updated")},ce)},O=(N,z,Y,ce,re,xe,Ne)=>{for(let ie=0;ie{if(Y!==ce){if(Y!==jt)for(const ie in Y)!pd(ie)&&!(ie in ce)&&r(N,ie,Y[ie],null,Ne,z.children,re,xe,ke);for(const ie in ce){if(pd(ie))continue;const Re=ce[ie],ge=Y[ie];Re!==ge&&ie!=="value"&&r(N,ie,ge,Re,Ne,z.children,re,xe,ke)}"value"in ce&&r(N,"value",Y.value,ce.value)}},H=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{const ge=z.el=N?N.el:a(""),De=z.anchor=N?N.anchor:a("");let{patchFlag:L,dynamicChildren:M,slotScopeIds:Q}=z;Q&&(ie=ie?ie.concat(Q):Q),N==null?(s(ge,Y,ce),s(De,Y,ce),I(z.children,Y,De,re,xe,Ne,ie,Re)):L>0&&L&64&&M&&N.dynamicChildren?(O(N.dynamicChildren,M,Y,re,xe,Ne,ie),(z.key!=null||re&&z===re.subTree)&&Ib(N,z,!0)):W(N,z,Y,De,re,xe,Ne,ie,Re)},te=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{z.slotScopeIds=ie,N==null?z.shapeFlag&512?re.ctx.activate(z,Y,ce,Ne,Re):k(z,Y,ce,re,xe,Ne,Re):$(N,z,Re)},k=(N,z,Y,ce,re,xe,Ne)=>{const ie=N.component=KI(N,ce,re);if(vu(N)&&(ie.ctx.renderer=_e),jI(ie),ie.asyncDep){if(re&&re.registerDep(ie,q),!N.el){const Re=ie.subTree=V(ms);E(null,Re,z,Y)}return}q(ie,N,z,Y,re,xe,Ne)},$=(N,z,Y)=>{const ce=z.component=N.component;if(rI(N,z,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,z,Y);return}else ce.next=z,JM(ce.update),ce.update();else z.el=N.el,ce.vnode=z},q=(N,z,Y,ce,re,xe,Ne)=>{const ie=()=>{if(N.isMounted){let{next:De,bu:L,u:M,parent:Q,vnode:ye}=N,X=De,se;Tr(N,!1),De?(De.el=ye.el,U(N,De,Ne)):De=ye,L&&zo(L),(se=De.props&&De.props.onVnodeBeforeUpdate)&&ls(se,Q,De,ye),Tr(N,!0);const Ae=hp(N),Ce=N.subTree;N.subTree=Ae,g(Ce,Ae,h(Ce.el),Z(Ce),N,re,xe),De.el=Ae.el,X===null&&oI(N,Ae.el),M&&Tn(M,re),(se=De.props&&De.props.onVnodeUpdated)&&Tn(()=>ls(se,Q,De,ye),re)}else{let De;const{el:L,props:M}=z,{bm:Q,m:ye,parent:X}=N,se=$o(z);if(Tr(N,!1),Q&&zo(Q),!se&&(De=M&&M.onVnodeBeforeMount)&&ls(De,X,z),Tr(N,!0),L&&Ue){const Ae=()=>{N.subTree=hp(N),Ue(L,N.subTree,N,re,null)};se?z.type.__asyncLoader().then(()=>!N.isUnmounted&&Ae()):Ae()}else{const Ae=N.subTree=hp(N);g(null,Ae,Y,ce,N,re,xe),z.el=Ae.el}if(ye&&Tn(ye,re),!se&&(De=M&&M.onVnodeMounted)){const Ae=z;Tn(()=>ls(De,X,Ae),re)}(z.shapeFlag&256||X&&$o(X.vnode)&&X.vnode.shapeFlag&256)&&N.a&&Tn(N.a,re),N.isMounted=!0,z=Y=ce=null}},Re=N.effect=new vb(ie,()=>Rb(ge),N.scope),ge=N.update=()=>Re.run();ge.id=N.uid,Tr(N,!0),ge()},U=(N,z,Y)=>{z.component=N;const ce=N.vnode.props;N.vnode=z,N.next=null,II(N,z.props,ce,Y),LI(N,z.children,Y),wa(),Cy(),Ra()},W=(N,z,Y,ce,re,xe,Ne,ie,Re=!1)=>{const ge=N&&N.children,De=N?N.shapeFlag:0,L=z.children,{patchFlag:M,shapeFlag:Q}=z;if(M>0){if(M&128){le(ge,L,Y,ce,re,xe,Ne,ie,Re);return}else if(M&256){ne(ge,L,Y,ce,re,xe,Ne,ie,Re);return}}Q&8?(De&16&&ke(ge,re,xe),L!==ge&&u(Y,L)):De&16?Q&16?le(ge,L,Y,ce,re,xe,Ne,ie,Re):ke(ge,re,xe,!0):(De&8&&u(Y,""),Q&16&&I(L,Y,ce,re,xe,Ne,ie,Re))},ne=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{N=N||Go,z=z||Go;const ge=N.length,De=z.length,L=Math.min(ge,De);let M;for(M=0;MDe?ke(N,re,xe,!0,!1,L):I(z,Y,ce,re,xe,Ne,ie,Re,L)},le=(N,z,Y,ce,re,xe,Ne,ie,Re)=>{let ge=0;const De=z.length;let L=N.length-1,M=De-1;for(;ge<=L&&ge<=M;){const Q=N[ge],ye=z[ge]=Re?Xi(z[ge]):Qs(z[ge]);if(rr(Q,ye))g(Q,ye,Y,null,re,xe,Ne,ie,Re);else break;ge++}for(;ge<=L&&ge<=M;){const Q=N[L],ye=z[M]=Re?Xi(z[M]):Qs(z[M]);if(rr(Q,ye))g(Q,ye,Y,null,re,xe,Ne,ie,Re);else break;L--,M--}if(ge>L){if(ge<=M){const Q=M+1,ye=QM)for(;ge<=L;)Se(N[ge],re,xe,!0),ge++;else{const Q=ge,ye=ge,X=new Map;for(ge=ye;ge<=M;ge++){const pt=z[ge]=Re?Xi(z[ge]):Qs(z[ge]);pt.key!=null&&X.set(pt.key,ge)}let se,Ae=0;const Ce=M-ye+1;let Fe=!1,Ze=0;const ft=new Array(Ce);for(ge=0;ge=Ce){Se(pt,re,xe,!0);continue}let st;if(pt.key!=null)st=X.get(pt.key);else for(se=ye;se<=M;se++)if(ft[se-ye]===0&&rr(pt,z[se])){st=se;break}st===void 0?Se(pt,re,xe,!0):(ft[st-ye]=ge+1,st>=Ze?Ze=st:Fe=!0,g(pt,z[st],Y,null,re,xe,Ne,ie,Re),Ae++)}const Be=Fe?FI(ft):Go;for(se=Be.length-1,ge=Ce-1;ge>=0;ge--){const pt=ye+ge,st=z[pt],Ye=pt+1{const{el:xe,type:Ne,transition:ie,children:Re,shapeFlag:ge}=N;if(ge&6){me(N.component.subTree,z,Y,ce);return}if(ge&128){N.suspense.move(z,Y,ce);return}if(ge&64){Ne.move(N,z,Y,_e);return}if(Ne===Pe){s(xe,z,Y);for(let L=0;Lie.enter(xe),re);else{const{leave:L,delayLeave:M,afterLeave:Q}=ie,ye=()=>s(xe,z,Y),X=()=>{L(xe,()=>{ye(),Q&&Q()})};M?M(xe,ye,X):X()}else s(xe,z,Y)},Se=(N,z,Y,ce=!1,re=!1)=>{const{type:xe,props:Ne,ref:ie,children:Re,dynamicChildren:ge,shapeFlag:De,patchFlag:L,dirs:M}=N;if(ie!=null&&gg(ie,null,Y,N,!0),De&256){z.ctx.deactivate(N);return}const Q=De&1&&M,ye=!$o(N);let X;if(ye&&(X=Ne&&Ne.onVnodeBeforeUnmount)&&ls(X,z,N),De&6)Me(N.component,Y,ce);else{if(De&128){N.suspense.unmount(Y,ce);return}Q&&Sr(N,null,z,"beforeUnmount"),De&64?N.type.remove(N,z,Y,re,_e,ce):ge&&(xe!==Pe||L>0&&L&64)?ke(ge,z,Y,!1,!0):(xe===Pe&&L&384||!re&&De&16)&&ke(Re,z,Y),ce&&de(N)}(ye&&(X=Ne&&Ne.onVnodeUnmounted)||Q)&&Tn(()=>{X&&ls(X,z,N),Q&&Sr(N,null,z,"unmounted")},Y)},de=N=>{const{type:z,el:Y,anchor:ce,transition:re}=N;if(z===Pe){Ee(Y,ce);return}if(z===hd){S(N);return}const xe=()=>{i(Y),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(N.shapeFlag&1&&re&&!re.persisted){const{leave:Ne,delayLeave:ie}=re,Re=()=>Ne(Y,xe);ie?ie(N.el,xe,Re):Re()}else xe()},Ee=(N,z)=>{let Y;for(;N!==z;)Y=f(N),i(N),N=Y;i(z)},Me=(N,z,Y)=>{const{bum:ce,scope:re,update:xe,subTree:Ne,um:ie}=N;ce&&zo(ce),re.stop(),xe&&(xe.active=!1,Se(Ne,N,z,Y)),ie&&Tn(ie,z),Tn(()=>{N.isUnmounted=!0},z),z&&z.pendingBranch&&!z.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===z.pendingId&&(z.deps--,z.deps===0&&z.resolve())},ke=(N,z,Y,ce=!1,re=!1,xe=0)=>{for(let Ne=xe;NeN.shapeFlag&6?Z(N.component.subTree):N.shapeFlag&128?N.suspense.next():f(N.anchor||N.el),he=(N,z,Y)=>{N==null?z._vnode&&Se(z._vnode,null,null,!0):g(z._vnode||null,N,z,null,null,null,Y),Cy(),aR(),z._vnode=N},_e={p:g,um:Se,m:me,r:de,mt:k,mc:I,pc:W,pbc:O,n:Z,o:t};let we,Ue;return e&&([we,Ue]=e(_e)),{render:he,hydrate:we,createApp:OI(he,we)}}function Tr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Ib(t,e,n=!1){const s=t.children,i=e.children;if(rt(s)&&rt(i))for(let r=0;r>1,t[n[a]]0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}const BI=t=>t.__isTeleport,fl=t=>t&&(t.disabled||t.disabled===""),Uy=t=>typeof SVGElement<"u"&&t instanceof SVGElement,bg=(t,e)=>{const n=t&&t.to;return en(n)?e?e(n):null:n},GI={__isTeleport:!0,process(t,e,n,s,i,r,o,a,c,d){const{mc:u,pc:h,pbc:f,o:{insert:m,querySelector:_,createText:g,createComment:b}}=d,E=fl(e.props);let{shapeFlag:y,children:v,dynamicChildren:S}=e;if(t==null){const R=e.el=g(""),C=e.anchor=g("");m(R,n,s),m(C,n,s);const A=e.target=bg(e.props,_),I=e.targetAnchor=g("");A&&(m(I,A),o=o||Uy(A));const x=(O,B)=>{y&16&&u(v,O,B,i,r,o,a,c)};E?x(n,C):A&&x(A,I)}else{e.el=t.el;const R=e.anchor=t.anchor,C=e.target=t.target,A=e.targetAnchor=t.targetAnchor,I=fl(t.props),x=I?n:C,O=I?R:A;if(o=o||Uy(C),S?(f(t.dynamicChildren,S,x,i,r,o,a),Ib(t,e,!0)):c||h(t,e,x,O,i,r,o,a,!1),E)I||vc(e,n,R,d,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const B=e.target=bg(e.props,_);B&&vc(e,B,null,d,0)}else I&&vc(e,C,A,d,1)}AR(e)},remove(t,e,n,s,{um:i,o:{remove:r}},o){const{shapeFlag:a,children:c,anchor:d,targetAnchor:u,target:h,props:f}=t;if(h&&r(u),(o||!fl(f))&&(r(d),a&16))for(let m=0;m0?Ls||Go:null,HI(),Dl>0&&Ls&&Ls.push(t),t}function w(t,e,n,s,i,r){return NR(l(t,e,n,s,i,r,!0))}function dt(t,e,n,s,i){return NR(V(t,e,n,s,i,!0))}function Ll(t){return t?t.__v_isVNode===!0:!1}function rr(t,e){return t.type===e.type&&t.key===e.key}const Cu="__vInternal",OR=({key:t})=>t??null,fd=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?en(t)||pn(t)||bt(t)?{i:xn,r:t,k:e,f:!!n}:t:null);function l(t,e=null,n=null,s=0,i=null,r=t===Pe?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&OR(e),ref:e&&fd(e),scopeId:yu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xn};return a?(kb(c,n),r&128&&t.normalize(c)):n&&(c.shapeFlag|=en(n)?8:16),Dl>0&&!o&&Ls&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ls.push(c),c}const V=qI;function qI(t,e=null,n=null,s=0,i=null,r=!1){if((!t||t===bR)&&(t=ms),Ll(t)){const a=ki(t,e,!0);return n&&kb(a,n),Dl>0&&!r&&Ls&&(a.shapeFlag&6?Ls[Ls.indexOf(t)]=a:Ls.push(a)),a.patchFlag|=-2,a}if(JI(t)&&(t=t.__vccOpts),e){e=$I(e);let{class:a,style:c}=e;a&&!en(a)&&(e.class=Ge(a)),qt(c)&&(tR(c)&&!rt(c)&&(c=nn({},c)),e.style=Ht(c))}const o=en(t)?1:dR(t)?128:BI(t)?64:qt(t)?4:bt(t)?2:0;return l(t,e,n,s,i,o,r,!0)}function $I(t){return t?tR(t)||Cu in t?nn({},t):t:null}function ki(t,e,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=t,a=e?MR(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&OR(a),ref:e&&e.ref?n&&i?rt(i)?i.concat(fd(e)):[i,fd(e)]:fd(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Pe?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ki(t.ssContent),ssFallback:t.ssFallback&&ki(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function et(t=" ",e=0){return V(xu,null,t,e)}function Na(t,e){const n=V(hd,null,t);return n.staticCount=e,n}function G(t="",e=!1){return e?(T(),dt(ms,null,t)):V(ms,null,t)}function Qs(t){return t==null||typeof t=="boolean"?V(ms):rt(t)?V(Pe,null,t.slice()):typeof t=="object"?Xi(t):V(xu,null,String(t))}function Xi(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ki(t)}function kb(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(rt(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),kb(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!(Cu in e)?e._ctx=xn:i===3&&xn&&(xn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else bt(e)?(e={default:e,_ctx:xn},n=32):(e=String(e),s&64?(n=16,e=[et(e)]):n=8);t.children=e,t.shapeFlag|=n}function MR(...t){const e={};for(let n=0;nbn||xn;let Lb,_o,By="__VUE_INSTANCE_SETTERS__";(_o=lg()[By])||(_o=lg()[By]=[]),_o.push(t=>bn=t),Lb=t=>{_o.length>1?_o.forEach(e=>e(t)):_o[0](t)};const ea=t=>{Lb(t),t.scope.on()},$r=()=>{bn&&bn.scope.off(),Lb(null)};function IR(t){return t.vnode.shapeFlag&4}let Pl=!1;function jI(t,e=!1){Pl=e;const{props:n,children:s}=t.vnode,i=IR(t);MI(t,n,i,e),DI(t,s);const r=i?QI(t,e):void 0;return Pl=!1,r}function QI(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=jl(new Proxy(t.ctx,TI));const{setup:s}=n;if(s){const i=t.setupContext=s.length>1?ZI(t):null;ea(t),wa();const r=dr(s,t,0,[t.props,i]);if(Ra(),$r(),Dw(r)){if(r.then($r,$r),e)return r.then(o=>{Gy(t,o,e)}).catch(o=>{bu(o,t,0)});t.asyncDep=r}else Gy(t,r,e)}else kR(t,e)}function Gy(t,e,n){bt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:qt(e)&&(t.setupState=sR(e)),kR(t,n)}let Vy;function kR(t,e,n){const s=t.type;if(!t.render){if(!e&&Vy&&!s.render){const i=s.template||Ob(t).template;if(i){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:c}=s,d=nn(nn({isCustomElement:r,delimiters:a},o),c);s.render=Vy(i,d)}}t.render=s.render||Ps}ea(t),wa(),xI(t),Ra(),$r()}function XI(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Yn(t,"get","$attrs"),e[n]}}))}function ZI(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return XI(t)},slots:t.slots,emit:t.emit,expose:e}}function wu(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(sR(jl(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in hl)return hl[n](t)},has(e,n){return n in e||n in hl}}))}function Eg(t,e=!0){return bt(t)?t.displayName||t.name:t.name||e&&t.__name}function JI(t){return bt(t)&&"__vccOpts"in t}const Je=(t,e)=>QM(t,e,Pl);function Pb(t,e,n){const s=arguments.length;return s===2?qt(e)&&!rt(e)?Ll(e)?V(t,null,[e]):V(t,e):V(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ll(n)&&(n=[n]),V(t,e,n))}const ek=Symbol.for("v-scx"),tk=()=>Zn(ek),nk="3.3.4",sk="http://www.w3.org/2000/svg",Lr=typeof document<"u"?document:null,zy=Lr&&Lr.createElement("template"),ik={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e?Lr.createElementNS(sk,t):Lr.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>Lr.createTextNode(t),createComment:t=>Lr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Lr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,r){const o=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{zy.innerHTML=s?`${t}`:t;const a=zy.content;if(s){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function rk(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function ok(t,e,n){const s=t.style,i=en(n);if(n&&!i){if(e&&!en(e))for(const r in e)n[r]==null&&yg(s,r,"");for(const r in n)yg(s,r,n[r])}else{const r=s.display;i?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}const Hy=/\s*!important$/;function yg(t,e,n){if(rt(n))n.forEach(s=>yg(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=ak(t,e);Hy.test(n)?t.setProperty(ao(s),n.replace(Hy,""),"important"):t[s]=n}}const qy=["Webkit","Moz","ms"],Ep={};function ak(t,e){const n=Ep[e];if(n)return n;let s=oi(e);if(s!=="filter"&&s in t)return Ep[e]=s;s=_u(s);for(let i=0;iyp||(_k.then(()=>yp=0),yp=Date.now());function fk(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;fs(mk(s,n.value),e,5,[s])};return n.value=t,n.attached=hk(),n}function mk(t,e){if(rt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Wy=/^on[a-z]/,gk=(t,e,n,s,i=!1,r,o,a,c)=>{e==="class"?rk(t,s,i):e==="style"?ok(t,n,s):uu(e)?mb(e)||uk(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):bk(t,e,s,i))?ck(t,e,s,r,o,a,c):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),lk(t,e,s,i))};function bk(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&Wy.test(e)&&bt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Wy.test(e)&&en(n)?!1:e in t}const Vi="transition",Wa="animation",Us=(t,{slots:e})=>Pb(dI,LR(t),e);Us.displayName="Transition";const DR={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},Ek=Us.props=nn({},hR,DR),xr=(t,e=[])=>{rt(t)?t.forEach(n=>n(...e)):t&&t(...e)},Ky=t=>t?rt(t)?t.some(e=>e.length>1):t.length>1:!1;function LR(t){const e={};for(const H in t)H in DR||(e[H]=t[H]);if(t.css===!1)return e;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:d=o,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,_=yk(i),g=_&&_[0],b=_&&_[1],{onBeforeEnter:E,onEnter:y,onEnterCancelled:v,onLeave:S,onLeaveCancelled:R,onBeforeAppear:C=E,onAppear:A=y,onAppearCancelled:I=v}=e,x=(H,te,k)=>{Qi(H,te?u:a),Qi(H,te?d:o),k&&k()},O=(H,te)=>{H._isLeaving=!1,Qi(H,h),Qi(H,m),Qi(H,f),te&&te()},B=H=>(te,k)=>{const $=H?A:y,q=()=>x(te,H,k);xr($,[te,q]),jy(()=>{Qi(te,H?c:r),xi(te,H?u:a),Ky($)||Qy(te,s,g,q)})};return nn(e,{onBeforeEnter(H){xr(E,[H]),xi(H,r),xi(H,o)},onBeforeAppear(H){xr(C,[H]),xi(H,c),xi(H,d)},onEnter:B(!1),onAppear:B(!0),onLeave(H,te){H._isLeaving=!0;const k=()=>O(H,te);xi(H,h),UR(),xi(H,f),jy(()=>{H._isLeaving&&(Qi(H,h),xi(H,m),Ky(S)||Qy(H,s,b,k))}),xr(S,[H,k])},onEnterCancelled(H){x(H,!1),xr(v,[H])},onAppearCancelled(H){x(H,!0),xr(I,[H])},onLeaveCancelled(H){O(H),xr(R,[H])}})}function yk(t){if(t==null)return null;if(qt(t))return[vp(t.enter),vp(t.leave)];{const e=vp(t);return[e,e]}}function vp(t){return tM(t)}function xi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Qi(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function jy(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let vk=0;function Qy(t,e,n,s){const i=t._endId=++vk,r=()=>{i===t._endId&&s()};if(n)return setTimeout(r,n);const{type:o,timeout:a,propCount:c}=PR(t,e);if(!o)return s();const d=o+"end";let u=0;const h=()=>{t.removeEventListener(d,f),r()},f=m=>{m.target===t&&++u>=c&&h()};setTimeout(()=>{u(n[_]||"").split(", "),i=s(`${Vi}Delay`),r=s(`${Vi}Duration`),o=Xy(i,r),a=s(`${Wa}Delay`),c=s(`${Wa}Duration`),d=Xy(a,c);let u=null,h=0,f=0;e===Vi?o>0&&(u=Vi,h=o,f=r.length):e===Wa?d>0&&(u=Wa,h=d,f=c.length):(h=Math.max(o,d),u=h>0?o>d?Vi:Wa:null,f=u?u===Vi?r.length:c.length:0);const m=u===Vi&&/\b(transform|all)(,|$)/.test(s(`${Vi}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:m}}function Xy(t,e){for(;t.lengthZy(n)+Zy(t[s])))}function Zy(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function UR(){return document.body.offsetHeight}const FR=new WeakMap,BR=new WeakMap,GR={name:"TransitionGroup",props:nn({},Ek,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Db(),s=_R();let i,r;return Ql(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!wk(i[0].el,n.vnode.el,o))return;i.forEach(Tk),i.forEach(xk);const a=i.filter(Ck);UR(),a.forEach(c=>{const d=c.el,u=d.style;xi(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const h=d._moveCb=f=>{f&&f.target!==d||(!f||/transform$/.test(f.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,Qi(d,o))};d.addEventListener("transitionend",h)})}),()=>{const o=It(t),a=LR(o);let c=o.tag||Pe;i=r,r=e.default?Ab(e.default()):[];for(let d=0;ddelete t.mode;GR.props;const ii=GR;function Tk(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function xk(t){BR.set(t,t.el.getBoundingClientRect())}function Ck(t){const e=FR.get(t),n=BR.get(t),s=e.left-n.left,i=e.top-n.top;if(s||i){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",t}}function wk(t,e,n){const s=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:r}=PR(s);return i.removeChild(s),r}const mr=t=>{const e=t.props["onUpdate:modelValue"]||!1;return rt(e)?n=>zo(e,n):e};function Rk(t){t.target.composing=!0}function Jy(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const pe={created(t,{modifiers:{lazy:e,trim:n,number:s}},i){t._assign=mr(i);const r=s||i.props&&i.props.type==="number";Ri(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;n&&(a=a.trim()),r&&(a=Od(a)),t._assign(a)}),n&&Ri(t,"change",()=>{t.value=t.value.trim()}),e||(Ri(t,"compositionstart",Rk),Ri(t,"compositionend",Jy),Ri(t,"change",Jy))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:s,number:i}},r){if(t._assign=mr(r),t.composing||document.activeElement===t&&t.type!=="range"&&(n||s&&t.value.trim()===e||(i||t.type==="number")&&Od(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},$e={deep:!0,created(t,e,n){t._assign=mr(n),Ri(t,"change",()=>{const s=t._modelValue,i=ta(t),r=t.checked,o=t._assign;if(rt(s)){const a=Eb(s,i),c=a!==-1;if(r&&!c)o(s.concat(i));else if(!r&&c){const d=[...s];d.splice(a,1),o(d)}}else if(xa(s)){const a=new Set(s);r?a.add(i):a.delete(i),o(a)}else o(VR(t,r))})},mounted:ev,beforeUpdate(t,e,n){t._assign=mr(n),ev(t,e,n)}};function ev(t,{value:e,oldValue:n},s){t._modelValue=e,rt(e)?t.checked=Eb(e,s.props.value)>-1:xa(e)?t.checked=e.has(s.props.value):e!==n&&(t.checked=Zr(e,VR(t,!0)))}const Ak={created(t,{value:e},n){t.checked=Zr(e,n.props.value),t._assign=mr(n),Ri(t,"change",()=>{t._assign(ta(t))})},beforeUpdate(t,{value:e,oldValue:n},s){t._assign=mr(s),e!==n&&(t.checked=Zr(e,s.props.value))}},kt={deep:!0,created(t,{value:e,modifiers:{number:n}},s){const i=xa(e);Ri(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>n?Od(ta(o)):ta(o));t._assign(t.multiple?i?new Set(r):r:r[0])}),t._assign=mr(s)},mounted(t,{value:e}){tv(t,e)},beforeUpdate(t,e,n){t._assign=mr(n)},updated(t,{value:e}){tv(t,e)}};function tv(t,e){const n=t.multiple;if(!(n&&!rt(e)&&!xa(e))){for(let s=0,i=t.options.length;s-1:r.selected=e.has(o);else if(Zr(ta(r),e)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ta(t){return"_value"in t?t._value:t.value}function VR(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Nk=["ctrl","shift","alt","meta"],Ok={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Nk.some(n=>t[`${n}Key`]&&!e.includes(n))},j=(t,e)=>(n,...s)=>{for(let i=0;in=>{if(!("key"in n))return;const s=ao(n.key);if(e.some(i=>i===s||Mk[i]===s))return t(n)},wt={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Ka(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Ka(t,!0),s.enter(t)):s.leave(t,()=>{Ka(t,!1)}):Ka(t,e))},beforeUnmount(t,{value:e}){Ka(t,e)}};function Ka(t,e){t.style.display=e?t._vod:"none"}const Ik=nn({patchProp:gk},ik);let nv;function kk(){return nv||(nv=PI(Ik))}const Dk=(...t)=>{const e=kk().createApp(...t),{mount:n}=e;return e.mount=s=>{const i=Lk(s);if(!i)return;const r=e._component;!bt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function Lk(t){return en(t)?document.querySelector(t):t}function Pk(){return zR().__VUE_DEVTOOLS_GLOBAL_HOOK__}function zR(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Uk=typeof Proxy=="function",Fk="devtools-plugin:setup",Bk="plugin:settings:set";let ho,vg;function Gk(){var t;return ho!==void 0||(typeof window<"u"&&window.performance?(ho=!0,vg=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(ho=!0,vg=global.perf_hooks.performance):ho=!1),ho}function Vk(){return Gk()?vg.now():Date.now()}class zk{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const s={};if(e.settings)for(const o in e.settings){const a=e.settings[o];s[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return Vk()}},n&&n.on(Bk,(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 n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Hk(t,e){const n=t,s=zR(),i=Pk(),r=Uk&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(Fk,t,e);else{const o=r?new zk(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT @@ -15,8 +15,8 @@ Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function d(E,y){for(var v=y.length,S=0;S1?arguments[1]:void 0,y=E!==void 0,v=0,S=h(_),R,C,A,I;if(y&&(E=r(E,b>2?arguments[2]:void 0,2)),S!=null&&!(g==Array&&c(S)))for(I=S.call(_),C=new g;!(A=I.next()).done;v++)u(C,v,y?a(I,E,[A.value,v],!0):A.value);else for(R=d(_.length),C=new g(R);R>v;v++)u(C,v,y?E(_[v],v):_[v]);return C.length=v,C}},"./node_modules/core-js/internals/array-includes.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-indexed-object.js"),o=i("./node_modules/core-js/internals/to-length.js"),a=i("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(c){return function(d,u,h){var f=r(d),m=o(f.length),_=a(h,m),g;if(c&&u!=u){for(;m>_;)if(g=f[_++],g!=g)return!0}else for(;m>_;_++)if((c||_ in f)&&f[_]===u)return c||_||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,s,i){var r=i("./node_modules/core-js/internals/a-function.js");n.exports=function(o,a,c){if(r(o),a===void 0)return o;switch(c){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,h){return o.call(a,d,u,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,s,i){var r=i("./node_modules/core-js/internals/an-object.js");n.exports=function(o,a,c,d){try{return d?a(r(c)[0],c[1]):a(c)}catch(h){var u=o.return;throw u!==void 0&&r(u.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,s,i){var r=i("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}n.exports=function(u,h){if(!h&&!a)return!1;var f=!1;try{var m={};m[o]=function(){return{next:function(){return{done:f=!0}}}},u(m)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(n,s){var i={}.toString;n.exports=function(r){return i.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,s,i){var r=i("./node_modules/core-js/internals/classof-raw.js"),o=i("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),c=r(function(){return arguments}())=="Arguments",d=function(u,h){try{return u[h]}catch{}};n.exports=function(u){var h,f,m;return u===void 0?"Undefined":u===null?"Null":typeof(f=d(h=Object(u),a))=="string"?f:c?r(h):(m=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":m}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/own-keys.js"),a=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=i("./node_modules/core-js/internals/object-define-property.js");n.exports=function(d,u){for(var h=o(u),f=c.f,m=a.f,_=0;_",R="java"+v+":",C;for(b.style.display="none",d.appendChild(b),b.src=String(R),C=b.contentWindow.document,C.open(),C.write(y+v+S+"document.F=Object"+y+"/"+v+S),C.close(),g=C.F;E--;)delete g[m][a[E]];return g()};n.exports=Object.create||function(E,y){var v;return E!==null?(_[m]=r(E),v=new _,_[m]=null,v[f]=E):v=g(),y===void 0?v:o(v,y)},c[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-define-property.js"),a=i("./node_modules/core-js/internals/an-object.js"),c=i("./node_modules/core-js/internals/object-keys.js");n.exports=r?Object.defineProperties:function(u,h){a(u);for(var f=c(h),m=f.length,_=0,g;m>_;)o.f(u,g=f[_++],h[g]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/ie8-dom-define.js"),a=i("./node_modules/core-js/internals/an-object.js"),c=i("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;s.f=r?d:function(h,f,m){if(a(h),f=c(f,!0),a(m),o)try{return d(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[f]=m.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js"),c=i("./node_modules/core-js/internals/to-indexed-object.js"),d=i("./node_modules/core-js/internals/to-primitive.js"),u=i("./node_modules/core-js/internals/has.js"),h=i("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;s.f=r?f:function(_,g){if(_=c(_),g=d(g,!0),h)try{return f(_,g)}catch{}if(u(_,g))return a(!o.f.call(_,g),_[g])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(d){return r(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,s){s.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-object.js"),a=i("./node_modules/core-js/internals/shared-key.js"),c=i("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;n.exports=c?Object.getPrototypeOf:function(h){return h=o(h),r(h,d)?h[d]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-indexed-object.js"),a=i("./node_modules/core-js/internals/array-includes.js"),c=i("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);n.exports=function(u,h){var f=o(u),m=0,_=[],g;for(g in f)!r(c,g)&&r(f,g)&&_.push(g);for(;h.length>m;)r(f,g=h[m++])&&(~d(_,g)||_.push(g));return _}},"./node_modules/core-js/internals/object-keys.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(c){return r(c,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,s,i){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);s.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,s,i){var r=i("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),o=a instanceof Array}catch{}return function(u,h){return r(u,h),o?c.call(u,h):u.__proto__=h,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/object-get-own-property-names.js"),a=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("./node_modules/core-js/internals/an-object.js"),d=r.Reflect;n.exports=d&&d.ownKeys||function(h){var f=o.f(c(h)),m=a.f;return m?f.concat(m(h)):f}},"./node_modules/core-js/internals/path.js":function(n,s,i){n.exports=i("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/hide.js"),c=i("./node_modules/core-js/internals/has.js"),d=i("./node_modules/core-js/internals/set-global.js"),u=i("./node_modules/core-js/internals/function-to-string.js"),h=i("./node_modules/core-js/internals/internal-state.js"),f=h.get,m=h.enforce,_=String(u).split("toString");o("inspectSource",function(g){return u.call(g)}),(n.exports=function(g,b,E,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,R=y?!!y.noTargetGet:!1;if(typeof E=="function"&&(typeof b=="string"&&!c(E,"name")&&a(E,"name",b),m(E).source=_.join(typeof b=="string"?b:"")),g===r){S?g[b]=E:d(b,E);return}else v?!R&&g[b]&&(S=!0):delete g[b];S?g[b]=E:a(g,b,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,s){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/hide.js");n.exports=function(a,c){try{o(r,a,c)}catch{r[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-define-property.js").f,o=i("./node_modules/core-js/internals/has.js"),a=i("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");n.exports=function(d,u,h){d&&!o(d=h?d:d.prototype,c)&&r(d,c,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(n,s,i){var r=i("./node_modules/core-js/internals/shared.js"),o=i("./node_modules/core-js/internals/uid.js"),a=r("keys");n.exports=function(c){return a[c]||(a[c]=o(c))}},"./node_modules/core-js/internals/shared.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/set-global.js"),a=i("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",d=r[c]||o(c,{});(n.exports=function(u,h){return d[u]||(d[u]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,c,d){var u=String(o(a)),h=r(c),f=u.length,m,_;return h<0||h>=f?d?"":void 0:(m=u.charCodeAt(h),m<55296||m>56319||h+1===f||(_=u.charCodeAt(h+1))<56320||_>57343?d?u.charAt(h):m:d?u.slice(h,h+2):(m-55296<<10)+(_-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;n.exports=function(c,d){var u=r(c);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,s,i){var r=i("./node_modules/core-js/internals/indexed-object.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,s){var i=Math.ceil,r=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?r:i)(o)}},"./node_modules/core-js/internals/to-length.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.min;n.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,s,i){var r=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(n,s,i){var r=i("./node_modules/core-js/internals/is-object.js");n.exports=function(o,a){if(!r(o))return o;var c,d;if(a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o))||typeof(c=o.valueOf)=="function"&&!r(d=c.call(o))||!a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,s){var i=0,r=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++i+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,s,i){var r=i("./node_modules/core-js/internals/is-object.js"),o=i("./node_modules/core-js/internals/an-object.js");n.exports=function(a,c){if(o(a),!r(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/uid.js"),c=i("./node_modules/core-js/internals/native-symbol.js"),d=r.Symbol,u=o("wks");n.exports=function(h){return u[h]||(u[h]=c&&d[h]||(c?d:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(n,s,i){var r=i("./node_modules/core-js/internals/export.js"),o=i("./node_modules/core-js/internals/array-from.js"),a=i("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(d){Array.from(d)});r({target:"Array",stat:!0,forced:c},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,s,i){var r=i("./node_modules/core-js/internals/string-at.js"),o=i("./node_modules/core-js/internals/internal-state.js"),a=i("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=o.set,u=o.getterFor(c);a(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var f=u(this),m=f.string,_=f.index,g;return _>=m.length?{value:void 0,done:!0}:(g=r(m,_,!0),f.index+=g.length,{value:g,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,s){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}n.exports=i},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(g){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,g),this.name=b,this.contents=E,this.tags=y,this.attrs=r({},u.default,{class:"feather feather-"+b})}return o(g,[{key:"toSvg",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,E,{class:(0,c.default)(this.attrs.class,E.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),g}();function _(g){return Object.keys(g).map(function(b){return b+'="'+g[b]+'"'}).join(" ")}s.default=m},"./src/icons.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icon.js"),o=h(r),a=i("./dist/icons.json"),c=h(a),d=i("./src/tags.json"),u=h(d);function h(f){return f&&f.__esModule?f:{default:f}}s.default=Object.keys(c.default).map(function(f){return new o.default(f,c.default[f],u.default[f])}).reduce(function(f,m){return f[m.name]=m,f},{})},"./src/index.js":function(n,s,i){var r=i("./src/icons.js"),o=h(r),a=i("./src/to-svg.js"),c=h(a),d=i("./src/replace.js"),u=h(d);function h(f){return f&&f.__esModule?f:{default:f}}n.exports={icons:o.default,toSvg:c.default,replace:u.default}},"./src/replace.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(_){for(var g=1;g0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var g=document.querySelectorAll("[data-feather]");Array.from(g).forEach(function(b){return f(b,_)})}function f(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=m(_),E=b["data-feather"];delete b["data-feather"];var y=d.default[E].toSvg(r({},g,b,{class:(0,a.default)(g.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");_.parentNode.replaceChild(S,_)}function m(_){return Array.from(_.attributes).reduce(function(g,b){return g[b.name]=b.value,g},{})}s.default=h},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icons.js"),o=a(r);function a(d){return d&&d.__esModule?d:{default:d}}function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}s.default=c},0:function(n,s,i){i("./node_modules/core-js/es/array/from.js"),n.exports=i("./src/index.js")}})})})(PA);var KP=PA.exports;const ze=gr(KP);const ot=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n},jP={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),Le(()=>{ze.replace()})},showToast(t,e=3,n=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:s,log_type:n,message:t,show:!0};this.toastArr.push(i),Le(()=>{ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=s)},e*1e3)}},watch:{}},xs=t=>(Ss("data-v-46f379e5"),t=t(),Ts(),t),QP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},XP={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"},ZP={class:"flex flex-row flex-grow items-center h-auto"},JP={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"},e3=xs(()=>l("i",{"data-feather":"x"},null,-1)),t3=xs(()=>l("span",{class:"sr-only"},"Cross icon",-1)),n3=[e3,t3],s3={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"},i3=xs(()=>l("i",{"data-feather":"check"},null,-1)),r3=xs(()=>l("span",{class:"sr-only"},"Check icon",-1)),o3=[i3,r3],a3={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"},l3=xs(()=>l("i",{"data-feather":"info"},null,-1)),c3=xs(()=>l("span",{class:"sr-only"},null,-1)),d3=[l3,c3],u3={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"},p3=xs(()=>l("i",{"data-feather":"alert-triangle"},null,-1)),_3=xs(()=>l("span",{class:"sr-only"},null,-1)),h3=[p3,_3],f3=["title"],m3={class:"flex"},g3=["onClick"],b3=xs(()=>l("span",{class:"sr-only"},"Copy message",-1)),E3=xs(()=>l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),y3=[b3,E3],v3=["onClick"],S3=xs(()=>l("span",{class:"sr-only"},"Close",-1)),T3=xs(()=>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)),x3=[S3,T3];function C3(t,e,n,s,i,r){return T(),w("div",QP,[V(ii,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.toastArr,o=>(T(),w("div",{key:o.id,class:"relative"},[l("div",XP,[l("div",ZP,[o.log_type==0?(T(),w("div",JP,n3)):G("",!0),o.log_type==1?(T(),w("div",s3,o3)):G("",!0),o.log_type==2?(T(),w("div",a3,d3)):G("",!0),o.log_type==3?(T(),w("div",u3,h3)):G("",!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},K(o.message),9,f3)]),l("div",m3,[l("button",{type:"button",onClick:j(a=>r.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"},y3,8,g3),l("button",{type:"button",onClick:a=>r.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"},x3,8,v3)])])]))),128))]),_:1})])}const Zl=ot(jP,[["render",C3],["__scopeId","data-v-46f379e5"]]);var Pt={};const w3="Á",R3="á",A3="Ă",N3="ă",O3="∾",M3="∿",I3="∾̳",k3="Â",D3="â",L3="´",P3="А",U3="а",F3="Æ",B3="æ",G3="⁡",V3="𝔄",z3="𝔞",H3="À",q3="à",$3="ℵ",Y3="ℵ",W3="Α",K3="α",j3="Ā",Q3="ā",X3="⨿",Z3="&",J3="&",eU="⩕",tU="⩓",nU="∧",sU="⩜",iU="⩘",rU="⩚",oU="∠",aU="⦤",lU="∠",cU="⦨",dU="⦩",uU="⦪",pU="⦫",_U="⦬",hU="⦭",fU="⦮",mU="⦯",gU="∡",bU="∟",EU="⊾",yU="⦝",vU="∢",SU="Å",TU="⍼",xU="Ą",CU="ą",wU="𝔸",RU="𝕒",AU="⩯",NU="≈",OU="⩰",MU="≊",IU="≋",kU="'",DU="⁡",LU="≈",PU="≊",UU="Å",FU="å",BU="𝒜",GU="𝒶",VU="≔",zU="*",HU="≈",qU="≍",$U="Ã",YU="ã",WU="Ä",KU="ä",jU="∳",QU="⨑",XU="≌",ZU="϶",JU="‵",eF="∽",tF="⋍",nF="∖",sF="⫧",iF="⊽",rF="⌅",oF="⌆",aF="⌅",lF="⎵",cF="⎶",dF="≌",uF="Б",pF="б",_F="„",hF="∵",fF="∵",mF="∵",gF="⦰",bF="϶",EF="ℬ",yF="ℬ",vF="Β",SF="β",TF="ℶ",xF="≬",CF="𝔅",wF="𝔟",RF="⋂",AF="◯",NF="⋃",OF="⨀",MF="⨁",IF="⨂",kF="⨆",DF="★",LF="▽",PF="△",UF="⨄",FF="⋁",BF="⋀",GF="⤍",VF="⧫",zF="▪",HF="▴",qF="▾",$F="◂",YF="▸",WF="␣",KF="▒",jF="░",QF="▓",XF="█",ZF="=⃥",JF="≡⃥",e4="⫭",t4="⌐",n4="𝔹",s4="𝕓",i4="⊥",r4="⊥",o4="⋈",a4="⧉",l4="┐",c4="╕",d4="╖",u4="╗",p4="┌",_4="╒",h4="╓",f4="╔",m4="─",g4="═",b4="┬",E4="╤",y4="╥",v4="╦",S4="┴",T4="╧",x4="╨",C4="╩",w4="⊟",R4="⊞",A4="⊠",N4="┘",O4="╛",M4="╜",I4="╝",k4="└",D4="╘",L4="╙",P4="╚",U4="│",F4="║",B4="┼",G4="╪",V4="╫",z4="╬",H4="┤",q4="╡",$4="╢",Y4="╣",W4="├",K4="╞",j4="╟",Q4="╠",X4="‵",Z4="˘",J4="˘",eB="¦",tB="𝒷",nB="ℬ",sB="⁏",iB="∽",rB="⋍",oB="⧅",aB="\\",lB="⟈",cB="•",dB="•",uB="≎",pB="⪮",_B="≏",hB="≎",fB="≏",mB="Ć",gB="ć",bB="⩄",EB="⩉",yB="⩋",vB="∩",SB="⋒",TB="⩇",xB="⩀",CB="ⅅ",wB="∩︀",RB="⁁",AB="ˇ",NB="ℭ",OB="⩍",MB="Č",IB="č",kB="Ç",DB="ç",LB="Ĉ",PB="ĉ",UB="∰",FB="⩌",BB="⩐",GB="Ċ",VB="ċ",zB="¸",HB="¸",qB="⦲",$B="¢",YB="·",WB="·",KB="𝔠",jB="ℭ",QB="Ч",XB="ч",ZB="✓",JB="✓",e5="Χ",t5="χ",n5="ˆ",s5="≗",i5="↺",r5="↻",o5="⊛",a5="⊚",l5="⊝",c5="⊙",d5="®",u5="Ⓢ",p5="⊖",_5="⊕",h5="⊗",f5="○",m5="⧃",g5="≗",b5="⨐",E5="⫯",y5="⧂",v5="∲",S5="”",T5="’",x5="♣",C5="♣",w5=":",R5="∷",A5="⩴",N5="≔",O5="≔",M5=",",I5="@",k5="∁",D5="∘",L5="∁",P5="ℂ",U5="≅",F5="⩭",B5="≡",G5="∮",V5="∯",z5="∮",H5="𝕔",q5="ℂ",$5="∐",Y5="∐",W5="©",K5="©",j5="℗",Q5="∳",X5="↵",Z5="✗",J5="⨯",e6="𝒞",t6="𝒸",n6="⫏",s6="⫑",i6="⫐",r6="⫒",o6="⋯",a6="⤸",l6="⤵",c6="⋞",d6="⋟",u6="↶",p6="⤽",_6="⩈",h6="⩆",f6="≍",m6="∪",g6="⋓",b6="⩊",E6="⊍",y6="⩅",v6="∪︀",S6="↷",T6="⤼",x6="⋞",C6="⋟",w6="⋎",R6="⋏",A6="¤",N6="↶",O6="↷",M6="⋎",I6="⋏",k6="∲",D6="∱",L6="⌭",P6="†",U6="‡",F6="ℸ",B6="↓",G6="↡",V6="⇓",z6="‐",H6="⫤",q6="⊣",$6="⤏",Y6="˝",W6="Ď",K6="ď",j6="Д",Q6="д",X6="‡",Z6="⇊",J6="ⅅ",eG="ⅆ",tG="⤑",nG="⩷",sG="°",iG="∇",rG="Δ",oG="δ",aG="⦱",lG="⥿",cG="𝔇",dG="𝔡",uG="⥥",pG="⇃",_G="⇂",hG="´",fG="˙",mG="˝",gG="`",bG="˜",EG="⋄",yG="⋄",vG="⋄",SG="♦",TG="♦",xG="¨",CG="ⅆ",wG="ϝ",RG="⋲",AG="÷",NG="÷",OG="⋇",MG="⋇",IG="Ђ",kG="ђ",DG="⌞",LG="⌍",PG="$",UG="𝔻",FG="𝕕",BG="¨",GG="˙",VG="⃜",zG="≐",HG="≑",qG="≐",$G="∸",YG="∔",WG="⊡",KG="⌆",jG="∯",QG="¨",XG="⇓",ZG="⇐",JG="⇔",e8="⫤",t8="⟸",n8="⟺",s8="⟹",i8="⇒",r8="⊨",o8="⇑",a8="⇕",l8="∥",c8="⤓",d8="↓",u8="↓",p8="⇓",_8="⇵",h8="̑",f8="⇊",m8="⇃",g8="⇂",b8="⥐",E8="⥞",y8="⥖",v8="↽",S8="⥟",T8="⥗",x8="⇁",C8="↧",w8="⊤",R8="⤐",A8="⌟",N8="⌌",O8="𝒟",M8="𝒹",I8="Ѕ",k8="ѕ",D8="⧶",L8="Đ",P8="đ",U8="⋱",F8="▿",B8="▾",G8="⇵",V8="⥯",z8="⦦",H8="Џ",q8="џ",$8="⟿",Y8="É",W8="é",K8="⩮",j8="Ě",Q8="ě",X8="Ê",Z8="ê",J8="≖",e9="≕",t9="Э",n9="э",s9="⩷",i9="Ė",r9="ė",o9="≑",a9="ⅇ",l9="≒",c9="𝔈",d9="𝔢",u9="⪚",p9="È",_9="è",h9="⪖",f9="⪘",m9="⪙",g9="∈",b9="⏧",E9="ℓ",y9="⪕",v9="⪗",S9="Ē",T9="ē",x9="∅",C9="∅",w9="◻",R9="∅",A9="▫",N9=" ",O9=" ",M9=" ",I9="Ŋ",k9="ŋ",D9=" ",L9="Ę",P9="ę",U9="𝔼",F9="𝕖",B9="⋕",G9="⧣",V9="⩱",z9="ε",H9="Ε",q9="ε",$9="ϵ",Y9="≖",W9="≕",K9="≂",j9="⪖",Q9="⪕",X9="⩵",Z9="=",J9="≂",eV="≟",tV="⇌",nV="≡",sV="⩸",iV="⧥",rV="⥱",oV="≓",aV="ℯ",lV="ℰ",cV="≐",dV="⩳",uV="≂",pV="Η",_V="η",hV="Ð",fV="ð",mV="Ë",gV="ë",bV="€",EV="!",yV="∃",vV="∃",SV="ℰ",TV="ⅇ",xV="ⅇ",CV="≒",wV="Ф",RV="ф",AV="♀",NV="ffi",OV="ff",MV="ffl",IV="𝔉",kV="𝔣",DV="fi",LV="◼",PV="▪",UV="fj",FV="♭",BV="fl",GV="▱",VV="ƒ",zV="𝔽",HV="𝕗",qV="∀",$V="∀",YV="⋔",WV="⫙",KV="ℱ",jV="⨍",QV="½",XV="⅓",ZV="¼",JV="⅕",ez="⅙",tz="⅛",nz="⅔",sz="⅖",iz="¾",rz="⅗",oz="⅜",az="⅘",lz="⅚",cz="⅝",dz="⅞",uz="⁄",pz="⌢",_z="𝒻",hz="ℱ",fz="ǵ",mz="Γ",gz="γ",bz="Ϝ",Ez="ϝ",yz="⪆",vz="Ğ",Sz="ğ",Tz="Ģ",xz="Ĝ",Cz="ĝ",wz="Г",Rz="г",Az="Ġ",Nz="ġ",Oz="≥",Mz="≧",Iz="⪌",kz="⋛",Dz="≥",Lz="≧",Pz="⩾",Uz="⪩",Fz="⩾",Bz="⪀",Gz="⪂",Vz="⪄",zz="⋛︀",Hz="⪔",qz="𝔊",$z="𝔤",Yz="≫",Wz="⋙",Kz="⋙",jz="ℷ",Qz="Ѓ",Xz="ѓ",Zz="⪥",Jz="≷",eH="⪒",tH="⪤",nH="⪊",sH="⪊",iH="⪈",rH="≩",oH="⪈",aH="≩",lH="⋧",cH="𝔾",dH="𝕘",uH="`",pH="≥",_H="⋛",hH="≧",fH="⪢",mH="≷",gH="⩾",bH="≳",EH="𝒢",yH="ℊ",vH="≳",SH="⪎",TH="⪐",xH="⪧",CH="⩺",wH=">",RH=">",AH="≫",NH="⋗",OH="⦕",MH="⩼",IH="⪆",kH="⥸",DH="⋗",LH="⋛",PH="⪌",UH="≷",FH="≳",BH="≩︀",GH="≩︀",VH="ˇ",zH=" ",HH="½",qH="ℋ",$H="Ъ",YH="ъ",WH="⥈",KH="↔",jH="⇔",QH="↭",XH="^",ZH="ℏ",JH="Ĥ",e7="ĥ",t7="♥",n7="♥",s7="…",i7="⊹",r7="𝔥",o7="ℌ",a7="ℋ",l7="⤥",c7="⤦",d7="⇿",u7="∻",p7="↩",_7="↪",h7="𝕙",f7="ℍ",m7="―",g7="─",b7="𝒽",E7="ℋ",y7="ℏ",v7="Ħ",S7="ħ",T7="≎",x7="≏",C7="⁃",w7="‐",R7="Í",A7="í",N7="⁣",O7="Î",M7="î",I7="И",k7="и",D7="İ",L7="Е",P7="е",U7="¡",F7="⇔",B7="𝔦",G7="ℑ",V7="Ì",z7="ì",H7="ⅈ",q7="⨌",$7="∭",Y7="⧜",W7="℩",K7="IJ",j7="ij",Q7="Ī",X7="ī",Z7="ℑ",J7="ⅈ",eq="ℐ",tq="ℑ",nq="ı",sq="ℑ",iq="⊷",rq="Ƶ",oq="⇒",aq="℅",lq="∞",cq="⧝",dq="ı",uq="⊺",pq="∫",_q="∬",hq="ℤ",fq="∫",mq="⊺",gq="⋂",bq="⨗",Eq="⨼",yq="⁣",vq="⁢",Sq="Ё",Tq="ё",xq="Į",Cq="į",wq="𝕀",Rq="𝕚",Aq="Ι",Nq="ι",Oq="⨼",Mq="¿",Iq="𝒾",kq="ℐ",Dq="∈",Lq="⋵",Pq="⋹",Uq="⋴",Fq="⋳",Bq="∈",Gq="⁢",Vq="Ĩ",zq="ĩ",Hq="І",qq="і",$q="Ï",Yq="ï",Wq="Ĵ",Kq="ĵ",jq="Й",Qq="й",Xq="𝔍",Zq="𝔧",Jq="ȷ",e$="𝕁",t$="𝕛",n$="𝒥",s$="𝒿",i$="Ј",r$="ј",o$="Є",a$="є",l$="Κ",c$="κ",d$="ϰ",u$="Ķ",p$="ķ",_$="К",h$="к",f$="𝔎",m$="𝔨",g$="ĸ",b$="Х",E$="х",y$="Ќ",v$="ќ",S$="𝕂",T$="𝕜",x$="𝒦",C$="𝓀",w$="⇚",R$="Ĺ",A$="ĺ",N$="⦴",O$="ℒ",M$="Λ",I$="λ",k$="⟨",D$="⟪",L$="⦑",P$="⟨",U$="⪅",F$="ℒ",B$="«",G$="⇤",V$="⤟",z$="←",H$="↞",q$="⇐",$$="⤝",Y$="↩",W$="↫",K$="⤹",j$="⥳",Q$="↢",X$="⤙",Z$="⤛",J$="⪫",eY="⪭",tY="⪭︀",nY="⤌",sY="⤎",iY="❲",rY="{",oY="[",aY="⦋",lY="⦏",cY="⦍",dY="Ľ",uY="ľ",pY="Ļ",_Y="ļ",hY="⌈",fY="{",mY="Л",gY="л",bY="⤶",EY="“",yY="„",vY="⥧",SY="⥋",TY="↲",xY="≤",CY="≦",wY="⟨",RY="⇤",AY="←",NY="←",OY="⇐",MY="⇆",IY="↢",kY="⌈",DY="⟦",LY="⥡",PY="⥙",UY="⇃",FY="⌊",BY="↽",GY="↼",VY="⇇",zY="↔",HY="↔",qY="⇔",$Y="⇆",YY="⇋",WY="↭",KY="⥎",jY="↤",QY="⊣",XY="⥚",ZY="⋋",JY="⧏",eW="⊲",tW="⊴",nW="⥑",sW="⥠",iW="⥘",rW="↿",oW="⥒",aW="↼",lW="⪋",cW="⋚",dW="≤",uW="≦",pW="⩽",_W="⪨",hW="⩽",fW="⩿",mW="⪁",gW="⪃",bW="⋚︀",EW="⪓",yW="⪅",vW="⋖",SW="⋚",TW="⪋",xW="⋚",CW="≦",wW="≶",RW="≶",AW="⪡",NW="≲",OW="⩽",MW="≲",IW="⥼",kW="⌊",DW="𝔏",LW="𝔩",PW="≶",UW="⪑",FW="⥢",BW="↽",GW="↼",VW="⥪",zW="▄",HW="Љ",qW="љ",$W="⇇",YW="≪",WW="⋘",KW="⌞",jW="⇚",QW="⥫",XW="◺",ZW="Ŀ",JW="ŀ",eK="⎰",tK="⎰",nK="⪉",sK="⪉",iK="⪇",rK="≨",oK="⪇",aK="≨",lK="⋦",cK="⟬",dK="⇽",uK="⟦",pK="⟵",_K="⟵",hK="⟸",fK="⟷",mK="⟷",gK="⟺",bK="⟼",EK="⟶",yK="⟶",vK="⟹",SK="↫",TK="↬",xK="⦅",CK="𝕃",wK="𝕝",RK="⨭",AK="⨴",NK="∗",OK="_",MK="↙",IK="↘",kK="◊",DK="◊",LK="⧫",PK="(",UK="⦓",FK="⇆",BK="⌟",GK="⇋",VK="⥭",zK="‎",HK="⊿",qK="‹",$K="𝓁",YK="ℒ",WK="↰",KK="↰",jK="≲",QK="⪍",XK="⪏",ZK="[",JK="‘",ej="‚",tj="Ł",nj="ł",sj="⪦",ij="⩹",rj="<",oj="<",aj="≪",lj="⋖",cj="⋋",dj="⋉",uj="⥶",pj="⩻",_j="◃",hj="⊴",fj="◂",mj="⦖",gj="⥊",bj="⥦",Ej="≨︀",yj="≨︀",vj="¯",Sj="♂",Tj="✠",xj="✠",Cj="↦",wj="↦",Rj="↧",Aj="↤",Nj="↥",Oj="▮",Mj="⨩",Ij="М",kj="м",Dj="—",Lj="∺",Pj="∡",Uj=" ",Fj="ℳ",Bj="𝔐",Gj="𝔪",Vj="℧",zj="µ",Hj="*",qj="⫰",$j="∣",Yj="·",Wj="⊟",Kj="−",jj="∸",Qj="⨪",Xj="∓",Zj="⫛",Jj="…",eQ="∓",tQ="⊧",nQ="𝕄",sQ="𝕞",iQ="∓",rQ="𝓂",oQ="ℳ",aQ="∾",lQ="Μ",cQ="μ",dQ="⊸",uQ="⊸",pQ="∇",_Q="Ń",hQ="ń",fQ="∠⃒",mQ="≉",gQ="⩰̸",bQ="≋̸",EQ="ʼn",yQ="≉",vQ="♮",SQ="ℕ",TQ="♮",xQ=" ",CQ="≎̸",wQ="≏̸",RQ="⩃",AQ="Ň",NQ="ň",OQ="Ņ",MQ="ņ",IQ="≇",kQ="⩭̸",DQ="⩂",LQ="Н",PQ="н",UQ="–",FQ="⤤",BQ="↗",GQ="⇗",VQ="↗",zQ="≠",HQ="≐̸",qQ="​",$Q="​",YQ="​",WQ="​",KQ="≢",jQ="⤨",QQ="≂̸",XQ="≫",ZQ="≪",JQ=` -`,eX="∄",tX="∄",nX="𝔑",sX="𝔫",iX="≧̸",rX="≱",oX="≱",aX="≧̸",lX="⩾̸",cX="⩾̸",dX="⋙̸",uX="≵",pX="≫⃒",_X="≯",hX="≯",fX="≫̸",mX="↮",gX="⇎",bX="⫲",EX="∋",yX="⋼",vX="⋺",SX="∋",TX="Њ",xX="њ",CX="↚",wX="⇍",RX="‥",AX="≦̸",NX="≰",OX="↚",MX="⇍",IX="↮",kX="⇎",DX="≰",LX="≦̸",PX="⩽̸",UX="⩽̸",FX="≮",BX="⋘̸",GX="≴",VX="≪⃒",zX="≮",HX="⋪",qX="⋬",$X="≪̸",YX="∤",WX="⁠",KX=" ",jX="𝕟",QX="ℕ",XX="⫬",ZX="¬",JX="≢",eZ="≭",tZ="∦",nZ="∉",sZ="≠",iZ="≂̸",rZ="∄",oZ="≯",aZ="≱",lZ="≧̸",cZ="≫̸",dZ="≹",uZ="⩾̸",pZ="≵",_Z="≎̸",hZ="≏̸",fZ="∉",mZ="⋵̸",gZ="⋹̸",bZ="∉",EZ="⋷",yZ="⋶",vZ="⧏̸",SZ="⋪",TZ="⋬",xZ="≮",CZ="≰",wZ="≸",RZ="≪̸",AZ="⩽̸",NZ="≴",OZ="⪢̸",MZ="⪡̸",IZ="∌",kZ="∌",DZ="⋾",LZ="⋽",PZ="⊀",UZ="⪯̸",FZ="⋠",BZ="∌",GZ="⧐̸",VZ="⋫",zZ="⋭",HZ="⊏̸",qZ="⋢",$Z="⊐̸",YZ="⋣",WZ="⊂⃒",KZ="⊈",jZ="⊁",QZ="⪰̸",XZ="⋡",ZZ="≿̸",JZ="⊃⃒",eJ="⊉",tJ="≁",nJ="≄",sJ="≇",iJ="≉",rJ="∤",oJ="∦",aJ="∦",lJ="⫽⃥",cJ="∂̸",dJ="⨔",uJ="⊀",pJ="⋠",_J="⊀",hJ="⪯̸",fJ="⪯̸",mJ="⤳̸",gJ="↛",bJ="⇏",EJ="↝̸",yJ="↛",vJ="⇏",SJ="⋫",TJ="⋭",xJ="⊁",CJ="⋡",wJ="⪰̸",RJ="𝒩",AJ="𝓃",NJ="∤",OJ="∦",MJ="≁",IJ="≄",kJ="≄",DJ="∤",LJ="∦",PJ="⋢",UJ="⋣",FJ="⊄",BJ="⫅̸",GJ="⊈",VJ="⊂⃒",zJ="⊈",HJ="⫅̸",qJ="⊁",$J="⪰̸",YJ="⊅",WJ="⫆̸",KJ="⊉",jJ="⊃⃒",QJ="⊉",XJ="⫆̸",ZJ="≹",JJ="Ñ",eee="ñ",tee="≸",nee="⋪",see="⋬",iee="⋫",ree="⋭",oee="Ν",aee="ν",lee="#",cee="№",dee=" ",uee="≍⃒",pee="⊬",_ee="⊭",hee="⊮",fee="⊯",mee="≥⃒",gee=">⃒",bee="⤄",Eee="⧞",yee="⤂",vee="≤⃒",See="<⃒",Tee="⊴⃒",xee="⤃",Cee="⊵⃒",wee="∼⃒",Ree="⤣",Aee="↖",Nee="⇖",Oee="↖",Mee="⤧",Iee="Ó",kee="ó",Dee="⊛",Lee="Ô",Pee="ô",Uee="⊚",Fee="О",Bee="о",Gee="⊝",Vee="Ő",zee="ő",Hee="⨸",qee="⊙",$ee="⦼",Yee="Œ",Wee="œ",Kee="⦿",jee="𝔒",Qee="𝔬",Xee="˛",Zee="Ò",Jee="ò",ete="⧁",tte="⦵",nte="Ω",ste="∮",ite="↺",rte="⦾",ote="⦻",ate="‾",lte="⧀",cte="Ō",dte="ō",ute="Ω",pte="ω",_te="Ο",hte="ο",fte="⦶",mte="⊖",gte="𝕆",bte="𝕠",Ete="⦷",yte="“",vte="‘",Ste="⦹",Tte="⊕",xte="↻",Cte="⩔",wte="∨",Rte="⩝",Ate="ℴ",Nte="ℴ",Ote="ª",Mte="º",Ite="⊶",kte="⩖",Dte="⩗",Lte="⩛",Pte="Ⓢ",Ute="𝒪",Fte="ℴ",Bte="Ø",Gte="ø",Vte="⊘",zte="Õ",Hte="õ",qte="⨶",$te="⨷",Yte="⊗",Wte="Ö",Kte="ö",jte="⌽",Qte="‾",Xte="⏞",Zte="⎴",Jte="⏜",ene="¶",tne="∥",nne="∥",sne="⫳",ine="⫽",rne="∂",one="∂",ane="П",lne="п",cne="%",dne=".",une="‰",pne="⊥",_ne="‱",hne="𝔓",fne="𝔭",mne="Φ",gne="φ",bne="ϕ",Ene="ℳ",yne="☎",vne="Π",Sne="π",Tne="⋔",xne="ϖ",Cne="ℏ",wne="ℎ",Rne="ℏ",Ane="⨣",Nne="⊞",One="⨢",Mne="+",Ine="∔",kne="⨥",Dne="⩲",Lne="±",Pne="±",Une="⨦",Fne="⨧",Bne="±",Gne="ℌ",Vne="⨕",zne="𝕡",Hne="ℙ",qne="£",$ne="⪷",Yne="⪻",Wne="≺",Kne="≼",jne="⪷",Qne="≺",Xne="≼",Zne="≺",Jne="⪯",ese="≼",tse="≾",nse="⪯",sse="⪹",ise="⪵",rse="⋨",ose="⪯",ase="⪳",lse="≾",cse="′",dse="″",use="ℙ",pse="⪹",_se="⪵",hse="⋨",fse="∏",mse="∏",gse="⌮",bse="⌒",Ese="⌓",yse="∝",vse="∝",Sse="∷",Tse="∝",xse="≾",Cse="⊰",wse="𝒫",Rse="𝓅",Ase="Ψ",Nse="ψ",Ose=" ",Mse="𝔔",Ise="𝔮",kse="⨌",Dse="𝕢",Lse="ℚ",Pse="⁗",Use="𝒬",Fse="𝓆",Bse="ℍ",Gse="⨖",Vse="?",zse="≟",Hse='"',qse='"',$se="⇛",Yse="∽̱",Wse="Ŕ",Kse="ŕ",jse="√",Qse="⦳",Xse="⟩",Zse="⟫",Jse="⦒",eie="⦥",tie="⟩",nie="»",sie="⥵",iie="⇥",rie="⤠",oie="⤳",aie="→",lie="↠",cie="⇒",die="⤞",uie="↪",pie="↬",_ie="⥅",hie="⥴",fie="⤖",mie="↣",gie="↝",bie="⤚",Eie="⤜",yie="∶",vie="ℚ",Sie="⤍",Tie="⤏",xie="⤐",Cie="❳",wie="}",Rie="]",Aie="⦌",Nie="⦎",Oie="⦐",Mie="Ř",Iie="ř",kie="Ŗ",Die="ŗ",Lie="⌉",Pie="}",Uie="Р",Fie="р",Bie="⤷",Gie="⥩",Vie="”",zie="”",Hie="↳",qie="ℜ",$ie="ℛ",Yie="ℜ",Wie="ℝ",Kie="ℜ",jie="▭",Qie="®",Xie="®",Zie="∋",Jie="⇋",ere="⥯",tre="⥽",nre="⌋",sre="𝔯",ire="ℜ",rre="⥤",ore="⇁",are="⇀",lre="⥬",cre="Ρ",dre="ρ",ure="ϱ",pre="⟩",_re="⇥",hre="→",fre="→",mre="⇒",gre="⇄",bre="↣",Ere="⌉",yre="⟧",vre="⥝",Sre="⥕",Tre="⇂",xre="⌋",Cre="⇁",wre="⇀",Rre="⇄",Are="⇌",Nre="⇉",Ore="↝",Mre="↦",Ire="⊢",kre="⥛",Dre="⋌",Lre="⧐",Pre="⊳",Ure="⊵",Fre="⥏",Bre="⥜",Gre="⥔",Vre="↾",zre="⥓",Hre="⇀",qre="˚",$re="≓",Yre="⇄",Wre="⇌",Kre="‏",jre="⎱",Qre="⎱",Xre="⫮",Zre="⟭",Jre="⇾",eoe="⟧",toe="⦆",noe="𝕣",soe="ℝ",ioe="⨮",roe="⨵",ooe="⥰",aoe=")",loe="⦔",coe="⨒",doe="⇉",uoe="⇛",poe="›",_oe="𝓇",hoe="ℛ",foe="↱",moe="↱",goe="]",boe="’",Eoe="’",yoe="⋌",voe="⋊",Soe="▹",Toe="⊵",xoe="▸",Coe="⧎",woe="⧴",Roe="⥨",Aoe="℞",Noe="Ś",Ooe="ś",Moe="‚",Ioe="⪸",koe="Š",Doe="š",Loe="⪼",Poe="≻",Uoe="≽",Foe="⪰",Boe="⪴",Goe="Ş",Voe="ş",zoe="Ŝ",Hoe="ŝ",qoe="⪺",$oe="⪶",Yoe="⋩",Woe="⨓",Koe="≿",joe="С",Qoe="с",Xoe="⊡",Zoe="⋅",Joe="⩦",eae="⤥",tae="↘",nae="⇘",sae="↘",iae="§",rae=";",oae="⤩",aae="∖",lae="∖",cae="✶",dae="𝔖",uae="𝔰",pae="⌢",_ae="♯",hae="Щ",fae="щ",mae="Ш",gae="ш",bae="↓",Eae="←",yae="∣",vae="∥",Sae="→",Tae="↑",xae="­",Cae="Σ",wae="σ",Rae="ς",Aae="ς",Nae="∼",Oae="⩪",Mae="≃",Iae="≃",kae="⪞",Dae="⪠",Lae="⪝",Pae="⪟",Uae="≆",Fae="⨤",Bae="⥲",Gae="←",Vae="∘",zae="∖",Hae="⨳",qae="⧤",$ae="∣",Yae="⌣",Wae="⪪",Kae="⪬",jae="⪬︀",Qae="Ь",Xae="ь",Zae="⌿",Jae="⧄",ele="/",tle="𝕊",nle="𝕤",sle="♠",ile="♠",rle="∥",ole="⊓",ale="⊓︀",lle="⊔",cle="⊔︀",dle="√",ule="⊏",ple="⊑",_le="⊏",hle="⊑",fle="⊐",mle="⊒",gle="⊐",ble="⊒",Ele="□",yle="□",vle="⊓",Sle="⊏",Tle="⊑",xle="⊐",Cle="⊒",wle="⊔",Rle="▪",Ale="□",Nle="▪",Ole="→",Mle="𝒮",Ile="𝓈",kle="∖",Dle="⌣",Lle="⋆",Ple="⋆",Ule="☆",Fle="★",Ble="ϵ",Gle="ϕ",Vle="¯",zle="⊂",Hle="⋐",qle="⪽",$le="⫅",Yle="⊆",Wle="⫃",Kle="⫁",jle="⫋",Qle="⊊",Xle="⪿",Zle="⥹",Jle="⊂",ece="⋐",tce="⊆",nce="⫅",sce="⊆",ice="⊊",rce="⫋",oce="⫇",ace="⫕",lce="⫓",cce="⪸",dce="≻",uce="≽",pce="≻",_ce="⪰",hce="≽",fce="≿",mce="⪰",gce="⪺",bce="⪶",Ece="⋩",yce="≿",vce="∋",Sce="∑",Tce="∑",xce="♪",Cce="¹",wce="²",Rce="³",Ace="⊃",Nce="⋑",Oce="⪾",Mce="⫘",Ice="⫆",kce="⊇",Dce="⫄",Lce="⊃",Pce="⊇",Uce="⟉",Fce="⫗",Bce="⥻",Gce="⫂",Vce="⫌",zce="⊋",Hce="⫀",qce="⊃",$ce="⋑",Yce="⊇",Wce="⫆",Kce="⊋",jce="⫌",Qce="⫈",Xce="⫔",Zce="⫖",Jce="⤦",ede="↙",tde="⇙",nde="↙",sde="⤪",ide="ß",rde=" ",ode="⌖",ade="Τ",lde="τ",cde="⎴",dde="Ť",ude="ť",pde="Ţ",_de="ţ",hde="Т",fde="т",mde="⃛",gde="⌕",bde="𝔗",Ede="𝔱",yde="∴",vde="∴",Sde="∴",Tde="Θ",xde="θ",Cde="ϑ",wde="ϑ",Rde="≈",Ade="∼",Nde="  ",Ode=" ",Mde=" ",Ide="≈",kde="∼",Dde="Þ",Lde="þ",Pde="˜",Ude="∼",Fde="≃",Bde="≅",Gde="≈",Vde="⨱",zde="⊠",Hde="×",qde="⨰",$de="∭",Yde="⤨",Wde="⌶",Kde="⫱",jde="⊤",Qde="𝕋",Xde="𝕥",Zde="⫚",Jde="⤩",eue="‴",tue="™",nue="™",sue="▵",iue="▿",rue="◃",oue="⊴",aue="≜",lue="▹",cue="⊵",due="◬",uue="≜",pue="⨺",_ue="⃛",hue="⨹",fue="⧍",mue="⨻",gue="⏢",bue="𝒯",Eue="𝓉",yue="Ц",vue="ц",Sue="Ћ",Tue="ћ",xue="Ŧ",Cue="ŧ",wue="≬",Rue="↞",Aue="↠",Nue="Ú",Oue="ú",Mue="↑",Iue="↟",kue="⇑",Due="⥉",Lue="Ў",Pue="ў",Uue="Ŭ",Fue="ŭ",Bue="Û",Gue="û",Vue="У",zue="у",Hue="⇅",que="Ű",$ue="ű",Yue="⥮",Wue="⥾",Kue="𝔘",jue="𝔲",Que="Ù",Xue="ù",Zue="⥣",Jue="↿",epe="↾",tpe="▀",npe="⌜",spe="⌜",ipe="⌏",rpe="◸",ope="Ū",ape="ū",lpe="¨",cpe="_",dpe="⏟",upe="⎵",ppe="⏝",_pe="⋃",hpe="⊎",fpe="Ų",mpe="ų",gpe="𝕌",bpe="𝕦",Epe="⤒",ype="↑",vpe="↑",Spe="⇑",Tpe="⇅",xpe="↕",Cpe="↕",wpe="⇕",Rpe="⥮",Ape="↿",Npe="↾",Ope="⊎",Mpe="↖",Ipe="↗",kpe="υ",Dpe="ϒ",Lpe="ϒ",Ppe="Υ",Upe="υ",Fpe="↥",Bpe="⊥",Gpe="⇈",Vpe="⌝",zpe="⌝",Hpe="⌎",qpe="Ů",$pe="ů",Ype="◹",Wpe="𝒰",Kpe="𝓊",jpe="⋰",Qpe="Ũ",Xpe="ũ",Zpe="▵",Jpe="▴",e_e="⇈",t_e="Ü",n_e="ü",s_e="⦧",i_e="⦜",r_e="ϵ",o_e="ϰ",a_e="∅",l_e="ϕ",c_e="ϖ",d_e="∝",u_e="↕",p_e="⇕",__e="ϱ",h_e="ς",f_e="⊊︀",m_e="⫋︀",g_e="⊋︀",b_e="⫌︀",E_e="ϑ",y_e="⊲",v_e="⊳",S_e="⫨",T_e="⫫",x_e="⫩",C_e="В",w_e="в",R_e="⊢",A_e="⊨",N_e="⊩",O_e="⊫",M_e="⫦",I_e="⊻",k_e="∨",D_e="⋁",L_e="≚",P_e="⋮",U_e="|",F_e="‖",B_e="|",G_e="‖",V_e="∣",z_e="|",H_e="❘",q_e="≀",$_e=" ",Y_e="𝔙",W_e="𝔳",K_e="⊲",j_e="⊂⃒",Q_e="⊃⃒",X_e="𝕍",Z_e="𝕧",J_e="∝",ehe="⊳",the="𝒱",nhe="𝓋",she="⫋︀",ihe="⊊︀",rhe="⫌︀",ohe="⊋︀",ahe="⊪",lhe="⦚",che="Ŵ",dhe="ŵ",uhe="⩟",phe="∧",_he="⋀",hhe="≙",fhe="℘",mhe="𝔚",ghe="𝔴",bhe="𝕎",Ehe="𝕨",yhe="℘",vhe="≀",She="≀",The="𝒲",xhe="𝓌",Che="⋂",whe="◯",Rhe="⋃",Ahe="▽",Nhe="𝔛",Ohe="𝔵",Mhe="⟷",Ihe="⟺",khe="Ξ",Dhe="ξ",Lhe="⟵",Phe="⟸",Uhe="⟼",Fhe="⋻",Bhe="⨀",Ghe="𝕏",Vhe="𝕩",zhe="⨁",Hhe="⨂",qhe="⟶",$he="⟹",Yhe="𝒳",Whe="𝓍",Khe="⨆",jhe="⨄",Qhe="△",Xhe="⋁",Zhe="⋀",Jhe="Ý",efe="ý",tfe="Я",nfe="я",sfe="Ŷ",ife="ŷ",rfe="Ы",ofe="ы",afe="¥",lfe="𝔜",cfe="𝔶",dfe="Ї",ufe="ї",pfe="𝕐",_fe="𝕪",hfe="𝒴",ffe="𝓎",mfe="Ю",gfe="ю",bfe="ÿ",Efe="Ÿ",yfe="Ź",vfe="ź",Sfe="Ž",Tfe="ž",xfe="З",Cfe="з",wfe="Ż",Rfe="ż",Afe="ℨ",Nfe="​",Ofe="Ζ",Mfe="ζ",Ife="𝔷",kfe="ℨ",Dfe="Ж",Lfe="ж",Pfe="⇝",Ufe="𝕫",Ffe="ℤ",Bfe="𝒵",Gfe="𝓏",Vfe="‍",zfe="‌",Hfe={Aacute:w3,aacute:R3,Abreve:A3,abreve:N3,ac:O3,acd:M3,acE:I3,Acirc:k3,acirc:D3,acute:L3,Acy:P3,acy:U3,AElig:F3,aelig:B3,af:G3,Afr:V3,afr:z3,Agrave:H3,agrave:q3,alefsym:$3,aleph:Y3,Alpha:W3,alpha:K3,Amacr:j3,amacr:Q3,amalg:X3,amp:Z3,AMP:J3,andand:eU,And:tU,and:nU,andd:sU,andslope:iU,andv:rU,ang:oU,ange:aU,angle:lU,angmsdaa:cU,angmsdab:dU,angmsdac:uU,angmsdad:pU,angmsdae:_U,angmsdaf:hU,angmsdag:fU,angmsdah:mU,angmsd:gU,angrt:bU,angrtvb:EU,angrtvbd:yU,angsph:vU,angst:SU,angzarr:TU,Aogon:xU,aogon:CU,Aopf:wU,aopf:RU,apacir:AU,ap:NU,apE:OU,ape:MU,apid:IU,apos:kU,ApplyFunction:DU,approx:LU,approxeq:PU,Aring:UU,aring:FU,Ascr:BU,ascr:GU,Assign:VU,ast:zU,asymp:HU,asympeq:qU,Atilde:$U,atilde:YU,Auml:WU,auml:KU,awconint:jU,awint:QU,backcong:XU,backepsilon:ZU,backprime:JU,backsim:eF,backsimeq:tF,Backslash:nF,Barv:sF,barvee:iF,barwed:rF,Barwed:oF,barwedge:aF,bbrk:lF,bbrktbrk:cF,bcong:dF,Bcy:uF,bcy:pF,bdquo:_F,becaus:hF,because:fF,Because:mF,bemptyv:gF,bepsi:bF,bernou:EF,Bernoullis:yF,Beta:vF,beta:SF,beth:TF,between:xF,Bfr:CF,bfr:wF,bigcap:RF,bigcirc:AF,bigcup:NF,bigodot:OF,bigoplus:MF,bigotimes:IF,bigsqcup:kF,bigstar:DF,bigtriangledown:LF,bigtriangleup:PF,biguplus:UF,bigvee:FF,bigwedge:BF,bkarow:GF,blacklozenge:VF,blacksquare:zF,blacktriangle:HF,blacktriangledown:qF,blacktriangleleft:$F,blacktriangleright:YF,blank:WF,blk12:KF,blk14:jF,blk34:QF,block:XF,bne:ZF,bnequiv:JF,bNot:e4,bnot:t4,Bopf:n4,bopf:s4,bot:i4,bottom:r4,bowtie:o4,boxbox:a4,boxdl:l4,boxdL:c4,boxDl:d4,boxDL:u4,boxdr:p4,boxdR:_4,boxDr:h4,boxDR:f4,boxh:m4,boxH:g4,boxhd:b4,boxHd:E4,boxhD:y4,boxHD:v4,boxhu:S4,boxHu:T4,boxhU:x4,boxHU:C4,boxminus:w4,boxplus:R4,boxtimes:A4,boxul:N4,boxuL:O4,boxUl:M4,boxUL:I4,boxur:k4,boxuR:D4,boxUr:L4,boxUR:P4,boxv:U4,boxV:F4,boxvh:B4,boxvH:G4,boxVh:V4,boxVH:z4,boxvl:H4,boxvL:q4,boxVl:$4,boxVL:Y4,boxvr:W4,boxvR:K4,boxVr:j4,boxVR:Q4,bprime:X4,breve:Z4,Breve:J4,brvbar:eB,bscr:tB,Bscr:nB,bsemi:sB,bsim:iB,bsime:rB,bsolb:oB,bsol:aB,bsolhsub:lB,bull:cB,bullet:dB,bump:uB,bumpE:pB,bumpe:_B,Bumpeq:hB,bumpeq:fB,Cacute:mB,cacute:gB,capand:bB,capbrcup:EB,capcap:yB,cap:vB,Cap:SB,capcup:TB,capdot:xB,CapitalDifferentialD:CB,caps:wB,caret:RB,caron:AB,Cayleys:NB,ccaps:OB,Ccaron:MB,ccaron:IB,Ccedil:kB,ccedil:DB,Ccirc:LB,ccirc:PB,Cconint:UB,ccups:FB,ccupssm:BB,Cdot:GB,cdot:VB,cedil:zB,Cedilla:HB,cemptyv:qB,cent:$B,centerdot:YB,CenterDot:WB,cfr:KB,Cfr:jB,CHcy:QB,chcy:XB,check:ZB,checkmark:JB,Chi:e5,chi:t5,circ:n5,circeq:s5,circlearrowleft:i5,circlearrowright:r5,circledast:o5,circledcirc:a5,circleddash:l5,CircleDot:c5,circledR:d5,circledS:u5,CircleMinus:p5,CirclePlus:_5,CircleTimes:h5,cir:f5,cirE:m5,cire:g5,cirfnint:b5,cirmid:E5,cirscir:y5,ClockwiseContourIntegral:v5,CloseCurlyDoubleQuote:S5,CloseCurlyQuote:T5,clubs:x5,clubsuit:C5,colon:w5,Colon:R5,Colone:A5,colone:N5,coloneq:O5,comma:M5,commat:I5,comp:k5,compfn:D5,complement:L5,complexes:P5,cong:U5,congdot:F5,Congruent:B5,conint:G5,Conint:V5,ContourIntegral:z5,copf:H5,Copf:q5,coprod:$5,Coproduct:Y5,copy:W5,COPY:K5,copysr:j5,CounterClockwiseContourIntegral:Q5,crarr:X5,cross:Z5,Cross:J5,Cscr:e6,cscr:t6,csub:n6,csube:s6,csup:i6,csupe:r6,ctdot:o6,cudarrl:a6,cudarrr:l6,cuepr:c6,cuesc:d6,cularr:u6,cularrp:p6,cupbrcap:_6,cupcap:h6,CupCap:f6,cup:m6,Cup:g6,cupcup:b6,cupdot:E6,cupor:y6,cups:v6,curarr:S6,curarrm:T6,curlyeqprec:x6,curlyeqsucc:C6,curlyvee:w6,curlywedge:R6,curren:A6,curvearrowleft:N6,curvearrowright:O6,cuvee:M6,cuwed:I6,cwconint:k6,cwint:D6,cylcty:L6,dagger:P6,Dagger:U6,daleth:F6,darr:B6,Darr:G6,dArr:V6,dash:z6,Dashv:H6,dashv:q6,dbkarow:$6,dblac:Y6,Dcaron:W6,dcaron:K6,Dcy:j6,dcy:Q6,ddagger:X6,ddarr:Z6,DD:J6,dd:eG,DDotrahd:tG,ddotseq:nG,deg:sG,Del:iG,Delta:rG,delta:oG,demptyv:aG,dfisht:lG,Dfr:cG,dfr:dG,dHar:uG,dharl:pG,dharr:_G,DiacriticalAcute:hG,DiacriticalDot:fG,DiacriticalDoubleAcute:mG,DiacriticalGrave:gG,DiacriticalTilde:bG,diam:EG,diamond:yG,Diamond:vG,diamondsuit:SG,diams:TG,die:xG,DifferentialD:CG,digamma:wG,disin:RG,div:AG,divide:NG,divideontimes:OG,divonx:MG,DJcy:IG,djcy:kG,dlcorn:DG,dlcrop:LG,dollar:PG,Dopf:UG,dopf:FG,Dot:BG,dot:GG,DotDot:VG,doteq:zG,doteqdot:HG,DotEqual:qG,dotminus:$G,dotplus:YG,dotsquare:WG,doublebarwedge:KG,DoubleContourIntegral:jG,DoubleDot:QG,DoubleDownArrow:XG,DoubleLeftArrow:ZG,DoubleLeftRightArrow:JG,DoubleLeftTee:e8,DoubleLongLeftArrow:t8,DoubleLongLeftRightArrow:n8,DoubleLongRightArrow:s8,DoubleRightArrow:i8,DoubleRightTee:r8,DoubleUpArrow:o8,DoubleUpDownArrow:a8,DoubleVerticalBar:l8,DownArrowBar:c8,downarrow:d8,DownArrow:u8,Downarrow:p8,DownArrowUpArrow:_8,DownBreve:h8,downdownarrows:f8,downharpoonleft:m8,downharpoonright:g8,DownLeftRightVector:b8,DownLeftTeeVector:E8,DownLeftVectorBar:y8,DownLeftVector:v8,DownRightTeeVector:S8,DownRightVectorBar:T8,DownRightVector:x8,DownTeeArrow:C8,DownTee:w8,drbkarow:R8,drcorn:A8,drcrop:N8,Dscr:O8,dscr:M8,DScy:I8,dscy:k8,dsol:D8,Dstrok:L8,dstrok:P8,dtdot:U8,dtri:F8,dtrif:B8,duarr:G8,duhar:V8,dwangle:z8,DZcy:H8,dzcy:q8,dzigrarr:$8,Eacute:Y8,eacute:W8,easter:K8,Ecaron:j8,ecaron:Q8,Ecirc:X8,ecirc:Z8,ecir:J8,ecolon:e9,Ecy:t9,ecy:n9,eDDot:s9,Edot:i9,edot:r9,eDot:o9,ee:a9,efDot:l9,Efr:c9,efr:d9,eg:u9,Egrave:p9,egrave:_9,egs:h9,egsdot:f9,el:m9,Element:g9,elinters:b9,ell:E9,els:y9,elsdot:v9,Emacr:S9,emacr:T9,empty:x9,emptyset:C9,EmptySmallSquare:w9,emptyv:R9,EmptyVerySmallSquare:A9,emsp13:N9,emsp14:O9,emsp:M9,ENG:I9,eng:k9,ensp:D9,Eogon:L9,eogon:P9,Eopf:U9,eopf:F9,epar:B9,eparsl:G9,eplus:V9,epsi:z9,Epsilon:H9,epsilon:q9,epsiv:$9,eqcirc:Y9,eqcolon:W9,eqsim:K9,eqslantgtr:j9,eqslantless:Q9,Equal:X9,equals:Z9,EqualTilde:J9,equest:eV,Equilibrium:tV,equiv:nV,equivDD:sV,eqvparsl:iV,erarr:rV,erDot:oV,escr:aV,Escr:lV,esdot:cV,Esim:dV,esim:uV,Eta:pV,eta:_V,ETH:hV,eth:fV,Euml:mV,euml:gV,euro:bV,excl:EV,exist:yV,Exists:vV,expectation:SV,exponentiale:TV,ExponentialE:xV,fallingdotseq:CV,Fcy:wV,fcy:RV,female:AV,ffilig:NV,fflig:OV,ffllig:MV,Ffr:IV,ffr:kV,filig:DV,FilledSmallSquare:LV,FilledVerySmallSquare:PV,fjlig:UV,flat:FV,fllig:BV,fltns:GV,fnof:VV,Fopf:zV,fopf:HV,forall:qV,ForAll:$V,fork:YV,forkv:WV,Fouriertrf:KV,fpartint:jV,frac12:QV,frac13:XV,frac14:ZV,frac15:JV,frac16:ez,frac18:tz,frac23:nz,frac25:sz,frac34:iz,frac35:rz,frac38:oz,frac45:az,frac56:lz,frac58:cz,frac78:dz,frasl:uz,frown:pz,fscr:_z,Fscr:hz,gacute:fz,Gamma:mz,gamma:gz,Gammad:bz,gammad:Ez,gap:yz,Gbreve:vz,gbreve:Sz,Gcedil:Tz,Gcirc:xz,gcirc:Cz,Gcy:wz,gcy:Rz,Gdot:Az,gdot:Nz,ge:Oz,gE:Mz,gEl:Iz,gel:kz,geq:Dz,geqq:Lz,geqslant:Pz,gescc:Uz,ges:Fz,gesdot:Bz,gesdoto:Gz,gesdotol:Vz,gesl:zz,gesles:Hz,Gfr:qz,gfr:$z,gg:Yz,Gg:Wz,ggg:Kz,gimel:jz,GJcy:Qz,gjcy:Xz,gla:Zz,gl:Jz,glE:eH,glj:tH,gnap:nH,gnapprox:sH,gne:iH,gnE:rH,gneq:oH,gneqq:aH,gnsim:lH,Gopf:cH,gopf:dH,grave:uH,GreaterEqual:pH,GreaterEqualLess:_H,GreaterFullEqual:hH,GreaterGreater:fH,GreaterLess:mH,GreaterSlantEqual:gH,GreaterTilde:bH,Gscr:EH,gscr:yH,gsim:vH,gsime:SH,gsiml:TH,gtcc:xH,gtcir:CH,gt:wH,GT:RH,Gt:AH,gtdot:NH,gtlPar:OH,gtquest:MH,gtrapprox:IH,gtrarr:kH,gtrdot:DH,gtreqless:LH,gtreqqless:PH,gtrless:UH,gtrsim:FH,gvertneqq:BH,gvnE:GH,Hacek:VH,hairsp:zH,half:HH,hamilt:qH,HARDcy:$H,hardcy:YH,harrcir:WH,harr:KH,hArr:jH,harrw:QH,Hat:XH,hbar:ZH,Hcirc:JH,hcirc:e7,hearts:t7,heartsuit:n7,hellip:s7,hercon:i7,hfr:r7,Hfr:o7,HilbertSpace:a7,hksearow:l7,hkswarow:c7,hoarr:d7,homtht:u7,hookleftarrow:p7,hookrightarrow:_7,hopf:h7,Hopf:f7,horbar:m7,HorizontalLine:g7,hscr:b7,Hscr:E7,hslash:y7,Hstrok:v7,hstrok:S7,HumpDownHump:T7,HumpEqual:x7,hybull:C7,hyphen:w7,Iacute:R7,iacute:A7,ic:N7,Icirc:O7,icirc:M7,Icy:I7,icy:k7,Idot:D7,IEcy:L7,iecy:P7,iexcl:U7,iff:F7,ifr:B7,Ifr:G7,Igrave:V7,igrave:z7,ii:H7,iiiint:q7,iiint:$7,iinfin:Y7,iiota:W7,IJlig:K7,ijlig:j7,Imacr:Q7,imacr:X7,image:Z7,ImaginaryI:J7,imagline:eq,imagpart:tq,imath:nq,Im:sq,imof:iq,imped:rq,Implies:oq,incare:aq,in:"∈",infin:lq,infintie:cq,inodot:dq,intcal:uq,int:pq,Int:_q,integers:hq,Integral:fq,intercal:mq,Intersection:gq,intlarhk:bq,intprod:Eq,InvisibleComma:yq,InvisibleTimes:vq,IOcy:Sq,iocy:Tq,Iogon:xq,iogon:Cq,Iopf:wq,iopf:Rq,Iota:Aq,iota:Nq,iprod:Oq,iquest:Mq,iscr:Iq,Iscr:kq,isin:Dq,isindot:Lq,isinE:Pq,isins:Uq,isinsv:Fq,isinv:Bq,it:Gq,Itilde:Vq,itilde:zq,Iukcy:Hq,iukcy:qq,Iuml:$q,iuml:Yq,Jcirc:Wq,jcirc:Kq,Jcy:jq,jcy:Qq,Jfr:Xq,jfr:Zq,jmath:Jq,Jopf:e$,jopf:t$,Jscr:n$,jscr:s$,Jsercy:i$,jsercy:r$,Jukcy:o$,jukcy:a$,Kappa:l$,kappa:c$,kappav:d$,Kcedil:u$,kcedil:p$,Kcy:_$,kcy:h$,Kfr:f$,kfr:m$,kgreen:g$,KHcy:b$,khcy:E$,KJcy:y$,kjcy:v$,Kopf:S$,kopf:T$,Kscr:x$,kscr:C$,lAarr:w$,Lacute:R$,lacute:A$,laemptyv:N$,lagran:O$,Lambda:M$,lambda:I$,lang:k$,Lang:D$,langd:L$,langle:P$,lap:U$,Laplacetrf:F$,laquo:B$,larrb:G$,larrbfs:V$,larr:z$,Larr:H$,lArr:q$,larrfs:$$,larrhk:Y$,larrlp:W$,larrpl:K$,larrsim:j$,larrtl:Q$,latail:X$,lAtail:Z$,lat:J$,late:eY,lates:tY,lbarr:nY,lBarr:sY,lbbrk:iY,lbrace:rY,lbrack:oY,lbrke:aY,lbrksld:lY,lbrkslu:cY,Lcaron:dY,lcaron:uY,Lcedil:pY,lcedil:_Y,lceil:hY,lcub:fY,Lcy:mY,lcy:gY,ldca:bY,ldquo:EY,ldquor:yY,ldrdhar:vY,ldrushar:SY,ldsh:TY,le:xY,lE:CY,LeftAngleBracket:wY,LeftArrowBar:RY,leftarrow:AY,LeftArrow:NY,Leftarrow:OY,LeftArrowRightArrow:MY,leftarrowtail:IY,LeftCeiling:kY,LeftDoubleBracket:DY,LeftDownTeeVector:LY,LeftDownVectorBar:PY,LeftDownVector:UY,LeftFloor:FY,leftharpoondown:BY,leftharpoonup:GY,leftleftarrows:VY,leftrightarrow:zY,LeftRightArrow:HY,Leftrightarrow:qY,leftrightarrows:$Y,leftrightharpoons:YY,leftrightsquigarrow:WY,LeftRightVector:KY,LeftTeeArrow:jY,LeftTee:QY,LeftTeeVector:XY,leftthreetimes:ZY,LeftTriangleBar:JY,LeftTriangle:eW,LeftTriangleEqual:tW,LeftUpDownVector:nW,LeftUpTeeVector:sW,LeftUpVectorBar:iW,LeftUpVector:rW,LeftVectorBar:oW,LeftVector:aW,lEg:lW,leg:cW,leq:dW,leqq:uW,leqslant:pW,lescc:_W,les:hW,lesdot:fW,lesdoto:mW,lesdotor:gW,lesg:bW,lesges:EW,lessapprox:yW,lessdot:vW,lesseqgtr:SW,lesseqqgtr:TW,LessEqualGreater:xW,LessFullEqual:CW,LessGreater:wW,lessgtr:RW,LessLess:AW,lesssim:NW,LessSlantEqual:OW,LessTilde:MW,lfisht:IW,lfloor:kW,Lfr:DW,lfr:LW,lg:PW,lgE:UW,lHar:FW,lhard:BW,lharu:GW,lharul:VW,lhblk:zW,LJcy:HW,ljcy:qW,llarr:$W,ll:YW,Ll:WW,llcorner:KW,Lleftarrow:jW,llhard:QW,lltri:XW,Lmidot:ZW,lmidot:JW,lmoustache:eK,lmoust:tK,lnap:nK,lnapprox:sK,lne:iK,lnE:rK,lneq:oK,lneqq:aK,lnsim:lK,loang:cK,loarr:dK,lobrk:uK,longleftarrow:pK,LongLeftArrow:_K,Longleftarrow:hK,longleftrightarrow:fK,LongLeftRightArrow:mK,Longleftrightarrow:gK,longmapsto:bK,longrightarrow:EK,LongRightArrow:yK,Longrightarrow:vK,looparrowleft:SK,looparrowright:TK,lopar:xK,Lopf:CK,lopf:wK,loplus:RK,lotimes:AK,lowast:NK,lowbar:OK,LowerLeftArrow:MK,LowerRightArrow:IK,loz:kK,lozenge:DK,lozf:LK,lpar:PK,lparlt:UK,lrarr:FK,lrcorner:BK,lrhar:GK,lrhard:VK,lrm:zK,lrtri:HK,lsaquo:qK,lscr:$K,Lscr:YK,lsh:WK,Lsh:KK,lsim:jK,lsime:QK,lsimg:XK,lsqb:ZK,lsquo:JK,lsquor:ej,Lstrok:tj,lstrok:nj,ltcc:sj,ltcir:ij,lt:rj,LT:oj,Lt:aj,ltdot:lj,lthree:cj,ltimes:dj,ltlarr:uj,ltquest:pj,ltri:_j,ltrie:hj,ltrif:fj,ltrPar:mj,lurdshar:gj,luruhar:bj,lvertneqq:Ej,lvnE:yj,macr:vj,male:Sj,malt:Tj,maltese:xj,Map:"⤅",map:Cj,mapsto:wj,mapstodown:Rj,mapstoleft:Aj,mapstoup:Nj,marker:Oj,mcomma:Mj,Mcy:Ij,mcy:kj,mdash:Dj,mDDot:Lj,measuredangle:Pj,MediumSpace:Uj,Mellintrf:Fj,Mfr:Bj,mfr:Gj,mho:Vj,micro:zj,midast:Hj,midcir:qj,mid:$j,middot:Yj,minusb:Wj,minus:Kj,minusd:jj,minusdu:Qj,MinusPlus:Xj,mlcp:Zj,mldr:Jj,mnplus:eQ,models:tQ,Mopf:nQ,mopf:sQ,mp:iQ,mscr:rQ,Mscr:oQ,mstpos:aQ,Mu:lQ,mu:cQ,multimap:dQ,mumap:uQ,nabla:pQ,Nacute:_Q,nacute:hQ,nang:fQ,nap:mQ,napE:gQ,napid:bQ,napos:EQ,napprox:yQ,natural:vQ,naturals:SQ,natur:TQ,nbsp:xQ,nbump:CQ,nbumpe:wQ,ncap:RQ,Ncaron:AQ,ncaron:NQ,Ncedil:OQ,ncedil:MQ,ncong:IQ,ncongdot:kQ,ncup:DQ,Ncy:LQ,ncy:PQ,ndash:UQ,nearhk:FQ,nearr:BQ,neArr:GQ,nearrow:VQ,ne:zQ,nedot:HQ,NegativeMediumSpace:qQ,NegativeThickSpace:$Q,NegativeThinSpace:YQ,NegativeVeryThinSpace:WQ,nequiv:KQ,nesear:jQ,nesim:QQ,NestedGreaterGreater:XQ,NestedLessLess:ZQ,NewLine:JQ,nexist:eX,nexists:tX,Nfr:nX,nfr:sX,ngE:iX,nge:rX,ngeq:oX,ngeqq:aX,ngeqslant:lX,nges:cX,nGg:dX,ngsim:uX,nGt:pX,ngt:_X,ngtr:hX,nGtv:fX,nharr:mX,nhArr:gX,nhpar:bX,ni:EX,nis:yX,nisd:vX,niv:SX,NJcy:TX,njcy:xX,nlarr:CX,nlArr:wX,nldr:RX,nlE:AX,nle:NX,nleftarrow:OX,nLeftarrow:MX,nleftrightarrow:IX,nLeftrightarrow:kX,nleq:DX,nleqq:LX,nleqslant:PX,nles:UX,nless:FX,nLl:BX,nlsim:GX,nLt:VX,nlt:zX,nltri:HX,nltrie:qX,nLtv:$X,nmid:YX,NoBreak:WX,NonBreakingSpace:KX,nopf:jX,Nopf:QX,Not:XX,not:ZX,NotCongruent:JX,NotCupCap:eZ,NotDoubleVerticalBar:tZ,NotElement:nZ,NotEqual:sZ,NotEqualTilde:iZ,NotExists:rZ,NotGreater:oZ,NotGreaterEqual:aZ,NotGreaterFullEqual:lZ,NotGreaterGreater:cZ,NotGreaterLess:dZ,NotGreaterSlantEqual:uZ,NotGreaterTilde:pZ,NotHumpDownHump:_Z,NotHumpEqual:hZ,notin:fZ,notindot:mZ,notinE:gZ,notinva:bZ,notinvb:EZ,notinvc:yZ,NotLeftTriangleBar:vZ,NotLeftTriangle:SZ,NotLeftTriangleEqual:TZ,NotLess:xZ,NotLessEqual:CZ,NotLessGreater:wZ,NotLessLess:RZ,NotLessSlantEqual:AZ,NotLessTilde:NZ,NotNestedGreaterGreater:OZ,NotNestedLessLess:MZ,notni:IZ,notniva:kZ,notnivb:DZ,notnivc:LZ,NotPrecedes:PZ,NotPrecedesEqual:UZ,NotPrecedesSlantEqual:FZ,NotReverseElement:BZ,NotRightTriangleBar:GZ,NotRightTriangle:VZ,NotRightTriangleEqual:zZ,NotSquareSubset:HZ,NotSquareSubsetEqual:qZ,NotSquareSuperset:$Z,NotSquareSupersetEqual:YZ,NotSubset:WZ,NotSubsetEqual:KZ,NotSucceeds:jZ,NotSucceedsEqual:QZ,NotSucceedsSlantEqual:XZ,NotSucceedsTilde:ZZ,NotSuperset:JZ,NotSupersetEqual:eJ,NotTilde:tJ,NotTildeEqual:nJ,NotTildeFullEqual:sJ,NotTildeTilde:iJ,NotVerticalBar:rJ,nparallel:oJ,npar:aJ,nparsl:lJ,npart:cJ,npolint:dJ,npr:uJ,nprcue:pJ,nprec:_J,npreceq:hJ,npre:fJ,nrarrc:mJ,nrarr:gJ,nrArr:bJ,nrarrw:EJ,nrightarrow:yJ,nRightarrow:vJ,nrtri:SJ,nrtrie:TJ,nsc:xJ,nsccue:CJ,nsce:wJ,Nscr:RJ,nscr:AJ,nshortmid:NJ,nshortparallel:OJ,nsim:MJ,nsime:IJ,nsimeq:kJ,nsmid:DJ,nspar:LJ,nsqsube:PJ,nsqsupe:UJ,nsub:FJ,nsubE:BJ,nsube:GJ,nsubset:VJ,nsubseteq:zJ,nsubseteqq:HJ,nsucc:qJ,nsucceq:$J,nsup:YJ,nsupE:WJ,nsupe:KJ,nsupset:jJ,nsupseteq:QJ,nsupseteqq:XJ,ntgl:ZJ,Ntilde:JJ,ntilde:eee,ntlg:tee,ntriangleleft:nee,ntrianglelefteq:see,ntriangleright:iee,ntrianglerighteq:ree,Nu:oee,nu:aee,num:lee,numero:cee,numsp:dee,nvap:uee,nvdash:pee,nvDash:_ee,nVdash:hee,nVDash:fee,nvge:mee,nvgt:gee,nvHarr:bee,nvinfin:Eee,nvlArr:yee,nvle:vee,nvlt:See,nvltrie:Tee,nvrArr:xee,nvrtrie:Cee,nvsim:wee,nwarhk:Ree,nwarr:Aee,nwArr:Nee,nwarrow:Oee,nwnear:Mee,Oacute:Iee,oacute:kee,oast:Dee,Ocirc:Lee,ocirc:Pee,ocir:Uee,Ocy:Fee,ocy:Bee,odash:Gee,Odblac:Vee,odblac:zee,odiv:Hee,odot:qee,odsold:$ee,OElig:Yee,oelig:Wee,ofcir:Kee,Ofr:jee,ofr:Qee,ogon:Xee,Ograve:Zee,ograve:Jee,ogt:ete,ohbar:tte,ohm:nte,oint:ste,olarr:ite,olcir:rte,olcross:ote,oline:ate,olt:lte,Omacr:cte,omacr:dte,Omega:ute,omega:pte,Omicron:_te,omicron:hte,omid:fte,ominus:mte,Oopf:gte,oopf:bte,opar:Ete,OpenCurlyDoubleQuote:yte,OpenCurlyQuote:vte,operp:Ste,oplus:Tte,orarr:xte,Or:Cte,or:wte,ord:Rte,order:Ate,orderof:Nte,ordf:Ote,ordm:Mte,origof:Ite,oror:kte,orslope:Dte,orv:Lte,oS:Pte,Oscr:Ute,oscr:Fte,Oslash:Bte,oslash:Gte,osol:Vte,Otilde:zte,otilde:Hte,otimesas:qte,Otimes:$te,otimes:Yte,Ouml:Wte,ouml:Kte,ovbar:jte,OverBar:Qte,OverBrace:Xte,OverBracket:Zte,OverParenthesis:Jte,para:ene,parallel:tne,par:nne,parsim:sne,parsl:ine,part:rne,PartialD:one,Pcy:ane,pcy:lne,percnt:cne,period:dne,permil:une,perp:pne,pertenk:_ne,Pfr:hne,pfr:fne,Phi:mne,phi:gne,phiv:bne,phmmat:Ene,phone:yne,Pi:vne,pi:Sne,pitchfork:Tne,piv:xne,planck:Cne,planckh:wne,plankv:Rne,plusacir:Ane,plusb:Nne,pluscir:One,plus:Mne,plusdo:Ine,plusdu:kne,pluse:Dne,PlusMinus:Lne,plusmn:Pne,plussim:Une,plustwo:Fne,pm:Bne,Poincareplane:Gne,pointint:Vne,popf:zne,Popf:Hne,pound:qne,prap:$ne,Pr:Yne,pr:Wne,prcue:Kne,precapprox:jne,prec:Qne,preccurlyeq:Xne,Precedes:Zne,PrecedesEqual:Jne,PrecedesSlantEqual:ese,PrecedesTilde:tse,preceq:nse,precnapprox:sse,precneqq:ise,precnsim:rse,pre:ose,prE:ase,precsim:lse,prime:cse,Prime:dse,primes:use,prnap:pse,prnE:_se,prnsim:hse,prod:fse,Product:mse,profalar:gse,profline:bse,profsurf:Ese,prop:yse,Proportional:vse,Proportion:Sse,propto:Tse,prsim:xse,prurel:Cse,Pscr:wse,pscr:Rse,Psi:Ase,psi:Nse,puncsp:Ose,Qfr:Mse,qfr:Ise,qint:kse,qopf:Dse,Qopf:Lse,qprime:Pse,Qscr:Use,qscr:Fse,quaternions:Bse,quatint:Gse,quest:Vse,questeq:zse,quot:Hse,QUOT:qse,rAarr:$se,race:Yse,Racute:Wse,racute:Kse,radic:jse,raemptyv:Qse,rang:Xse,Rang:Zse,rangd:Jse,range:eie,rangle:tie,raquo:nie,rarrap:sie,rarrb:iie,rarrbfs:rie,rarrc:oie,rarr:aie,Rarr:lie,rArr:cie,rarrfs:die,rarrhk:uie,rarrlp:pie,rarrpl:_ie,rarrsim:hie,Rarrtl:fie,rarrtl:mie,rarrw:gie,ratail:bie,rAtail:Eie,ratio:yie,rationals:vie,rbarr:Sie,rBarr:Tie,RBarr:xie,rbbrk:Cie,rbrace:wie,rbrack:Rie,rbrke:Aie,rbrksld:Nie,rbrkslu:Oie,Rcaron:Mie,rcaron:Iie,Rcedil:kie,rcedil:Die,rceil:Lie,rcub:Pie,Rcy:Uie,rcy:Fie,rdca:Bie,rdldhar:Gie,rdquo:Vie,rdquor:zie,rdsh:Hie,real:qie,realine:$ie,realpart:Yie,reals:Wie,Re:Kie,rect:jie,reg:Qie,REG:Xie,ReverseElement:Zie,ReverseEquilibrium:Jie,ReverseUpEquilibrium:ere,rfisht:tre,rfloor:nre,rfr:sre,Rfr:ire,rHar:rre,rhard:ore,rharu:are,rharul:lre,Rho:cre,rho:dre,rhov:ure,RightAngleBracket:pre,RightArrowBar:_re,rightarrow:hre,RightArrow:fre,Rightarrow:mre,RightArrowLeftArrow:gre,rightarrowtail:bre,RightCeiling:Ere,RightDoubleBracket:yre,RightDownTeeVector:vre,RightDownVectorBar:Sre,RightDownVector:Tre,RightFloor:xre,rightharpoondown:Cre,rightharpoonup:wre,rightleftarrows:Rre,rightleftharpoons:Are,rightrightarrows:Nre,rightsquigarrow:Ore,RightTeeArrow:Mre,RightTee:Ire,RightTeeVector:kre,rightthreetimes:Dre,RightTriangleBar:Lre,RightTriangle:Pre,RightTriangleEqual:Ure,RightUpDownVector:Fre,RightUpTeeVector:Bre,RightUpVectorBar:Gre,RightUpVector:Vre,RightVectorBar:zre,RightVector:Hre,ring:qre,risingdotseq:$re,rlarr:Yre,rlhar:Wre,rlm:Kre,rmoustache:jre,rmoust:Qre,rnmid:Xre,roang:Zre,roarr:Jre,robrk:eoe,ropar:toe,ropf:noe,Ropf:soe,roplus:ioe,rotimes:roe,RoundImplies:ooe,rpar:aoe,rpargt:loe,rppolint:coe,rrarr:doe,Rrightarrow:uoe,rsaquo:poe,rscr:_oe,Rscr:hoe,rsh:foe,Rsh:moe,rsqb:goe,rsquo:boe,rsquor:Eoe,rthree:yoe,rtimes:voe,rtri:Soe,rtrie:Toe,rtrif:xoe,rtriltri:Coe,RuleDelayed:woe,ruluhar:Roe,rx:Aoe,Sacute:Noe,sacute:Ooe,sbquo:Moe,scap:Ioe,Scaron:koe,scaron:Doe,Sc:Loe,sc:Poe,sccue:Uoe,sce:Foe,scE:Boe,Scedil:Goe,scedil:Voe,Scirc:zoe,scirc:Hoe,scnap:qoe,scnE:$oe,scnsim:Yoe,scpolint:Woe,scsim:Koe,Scy:joe,scy:Qoe,sdotb:Xoe,sdot:Zoe,sdote:Joe,searhk:eae,searr:tae,seArr:nae,searrow:sae,sect:iae,semi:rae,seswar:oae,setminus:aae,setmn:lae,sext:cae,Sfr:dae,sfr:uae,sfrown:pae,sharp:_ae,SHCHcy:hae,shchcy:fae,SHcy:mae,shcy:gae,ShortDownArrow:bae,ShortLeftArrow:Eae,shortmid:yae,shortparallel:vae,ShortRightArrow:Sae,ShortUpArrow:Tae,shy:xae,Sigma:Cae,sigma:wae,sigmaf:Rae,sigmav:Aae,sim:Nae,simdot:Oae,sime:Mae,simeq:Iae,simg:kae,simgE:Dae,siml:Lae,simlE:Pae,simne:Uae,simplus:Fae,simrarr:Bae,slarr:Gae,SmallCircle:Vae,smallsetminus:zae,smashp:Hae,smeparsl:qae,smid:$ae,smile:Yae,smt:Wae,smte:Kae,smtes:jae,SOFTcy:Qae,softcy:Xae,solbar:Zae,solb:Jae,sol:ele,Sopf:tle,sopf:nle,spades:sle,spadesuit:ile,spar:rle,sqcap:ole,sqcaps:ale,sqcup:lle,sqcups:cle,Sqrt:dle,sqsub:ule,sqsube:ple,sqsubset:_le,sqsubseteq:hle,sqsup:fle,sqsupe:mle,sqsupset:gle,sqsupseteq:ble,square:Ele,Square:yle,SquareIntersection:vle,SquareSubset:Sle,SquareSubsetEqual:Tle,SquareSuperset:xle,SquareSupersetEqual:Cle,SquareUnion:wle,squarf:Rle,squ:Ale,squf:Nle,srarr:Ole,Sscr:Mle,sscr:Ile,ssetmn:kle,ssmile:Dle,sstarf:Lle,Star:Ple,star:Ule,starf:Fle,straightepsilon:Ble,straightphi:Gle,strns:Vle,sub:zle,Sub:Hle,subdot:qle,subE:$le,sube:Yle,subedot:Wle,submult:Kle,subnE:jle,subne:Qle,subplus:Xle,subrarr:Zle,subset:Jle,Subset:ece,subseteq:tce,subseteqq:nce,SubsetEqual:sce,subsetneq:ice,subsetneqq:rce,subsim:oce,subsub:ace,subsup:lce,succapprox:cce,succ:dce,succcurlyeq:uce,Succeeds:pce,SucceedsEqual:_ce,SucceedsSlantEqual:hce,SucceedsTilde:fce,succeq:mce,succnapprox:gce,succneqq:bce,succnsim:Ece,succsim:yce,SuchThat:vce,sum:Sce,Sum:Tce,sung:xce,sup1:Cce,sup2:wce,sup3:Rce,sup:Ace,Sup:Nce,supdot:Oce,supdsub:Mce,supE:Ice,supe:kce,supedot:Dce,Superset:Lce,SupersetEqual:Pce,suphsol:Uce,suphsub:Fce,suplarr:Bce,supmult:Gce,supnE:Vce,supne:zce,supplus:Hce,supset:qce,Supset:$ce,supseteq:Yce,supseteqq:Wce,supsetneq:Kce,supsetneqq:jce,supsim:Qce,supsub:Xce,supsup:Zce,swarhk:Jce,swarr:ede,swArr:tde,swarrow:nde,swnwar:sde,szlig:ide,Tab:rde,target:ode,Tau:ade,tau:lde,tbrk:cde,Tcaron:dde,tcaron:ude,Tcedil:pde,tcedil:_de,Tcy:hde,tcy:fde,tdot:mde,telrec:gde,Tfr:bde,tfr:Ede,there4:yde,therefore:vde,Therefore:Sde,Theta:Tde,theta:xde,thetasym:Cde,thetav:wde,thickapprox:Rde,thicksim:Ade,ThickSpace:Nde,ThinSpace:Ode,thinsp:Mde,thkap:Ide,thksim:kde,THORN:Dde,thorn:Lde,tilde:Pde,Tilde:Ude,TildeEqual:Fde,TildeFullEqual:Bde,TildeTilde:Gde,timesbar:Vde,timesb:zde,times:Hde,timesd:qde,tint:$de,toea:Yde,topbot:Wde,topcir:Kde,top:jde,Topf:Qde,topf:Xde,topfork:Zde,tosa:Jde,tprime:eue,trade:tue,TRADE:nue,triangle:sue,triangledown:iue,triangleleft:rue,trianglelefteq:oue,triangleq:aue,triangleright:lue,trianglerighteq:cue,tridot:due,trie:uue,triminus:pue,TripleDot:_ue,triplus:hue,trisb:fue,tritime:mue,trpezium:gue,Tscr:bue,tscr:Eue,TScy:yue,tscy:vue,TSHcy:Sue,tshcy:Tue,Tstrok:xue,tstrok:Cue,twixt:wue,twoheadleftarrow:Rue,twoheadrightarrow:Aue,Uacute:Nue,uacute:Oue,uarr:Mue,Uarr:Iue,uArr:kue,Uarrocir:Due,Ubrcy:Lue,ubrcy:Pue,Ubreve:Uue,ubreve:Fue,Ucirc:Bue,ucirc:Gue,Ucy:Vue,ucy:zue,udarr:Hue,Udblac:que,udblac:$ue,udhar:Yue,ufisht:Wue,Ufr:Kue,ufr:jue,Ugrave:Que,ugrave:Xue,uHar:Zue,uharl:Jue,uharr:epe,uhblk:tpe,ulcorn:npe,ulcorner:spe,ulcrop:ipe,ultri:rpe,Umacr:ope,umacr:ape,uml:lpe,UnderBar:cpe,UnderBrace:dpe,UnderBracket:upe,UnderParenthesis:ppe,Union:_pe,UnionPlus:hpe,Uogon:fpe,uogon:mpe,Uopf:gpe,uopf:bpe,UpArrowBar:Epe,uparrow:ype,UpArrow:vpe,Uparrow:Spe,UpArrowDownArrow:Tpe,updownarrow:xpe,UpDownArrow:Cpe,Updownarrow:wpe,UpEquilibrium:Rpe,upharpoonleft:Ape,upharpoonright:Npe,uplus:Ope,UpperLeftArrow:Mpe,UpperRightArrow:Ipe,upsi:kpe,Upsi:Dpe,upsih:Lpe,Upsilon:Ppe,upsilon:Upe,UpTeeArrow:Fpe,UpTee:Bpe,upuparrows:Gpe,urcorn:Vpe,urcorner:zpe,urcrop:Hpe,Uring:qpe,uring:$pe,urtri:Ype,Uscr:Wpe,uscr:Kpe,utdot:jpe,Utilde:Qpe,utilde:Xpe,utri:Zpe,utrif:Jpe,uuarr:e_e,Uuml:t_e,uuml:n_e,uwangle:s_e,vangrt:i_e,varepsilon:r_e,varkappa:o_e,varnothing:a_e,varphi:l_e,varpi:c_e,varpropto:d_e,varr:u_e,vArr:p_e,varrho:__e,varsigma:h_e,varsubsetneq:f_e,varsubsetneqq:m_e,varsupsetneq:g_e,varsupsetneqq:b_e,vartheta:E_e,vartriangleleft:y_e,vartriangleright:v_e,vBar:S_e,Vbar:T_e,vBarv:x_e,Vcy:C_e,vcy:w_e,vdash:R_e,vDash:A_e,Vdash:N_e,VDash:O_e,Vdashl:M_e,veebar:I_e,vee:k_e,Vee:D_e,veeeq:L_e,vellip:P_e,verbar:U_e,Verbar:F_e,vert:B_e,Vert:G_e,VerticalBar:V_e,VerticalLine:z_e,VerticalSeparator:H_e,VerticalTilde:q_e,VeryThinSpace:$_e,Vfr:Y_e,vfr:W_e,vltri:K_e,vnsub:j_e,vnsup:Q_e,Vopf:X_e,vopf:Z_e,vprop:J_e,vrtri:ehe,Vscr:the,vscr:nhe,vsubnE:she,vsubne:ihe,vsupnE:rhe,vsupne:ohe,Vvdash:ahe,vzigzag:lhe,Wcirc:che,wcirc:dhe,wedbar:uhe,wedge:phe,Wedge:_he,wedgeq:hhe,weierp:fhe,Wfr:mhe,wfr:ghe,Wopf:bhe,wopf:Ehe,wp:yhe,wr:vhe,wreath:She,Wscr:The,wscr:xhe,xcap:Che,xcirc:whe,xcup:Rhe,xdtri:Ahe,Xfr:Nhe,xfr:Ohe,xharr:Mhe,xhArr:Ihe,Xi:khe,xi:Dhe,xlarr:Lhe,xlArr:Phe,xmap:Uhe,xnis:Fhe,xodot:Bhe,Xopf:Ghe,xopf:Vhe,xoplus:zhe,xotime:Hhe,xrarr:qhe,xrArr:$he,Xscr:Yhe,xscr:Whe,xsqcup:Khe,xuplus:jhe,xutri:Qhe,xvee:Xhe,xwedge:Zhe,Yacute:Jhe,yacute:efe,YAcy:tfe,yacy:nfe,Ycirc:sfe,ycirc:ife,Ycy:rfe,ycy:ofe,yen:afe,Yfr:lfe,yfr:cfe,YIcy:dfe,yicy:ufe,Yopf:pfe,yopf:_fe,Yscr:hfe,yscr:ffe,YUcy:mfe,yucy:gfe,yuml:bfe,Yuml:Efe,Zacute:yfe,zacute:vfe,Zcaron:Sfe,zcaron:Tfe,Zcy:xfe,zcy:Cfe,Zdot:wfe,zdot:Rfe,zeetrf:Afe,ZeroWidthSpace:Nfe,Zeta:Ofe,zeta:Mfe,zfr:Ife,Zfr:kfe,ZHcy:Dfe,zhcy:Lfe,zigrarr:Pfe,zopf:Ufe,Zopf:Ffe,Zscr:Bfe,zscr:Gfe,zwj:Vfe,zwnj:zfe};var UA=Hfe,Xb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ka={},Pv={};function qfe(t){var e,n,s=Pv[t];if(s)return s;for(s=Pv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?s.push(n):s.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),a=qfe(e),s=0,i=t.length;s=55296&&r<=57343){if(r>=55296&&r<=56319&&s+1=56320&&o<=57343)){c+=encodeURIComponent(t[s]+t[s+1]),s++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[s])}return c}Lu.defaultChars=";/?:@&=+$,-_.!~*'()#";Lu.componentChars="-_.!~*'()";var $fe=Lu,Uv={};function Yfe(t){var e,n,s=Uv[t];if(s)return s;for(s=Uv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),s.push(n);for(e=0;e=55296&&u<=57343?h+="���":h+=String.fromCharCode(u),i+=6;continue}if((o&248)===240&&i+91114111?h+="����":(u-=65536,h+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),i+=9;continue}h+="�"}return h})}Pu.defaultChars=";/?:@&=+$,#";Pu.componentChars="";var Wfe=Pu,Kfe=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function zd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var jfe=/^([a-z0-9.+-]+:)/i,Qfe=/:[0-9]*$/,Xfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Zfe=["<",">",'"',"`"," ","\r",` +*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function d(E,y){for(var v=y.length,S=0;S1?arguments[1]:void 0,y=E!==void 0,v=0,S=h(_),R,C,A,I;if(y&&(E=r(E,b>2?arguments[2]:void 0,2)),S!=null&&!(g==Array&&c(S)))for(I=S.call(_),C=new g;!(A=I.next()).done;v++)u(C,v,y?a(I,E,[A.value,v],!0):A.value);else for(R=d(_.length),C=new g(R);R>v;v++)u(C,v,y?E(_[v],v):_[v]);return C.length=v,C}},"./node_modules/core-js/internals/array-includes.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-indexed-object.js"),o=i("./node_modules/core-js/internals/to-length.js"),a=i("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(c){return function(d,u,h){var f=r(d),m=o(f.length),_=a(h,m),g;if(c&&u!=u){for(;m>_;)if(g=f[_++],g!=g)return!0}else for(;m>_;_++)if((c||_ in f)&&f[_]===u)return c||_||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,s,i){var r=i("./node_modules/core-js/internals/a-function.js");n.exports=function(o,a,c){if(r(o),a===void 0)return o;switch(c){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,h){return o.call(a,d,u,h)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,s,i){var r=i("./node_modules/core-js/internals/an-object.js");n.exports=function(o,a,c,d){try{return d?a(r(c)[0],c[1]):a(c)}catch(h){var u=o.return;throw u!==void 0&&r(u.call(o)),h}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,s,i){var r=i("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}n.exports=function(u,h){if(!h&&!a)return!1;var f=!1;try{var m={};m[o]=function(){return{next:function(){return{done:f=!0}}}},u(m)}catch{}return f}},"./node_modules/core-js/internals/classof-raw.js":function(n,s){var i={}.toString;n.exports=function(r){return i.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,s,i){var r=i("./node_modules/core-js/internals/classof-raw.js"),o=i("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),c=r(function(){return arguments}())=="Arguments",d=function(u,h){try{return u[h]}catch{}};n.exports=function(u){var h,f,m;return u===void 0?"Undefined":u===null?"Null":typeof(f=d(h=Object(u),a))=="string"?f:c?r(h):(m=r(h))=="Object"&&typeof h.callee=="function"?"Arguments":m}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/own-keys.js"),a=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=i("./node_modules/core-js/internals/object-define-property.js");n.exports=function(d,u){for(var h=o(u),f=c.f,m=a.f,_=0;_",R="java"+v+":",C;for(b.style.display="none",d.appendChild(b),b.src=String(R),C=b.contentWindow.document,C.open(),C.write(y+v+S+"document.F=Object"+y+"/"+v+S),C.close(),g=C.F;E--;)delete g[m][a[E]];return g()};n.exports=Object.create||function(E,y){var v;return E!==null?(_[m]=r(E),v=new _,_[m]=null,v[f]=E):v=g(),y===void 0?v:o(v,y)},c[f]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-define-property.js"),a=i("./node_modules/core-js/internals/an-object.js"),c=i("./node_modules/core-js/internals/object-keys.js");n.exports=r?Object.defineProperties:function(u,h){a(u);for(var f=c(h),m=f.length,_=0,g;m>_;)o.f(u,g=f[_++],h[g]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/ie8-dom-define.js"),a=i("./node_modules/core-js/internals/an-object.js"),c=i("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;s.f=r?d:function(h,f,m){if(a(h),f=c(f,!0),a(m),o)try{return d(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[f]=m.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,s,i){var r=i("./node_modules/core-js/internals/descriptors.js"),o=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=i("./node_modules/core-js/internals/create-property-descriptor.js"),c=i("./node_modules/core-js/internals/to-indexed-object.js"),d=i("./node_modules/core-js/internals/to-primitive.js"),u=i("./node_modules/core-js/internals/has.js"),h=i("./node_modules/core-js/internals/ie8-dom-define.js"),f=Object.getOwnPropertyDescriptor;s.f=r?f:function(_,g){if(_=c(_),g=d(g,!0),h)try{return f(_,g)}catch{}if(u(_,g))return a(!o.f.call(_,g),_[g])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(d){return r(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,s){s.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-object.js"),a=i("./node_modules/core-js/internals/shared-key.js"),c=i("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;n.exports=c?Object.getPrototypeOf:function(h){return h=o(h),r(h,d)?h[d]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,s,i){var r=i("./node_modules/core-js/internals/has.js"),o=i("./node_modules/core-js/internals/to-indexed-object.js"),a=i("./node_modules/core-js/internals/array-includes.js"),c=i("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);n.exports=function(u,h){var f=o(u),m=0,_=[],g;for(g in f)!r(c,g)&&r(f,g)&&_.push(g);for(;h.length>m;)r(f,g=h[m++])&&(~d(_,g)||_.push(g));return _}},"./node_modules/core-js/internals/object-keys.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-keys-internal.js"),o=i("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(c){return r(c,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,s,i){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);s.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,s,i){var r=i("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),o=a instanceof Array}catch{}return function(u,h){return r(u,h),o?c.call(u,h):u.__proto__=h,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/object-get-own-property-names.js"),a=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=i("./node_modules/core-js/internals/an-object.js"),d=r.Reflect;n.exports=d&&d.ownKeys||function(h){var f=o.f(c(h)),m=a.f;return m?f.concat(m(h)):f}},"./node_modules/core-js/internals/path.js":function(n,s,i){n.exports=i("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/hide.js"),c=i("./node_modules/core-js/internals/has.js"),d=i("./node_modules/core-js/internals/set-global.js"),u=i("./node_modules/core-js/internals/function-to-string.js"),h=i("./node_modules/core-js/internals/internal-state.js"),f=h.get,m=h.enforce,_=String(u).split("toString");o("inspectSource",function(g){return u.call(g)}),(n.exports=function(g,b,E,y){var v=y?!!y.unsafe:!1,S=y?!!y.enumerable:!1,R=y?!!y.noTargetGet:!1;if(typeof E=="function"&&(typeof b=="string"&&!c(E,"name")&&a(E,"name",b),m(E).source=_.join(typeof b=="string"?b:"")),g===r){S?g[b]=E:d(b,E);return}else v?!R&&g[b]&&(S=!0):delete g[b];S?g[b]=E:a(g,b,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,s){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/hide.js");n.exports=function(a,c){try{o(r,a,c)}catch{r[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,s,i){var r=i("./node_modules/core-js/internals/object-define-property.js").f,o=i("./node_modules/core-js/internals/has.js"),a=i("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");n.exports=function(d,u,h){d&&!o(d=h?d:d.prototype,c)&&r(d,c,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(n,s,i){var r=i("./node_modules/core-js/internals/shared.js"),o=i("./node_modules/core-js/internals/uid.js"),a=r("keys");n.exports=function(c){return a[c]||(a[c]=o(c))}},"./node_modules/core-js/internals/shared.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/set-global.js"),a=i("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",d=r[c]||o(c,{});(n.exports=function(u,h){return d[u]||(d[u]=h!==void 0?h:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,c,d){var u=String(o(a)),h=r(c),f=u.length,m,_;return h<0||h>=f?d?"":void 0:(m=u.charCodeAt(h),m<55296||m>56319||h+1===f||(_=u.charCodeAt(h+1))<56320||_>57343?d?u.charAt(h):m:d?u.slice(h,h+2):(m-55296<<10)+(_-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;n.exports=function(c,d){var u=r(c);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,s,i){var r=i("./node_modules/core-js/internals/indexed-object.js"),o=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,s){var i=Math.ceil,r=Math.floor;n.exports=function(o){return isNaN(o=+o)?0:(o>0?r:i)(o)}},"./node_modules/core-js/internals/to-length.js":function(n,s,i){var r=i("./node_modules/core-js/internals/to-integer.js"),o=Math.min;n.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,s,i){var r=i("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(n,s,i){var r=i("./node_modules/core-js/internals/is-object.js");n.exports=function(o,a){if(!r(o))return o;var c,d;if(a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o))||typeof(c=o.valueOf)=="function"&&!r(d=c.call(o))||!a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,s){var i=0,r=Math.random();n.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++i+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,s,i){var r=i("./node_modules/core-js/internals/is-object.js"),o=i("./node_modules/core-js/internals/an-object.js");n.exports=function(a,c){if(o(a),!r(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,s,i){var r=i("./node_modules/core-js/internals/global.js"),o=i("./node_modules/core-js/internals/shared.js"),a=i("./node_modules/core-js/internals/uid.js"),c=i("./node_modules/core-js/internals/native-symbol.js"),d=r.Symbol,u=o("wks");n.exports=function(h){return u[h]||(u[h]=c&&d[h]||(c?d:a)("Symbol."+h))}},"./node_modules/core-js/modules/es.array.from.js":function(n,s,i){var r=i("./node_modules/core-js/internals/export.js"),o=i("./node_modules/core-js/internals/array-from.js"),a=i("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(d){Array.from(d)});r({target:"Array",stat:!0,forced:c},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,s,i){var r=i("./node_modules/core-js/internals/string-at.js"),o=i("./node_modules/core-js/internals/internal-state.js"),a=i("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=o.set,u=o.getterFor(c);a(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var f=u(this),m=f.string,_=f.index,g;return _>=m.length?{value:void 0,done:!0}:(g=r(m,_,!0),f.index+=g.length,{value:g,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,s){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}n.exports=i},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(g){for(var b=1;b2&&arguments[2]!==void 0?arguments[2]:[];f(this,g),this.name=b,this.contents=E,this.tags=y,this.attrs=r({},u.default,{class:"feather feather-"+b})}return o(g,[{key:"toSvg",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=r({},this.attrs,E,{class:(0,c.default)(this.attrs.class,E.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),g}();function _(g){return Object.keys(g).map(function(b){return b+'="'+g[b]+'"'}).join(" ")}s.default=m},"./src/icons.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icon.js"),o=h(r),a=i("./dist/icons.json"),c=h(a),d=i("./src/tags.json"),u=h(d);function h(f){return f&&f.__esModule?f:{default:f}}s.default=Object.keys(c.default).map(function(f){return new o.default(f,c.default[f],u.default[f])}).reduce(function(f,m){return f[m.name]=m,f},{})},"./src/index.js":function(n,s,i){var r=i("./src/icons.js"),o=h(r),a=i("./src/to-svg.js"),c=h(a),d=i("./src/replace.js"),u=h(d);function h(f){return f&&f.__esModule?f:{default:f}}n.exports={icons:o.default,toSvg:c.default,replace:u.default}},"./src/replace.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=Object.assign||function(_){for(var g=1;g0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var g=document.querySelectorAll("[data-feather]");Array.from(g).forEach(function(b){return f(b,_)})}function f(_){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=m(_),E=b["data-feather"];delete b["data-feather"];var y=d.default[E].toSvg(r({},g,b,{class:(0,a.default)(g.class,b.class)})),v=new DOMParser().parseFromString(y,"image/svg+xml"),S=v.querySelector("svg");_.parentNode.replaceChild(S,_)}function m(_){return Array.from(_.attributes).reduce(function(g,b){return g[b.name]=b.value,g},{})}s.default=h},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,s,i){Object.defineProperty(s,"__esModule",{value:!0});var r=i("./src/icons.js"),o=a(r);function a(d){return d&&d.__esModule?d:{default:d}}function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}s.default=c},0:function(n,s,i){i("./node_modules/core-js/es/array/from.js"),n.exports=i("./src/index.js")}})})})(PA);var KP=PA.exports;const ze=gr(KP);const ot=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n},jP={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),Le(()=>{ze.replace()})},showToast(t,e=3,n=!0){const s=parseInt((new Date().getTime()*Math.random()).toString()).toString(),i={id:s,log_type:n,message:t,show:!0};this.toastArr.push(i),Le(()=>{ze.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=s)},e*1e3)}},watch:{}},xs=t=>(Ss("data-v-46f379e5"),t=t(),Ts(),t),QP={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},XP={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"},ZP={class:"flex flex-row flex-grow items-center h-auto"},JP={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"},eU=xs(()=>l("i",{"data-feather":"x"},null,-1)),tU=xs(()=>l("span",{class:"sr-only"},"Cross icon",-1)),nU=[eU,tU],sU={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"},iU=xs(()=>l("i",{"data-feather":"check"},null,-1)),rU=xs(()=>l("span",{class:"sr-only"},"Check icon",-1)),oU=[iU,rU],aU={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"},lU=xs(()=>l("i",{"data-feather":"info"},null,-1)),cU=xs(()=>l("span",{class:"sr-only"},null,-1)),dU=[lU,cU],uU={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"},pU=xs(()=>l("i",{"data-feather":"alert-triangle"},null,-1)),_U=xs(()=>l("span",{class:"sr-only"},null,-1)),hU=[pU,_U],fU=["title"],mU={class:"flex"},gU=["onClick"],bU=xs(()=>l("span",{class:"sr-only"},"Copy message",-1)),EU=xs(()=>l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),yU=[bU,EU],vU=["onClick"],SU=xs(()=>l("span",{class:"sr-only"},"Close",-1)),TU=xs(()=>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)),xU=[SU,TU];function CU(t,e,n,s,i,r){return T(),w("div",QP,[V(ii,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.toastArr,o=>(T(),w("div",{key:o.id,class:"relative"},[l("div",XP,[l("div",ZP,[o.log_type==0?(T(),w("div",JP,nU)):G("",!0),o.log_type==1?(T(),w("div",sU,oU)):G("",!0),o.log_type==2?(T(),w("div",aU,dU)):G("",!0),o.log_type==3?(T(),w("div",uU,hU)):G("",!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},K(o.message),9,fU)]),l("div",mU,[l("button",{type:"button",onClick:j(a=>r.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"},yU,8,gU),l("button",{type:"button",onClick:a=>r.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"},xU,8,vU)])])]))),128))]),_:1})])}const Zl=ot(jP,[["render",CU],["__scopeId","data-v-46f379e5"]]);var Pt={};const wU="Á",RU="á",AU="Ă",NU="ă",OU="∾",MU="∿",IU="∾̳",kU="Â",DU="â",LU="´",PU="А",UU="а",FU="Æ",BU="æ",GU="⁡",VU="𝔄",zU="𝔞",HU="À",qU="à",$U="ℵ",YU="ℵ",WU="Α",KU="α",jU="Ā",QU="ā",XU="⨿",ZU="&",JU="&",eF="⩕",tF="⩓",nF="∧",sF="⩜",iF="⩘",rF="⩚",oF="∠",aF="⦤",lF="∠",cF="⦨",dF="⦩",uF="⦪",pF="⦫",_F="⦬",hF="⦭",fF="⦮",mF="⦯",gF="∡",bF="∟",EF="⊾",yF="⦝",vF="∢",SF="Å",TF="⍼",xF="Ą",CF="ą",wF="𝔸",RF="𝕒",AF="⩯",NF="≈",OF="⩰",MF="≊",IF="≋",kF="'",DF="⁡",LF="≈",PF="≊",UF="Å",FF="å",BF="𝒜",GF="𝒶",VF="≔",zF="*",HF="≈",qF="≍",$F="Ã",YF="ã",WF="Ä",KF="ä",jF="∳",QF="⨑",XF="≌",ZF="϶",JF="‵",e3="∽",t3="⋍",n3="∖",s3="⫧",i3="⊽",r3="⌅",o3="⌆",a3="⌅",l3="⎵",c3="⎶",d3="≌",u3="Б",p3="б",_3="„",h3="∵",f3="∵",m3="∵",g3="⦰",b3="϶",E3="ℬ",y3="ℬ",v3="Β",S3="β",T3="ℶ",x3="≬",C3="𝔅",w3="𝔟",R3="⋂",A3="◯",N3="⋃",O3="⨀",M3="⨁",I3="⨂",k3="⨆",D3="★",L3="▽",P3="△",U3="⨄",F3="⋁",B3="⋀",G3="⤍",V3="⧫",z3="▪",H3="▴",q3="▾",$3="◂",Y3="▸",W3="␣",K3="▒",j3="░",Q3="▓",X3="█",Z3="=⃥",J3="≡⃥",e4="⫭",t4="⌐",n4="𝔹",s4="𝕓",i4="⊥",r4="⊥",o4="⋈",a4="⧉",l4="┐",c4="╕",d4="╖",u4="╗",p4="┌",_4="╒",h4="╓",f4="╔",m4="─",g4="═",b4="┬",E4="╤",y4="╥",v4="╦",S4="┴",T4="╧",x4="╨",C4="╩",w4="⊟",R4="⊞",A4="⊠",N4="┘",O4="╛",M4="╜",I4="╝",k4="└",D4="╘",L4="╙",P4="╚",U4="│",F4="║",B4="┼",G4="╪",V4="╫",z4="╬",H4="┤",q4="╡",$4="╢",Y4="╣",W4="├",K4="╞",j4="╟",Q4="╠",X4="‵",Z4="˘",J4="˘",eB="¦",tB="𝒷",nB="ℬ",sB="⁏",iB="∽",rB="⋍",oB="⧅",aB="\\",lB="⟈",cB="•",dB="•",uB="≎",pB="⪮",_B="≏",hB="≎",fB="≏",mB="Ć",gB="ć",bB="⩄",EB="⩉",yB="⩋",vB="∩",SB="⋒",TB="⩇",xB="⩀",CB="ⅅ",wB="∩︀",RB="⁁",AB="ˇ",NB="ℭ",OB="⩍",MB="Č",IB="č",kB="Ç",DB="ç",LB="Ĉ",PB="ĉ",UB="∰",FB="⩌",BB="⩐",GB="Ċ",VB="ċ",zB="¸",HB="¸",qB="⦲",$B="¢",YB="·",WB="·",KB="𝔠",jB="ℭ",QB="Ч",XB="ч",ZB="✓",JB="✓",e5="Χ",t5="χ",n5="ˆ",s5="≗",i5="↺",r5="↻",o5="⊛",a5="⊚",l5="⊝",c5="⊙",d5="®",u5="Ⓢ",p5="⊖",_5="⊕",h5="⊗",f5="○",m5="⧃",g5="≗",b5="⨐",E5="⫯",y5="⧂",v5="∲",S5="”",T5="’",x5="♣",C5="♣",w5=":",R5="∷",A5="⩴",N5="≔",O5="≔",M5=",",I5="@",k5="∁",D5="∘",L5="∁",P5="ℂ",U5="≅",F5="⩭",B5="≡",G5="∮",V5="∯",z5="∮",H5="𝕔",q5="ℂ",$5="∐",Y5="∐",W5="©",K5="©",j5="℗",Q5="∳",X5="↵",Z5="✗",J5="⨯",e6="𝒞",t6="𝒸",n6="⫏",s6="⫑",i6="⫐",r6="⫒",o6="⋯",a6="⤸",l6="⤵",c6="⋞",d6="⋟",u6="↶",p6="⤽",_6="⩈",h6="⩆",f6="≍",m6="∪",g6="⋓",b6="⩊",E6="⊍",y6="⩅",v6="∪︀",S6="↷",T6="⤼",x6="⋞",C6="⋟",w6="⋎",R6="⋏",A6="¤",N6="↶",O6="↷",M6="⋎",I6="⋏",k6="∲",D6="∱",L6="⌭",P6="†",U6="‡",F6="ℸ",B6="↓",G6="↡",V6="⇓",z6="‐",H6="⫤",q6="⊣",$6="⤏",Y6="˝",W6="Ď",K6="ď",j6="Д",Q6="д",X6="‡",Z6="⇊",J6="ⅅ",eG="ⅆ",tG="⤑",nG="⩷",sG="°",iG="∇",rG="Δ",oG="δ",aG="⦱",lG="⥿",cG="𝔇",dG="𝔡",uG="⥥",pG="⇃",_G="⇂",hG="´",fG="˙",mG="˝",gG="`",bG="˜",EG="⋄",yG="⋄",vG="⋄",SG="♦",TG="♦",xG="¨",CG="ⅆ",wG="ϝ",RG="⋲",AG="÷",NG="÷",OG="⋇",MG="⋇",IG="Ђ",kG="ђ",DG="⌞",LG="⌍",PG="$",UG="𝔻",FG="𝕕",BG="¨",GG="˙",VG="⃜",zG="≐",HG="≑",qG="≐",$G="∸",YG="∔",WG="⊡",KG="⌆",jG="∯",QG="¨",XG="⇓",ZG="⇐",JG="⇔",e8="⫤",t8="⟸",n8="⟺",s8="⟹",i8="⇒",r8="⊨",o8="⇑",a8="⇕",l8="∥",c8="⤓",d8="↓",u8="↓",p8="⇓",_8="⇵",h8="̑",f8="⇊",m8="⇃",g8="⇂",b8="⥐",E8="⥞",y8="⥖",v8="↽",S8="⥟",T8="⥗",x8="⇁",C8="↧",w8="⊤",R8="⤐",A8="⌟",N8="⌌",O8="𝒟",M8="𝒹",I8="Ѕ",k8="ѕ",D8="⧶",L8="Đ",P8="đ",U8="⋱",F8="▿",B8="▾",G8="⇵",V8="⥯",z8="⦦",H8="Џ",q8="џ",$8="⟿",Y8="É",W8="é",K8="⩮",j8="Ě",Q8="ě",X8="Ê",Z8="ê",J8="≖",e9="≕",t9="Э",n9="э",s9="⩷",i9="Ė",r9="ė",o9="≑",a9="ⅇ",l9="≒",c9="𝔈",d9="𝔢",u9="⪚",p9="È",_9="è",h9="⪖",f9="⪘",m9="⪙",g9="∈",b9="⏧",E9="ℓ",y9="⪕",v9="⪗",S9="Ē",T9="ē",x9="∅",C9="∅",w9="◻",R9="∅",A9="▫",N9=" ",O9=" ",M9=" ",I9="Ŋ",k9="ŋ",D9=" ",L9="Ę",P9="ę",U9="𝔼",F9="𝕖",B9="⋕",G9="⧣",V9="⩱",z9="ε",H9="Ε",q9="ε",$9="ϵ",Y9="≖",W9="≕",K9="≂",j9="⪖",Q9="⪕",X9="⩵",Z9="=",J9="≂",eV="≟",tV="⇌",nV="≡",sV="⩸",iV="⧥",rV="⥱",oV="≓",aV="ℯ",lV="ℰ",cV="≐",dV="⩳",uV="≂",pV="Η",_V="η",hV="Ð",fV="ð",mV="Ë",gV="ë",bV="€",EV="!",yV="∃",vV="∃",SV="ℰ",TV="ⅇ",xV="ⅇ",CV="≒",wV="Ф",RV="ф",AV="♀",NV="ffi",OV="ff",MV="ffl",IV="𝔉",kV="𝔣",DV="fi",LV="◼",PV="▪",UV="fj",FV="♭",BV="fl",GV="▱",VV="ƒ",zV="𝔽",HV="𝕗",qV="∀",$V="∀",YV="⋔",WV="⫙",KV="ℱ",jV="⨍",QV="½",XV="⅓",ZV="¼",JV="⅕",ez="⅙",tz="⅛",nz="⅔",sz="⅖",iz="¾",rz="⅗",oz="⅜",az="⅘",lz="⅚",cz="⅝",dz="⅞",uz="⁄",pz="⌢",_z="𝒻",hz="ℱ",fz="ǵ",mz="Γ",gz="γ",bz="Ϝ",Ez="ϝ",yz="⪆",vz="Ğ",Sz="ğ",Tz="Ģ",xz="Ĝ",Cz="ĝ",wz="Г",Rz="г",Az="Ġ",Nz="ġ",Oz="≥",Mz="≧",Iz="⪌",kz="⋛",Dz="≥",Lz="≧",Pz="⩾",Uz="⪩",Fz="⩾",Bz="⪀",Gz="⪂",Vz="⪄",zz="⋛︀",Hz="⪔",qz="𝔊",$z="𝔤",Yz="≫",Wz="⋙",Kz="⋙",jz="ℷ",Qz="Ѓ",Xz="ѓ",Zz="⪥",Jz="≷",eH="⪒",tH="⪤",nH="⪊",sH="⪊",iH="⪈",rH="≩",oH="⪈",aH="≩",lH="⋧",cH="𝔾",dH="𝕘",uH="`",pH="≥",_H="⋛",hH="≧",fH="⪢",mH="≷",gH="⩾",bH="≳",EH="𝒢",yH="ℊ",vH="≳",SH="⪎",TH="⪐",xH="⪧",CH="⩺",wH=">",RH=">",AH="≫",NH="⋗",OH="⦕",MH="⩼",IH="⪆",kH="⥸",DH="⋗",LH="⋛",PH="⪌",UH="≷",FH="≳",BH="≩︀",GH="≩︀",VH="ˇ",zH=" ",HH="½",qH="ℋ",$H="Ъ",YH="ъ",WH="⥈",KH="↔",jH="⇔",QH="↭",XH="^",ZH="ℏ",JH="Ĥ",e7="ĥ",t7="♥",n7="♥",s7="…",i7="⊹",r7="𝔥",o7="ℌ",a7="ℋ",l7="⤥",c7="⤦",d7="⇿",u7="∻",p7="↩",_7="↪",h7="𝕙",f7="ℍ",m7="―",g7="─",b7="𝒽",E7="ℋ",y7="ℏ",v7="Ħ",S7="ħ",T7="≎",x7="≏",C7="⁃",w7="‐",R7="Í",A7="í",N7="⁣",O7="Î",M7="î",I7="И",k7="и",D7="İ",L7="Е",P7="е",U7="¡",F7="⇔",B7="𝔦",G7="ℑ",V7="Ì",z7="ì",H7="ⅈ",q7="⨌",$7="∭",Y7="⧜",W7="℩",K7="IJ",j7="ij",Q7="Ī",X7="ī",Z7="ℑ",J7="ⅈ",eq="ℐ",tq="ℑ",nq="ı",sq="ℑ",iq="⊷",rq="Ƶ",oq="⇒",aq="℅",lq="∞",cq="⧝",dq="ı",uq="⊺",pq="∫",_q="∬",hq="ℤ",fq="∫",mq="⊺",gq="⋂",bq="⨗",Eq="⨼",yq="⁣",vq="⁢",Sq="Ё",Tq="ё",xq="Į",Cq="į",wq="𝕀",Rq="𝕚",Aq="Ι",Nq="ι",Oq="⨼",Mq="¿",Iq="𝒾",kq="ℐ",Dq="∈",Lq="⋵",Pq="⋹",Uq="⋴",Fq="⋳",Bq="∈",Gq="⁢",Vq="Ĩ",zq="ĩ",Hq="І",qq="і",$q="Ï",Yq="ï",Wq="Ĵ",Kq="ĵ",jq="Й",Qq="й",Xq="𝔍",Zq="𝔧",Jq="ȷ",e$="𝕁",t$="𝕛",n$="𝒥",s$="𝒿",i$="Ј",r$="ј",o$="Є",a$="є",l$="Κ",c$="κ",d$="ϰ",u$="Ķ",p$="ķ",_$="К",h$="к",f$="𝔎",m$="𝔨",g$="ĸ",b$="Х",E$="х",y$="Ќ",v$="ќ",S$="𝕂",T$="𝕜",x$="𝒦",C$="𝓀",w$="⇚",R$="Ĺ",A$="ĺ",N$="⦴",O$="ℒ",M$="Λ",I$="λ",k$="⟨",D$="⟪",L$="⦑",P$="⟨",U$="⪅",F$="ℒ",B$="«",G$="⇤",V$="⤟",z$="←",H$="↞",q$="⇐",$$="⤝",Y$="↩",W$="↫",K$="⤹",j$="⥳",Q$="↢",X$="⤙",Z$="⤛",J$="⪫",eY="⪭",tY="⪭︀",nY="⤌",sY="⤎",iY="❲",rY="{",oY="[",aY="⦋",lY="⦏",cY="⦍",dY="Ľ",uY="ľ",pY="Ļ",_Y="ļ",hY="⌈",fY="{",mY="Л",gY="л",bY="⤶",EY="“",yY="„",vY="⥧",SY="⥋",TY="↲",xY="≤",CY="≦",wY="⟨",RY="⇤",AY="←",NY="←",OY="⇐",MY="⇆",IY="↢",kY="⌈",DY="⟦",LY="⥡",PY="⥙",UY="⇃",FY="⌊",BY="↽",GY="↼",VY="⇇",zY="↔",HY="↔",qY="⇔",$Y="⇆",YY="⇋",WY="↭",KY="⥎",jY="↤",QY="⊣",XY="⥚",ZY="⋋",JY="⧏",eW="⊲",tW="⊴",nW="⥑",sW="⥠",iW="⥘",rW="↿",oW="⥒",aW="↼",lW="⪋",cW="⋚",dW="≤",uW="≦",pW="⩽",_W="⪨",hW="⩽",fW="⩿",mW="⪁",gW="⪃",bW="⋚︀",EW="⪓",yW="⪅",vW="⋖",SW="⋚",TW="⪋",xW="⋚",CW="≦",wW="≶",RW="≶",AW="⪡",NW="≲",OW="⩽",MW="≲",IW="⥼",kW="⌊",DW="𝔏",LW="𝔩",PW="≶",UW="⪑",FW="⥢",BW="↽",GW="↼",VW="⥪",zW="▄",HW="Љ",qW="љ",$W="⇇",YW="≪",WW="⋘",KW="⌞",jW="⇚",QW="⥫",XW="◺",ZW="Ŀ",JW="ŀ",eK="⎰",tK="⎰",nK="⪉",sK="⪉",iK="⪇",rK="≨",oK="⪇",aK="≨",lK="⋦",cK="⟬",dK="⇽",uK="⟦",pK="⟵",_K="⟵",hK="⟸",fK="⟷",mK="⟷",gK="⟺",bK="⟼",EK="⟶",yK="⟶",vK="⟹",SK="↫",TK="↬",xK="⦅",CK="𝕃",wK="𝕝",RK="⨭",AK="⨴",NK="∗",OK="_",MK="↙",IK="↘",kK="◊",DK="◊",LK="⧫",PK="(",UK="⦓",FK="⇆",BK="⌟",GK="⇋",VK="⥭",zK="‎",HK="⊿",qK="‹",$K="𝓁",YK="ℒ",WK="↰",KK="↰",jK="≲",QK="⪍",XK="⪏",ZK="[",JK="‘",ej="‚",tj="Ł",nj="ł",sj="⪦",ij="⩹",rj="<",oj="<",aj="≪",lj="⋖",cj="⋋",dj="⋉",uj="⥶",pj="⩻",_j="◃",hj="⊴",fj="◂",mj="⦖",gj="⥊",bj="⥦",Ej="≨︀",yj="≨︀",vj="¯",Sj="♂",Tj="✠",xj="✠",Cj="↦",wj="↦",Rj="↧",Aj="↤",Nj="↥",Oj="▮",Mj="⨩",Ij="М",kj="м",Dj="—",Lj="∺",Pj="∡",Uj=" ",Fj="ℳ",Bj="𝔐",Gj="𝔪",Vj="℧",zj="µ",Hj="*",qj="⫰",$j="∣",Yj="·",Wj="⊟",Kj="−",jj="∸",Qj="⨪",Xj="∓",Zj="⫛",Jj="…",eQ="∓",tQ="⊧",nQ="𝕄",sQ="𝕞",iQ="∓",rQ="𝓂",oQ="ℳ",aQ="∾",lQ="Μ",cQ="μ",dQ="⊸",uQ="⊸",pQ="∇",_Q="Ń",hQ="ń",fQ="∠⃒",mQ="≉",gQ="⩰̸",bQ="≋̸",EQ="ʼn",yQ="≉",vQ="♮",SQ="ℕ",TQ="♮",xQ=" ",CQ="≎̸",wQ="≏̸",RQ="⩃",AQ="Ň",NQ="ň",OQ="Ņ",MQ="ņ",IQ="≇",kQ="⩭̸",DQ="⩂",LQ="Н",PQ="н",UQ="–",FQ="⤤",BQ="↗",GQ="⇗",VQ="↗",zQ="≠",HQ="≐̸",qQ="​",$Q="​",YQ="​",WQ="​",KQ="≢",jQ="⤨",QQ="≂̸",XQ="≫",ZQ="≪",JQ=` +`,eX="∄",tX="∄",nX="𝔑",sX="𝔫",iX="≧̸",rX="≱",oX="≱",aX="≧̸",lX="⩾̸",cX="⩾̸",dX="⋙̸",uX="≵",pX="≫⃒",_X="≯",hX="≯",fX="≫̸",mX="↮",gX="⇎",bX="⫲",EX="∋",yX="⋼",vX="⋺",SX="∋",TX="Њ",xX="њ",CX="↚",wX="⇍",RX="‥",AX="≦̸",NX="≰",OX="↚",MX="⇍",IX="↮",kX="⇎",DX="≰",LX="≦̸",PX="⩽̸",UX="⩽̸",FX="≮",BX="⋘̸",GX="≴",VX="≪⃒",zX="≮",HX="⋪",qX="⋬",$X="≪̸",YX="∤",WX="⁠",KX=" ",jX="𝕟",QX="ℕ",XX="⫬",ZX="¬",JX="≢",eZ="≭",tZ="∦",nZ="∉",sZ="≠",iZ="≂̸",rZ="∄",oZ="≯",aZ="≱",lZ="≧̸",cZ="≫̸",dZ="≹",uZ="⩾̸",pZ="≵",_Z="≎̸",hZ="≏̸",fZ="∉",mZ="⋵̸",gZ="⋹̸",bZ="∉",EZ="⋷",yZ="⋶",vZ="⧏̸",SZ="⋪",TZ="⋬",xZ="≮",CZ="≰",wZ="≸",RZ="≪̸",AZ="⩽̸",NZ="≴",OZ="⪢̸",MZ="⪡̸",IZ="∌",kZ="∌",DZ="⋾",LZ="⋽",PZ="⊀",UZ="⪯̸",FZ="⋠",BZ="∌",GZ="⧐̸",VZ="⋫",zZ="⋭",HZ="⊏̸",qZ="⋢",$Z="⊐̸",YZ="⋣",WZ="⊂⃒",KZ="⊈",jZ="⊁",QZ="⪰̸",XZ="⋡",ZZ="≿̸",JZ="⊃⃒",eJ="⊉",tJ="≁",nJ="≄",sJ="≇",iJ="≉",rJ="∤",oJ="∦",aJ="∦",lJ="⫽⃥",cJ="∂̸",dJ="⨔",uJ="⊀",pJ="⋠",_J="⊀",hJ="⪯̸",fJ="⪯̸",mJ="⤳̸",gJ="↛",bJ="⇏",EJ="↝̸",yJ="↛",vJ="⇏",SJ="⋫",TJ="⋭",xJ="⊁",CJ="⋡",wJ="⪰̸",RJ="𝒩",AJ="𝓃",NJ="∤",OJ="∦",MJ="≁",IJ="≄",kJ="≄",DJ="∤",LJ="∦",PJ="⋢",UJ="⋣",FJ="⊄",BJ="⫅̸",GJ="⊈",VJ="⊂⃒",zJ="⊈",HJ="⫅̸",qJ="⊁",$J="⪰̸",YJ="⊅",WJ="⫆̸",KJ="⊉",jJ="⊃⃒",QJ="⊉",XJ="⫆̸",ZJ="≹",JJ="Ñ",eee="ñ",tee="≸",nee="⋪",see="⋬",iee="⋫",ree="⋭",oee="Ν",aee="ν",lee="#",cee="№",dee=" ",uee="≍⃒",pee="⊬",_ee="⊭",hee="⊮",fee="⊯",mee="≥⃒",gee=">⃒",bee="⤄",Eee="⧞",yee="⤂",vee="≤⃒",See="<⃒",Tee="⊴⃒",xee="⤃",Cee="⊵⃒",wee="∼⃒",Ree="⤣",Aee="↖",Nee="⇖",Oee="↖",Mee="⤧",Iee="Ó",kee="ó",Dee="⊛",Lee="Ô",Pee="ô",Uee="⊚",Fee="О",Bee="о",Gee="⊝",Vee="Ő",zee="ő",Hee="⨸",qee="⊙",$ee="⦼",Yee="Œ",Wee="œ",Kee="⦿",jee="𝔒",Qee="𝔬",Xee="˛",Zee="Ò",Jee="ò",ete="⧁",tte="⦵",nte="Ω",ste="∮",ite="↺",rte="⦾",ote="⦻",ate="‾",lte="⧀",cte="Ō",dte="ō",ute="Ω",pte="ω",_te="Ο",hte="ο",fte="⦶",mte="⊖",gte="𝕆",bte="𝕠",Ete="⦷",yte="“",vte="‘",Ste="⦹",Tte="⊕",xte="↻",Cte="⩔",wte="∨",Rte="⩝",Ate="ℴ",Nte="ℴ",Ote="ª",Mte="º",Ite="⊶",kte="⩖",Dte="⩗",Lte="⩛",Pte="Ⓢ",Ute="𝒪",Fte="ℴ",Bte="Ø",Gte="ø",Vte="⊘",zte="Õ",Hte="õ",qte="⨶",$te="⨷",Yte="⊗",Wte="Ö",Kte="ö",jte="⌽",Qte="‾",Xte="⏞",Zte="⎴",Jte="⏜",ene="¶",tne="∥",nne="∥",sne="⫳",ine="⫽",rne="∂",one="∂",ane="П",lne="п",cne="%",dne=".",une="‰",pne="⊥",_ne="‱",hne="𝔓",fne="𝔭",mne="Φ",gne="φ",bne="ϕ",Ene="ℳ",yne="☎",vne="Π",Sne="π",Tne="⋔",xne="ϖ",Cne="ℏ",wne="ℎ",Rne="ℏ",Ane="⨣",Nne="⊞",One="⨢",Mne="+",Ine="∔",kne="⨥",Dne="⩲",Lne="±",Pne="±",Une="⨦",Fne="⨧",Bne="±",Gne="ℌ",Vne="⨕",zne="𝕡",Hne="ℙ",qne="£",$ne="⪷",Yne="⪻",Wne="≺",Kne="≼",jne="⪷",Qne="≺",Xne="≼",Zne="≺",Jne="⪯",ese="≼",tse="≾",nse="⪯",sse="⪹",ise="⪵",rse="⋨",ose="⪯",ase="⪳",lse="≾",cse="′",dse="″",use="ℙ",pse="⪹",_se="⪵",hse="⋨",fse="∏",mse="∏",gse="⌮",bse="⌒",Ese="⌓",yse="∝",vse="∝",Sse="∷",Tse="∝",xse="≾",Cse="⊰",wse="𝒫",Rse="𝓅",Ase="Ψ",Nse="ψ",Ose=" ",Mse="𝔔",Ise="𝔮",kse="⨌",Dse="𝕢",Lse="ℚ",Pse="⁗",Use="𝒬",Fse="𝓆",Bse="ℍ",Gse="⨖",Vse="?",zse="≟",Hse='"',qse='"',$se="⇛",Yse="∽̱",Wse="Ŕ",Kse="ŕ",jse="√",Qse="⦳",Xse="⟩",Zse="⟫",Jse="⦒",eie="⦥",tie="⟩",nie="»",sie="⥵",iie="⇥",rie="⤠",oie="⤳",aie="→",lie="↠",cie="⇒",die="⤞",uie="↪",pie="↬",_ie="⥅",hie="⥴",fie="⤖",mie="↣",gie="↝",bie="⤚",Eie="⤜",yie="∶",vie="ℚ",Sie="⤍",Tie="⤏",xie="⤐",Cie="❳",wie="}",Rie="]",Aie="⦌",Nie="⦎",Oie="⦐",Mie="Ř",Iie="ř",kie="Ŗ",Die="ŗ",Lie="⌉",Pie="}",Uie="Р",Fie="р",Bie="⤷",Gie="⥩",Vie="”",zie="”",Hie="↳",qie="ℜ",$ie="ℛ",Yie="ℜ",Wie="ℝ",Kie="ℜ",jie="▭",Qie="®",Xie="®",Zie="∋",Jie="⇋",ere="⥯",tre="⥽",nre="⌋",sre="𝔯",ire="ℜ",rre="⥤",ore="⇁",are="⇀",lre="⥬",cre="Ρ",dre="ρ",ure="ϱ",pre="⟩",_re="⇥",hre="→",fre="→",mre="⇒",gre="⇄",bre="↣",Ere="⌉",yre="⟧",vre="⥝",Sre="⥕",Tre="⇂",xre="⌋",Cre="⇁",wre="⇀",Rre="⇄",Are="⇌",Nre="⇉",Ore="↝",Mre="↦",Ire="⊢",kre="⥛",Dre="⋌",Lre="⧐",Pre="⊳",Ure="⊵",Fre="⥏",Bre="⥜",Gre="⥔",Vre="↾",zre="⥓",Hre="⇀",qre="˚",$re="≓",Yre="⇄",Wre="⇌",Kre="‏",jre="⎱",Qre="⎱",Xre="⫮",Zre="⟭",Jre="⇾",eoe="⟧",toe="⦆",noe="𝕣",soe="ℝ",ioe="⨮",roe="⨵",ooe="⥰",aoe=")",loe="⦔",coe="⨒",doe="⇉",uoe="⇛",poe="›",_oe="𝓇",hoe="ℛ",foe="↱",moe="↱",goe="]",boe="’",Eoe="’",yoe="⋌",voe="⋊",Soe="▹",Toe="⊵",xoe="▸",Coe="⧎",woe="⧴",Roe="⥨",Aoe="℞",Noe="Ś",Ooe="ś",Moe="‚",Ioe="⪸",koe="Š",Doe="š",Loe="⪼",Poe="≻",Uoe="≽",Foe="⪰",Boe="⪴",Goe="Ş",Voe="ş",zoe="Ŝ",Hoe="ŝ",qoe="⪺",$oe="⪶",Yoe="⋩",Woe="⨓",Koe="≿",joe="С",Qoe="с",Xoe="⊡",Zoe="⋅",Joe="⩦",eae="⤥",tae="↘",nae="⇘",sae="↘",iae="§",rae=";",oae="⤩",aae="∖",lae="∖",cae="✶",dae="𝔖",uae="𝔰",pae="⌢",_ae="♯",hae="Щ",fae="щ",mae="Ш",gae="ш",bae="↓",Eae="←",yae="∣",vae="∥",Sae="→",Tae="↑",xae="­",Cae="Σ",wae="σ",Rae="ς",Aae="ς",Nae="∼",Oae="⩪",Mae="≃",Iae="≃",kae="⪞",Dae="⪠",Lae="⪝",Pae="⪟",Uae="≆",Fae="⨤",Bae="⥲",Gae="←",Vae="∘",zae="∖",Hae="⨳",qae="⧤",$ae="∣",Yae="⌣",Wae="⪪",Kae="⪬",jae="⪬︀",Qae="Ь",Xae="ь",Zae="⌿",Jae="⧄",ele="/",tle="𝕊",nle="𝕤",sle="♠",ile="♠",rle="∥",ole="⊓",ale="⊓︀",lle="⊔",cle="⊔︀",dle="√",ule="⊏",ple="⊑",_le="⊏",hle="⊑",fle="⊐",mle="⊒",gle="⊐",ble="⊒",Ele="□",yle="□",vle="⊓",Sle="⊏",Tle="⊑",xle="⊐",Cle="⊒",wle="⊔",Rle="▪",Ale="□",Nle="▪",Ole="→",Mle="𝒮",Ile="𝓈",kle="∖",Dle="⌣",Lle="⋆",Ple="⋆",Ule="☆",Fle="★",Ble="ϵ",Gle="ϕ",Vle="¯",zle="⊂",Hle="⋐",qle="⪽",$le="⫅",Yle="⊆",Wle="⫃",Kle="⫁",jle="⫋",Qle="⊊",Xle="⪿",Zle="⥹",Jle="⊂",ece="⋐",tce="⊆",nce="⫅",sce="⊆",ice="⊊",rce="⫋",oce="⫇",ace="⫕",lce="⫓",cce="⪸",dce="≻",uce="≽",pce="≻",_ce="⪰",hce="≽",fce="≿",mce="⪰",gce="⪺",bce="⪶",Ece="⋩",yce="≿",vce="∋",Sce="∑",Tce="∑",xce="♪",Cce="¹",wce="²",Rce="³",Ace="⊃",Nce="⋑",Oce="⪾",Mce="⫘",Ice="⫆",kce="⊇",Dce="⫄",Lce="⊃",Pce="⊇",Uce="⟉",Fce="⫗",Bce="⥻",Gce="⫂",Vce="⫌",zce="⊋",Hce="⫀",qce="⊃",$ce="⋑",Yce="⊇",Wce="⫆",Kce="⊋",jce="⫌",Qce="⫈",Xce="⫔",Zce="⫖",Jce="⤦",ede="↙",tde="⇙",nde="↙",sde="⤪",ide="ß",rde=" ",ode="⌖",ade="Τ",lde="τ",cde="⎴",dde="Ť",ude="ť",pde="Ţ",_de="ţ",hde="Т",fde="т",mde="⃛",gde="⌕",bde="𝔗",Ede="𝔱",yde="∴",vde="∴",Sde="∴",Tde="Θ",xde="θ",Cde="ϑ",wde="ϑ",Rde="≈",Ade="∼",Nde="  ",Ode=" ",Mde=" ",Ide="≈",kde="∼",Dde="Þ",Lde="þ",Pde="˜",Ude="∼",Fde="≃",Bde="≅",Gde="≈",Vde="⨱",zde="⊠",Hde="×",qde="⨰",$de="∭",Yde="⤨",Wde="⌶",Kde="⫱",jde="⊤",Qde="𝕋",Xde="𝕥",Zde="⫚",Jde="⤩",eue="‴",tue="™",nue="™",sue="▵",iue="▿",rue="◃",oue="⊴",aue="≜",lue="▹",cue="⊵",due="◬",uue="≜",pue="⨺",_ue="⃛",hue="⨹",fue="⧍",mue="⨻",gue="⏢",bue="𝒯",Eue="𝓉",yue="Ц",vue="ц",Sue="Ћ",Tue="ћ",xue="Ŧ",Cue="ŧ",wue="≬",Rue="↞",Aue="↠",Nue="Ú",Oue="ú",Mue="↑",Iue="↟",kue="⇑",Due="⥉",Lue="Ў",Pue="ў",Uue="Ŭ",Fue="ŭ",Bue="Û",Gue="û",Vue="У",zue="у",Hue="⇅",que="Ű",$ue="ű",Yue="⥮",Wue="⥾",Kue="𝔘",jue="𝔲",Que="Ù",Xue="ù",Zue="⥣",Jue="↿",epe="↾",tpe="▀",npe="⌜",spe="⌜",ipe="⌏",rpe="◸",ope="Ū",ape="ū",lpe="¨",cpe="_",dpe="⏟",upe="⎵",ppe="⏝",_pe="⋃",hpe="⊎",fpe="Ų",mpe="ų",gpe="𝕌",bpe="𝕦",Epe="⤒",ype="↑",vpe="↑",Spe="⇑",Tpe="⇅",xpe="↕",Cpe="↕",wpe="⇕",Rpe="⥮",Ape="↿",Npe="↾",Ope="⊎",Mpe="↖",Ipe="↗",kpe="υ",Dpe="ϒ",Lpe="ϒ",Ppe="Υ",Upe="υ",Fpe="↥",Bpe="⊥",Gpe="⇈",Vpe="⌝",zpe="⌝",Hpe="⌎",qpe="Ů",$pe="ů",Ype="◹",Wpe="𝒰",Kpe="𝓊",jpe="⋰",Qpe="Ũ",Xpe="ũ",Zpe="▵",Jpe="▴",e_e="⇈",t_e="Ü",n_e="ü",s_e="⦧",i_e="⦜",r_e="ϵ",o_e="ϰ",a_e="∅",l_e="ϕ",c_e="ϖ",d_e="∝",u_e="↕",p_e="⇕",__e="ϱ",h_e="ς",f_e="⊊︀",m_e="⫋︀",g_e="⊋︀",b_e="⫌︀",E_e="ϑ",y_e="⊲",v_e="⊳",S_e="⫨",T_e="⫫",x_e="⫩",C_e="В",w_e="в",R_e="⊢",A_e="⊨",N_e="⊩",O_e="⊫",M_e="⫦",I_e="⊻",k_e="∨",D_e="⋁",L_e="≚",P_e="⋮",U_e="|",F_e="‖",B_e="|",G_e="‖",V_e="∣",z_e="|",H_e="❘",q_e="≀",$_e=" ",Y_e="𝔙",W_e="𝔳",K_e="⊲",j_e="⊂⃒",Q_e="⊃⃒",X_e="𝕍",Z_e="𝕧",J_e="∝",ehe="⊳",the="𝒱",nhe="𝓋",she="⫋︀",ihe="⊊︀",rhe="⫌︀",ohe="⊋︀",ahe="⊪",lhe="⦚",che="Ŵ",dhe="ŵ",uhe="⩟",phe="∧",_he="⋀",hhe="≙",fhe="℘",mhe="𝔚",ghe="𝔴",bhe="𝕎",Ehe="𝕨",yhe="℘",vhe="≀",She="≀",The="𝒲",xhe="𝓌",Che="⋂",whe="◯",Rhe="⋃",Ahe="▽",Nhe="𝔛",Ohe="𝔵",Mhe="⟷",Ihe="⟺",khe="Ξ",Dhe="ξ",Lhe="⟵",Phe="⟸",Uhe="⟼",Fhe="⋻",Bhe="⨀",Ghe="𝕏",Vhe="𝕩",zhe="⨁",Hhe="⨂",qhe="⟶",$he="⟹",Yhe="𝒳",Whe="𝓍",Khe="⨆",jhe="⨄",Qhe="△",Xhe="⋁",Zhe="⋀",Jhe="Ý",efe="ý",tfe="Я",nfe="я",sfe="Ŷ",ife="ŷ",rfe="Ы",ofe="ы",afe="¥",lfe="𝔜",cfe="𝔶",dfe="Ї",ufe="ї",pfe="𝕐",_fe="𝕪",hfe="𝒴",ffe="𝓎",mfe="Ю",gfe="ю",bfe="ÿ",Efe="Ÿ",yfe="Ź",vfe="ź",Sfe="Ž",Tfe="ž",xfe="З",Cfe="з",wfe="Ż",Rfe="ż",Afe="ℨ",Nfe="​",Ofe="Ζ",Mfe="ζ",Ife="𝔷",kfe="ℨ",Dfe="Ж",Lfe="ж",Pfe="⇝",Ufe="𝕫",Ffe="ℤ",Bfe="𝒵",Gfe="𝓏",Vfe="‍",zfe="‌",Hfe={Aacute:wU,aacute:RU,Abreve:AU,abreve:NU,ac:OU,acd:MU,acE:IU,Acirc:kU,acirc:DU,acute:LU,Acy:PU,acy:UU,AElig:FU,aelig:BU,af:GU,Afr:VU,afr:zU,Agrave:HU,agrave:qU,alefsym:$U,aleph:YU,Alpha:WU,alpha:KU,Amacr:jU,amacr:QU,amalg:XU,amp:ZU,AMP:JU,andand:eF,And:tF,and:nF,andd:sF,andslope:iF,andv:rF,ang:oF,ange:aF,angle:lF,angmsdaa:cF,angmsdab:dF,angmsdac:uF,angmsdad:pF,angmsdae:_F,angmsdaf:hF,angmsdag:fF,angmsdah:mF,angmsd:gF,angrt:bF,angrtvb:EF,angrtvbd:yF,angsph:vF,angst:SF,angzarr:TF,Aogon:xF,aogon:CF,Aopf:wF,aopf:RF,apacir:AF,ap:NF,apE:OF,ape:MF,apid:IF,apos:kF,ApplyFunction:DF,approx:LF,approxeq:PF,Aring:UF,aring:FF,Ascr:BF,ascr:GF,Assign:VF,ast:zF,asymp:HF,asympeq:qF,Atilde:$F,atilde:YF,Auml:WF,auml:KF,awconint:jF,awint:QF,backcong:XF,backepsilon:ZF,backprime:JF,backsim:e3,backsimeq:t3,Backslash:n3,Barv:s3,barvee:i3,barwed:r3,Barwed:o3,barwedge:a3,bbrk:l3,bbrktbrk:c3,bcong:d3,Bcy:u3,bcy:p3,bdquo:_3,becaus:h3,because:f3,Because:m3,bemptyv:g3,bepsi:b3,bernou:E3,Bernoullis:y3,Beta:v3,beta:S3,beth:T3,between:x3,Bfr:C3,bfr:w3,bigcap:R3,bigcirc:A3,bigcup:N3,bigodot:O3,bigoplus:M3,bigotimes:I3,bigsqcup:k3,bigstar:D3,bigtriangledown:L3,bigtriangleup:P3,biguplus:U3,bigvee:F3,bigwedge:B3,bkarow:G3,blacklozenge:V3,blacksquare:z3,blacktriangle:H3,blacktriangledown:q3,blacktriangleleft:$3,blacktriangleright:Y3,blank:W3,blk12:K3,blk14:j3,blk34:Q3,block:X3,bne:Z3,bnequiv:J3,bNot:e4,bnot:t4,Bopf:n4,bopf:s4,bot:i4,bottom:r4,bowtie:o4,boxbox:a4,boxdl:l4,boxdL:c4,boxDl:d4,boxDL:u4,boxdr:p4,boxdR:_4,boxDr:h4,boxDR:f4,boxh:m4,boxH:g4,boxhd:b4,boxHd:E4,boxhD:y4,boxHD:v4,boxhu:S4,boxHu:T4,boxhU:x4,boxHU:C4,boxminus:w4,boxplus:R4,boxtimes:A4,boxul:N4,boxuL:O4,boxUl:M4,boxUL:I4,boxur:k4,boxuR:D4,boxUr:L4,boxUR:P4,boxv:U4,boxV:F4,boxvh:B4,boxvH:G4,boxVh:V4,boxVH:z4,boxvl:H4,boxvL:q4,boxVl:$4,boxVL:Y4,boxvr:W4,boxvR:K4,boxVr:j4,boxVR:Q4,bprime:X4,breve:Z4,Breve:J4,brvbar:eB,bscr:tB,Bscr:nB,bsemi:sB,bsim:iB,bsime:rB,bsolb:oB,bsol:aB,bsolhsub:lB,bull:cB,bullet:dB,bump:uB,bumpE:pB,bumpe:_B,Bumpeq:hB,bumpeq:fB,Cacute:mB,cacute:gB,capand:bB,capbrcup:EB,capcap:yB,cap:vB,Cap:SB,capcup:TB,capdot:xB,CapitalDifferentialD:CB,caps:wB,caret:RB,caron:AB,Cayleys:NB,ccaps:OB,Ccaron:MB,ccaron:IB,Ccedil:kB,ccedil:DB,Ccirc:LB,ccirc:PB,Cconint:UB,ccups:FB,ccupssm:BB,Cdot:GB,cdot:VB,cedil:zB,Cedilla:HB,cemptyv:qB,cent:$B,centerdot:YB,CenterDot:WB,cfr:KB,Cfr:jB,CHcy:QB,chcy:XB,check:ZB,checkmark:JB,Chi:e5,chi:t5,circ:n5,circeq:s5,circlearrowleft:i5,circlearrowright:r5,circledast:o5,circledcirc:a5,circleddash:l5,CircleDot:c5,circledR:d5,circledS:u5,CircleMinus:p5,CirclePlus:_5,CircleTimes:h5,cir:f5,cirE:m5,cire:g5,cirfnint:b5,cirmid:E5,cirscir:y5,ClockwiseContourIntegral:v5,CloseCurlyDoubleQuote:S5,CloseCurlyQuote:T5,clubs:x5,clubsuit:C5,colon:w5,Colon:R5,Colone:A5,colone:N5,coloneq:O5,comma:M5,commat:I5,comp:k5,compfn:D5,complement:L5,complexes:P5,cong:U5,congdot:F5,Congruent:B5,conint:G5,Conint:V5,ContourIntegral:z5,copf:H5,Copf:q5,coprod:$5,Coproduct:Y5,copy:W5,COPY:K5,copysr:j5,CounterClockwiseContourIntegral:Q5,crarr:X5,cross:Z5,Cross:J5,Cscr:e6,cscr:t6,csub:n6,csube:s6,csup:i6,csupe:r6,ctdot:o6,cudarrl:a6,cudarrr:l6,cuepr:c6,cuesc:d6,cularr:u6,cularrp:p6,cupbrcap:_6,cupcap:h6,CupCap:f6,cup:m6,Cup:g6,cupcup:b6,cupdot:E6,cupor:y6,cups:v6,curarr:S6,curarrm:T6,curlyeqprec:x6,curlyeqsucc:C6,curlyvee:w6,curlywedge:R6,curren:A6,curvearrowleft:N6,curvearrowright:O6,cuvee:M6,cuwed:I6,cwconint:k6,cwint:D6,cylcty:L6,dagger:P6,Dagger:U6,daleth:F6,darr:B6,Darr:G6,dArr:V6,dash:z6,Dashv:H6,dashv:q6,dbkarow:$6,dblac:Y6,Dcaron:W6,dcaron:K6,Dcy:j6,dcy:Q6,ddagger:X6,ddarr:Z6,DD:J6,dd:eG,DDotrahd:tG,ddotseq:nG,deg:sG,Del:iG,Delta:rG,delta:oG,demptyv:aG,dfisht:lG,Dfr:cG,dfr:dG,dHar:uG,dharl:pG,dharr:_G,DiacriticalAcute:hG,DiacriticalDot:fG,DiacriticalDoubleAcute:mG,DiacriticalGrave:gG,DiacriticalTilde:bG,diam:EG,diamond:yG,Diamond:vG,diamondsuit:SG,diams:TG,die:xG,DifferentialD:CG,digamma:wG,disin:RG,div:AG,divide:NG,divideontimes:OG,divonx:MG,DJcy:IG,djcy:kG,dlcorn:DG,dlcrop:LG,dollar:PG,Dopf:UG,dopf:FG,Dot:BG,dot:GG,DotDot:VG,doteq:zG,doteqdot:HG,DotEqual:qG,dotminus:$G,dotplus:YG,dotsquare:WG,doublebarwedge:KG,DoubleContourIntegral:jG,DoubleDot:QG,DoubleDownArrow:XG,DoubleLeftArrow:ZG,DoubleLeftRightArrow:JG,DoubleLeftTee:e8,DoubleLongLeftArrow:t8,DoubleLongLeftRightArrow:n8,DoubleLongRightArrow:s8,DoubleRightArrow:i8,DoubleRightTee:r8,DoubleUpArrow:o8,DoubleUpDownArrow:a8,DoubleVerticalBar:l8,DownArrowBar:c8,downarrow:d8,DownArrow:u8,Downarrow:p8,DownArrowUpArrow:_8,DownBreve:h8,downdownarrows:f8,downharpoonleft:m8,downharpoonright:g8,DownLeftRightVector:b8,DownLeftTeeVector:E8,DownLeftVectorBar:y8,DownLeftVector:v8,DownRightTeeVector:S8,DownRightVectorBar:T8,DownRightVector:x8,DownTeeArrow:C8,DownTee:w8,drbkarow:R8,drcorn:A8,drcrop:N8,Dscr:O8,dscr:M8,DScy:I8,dscy:k8,dsol:D8,Dstrok:L8,dstrok:P8,dtdot:U8,dtri:F8,dtrif:B8,duarr:G8,duhar:V8,dwangle:z8,DZcy:H8,dzcy:q8,dzigrarr:$8,Eacute:Y8,eacute:W8,easter:K8,Ecaron:j8,ecaron:Q8,Ecirc:X8,ecirc:Z8,ecir:J8,ecolon:e9,Ecy:t9,ecy:n9,eDDot:s9,Edot:i9,edot:r9,eDot:o9,ee:a9,efDot:l9,Efr:c9,efr:d9,eg:u9,Egrave:p9,egrave:_9,egs:h9,egsdot:f9,el:m9,Element:g9,elinters:b9,ell:E9,els:y9,elsdot:v9,Emacr:S9,emacr:T9,empty:x9,emptyset:C9,EmptySmallSquare:w9,emptyv:R9,EmptyVerySmallSquare:A9,emsp13:N9,emsp14:O9,emsp:M9,ENG:I9,eng:k9,ensp:D9,Eogon:L9,eogon:P9,Eopf:U9,eopf:F9,epar:B9,eparsl:G9,eplus:V9,epsi:z9,Epsilon:H9,epsilon:q9,epsiv:$9,eqcirc:Y9,eqcolon:W9,eqsim:K9,eqslantgtr:j9,eqslantless:Q9,Equal:X9,equals:Z9,EqualTilde:J9,equest:eV,Equilibrium:tV,equiv:nV,equivDD:sV,eqvparsl:iV,erarr:rV,erDot:oV,escr:aV,Escr:lV,esdot:cV,Esim:dV,esim:uV,Eta:pV,eta:_V,ETH:hV,eth:fV,Euml:mV,euml:gV,euro:bV,excl:EV,exist:yV,Exists:vV,expectation:SV,exponentiale:TV,ExponentialE:xV,fallingdotseq:CV,Fcy:wV,fcy:RV,female:AV,ffilig:NV,fflig:OV,ffllig:MV,Ffr:IV,ffr:kV,filig:DV,FilledSmallSquare:LV,FilledVerySmallSquare:PV,fjlig:UV,flat:FV,fllig:BV,fltns:GV,fnof:VV,Fopf:zV,fopf:HV,forall:qV,ForAll:$V,fork:YV,forkv:WV,Fouriertrf:KV,fpartint:jV,frac12:QV,frac13:XV,frac14:ZV,frac15:JV,frac16:ez,frac18:tz,frac23:nz,frac25:sz,frac34:iz,frac35:rz,frac38:oz,frac45:az,frac56:lz,frac58:cz,frac78:dz,frasl:uz,frown:pz,fscr:_z,Fscr:hz,gacute:fz,Gamma:mz,gamma:gz,Gammad:bz,gammad:Ez,gap:yz,Gbreve:vz,gbreve:Sz,Gcedil:Tz,Gcirc:xz,gcirc:Cz,Gcy:wz,gcy:Rz,Gdot:Az,gdot:Nz,ge:Oz,gE:Mz,gEl:Iz,gel:kz,geq:Dz,geqq:Lz,geqslant:Pz,gescc:Uz,ges:Fz,gesdot:Bz,gesdoto:Gz,gesdotol:Vz,gesl:zz,gesles:Hz,Gfr:qz,gfr:$z,gg:Yz,Gg:Wz,ggg:Kz,gimel:jz,GJcy:Qz,gjcy:Xz,gla:Zz,gl:Jz,glE:eH,glj:tH,gnap:nH,gnapprox:sH,gne:iH,gnE:rH,gneq:oH,gneqq:aH,gnsim:lH,Gopf:cH,gopf:dH,grave:uH,GreaterEqual:pH,GreaterEqualLess:_H,GreaterFullEqual:hH,GreaterGreater:fH,GreaterLess:mH,GreaterSlantEqual:gH,GreaterTilde:bH,Gscr:EH,gscr:yH,gsim:vH,gsime:SH,gsiml:TH,gtcc:xH,gtcir:CH,gt:wH,GT:RH,Gt:AH,gtdot:NH,gtlPar:OH,gtquest:MH,gtrapprox:IH,gtrarr:kH,gtrdot:DH,gtreqless:LH,gtreqqless:PH,gtrless:UH,gtrsim:FH,gvertneqq:BH,gvnE:GH,Hacek:VH,hairsp:zH,half:HH,hamilt:qH,HARDcy:$H,hardcy:YH,harrcir:WH,harr:KH,hArr:jH,harrw:QH,Hat:XH,hbar:ZH,Hcirc:JH,hcirc:e7,hearts:t7,heartsuit:n7,hellip:s7,hercon:i7,hfr:r7,Hfr:o7,HilbertSpace:a7,hksearow:l7,hkswarow:c7,hoarr:d7,homtht:u7,hookleftarrow:p7,hookrightarrow:_7,hopf:h7,Hopf:f7,horbar:m7,HorizontalLine:g7,hscr:b7,Hscr:E7,hslash:y7,Hstrok:v7,hstrok:S7,HumpDownHump:T7,HumpEqual:x7,hybull:C7,hyphen:w7,Iacute:R7,iacute:A7,ic:N7,Icirc:O7,icirc:M7,Icy:I7,icy:k7,Idot:D7,IEcy:L7,iecy:P7,iexcl:U7,iff:F7,ifr:B7,Ifr:G7,Igrave:V7,igrave:z7,ii:H7,iiiint:q7,iiint:$7,iinfin:Y7,iiota:W7,IJlig:K7,ijlig:j7,Imacr:Q7,imacr:X7,image:Z7,ImaginaryI:J7,imagline:eq,imagpart:tq,imath:nq,Im:sq,imof:iq,imped:rq,Implies:oq,incare:aq,in:"∈",infin:lq,infintie:cq,inodot:dq,intcal:uq,int:pq,Int:_q,integers:hq,Integral:fq,intercal:mq,Intersection:gq,intlarhk:bq,intprod:Eq,InvisibleComma:yq,InvisibleTimes:vq,IOcy:Sq,iocy:Tq,Iogon:xq,iogon:Cq,Iopf:wq,iopf:Rq,Iota:Aq,iota:Nq,iprod:Oq,iquest:Mq,iscr:Iq,Iscr:kq,isin:Dq,isindot:Lq,isinE:Pq,isins:Uq,isinsv:Fq,isinv:Bq,it:Gq,Itilde:Vq,itilde:zq,Iukcy:Hq,iukcy:qq,Iuml:$q,iuml:Yq,Jcirc:Wq,jcirc:Kq,Jcy:jq,jcy:Qq,Jfr:Xq,jfr:Zq,jmath:Jq,Jopf:e$,jopf:t$,Jscr:n$,jscr:s$,Jsercy:i$,jsercy:r$,Jukcy:o$,jukcy:a$,Kappa:l$,kappa:c$,kappav:d$,Kcedil:u$,kcedil:p$,Kcy:_$,kcy:h$,Kfr:f$,kfr:m$,kgreen:g$,KHcy:b$,khcy:E$,KJcy:y$,kjcy:v$,Kopf:S$,kopf:T$,Kscr:x$,kscr:C$,lAarr:w$,Lacute:R$,lacute:A$,laemptyv:N$,lagran:O$,Lambda:M$,lambda:I$,lang:k$,Lang:D$,langd:L$,langle:P$,lap:U$,Laplacetrf:F$,laquo:B$,larrb:G$,larrbfs:V$,larr:z$,Larr:H$,lArr:q$,larrfs:$$,larrhk:Y$,larrlp:W$,larrpl:K$,larrsim:j$,larrtl:Q$,latail:X$,lAtail:Z$,lat:J$,late:eY,lates:tY,lbarr:nY,lBarr:sY,lbbrk:iY,lbrace:rY,lbrack:oY,lbrke:aY,lbrksld:lY,lbrkslu:cY,Lcaron:dY,lcaron:uY,Lcedil:pY,lcedil:_Y,lceil:hY,lcub:fY,Lcy:mY,lcy:gY,ldca:bY,ldquo:EY,ldquor:yY,ldrdhar:vY,ldrushar:SY,ldsh:TY,le:xY,lE:CY,LeftAngleBracket:wY,LeftArrowBar:RY,leftarrow:AY,LeftArrow:NY,Leftarrow:OY,LeftArrowRightArrow:MY,leftarrowtail:IY,LeftCeiling:kY,LeftDoubleBracket:DY,LeftDownTeeVector:LY,LeftDownVectorBar:PY,LeftDownVector:UY,LeftFloor:FY,leftharpoondown:BY,leftharpoonup:GY,leftleftarrows:VY,leftrightarrow:zY,LeftRightArrow:HY,Leftrightarrow:qY,leftrightarrows:$Y,leftrightharpoons:YY,leftrightsquigarrow:WY,LeftRightVector:KY,LeftTeeArrow:jY,LeftTee:QY,LeftTeeVector:XY,leftthreetimes:ZY,LeftTriangleBar:JY,LeftTriangle:eW,LeftTriangleEqual:tW,LeftUpDownVector:nW,LeftUpTeeVector:sW,LeftUpVectorBar:iW,LeftUpVector:rW,LeftVectorBar:oW,LeftVector:aW,lEg:lW,leg:cW,leq:dW,leqq:uW,leqslant:pW,lescc:_W,les:hW,lesdot:fW,lesdoto:mW,lesdotor:gW,lesg:bW,lesges:EW,lessapprox:yW,lessdot:vW,lesseqgtr:SW,lesseqqgtr:TW,LessEqualGreater:xW,LessFullEqual:CW,LessGreater:wW,lessgtr:RW,LessLess:AW,lesssim:NW,LessSlantEqual:OW,LessTilde:MW,lfisht:IW,lfloor:kW,Lfr:DW,lfr:LW,lg:PW,lgE:UW,lHar:FW,lhard:BW,lharu:GW,lharul:VW,lhblk:zW,LJcy:HW,ljcy:qW,llarr:$W,ll:YW,Ll:WW,llcorner:KW,Lleftarrow:jW,llhard:QW,lltri:XW,Lmidot:ZW,lmidot:JW,lmoustache:eK,lmoust:tK,lnap:nK,lnapprox:sK,lne:iK,lnE:rK,lneq:oK,lneqq:aK,lnsim:lK,loang:cK,loarr:dK,lobrk:uK,longleftarrow:pK,LongLeftArrow:_K,Longleftarrow:hK,longleftrightarrow:fK,LongLeftRightArrow:mK,Longleftrightarrow:gK,longmapsto:bK,longrightarrow:EK,LongRightArrow:yK,Longrightarrow:vK,looparrowleft:SK,looparrowright:TK,lopar:xK,Lopf:CK,lopf:wK,loplus:RK,lotimes:AK,lowast:NK,lowbar:OK,LowerLeftArrow:MK,LowerRightArrow:IK,loz:kK,lozenge:DK,lozf:LK,lpar:PK,lparlt:UK,lrarr:FK,lrcorner:BK,lrhar:GK,lrhard:VK,lrm:zK,lrtri:HK,lsaquo:qK,lscr:$K,Lscr:YK,lsh:WK,Lsh:KK,lsim:jK,lsime:QK,lsimg:XK,lsqb:ZK,lsquo:JK,lsquor:ej,Lstrok:tj,lstrok:nj,ltcc:sj,ltcir:ij,lt:rj,LT:oj,Lt:aj,ltdot:lj,lthree:cj,ltimes:dj,ltlarr:uj,ltquest:pj,ltri:_j,ltrie:hj,ltrif:fj,ltrPar:mj,lurdshar:gj,luruhar:bj,lvertneqq:Ej,lvnE:yj,macr:vj,male:Sj,malt:Tj,maltese:xj,Map:"⤅",map:Cj,mapsto:wj,mapstodown:Rj,mapstoleft:Aj,mapstoup:Nj,marker:Oj,mcomma:Mj,Mcy:Ij,mcy:kj,mdash:Dj,mDDot:Lj,measuredangle:Pj,MediumSpace:Uj,Mellintrf:Fj,Mfr:Bj,mfr:Gj,mho:Vj,micro:zj,midast:Hj,midcir:qj,mid:$j,middot:Yj,minusb:Wj,minus:Kj,minusd:jj,minusdu:Qj,MinusPlus:Xj,mlcp:Zj,mldr:Jj,mnplus:eQ,models:tQ,Mopf:nQ,mopf:sQ,mp:iQ,mscr:rQ,Mscr:oQ,mstpos:aQ,Mu:lQ,mu:cQ,multimap:dQ,mumap:uQ,nabla:pQ,Nacute:_Q,nacute:hQ,nang:fQ,nap:mQ,napE:gQ,napid:bQ,napos:EQ,napprox:yQ,natural:vQ,naturals:SQ,natur:TQ,nbsp:xQ,nbump:CQ,nbumpe:wQ,ncap:RQ,Ncaron:AQ,ncaron:NQ,Ncedil:OQ,ncedil:MQ,ncong:IQ,ncongdot:kQ,ncup:DQ,Ncy:LQ,ncy:PQ,ndash:UQ,nearhk:FQ,nearr:BQ,neArr:GQ,nearrow:VQ,ne:zQ,nedot:HQ,NegativeMediumSpace:qQ,NegativeThickSpace:$Q,NegativeThinSpace:YQ,NegativeVeryThinSpace:WQ,nequiv:KQ,nesear:jQ,nesim:QQ,NestedGreaterGreater:XQ,NestedLessLess:ZQ,NewLine:JQ,nexist:eX,nexists:tX,Nfr:nX,nfr:sX,ngE:iX,nge:rX,ngeq:oX,ngeqq:aX,ngeqslant:lX,nges:cX,nGg:dX,ngsim:uX,nGt:pX,ngt:_X,ngtr:hX,nGtv:fX,nharr:mX,nhArr:gX,nhpar:bX,ni:EX,nis:yX,nisd:vX,niv:SX,NJcy:TX,njcy:xX,nlarr:CX,nlArr:wX,nldr:RX,nlE:AX,nle:NX,nleftarrow:OX,nLeftarrow:MX,nleftrightarrow:IX,nLeftrightarrow:kX,nleq:DX,nleqq:LX,nleqslant:PX,nles:UX,nless:FX,nLl:BX,nlsim:GX,nLt:VX,nlt:zX,nltri:HX,nltrie:qX,nLtv:$X,nmid:YX,NoBreak:WX,NonBreakingSpace:KX,nopf:jX,Nopf:QX,Not:XX,not:ZX,NotCongruent:JX,NotCupCap:eZ,NotDoubleVerticalBar:tZ,NotElement:nZ,NotEqual:sZ,NotEqualTilde:iZ,NotExists:rZ,NotGreater:oZ,NotGreaterEqual:aZ,NotGreaterFullEqual:lZ,NotGreaterGreater:cZ,NotGreaterLess:dZ,NotGreaterSlantEqual:uZ,NotGreaterTilde:pZ,NotHumpDownHump:_Z,NotHumpEqual:hZ,notin:fZ,notindot:mZ,notinE:gZ,notinva:bZ,notinvb:EZ,notinvc:yZ,NotLeftTriangleBar:vZ,NotLeftTriangle:SZ,NotLeftTriangleEqual:TZ,NotLess:xZ,NotLessEqual:CZ,NotLessGreater:wZ,NotLessLess:RZ,NotLessSlantEqual:AZ,NotLessTilde:NZ,NotNestedGreaterGreater:OZ,NotNestedLessLess:MZ,notni:IZ,notniva:kZ,notnivb:DZ,notnivc:LZ,NotPrecedes:PZ,NotPrecedesEqual:UZ,NotPrecedesSlantEqual:FZ,NotReverseElement:BZ,NotRightTriangleBar:GZ,NotRightTriangle:VZ,NotRightTriangleEqual:zZ,NotSquareSubset:HZ,NotSquareSubsetEqual:qZ,NotSquareSuperset:$Z,NotSquareSupersetEqual:YZ,NotSubset:WZ,NotSubsetEqual:KZ,NotSucceeds:jZ,NotSucceedsEqual:QZ,NotSucceedsSlantEqual:XZ,NotSucceedsTilde:ZZ,NotSuperset:JZ,NotSupersetEqual:eJ,NotTilde:tJ,NotTildeEqual:nJ,NotTildeFullEqual:sJ,NotTildeTilde:iJ,NotVerticalBar:rJ,nparallel:oJ,npar:aJ,nparsl:lJ,npart:cJ,npolint:dJ,npr:uJ,nprcue:pJ,nprec:_J,npreceq:hJ,npre:fJ,nrarrc:mJ,nrarr:gJ,nrArr:bJ,nrarrw:EJ,nrightarrow:yJ,nRightarrow:vJ,nrtri:SJ,nrtrie:TJ,nsc:xJ,nsccue:CJ,nsce:wJ,Nscr:RJ,nscr:AJ,nshortmid:NJ,nshortparallel:OJ,nsim:MJ,nsime:IJ,nsimeq:kJ,nsmid:DJ,nspar:LJ,nsqsube:PJ,nsqsupe:UJ,nsub:FJ,nsubE:BJ,nsube:GJ,nsubset:VJ,nsubseteq:zJ,nsubseteqq:HJ,nsucc:qJ,nsucceq:$J,nsup:YJ,nsupE:WJ,nsupe:KJ,nsupset:jJ,nsupseteq:QJ,nsupseteqq:XJ,ntgl:ZJ,Ntilde:JJ,ntilde:eee,ntlg:tee,ntriangleleft:nee,ntrianglelefteq:see,ntriangleright:iee,ntrianglerighteq:ree,Nu:oee,nu:aee,num:lee,numero:cee,numsp:dee,nvap:uee,nvdash:pee,nvDash:_ee,nVdash:hee,nVDash:fee,nvge:mee,nvgt:gee,nvHarr:bee,nvinfin:Eee,nvlArr:yee,nvle:vee,nvlt:See,nvltrie:Tee,nvrArr:xee,nvrtrie:Cee,nvsim:wee,nwarhk:Ree,nwarr:Aee,nwArr:Nee,nwarrow:Oee,nwnear:Mee,Oacute:Iee,oacute:kee,oast:Dee,Ocirc:Lee,ocirc:Pee,ocir:Uee,Ocy:Fee,ocy:Bee,odash:Gee,Odblac:Vee,odblac:zee,odiv:Hee,odot:qee,odsold:$ee,OElig:Yee,oelig:Wee,ofcir:Kee,Ofr:jee,ofr:Qee,ogon:Xee,Ograve:Zee,ograve:Jee,ogt:ete,ohbar:tte,ohm:nte,oint:ste,olarr:ite,olcir:rte,olcross:ote,oline:ate,olt:lte,Omacr:cte,omacr:dte,Omega:ute,omega:pte,Omicron:_te,omicron:hte,omid:fte,ominus:mte,Oopf:gte,oopf:bte,opar:Ete,OpenCurlyDoubleQuote:yte,OpenCurlyQuote:vte,operp:Ste,oplus:Tte,orarr:xte,Or:Cte,or:wte,ord:Rte,order:Ate,orderof:Nte,ordf:Ote,ordm:Mte,origof:Ite,oror:kte,orslope:Dte,orv:Lte,oS:Pte,Oscr:Ute,oscr:Fte,Oslash:Bte,oslash:Gte,osol:Vte,Otilde:zte,otilde:Hte,otimesas:qte,Otimes:$te,otimes:Yte,Ouml:Wte,ouml:Kte,ovbar:jte,OverBar:Qte,OverBrace:Xte,OverBracket:Zte,OverParenthesis:Jte,para:ene,parallel:tne,par:nne,parsim:sne,parsl:ine,part:rne,PartialD:one,Pcy:ane,pcy:lne,percnt:cne,period:dne,permil:une,perp:pne,pertenk:_ne,Pfr:hne,pfr:fne,Phi:mne,phi:gne,phiv:bne,phmmat:Ene,phone:yne,Pi:vne,pi:Sne,pitchfork:Tne,piv:xne,planck:Cne,planckh:wne,plankv:Rne,plusacir:Ane,plusb:Nne,pluscir:One,plus:Mne,plusdo:Ine,plusdu:kne,pluse:Dne,PlusMinus:Lne,plusmn:Pne,plussim:Une,plustwo:Fne,pm:Bne,Poincareplane:Gne,pointint:Vne,popf:zne,Popf:Hne,pound:qne,prap:$ne,Pr:Yne,pr:Wne,prcue:Kne,precapprox:jne,prec:Qne,preccurlyeq:Xne,Precedes:Zne,PrecedesEqual:Jne,PrecedesSlantEqual:ese,PrecedesTilde:tse,preceq:nse,precnapprox:sse,precneqq:ise,precnsim:rse,pre:ose,prE:ase,precsim:lse,prime:cse,Prime:dse,primes:use,prnap:pse,prnE:_se,prnsim:hse,prod:fse,Product:mse,profalar:gse,profline:bse,profsurf:Ese,prop:yse,Proportional:vse,Proportion:Sse,propto:Tse,prsim:xse,prurel:Cse,Pscr:wse,pscr:Rse,Psi:Ase,psi:Nse,puncsp:Ose,Qfr:Mse,qfr:Ise,qint:kse,qopf:Dse,Qopf:Lse,qprime:Pse,Qscr:Use,qscr:Fse,quaternions:Bse,quatint:Gse,quest:Vse,questeq:zse,quot:Hse,QUOT:qse,rAarr:$se,race:Yse,Racute:Wse,racute:Kse,radic:jse,raemptyv:Qse,rang:Xse,Rang:Zse,rangd:Jse,range:eie,rangle:tie,raquo:nie,rarrap:sie,rarrb:iie,rarrbfs:rie,rarrc:oie,rarr:aie,Rarr:lie,rArr:cie,rarrfs:die,rarrhk:uie,rarrlp:pie,rarrpl:_ie,rarrsim:hie,Rarrtl:fie,rarrtl:mie,rarrw:gie,ratail:bie,rAtail:Eie,ratio:yie,rationals:vie,rbarr:Sie,rBarr:Tie,RBarr:xie,rbbrk:Cie,rbrace:wie,rbrack:Rie,rbrke:Aie,rbrksld:Nie,rbrkslu:Oie,Rcaron:Mie,rcaron:Iie,Rcedil:kie,rcedil:Die,rceil:Lie,rcub:Pie,Rcy:Uie,rcy:Fie,rdca:Bie,rdldhar:Gie,rdquo:Vie,rdquor:zie,rdsh:Hie,real:qie,realine:$ie,realpart:Yie,reals:Wie,Re:Kie,rect:jie,reg:Qie,REG:Xie,ReverseElement:Zie,ReverseEquilibrium:Jie,ReverseUpEquilibrium:ere,rfisht:tre,rfloor:nre,rfr:sre,Rfr:ire,rHar:rre,rhard:ore,rharu:are,rharul:lre,Rho:cre,rho:dre,rhov:ure,RightAngleBracket:pre,RightArrowBar:_re,rightarrow:hre,RightArrow:fre,Rightarrow:mre,RightArrowLeftArrow:gre,rightarrowtail:bre,RightCeiling:Ere,RightDoubleBracket:yre,RightDownTeeVector:vre,RightDownVectorBar:Sre,RightDownVector:Tre,RightFloor:xre,rightharpoondown:Cre,rightharpoonup:wre,rightleftarrows:Rre,rightleftharpoons:Are,rightrightarrows:Nre,rightsquigarrow:Ore,RightTeeArrow:Mre,RightTee:Ire,RightTeeVector:kre,rightthreetimes:Dre,RightTriangleBar:Lre,RightTriangle:Pre,RightTriangleEqual:Ure,RightUpDownVector:Fre,RightUpTeeVector:Bre,RightUpVectorBar:Gre,RightUpVector:Vre,RightVectorBar:zre,RightVector:Hre,ring:qre,risingdotseq:$re,rlarr:Yre,rlhar:Wre,rlm:Kre,rmoustache:jre,rmoust:Qre,rnmid:Xre,roang:Zre,roarr:Jre,robrk:eoe,ropar:toe,ropf:noe,Ropf:soe,roplus:ioe,rotimes:roe,RoundImplies:ooe,rpar:aoe,rpargt:loe,rppolint:coe,rrarr:doe,Rrightarrow:uoe,rsaquo:poe,rscr:_oe,Rscr:hoe,rsh:foe,Rsh:moe,rsqb:goe,rsquo:boe,rsquor:Eoe,rthree:yoe,rtimes:voe,rtri:Soe,rtrie:Toe,rtrif:xoe,rtriltri:Coe,RuleDelayed:woe,ruluhar:Roe,rx:Aoe,Sacute:Noe,sacute:Ooe,sbquo:Moe,scap:Ioe,Scaron:koe,scaron:Doe,Sc:Loe,sc:Poe,sccue:Uoe,sce:Foe,scE:Boe,Scedil:Goe,scedil:Voe,Scirc:zoe,scirc:Hoe,scnap:qoe,scnE:$oe,scnsim:Yoe,scpolint:Woe,scsim:Koe,Scy:joe,scy:Qoe,sdotb:Xoe,sdot:Zoe,sdote:Joe,searhk:eae,searr:tae,seArr:nae,searrow:sae,sect:iae,semi:rae,seswar:oae,setminus:aae,setmn:lae,sext:cae,Sfr:dae,sfr:uae,sfrown:pae,sharp:_ae,SHCHcy:hae,shchcy:fae,SHcy:mae,shcy:gae,ShortDownArrow:bae,ShortLeftArrow:Eae,shortmid:yae,shortparallel:vae,ShortRightArrow:Sae,ShortUpArrow:Tae,shy:xae,Sigma:Cae,sigma:wae,sigmaf:Rae,sigmav:Aae,sim:Nae,simdot:Oae,sime:Mae,simeq:Iae,simg:kae,simgE:Dae,siml:Lae,simlE:Pae,simne:Uae,simplus:Fae,simrarr:Bae,slarr:Gae,SmallCircle:Vae,smallsetminus:zae,smashp:Hae,smeparsl:qae,smid:$ae,smile:Yae,smt:Wae,smte:Kae,smtes:jae,SOFTcy:Qae,softcy:Xae,solbar:Zae,solb:Jae,sol:ele,Sopf:tle,sopf:nle,spades:sle,spadesuit:ile,spar:rle,sqcap:ole,sqcaps:ale,sqcup:lle,sqcups:cle,Sqrt:dle,sqsub:ule,sqsube:ple,sqsubset:_le,sqsubseteq:hle,sqsup:fle,sqsupe:mle,sqsupset:gle,sqsupseteq:ble,square:Ele,Square:yle,SquareIntersection:vle,SquareSubset:Sle,SquareSubsetEqual:Tle,SquareSuperset:xle,SquareSupersetEqual:Cle,SquareUnion:wle,squarf:Rle,squ:Ale,squf:Nle,srarr:Ole,Sscr:Mle,sscr:Ile,ssetmn:kle,ssmile:Dle,sstarf:Lle,Star:Ple,star:Ule,starf:Fle,straightepsilon:Ble,straightphi:Gle,strns:Vle,sub:zle,Sub:Hle,subdot:qle,subE:$le,sube:Yle,subedot:Wle,submult:Kle,subnE:jle,subne:Qle,subplus:Xle,subrarr:Zle,subset:Jle,Subset:ece,subseteq:tce,subseteqq:nce,SubsetEqual:sce,subsetneq:ice,subsetneqq:rce,subsim:oce,subsub:ace,subsup:lce,succapprox:cce,succ:dce,succcurlyeq:uce,Succeeds:pce,SucceedsEqual:_ce,SucceedsSlantEqual:hce,SucceedsTilde:fce,succeq:mce,succnapprox:gce,succneqq:bce,succnsim:Ece,succsim:yce,SuchThat:vce,sum:Sce,Sum:Tce,sung:xce,sup1:Cce,sup2:wce,sup3:Rce,sup:Ace,Sup:Nce,supdot:Oce,supdsub:Mce,supE:Ice,supe:kce,supedot:Dce,Superset:Lce,SupersetEqual:Pce,suphsol:Uce,suphsub:Fce,suplarr:Bce,supmult:Gce,supnE:Vce,supne:zce,supplus:Hce,supset:qce,Supset:$ce,supseteq:Yce,supseteqq:Wce,supsetneq:Kce,supsetneqq:jce,supsim:Qce,supsub:Xce,supsup:Zce,swarhk:Jce,swarr:ede,swArr:tde,swarrow:nde,swnwar:sde,szlig:ide,Tab:rde,target:ode,Tau:ade,tau:lde,tbrk:cde,Tcaron:dde,tcaron:ude,Tcedil:pde,tcedil:_de,Tcy:hde,tcy:fde,tdot:mde,telrec:gde,Tfr:bde,tfr:Ede,there4:yde,therefore:vde,Therefore:Sde,Theta:Tde,theta:xde,thetasym:Cde,thetav:wde,thickapprox:Rde,thicksim:Ade,ThickSpace:Nde,ThinSpace:Ode,thinsp:Mde,thkap:Ide,thksim:kde,THORN:Dde,thorn:Lde,tilde:Pde,Tilde:Ude,TildeEqual:Fde,TildeFullEqual:Bde,TildeTilde:Gde,timesbar:Vde,timesb:zde,times:Hde,timesd:qde,tint:$de,toea:Yde,topbot:Wde,topcir:Kde,top:jde,Topf:Qde,topf:Xde,topfork:Zde,tosa:Jde,tprime:eue,trade:tue,TRADE:nue,triangle:sue,triangledown:iue,triangleleft:rue,trianglelefteq:oue,triangleq:aue,triangleright:lue,trianglerighteq:cue,tridot:due,trie:uue,triminus:pue,TripleDot:_ue,triplus:hue,trisb:fue,tritime:mue,trpezium:gue,Tscr:bue,tscr:Eue,TScy:yue,tscy:vue,TSHcy:Sue,tshcy:Tue,Tstrok:xue,tstrok:Cue,twixt:wue,twoheadleftarrow:Rue,twoheadrightarrow:Aue,Uacute:Nue,uacute:Oue,uarr:Mue,Uarr:Iue,uArr:kue,Uarrocir:Due,Ubrcy:Lue,ubrcy:Pue,Ubreve:Uue,ubreve:Fue,Ucirc:Bue,ucirc:Gue,Ucy:Vue,ucy:zue,udarr:Hue,Udblac:que,udblac:$ue,udhar:Yue,ufisht:Wue,Ufr:Kue,ufr:jue,Ugrave:Que,ugrave:Xue,uHar:Zue,uharl:Jue,uharr:epe,uhblk:tpe,ulcorn:npe,ulcorner:spe,ulcrop:ipe,ultri:rpe,Umacr:ope,umacr:ape,uml:lpe,UnderBar:cpe,UnderBrace:dpe,UnderBracket:upe,UnderParenthesis:ppe,Union:_pe,UnionPlus:hpe,Uogon:fpe,uogon:mpe,Uopf:gpe,uopf:bpe,UpArrowBar:Epe,uparrow:ype,UpArrow:vpe,Uparrow:Spe,UpArrowDownArrow:Tpe,updownarrow:xpe,UpDownArrow:Cpe,Updownarrow:wpe,UpEquilibrium:Rpe,upharpoonleft:Ape,upharpoonright:Npe,uplus:Ope,UpperLeftArrow:Mpe,UpperRightArrow:Ipe,upsi:kpe,Upsi:Dpe,upsih:Lpe,Upsilon:Ppe,upsilon:Upe,UpTeeArrow:Fpe,UpTee:Bpe,upuparrows:Gpe,urcorn:Vpe,urcorner:zpe,urcrop:Hpe,Uring:qpe,uring:$pe,urtri:Ype,Uscr:Wpe,uscr:Kpe,utdot:jpe,Utilde:Qpe,utilde:Xpe,utri:Zpe,utrif:Jpe,uuarr:e_e,Uuml:t_e,uuml:n_e,uwangle:s_e,vangrt:i_e,varepsilon:r_e,varkappa:o_e,varnothing:a_e,varphi:l_e,varpi:c_e,varpropto:d_e,varr:u_e,vArr:p_e,varrho:__e,varsigma:h_e,varsubsetneq:f_e,varsubsetneqq:m_e,varsupsetneq:g_e,varsupsetneqq:b_e,vartheta:E_e,vartriangleleft:y_e,vartriangleright:v_e,vBar:S_e,Vbar:T_e,vBarv:x_e,Vcy:C_e,vcy:w_e,vdash:R_e,vDash:A_e,Vdash:N_e,VDash:O_e,Vdashl:M_e,veebar:I_e,vee:k_e,Vee:D_e,veeeq:L_e,vellip:P_e,verbar:U_e,Verbar:F_e,vert:B_e,Vert:G_e,VerticalBar:V_e,VerticalLine:z_e,VerticalSeparator:H_e,VerticalTilde:q_e,VeryThinSpace:$_e,Vfr:Y_e,vfr:W_e,vltri:K_e,vnsub:j_e,vnsup:Q_e,Vopf:X_e,vopf:Z_e,vprop:J_e,vrtri:ehe,Vscr:the,vscr:nhe,vsubnE:she,vsubne:ihe,vsupnE:rhe,vsupne:ohe,Vvdash:ahe,vzigzag:lhe,Wcirc:che,wcirc:dhe,wedbar:uhe,wedge:phe,Wedge:_he,wedgeq:hhe,weierp:fhe,Wfr:mhe,wfr:ghe,Wopf:bhe,wopf:Ehe,wp:yhe,wr:vhe,wreath:She,Wscr:The,wscr:xhe,xcap:Che,xcirc:whe,xcup:Rhe,xdtri:Ahe,Xfr:Nhe,xfr:Ohe,xharr:Mhe,xhArr:Ihe,Xi:khe,xi:Dhe,xlarr:Lhe,xlArr:Phe,xmap:Uhe,xnis:Fhe,xodot:Bhe,Xopf:Ghe,xopf:Vhe,xoplus:zhe,xotime:Hhe,xrarr:qhe,xrArr:$he,Xscr:Yhe,xscr:Whe,xsqcup:Khe,xuplus:jhe,xutri:Qhe,xvee:Xhe,xwedge:Zhe,Yacute:Jhe,yacute:efe,YAcy:tfe,yacy:nfe,Ycirc:sfe,ycirc:ife,Ycy:rfe,ycy:ofe,yen:afe,Yfr:lfe,yfr:cfe,YIcy:dfe,yicy:ufe,Yopf:pfe,yopf:_fe,Yscr:hfe,yscr:ffe,YUcy:mfe,yucy:gfe,yuml:bfe,Yuml:Efe,Zacute:yfe,zacute:vfe,Zcaron:Sfe,zcaron:Tfe,Zcy:xfe,zcy:Cfe,Zdot:wfe,zdot:Rfe,zeetrf:Afe,ZeroWidthSpace:Nfe,Zeta:Ofe,zeta:Mfe,zfr:Ife,Zfr:kfe,ZHcy:Dfe,zhcy:Lfe,zigrarr:Pfe,zopf:Ufe,Zopf:Ffe,Zscr:Bfe,zscr:Gfe,zwj:Vfe,zwnj:zfe};var UA=Hfe,Xb=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ka={},Pv={};function qfe(t){var e,n,s=Pv[t];if(s)return s;for(s=Pv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?s.push(n):s.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),a=qfe(e),s=0,i=t.length;s=55296&&r<=57343){if(r>=55296&&r<=56319&&s+1=56320&&o<=57343)){c+=encodeURIComponent(t[s]+t[s+1]),s++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[s])}return c}Lu.defaultChars=";/?:@&=+$,-_.!~*'()#";Lu.componentChars="-_.!~*'()";var $fe=Lu,Uv={};function Yfe(t){var e,n,s=Uv[t];if(s)return s;for(s=Uv[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),s.push(n);for(e=0;e=55296&&u<=57343?h+="���":h+=String.fromCharCode(u),i+=6;continue}if((o&248)===240&&i+91114111?h+="����":(u-=65536,h+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),i+=9;continue}h+="�"}return h})}Pu.defaultChars=";/?:@&=+$,#";Pu.componentChars="";var Wfe=Pu,Kfe=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function zd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var jfe=/^([a-z0-9.+-]+:)/i,Qfe=/:[0-9]*$/,Xfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Zfe=["<",">",'"',"`"," ","\r",` `," "],Jfe=["{","}","|","\\","^","`"].concat(Zfe),eme=["'"].concat(Jfe),Fv=["%","/","?",";","#"].concat(eme),Bv=["/","?","#"],tme=255,Gv=/^[+a-z0-9A-Z_-]{0,63}$/,nme=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Vv={javascript:!0,"javascript:":!0},zv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function sme(t,e){if(t&&t instanceof zd)return t;var n=new zd;return n.parse(t,e),n}zd.prototype.parse=function(t,e){var n,s,i,r,o,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var c=Xfe.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=jfe.exec(a);if(d&&(d=d[0],i=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&Vv[d])&&(a=a.substr(2),this.slashes=!0)),!Vv[d]&&(o||d&&!zv[d])){var u=-1;for(n=0;n127?E+="x":E+=b[y];if(!E.match(Gv)){var S=g.slice(0,n),R=g.slice(n+1),C=b.match(nme);C&&(S.push(C[1]),R.unshift(C[2])),R.length&&(a=R.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>tme&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=a.indexOf("#");A!==-1&&(this.hash=a.substr(A),a=a.slice(0,A));var I=a.indexOf("?");return I!==-1&&(this.search=a.substr(I),a=a.slice(0,I)),a&&(this.pathname=a),zv[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};zd.prototype.parseHost=function(t){var e=Qfe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var ime=sme;ka.encode=$fe;ka.decode=Wfe;ka.format=Kfe;ka.parse=ime;var Cr={},Mp,Hv;function FA(){return Hv||(Hv=1,Mp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Mp}var Ip,qv;function BA(){return qv||(qv=1,Ip=/[\0-\x1F\x7F-\x9F]/),Ip}var kp,$v;function rme(){return $v||($v=1,kp=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),kp}var Dp,Yv;function GA(){return Yv||(Yv=1,Dp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Dp}var Wv;function ome(){return Wv||(Wv=1,Cr.Any=FA(),Cr.Cc=BA(),Cr.Cf=rme(),Cr.P=Xb,Cr.Z=GA()),Cr}(function(t){function e(k){return Object.prototype.toString.call(k)}function n(k){return e(k)==="[object String]"}var s=Object.prototype.hasOwnProperty;function i(k,$){return s.call(k,$)}function r(k){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(q){if(q){if(typeof q!="object")throw new TypeError(q+"must be object");Object.keys(q).forEach(function(U){k[U]=q[U]})}}),k}function o(k,$,q){return[].concat(k.slice(0,$),q,k.slice($+1))}function a(k){return!(k>=55296&&k<=57343||k>=64976&&k<=65007||(k&65535)===65535||(k&65535)===65534||k>=0&&k<=8||k===11||k>=14&&k<=31||k>=127&&k<=159||k>1114111)}function c(k){if(k>65535){k-=65536;var $=55296+(k>>10),q=56320+(k&1023);return String.fromCharCode($,q)}return String.fromCharCode(k)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(d.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=UA;function _(k,$){var q;return i(m,$)?m[$]:$.charCodeAt(0)===35&&f.test($)&&(q=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),a(q))?c(q):k}function g(k){return k.indexOf("\\")<0?k:k.replace(d,"$1")}function b(k){return k.indexOf("\\")<0&&k.indexOf("&")<0?k:k.replace(h,function($,q,U){return q||_($,U)})}var E=/[&<>"]/,y=/[&<>"]/g,v={"&":"&","<":"<",">":">",'"':"""};function S(k){return v[k]}function R(k){return E.test(k)?k.replace(y,S):k}var C=/[.?*+^$[\]\\(){}|-]/g;function A(k){return k.replace(C,"\\$&")}function I(k){switch(k){case 9:case 32:return!0}return!1}function x(k){if(k>=8192&&k<=8202)return!0;switch(k){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var O=Xb;function B(k){return O.test(k)}function H(k){switch(k){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function te(k){return k=k.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(k=k.replace(/ẞ/g,"ß")),k.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=ka,t.lib.ucmicro=ome(),t.assign=r,t.isString=n,t.has=i,t.unescapeMd=g,t.unescapeAll=b,t.isValidEntityCode=a,t.fromCodePoint=c,t.escapeHtml=R,t.arrayReplaceAt=o,t.isSpace=I,t.isWhiteSpace=x,t.isMdAsciiPunct=H,t.isPunctChar=B,t.escapeRE=A,t.normalizeReference=te})(Pt);var Uu={},ame=function(e,n,s){var i,r,o,a,c=-1,d=e.posMax,u=e.pos;for(e.pos=n+1,i=1;e.pos32))return a;if(i===41){if(r===0)break;r--}o++}return n===o||r!==0||(a.str=Kv(e.slice(n,o)),a.pos=o,a.ok=!0),a},cme=Pt.unescapeAll,dme=function(e,n,s){var i,r,o=0,a=n,c={ok:!1,pos:0,lines:0,str:""};if(a>=s||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return c;for(a++,r===40&&(r=41);a"+eo(r.content)+""};di.code_block=function(t,e,n,s,i){var r=t[e];return""+eo(t[e].content)+` `};di.fence=function(t,e,n,s,i){var r=t[e],o=r.info?pme(r.info).trim():"",a="",c="",d,u,h,f,m;return o&&(h=o.split(/(\s+)/g),a=h[0],c=h.slice(2).join("")),n.highlight?d=n.highlight(r.content,a,c)||eo(r.content):d=eo(r.content),d.indexOf(""+d+` @@ -31,7 +31,7 @@ `:">",r)};Da.prototype.renderInline=function(t,e,n){for(var s,i="",r=this.rules,o=0,a=t.length;o\s]/i.test(t)}function vme(t){return/^<\/a\s*>/i.test(t)}var Sme=function(e){var n,s,i,r,o,a,c,d,u,h,f,m,_,g,b,E,y=e.tokens,v;if(e.md.options.linkify){for(s=0,i=y.length;s=0;n--){if(a=r[n],a.type==="link_close"){for(n--;r[n].level!==a.level&&r[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(yme(a.content)&&_>0&&_--,vme(a.content)&&_++),!(_>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),c=[],m=a.level,f=0,v.length>0&&v[0].index===0&&n>0&&r[n-1].type==="text_special"&&(v=v.slice(1)),d=0;df&&(o=new e.Token("text","",0),o.content=u.slice(f,h),o.level=m,c.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=m++,o.markup="linkify",o.info="auto",c.push(o),o=new e.Token("text","",0),o.content=E,o.level=m,c.push(o),o=new e.Token("link_close","a",-1),o.level=--m,o.markup="linkify",o.info="auto",c.push(o),f=v[d].lastIndex);f=0;e--)n=t[e],n.type==="text"&&!s&&(n.content=n.content.replace(xme,wme)),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}function Ame(t){var e,n,s=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!s&&VA.test(n.content)&&(n.content=n.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–")),n.type==="link_open"&&n.info==="auto"&&s--,n.type==="link_close"&&n.info==="auto"&&s++}var Nme=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Tme.test(e.tokens[n].content)&&Rme(e.tokens[n].children),VA.test(e.tokens[n].content)&&Ame(e.tokens[n].children))},jv=Pt.isWhiteSpace,Qv=Pt.isPunctChar,Xv=Pt.isMdAsciiPunct,Ome=/['"]/,Zv=/['"]/g,Jv="’";function Sc(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Mme(t,e){var n,s,i,r,o,a,c,d,u,h,f,m,_,g,b,E,y,v,S,R,C;for(S=[],n=0;n=0&&!(S[y].level<=c);y--);if(S.length=y+1,s.type==="text"){i=s.content,o=0,a=i.length;e:for(;o=0)u=i.charCodeAt(r.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(t[y].content){u=t[y].content.charCodeAt(t[y].content.length-1);break}if(h=32,o=48&&u<=57&&(E=b=!1),b&&E&&(b=f,E=m),!b&&!E){v&&(s.content=Sc(s.content,r.index,Jv));continue}if(E){for(y=S.length-1;y>=0&&(d=S[y],!(S[y].level=0;n--)e.tokens[n].type!=="inline"||!Ome.test(e.tokens[n].content)||Mme(e.tokens[n].children,e)},kme=function(e){var n,s,i,r,o,a,c=e.tokens;for(n=0,s=c.length;n=0&&(s=this.attrs[n][1]),s};La.prototype.attrJoin=function(e,n){var s=this.attrIndex(e);s<0?this.attrPush([e,n]):this.attrs[s][1]=this.attrs[s][1]+" "+n};var Jb=La,Dme=Jb;function zA(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}zA.prototype.Token=Dme;var Lme=zA,Pme=Zb,Lp=[["normalize",mme],["block",gme],["inline",bme],["linkify",Sme],["replacements",Nme],["smartquotes",Ime],["text_join",kme]];function eE(){this.ruler=new Pme;for(var t=0;ts||(u=n+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]||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58&&!Pp(C))||R===45&&Pp(C))return!1;for(;a=4||(h=eS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),f=h.length,f===0||f!==_.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=b=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c=4)break;for(h=eS(o),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),u===n+2&&(m=e.push("tbody_open","tbody",1),m.map=E=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[u,u+1],c=0;c=4){i++,r=i;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(n,r,4+e.blkIndent,!1)+` -`,o.map=[n,e.line],!0},Gme=function(e,n,s,i){var r,o,a,c,d,u,h,f=!1,m=e.bMarks[n]+e.tShift[n],_=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>_||(r=e.src.charCodeAt(m),r!==126&&r!==96)||(d=m,m=e.skipChars(m,r),o=m-d,o<3)||(h=e.src.slice(d,m),a=e.src.slice(m,_),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=s||(m=d=e.bMarks[c]+e.tShift[c],_=e.eMarks[c],m<_&&e.sCount[c]=4)&&(m=e.skipChars(m,r),!(m-d=4||e.src.charCodeAt(O)!==62)return!1;if(i)return!0;for(_=[],g=[],y=[],v=[],C=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",f=n;f=B));f++){if(e.src.charCodeAt(O++)===62&&!I){for(c=e.sCount[f]+1,e.src.charCodeAt(O)===32?(O++,c++,r=!1,S=!0):e.src.charCodeAt(O)===9?(S=!0,(e.bsCount[f]+c)%4===3?(O++,c++,r=!1):r=!0):S=!1,m=c,_.push(e.bMarks[f]),e.bMarks[f]=O;O=B,g.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=m-c,v.push(e.tShift[f]),e.tShift[f]=O-e.bMarks[f];continue}if(u)break;for(R=!1,a=0,d=C.length;a",A.map=h=[n,0],e.md.block.tokenize(e,n,f),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=x,e.parentType=E,h[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(d++),r!==42&&r!==45&&r!==95))return!1;for(o=1;d=r||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=r)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-s>=10)return-1;continue}if(n===41||n===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]=e.blkIndent&&(U=!0),(O=nS(e,q))>=0){if(h=!0,H=e.bMarks[q]+e.tShift[q],E=Number(e.src.slice(H,O-1)),U&&E!==1)return!1}else if((O=tS(e,q))>=0)h=!1;else return!1;if(U&&e.skipSpaces(O)>=e.eMarks[q])return!1;if(i)return!0;for(b=e.src.charCodeAt(O-1),g=e.tokens.length,h?($=e.push("ordered_list_open","ol",1),E!==1&&($.attrs=[["start",E]])):$=e.push("bullet_list_open","ul",1),$.map=_=[q,0],$.markup=String.fromCharCode(b),B=!1,k=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q=y?d=1:d=v-u,d>4&&(d=1),c=u+d,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[q,0],h&&($.info=e.src.slice(H,O-1)),I=e.tight,A=e.tShift[q],C=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]=v,o>=y&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,q,s,!0),(!e.tight||B)&&(W=!1),B=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=C,e.tight=I,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),q=e.line,f[1]=q,q>=s||e.sCount[q]=4)break;for(te=!1,a=0,m=k.length;a=4||e.src.charCodeAt(C)!==91)return!1;for(;++C3)&&!(e.sCount[I]<0)){for(y=!1,u=0,h=v.length;u"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:d}),e.parentType=_,e.line=n+R+1),!0)},jme=["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"],Fu={},Qme="[a-zA-Z_:][a-zA-Z0-9:._-]*",Xme="[^\"'=<>`\\x00-\\x20]+",Zme="'[^']*'",Jme='"[^"]*"',ege="(?:"+Xme+"|"+Zme+"|"+Jme+")",tge="(?:\\s+"+Qme+"(?:\\s*=\\s*"+ege+")?)",qA="<[A-Za-z][A-Za-z0-9\\-]*"+tge+"*\\s*\\/?>",$A="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",nge="|",sge="<[?][\\s\\S]*?[?]>",ige="]*>",rge="",oge=new RegExp("^(?:"+qA+"|"+$A+"|"+nge+"|"+sge+"|"+ige+"|"+rge+")"),age=new RegExp("^(?:"+qA+"|"+$A+")");Fu.HTML_TAG_RE=oge;Fu.HTML_OPEN_CLOSE_TAG_RE=age;var lge=jme,cge=Fu.HTML_OPEN_CLOSE_TAG_RE,mo=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(cge.source+"\\s*$"),/^$/,!1]],dge=function(e,n,s,i){var r,o,a,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),r=0;r=4||(r=e.src.charCodeAt(d),r!==35||d>=u))return!1;for(o=1,r=e.src.charCodeAt(++d);r===35&&d6||dd&&sS(e.src.charCodeAt(a-1))&&(u=a),e.line=n+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},pge=function(e,n,s){var i,r,o,a,c,d,u,h,f,m=n+1,_,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(_=e.parentType,e.parentType="paragraph";m3)){if(e.sCount[m]>=e.blkIndent&&(d=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],d=u)))){h=f===61?1:2;break}if(!(e.sCount[m]<0)){for(r=!1,o=0,a=g.length;o3)&&!(e.sCount[u]<0)){for(r=!1,o=0,a=h.length;o0&&this.level++,this.tokens.push(s),s};ui.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ui.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;en;)if(!Bu(this.src.charCodeAt(--e)))return e+1;return e};ui.prototype.skipChars=function(e,n){for(var s=this.src.length;es;)if(n!==this.src.charCodeAt(--e))return e+1;return e};ui.prototype.getLines=function(e,n,s,i){var r,o,a,c,d,u,h,f=e;if(e>=n)return"";for(u=new Array(n-e),r=0;fs?u[r]=new Array(o-s+1).join(" ")+this.src.slice(c,d):u[r]=this.src.slice(c,d)}return u.join("")};ui.prototype.Token=YA;var hge=ui,fge=Zb,xc=[["table",Fme,["paragraph","reference"]],["code",Bme],["fence",Gme,["paragraph","reference","blockquote","list"]],["blockquote",zme,["paragraph","reference","blockquote","list"]],["hr",qme,["paragraph","reference","blockquote","list"]],["list",Yme,["paragraph","reference","blockquote"]],["reference",Kme],["html_block",dge,["paragraph","reference","blockquote"]],["heading",uge,["paragraph","reference","blockquote"]],["lheading",pge],["paragraph",_ge]];function Gu(){this.ruler=new fge;for(var t=0;t=n||t.sCount[c]=u){t.line=n;break}for(r=t.line,i=0;i=t.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),c=t.line,c0||(s=e.pos,i=e.posMax,s+3>i)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(r=e.pending.match(Ege),!r)||(o=r[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:(n||(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)},vge=Pt.isSpace,Sge=function(e,n){var s,i,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,i=e.posMax,!n)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(r=s-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),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(t){tE[t.charCodeAt(0)]=1});var xge=function(e,n){var s,i,r,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(n||e.push("hardbreak","br",0),c++;c=55296&&s<=56319&&c+1=56320&&i<=57343&&(o+=e.src[c+1],c++)),r="\\"+o,n||(a=e.push("text_special","",0),s<256&&tE[s]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=c+1,!0},Cge=function(e,n){var s,i,r,o,a,c,d,u,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(s=h,h++,i=e.posMax;h=0;n--)s=e[n],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(i=e[s.end],a=n>0&&e[n-1].end===s.end+1&&e[n-1].marker===s.marker&&e[n-1].token===s.token-1&&e[s.end+1].token===i.token+1,o=String.fromCharCode(s.marker),r=t.tokens[s.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=t.tokens[i.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[s.end+1].token].content="",n--))}zu.postProcess=function(e){var n,s=e.tokens_meta,i=e.tokens_meta.length;for(oS(e,e.delimiters),n=0;n=g)return!1;if(b=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?c=d.pos:f="",b=c;c=g||e.src.charCodeAt(c)!==41)&&(E=!0),c++}if(E){if(typeof e.env.references>"u")return!1;if(c=0?r=e.src.slice(b,c++):c=o+1):c=o+1,r||(r=e.src.slice(a,o)),u=e.env.references[wge(r)],!u)return e.pos=_,!1;f=u.href,m=u.title}return n||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=s=[["href",f]],m&&s.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Age=Pt.normalizeReference,Bp=Pt.isSpace,Nge=function(e,n){var s,i,r,o,a,c,d,u,h,f,m,_,g,b="",E=e.pos,y=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=y)return!1;for(g=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?d=h.pos:b=""),g=d;d=y||e.src.charCodeAt(d)!==41)return e.pos=E,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(g,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[Age(o)],!u)return e.pos=E,!1;b=u.href,f=u.title}return n||(r=e.src.slice(c,a),e.md.inline.parse(r,e.md,e.env,_=[]),m=e.push("image","img",0),m.attrs=s=[["src",b],["alt",""]],m.children=_,m.content=r,f&&s.push(["title",f])),e.pos=d,e.posMax=y,!0},Oge=/^([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])?)*)$/,Mge=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ige=function(e,n){var s,i,r,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),Mge.test(s)?(i=e.md.normalizeLink(s),e.md.validateLink(i)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):Oge.test(s)?(i=e.md.normalizeLink("mailto:"+s),e.md.validateLink(i)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):!1},kge=Fu.HTML_TAG_RE;function Dge(t){return/^\s]/i.test(t)}function Lge(t){return/^<\/a\s*>/i.test(t)}function Pge(t){var e=t|32;return e>=97&&e<=122}var Uge=function(e,n){var s,i,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Pge(s))||(i=e.src.slice(a).match(kge),!i)?!1:(n||(o=e.push("html_inline","",0),o.content=i[0],Dge(o.content)&&e.linkLevel++,Lge(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},aS=UA,Fge=Pt.has,Bge=Pt.isValidEntityCode,lS=Pt.fromCodePoint,Gge=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Vge=/^&([a-z][a-z0-9]{1,31});/i,zge=function(e,n){var s,i,r,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(r=e.src.slice(a).match(Gge),r)return n||(i=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Bge(i)?lS(i):lS(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Vge),r&&Fge(aS,r[1]))return n||(o=e.push("text_special","",0),o.content=aS[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function cS(t){var e,n,s,i,r,o,a,c,d={},u=t.length;if(u){var h=0,f=-2,m=[];for(e=0;er;n-=m[n]+1)if(i=t[n],i.marker===s.marker&&i.open&&i.end<0&&(a=!1,(i.close||s.open)&&(i.length+s.length)%3===0&&(i.length%3!==0||s.length%3!==0)&&(a=!0),!a)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,s.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var Hge=function(e){var n,s=e.tokens_meta,i=e.tokens_meta.length;for(cS(e.delimiters),n=0;n0&&i++,r[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(i),s};Jl.prototype.scanDelims=function(t,e){var n=t,s,i,r,o,a,c,d,u,h,f=!0,m=!0,_=this.posMax,g=this.src.charCodeAt(t);for(s=t>0?this.src.charCodeAt(t-1):32;n<_&&this.src.charCodeAt(n)===g;)n++;return r=n-t,i=n<_?this.src.charCodeAt(n):32,d=pS(s)||uS(String.fromCharCode(s)),h=pS(i)||uS(String.fromCharCode(i)),c=dS(s),u=dS(i),u?f=!1:h&&(c||d||(f=!1)),c?m=!1:d&&(u||h||(m=!1)),e?(o=f,a=m):(o=f&&(!m||d),a=m&&(!f||h)),{can_open:o,can_close:a,length:r}};Jl.prototype.Token=nE;var $ge=Jl,_S=Zb,Gp=[["text",bge],["linkify",yge],["newline",Sge],["escape",xge],["backticks",Cge],["strikethrough",Vu.tokenize],["emphasis",zu.tokenize],["link",Rge],["image",Nge],["autolink",Ige],["html_inline",Uge],["entity",zge]],Vp=[["balance_pairs",Hge],["strikethrough",Vu.postProcess],["emphasis",zu.postProcess],["fragments_join",qge]];function ec(){var t;for(this.ruler=new _S,t=0;t=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,a[s]=t.pos};ec.prototype.tokenize=function(t){for(var e,n,s,i=this.ruler.getRules(""),r=i.length,o=t.posMax,a=t.md.options.maxNesting;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ec.prototype.parse=function(t,e,n,s){var i,r,o,a=new this.State(t,e,n,s);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,i=0;i|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+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}),zp}function Dg(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(s){t[s]=n[s]})}),t}function Hu(t){return Object.prototype.toString.call(t)}function Kge(t){return Hu(t)==="[object String]"}function jge(t){return Hu(t)==="[object Object]"}function Qge(t){return Hu(t)==="[object RegExp]"}function fS(t){return Hu(t)==="[object Function]"}function Xge(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var WA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Zge(t){return Object.keys(t||{}).reduce(function(e,n){return e||WA.hasOwnProperty(n)},!1)}var Jge={"http:":{validate:function(t,e,n){var s=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(s)?s.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var s=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(s)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:s.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var s=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(s)?s.match(n.re.mailto)[0].length:0}}},ebe="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]",tbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function nbe(t){t.__index__=-1,t.__text_cache__=""}function sbe(t){return function(e,n){var s=e.slice(n);return t.test(s)?s.match(t)[0].length:0}}function mS(){return function(t,e){e.normalize(t)}}function Hd(t){var e=t.re=Wge()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(ebe),n.push(e.src_xn),e.src_tlds=n.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 i=[];t.__compiled__={};function r(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(t.__schemas__).forEach(function(a){var c=t.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(t.__compiled__[a]=d,jge(c)){Qge(c.validate)?d.validate=sbe(c.validate):fS(c.validate)?d.validate=c.validate:r(a,c),fS(c.normalize)?d.normalize=c.normalize:c.normalize?r(a,c):d.normalize=mS();return}if(Kge(c)){i.push(a);return}r(a,c)}}),i.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:mS()};var o=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Xge).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),nbe(t)}function ibe(t,e){var n=t.__index__,s=t.__last_index__,i=t.__text_cache__.slice(n,s);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=s+e,this.raw=i,this.text=i,this.url=i}function Lg(t,e){var n=new ibe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ts(t,e){if(!(this instanceof ts))return new ts(t,e);e||Zge(t)&&(e=t,t={}),this.__opts__=Dg({},WA,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Dg({},Jge,t),this.__compiled__={},this.__tlds__=tbe,this.__tlds_replaced__=!1,this.re={},Hd(this)}ts.prototype.add=function(e,n){return this.__schemas__[e]=n,Hd(this),this};ts.prototype.set=function(e){return this.__opts__=Dg(this.__opts__,e),this};ts.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,s,i,r,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(r=this.testSchemaAt(e,n[2],c.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ts.prototype.pretest=function(e){return this.re.pretest.test(e)};ts.prototype.testSchemaAt=function(e,n,s){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,s,this):0};ts.prototype.match=function(e){var n=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(Lg(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)s.push(Lg(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return s.length?s:null};ts.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var s=this.testSchemaAt(e,n[2],n[0].length);return s?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s,Lg(this,0)):null};ts.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,i,r){return s!==r[i-1]}).reverse(),Hd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Hd(this),this)};ts.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ts.prototype.onCompile=function(){};var rbe=ts;const Wo=2147483647,ti=36,sE=1,Bl=26,obe=38,abe=700,KA=72,jA=128,QA="-",lbe=/^xn--/,cbe=/[^\0-\x7F]/,dbe=/[\x2E\u3002\uFF0E\uFF61]/g,ube={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Hp=ti-sE,ni=Math.floor,qp=String.fromCharCode;function Ji(t){throw new RangeError(ube[t])}function pbe(t,e){const n=[];let s=t.length;for(;s--;)n[s]=e(t[s]);return n}function XA(t,e){const n=t.split("@");let s="";n.length>1&&(s=n[0]+"@",t=n[1]),t=t.replace(dbe,".");const i=t.split("."),r=pbe(i,e).join(".");return s+r}function iE(t){const e=[];let n=0;const s=t.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...t),_be=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:ti},gS=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},JA=function(t,e,n){let s=0;for(t=n?ni(t/abe):t>>1,t+=ni(t/e);t>Hp*Bl>>1;s+=ti)t=ni(t/Hp);return ni(s+(Hp+1)*t/(t+obe))},rE=function(t){const e=[],n=t.length;let s=0,i=jA,r=KA,o=t.lastIndexOf(QA);o<0&&(o=0);for(let a=0;a=128&&Ji("not-basic"),e.push(t.charCodeAt(a));for(let a=o>0?o+1:0;a=n&&Ji("invalid-input");const f=_be(t.charCodeAt(a++));f>=ti&&Ji("invalid-input"),f>ni((Wo-s)/u)&&Ji("overflow"),s+=f*u;const m=h<=r?sE:h>=r+Bl?Bl:h-r;if(fni(Wo/_)&&Ji("overflow"),u*=_}const d=e.length+1;r=JA(s-c,d,c==0),ni(s/d)>Wo-i&&Ji("overflow"),i+=ni(s/d),s%=d,e.splice(s++,0,i)}return String.fromCodePoint(...e)},oE=function(t){const e=[];t=iE(t);const n=t.length;let s=jA,i=0,r=KA;for(const c of t)c<128&&e.push(qp(c));const o=e.length;let a=o;for(o&&e.push(QA);a=s&&uni((Wo-i)/d)&&Ji("overflow"),i+=(c-s)*d,s=c;for(const u of t)if(uWo&&Ji("overflow"),u===s){let h=i;for(let f=ti;;f+=ti){const m=f<=r?sE:f>=r+Bl?Bl:f-r;if(h=0))try{e.hostname=n2.toASCII(e.hostname)}catch{}return zr.encode(zr.format(e))}function Mbe(t){var e=zr.parse(t,!0);if(e.hostname&&(!e.protocol||s2.indexOf(e.protocol)>=0))try{e.hostname=n2.toUnicode(e.hostname)}catch{}return zr.decode(zr.format(e),zr.decode.defaultChars+"%")}function Es(t,e){if(!(this instanceof Es))return new Es(t,e);e||El.isString(t)||(e=t||{},t="default"),this.inline=new xbe,this.block=new Tbe,this.core=new Sbe,this.renderer=new vbe,this.linkify=new Cbe,this.validateLink=Nbe,this.normalizeLink=Obe,this.normalizeLinkText=Mbe,this.utils=El,this.helpers=El.assign({},ybe),this.options={},this.configure(t),e&&this.set(e)}Es.prototype.set=function(t){return El.assign(this.options,t),this};Es.prototype.configure=function(t){var e=this,n;if(El.isString(t)&&(n=t,t=wbe[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&e[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&e[s].ruler2.enableOnly(t.components[s].rules2)}),this};Es.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var s=t.filter(function(i){return n.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Es.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var s=t.filter(function(i){return n.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Es.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Es.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Es.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Es.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Es.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Ibe=Es,kbe=Ibe;const Dbe=gr(kbe),Lbe="😀",Pbe="😃",Ube="😄",Fbe="😁",Bbe="😆",Gbe="😆",Vbe="😅",zbe="🤣",Hbe="😂",qbe="🙂",$be="🙃",Ybe="😉",Wbe="😊",Kbe="😇",jbe="🥰",Qbe="😍",Xbe="🤩",Zbe="😘",Jbe="😗",eEe="☺️",tEe="😚",nEe="😙",sEe="🥲",iEe="😋",rEe="😛",oEe="😜",aEe="🤪",lEe="😝",cEe="🤑",dEe="🤗",uEe="🤭",pEe="🤫",_Ee="🤔",hEe="🤐",fEe="🤨",mEe="😐",gEe="😑",bEe="😶",EEe="😏",yEe="😒",vEe="🙄",SEe="😬",TEe="🤥",xEe="😌",CEe="😔",wEe="😪",REe="🤤",AEe="😴",NEe="😷",OEe="🤒",MEe="🤕",IEe="🤢",kEe="🤮",DEe="🤧",LEe="🥵",PEe="🥶",UEe="🥴",FEe="😵",BEe="🤯",GEe="🤠",VEe="🥳",zEe="🥸",HEe="😎",qEe="🤓",$Ee="🧐",YEe="😕",WEe="😟",KEe="🙁",jEe="☹️",QEe="😮",XEe="😯",ZEe="😲",JEe="😳",eye="🥺",tye="😦",nye="😧",sye="😨",iye="😰",rye="😥",oye="😢",aye="😭",lye="😱",cye="😖",dye="😣",uye="😞",pye="😓",_ye="😩",hye="😫",fye="🥱",mye="😤",gye="😡",bye="😡",Eye="😠",yye="🤬",vye="😈",Sye="👿",Tye="💀",xye="☠️",Cye="💩",wye="💩",Rye="💩",Aye="🤡",Nye="👹",Oye="👺",Mye="👻",Iye="👽",kye="👾",Dye="🤖",Lye="😺",Pye="😸",Uye="😹",Fye="😻",Bye="😼",Gye="😽",Vye="🙀",zye="😿",Hye="😾",qye="🙈",$ye="🙉",Yye="🙊",Wye="💋",Kye="💌",jye="💘",Qye="💝",Xye="💖",Zye="💗",Jye="💓",eve="💞",tve="💕",nve="💟",sve="❣️",ive="💔",rve="❤️",ove="🧡",ave="💛",lve="💚",cve="💙",dve="💜",uve="🤎",pve="🖤",_ve="🤍",hve="💢",fve="💥",mve="💥",gve="💫",bve="💦",Eve="💨",yve="🕳️",vve="💣",Sve="💬",Tve="👁️‍🗨️",xve="🗨️",Cve="🗯️",wve="💭",Rve="💤",Ave="👋",Nve="🤚",Ove="🖐️",Mve="✋",Ive="✋",kve="🖖",Dve="👌",Lve="🤌",Pve="🤏",Uve="✌️",Fve="🤞",Bve="🤟",Gve="🤘",Vve="🤙",zve="👈",Hve="👉",qve="👆",$ve="🖕",Yve="🖕",Wve="👇",Kve="☝️",jve="👍",Qve="👎",Xve="✊",Zve="✊",Jve="👊",eSe="👊",tSe="👊",nSe="🤛",sSe="🤜",iSe="👏",rSe="🙌",oSe="👐",aSe="🤲",lSe="🤝",cSe="🙏",dSe="✍️",uSe="💅",pSe="🤳",_Se="💪",hSe="🦾",fSe="🦿",mSe="🦵",gSe="🦶",bSe="👂",ESe="🦻",ySe="👃",vSe="🧠",SSe="🫀",TSe="🫁",xSe="🦷",CSe="🦴",wSe="👀",RSe="👁️",ASe="👅",NSe="👄",OSe="👶",MSe="🧒",ISe="👦",kSe="👧",DSe="🧑",LSe="👱",PSe="👨",USe="🧔",FSe="👨‍🦰",BSe="👨‍🦱",GSe="👨‍🦳",VSe="👨‍🦲",zSe="👩",HSe="👩‍🦰",qSe="🧑‍🦰",$Se="👩‍🦱",YSe="🧑‍🦱",WSe="👩‍🦳",KSe="🧑‍🦳",jSe="👩‍🦲",QSe="🧑‍🦲",XSe="👱‍♀️",ZSe="👱‍♀️",JSe="👱‍♂️",e0e="🧓",t0e="👴",n0e="👵",s0e="🙍",i0e="🙍‍♂️",r0e="🙍‍♀️",o0e="🙎",a0e="🙎‍♂️",l0e="🙎‍♀️",c0e="🙅",d0e="🙅‍♂️",u0e="🙅‍♂️",p0e="🙅‍♀️",_0e="🙅‍♀️",h0e="🙆",f0e="🙆‍♂️",m0e="🙆‍♀️",g0e="💁",b0e="💁",E0e="💁‍♂️",y0e="💁‍♂️",v0e="💁‍♀️",S0e="💁‍♀️",T0e="🙋",x0e="🙋‍♂️",C0e="🙋‍♀️",w0e="🧏",R0e="🧏‍♂️",A0e="🧏‍♀️",N0e="🙇",O0e="🙇‍♂️",M0e="🙇‍♀️",I0e="🤦",k0e="🤦‍♂️",D0e="🤦‍♀️",L0e="🤷",P0e="🤷‍♂️",U0e="🤷‍♀️",F0e="🧑‍⚕️",B0e="👨‍⚕️",G0e="👩‍⚕️",V0e="🧑‍🎓",z0e="👨‍🎓",H0e="👩‍🎓",q0e="🧑‍🏫",$0e="👨‍🏫",Y0e="👩‍🏫",W0e="🧑‍⚖️",K0e="👨‍⚖️",j0e="👩‍⚖️",Q0e="🧑‍🌾",X0e="👨‍🌾",Z0e="👩‍🌾",J0e="🧑‍🍳",eTe="👨‍🍳",tTe="👩‍🍳",nTe="🧑‍🔧",sTe="👨‍🔧",iTe="👩‍🔧",rTe="🧑‍🏭",oTe="👨‍🏭",aTe="👩‍🏭",lTe="🧑‍💼",cTe="👨‍💼",dTe="👩‍💼",uTe="🧑‍🔬",pTe="👨‍🔬",_Te="👩‍🔬",hTe="🧑‍💻",fTe="👨‍💻",mTe="👩‍💻",gTe="🧑‍🎤",bTe="👨‍🎤",ETe="👩‍🎤",yTe="🧑‍🎨",vTe="👨‍🎨",STe="👩‍🎨",TTe="🧑‍✈️",xTe="👨‍✈️",CTe="👩‍✈️",wTe="🧑‍🚀",RTe="👨‍🚀",ATe="👩‍🚀",NTe="🧑‍🚒",OTe="👨‍🚒",MTe="👩‍🚒",ITe="👮",kTe="👮",DTe="👮‍♂️",LTe="👮‍♀️",PTe="🕵️",UTe="🕵️‍♂️",FTe="🕵️‍♀️",BTe="💂",GTe="💂‍♂️",VTe="💂‍♀️",zTe="🥷",HTe="👷",qTe="👷‍♂️",$Te="👷‍♀️",YTe="🤴",WTe="👸",KTe="👳",jTe="👳‍♂️",QTe="👳‍♀️",XTe="👲",ZTe="🧕",JTe="🤵",exe="🤵‍♂️",txe="🤵‍♀️",nxe="👰",sxe="👰‍♂️",ixe="👰‍♀️",rxe="👰‍♀️",oxe="🤰",axe="🤱",lxe="👩‍🍼",cxe="👨‍🍼",dxe="🧑‍🍼",uxe="👼",pxe="🎅",_xe="🤶",hxe="🧑‍🎄",fxe="🦸",mxe="🦸‍♂️",gxe="🦸‍♀️",bxe="🦹",Exe="🦹‍♂️",yxe="🦹‍♀️",vxe="🧙",Sxe="🧙‍♂️",Txe="🧙‍♀️",xxe="🧚",Cxe="🧚‍♂️",wxe="🧚‍♀️",Rxe="🧛",Axe="🧛‍♂️",Nxe="🧛‍♀️",Oxe="🧜",Mxe="🧜‍♂️",Ixe="🧜‍♀️",kxe="🧝",Dxe="🧝‍♂️",Lxe="🧝‍♀️",Pxe="🧞",Uxe="🧞‍♂️",Fxe="🧞‍♀️",Bxe="🧟",Gxe="🧟‍♂️",Vxe="🧟‍♀️",zxe="💆",Hxe="💆‍♂️",qxe="💆‍♀️",$xe="💇",Yxe="💇‍♂️",Wxe="💇‍♀️",Kxe="🚶",jxe="🚶‍♂️",Qxe="🚶‍♀️",Xxe="🧍",Zxe="🧍‍♂️",Jxe="🧍‍♀️",e1e="🧎",t1e="🧎‍♂️",n1e="🧎‍♀️",s1e="🧑‍🦯",i1e="👨‍🦯",r1e="👩‍🦯",o1e="🧑‍🦼",a1e="👨‍🦼",l1e="👩‍🦼",c1e="🧑‍🦽",d1e="👨‍🦽",u1e="👩‍🦽",p1e="🏃",_1e="🏃",h1e="🏃‍♂️",f1e="🏃‍♀️",m1e="💃",g1e="💃",b1e="🕺",E1e="🕴️",y1e="👯",v1e="👯‍♂️",S1e="👯‍♀️",T1e="🧖",x1e="🧖‍♂️",C1e="🧖‍♀️",w1e="🧗",R1e="🧗‍♂️",A1e="🧗‍♀️",N1e="🤺",O1e="🏇",M1e="⛷️",I1e="🏂",k1e="🏌️",D1e="🏌️‍♂️",L1e="🏌️‍♀️",P1e="🏄",U1e="🏄‍♂️",F1e="🏄‍♀️",B1e="🚣",G1e="🚣‍♂️",V1e="🚣‍♀️",z1e="🏊",H1e="🏊‍♂️",q1e="🏊‍♀️",$1e="⛹️",Y1e="⛹️‍♂️",W1e="⛹️‍♂️",K1e="⛹️‍♀️",j1e="⛹️‍♀️",Q1e="🏋️",X1e="🏋️‍♂️",Z1e="🏋️‍♀️",J1e="🚴",eCe="🚴‍♂️",tCe="🚴‍♀️",nCe="🚵",sCe="🚵‍♂️",iCe="🚵‍♀️",rCe="🤸",oCe="🤸‍♂️",aCe="🤸‍♀️",lCe="🤼",cCe="🤼‍♂️",dCe="🤼‍♀️",uCe="🤽",pCe="🤽‍♂️",_Ce="🤽‍♀️",hCe="🤾",fCe="🤾‍♂️",mCe="🤾‍♀️",gCe="🤹",bCe="🤹‍♂️",ECe="🤹‍♀️",yCe="🧘",vCe="🧘‍♂️",SCe="🧘‍♀️",TCe="🛀",xCe="🛌",CCe="🧑‍🤝‍🧑",wCe="👭",RCe="👫",ACe="👬",NCe="💏",OCe="👩‍❤️‍💋‍👨",MCe="👨‍❤️‍💋‍👨",ICe="👩‍❤️‍💋‍👩",kCe="💑",DCe="👩‍❤️‍👨",LCe="👨‍❤️‍👨",PCe="👩‍❤️‍👩",UCe="👪",FCe="👨‍👩‍👦",BCe="👨‍👩‍👧",GCe="👨‍👩‍👧‍👦",VCe="👨‍👩‍👦‍👦",zCe="👨‍👩‍👧‍👧",HCe="👨‍👨‍👦",qCe="👨‍👨‍👧",$Ce="👨‍👨‍👧‍👦",YCe="👨‍👨‍👦‍👦",WCe="👨‍👨‍👧‍👧",KCe="👩‍👩‍👦",jCe="👩‍👩‍👧",QCe="👩‍👩‍👧‍👦",XCe="👩‍👩‍👦‍👦",ZCe="👩‍👩‍👧‍👧",JCe="👨‍👦",ewe="👨‍👦‍👦",twe="👨‍👧",nwe="👨‍👧‍👦",swe="👨‍👧‍👧",iwe="👩‍👦",rwe="👩‍👦‍👦",owe="👩‍👧",awe="👩‍👧‍👦",lwe="👩‍👧‍👧",cwe="🗣️",dwe="👤",uwe="👥",pwe="🫂",_we="👣",hwe="🐵",fwe="🐒",mwe="🦍",gwe="🦧",bwe="🐶",Ewe="🐕",ywe="🦮",vwe="🐕‍🦺",Swe="🐩",Twe="🐺",xwe="🦊",Cwe="🦝",wwe="🐱",Rwe="🐈",Awe="🐈‍⬛",Nwe="🦁",Owe="🐯",Mwe="🐅",Iwe="🐆",kwe="🐴",Dwe="🐎",Lwe="🦄",Pwe="🦓",Uwe="🦌",Fwe="🦬",Bwe="🐮",Gwe="🐂",Vwe="🐃",zwe="🐄",Hwe="🐷",qwe="🐖",$we="🐗",Ywe="🐽",Wwe="🐏",Kwe="🐑",jwe="🐐",Qwe="🐪",Xwe="🐫",Zwe="🦙",Jwe="🦒",eRe="🐘",tRe="🦣",nRe="🦏",sRe="🦛",iRe="🐭",rRe="🐁",oRe="🐀",aRe="🐹",lRe="🐰",cRe="🐇",dRe="🐿️",uRe="🦫",pRe="🦔",_Re="🦇",hRe="🐻",fRe="🐻‍❄️",mRe="🐨",gRe="🐼",bRe="🦥",ERe="🦦",yRe="🦨",vRe="🦘",SRe="🦡",TRe="🐾",xRe="🐾",CRe="🦃",wRe="🐔",RRe="🐓",ARe="🐣",NRe="🐤",ORe="🐥",MRe="🐦",IRe="🐧",kRe="🕊️",DRe="🦅",LRe="🦆",PRe="🦢",URe="🦉",FRe="🦤",BRe="🪶",GRe="🦩",VRe="🦚",zRe="🦜",HRe="🐸",qRe="🐊",$Re="🐢",YRe="🦎",WRe="🐍",KRe="🐲",jRe="🐉",QRe="🦕",XRe="🐳",ZRe="🐋",JRe="🐬",eAe="🐬",tAe="🦭",nAe="🐟",sAe="🐠",iAe="🐡",rAe="🦈",oAe="🐙",aAe="🐚",lAe="🐌",cAe="🦋",dAe="🐛",uAe="🐜",pAe="🐝",_Ae="🐝",hAe="🪲",fAe="🐞",mAe="🦗",gAe="🪳",bAe="🕷️",EAe="🕸️",yAe="🦂",vAe="🦟",SAe="🪰",TAe="🪱",xAe="🦠",CAe="💐",wAe="🌸",RAe="💮",AAe="🏵️",NAe="🌹",OAe="🥀",MAe="🌺",IAe="🌻",kAe="🌼",DAe="🌷",LAe="🌱",PAe="🪴",UAe="🌲",FAe="🌳",BAe="🌴",GAe="🌵",VAe="🌾",zAe="🌿",HAe="☘️",qAe="🍀",$Ae="🍁",YAe="🍂",WAe="🍃",KAe="🍇",jAe="🍈",QAe="🍉",XAe="🍊",ZAe="🍊",JAe="🍊",e2e="🍋",t2e="🍌",n2e="🍍",s2e="🥭",i2e="🍎",r2e="🍏",o2e="🍐",a2e="🍑",l2e="🍒",c2e="🍓",d2e="🫐",u2e="🥝",p2e="🍅",_2e="🫒",h2e="🥥",f2e="🥑",m2e="🍆",g2e="🥔",b2e="🥕",E2e="🌽",y2e="🌶️",v2e="🫑",S2e="🥒",T2e="🥬",x2e="🥦",C2e="🧄",w2e="🧅",R2e="🍄",A2e="🥜",N2e="🌰",O2e="🍞",M2e="🥐",I2e="🥖",k2e="🫓",D2e="🥨",L2e="🥯",P2e="🥞",U2e="🧇",F2e="🧀",B2e="🍖",G2e="🍗",V2e="🥩",z2e="🥓",H2e="🍔",q2e="🍟",$2e="🍕",Y2e="🌭",W2e="🥪",K2e="🌮",j2e="🌯",Q2e="🫔",X2e="🥙",Z2e="🧆",J2e="🥚",eNe="🍳",tNe="🥘",nNe="🍲",sNe="🫕",iNe="🥣",rNe="🥗",oNe="🍿",aNe="🧈",lNe="🧂",cNe="🥫",dNe="🍱",uNe="🍘",pNe="🍙",_Ne="🍚",hNe="🍛",fNe="🍜",mNe="🍝",gNe="🍠",bNe="🍢",ENe="🍣",yNe="🍤",vNe="🍥",SNe="🥮",TNe="🍡",xNe="🥟",CNe="🥠",wNe="🥡",RNe="🦀",ANe="🦞",NNe="🦐",ONe="🦑",MNe="🦪",INe="🍦",kNe="🍧",DNe="🍨",LNe="🍩",PNe="🍪",UNe="🎂",FNe="🍰",BNe="🧁",GNe="🥧",VNe="🍫",zNe="🍬",HNe="🍭",qNe="🍮",$Ne="🍯",YNe="🍼",WNe="🥛",KNe="☕",jNe="🫖",QNe="🍵",XNe="🍶",ZNe="🍾",JNe="🍷",eOe="🍸",tOe="🍹",nOe="🍺",sOe="🍻",iOe="🥂",rOe="🥃",oOe="🥤",aOe="🧋",lOe="🧃",cOe="🧉",dOe="🧊",uOe="🥢",pOe="🍽️",_Oe="🍴",hOe="🥄",fOe="🔪",mOe="🔪",gOe="🏺",bOe="🌍",EOe="🌎",yOe="🌏",vOe="🌐",SOe="🗺️",TOe="🗾",xOe="🧭",COe="🏔️",wOe="⛰️",ROe="🌋",AOe="🗻",NOe="🏕️",OOe="🏖️",MOe="🏜️",IOe="🏝️",kOe="🏞️",DOe="🏟️",LOe="🏛️",POe="🏗️",UOe="🧱",FOe="🪨",BOe="🪵",GOe="🛖",VOe="🏘️",zOe="🏚️",HOe="🏠",qOe="🏡",$Oe="🏢",YOe="🏣",WOe="🏤",KOe="🏥",jOe="🏦",QOe="🏨",XOe="🏩",ZOe="🏪",JOe="🏫",eMe="🏬",tMe="🏭",nMe="🏯",sMe="🏰",iMe="💒",rMe="🗼",oMe="🗽",aMe="⛪",lMe="🕌",cMe="🛕",dMe="🕍",uMe="⛩️",pMe="🕋",_Me="⛲",hMe="⛺",fMe="🌁",mMe="🌃",gMe="🏙️",bMe="🌄",EMe="🌅",yMe="🌆",vMe="🌇",SMe="🌉",TMe="♨️",xMe="🎠",CMe="🎡",wMe="🎢",RMe="💈",AMe="🎪",NMe="🚂",OMe="🚃",MMe="🚄",IMe="🚅",kMe="🚆",DMe="🚇",LMe="🚈",PMe="🚉",UMe="🚊",FMe="🚝",BMe="🚞",GMe="🚋",VMe="🚌",zMe="🚍",HMe="🚎",qMe="🚐",$Me="🚑",YMe="🚒",WMe="🚓",KMe="🚔",jMe="🚕",QMe="🚖",XMe="🚗",ZMe="🚗",JMe="🚘",eIe="🚙",tIe="🛻",nIe="🚚",sIe="🚛",iIe="🚜",rIe="🏎️",oIe="🏍️",aIe="🛵",lIe="🦽",cIe="🦼",dIe="🛺",uIe="🚲",pIe="🛴",_Ie="🛹",hIe="🛼",fIe="🚏",mIe="🛣️",gIe="🛤️",bIe="🛢️",EIe="⛽",yIe="🚨",vIe="🚥",SIe="🚦",TIe="🛑",xIe="🚧",CIe="⚓",wIe="⛵",RIe="⛵",AIe="🛶",NIe="🚤",OIe="🛳️",MIe="⛴️",IIe="🛥️",kIe="🚢",DIe="✈️",LIe="🛩️",PIe="🛫",UIe="🛬",FIe="🪂",BIe="💺",GIe="🚁",VIe="🚟",zIe="🚠",HIe="🚡",qIe="🛰️",$Ie="🚀",YIe="🛸",WIe="🛎️",KIe="🧳",jIe="⌛",QIe="⏳",XIe="⌚",ZIe="⏰",JIe="⏱️",eke="⏲️",tke="🕰️",nke="🕛",ske="🕧",ike="🕐",rke="🕜",oke="🕑",ake="🕝",lke="🕒",cke="🕞",dke="🕓",uke="🕟",pke="🕔",_ke="🕠",hke="🕕",fke="🕡",mke="🕖",gke="🕢",bke="🕗",Eke="🕣",yke="🕘",vke="🕤",Ske="🕙",Tke="🕥",xke="🕚",Cke="🕦",wke="🌑",Rke="🌒",Ake="🌓",Nke="🌔",Oke="🌔",Mke="🌕",Ike="🌖",kke="🌗",Dke="🌘",Lke="🌙",Pke="🌚",Uke="🌛",Fke="🌜",Bke="🌡️",Gke="☀️",Vke="🌝",zke="🌞",Hke="🪐",qke="⭐",$ke="🌟",Yke="🌠",Wke="🌌",Kke="☁️",jke="⛅",Qke="⛈️",Xke="🌤️",Zke="🌥️",Jke="🌦️",eDe="🌧️",tDe="🌨️",nDe="🌩️",sDe="🌪️",iDe="🌫️",rDe="🌬️",oDe="🌀",aDe="🌈",lDe="🌂",cDe="☂️",dDe="☔",uDe="⛱️",pDe="⚡",_De="❄️",hDe="☃️",fDe="⛄",mDe="☄️",gDe="🔥",bDe="💧",EDe="🌊",yDe="🎃",vDe="🎄",SDe="🎆",TDe="🎇",xDe="🧨",CDe="✨",wDe="🎈",RDe="🎉",ADe="🎊",NDe="🎋",ODe="🎍",MDe="🎎",IDe="🎏",kDe="🎐",DDe="🎑",LDe="🧧",PDe="🎀",UDe="🎁",FDe="🎗️",BDe="🎟️",GDe="🎫",VDe="🎖️",zDe="🏆",HDe="🏅",qDe="⚽",$De="⚾",YDe="🥎",WDe="🏀",KDe="🏐",jDe="🏈",QDe="🏉",XDe="🎾",ZDe="🥏",JDe="🎳",eLe="🏏",tLe="🏑",nLe="🏒",sLe="🥍",iLe="🏓",rLe="🏸",oLe="🥊",aLe="🥋",lLe="🥅",cLe="⛳",dLe="⛸️",uLe="🎣",pLe="🤿",_Le="🎽",hLe="🎿",fLe="🛷",mLe="🥌",gLe="🎯",bLe="🪀",ELe="🪁",yLe="🔮",vLe="🪄",SLe="🧿",TLe="🎮",xLe="🕹️",CLe="🎰",wLe="🎲",RLe="🧩",ALe="🧸",NLe="🪅",OLe="🪆",MLe="♠️",ILe="♥️",kLe="♦️",DLe="♣️",LLe="♟️",PLe="🃏",ULe="🀄",FLe="🎴",BLe="🎭",GLe="🖼️",VLe="🎨",zLe="🧵",HLe="🪡",qLe="🧶",$Le="🪢",YLe="👓",WLe="🕶️",KLe="🥽",jLe="🥼",QLe="🦺",XLe="👔",ZLe="👕",JLe="👕",ePe="👖",tPe="🧣",nPe="🧤",sPe="🧥",iPe="🧦",rPe="👗",oPe="👘",aPe="🥻",lPe="🩱",cPe="🩲",dPe="🩳",uPe="👙",pPe="👚",_Pe="👛",hPe="👜",fPe="👝",mPe="🛍️",gPe="🎒",bPe="🩴",EPe="👞",yPe="👞",vPe="👟",SPe="🥾",TPe="🥿",xPe="👠",CPe="👡",wPe="🩰",RPe="👢",APe="👑",NPe="👒",OPe="🎩",MPe="🎓",IPe="🧢",kPe="🪖",DPe="⛑️",LPe="📿",PPe="💄",UPe="💍",FPe="💎",BPe="🔇",GPe="🔈",VPe="🔉",zPe="🔊",HPe="📢",qPe="📣",$Pe="📯",YPe="🔔",WPe="🔕",KPe="🎼",jPe="🎵",QPe="🎶",XPe="🎙️",ZPe="🎚️",JPe="🎛️",e3e="🎤",t3e="🎧",n3e="📻",s3e="🎷",i3e="🪗",r3e="🎸",o3e="🎹",a3e="🎺",l3e="🎻",c3e="🪕",d3e="🥁",u3e="🪘",p3e="📱",_3e="📲",h3e="☎️",f3e="☎️",m3e="📞",g3e="📟",b3e="📠",E3e="🔋",y3e="🔌",v3e="💻",S3e="🖥️",T3e="🖨️",x3e="⌨️",C3e="🖱️",w3e="🖲️",R3e="💽",A3e="💾",N3e="💿",O3e="📀",M3e="🧮",I3e="🎥",k3e="🎞️",D3e="📽️",L3e="🎬",P3e="📺",U3e="📷",F3e="📸",B3e="📹",G3e="📼",V3e="🔍",z3e="🔎",H3e="🕯️",q3e="💡",$3e="🔦",Y3e="🏮",W3e="🏮",K3e="🪔",j3e="📔",Q3e="📕",X3e="📖",Z3e="📖",J3e="📗",eUe="📘",tUe="📙",nUe="📚",sUe="📓",iUe="📒",rUe="📃",oUe="📜",aUe="📄",lUe="📰",cUe="🗞️",dUe="📑",uUe="🔖",pUe="🏷️",_Ue="💰",hUe="🪙",fUe="💴",mUe="💵",gUe="💶",bUe="💷",EUe="💸",yUe="💳",vUe="🧾",SUe="💹",TUe="✉️",xUe="📧",CUe="📨",wUe="📩",RUe="📤",AUe="📥",NUe="📫",OUe="📪",MUe="📬",IUe="📭",kUe="📮",DUe="🗳️",LUe="✏️",PUe="✒️",UUe="🖋️",FUe="🖊️",BUe="🖌️",GUe="🖍️",VUe="📝",zUe="📝",HUe="💼",qUe="📁",$Ue="📂",YUe="🗂️",WUe="📅",KUe="📆",jUe="🗒️",QUe="🗓️",XUe="📇",ZUe="📈",JUe="📉",eFe="📊",tFe="📋",nFe="📌",sFe="📍",iFe="📎",rFe="🖇️",oFe="📏",aFe="📐",lFe="✂️",cFe="🗃️",dFe="🗄️",uFe="🗑️",pFe="🔒",_Fe="🔓",hFe="🔏",fFe="🔐",mFe="🔑",gFe="🗝️",bFe="🔨",EFe="🪓",yFe="⛏️",vFe="⚒️",SFe="🛠️",TFe="🗡️",xFe="⚔️",CFe="🔫",wFe="🪃",RFe="🏹",AFe="🛡️",NFe="🪚",OFe="🔧",MFe="🪛",IFe="🔩",kFe="⚙️",DFe="🗜️",LFe="⚖️",PFe="🦯",UFe="🔗",FFe="⛓️",BFe="🪝",GFe="🧰",VFe="🧲",zFe="🪜",HFe="⚗️",qFe="🧪",$Fe="🧫",YFe="🧬",WFe="🔬",KFe="🔭",jFe="📡",QFe="💉",XFe="🩸",ZFe="💊",JFe="🩹",e4e="🩺",t4e="🚪",n4e="🛗",s4e="🪞",i4e="🪟",r4e="🛏️",o4e="🛋️",a4e="🪑",l4e="🚽",c4e="🪠",d4e="🚿",u4e="🛁",p4e="🪤",_4e="🪒",h4e="🧴",f4e="🧷",m4e="🧹",g4e="🧺",b4e="🧻",E4e="🪣",y4e="🧼",v4e="🪥",S4e="🧽",T4e="🧯",x4e="🛒",C4e="🚬",w4e="⚰️",R4e="🪦",A4e="⚱️",N4e="🗿",O4e="🪧",M4e="🏧",I4e="🚮",k4e="🚰",D4e="♿",L4e="🚹",P4e="🚺",U4e="🚻",F4e="🚼",B4e="🚾",G4e="🛂",V4e="🛃",z4e="🛄",H4e="🛅",q4e="⚠️",$4e="🚸",Y4e="⛔",W4e="🚫",K4e="🚳",j4e="🚭",Q4e="🚯",X4e="🚷",Z4e="📵",J4e="🔞",eBe="☢️",tBe="☣️",nBe="⬆️",sBe="↗️",iBe="➡️",rBe="↘️",oBe="⬇️",aBe="↙️",lBe="⬅️",cBe="↖️",dBe="↕️",uBe="↔️",pBe="↩️",_Be="↪️",hBe="⤴️",fBe="⤵️",mBe="🔃",gBe="🔄",bBe="🔙",EBe="🔚",yBe="🔛",vBe="🔜",SBe="🔝",TBe="🛐",xBe="⚛️",CBe="🕉️",wBe="✡️",RBe="☸️",ABe="☯️",NBe="✝️",OBe="☦️",MBe="☪️",IBe="☮️",kBe="🕎",DBe="🔯",LBe="♈",PBe="♉",UBe="♊",FBe="♋",BBe="♌",GBe="♍",VBe="♎",zBe="♏",HBe="♐",qBe="♑",$Be="♒",YBe="♓",WBe="⛎",KBe="🔀",jBe="🔁",QBe="🔂",XBe="▶️",ZBe="⏩",JBe="⏭️",e5e="⏯️",t5e="◀️",n5e="⏪",s5e="⏮️",i5e="🔼",r5e="⏫",o5e="🔽",a5e="⏬",l5e="⏸️",c5e="⏹️",d5e="⏺️",u5e="⏏️",p5e="🎦",_5e="🔅",h5e="🔆",f5e="📶",m5e="📳",g5e="📴",b5e="♀️",E5e="♂️",y5e="⚧️",v5e="✖️",S5e="➕",T5e="➖",x5e="➗",C5e="♾️",w5e="‼️",R5e="⁉️",A5e="❓",N5e="❔",O5e="❕",M5e="❗",I5e="❗",k5e="〰️",D5e="💱",L5e="💲",P5e="⚕️",U5e="♻️",F5e="⚜️",B5e="🔱",G5e="📛",V5e="🔰",z5e="⭕",H5e="✅",q5e="☑️",$5e="✔️",Y5e="❌",W5e="❎",K5e="➰",j5e="➿",Q5e="〽️",X5e="✳️",Z5e="✴️",J5e="❇️",e6e="©️",t6e="®️",n6e="™️",s6e="#️⃣",i6e="*️⃣",r6e="0️⃣",o6e="1️⃣",a6e="2️⃣",l6e="3️⃣",c6e="4️⃣",d6e="5️⃣",u6e="6️⃣",p6e="7️⃣",_6e="8️⃣",h6e="9️⃣",f6e="🔟",m6e="🔠",g6e="🔡",b6e="🔣",E6e="🔤",y6e="🅰️",v6e="🆎",S6e="🅱️",T6e="🆑",x6e="🆒",C6e="🆓",w6e="ℹ️",R6e="🆔",A6e="Ⓜ️",N6e="🆖",O6e="🅾️",M6e="🆗",I6e="🅿️",k6e="🆘",D6e="🆙",L6e="🆚",P6e="🈁",U6e="🈂️",F6e="🉐",B6e="🉑",G6e="㊗️",V6e="㊙️",z6e="🈵",H6e="🔴",q6e="🟠",$6e="🟡",Y6e="🟢",W6e="🔵",K6e="🟣",j6e="🟤",Q6e="⚫",X6e="⚪",Z6e="🟥",J6e="🟧",eGe="🟨",tGe="🟩",nGe="🟦",sGe="🟪",iGe="🟫",rGe="⬛",oGe="⬜",aGe="◼️",lGe="◻️",cGe="◾",dGe="◽",uGe="▪️",pGe="▫️",_Ge="🔶",hGe="🔷",fGe="🔸",mGe="🔹",gGe="🔺",bGe="🔻",EGe="💠",yGe="🔘",vGe="🔳",SGe="🔲",TGe="🏁",xGe="🚩",CGe="🎌",wGe="🏴",RGe="🏳️",AGe="🏳️‍🌈",NGe="🏳️‍⚧️",OGe="🏴‍☠️",MGe="🇦🇨",IGe="🇦🇩",kGe="🇦🇪",DGe="🇦🇫",LGe="🇦🇬",PGe="🇦🇮",UGe="🇦🇱",FGe="🇦🇲",BGe="🇦🇴",GGe="🇦🇶",VGe="🇦🇷",zGe="🇦🇸",HGe="🇦🇹",qGe="🇦🇺",$Ge="🇦🇼",YGe="🇦🇽",WGe="🇦🇿",KGe="🇧🇦",jGe="🇧🇧",QGe="🇧🇩",XGe="🇧🇪",ZGe="🇧🇫",JGe="🇧🇬",e8e="🇧🇭",t8e="🇧🇮",n8e="🇧🇯",s8e="🇧🇱",i8e="🇧🇲",r8e="🇧🇳",o8e="🇧🇴",a8e="🇧🇶",l8e="🇧🇷",c8e="🇧🇸",d8e="🇧🇹",u8e="🇧🇻",p8e="🇧🇼",_8e="🇧🇾",h8e="🇧🇿",f8e="🇨🇦",m8e="🇨🇨",g8e="🇨🇩",b8e="🇨🇫",E8e="🇨🇬",y8e="🇨🇭",v8e="🇨🇮",S8e="🇨🇰",T8e="🇨🇱",x8e="🇨🇲",C8e="🇨🇳",w8e="🇨🇴",R8e="🇨🇵",A8e="🇨🇷",N8e="🇨🇺",O8e="🇨🇻",M8e="🇨🇼",I8e="🇨🇽",k8e="🇨🇾",D8e="🇨🇿",L8e="🇩🇪",P8e="🇩🇬",U8e="🇩🇯",F8e="🇩🇰",B8e="🇩🇲",G8e="🇩🇴",V8e="🇩🇿",z8e="🇪🇦",H8e="🇪🇨",q8e="🇪🇪",$8e="🇪🇬",Y8e="🇪🇭",W8e="🇪🇷",K8e="🇪🇸",j8e="🇪🇹",Q8e="🇪🇺",X8e="🇪🇺",Z8e="🇫🇮",J8e="🇫🇯",e9e="🇫🇰",t9e="🇫🇲",n9e="🇫🇴",s9e="🇫🇷",i9e="🇬🇦",r9e="🇬🇧",o9e="🇬🇧",a9e="🇬🇩",l9e="🇬🇪",c9e="🇬🇫",d9e="🇬🇬",u9e="🇬🇭",p9e="🇬🇮",_9e="🇬🇱",h9e="🇬🇲",f9e="🇬🇳",m9e="🇬🇵",g9e="🇬🇶",b9e="🇬🇷",E9e="🇬🇸",y9e="🇬🇹",v9e="🇬🇺",S9e="🇬🇼",T9e="🇬🇾",x9e="🇭🇰",C9e="🇭🇲",w9e="🇭🇳",R9e="🇭🇷",A9e="🇭🇹",N9e="🇭🇺",O9e="🇮🇨",M9e="🇮🇩",I9e="🇮🇪",k9e="🇮🇱",D9e="🇮🇲",L9e="🇮🇳",P9e="🇮🇴",U9e="🇮🇶",F9e="🇮🇷",B9e="🇮🇸",G9e="🇮🇹",V9e="🇯🇪",z9e="🇯🇲",H9e="🇯🇴",q9e="🇯🇵",$9e="🇰🇪",Y9e="🇰🇬",W9e="🇰🇭",K9e="🇰🇮",j9e="🇰🇲",Q9e="🇰🇳",X9e="🇰🇵",Z9e="🇰🇷",J9e="🇰🇼",eVe="🇰🇾",tVe="🇰🇿",nVe="🇱🇦",sVe="🇱🇧",iVe="🇱🇨",rVe="🇱🇮",oVe="🇱🇰",aVe="🇱🇷",lVe="🇱🇸",cVe="🇱🇹",dVe="🇱🇺",uVe="🇱🇻",pVe="🇱🇾",_Ve="🇲🇦",hVe="🇲🇨",fVe="🇲🇩",mVe="🇲🇪",gVe="🇲🇫",bVe="🇲🇬",EVe="🇲🇭",yVe="🇲🇰",vVe="🇲🇱",SVe="🇲🇲",TVe="🇲🇳",xVe="🇲🇴",CVe="🇲🇵",wVe="🇲🇶",RVe="🇲🇷",AVe="🇲🇸",NVe="🇲🇹",OVe="🇲🇺",MVe="🇲🇻",IVe="🇲🇼",kVe="🇲🇽",DVe="🇲🇾",LVe="🇲🇿",PVe="🇳🇦",UVe="🇳🇨",FVe="🇳🇪",BVe="🇳🇫",GVe="🇳🇬",VVe="🇳🇮",zVe="🇳🇱",HVe="🇳🇴",qVe="🇳🇵",$Ve="🇳🇷",YVe="🇳🇺",WVe="🇳🇿",KVe="🇴🇲",jVe="🇵🇦",QVe="🇵🇪",XVe="🇵🇫",ZVe="🇵🇬",JVe="🇵🇭",eze="🇵🇰",tze="🇵🇱",nze="🇵🇲",sze="🇵🇳",ize="🇵🇷",rze="🇵🇸",oze="🇵🇹",aze="🇵🇼",lze="🇵🇾",cze="🇶🇦",dze="🇷🇪",uze="🇷🇴",pze="🇷🇸",_ze="🇷🇺",hze="🇷🇼",fze="🇸🇦",mze="🇸🇧",gze="🇸🇨",bze="🇸🇩",Eze="🇸🇪",yze="🇸🇬",vze="🇸🇭",Sze="🇸🇮",Tze="🇸🇯",xze="🇸🇰",Cze="🇸🇱",wze="🇸🇲",Rze="🇸🇳",Aze="🇸🇴",Nze="🇸🇷",Oze="🇸🇸",Mze="🇸🇹",Ize="🇸🇻",kze="🇸🇽",Dze="🇸🇾",Lze="🇸🇿",Pze="🇹🇦",Uze="🇹🇨",Fze="🇹🇩",Bze="🇹🇫",Gze="🇹🇬",Vze="🇹🇭",zze="🇹🇯",Hze="🇹🇰",qze="🇹🇱",$ze="🇹🇲",Yze="🇹🇳",Wze="🇹🇴",Kze="🇹🇷",jze="🇹🇹",Qze="🇹🇻",Xze="🇹🇼",Zze="🇹🇿",Jze="🇺🇦",eHe="🇺🇬",tHe="🇺🇲",nHe="🇺🇳",sHe="🇺🇸",iHe="🇺🇾",rHe="🇺🇿",oHe="🇻🇦",aHe="🇻🇨",lHe="🇻🇪",cHe="🇻🇬",dHe="🇻🇮",uHe="🇻🇳",pHe="🇻🇺",_He="🇼🇫",hHe="🇼🇸",fHe="🇽🇰",mHe="🇾🇪",gHe="🇾🇹",bHe="🇿🇦",EHe="🇿🇲",yHe="🇿🇼",vHe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",SHe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",THe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",xHe={100:"💯",1234:"🔢",grinning:Lbe,smiley:Pbe,smile:Ube,grin:Fbe,laughing:Bbe,satisfied:Gbe,sweat_smile:Vbe,rofl:zbe,joy:Hbe,slightly_smiling_face:qbe,upside_down_face:$be,wink:Ybe,blush:Wbe,innocent:Kbe,smiling_face_with_three_hearts:jbe,heart_eyes:Qbe,star_struck:Xbe,kissing_heart:Zbe,kissing:Jbe,relaxed:eEe,kissing_closed_eyes:tEe,kissing_smiling_eyes:nEe,smiling_face_with_tear:sEe,yum:iEe,stuck_out_tongue:rEe,stuck_out_tongue_winking_eye:oEe,zany_face:aEe,stuck_out_tongue_closed_eyes:lEe,money_mouth_face:cEe,hugs:dEe,hand_over_mouth:uEe,shushing_face:pEe,thinking:_Ee,zipper_mouth_face:hEe,raised_eyebrow:fEe,neutral_face:mEe,expressionless:gEe,no_mouth:bEe,smirk:EEe,unamused:yEe,roll_eyes:vEe,grimacing:SEe,lying_face:TEe,relieved:xEe,pensive:CEe,sleepy:wEe,drooling_face:REe,sleeping:AEe,mask:NEe,face_with_thermometer:OEe,face_with_head_bandage:MEe,nauseated_face:IEe,vomiting_face:kEe,sneezing_face:DEe,hot_face:LEe,cold_face:PEe,woozy_face:UEe,dizzy_face:FEe,exploding_head:BEe,cowboy_hat_face:GEe,partying_face:VEe,disguised_face:zEe,sunglasses:HEe,nerd_face:qEe,monocle_face:$Ee,confused:YEe,worried:WEe,slightly_frowning_face:KEe,frowning_face:jEe,open_mouth:QEe,hushed:XEe,astonished:ZEe,flushed:JEe,pleading_face:eye,frowning:tye,anguished:nye,fearful:sye,cold_sweat:iye,disappointed_relieved:rye,cry:oye,sob:aye,scream:lye,confounded:cye,persevere:dye,disappointed:uye,sweat:pye,weary:_ye,tired_face:hye,yawning_face:fye,triumph:mye,rage:gye,pout:bye,angry:Eye,cursing_face:yye,smiling_imp:vye,imp:Sye,skull:Tye,skull_and_crossbones:xye,hankey:Cye,poop:wye,shit:Rye,clown_face:Aye,japanese_ogre:Nye,japanese_goblin:Oye,ghost:Mye,alien:Iye,space_invader:kye,robot:Dye,smiley_cat:Lye,smile_cat:Pye,joy_cat:Uye,heart_eyes_cat:Fye,smirk_cat:Bye,kissing_cat:Gye,scream_cat:Vye,crying_cat_face:zye,pouting_cat:Hye,see_no_evil:qye,hear_no_evil:$ye,speak_no_evil:Yye,kiss:Wye,love_letter:Kye,cupid:jye,gift_heart:Qye,sparkling_heart:Xye,heartpulse:Zye,heartbeat:Jye,revolving_hearts:eve,two_hearts:tve,heart_decoration:nve,heavy_heart_exclamation:sve,broken_heart:ive,heart:rve,orange_heart:ove,yellow_heart:ave,green_heart:lve,blue_heart:cve,purple_heart:dve,brown_heart:uve,black_heart:pve,white_heart:_ve,anger:hve,boom:fve,collision:mve,dizzy:gve,sweat_drops:bve,dash:Eve,hole:yve,bomb:vve,speech_balloon:Sve,eye_speech_bubble:Tve,left_speech_bubble:xve,right_anger_bubble:Cve,thought_balloon:wve,zzz:Rve,wave:Ave,raised_back_of_hand:Nve,raised_hand_with_fingers_splayed:Ove,hand:Mve,raised_hand:Ive,vulcan_salute:kve,ok_hand:Dve,pinched_fingers:Lve,pinching_hand:Pve,v:Uve,crossed_fingers:Fve,love_you_gesture:Bve,metal:Gve,call_me_hand:Vve,point_left:zve,point_right:Hve,point_up_2:qve,middle_finger:$ve,fu:Yve,point_down:Wve,point_up:Kve,"+1":"👍",thumbsup:jve,"-1":"👎",thumbsdown:Qve,fist_raised:Xve,fist:Zve,fist_oncoming:Jve,facepunch:eSe,punch:tSe,fist_left:nSe,fist_right:sSe,clap:iSe,raised_hands:rSe,open_hands:oSe,palms_up_together:aSe,handshake:lSe,pray:cSe,writing_hand:dSe,nail_care:uSe,selfie:pSe,muscle:_Se,mechanical_arm:hSe,mechanical_leg:fSe,leg:mSe,foot:gSe,ear:bSe,ear_with_hearing_aid:ESe,nose:ySe,brain:vSe,anatomical_heart:SSe,lungs:TSe,tooth:xSe,bone:CSe,eyes:wSe,eye:RSe,tongue:ASe,lips:NSe,baby:OSe,child:MSe,boy:ISe,girl:kSe,adult:DSe,blond_haired_person:LSe,man:PSe,bearded_person:USe,red_haired_man:FSe,curly_haired_man:BSe,white_haired_man:GSe,bald_man:VSe,woman:zSe,red_haired_woman:HSe,person_red_hair:qSe,curly_haired_woman:$Se,person_curly_hair:YSe,white_haired_woman:WSe,person_white_hair:KSe,bald_woman:jSe,person_bald:QSe,blond_haired_woman:XSe,blonde_woman:ZSe,blond_haired_man:JSe,older_adult:e0e,older_man:t0e,older_woman:n0e,frowning_person:s0e,frowning_man:i0e,frowning_woman:r0e,pouting_face:o0e,pouting_man:a0e,pouting_woman:l0e,no_good:c0e,no_good_man:d0e,ng_man:u0e,no_good_woman:p0e,ng_woman:_0e,ok_person:h0e,ok_man:f0e,ok_woman:m0e,tipping_hand_person:g0e,information_desk_person:b0e,tipping_hand_man:E0e,sassy_man:y0e,tipping_hand_woman:v0e,sassy_woman:S0e,raising_hand:T0e,raising_hand_man:x0e,raising_hand_woman:C0e,deaf_person:w0e,deaf_man:R0e,deaf_woman:A0e,bow:N0e,bowing_man:O0e,bowing_woman:M0e,facepalm:I0e,man_facepalming:k0e,woman_facepalming:D0e,shrug:L0e,man_shrugging:P0e,woman_shrugging:U0e,health_worker:F0e,man_health_worker:B0e,woman_health_worker:G0e,student:V0e,man_student:z0e,woman_student:H0e,teacher:q0e,man_teacher:$0e,woman_teacher:Y0e,judge:W0e,man_judge:K0e,woman_judge:j0e,farmer:Q0e,man_farmer:X0e,woman_farmer:Z0e,cook:J0e,man_cook:eTe,woman_cook:tTe,mechanic:nTe,man_mechanic:sTe,woman_mechanic:iTe,factory_worker:rTe,man_factory_worker:oTe,woman_factory_worker:aTe,office_worker:lTe,man_office_worker:cTe,woman_office_worker:dTe,scientist:uTe,man_scientist:pTe,woman_scientist:_Te,technologist:hTe,man_technologist:fTe,woman_technologist:mTe,singer:gTe,man_singer:bTe,woman_singer:ETe,artist:yTe,man_artist:vTe,woman_artist:STe,pilot:TTe,man_pilot:xTe,woman_pilot:CTe,astronaut:wTe,man_astronaut:RTe,woman_astronaut:ATe,firefighter:NTe,man_firefighter:OTe,woman_firefighter:MTe,police_officer:ITe,cop:kTe,policeman:DTe,policewoman:LTe,detective:PTe,male_detective:UTe,female_detective:FTe,guard:BTe,guardsman:GTe,guardswoman:VTe,ninja:zTe,construction_worker:HTe,construction_worker_man:qTe,construction_worker_woman:$Te,prince:YTe,princess:WTe,person_with_turban:KTe,man_with_turban:jTe,woman_with_turban:QTe,man_with_gua_pi_mao:XTe,woman_with_headscarf:ZTe,person_in_tuxedo:JTe,man_in_tuxedo:exe,woman_in_tuxedo:txe,person_with_veil:nxe,man_with_veil:sxe,woman_with_veil:ixe,bride_with_veil:rxe,pregnant_woman:oxe,breast_feeding:axe,woman_feeding_baby:lxe,man_feeding_baby:cxe,person_feeding_baby:dxe,angel:uxe,santa:pxe,mrs_claus:_xe,mx_claus:hxe,superhero:fxe,superhero_man:mxe,superhero_woman:gxe,supervillain:bxe,supervillain_man:Exe,supervillain_woman:yxe,mage:vxe,mage_man:Sxe,mage_woman:Txe,fairy:xxe,fairy_man:Cxe,fairy_woman:wxe,vampire:Rxe,vampire_man:Axe,vampire_woman:Nxe,merperson:Oxe,merman:Mxe,mermaid:Ixe,elf:kxe,elf_man:Dxe,elf_woman:Lxe,genie:Pxe,genie_man:Uxe,genie_woman:Fxe,zombie:Bxe,zombie_man:Gxe,zombie_woman:Vxe,massage:zxe,massage_man:Hxe,massage_woman:qxe,haircut:$xe,haircut_man:Yxe,haircut_woman:Wxe,walking:Kxe,walking_man:jxe,walking_woman:Qxe,standing_person:Xxe,standing_man:Zxe,standing_woman:Jxe,kneeling_person:e1e,kneeling_man:t1e,kneeling_woman:n1e,person_with_probing_cane:s1e,man_with_probing_cane:i1e,woman_with_probing_cane:r1e,person_in_motorized_wheelchair:o1e,man_in_motorized_wheelchair:a1e,woman_in_motorized_wheelchair:l1e,person_in_manual_wheelchair:c1e,man_in_manual_wheelchair:d1e,woman_in_manual_wheelchair:u1e,runner:p1e,running:_1e,running_man:h1e,running_woman:f1e,woman_dancing:m1e,dancer:g1e,man_dancing:b1e,business_suit_levitating:E1e,dancers:y1e,dancing_men:v1e,dancing_women:S1e,sauna_person:T1e,sauna_man:x1e,sauna_woman:C1e,climbing:w1e,climbing_man:R1e,climbing_woman:A1e,person_fencing:N1e,horse_racing:O1e,skier:M1e,snowboarder:I1e,golfing:k1e,golfing_man:D1e,golfing_woman:L1e,surfer:P1e,surfing_man:U1e,surfing_woman:F1e,rowboat:B1e,rowing_man:G1e,rowing_woman:V1e,swimmer:z1e,swimming_man:H1e,swimming_woman:q1e,bouncing_ball_person:$1e,bouncing_ball_man:Y1e,basketball_man:W1e,bouncing_ball_woman:K1e,basketball_woman:j1e,weight_lifting:Q1e,weight_lifting_man:X1e,weight_lifting_woman:Z1e,bicyclist:J1e,biking_man:eCe,biking_woman:tCe,mountain_bicyclist:nCe,mountain_biking_man:sCe,mountain_biking_woman:iCe,cartwheeling:rCe,man_cartwheeling:oCe,woman_cartwheeling:aCe,wrestling:lCe,men_wrestling:cCe,women_wrestling:dCe,water_polo:uCe,man_playing_water_polo:pCe,woman_playing_water_polo:_Ce,handball_person:hCe,man_playing_handball:fCe,woman_playing_handball:mCe,juggling_person:gCe,man_juggling:bCe,woman_juggling:ECe,lotus_position:yCe,lotus_position_man:vCe,lotus_position_woman:SCe,bath:TCe,sleeping_bed:xCe,people_holding_hands:CCe,two_women_holding_hands:wCe,couple:RCe,two_men_holding_hands:ACe,couplekiss:NCe,couplekiss_man_woman:OCe,couplekiss_man_man:MCe,couplekiss_woman_woman:ICe,couple_with_heart:kCe,couple_with_heart_woman_man:DCe,couple_with_heart_man_man:LCe,couple_with_heart_woman_woman:PCe,family:UCe,family_man_woman_boy:FCe,family_man_woman_girl:BCe,family_man_woman_girl_boy:GCe,family_man_woman_boy_boy:VCe,family_man_woman_girl_girl:zCe,family_man_man_boy:HCe,family_man_man_girl:qCe,family_man_man_girl_boy:$Ce,family_man_man_boy_boy:YCe,family_man_man_girl_girl:WCe,family_woman_woman_boy:KCe,family_woman_woman_girl:jCe,family_woman_woman_girl_boy:QCe,family_woman_woman_boy_boy:XCe,family_woman_woman_girl_girl:ZCe,family_man_boy:JCe,family_man_boy_boy:ewe,family_man_girl:twe,family_man_girl_boy:nwe,family_man_girl_girl:swe,family_woman_boy:iwe,family_woman_boy_boy:rwe,family_woman_girl:owe,family_woman_girl_boy:awe,family_woman_girl_girl:lwe,speaking_head:cwe,bust_in_silhouette:dwe,busts_in_silhouette:uwe,people_hugging:pwe,footprints:_we,monkey_face:hwe,monkey:fwe,gorilla:mwe,orangutan:gwe,dog:bwe,dog2:Ewe,guide_dog:ywe,service_dog:vwe,poodle:Swe,wolf:Twe,fox_face:xwe,raccoon:Cwe,cat:wwe,cat2:Rwe,black_cat:Awe,lion:Nwe,tiger:Owe,tiger2:Mwe,leopard:Iwe,horse:kwe,racehorse:Dwe,unicorn:Lwe,zebra:Pwe,deer:Uwe,bison:Fwe,cow:Bwe,ox:Gwe,water_buffalo:Vwe,cow2:zwe,pig:Hwe,pig2:qwe,boar:$we,pig_nose:Ywe,ram:Wwe,sheep:Kwe,goat:jwe,dromedary_camel:Qwe,camel:Xwe,llama:Zwe,giraffe:Jwe,elephant:eRe,mammoth:tRe,rhinoceros:nRe,hippopotamus:sRe,mouse:iRe,mouse2:rRe,rat:oRe,hamster:aRe,rabbit:lRe,rabbit2:cRe,chipmunk:dRe,beaver:uRe,hedgehog:pRe,bat:_Re,bear:hRe,polar_bear:fRe,koala:mRe,panda_face:gRe,sloth:bRe,otter:ERe,skunk:yRe,kangaroo:vRe,badger:SRe,feet:TRe,paw_prints:xRe,turkey:CRe,chicken:wRe,rooster:RRe,hatching_chick:ARe,baby_chick:NRe,hatched_chick:ORe,bird:MRe,penguin:IRe,dove:kRe,eagle:DRe,duck:LRe,swan:PRe,owl:URe,dodo:FRe,feather:BRe,flamingo:GRe,peacock:VRe,parrot:zRe,frog:HRe,crocodile:qRe,turtle:$Re,lizard:YRe,snake:WRe,dragon_face:KRe,dragon:jRe,sauropod:QRe,"t-rex":"🦖",whale:XRe,whale2:ZRe,dolphin:JRe,flipper:eAe,seal:tAe,fish:nAe,tropical_fish:sAe,blowfish:iAe,shark:rAe,octopus:oAe,shell:aAe,snail:lAe,butterfly:cAe,bug:dAe,ant:uAe,bee:pAe,honeybee:_Ae,beetle:hAe,lady_beetle:fAe,cricket:mAe,cockroach:gAe,spider:bAe,spider_web:EAe,scorpion:yAe,mosquito:vAe,fly:SAe,worm:TAe,microbe:xAe,bouquet:CAe,cherry_blossom:wAe,white_flower:RAe,rosette:AAe,rose:NAe,wilted_flower:OAe,hibiscus:MAe,sunflower:IAe,blossom:kAe,tulip:DAe,seedling:LAe,potted_plant:PAe,evergreen_tree:UAe,deciduous_tree:FAe,palm_tree:BAe,cactus:GAe,ear_of_rice:VAe,herb:zAe,shamrock:HAe,four_leaf_clover:qAe,maple_leaf:$Ae,fallen_leaf:YAe,leaves:WAe,grapes:KAe,melon:jAe,watermelon:QAe,tangerine:XAe,orange:ZAe,mandarin:JAe,lemon:e2e,banana:t2e,pineapple:n2e,mango:s2e,apple:i2e,green_apple:r2e,pear:o2e,peach:a2e,cherries:l2e,strawberry:c2e,blueberries:d2e,kiwi_fruit:u2e,tomato:p2e,olive:_2e,coconut:h2e,avocado:f2e,eggplant:m2e,potato:g2e,carrot:b2e,corn:E2e,hot_pepper:y2e,bell_pepper:v2e,cucumber:S2e,leafy_green:T2e,broccoli:x2e,garlic:C2e,onion:w2e,mushroom:R2e,peanuts:A2e,chestnut:N2e,bread:O2e,croissant:M2e,baguette_bread:I2e,flatbread:k2e,pretzel:D2e,bagel:L2e,pancakes:P2e,waffle:U2e,cheese:F2e,meat_on_bone:B2e,poultry_leg:G2e,cut_of_meat:V2e,bacon:z2e,hamburger:H2e,fries:q2e,pizza:$2e,hotdog:Y2e,sandwich:W2e,taco:K2e,burrito:j2e,tamale:Q2e,stuffed_flatbread:X2e,falafel:Z2e,egg:J2e,fried_egg:eNe,shallow_pan_of_food:tNe,stew:nNe,fondue:sNe,bowl_with_spoon:iNe,green_salad:rNe,popcorn:oNe,butter:aNe,salt:lNe,canned_food:cNe,bento:dNe,rice_cracker:uNe,rice_ball:pNe,rice:_Ne,curry:hNe,ramen:fNe,spaghetti:mNe,sweet_potato:gNe,oden:bNe,sushi:ENe,fried_shrimp:yNe,fish_cake:vNe,moon_cake:SNe,dango:TNe,dumpling:xNe,fortune_cookie:CNe,takeout_box:wNe,crab:RNe,lobster:ANe,shrimp:NNe,squid:ONe,oyster:MNe,icecream:INe,shaved_ice:kNe,ice_cream:DNe,doughnut:LNe,cookie:PNe,birthday:UNe,cake:FNe,cupcake:BNe,pie:GNe,chocolate_bar:VNe,candy:zNe,lollipop:HNe,custard:qNe,honey_pot:$Ne,baby_bottle:YNe,milk_glass:WNe,coffee:KNe,teapot:jNe,tea:QNe,sake:XNe,champagne:ZNe,wine_glass:JNe,cocktail:eOe,tropical_drink:tOe,beer:nOe,beers:sOe,clinking_glasses:iOe,tumbler_glass:rOe,cup_with_straw:oOe,bubble_tea:aOe,beverage_box:lOe,mate:cOe,ice_cube:dOe,chopsticks:uOe,plate_with_cutlery:pOe,fork_and_knife:_Oe,spoon:hOe,hocho:fOe,knife:mOe,amphora:gOe,earth_africa:bOe,earth_americas:EOe,earth_asia:yOe,globe_with_meridians:vOe,world_map:SOe,japan:TOe,compass:xOe,mountain_snow:COe,mountain:wOe,volcano:ROe,mount_fuji:AOe,camping:NOe,beach_umbrella:OOe,desert:MOe,desert_island:IOe,national_park:kOe,stadium:DOe,classical_building:LOe,building_construction:POe,bricks:UOe,rock:FOe,wood:BOe,hut:GOe,houses:VOe,derelict_house:zOe,house:HOe,house_with_garden:qOe,office:$Oe,post_office:YOe,european_post_office:WOe,hospital:KOe,bank:jOe,hotel:QOe,love_hotel:XOe,convenience_store:ZOe,school:JOe,department_store:eMe,factory:tMe,japanese_castle:nMe,european_castle:sMe,wedding:iMe,tokyo_tower:rMe,statue_of_liberty:oMe,church:aMe,mosque:lMe,hindu_temple:cMe,synagogue:dMe,shinto_shrine:uMe,kaaba:pMe,fountain:_Me,tent:hMe,foggy:fMe,night_with_stars:mMe,cityscape:gMe,sunrise_over_mountains:bMe,sunrise:EMe,city_sunset:yMe,city_sunrise:vMe,bridge_at_night:SMe,hotsprings:TMe,carousel_horse:xMe,ferris_wheel:CMe,roller_coaster:wMe,barber:RMe,circus_tent:AMe,steam_locomotive:NMe,railway_car:OMe,bullettrain_side:MMe,bullettrain_front:IMe,train2:kMe,metro:DMe,light_rail:LMe,station:PMe,tram:UMe,monorail:FMe,mountain_railway:BMe,train:GMe,bus:VMe,oncoming_bus:zMe,trolleybus:HMe,minibus:qMe,ambulance:$Me,fire_engine:YMe,police_car:WMe,oncoming_police_car:KMe,taxi:jMe,oncoming_taxi:QMe,car:XMe,red_car:ZMe,oncoming_automobile:JMe,blue_car:eIe,pickup_truck:tIe,truck:nIe,articulated_lorry:sIe,tractor:iIe,racing_car:rIe,motorcycle:oIe,motor_scooter:aIe,manual_wheelchair:lIe,motorized_wheelchair:cIe,auto_rickshaw:dIe,bike:uIe,kick_scooter:pIe,skateboard:_Ie,roller_skate:hIe,busstop:fIe,motorway:mIe,railway_track:gIe,oil_drum:bIe,fuelpump:EIe,rotating_light:yIe,traffic_light:vIe,vertical_traffic_light:SIe,stop_sign:TIe,construction:xIe,anchor:CIe,boat:wIe,sailboat:RIe,canoe:AIe,speedboat:NIe,passenger_ship:OIe,ferry:MIe,motor_boat:IIe,ship:kIe,airplane:DIe,small_airplane:LIe,flight_departure:PIe,flight_arrival:UIe,parachute:FIe,seat:BIe,helicopter:GIe,suspension_railway:VIe,mountain_cableway:zIe,aerial_tramway:HIe,artificial_satellite:qIe,rocket:$Ie,flying_saucer:YIe,bellhop_bell:WIe,luggage:KIe,hourglass:jIe,hourglass_flowing_sand:QIe,watch:XIe,alarm_clock:ZIe,stopwatch:JIe,timer_clock:eke,mantelpiece_clock:tke,clock12:nke,clock1230:ske,clock1:ike,clock130:rke,clock2:oke,clock230:ake,clock3:lke,clock330:cke,clock4:dke,clock430:uke,clock5:pke,clock530:_ke,clock6:hke,clock630:fke,clock7:mke,clock730:gke,clock8:bke,clock830:Eke,clock9:yke,clock930:vke,clock10:Ske,clock1030:Tke,clock11:xke,clock1130:Cke,new_moon:wke,waxing_crescent_moon:Rke,first_quarter_moon:Ake,moon:Nke,waxing_gibbous_moon:Oke,full_moon:Mke,waning_gibbous_moon:Ike,last_quarter_moon:kke,waning_crescent_moon:Dke,crescent_moon:Lke,new_moon_with_face:Pke,first_quarter_moon_with_face:Uke,last_quarter_moon_with_face:Fke,thermometer:Bke,sunny:Gke,full_moon_with_face:Vke,sun_with_face:zke,ringed_planet:Hke,star:qke,star2:$ke,stars:Yke,milky_way:Wke,cloud:Kke,partly_sunny:jke,cloud_with_lightning_and_rain:Qke,sun_behind_small_cloud:Xke,sun_behind_large_cloud:Zke,sun_behind_rain_cloud:Jke,cloud_with_rain:eDe,cloud_with_snow:tDe,cloud_with_lightning:nDe,tornado:sDe,fog:iDe,wind_face:rDe,cyclone:oDe,rainbow:aDe,closed_umbrella:lDe,open_umbrella:cDe,umbrella:dDe,parasol_on_ground:uDe,zap:pDe,snowflake:_De,snowman_with_snow:hDe,snowman:fDe,comet:mDe,fire:gDe,droplet:bDe,ocean:EDe,jack_o_lantern:yDe,christmas_tree:vDe,fireworks:SDe,sparkler:TDe,firecracker:xDe,sparkles:CDe,balloon:wDe,tada:RDe,confetti_ball:ADe,tanabata_tree:NDe,bamboo:ODe,dolls:MDe,flags:IDe,wind_chime:kDe,rice_scene:DDe,red_envelope:LDe,ribbon:PDe,gift:UDe,reminder_ribbon:FDe,tickets:BDe,ticket:GDe,medal_military:VDe,trophy:zDe,medal_sports:HDe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:qDe,baseball:$De,softball:YDe,basketball:WDe,volleyball:KDe,football:jDe,rugby_football:QDe,tennis:XDe,flying_disc:ZDe,bowling:JDe,cricket_game:eLe,field_hockey:tLe,ice_hockey:nLe,lacrosse:sLe,ping_pong:iLe,badminton:rLe,boxing_glove:oLe,martial_arts_uniform:aLe,goal_net:lLe,golf:cLe,ice_skate:dLe,fishing_pole_and_fish:uLe,diving_mask:pLe,running_shirt_with_sash:_Le,ski:hLe,sled:fLe,curling_stone:mLe,dart:gLe,yo_yo:bLe,kite:ELe,"8ball":"🎱",crystal_ball:yLe,magic_wand:vLe,nazar_amulet:SLe,video_game:TLe,joystick:xLe,slot_machine:CLe,game_die:wLe,jigsaw:RLe,teddy_bear:ALe,pinata:NLe,nesting_dolls:OLe,spades:MLe,hearts:ILe,diamonds:kLe,clubs:DLe,chess_pawn:LLe,black_joker:PLe,mahjong:ULe,flower_playing_cards:FLe,performing_arts:BLe,framed_picture:GLe,art:VLe,thread:zLe,sewing_needle:HLe,yarn:qLe,knot:$Le,eyeglasses:YLe,dark_sunglasses:WLe,goggles:KLe,lab_coat:jLe,safety_vest:QLe,necktie:XLe,shirt:ZLe,tshirt:JLe,jeans:ePe,scarf:tPe,gloves:nPe,coat:sPe,socks:iPe,dress:rPe,kimono:oPe,sari:aPe,one_piece_swimsuit:lPe,swim_brief:cPe,shorts:dPe,bikini:uPe,womans_clothes:pPe,purse:_Pe,handbag:hPe,pouch:fPe,shopping:mPe,school_satchel:gPe,thong_sandal:bPe,mans_shoe:EPe,shoe:yPe,athletic_shoe:vPe,hiking_boot:SPe,flat_shoe:TPe,high_heel:xPe,sandal:CPe,ballet_shoes:wPe,boot:RPe,crown:APe,womans_hat:NPe,tophat:OPe,mortar_board:MPe,billed_cap:IPe,military_helmet:kPe,rescue_worker_helmet:DPe,prayer_beads:LPe,lipstick:PPe,ring:UPe,gem:FPe,mute:BPe,speaker:GPe,sound:VPe,loud_sound:zPe,loudspeaker:HPe,mega:qPe,postal_horn:$Pe,bell:YPe,no_bell:WPe,musical_score:KPe,musical_note:jPe,notes:QPe,studio_microphone:XPe,level_slider:ZPe,control_knobs:JPe,microphone:e3e,headphones:t3e,radio:n3e,saxophone:s3e,accordion:i3e,guitar:r3e,musical_keyboard:o3e,trumpet:a3e,violin:l3e,banjo:c3e,drum:d3e,long_drum:u3e,iphone:p3e,calling:_3e,phone:h3e,telephone:f3e,telephone_receiver:m3e,pager:g3e,fax:b3e,battery:E3e,electric_plug:y3e,computer:v3e,desktop_computer:S3e,printer:T3e,keyboard:x3e,computer_mouse:C3e,trackball:w3e,minidisc:R3e,floppy_disk:A3e,cd:N3e,dvd:O3e,abacus:M3e,movie_camera:I3e,film_strip:k3e,film_projector:D3e,clapper:L3e,tv:P3e,camera:U3e,camera_flash:F3e,video_camera:B3e,vhs:G3e,mag:V3e,mag_right:z3e,candle:H3e,bulb:q3e,flashlight:$3e,izakaya_lantern:Y3e,lantern:W3e,diya_lamp:K3e,notebook_with_decorative_cover:j3e,closed_book:Q3e,book:X3e,open_book:Z3e,green_book:J3e,blue_book:eUe,orange_book:tUe,books:nUe,notebook:sUe,ledger:iUe,page_with_curl:rUe,scroll:oUe,page_facing_up:aUe,newspaper:lUe,newspaper_roll:cUe,bookmark_tabs:dUe,bookmark:uUe,label:pUe,moneybag:_Ue,coin:hUe,yen:fUe,dollar:mUe,euro:gUe,pound:bUe,money_with_wings:EUe,credit_card:yUe,receipt:vUe,chart:SUe,envelope:TUe,email:xUe,"e-mail":"📧",incoming_envelope:CUe,envelope_with_arrow:wUe,outbox_tray:RUe,inbox_tray:AUe,package:"📦",mailbox:NUe,mailbox_closed:OUe,mailbox_with_mail:MUe,mailbox_with_no_mail:IUe,postbox:kUe,ballot_box:DUe,pencil2:LUe,black_nib:PUe,fountain_pen:UUe,pen:FUe,paintbrush:BUe,crayon:GUe,memo:VUe,pencil:zUe,briefcase:HUe,file_folder:qUe,open_file_folder:$Ue,card_index_dividers:YUe,date:WUe,calendar:KUe,spiral_notepad:jUe,spiral_calendar:QUe,card_index:XUe,chart_with_upwards_trend:ZUe,chart_with_downwards_trend:JUe,bar_chart:eFe,clipboard:tFe,pushpin:nFe,round_pushpin:sFe,paperclip:iFe,paperclips:rFe,straight_ruler:oFe,triangular_ruler:aFe,scissors:lFe,card_file_box:cFe,file_cabinet:dFe,wastebasket:uFe,lock:pFe,unlock:_Fe,lock_with_ink_pen:hFe,closed_lock_with_key:fFe,key:mFe,old_key:gFe,hammer:bFe,axe:EFe,pick:yFe,hammer_and_pick:vFe,hammer_and_wrench:SFe,dagger:TFe,crossed_swords:xFe,gun:CFe,boomerang:wFe,bow_and_arrow:RFe,shield:AFe,carpentry_saw:NFe,wrench:OFe,screwdriver:MFe,nut_and_bolt:IFe,gear:kFe,clamp:DFe,balance_scale:LFe,probing_cane:PFe,link:UFe,chains:FFe,hook:BFe,toolbox:GFe,magnet:VFe,ladder:zFe,alembic:HFe,test_tube:qFe,petri_dish:$Fe,dna:YFe,microscope:WFe,telescope:KFe,satellite:jFe,syringe:QFe,drop_of_blood:XFe,pill:ZFe,adhesive_bandage:JFe,stethoscope:e4e,door:t4e,elevator:n4e,mirror:s4e,window:i4e,bed:r4e,couch_and_lamp:o4e,chair:a4e,toilet:l4e,plunger:c4e,shower:d4e,bathtub:u4e,mouse_trap:p4e,razor:_4e,lotion_bottle:h4e,safety_pin:f4e,broom:m4e,basket:g4e,roll_of_paper:b4e,bucket:E4e,soap:y4e,toothbrush:v4e,sponge:S4e,fire_extinguisher:T4e,shopping_cart:x4e,smoking:C4e,coffin:w4e,headstone:R4e,funeral_urn:A4e,moyai:N4e,placard:O4e,atm:M4e,put_litter_in_its_place:I4e,potable_water:k4e,wheelchair:D4e,mens:L4e,womens:P4e,restroom:U4e,baby_symbol:F4e,wc:B4e,passport_control:G4e,customs:V4e,baggage_claim:z4e,left_luggage:H4e,warning:q4e,children_crossing:$4e,no_entry:Y4e,no_entry_sign:W4e,no_bicycles:K4e,no_smoking:j4e,do_not_litter:Q4e,"non-potable_water":"🚱",no_pedestrians:X4e,no_mobile_phones:Z4e,underage:J4e,radioactive:eBe,biohazard:tBe,arrow_up:nBe,arrow_upper_right:sBe,arrow_right:iBe,arrow_lower_right:rBe,arrow_down:oBe,arrow_lower_left:aBe,arrow_left:lBe,arrow_upper_left:cBe,arrow_up_down:dBe,left_right_arrow:uBe,leftwards_arrow_with_hook:pBe,arrow_right_hook:_Be,arrow_heading_up:hBe,arrow_heading_down:fBe,arrows_clockwise:mBe,arrows_counterclockwise:gBe,back:bBe,end:EBe,on:yBe,soon:vBe,top:SBe,place_of_worship:TBe,atom_symbol:xBe,om:CBe,star_of_david:wBe,wheel_of_dharma:RBe,yin_yang:ABe,latin_cross:NBe,orthodox_cross:OBe,star_and_crescent:MBe,peace_symbol:IBe,menorah:kBe,six_pointed_star:DBe,aries:LBe,taurus:PBe,gemini:UBe,cancer:FBe,leo:BBe,virgo:GBe,libra:VBe,scorpius:zBe,sagittarius:HBe,capricorn:qBe,aquarius:$Be,pisces:YBe,ophiuchus:WBe,twisted_rightwards_arrows:KBe,repeat:jBe,repeat_one:QBe,arrow_forward:XBe,fast_forward:ZBe,next_track_button:JBe,play_or_pause_button:e5e,arrow_backward:t5e,rewind:n5e,previous_track_button:s5e,arrow_up_small:i5e,arrow_double_up:r5e,arrow_down_small:o5e,arrow_double_down:a5e,pause_button:l5e,stop_button:c5e,record_button:d5e,eject_button:u5e,cinema:p5e,low_brightness:_5e,high_brightness:h5e,signal_strength:f5e,vibration_mode:m5e,mobile_phone_off:g5e,female_sign:b5e,male_sign:E5e,transgender_symbol:y5e,heavy_multiplication_x:v5e,heavy_plus_sign:S5e,heavy_minus_sign:T5e,heavy_division_sign:x5e,infinity:C5e,bangbang:w5e,interrobang:R5e,question:A5e,grey_question:N5e,grey_exclamation:O5e,exclamation:M5e,heavy_exclamation_mark:I5e,wavy_dash:k5e,currency_exchange:D5e,heavy_dollar_sign:L5e,medical_symbol:P5e,recycle:U5e,fleur_de_lis:F5e,trident:B5e,name_badge:G5e,beginner:V5e,o:z5e,white_check_mark:H5e,ballot_box_with_check:q5e,heavy_check_mark:$5e,x:Y5e,negative_squared_cross_mark:W5e,curly_loop:K5e,loop:j5e,part_alternation_mark:Q5e,eight_spoked_asterisk:X5e,eight_pointed_black_star:Z5e,sparkle:J5e,copyright:e6e,registered:t6e,tm:n6e,hash:s6e,asterisk:i6e,zero:r6e,one:o6e,two:a6e,three:l6e,four:c6e,five:d6e,six:u6e,seven:p6e,eight:_6e,nine:h6e,keycap_ten:f6e,capital_abcd:m6e,abcd:g6e,symbols:b6e,abc:E6e,a:y6e,ab:v6e,b:S6e,cl:T6e,cool:x6e,free:C6e,information_source:w6e,id:R6e,m:A6e,new:"🆕",ng:N6e,o2:O6e,ok:M6e,parking:I6e,sos:k6e,up:D6e,vs:L6e,koko:P6e,sa:U6e,ideograph_advantage:F6e,accept:B6e,congratulations:G6e,secret:V6e,u6e80:z6e,red_circle:H6e,orange_circle:q6e,yellow_circle:$6e,green_circle:Y6e,large_blue_circle:W6e,purple_circle:K6e,brown_circle:j6e,black_circle:Q6e,white_circle:X6e,red_square:Z6e,orange_square:J6e,yellow_square:eGe,green_square:tGe,blue_square:nGe,purple_square:sGe,brown_square:iGe,black_large_square:rGe,white_large_square:oGe,black_medium_square:aGe,white_medium_square:lGe,black_medium_small_square:cGe,white_medium_small_square:dGe,black_small_square:uGe,white_small_square:pGe,large_orange_diamond:_Ge,large_blue_diamond:hGe,small_orange_diamond:fGe,small_blue_diamond:mGe,small_red_triangle:gGe,small_red_triangle_down:bGe,diamond_shape_with_a_dot_inside:EGe,radio_button:yGe,white_square_button:vGe,black_square_button:SGe,checkered_flag:TGe,triangular_flag_on_post:xGe,crossed_flags:CGe,black_flag:wGe,white_flag:RGe,rainbow_flag:AGe,transgender_flag:NGe,pirate_flag:OGe,ascension_island:MGe,andorra:IGe,united_arab_emirates:kGe,afghanistan:DGe,antigua_barbuda:LGe,anguilla:PGe,albania:UGe,armenia:FGe,angola:BGe,antarctica:GGe,argentina:VGe,american_samoa:zGe,austria:HGe,australia:qGe,aruba:$Ge,aland_islands:YGe,azerbaijan:WGe,bosnia_herzegovina:KGe,barbados:jGe,bangladesh:QGe,belgium:XGe,burkina_faso:ZGe,bulgaria:JGe,bahrain:e8e,burundi:t8e,benin:n8e,st_barthelemy:s8e,bermuda:i8e,brunei:r8e,bolivia:o8e,caribbean_netherlands:a8e,brazil:l8e,bahamas:c8e,bhutan:d8e,bouvet_island:u8e,botswana:p8e,belarus:_8e,belize:h8e,canada:f8e,cocos_islands:m8e,congo_kinshasa:g8e,central_african_republic:b8e,congo_brazzaville:E8e,switzerland:y8e,cote_divoire:v8e,cook_islands:S8e,chile:T8e,cameroon:x8e,cn:C8e,colombia:w8e,clipperton_island:R8e,costa_rica:A8e,cuba:N8e,cape_verde:O8e,curacao:M8e,christmas_island:I8e,cyprus:k8e,czech_republic:D8e,de:L8e,diego_garcia:P8e,djibouti:U8e,denmark:F8e,dominica:B8e,dominican_republic:G8e,algeria:V8e,ceuta_melilla:z8e,ecuador:H8e,estonia:q8e,egypt:$8e,western_sahara:Y8e,eritrea:W8e,es:K8e,ethiopia:j8e,eu:Q8e,european_union:X8e,finland:Z8e,fiji:J8e,falkland_islands:e9e,micronesia:t9e,faroe_islands:n9e,fr:s9e,gabon:i9e,gb:r9e,uk:o9e,grenada:a9e,georgia:l9e,french_guiana:c9e,guernsey:d9e,ghana:u9e,gibraltar:p9e,greenland:_9e,gambia:h9e,guinea:f9e,guadeloupe:m9e,equatorial_guinea:g9e,greece:b9e,south_georgia_south_sandwich_islands:E9e,guatemala:y9e,guam:v9e,guinea_bissau:S9e,guyana:T9e,hong_kong:x9e,heard_mcdonald_islands:C9e,honduras:w9e,croatia:R9e,haiti:A9e,hungary:N9e,canary_islands:O9e,indonesia:M9e,ireland:I9e,israel:k9e,isle_of_man:D9e,india:L9e,british_indian_ocean_territory:P9e,iraq:U9e,iran:F9e,iceland:B9e,it:G9e,jersey:V9e,jamaica:z9e,jordan:H9e,jp:q9e,kenya:$9e,kyrgyzstan:Y9e,cambodia:W9e,kiribati:K9e,comoros:j9e,st_kitts_nevis:Q9e,north_korea:X9e,kr:Z9e,kuwait:J9e,cayman_islands:eVe,kazakhstan:tVe,laos:nVe,lebanon:sVe,st_lucia:iVe,liechtenstein:rVe,sri_lanka:oVe,liberia:aVe,lesotho:lVe,lithuania:cVe,luxembourg:dVe,latvia:uVe,libya:pVe,morocco:_Ve,monaco:hVe,moldova:fVe,montenegro:mVe,st_martin:gVe,madagascar:bVe,marshall_islands:EVe,macedonia:yVe,mali:vVe,myanmar:SVe,mongolia:TVe,macau:xVe,northern_mariana_islands:CVe,martinique:wVe,mauritania:RVe,montserrat:AVe,malta:NVe,mauritius:OVe,maldives:MVe,malawi:IVe,mexico:kVe,malaysia:DVe,mozambique:LVe,namibia:PVe,new_caledonia:UVe,niger:FVe,norfolk_island:BVe,nigeria:GVe,nicaragua:VVe,netherlands:zVe,norway:HVe,nepal:qVe,nauru:$Ve,niue:YVe,new_zealand:WVe,oman:KVe,panama:jVe,peru:QVe,french_polynesia:XVe,papua_new_guinea:ZVe,philippines:JVe,pakistan:eze,poland:tze,st_pierre_miquelon:nze,pitcairn_islands:sze,puerto_rico:ize,palestinian_territories:rze,portugal:oze,palau:aze,paraguay:lze,qatar:cze,reunion:dze,romania:uze,serbia:pze,ru:_ze,rwanda:hze,saudi_arabia:fze,solomon_islands:mze,seychelles:gze,sudan:bze,sweden:Eze,singapore:yze,st_helena:vze,slovenia:Sze,svalbard_jan_mayen:Tze,slovakia:xze,sierra_leone:Cze,san_marino:wze,senegal:Rze,somalia:Aze,suriname:Nze,south_sudan:Oze,sao_tome_principe:Mze,el_salvador:Ize,sint_maarten:kze,syria:Dze,swaziland:Lze,tristan_da_cunha:Pze,turks_caicos_islands:Uze,chad:Fze,french_southern_territories:Bze,togo:Gze,thailand:Vze,tajikistan:zze,tokelau:Hze,timor_leste:qze,turkmenistan:$ze,tunisia:Yze,tonga:Wze,tr:Kze,trinidad_tobago:jze,tuvalu:Qze,taiwan:Xze,tanzania:Zze,ukraine:Jze,uganda:eHe,us_outlying_islands:tHe,united_nations:nHe,us:sHe,uruguay:iHe,uzbekistan:rHe,vatican_city:oHe,st_vincent_grenadines:aHe,venezuela:lHe,british_virgin_islands:cHe,us_virgin_islands:dHe,vietnam:uHe,vanuatu:pHe,wallis_futuna:_He,samoa:hHe,kosovo:fHe,yemen:mHe,mayotte:gHe,south_africa:bHe,zambia:EHe,zimbabwe:yHe,england:vHe,scotland:SHe,wales:THe};var CHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(y[E-1])||E+b.length_&&(m=new f("text","",0),m.content=u.slice(_,E),g.push(m)),m=new f("emoji","",0),m.markup=v,m.content=n[v],g.push(m),_=E+b.length}),_=0;f--)b=g[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&i.test(b.content)&&(E[m].children=g=o(g,f,d(b.content,b.level,h.Token)))}};function AHe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var NHe=function(e){var n=e.defs,s;e.enabled.length&&(n=Object.keys(n).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=n[d]),c},{})),s=Object.keys(e.shortcuts).reduce(function(c,d){return n[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var i=Object.keys(n),r;i.length===0?r="^$":r=i.map(function(c){return":"+c+":"}).concat(Object.keys(s)).sort().reverse().map(function(c){return AHe(c)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:n,shortcuts:s,scanRE:o,replaceRE:a}},OHe=wHe,MHe=RHe,IHe=NHe,kHe=function(e,n){var s={defs:{},shortcuts:{},enabled:[]},i=IHe(e.utils.assign({},s,n||{}));e.renderer.rules.emoji=OHe,e.core.ruler.after("linkify","emoji",MHe(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},DHe=xHe,LHe=CHe,PHe=kHe,UHe=function(e,n){var s={defs:DHe,shortcuts:LHe,enabled:[]},i=e.utils.assign({},s,n||{});PHe(e,i)};const FHe=gr(UHe);var bS=!1,ia={false:"push",true:"unshift",after:"push",before:"unshift"},qd={isPermalinkSymbol:!0};function Pg(t,e,n,s){var i;if(!bS){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),bS=!0}var o=[Object.assign(new n.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(t,n)]],Object.entries(e.permalinkAttrs(t,n)))}),Object.assign(new n.Token("html_block","",0),{content:e.permalinkSymbol,meta:qd}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[s+1].children[ia[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(i=n.tokens[s+1].children)[ia[e.permalinkBefore]].apply(i,o)}function i2(t){return"#"+t}function r2(t){return{}}var BHe={class:"header-anchor",symbol:"#",renderHref:i2,renderAttrs:r2};function tc(t){function e(n){return n=Object.assign({},e.defaults,n),function(s,i,r,o){return t(s,n,i,r,o)}}return e.defaults=Object.assign({},BHe),e.renderPermalinkImpl=t,e}var qu=tc(function(t,e,n,s,i){var r,o=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:qd}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[i+1].children[ia[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=s.tokens[i+1].children)[ia[e.placement]].apply(r,o)});Object.assign(qu.defaults,{space:!0,placement:"after",ariaHidden:!1});var Mr=tc(qu.renderPermalinkImpl);Mr.defaults=Object.assign({},qu.defaults,{ariaHidden:!0});var o2=tc(function(t,e,n,s,i){var r=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],Object.entries(e.renderAttrs(t,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[i+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[i+1]=Object.assign(new s.Token("inline","",0),{children:r})});Object.assign(o2.defaults,{safariReaderFix:!1});var ES=tc(function(t,e,n,s,i){var r;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[i+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(t,s)]),c.push.apply(c,Object.entries(e.renderAttrs(t,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[ia[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[ia[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:qd}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:qd}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,t]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:c})].concat(a,[new s.Token("link_close","a",-1)]);(r=s.tokens).splice.apply(r,[i+3,0].concat(u)),e.wrapper&&(s.tokens.splice(i,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` +`,o.map=[n,e.line],!0},Gme=function(e,n,s,i){var r,o,a,c,d,u,h,f=!1,m=e.bMarks[n]+e.tShift[n],_=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>_||(r=e.src.charCodeAt(m),r!==126&&r!==96)||(d=m,m=e.skipChars(m,r),o=m-d,o<3)||(h=e.src.slice(d,m),a=e.src.slice(m,_),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=s||(m=d=e.bMarks[c]+e.tShift[c],_=e.eMarks[c],m<_&&e.sCount[c]=4)&&(m=e.skipChars(m,r),!(m-d=4||e.src.charCodeAt(O)!==62)return!1;if(i)return!0;for(_=[],g=[],y=[],v=[],C=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",f=n;f=B));f++){if(e.src.charCodeAt(O++)===62&&!I){for(c=e.sCount[f]+1,e.src.charCodeAt(O)===32?(O++,c++,r=!1,S=!0):e.src.charCodeAt(O)===9?(S=!0,(e.bsCount[f]+c)%4===3?(O++,c++,r=!1):r=!0):S=!1,m=c,_.push(e.bMarks[f]),e.bMarks[f]=O;O=B,g.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(S?1:0),y.push(e.sCount[f]),e.sCount[f]=m-c,v.push(e.tShift[f]),e.tShift[f]=O-e.bMarks[f];continue}if(u)break;for(R=!1,a=0,d=C.length;a",A.map=h=[n,0],e.md.block.tokenize(e,n,f),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=x,e.parentType=E,h[1]=e.line,a=0;a=4||(r=e.src.charCodeAt(d++),r!==42&&r!==45&&r!==95))return!1;for(o=1;d=r||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=r)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-s>=10)return-1;continue}if(n===41||n===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]=e.blkIndent&&(U=!0),(O=nS(e,q))>=0){if(h=!0,H=e.bMarks[q]+e.tShift[q],E=Number(e.src.slice(H,O-1)),U&&E!==1)return!1}else if((O=tS(e,q))>=0)h=!1;else return!1;if(U&&e.skipSpaces(O)>=e.eMarks[q])return!1;if(i)return!0;for(b=e.src.charCodeAt(O-1),g=e.tokens.length,h?($=e.push("ordered_list_open","ol",1),E!==1&&($.attrs=[["start",E]])):$=e.push("bullet_list_open","ul",1),$.map=_=[q,0],$.markup=String.fromCharCode(b),B=!1,k=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q=y?d=1:d=v-u,d>4&&(d=1),c=u+d,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(b),$.map=f=[q,0],h&&($.info=e.src.slice(H,O-1)),I=e.tight,A=e.tShift[q],C=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]=v,o>=y&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,s):e.md.block.tokenize(e,q,s,!0),(!e.tight||B)&&(W=!1),B=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=C,e.tight=I,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(b),q=e.line,f[1]=q,q>=s||e.sCount[q]=4)break;for(te=!1,a=0,m=k.length;a=4||e.src.charCodeAt(C)!==91)return!1;for(;++C3)&&!(e.sCount[I]<0)){for(y=!1,u=0,h=v.length;u"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:S,href:d}),e.parentType=_,e.line=n+R+1),!0)},jme=["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"],Fu={},Qme="[a-zA-Z_:][a-zA-Z0-9:._-]*",Xme="[^\"'=<>`\\x00-\\x20]+",Zme="'[^']*'",Jme='"[^"]*"',ege="(?:"+Xme+"|"+Zme+"|"+Jme+")",tge="(?:\\s+"+Qme+"(?:\\s*=\\s*"+ege+")?)",qA="<[A-Za-z][A-Za-z0-9\\-]*"+tge+"*\\s*\\/?>",$A="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",nge="|",sge="<[?][\\s\\S]*?[?]>",ige="]*>",rge="",oge=new RegExp("^(?:"+qA+"|"+$A+"|"+nge+"|"+sge+"|"+ige+"|"+rge+")"),age=new RegExp("^(?:"+qA+"|"+$A+")");Fu.HTML_TAG_RE=oge;Fu.HTML_OPEN_CLOSE_TAG_RE=age;var lge=jme,cge=Fu.HTML_OPEN_CLOSE_TAG_RE,mo=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(cge.source+"\\s*$"),/^$/,!1]],dge=function(e,n,s,i){var r,o,a,c,d=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),r=0;r=4||(r=e.src.charCodeAt(d),r!==35||d>=u))return!1;for(o=1,r=e.src.charCodeAt(++d);r===35&&d6||dd&&sS(e.src.charCodeAt(a-1))&&(u=a),e.line=n+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},pge=function(e,n,s){var i,r,o,a,c,d,u,h,f,m=n+1,_,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(_=e.parentType,e.parentType="paragraph";m3)){if(e.sCount[m]>=e.blkIndent&&(d=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],d=u)))){h=f===61?1:2;break}if(!(e.sCount[m]<0)){for(r=!1,o=0,a=g.length;o3)&&!(e.sCount[u]<0)){for(r=!1,o=0,a=h.length;o0&&this.level++,this.tokens.push(s),s};ui.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ui.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;en;)if(!Bu(this.src.charCodeAt(--e)))return e+1;return e};ui.prototype.skipChars=function(e,n){for(var s=this.src.length;es;)if(n!==this.src.charCodeAt(--e))return e+1;return e};ui.prototype.getLines=function(e,n,s,i){var r,o,a,c,d,u,h,f=e;if(e>=n)return"";for(u=new Array(n-e),r=0;fs?u[r]=new Array(o-s+1).join(" ")+this.src.slice(c,d):u[r]=this.src.slice(c,d)}return u.join("")};ui.prototype.Token=YA;var hge=ui,fge=Zb,xc=[["table",Fme,["paragraph","reference"]],["code",Bme],["fence",Gme,["paragraph","reference","blockquote","list"]],["blockquote",zme,["paragraph","reference","blockquote","list"]],["hr",qme,["paragraph","reference","blockquote","list"]],["list",Yme,["paragraph","reference","blockquote"]],["reference",Kme],["html_block",dge,["paragraph","reference","blockquote"]],["heading",uge,["paragraph","reference","blockquote"]],["lheading",pge],["paragraph",_ge]];function Gu(){this.ruler=new fge;for(var t=0;t=n||t.sCount[c]=u){t.line=n;break}for(r=t.line,i=0;i=t.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),c=t.line,c0||(s=e.pos,i=e.posMax,s+3>i)||e.src.charCodeAt(s)!==58||e.src.charCodeAt(s+1)!==47||e.src.charCodeAt(s+2)!==47||(r=e.pending.match(Ege),!r)||(o=r[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:(n||(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)},vge=Pt.isSpace,Sge=function(e,n){var s,i,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(s=e.pending.length-1,i=e.posMax,!n)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){for(r=s-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),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(t){tE[t.charCodeAt(0)]=1});var xge=function(e,n){var s,i,r,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(n||e.push("hardbreak","br",0),c++;c=55296&&s<=56319&&c+1=56320&&i<=57343&&(o+=e.src[c+1],c++)),r="\\"+o,n||(a=e.push("text_special","",0),s<256&&tE[s]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=c+1,!0},Cge=function(e,n){var s,i,r,o,a,c,d,u,h=e.pos,f=e.src.charCodeAt(h);if(f!==96)return!1;for(s=h,h++,i=e.posMax;h=0;n--)s=e[n],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(i=e[s.end],a=n>0&&e[n-1].end===s.end+1&&e[n-1].marker===s.marker&&e[n-1].token===s.token-1&&e[s.end+1].token===i.token+1,o=String.fromCharCode(s.marker),r=t.tokens[s.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=t.tokens[i.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(t.tokens[e[n-1].token].content="",t.tokens[e[s.end+1].token].content="",n--))}zu.postProcess=function(e){var n,s=e.tokens_meta,i=e.tokens_meta.length;for(oS(e,e.delimiters),n=0;n=g)return!1;if(b=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(f=e.md.normalizeLink(d.str),e.md.validateLink(f)?c=d.pos:f="",b=c;c=g||e.src.charCodeAt(c)!==41)&&(E=!0),c++}if(E){if(typeof e.env.references>"u")return!1;if(c=0?r=e.src.slice(b,c++):c=o+1):c=o+1,r||(r=e.src.slice(a,o)),u=e.env.references[wge(r)],!u)return e.pos=_,!1;f=u.href,m=u.title}return n||(e.pos=a,e.posMax=o,h=e.push("link_open","a",1),h.attrs=s=[["href",f]],m&&s.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=c,e.posMax=g,!0},Age=Pt.normalizeReference,Bp=Pt.isSpace,Nge=function(e,n){var s,i,r,o,a,c,d,u,h,f,m,_,g,b="",E=e.pos,y=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=y)return!1;for(g=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok&&(b=e.md.normalizeLink(h.str),e.md.validateLink(b)?d=h.pos:b=""),g=d;d=y||e.src.charCodeAt(d)!==41)return e.pos=E,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d=0?o=e.src.slice(g,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[Age(o)],!u)return e.pos=E,!1;b=u.href,f=u.title}return n||(r=e.src.slice(c,a),e.md.inline.parse(r,e.md,e.env,_=[]),m=e.push("image","img",0),m.attrs=s=[["src",b],["alt",""]],m.children=_,m.content=r,f&&s.push(["title",f])),e.pos=d,e.posMax=y,!0},Oge=/^([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])?)*)$/,Mge=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ige=function(e,n){var s,i,r,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),Mge.test(s)?(i=e.md.normalizeLink(s),e.md.validateLink(i)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):Oge.test(s)?(i=e.md.normalizeLink("mailto:"+s),e.md.validateLink(i)?(n||(r=e.push("link_open","a",1),r.attrs=[["href",i]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(s),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=s.length+2,!0):!1):!1},kge=Fu.HTML_TAG_RE;function Dge(t){return/^\s]/i.test(t)}function Lge(t){return/^<\/a\s*>/i.test(t)}function Pge(t){var e=t|32;return e>=97&&e<=122}var Uge=function(e,n){var s,i,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(s=e.src.charCodeAt(a+1),s!==33&&s!==63&&s!==47&&!Pge(s))||(i=e.src.slice(a).match(kge),!i)?!1:(n||(o=e.push("html_inline","",0),o.content=i[0],Dge(o.content)&&e.linkLevel++,Lge(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},aS=UA,Fge=Pt.has,Bge=Pt.isValidEntityCode,lS=Pt.fromCodePoint,Gge=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Vge=/^&([a-z][a-z0-9]{1,31});/i,zge=function(e,n){var s,i,r,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(r=e.src.slice(a).match(Gge),r)return n||(i=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=Bge(i)?lS(i):lS(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Vge),r&&Fge(aS,r[1]))return n||(o=e.push("text_special","",0),o.content=aS[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function cS(t){var e,n,s,i,r,o,a,c,d={},u=t.length;if(u){var h=0,f=-2,m=[];for(e=0;er;n-=m[n]+1)if(i=t[n],i.marker===s.marker&&i.open&&i.end<0&&(a=!1,(i.close||s.open)&&(i.length+s.length)%3===0&&(i.length%3!==0||s.length%3!==0)&&(a=!0),!a)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,s.open=!1,i.end=e,i.close=!1,o=-1,f=-2;break}o!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}var Hge=function(e){var n,s=e.tokens_meta,i=e.tokens_meta.length;for(cS(e.delimiters),n=0;n0&&i++,r[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(i),s};Jl.prototype.scanDelims=function(t,e){var n=t,s,i,r,o,a,c,d,u,h,f=!0,m=!0,_=this.posMax,g=this.src.charCodeAt(t);for(s=t>0?this.src.charCodeAt(t-1):32;n<_&&this.src.charCodeAt(n)===g;)n++;return r=n-t,i=n<_?this.src.charCodeAt(n):32,d=pS(s)||uS(String.fromCharCode(s)),h=pS(i)||uS(String.fromCharCode(i)),c=dS(s),u=dS(i),u?f=!1:h&&(c||d||(f=!1)),c?m=!1:d&&(u||h||(m=!1)),e?(o=f,a=m):(o=f&&(!m||d),a=m&&(!f||h)),{can_open:o,can_close:a,length:r}};Jl.prototype.Token=nE;var $ge=Jl,_S=Zb,Gp=[["text",bge],["linkify",yge],["newline",Sge],["escape",xge],["backticks",Cge],["strikethrough",Vu.tokenize],["emphasis",zu.tokenize],["link",Rge],["image",Nge],["autolink",Ige],["html_inline",Uge],["entity",zge]],Vp=[["balance_pairs",Hge],["strikethrough",Vu.postProcess],["emphasis",zu.postProcess],["fragments_join",qge]];function ec(){var t;for(this.ruler=new _S,t=0;t=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,a[s]=t.pos};ec.prototype.tokenize=function(t){for(var e,n,s,i=this.ruler.getRules(""),r=i.length,o=t.posMax,a=t.md.options.maxNesting;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};ec.prototype.parse=function(t,e,n,s){var i,r,o,a=new this.State(t,e,n,s);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,i=0;i|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+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}),zp}function Dg(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(s){t[s]=n[s]})}),t}function Hu(t){return Object.prototype.toString.call(t)}function Kge(t){return Hu(t)==="[object String]"}function jge(t){return Hu(t)==="[object Object]"}function Qge(t){return Hu(t)==="[object RegExp]"}function fS(t){return Hu(t)==="[object Function]"}function Xge(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var WA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Zge(t){return Object.keys(t||{}).reduce(function(e,n){return e||WA.hasOwnProperty(n)},!1)}var Jge={"http:":{validate:function(t,e,n){var s=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(s)?s.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var s=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(s)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:s.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var s=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(s)?s.match(n.re.mailto)[0].length:0}}},ebe="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]",tbe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function nbe(t){t.__index__=-1,t.__text_cache__=""}function sbe(t){return function(e,n){var s=e.slice(n);return t.test(s)?s.match(t)[0].length:0}}function mS(){return function(t,e){e.normalize(t)}}function Hd(t){var e=t.re=Wge()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(ebe),n.push(e.src_xn),e.src_tlds=n.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 i=[];t.__compiled__={};function r(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(t.__schemas__).forEach(function(a){var c=t.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(t.__compiled__[a]=d,jge(c)){Qge(c.validate)?d.validate=sbe(c.validate):fS(c.validate)?d.validate=c.validate:r(a,c),fS(c.normalize)?d.normalize=c.normalize:c.normalize?r(a,c):d.normalize=mS();return}if(Kge(c)){i.push(a);return}r(a,c)}}),i.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:mS()};var o=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Xge).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),nbe(t)}function ibe(t,e){var n=t.__index__,s=t.__last_index__,i=t.__text_cache__.slice(n,s);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=s+e,this.raw=i,this.text=i,this.url=i}function Lg(t,e){var n=new ibe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ts(t,e){if(!(this instanceof ts))return new ts(t,e);e||Zge(t)&&(e=t,t={}),this.__opts__=Dg({},WA,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Dg({},Jge,t),this.__compiled__={},this.__tlds__=tbe,this.__tlds_replaced__=!1,this.re={},Hd(this)}ts.prototype.add=function(e,n){return this.__schemas__[e]=n,Hd(this),this};ts.prototype.set=function(e){return this.__opts__=Dg(this.__opts__,e),this};ts.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,s,i,r,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(r=this.testSchemaAt(e,n[2],c.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ts.prototype.pretest=function(e){return this.re.pretest.test(e)};ts.prototype.testSchemaAt=function(e,n,s){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,s,this):0};ts.prototype.match=function(e){var n=0,s=[];this.__index__>=0&&this.__text_cache__===e&&(s.push(Lg(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)s.push(Lg(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return s.length?s:null};ts.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var s=this.testSchemaAt(e,n[2],n[0].length);return s?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s,Lg(this,0)):null};ts.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(s,i,r){return s!==r[i-1]}).reverse(),Hd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Hd(this),this)};ts.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ts.prototype.onCompile=function(){};var rbe=ts;const Wo=2147483647,ti=36,sE=1,Bl=26,obe=38,abe=700,KA=72,jA=128,QA="-",lbe=/^xn--/,cbe=/[^\0-\x7F]/,dbe=/[\x2E\u3002\uFF0E\uFF61]/g,ube={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Hp=ti-sE,ni=Math.floor,qp=String.fromCharCode;function Ji(t){throw new RangeError(ube[t])}function pbe(t,e){const n=[];let s=t.length;for(;s--;)n[s]=e(t[s]);return n}function XA(t,e){const n=t.split("@");let s="";n.length>1&&(s=n[0]+"@",t=n[1]),t=t.replace(dbe,".");const i=t.split("."),r=pbe(i,e).join(".");return s+r}function iE(t){const e=[];let n=0;const s=t.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...t),_be=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:ti},gS=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},JA=function(t,e,n){let s=0;for(t=n?ni(t/abe):t>>1,t+=ni(t/e);t>Hp*Bl>>1;s+=ti)t=ni(t/Hp);return ni(s+(Hp+1)*t/(t+obe))},rE=function(t){const e=[],n=t.length;let s=0,i=jA,r=KA,o=t.lastIndexOf(QA);o<0&&(o=0);for(let a=0;a=128&&Ji("not-basic"),e.push(t.charCodeAt(a));for(let a=o>0?o+1:0;a=n&&Ji("invalid-input");const f=_be(t.charCodeAt(a++));f>=ti&&Ji("invalid-input"),f>ni((Wo-s)/u)&&Ji("overflow"),s+=f*u;const m=h<=r?sE:h>=r+Bl?Bl:h-r;if(fni(Wo/_)&&Ji("overflow"),u*=_}const d=e.length+1;r=JA(s-c,d,c==0),ni(s/d)>Wo-i&&Ji("overflow"),i+=ni(s/d),s%=d,e.splice(s++,0,i)}return String.fromCodePoint(...e)},oE=function(t){const e=[];t=iE(t);const n=t.length;let s=jA,i=0,r=KA;for(const c of t)c<128&&e.push(qp(c));const o=e.length;let a=o;for(o&&e.push(QA);a=s&&uni((Wo-i)/d)&&Ji("overflow"),i+=(c-s)*d,s=c;for(const u of t)if(uWo&&Ji("overflow"),u===s){let h=i;for(let f=ti;;f+=ti){const m=f<=r?sE:f>=r+Bl?Bl:f-r;if(h=0))try{e.hostname=n2.toASCII(e.hostname)}catch{}return zr.encode(zr.format(e))}function Mbe(t){var e=zr.parse(t,!0);if(e.hostname&&(!e.protocol||s2.indexOf(e.protocol)>=0))try{e.hostname=n2.toUnicode(e.hostname)}catch{}return zr.decode(zr.format(e),zr.decode.defaultChars+"%")}function Es(t,e){if(!(this instanceof Es))return new Es(t,e);e||El.isString(t)||(e=t||{},t="default"),this.inline=new xbe,this.block=new Tbe,this.core=new Sbe,this.renderer=new vbe,this.linkify=new Cbe,this.validateLink=Nbe,this.normalizeLink=Obe,this.normalizeLinkText=Mbe,this.utils=El,this.helpers=El.assign({},ybe),this.options={},this.configure(t),e&&this.set(e)}Es.prototype.set=function(t){return El.assign(this.options,t),this};Es.prototype.configure=function(t){var e=this,n;if(El.isString(t)&&(n=t,t=wbe[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&e[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&e[s].ruler2.enableOnly(t.components[s].rules2)}),this};Es.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var s=t.filter(function(i){return n.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Es.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var s=t.filter(function(i){return n.indexOf(i)<0});if(s.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Es.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Es.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Es.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Es.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Es.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Ibe=Es,kbe=Ibe;const Dbe=gr(kbe),Lbe="😀",Pbe="😃",Ube="😄",Fbe="😁",Bbe="😆",Gbe="😆",Vbe="😅",zbe="🤣",Hbe="😂",qbe="🙂",$be="🙃",Ybe="😉",Wbe="😊",Kbe="😇",jbe="🥰",Qbe="😍",Xbe="🤩",Zbe="😘",Jbe="😗",eEe="☺️",tEe="😚",nEe="😙",sEe="🥲",iEe="😋",rEe="😛",oEe="😜",aEe="🤪",lEe="😝",cEe="🤑",dEe="🤗",uEe="🤭",pEe="🤫",_Ee="🤔",hEe="🤐",fEe="🤨",mEe="😐",gEe="😑",bEe="😶",EEe="😏",yEe="😒",vEe="🙄",SEe="😬",TEe="🤥",xEe="😌",CEe="😔",wEe="😪",REe="🤤",AEe="😴",NEe="😷",OEe="🤒",MEe="🤕",IEe="🤢",kEe="🤮",DEe="🤧",LEe="🥵",PEe="🥶",UEe="🥴",FEe="😵",BEe="🤯",GEe="🤠",VEe="🥳",zEe="🥸",HEe="😎",qEe="🤓",$Ee="🧐",YEe="😕",WEe="😟",KEe="🙁",jEe="☹️",QEe="😮",XEe="😯",ZEe="😲",JEe="😳",eye="🥺",tye="😦",nye="😧",sye="😨",iye="😰",rye="😥",oye="😢",aye="😭",lye="😱",cye="😖",dye="😣",uye="😞",pye="😓",_ye="😩",hye="😫",fye="🥱",mye="😤",gye="😡",bye="😡",Eye="😠",yye="🤬",vye="😈",Sye="👿",Tye="💀",xye="☠️",Cye="💩",wye="💩",Rye="💩",Aye="🤡",Nye="👹",Oye="👺",Mye="👻",Iye="👽",kye="👾",Dye="🤖",Lye="😺",Pye="😸",Uye="😹",Fye="😻",Bye="😼",Gye="😽",Vye="🙀",zye="😿",Hye="😾",qye="🙈",$ye="🙉",Yye="🙊",Wye="💋",Kye="💌",jye="💘",Qye="💝",Xye="💖",Zye="💗",Jye="💓",eve="💞",tve="💕",nve="💟",sve="❣️",ive="💔",rve="❤️",ove="🧡",ave="💛",lve="💚",cve="💙",dve="💜",uve="🤎",pve="🖤",_ve="🤍",hve="💢",fve="💥",mve="💥",gve="💫",bve="💦",Eve="💨",yve="🕳️",vve="💣",Sve="💬",Tve="👁️‍🗨️",xve="🗨️",Cve="🗯️",wve="💭",Rve="💤",Ave="👋",Nve="🤚",Ove="🖐️",Mve="✋",Ive="✋",kve="🖖",Dve="👌",Lve="🤌",Pve="🤏",Uve="✌️",Fve="🤞",Bve="🤟",Gve="🤘",Vve="🤙",zve="👈",Hve="👉",qve="👆",$ve="🖕",Yve="🖕",Wve="👇",Kve="☝️",jve="👍",Qve="👎",Xve="✊",Zve="✊",Jve="👊",eSe="👊",tSe="👊",nSe="🤛",sSe="🤜",iSe="👏",rSe="🙌",oSe="👐",aSe="🤲",lSe="🤝",cSe="🙏",dSe="✍️",uSe="💅",pSe="🤳",_Se="💪",hSe="🦾",fSe="🦿",mSe="🦵",gSe="🦶",bSe="👂",ESe="🦻",ySe="👃",vSe="🧠",SSe="🫀",TSe="🫁",xSe="🦷",CSe="🦴",wSe="👀",RSe="👁️",ASe="👅",NSe="👄",OSe="👶",MSe="🧒",ISe="👦",kSe="👧",DSe="🧑",LSe="👱",PSe="👨",USe="🧔",FSe="👨‍🦰",BSe="👨‍🦱",GSe="👨‍🦳",VSe="👨‍🦲",zSe="👩",HSe="👩‍🦰",qSe="🧑‍🦰",$Se="👩‍🦱",YSe="🧑‍🦱",WSe="👩‍🦳",KSe="🧑‍🦳",jSe="👩‍🦲",QSe="🧑‍🦲",XSe="👱‍♀️",ZSe="👱‍♀️",JSe="👱‍♂️",e0e="🧓",t0e="👴",n0e="👵",s0e="🙍",i0e="🙍‍♂️",r0e="🙍‍♀️",o0e="🙎",a0e="🙎‍♂️",l0e="🙎‍♀️",c0e="🙅",d0e="🙅‍♂️",u0e="🙅‍♂️",p0e="🙅‍♀️",_0e="🙅‍♀️",h0e="🙆",f0e="🙆‍♂️",m0e="🙆‍♀️",g0e="💁",b0e="💁",E0e="💁‍♂️",y0e="💁‍♂️",v0e="💁‍♀️",S0e="💁‍♀️",T0e="🙋",x0e="🙋‍♂️",C0e="🙋‍♀️",w0e="🧏",R0e="🧏‍♂️",A0e="🧏‍♀️",N0e="🙇",O0e="🙇‍♂️",M0e="🙇‍♀️",I0e="🤦",k0e="🤦‍♂️",D0e="🤦‍♀️",L0e="🤷",P0e="🤷‍♂️",U0e="🤷‍♀️",F0e="🧑‍⚕️",B0e="👨‍⚕️",G0e="👩‍⚕️",V0e="🧑‍🎓",z0e="👨‍🎓",H0e="👩‍🎓",q0e="🧑‍🏫",$0e="👨‍🏫",Y0e="👩‍🏫",W0e="🧑‍⚖️",K0e="👨‍⚖️",j0e="👩‍⚖️",Q0e="🧑‍🌾",X0e="👨‍🌾",Z0e="👩‍🌾",J0e="🧑‍🍳",eTe="👨‍🍳",tTe="👩‍🍳",nTe="🧑‍🔧",sTe="👨‍🔧",iTe="👩‍🔧",rTe="🧑‍🏭",oTe="👨‍🏭",aTe="👩‍🏭",lTe="🧑‍💼",cTe="👨‍💼",dTe="👩‍💼",uTe="🧑‍🔬",pTe="👨‍🔬",_Te="👩‍🔬",hTe="🧑‍💻",fTe="👨‍💻",mTe="👩‍💻",gTe="🧑‍🎤",bTe="👨‍🎤",ETe="👩‍🎤",yTe="🧑‍🎨",vTe="👨‍🎨",STe="👩‍🎨",TTe="🧑‍✈️",xTe="👨‍✈️",CTe="👩‍✈️",wTe="🧑‍🚀",RTe="👨‍🚀",ATe="👩‍🚀",NTe="🧑‍🚒",OTe="👨‍🚒",MTe="👩‍🚒",ITe="👮",kTe="👮",DTe="👮‍♂️",LTe="👮‍♀️",PTe="🕵️",UTe="🕵️‍♂️",FTe="🕵️‍♀️",BTe="💂",GTe="💂‍♂️",VTe="💂‍♀️",zTe="🥷",HTe="👷",qTe="👷‍♂️",$Te="👷‍♀️",YTe="🤴",WTe="👸",KTe="👳",jTe="👳‍♂️",QTe="👳‍♀️",XTe="👲",ZTe="🧕",JTe="🤵",exe="🤵‍♂️",txe="🤵‍♀️",nxe="👰",sxe="👰‍♂️",ixe="👰‍♀️",rxe="👰‍♀️",oxe="🤰",axe="🤱",lxe="👩‍🍼",cxe="👨‍🍼",dxe="🧑‍🍼",uxe="👼",pxe="🎅",_xe="🤶",hxe="🧑‍🎄",fxe="🦸",mxe="🦸‍♂️",gxe="🦸‍♀️",bxe="🦹",Exe="🦹‍♂️",yxe="🦹‍♀️",vxe="🧙",Sxe="🧙‍♂️",Txe="🧙‍♀️",xxe="🧚",Cxe="🧚‍♂️",wxe="🧚‍♀️",Rxe="🧛",Axe="🧛‍♂️",Nxe="🧛‍♀️",Oxe="🧜",Mxe="🧜‍♂️",Ixe="🧜‍♀️",kxe="🧝",Dxe="🧝‍♂️",Lxe="🧝‍♀️",Pxe="🧞",Uxe="🧞‍♂️",Fxe="🧞‍♀️",Bxe="🧟",Gxe="🧟‍♂️",Vxe="🧟‍♀️",zxe="💆",Hxe="💆‍♂️",qxe="💆‍♀️",$xe="💇",Yxe="💇‍♂️",Wxe="💇‍♀️",Kxe="🚶",jxe="🚶‍♂️",Qxe="🚶‍♀️",Xxe="🧍",Zxe="🧍‍♂️",Jxe="🧍‍♀️",e1e="🧎",t1e="🧎‍♂️",n1e="🧎‍♀️",s1e="🧑‍🦯",i1e="👨‍🦯",r1e="👩‍🦯",o1e="🧑‍🦼",a1e="👨‍🦼",l1e="👩‍🦼",c1e="🧑‍🦽",d1e="👨‍🦽",u1e="👩‍🦽",p1e="🏃",_1e="🏃",h1e="🏃‍♂️",f1e="🏃‍♀️",m1e="💃",g1e="💃",b1e="🕺",E1e="🕴️",y1e="👯",v1e="👯‍♂️",S1e="👯‍♀️",T1e="🧖",x1e="🧖‍♂️",C1e="🧖‍♀️",w1e="🧗",R1e="🧗‍♂️",A1e="🧗‍♀️",N1e="🤺",O1e="🏇",M1e="⛷️",I1e="🏂",k1e="🏌️",D1e="🏌️‍♂️",L1e="🏌️‍♀️",P1e="🏄",U1e="🏄‍♂️",F1e="🏄‍♀️",B1e="🚣",G1e="🚣‍♂️",V1e="🚣‍♀️",z1e="🏊",H1e="🏊‍♂️",q1e="🏊‍♀️",$1e="⛹️",Y1e="⛹️‍♂️",W1e="⛹️‍♂️",K1e="⛹️‍♀️",j1e="⛹️‍♀️",Q1e="🏋️",X1e="🏋️‍♂️",Z1e="🏋️‍♀️",J1e="🚴",eCe="🚴‍♂️",tCe="🚴‍♀️",nCe="🚵",sCe="🚵‍♂️",iCe="🚵‍♀️",rCe="🤸",oCe="🤸‍♂️",aCe="🤸‍♀️",lCe="🤼",cCe="🤼‍♂️",dCe="🤼‍♀️",uCe="🤽",pCe="🤽‍♂️",_Ce="🤽‍♀️",hCe="🤾",fCe="🤾‍♂️",mCe="🤾‍♀️",gCe="🤹",bCe="🤹‍♂️",ECe="🤹‍♀️",yCe="🧘",vCe="🧘‍♂️",SCe="🧘‍♀️",TCe="🛀",xCe="🛌",CCe="🧑‍🤝‍🧑",wCe="👭",RCe="👫",ACe="👬",NCe="💏",OCe="👩‍❤️‍💋‍👨",MCe="👨‍❤️‍💋‍👨",ICe="👩‍❤️‍💋‍👩",kCe="💑",DCe="👩‍❤️‍👨",LCe="👨‍❤️‍👨",PCe="👩‍❤️‍👩",UCe="👪",FCe="👨‍👩‍👦",BCe="👨‍👩‍👧",GCe="👨‍👩‍👧‍👦",VCe="👨‍👩‍👦‍👦",zCe="👨‍👩‍👧‍👧",HCe="👨‍👨‍👦",qCe="👨‍👨‍👧",$Ce="👨‍👨‍👧‍👦",YCe="👨‍👨‍👦‍👦",WCe="👨‍👨‍👧‍👧",KCe="👩‍👩‍👦",jCe="👩‍👩‍👧",QCe="👩‍👩‍👧‍👦",XCe="👩‍👩‍👦‍👦",ZCe="👩‍👩‍👧‍👧",JCe="👨‍👦",ewe="👨‍👦‍👦",twe="👨‍👧",nwe="👨‍👧‍👦",swe="👨‍👧‍👧",iwe="👩‍👦",rwe="👩‍👦‍👦",owe="👩‍👧",awe="👩‍👧‍👦",lwe="👩‍👧‍👧",cwe="🗣️",dwe="👤",uwe="👥",pwe="🫂",_we="👣",hwe="🐵",fwe="🐒",mwe="🦍",gwe="🦧",bwe="🐶",Ewe="🐕",ywe="🦮",vwe="🐕‍🦺",Swe="🐩",Twe="🐺",xwe="🦊",Cwe="🦝",wwe="🐱",Rwe="🐈",Awe="🐈‍⬛",Nwe="🦁",Owe="🐯",Mwe="🐅",Iwe="🐆",kwe="🐴",Dwe="🐎",Lwe="🦄",Pwe="🦓",Uwe="🦌",Fwe="🦬",Bwe="🐮",Gwe="🐂",Vwe="🐃",zwe="🐄",Hwe="🐷",qwe="🐖",$we="🐗",Ywe="🐽",Wwe="🐏",Kwe="🐑",jwe="🐐",Qwe="🐪",Xwe="🐫",Zwe="🦙",Jwe="🦒",eRe="🐘",tRe="🦣",nRe="🦏",sRe="🦛",iRe="🐭",rRe="🐁",oRe="🐀",aRe="🐹",lRe="🐰",cRe="🐇",dRe="🐿️",uRe="🦫",pRe="🦔",_Re="🦇",hRe="🐻",fRe="🐻‍❄️",mRe="🐨",gRe="🐼",bRe="🦥",ERe="🦦",yRe="🦨",vRe="🦘",SRe="🦡",TRe="🐾",xRe="🐾",CRe="🦃",wRe="🐔",RRe="🐓",ARe="🐣",NRe="🐤",ORe="🐥",MRe="🐦",IRe="🐧",kRe="🕊️",DRe="🦅",LRe="🦆",PRe="🦢",URe="🦉",FRe="🦤",BRe="🪶",GRe="🦩",VRe="🦚",zRe="🦜",HRe="🐸",qRe="🐊",$Re="🐢",YRe="🦎",WRe="🐍",KRe="🐲",jRe="🐉",QRe="🦕",XRe="🐳",ZRe="🐋",JRe="🐬",eAe="🐬",tAe="🦭",nAe="🐟",sAe="🐠",iAe="🐡",rAe="🦈",oAe="🐙",aAe="🐚",lAe="🐌",cAe="🦋",dAe="🐛",uAe="🐜",pAe="🐝",_Ae="🐝",hAe="🪲",fAe="🐞",mAe="🦗",gAe="🪳",bAe="🕷️",EAe="🕸️",yAe="🦂",vAe="🦟",SAe="🪰",TAe="🪱",xAe="🦠",CAe="💐",wAe="🌸",RAe="💮",AAe="🏵️",NAe="🌹",OAe="🥀",MAe="🌺",IAe="🌻",kAe="🌼",DAe="🌷",LAe="🌱",PAe="🪴",UAe="🌲",FAe="🌳",BAe="🌴",GAe="🌵",VAe="🌾",zAe="🌿",HAe="☘️",qAe="🍀",$Ae="🍁",YAe="🍂",WAe="🍃",KAe="🍇",jAe="🍈",QAe="🍉",XAe="🍊",ZAe="🍊",JAe="🍊",e2e="🍋",t2e="🍌",n2e="🍍",s2e="🥭",i2e="🍎",r2e="🍏",o2e="🍐",a2e="🍑",l2e="🍒",c2e="🍓",d2e="🫐",u2e="🥝",p2e="🍅",_2e="🫒",h2e="🥥",f2e="🥑",m2e="🍆",g2e="🥔",b2e="🥕",E2e="🌽",y2e="🌶️",v2e="🫑",S2e="🥒",T2e="🥬",x2e="🥦",C2e="🧄",w2e="🧅",R2e="🍄",A2e="🥜",N2e="🌰",O2e="🍞",M2e="🥐",I2e="🥖",k2e="🫓",D2e="🥨",L2e="🥯",P2e="🥞",U2e="🧇",F2e="🧀",B2e="🍖",G2e="🍗",V2e="🥩",z2e="🥓",H2e="🍔",q2e="🍟",$2e="🍕",Y2e="🌭",W2e="🥪",K2e="🌮",j2e="🌯",Q2e="🫔",X2e="🥙",Z2e="🧆",J2e="🥚",eNe="🍳",tNe="🥘",nNe="🍲",sNe="🫕",iNe="🥣",rNe="🥗",oNe="🍿",aNe="🧈",lNe="🧂",cNe="🥫",dNe="🍱",uNe="🍘",pNe="🍙",_Ne="🍚",hNe="🍛",fNe="🍜",mNe="🍝",gNe="🍠",bNe="🍢",ENe="🍣",yNe="🍤",vNe="🍥",SNe="🥮",TNe="🍡",xNe="🥟",CNe="🥠",wNe="🥡",RNe="🦀",ANe="🦞",NNe="🦐",ONe="🦑",MNe="🦪",INe="🍦",kNe="🍧",DNe="🍨",LNe="🍩",PNe="🍪",UNe="🎂",FNe="🍰",BNe="🧁",GNe="🥧",VNe="🍫",zNe="🍬",HNe="🍭",qNe="🍮",$Ne="🍯",YNe="🍼",WNe="🥛",KNe="☕",jNe="🫖",QNe="🍵",XNe="🍶",ZNe="🍾",JNe="🍷",eOe="🍸",tOe="🍹",nOe="🍺",sOe="🍻",iOe="🥂",rOe="🥃",oOe="🥤",aOe="🧋",lOe="🧃",cOe="🧉",dOe="🧊",uOe="🥢",pOe="🍽️",_Oe="🍴",hOe="🥄",fOe="🔪",mOe="🔪",gOe="🏺",bOe="🌍",EOe="🌎",yOe="🌏",vOe="🌐",SOe="🗺️",TOe="🗾",xOe="🧭",COe="🏔️",wOe="⛰️",ROe="🌋",AOe="🗻",NOe="🏕️",OOe="🏖️",MOe="🏜️",IOe="🏝️",kOe="🏞️",DOe="🏟️",LOe="🏛️",POe="🏗️",UOe="🧱",FOe="🪨",BOe="🪵",GOe="🛖",VOe="🏘️",zOe="🏚️",HOe="🏠",qOe="🏡",$Oe="🏢",YOe="🏣",WOe="🏤",KOe="🏥",jOe="🏦",QOe="🏨",XOe="🏩",ZOe="🏪",JOe="🏫",eMe="🏬",tMe="🏭",nMe="🏯",sMe="🏰",iMe="💒",rMe="🗼",oMe="🗽",aMe="⛪",lMe="🕌",cMe="🛕",dMe="🕍",uMe="⛩️",pMe="🕋",_Me="⛲",hMe="⛺",fMe="🌁",mMe="🌃",gMe="🏙️",bMe="🌄",EMe="🌅",yMe="🌆",vMe="🌇",SMe="🌉",TMe="♨️",xMe="🎠",CMe="🎡",wMe="🎢",RMe="💈",AMe="🎪",NMe="🚂",OMe="🚃",MMe="🚄",IMe="🚅",kMe="🚆",DMe="🚇",LMe="🚈",PMe="🚉",UMe="🚊",FMe="🚝",BMe="🚞",GMe="🚋",VMe="🚌",zMe="🚍",HMe="🚎",qMe="🚐",$Me="🚑",YMe="🚒",WMe="🚓",KMe="🚔",jMe="🚕",QMe="🚖",XMe="🚗",ZMe="🚗",JMe="🚘",eIe="🚙",tIe="🛻",nIe="🚚",sIe="🚛",iIe="🚜",rIe="🏎️",oIe="🏍️",aIe="🛵",lIe="🦽",cIe="🦼",dIe="🛺",uIe="🚲",pIe="🛴",_Ie="🛹",hIe="🛼",fIe="🚏",mIe="🛣️",gIe="🛤️",bIe="🛢️",EIe="⛽",yIe="🚨",vIe="🚥",SIe="🚦",TIe="🛑",xIe="🚧",CIe="⚓",wIe="⛵",RIe="⛵",AIe="🛶",NIe="🚤",OIe="🛳️",MIe="⛴️",IIe="🛥️",kIe="🚢",DIe="✈️",LIe="🛩️",PIe="🛫",UIe="🛬",FIe="🪂",BIe="💺",GIe="🚁",VIe="🚟",zIe="🚠",HIe="🚡",qIe="🛰️",$Ie="🚀",YIe="🛸",WIe="🛎️",KIe="🧳",jIe="⌛",QIe="⏳",XIe="⌚",ZIe="⏰",JIe="⏱️",eke="⏲️",tke="🕰️",nke="🕛",ske="🕧",ike="🕐",rke="🕜",oke="🕑",ake="🕝",lke="🕒",cke="🕞",dke="🕓",uke="🕟",pke="🕔",_ke="🕠",hke="🕕",fke="🕡",mke="🕖",gke="🕢",bke="🕗",Eke="🕣",yke="🕘",vke="🕤",Ske="🕙",Tke="🕥",xke="🕚",Cke="🕦",wke="🌑",Rke="🌒",Ake="🌓",Nke="🌔",Oke="🌔",Mke="🌕",Ike="🌖",kke="🌗",Dke="🌘",Lke="🌙",Pke="🌚",Uke="🌛",Fke="🌜",Bke="🌡️",Gke="☀️",Vke="🌝",zke="🌞",Hke="🪐",qke="⭐",$ke="🌟",Yke="🌠",Wke="🌌",Kke="☁️",jke="⛅",Qke="⛈️",Xke="🌤️",Zke="🌥️",Jke="🌦️",eDe="🌧️",tDe="🌨️",nDe="🌩️",sDe="🌪️",iDe="🌫️",rDe="🌬️",oDe="🌀",aDe="🌈",lDe="🌂",cDe="☂️",dDe="☔",uDe="⛱️",pDe="⚡",_De="❄️",hDe="☃️",fDe="⛄",mDe="☄️",gDe="🔥",bDe="💧",EDe="🌊",yDe="🎃",vDe="🎄",SDe="🎆",TDe="🎇",xDe="🧨",CDe="✨",wDe="🎈",RDe="🎉",ADe="🎊",NDe="🎋",ODe="🎍",MDe="🎎",IDe="🎏",kDe="🎐",DDe="🎑",LDe="🧧",PDe="🎀",UDe="🎁",FDe="🎗️",BDe="🎟️",GDe="🎫",VDe="🎖️",zDe="🏆",HDe="🏅",qDe="⚽",$De="⚾",YDe="🥎",WDe="🏀",KDe="🏐",jDe="🏈",QDe="🏉",XDe="🎾",ZDe="🥏",JDe="🎳",eLe="🏏",tLe="🏑",nLe="🏒",sLe="🥍",iLe="🏓",rLe="🏸",oLe="🥊",aLe="🥋",lLe="🥅",cLe="⛳",dLe="⛸️",uLe="🎣",pLe="🤿",_Le="🎽",hLe="🎿",fLe="🛷",mLe="🥌",gLe="🎯",bLe="🪀",ELe="🪁",yLe="🔮",vLe="🪄",SLe="🧿",TLe="🎮",xLe="🕹️",CLe="🎰",wLe="🎲",RLe="🧩",ALe="🧸",NLe="🪅",OLe="🪆",MLe="♠️",ILe="♥️",kLe="♦️",DLe="♣️",LLe="♟️",PLe="🃏",ULe="🀄",FLe="🎴",BLe="🎭",GLe="🖼️",VLe="🎨",zLe="🧵",HLe="🪡",qLe="🧶",$Le="🪢",YLe="👓",WLe="🕶️",KLe="🥽",jLe="🥼",QLe="🦺",XLe="👔",ZLe="👕",JLe="👕",ePe="👖",tPe="🧣",nPe="🧤",sPe="🧥",iPe="🧦",rPe="👗",oPe="👘",aPe="🥻",lPe="🩱",cPe="🩲",dPe="🩳",uPe="👙",pPe="👚",_Pe="👛",hPe="👜",fPe="👝",mPe="🛍️",gPe="🎒",bPe="🩴",EPe="👞",yPe="👞",vPe="👟",SPe="🥾",TPe="🥿",xPe="👠",CPe="👡",wPe="🩰",RPe="👢",APe="👑",NPe="👒",OPe="🎩",MPe="🎓",IPe="🧢",kPe="🪖",DPe="⛑️",LPe="📿",PPe="💄",UPe="💍",FPe="💎",BPe="🔇",GPe="🔈",VPe="🔉",zPe="🔊",HPe="📢",qPe="📣",$Pe="📯",YPe="🔔",WPe="🔕",KPe="🎼",jPe="🎵",QPe="🎶",XPe="🎙️",ZPe="🎚️",JPe="🎛️",eUe="🎤",tUe="🎧",nUe="📻",sUe="🎷",iUe="🪗",rUe="🎸",oUe="🎹",aUe="🎺",lUe="🎻",cUe="🪕",dUe="🥁",uUe="🪘",pUe="📱",_Ue="📲",hUe="☎️",fUe="☎️",mUe="📞",gUe="📟",bUe="📠",EUe="🔋",yUe="🔌",vUe="💻",SUe="🖥️",TUe="🖨️",xUe="⌨️",CUe="🖱️",wUe="🖲️",RUe="💽",AUe="💾",NUe="💿",OUe="📀",MUe="🧮",IUe="🎥",kUe="🎞️",DUe="📽️",LUe="🎬",PUe="📺",UUe="📷",FUe="📸",BUe="📹",GUe="📼",VUe="🔍",zUe="🔎",HUe="🕯️",qUe="💡",$Ue="🔦",YUe="🏮",WUe="🏮",KUe="🪔",jUe="📔",QUe="📕",XUe="📖",ZUe="📖",JUe="📗",eFe="📘",tFe="📙",nFe="📚",sFe="📓",iFe="📒",rFe="📃",oFe="📜",aFe="📄",lFe="📰",cFe="🗞️",dFe="📑",uFe="🔖",pFe="🏷️",_Fe="💰",hFe="🪙",fFe="💴",mFe="💵",gFe="💶",bFe="💷",EFe="💸",yFe="💳",vFe="🧾",SFe="💹",TFe="✉️",xFe="📧",CFe="📨",wFe="📩",RFe="📤",AFe="📥",NFe="📫",OFe="📪",MFe="📬",IFe="📭",kFe="📮",DFe="🗳️",LFe="✏️",PFe="✒️",UFe="🖋️",FFe="🖊️",BFe="🖌️",GFe="🖍️",VFe="📝",zFe="📝",HFe="💼",qFe="📁",$Fe="📂",YFe="🗂️",WFe="📅",KFe="📆",jFe="🗒️",QFe="🗓️",XFe="📇",ZFe="📈",JFe="📉",e3e="📊",t3e="📋",n3e="📌",s3e="📍",i3e="📎",r3e="🖇️",o3e="📏",a3e="📐",l3e="✂️",c3e="🗃️",d3e="🗄️",u3e="🗑️",p3e="🔒",_3e="🔓",h3e="🔏",f3e="🔐",m3e="🔑",g3e="🗝️",b3e="🔨",E3e="🪓",y3e="⛏️",v3e="⚒️",S3e="🛠️",T3e="🗡️",x3e="⚔️",C3e="🔫",w3e="🪃",R3e="🏹",A3e="🛡️",N3e="🪚",O3e="🔧",M3e="🪛",I3e="🔩",k3e="⚙️",D3e="🗜️",L3e="⚖️",P3e="🦯",U3e="🔗",F3e="⛓️",B3e="🪝",G3e="🧰",V3e="🧲",z3e="🪜",H3e="⚗️",q3e="🧪",$3e="🧫",Y3e="🧬",W3e="🔬",K3e="🔭",j3e="📡",Q3e="💉",X3e="🩸",Z3e="💊",J3e="🩹",e4e="🩺",t4e="🚪",n4e="🛗",s4e="🪞",i4e="🪟",r4e="🛏️",o4e="🛋️",a4e="🪑",l4e="🚽",c4e="🪠",d4e="🚿",u4e="🛁",p4e="🪤",_4e="🪒",h4e="🧴",f4e="🧷",m4e="🧹",g4e="🧺",b4e="🧻",E4e="🪣",y4e="🧼",v4e="🪥",S4e="🧽",T4e="🧯",x4e="🛒",C4e="🚬",w4e="⚰️",R4e="🪦",A4e="⚱️",N4e="🗿",O4e="🪧",M4e="🏧",I4e="🚮",k4e="🚰",D4e="♿",L4e="🚹",P4e="🚺",U4e="🚻",F4e="🚼",B4e="🚾",G4e="🛂",V4e="🛃",z4e="🛄",H4e="🛅",q4e="⚠️",$4e="🚸",Y4e="⛔",W4e="🚫",K4e="🚳",j4e="🚭",Q4e="🚯",X4e="🚷",Z4e="📵",J4e="🔞",eBe="☢️",tBe="☣️",nBe="⬆️",sBe="↗️",iBe="➡️",rBe="↘️",oBe="⬇️",aBe="↙️",lBe="⬅️",cBe="↖️",dBe="↕️",uBe="↔️",pBe="↩️",_Be="↪️",hBe="⤴️",fBe="⤵️",mBe="🔃",gBe="🔄",bBe="🔙",EBe="🔚",yBe="🔛",vBe="🔜",SBe="🔝",TBe="🛐",xBe="⚛️",CBe="🕉️",wBe="✡️",RBe="☸️",ABe="☯️",NBe="✝️",OBe="☦️",MBe="☪️",IBe="☮️",kBe="🕎",DBe="🔯",LBe="♈",PBe="♉",UBe="♊",FBe="♋",BBe="♌",GBe="♍",VBe="♎",zBe="♏",HBe="♐",qBe="♑",$Be="♒",YBe="♓",WBe="⛎",KBe="🔀",jBe="🔁",QBe="🔂",XBe="▶️",ZBe="⏩",JBe="⏭️",e5e="⏯️",t5e="◀️",n5e="⏪",s5e="⏮️",i5e="🔼",r5e="⏫",o5e="🔽",a5e="⏬",l5e="⏸️",c5e="⏹️",d5e="⏺️",u5e="⏏️",p5e="🎦",_5e="🔅",h5e="🔆",f5e="📶",m5e="📳",g5e="📴",b5e="♀️",E5e="♂️",y5e="⚧️",v5e="✖️",S5e="➕",T5e="➖",x5e="➗",C5e="♾️",w5e="‼️",R5e="⁉️",A5e="❓",N5e="❔",O5e="❕",M5e="❗",I5e="❗",k5e="〰️",D5e="💱",L5e="💲",P5e="⚕️",U5e="♻️",F5e="⚜️",B5e="🔱",G5e="📛",V5e="🔰",z5e="⭕",H5e="✅",q5e="☑️",$5e="✔️",Y5e="❌",W5e="❎",K5e="➰",j5e="➿",Q5e="〽️",X5e="✳️",Z5e="✴️",J5e="❇️",e6e="©️",t6e="®️",n6e="™️",s6e="#️⃣",i6e="*️⃣",r6e="0️⃣",o6e="1️⃣",a6e="2️⃣",l6e="3️⃣",c6e="4️⃣",d6e="5️⃣",u6e="6️⃣",p6e="7️⃣",_6e="8️⃣",h6e="9️⃣",f6e="🔟",m6e="🔠",g6e="🔡",b6e="🔣",E6e="🔤",y6e="🅰️",v6e="🆎",S6e="🅱️",T6e="🆑",x6e="🆒",C6e="🆓",w6e="ℹ️",R6e="🆔",A6e="Ⓜ️",N6e="🆖",O6e="🅾️",M6e="🆗",I6e="🅿️",k6e="🆘",D6e="🆙",L6e="🆚",P6e="🈁",U6e="🈂️",F6e="🉐",B6e="🉑",G6e="㊗️",V6e="㊙️",z6e="🈵",H6e="🔴",q6e="🟠",$6e="🟡",Y6e="🟢",W6e="🔵",K6e="🟣",j6e="🟤",Q6e="⚫",X6e="⚪",Z6e="🟥",J6e="🟧",eGe="🟨",tGe="🟩",nGe="🟦",sGe="🟪",iGe="🟫",rGe="⬛",oGe="⬜",aGe="◼️",lGe="◻️",cGe="◾",dGe="◽",uGe="▪️",pGe="▫️",_Ge="🔶",hGe="🔷",fGe="🔸",mGe="🔹",gGe="🔺",bGe="🔻",EGe="💠",yGe="🔘",vGe="🔳",SGe="🔲",TGe="🏁",xGe="🚩",CGe="🎌",wGe="🏴",RGe="🏳️",AGe="🏳️‍🌈",NGe="🏳️‍⚧️",OGe="🏴‍☠️",MGe="🇦🇨",IGe="🇦🇩",kGe="🇦🇪",DGe="🇦🇫",LGe="🇦🇬",PGe="🇦🇮",UGe="🇦🇱",FGe="🇦🇲",BGe="🇦🇴",GGe="🇦🇶",VGe="🇦🇷",zGe="🇦🇸",HGe="🇦🇹",qGe="🇦🇺",$Ge="🇦🇼",YGe="🇦🇽",WGe="🇦🇿",KGe="🇧🇦",jGe="🇧🇧",QGe="🇧🇩",XGe="🇧🇪",ZGe="🇧🇫",JGe="🇧🇬",e8e="🇧🇭",t8e="🇧🇮",n8e="🇧🇯",s8e="🇧🇱",i8e="🇧🇲",r8e="🇧🇳",o8e="🇧🇴",a8e="🇧🇶",l8e="🇧🇷",c8e="🇧🇸",d8e="🇧🇹",u8e="🇧🇻",p8e="🇧🇼",_8e="🇧🇾",h8e="🇧🇿",f8e="🇨🇦",m8e="🇨🇨",g8e="🇨🇩",b8e="🇨🇫",E8e="🇨🇬",y8e="🇨🇭",v8e="🇨🇮",S8e="🇨🇰",T8e="🇨🇱",x8e="🇨🇲",C8e="🇨🇳",w8e="🇨🇴",R8e="🇨🇵",A8e="🇨🇷",N8e="🇨🇺",O8e="🇨🇻",M8e="🇨🇼",I8e="🇨🇽",k8e="🇨🇾",D8e="🇨🇿",L8e="🇩🇪",P8e="🇩🇬",U8e="🇩🇯",F8e="🇩🇰",B8e="🇩🇲",G8e="🇩🇴",V8e="🇩🇿",z8e="🇪🇦",H8e="🇪🇨",q8e="🇪🇪",$8e="🇪🇬",Y8e="🇪🇭",W8e="🇪🇷",K8e="🇪🇸",j8e="🇪🇹",Q8e="🇪🇺",X8e="🇪🇺",Z8e="🇫🇮",J8e="🇫🇯",e9e="🇫🇰",t9e="🇫🇲",n9e="🇫🇴",s9e="🇫🇷",i9e="🇬🇦",r9e="🇬🇧",o9e="🇬🇧",a9e="🇬🇩",l9e="🇬🇪",c9e="🇬🇫",d9e="🇬🇬",u9e="🇬🇭",p9e="🇬🇮",_9e="🇬🇱",h9e="🇬🇲",f9e="🇬🇳",m9e="🇬🇵",g9e="🇬🇶",b9e="🇬🇷",E9e="🇬🇸",y9e="🇬🇹",v9e="🇬🇺",S9e="🇬🇼",T9e="🇬🇾",x9e="🇭🇰",C9e="🇭🇲",w9e="🇭🇳",R9e="🇭🇷",A9e="🇭🇹",N9e="🇭🇺",O9e="🇮🇨",M9e="🇮🇩",I9e="🇮🇪",k9e="🇮🇱",D9e="🇮🇲",L9e="🇮🇳",P9e="🇮🇴",U9e="🇮🇶",F9e="🇮🇷",B9e="🇮🇸",G9e="🇮🇹",V9e="🇯🇪",z9e="🇯🇲",H9e="🇯🇴",q9e="🇯🇵",$9e="🇰🇪",Y9e="🇰🇬",W9e="🇰🇭",K9e="🇰🇮",j9e="🇰🇲",Q9e="🇰🇳",X9e="🇰🇵",Z9e="🇰🇷",J9e="🇰🇼",eVe="🇰🇾",tVe="🇰🇿",nVe="🇱🇦",sVe="🇱🇧",iVe="🇱🇨",rVe="🇱🇮",oVe="🇱🇰",aVe="🇱🇷",lVe="🇱🇸",cVe="🇱🇹",dVe="🇱🇺",uVe="🇱🇻",pVe="🇱🇾",_Ve="🇲🇦",hVe="🇲🇨",fVe="🇲🇩",mVe="🇲🇪",gVe="🇲🇫",bVe="🇲🇬",EVe="🇲🇭",yVe="🇲🇰",vVe="🇲🇱",SVe="🇲🇲",TVe="🇲🇳",xVe="🇲🇴",CVe="🇲🇵",wVe="🇲🇶",RVe="🇲🇷",AVe="🇲🇸",NVe="🇲🇹",OVe="🇲🇺",MVe="🇲🇻",IVe="🇲🇼",kVe="🇲🇽",DVe="🇲🇾",LVe="🇲🇿",PVe="🇳🇦",UVe="🇳🇨",FVe="🇳🇪",BVe="🇳🇫",GVe="🇳🇬",VVe="🇳🇮",zVe="🇳🇱",HVe="🇳🇴",qVe="🇳🇵",$Ve="🇳🇷",YVe="🇳🇺",WVe="🇳🇿",KVe="🇴🇲",jVe="🇵🇦",QVe="🇵🇪",XVe="🇵🇫",ZVe="🇵🇬",JVe="🇵🇭",eze="🇵🇰",tze="🇵🇱",nze="🇵🇲",sze="🇵🇳",ize="🇵🇷",rze="🇵🇸",oze="🇵🇹",aze="🇵🇼",lze="🇵🇾",cze="🇶🇦",dze="🇷🇪",uze="🇷🇴",pze="🇷🇸",_ze="🇷🇺",hze="🇷🇼",fze="🇸🇦",mze="🇸🇧",gze="🇸🇨",bze="🇸🇩",Eze="🇸🇪",yze="🇸🇬",vze="🇸🇭",Sze="🇸🇮",Tze="🇸🇯",xze="🇸🇰",Cze="🇸🇱",wze="🇸🇲",Rze="🇸🇳",Aze="🇸🇴",Nze="🇸🇷",Oze="🇸🇸",Mze="🇸🇹",Ize="🇸🇻",kze="🇸🇽",Dze="🇸🇾",Lze="🇸🇿",Pze="🇹🇦",Uze="🇹🇨",Fze="🇹🇩",Bze="🇹🇫",Gze="🇹🇬",Vze="🇹🇭",zze="🇹🇯",Hze="🇹🇰",qze="🇹🇱",$ze="🇹🇲",Yze="🇹🇳",Wze="🇹🇴",Kze="🇹🇷",jze="🇹🇹",Qze="🇹🇻",Xze="🇹🇼",Zze="🇹🇿",Jze="🇺🇦",eHe="🇺🇬",tHe="🇺🇲",nHe="🇺🇳",sHe="🇺🇸",iHe="🇺🇾",rHe="🇺🇿",oHe="🇻🇦",aHe="🇻🇨",lHe="🇻🇪",cHe="🇻🇬",dHe="🇻🇮",uHe="🇻🇳",pHe="🇻🇺",_He="🇼🇫",hHe="🇼🇸",fHe="🇽🇰",mHe="🇾🇪",gHe="🇾🇹",bHe="🇿🇦",EHe="🇿🇲",yHe="🇿🇼",vHe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",SHe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",THe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",xHe={100:"💯",1234:"🔢",grinning:Lbe,smiley:Pbe,smile:Ube,grin:Fbe,laughing:Bbe,satisfied:Gbe,sweat_smile:Vbe,rofl:zbe,joy:Hbe,slightly_smiling_face:qbe,upside_down_face:$be,wink:Ybe,blush:Wbe,innocent:Kbe,smiling_face_with_three_hearts:jbe,heart_eyes:Qbe,star_struck:Xbe,kissing_heart:Zbe,kissing:Jbe,relaxed:eEe,kissing_closed_eyes:tEe,kissing_smiling_eyes:nEe,smiling_face_with_tear:sEe,yum:iEe,stuck_out_tongue:rEe,stuck_out_tongue_winking_eye:oEe,zany_face:aEe,stuck_out_tongue_closed_eyes:lEe,money_mouth_face:cEe,hugs:dEe,hand_over_mouth:uEe,shushing_face:pEe,thinking:_Ee,zipper_mouth_face:hEe,raised_eyebrow:fEe,neutral_face:mEe,expressionless:gEe,no_mouth:bEe,smirk:EEe,unamused:yEe,roll_eyes:vEe,grimacing:SEe,lying_face:TEe,relieved:xEe,pensive:CEe,sleepy:wEe,drooling_face:REe,sleeping:AEe,mask:NEe,face_with_thermometer:OEe,face_with_head_bandage:MEe,nauseated_face:IEe,vomiting_face:kEe,sneezing_face:DEe,hot_face:LEe,cold_face:PEe,woozy_face:UEe,dizzy_face:FEe,exploding_head:BEe,cowboy_hat_face:GEe,partying_face:VEe,disguised_face:zEe,sunglasses:HEe,nerd_face:qEe,monocle_face:$Ee,confused:YEe,worried:WEe,slightly_frowning_face:KEe,frowning_face:jEe,open_mouth:QEe,hushed:XEe,astonished:ZEe,flushed:JEe,pleading_face:eye,frowning:tye,anguished:nye,fearful:sye,cold_sweat:iye,disappointed_relieved:rye,cry:oye,sob:aye,scream:lye,confounded:cye,persevere:dye,disappointed:uye,sweat:pye,weary:_ye,tired_face:hye,yawning_face:fye,triumph:mye,rage:gye,pout:bye,angry:Eye,cursing_face:yye,smiling_imp:vye,imp:Sye,skull:Tye,skull_and_crossbones:xye,hankey:Cye,poop:wye,shit:Rye,clown_face:Aye,japanese_ogre:Nye,japanese_goblin:Oye,ghost:Mye,alien:Iye,space_invader:kye,robot:Dye,smiley_cat:Lye,smile_cat:Pye,joy_cat:Uye,heart_eyes_cat:Fye,smirk_cat:Bye,kissing_cat:Gye,scream_cat:Vye,crying_cat_face:zye,pouting_cat:Hye,see_no_evil:qye,hear_no_evil:$ye,speak_no_evil:Yye,kiss:Wye,love_letter:Kye,cupid:jye,gift_heart:Qye,sparkling_heart:Xye,heartpulse:Zye,heartbeat:Jye,revolving_hearts:eve,two_hearts:tve,heart_decoration:nve,heavy_heart_exclamation:sve,broken_heart:ive,heart:rve,orange_heart:ove,yellow_heart:ave,green_heart:lve,blue_heart:cve,purple_heart:dve,brown_heart:uve,black_heart:pve,white_heart:_ve,anger:hve,boom:fve,collision:mve,dizzy:gve,sweat_drops:bve,dash:Eve,hole:yve,bomb:vve,speech_balloon:Sve,eye_speech_bubble:Tve,left_speech_bubble:xve,right_anger_bubble:Cve,thought_balloon:wve,zzz:Rve,wave:Ave,raised_back_of_hand:Nve,raised_hand_with_fingers_splayed:Ove,hand:Mve,raised_hand:Ive,vulcan_salute:kve,ok_hand:Dve,pinched_fingers:Lve,pinching_hand:Pve,v:Uve,crossed_fingers:Fve,love_you_gesture:Bve,metal:Gve,call_me_hand:Vve,point_left:zve,point_right:Hve,point_up_2:qve,middle_finger:$ve,fu:Yve,point_down:Wve,point_up:Kve,"+1":"👍",thumbsup:jve,"-1":"👎",thumbsdown:Qve,fist_raised:Xve,fist:Zve,fist_oncoming:Jve,facepunch:eSe,punch:tSe,fist_left:nSe,fist_right:sSe,clap:iSe,raised_hands:rSe,open_hands:oSe,palms_up_together:aSe,handshake:lSe,pray:cSe,writing_hand:dSe,nail_care:uSe,selfie:pSe,muscle:_Se,mechanical_arm:hSe,mechanical_leg:fSe,leg:mSe,foot:gSe,ear:bSe,ear_with_hearing_aid:ESe,nose:ySe,brain:vSe,anatomical_heart:SSe,lungs:TSe,tooth:xSe,bone:CSe,eyes:wSe,eye:RSe,tongue:ASe,lips:NSe,baby:OSe,child:MSe,boy:ISe,girl:kSe,adult:DSe,blond_haired_person:LSe,man:PSe,bearded_person:USe,red_haired_man:FSe,curly_haired_man:BSe,white_haired_man:GSe,bald_man:VSe,woman:zSe,red_haired_woman:HSe,person_red_hair:qSe,curly_haired_woman:$Se,person_curly_hair:YSe,white_haired_woman:WSe,person_white_hair:KSe,bald_woman:jSe,person_bald:QSe,blond_haired_woman:XSe,blonde_woman:ZSe,blond_haired_man:JSe,older_adult:e0e,older_man:t0e,older_woman:n0e,frowning_person:s0e,frowning_man:i0e,frowning_woman:r0e,pouting_face:o0e,pouting_man:a0e,pouting_woman:l0e,no_good:c0e,no_good_man:d0e,ng_man:u0e,no_good_woman:p0e,ng_woman:_0e,ok_person:h0e,ok_man:f0e,ok_woman:m0e,tipping_hand_person:g0e,information_desk_person:b0e,tipping_hand_man:E0e,sassy_man:y0e,tipping_hand_woman:v0e,sassy_woman:S0e,raising_hand:T0e,raising_hand_man:x0e,raising_hand_woman:C0e,deaf_person:w0e,deaf_man:R0e,deaf_woman:A0e,bow:N0e,bowing_man:O0e,bowing_woman:M0e,facepalm:I0e,man_facepalming:k0e,woman_facepalming:D0e,shrug:L0e,man_shrugging:P0e,woman_shrugging:U0e,health_worker:F0e,man_health_worker:B0e,woman_health_worker:G0e,student:V0e,man_student:z0e,woman_student:H0e,teacher:q0e,man_teacher:$0e,woman_teacher:Y0e,judge:W0e,man_judge:K0e,woman_judge:j0e,farmer:Q0e,man_farmer:X0e,woman_farmer:Z0e,cook:J0e,man_cook:eTe,woman_cook:tTe,mechanic:nTe,man_mechanic:sTe,woman_mechanic:iTe,factory_worker:rTe,man_factory_worker:oTe,woman_factory_worker:aTe,office_worker:lTe,man_office_worker:cTe,woman_office_worker:dTe,scientist:uTe,man_scientist:pTe,woman_scientist:_Te,technologist:hTe,man_technologist:fTe,woman_technologist:mTe,singer:gTe,man_singer:bTe,woman_singer:ETe,artist:yTe,man_artist:vTe,woman_artist:STe,pilot:TTe,man_pilot:xTe,woman_pilot:CTe,astronaut:wTe,man_astronaut:RTe,woman_astronaut:ATe,firefighter:NTe,man_firefighter:OTe,woman_firefighter:MTe,police_officer:ITe,cop:kTe,policeman:DTe,policewoman:LTe,detective:PTe,male_detective:UTe,female_detective:FTe,guard:BTe,guardsman:GTe,guardswoman:VTe,ninja:zTe,construction_worker:HTe,construction_worker_man:qTe,construction_worker_woman:$Te,prince:YTe,princess:WTe,person_with_turban:KTe,man_with_turban:jTe,woman_with_turban:QTe,man_with_gua_pi_mao:XTe,woman_with_headscarf:ZTe,person_in_tuxedo:JTe,man_in_tuxedo:exe,woman_in_tuxedo:txe,person_with_veil:nxe,man_with_veil:sxe,woman_with_veil:ixe,bride_with_veil:rxe,pregnant_woman:oxe,breast_feeding:axe,woman_feeding_baby:lxe,man_feeding_baby:cxe,person_feeding_baby:dxe,angel:uxe,santa:pxe,mrs_claus:_xe,mx_claus:hxe,superhero:fxe,superhero_man:mxe,superhero_woman:gxe,supervillain:bxe,supervillain_man:Exe,supervillain_woman:yxe,mage:vxe,mage_man:Sxe,mage_woman:Txe,fairy:xxe,fairy_man:Cxe,fairy_woman:wxe,vampire:Rxe,vampire_man:Axe,vampire_woman:Nxe,merperson:Oxe,merman:Mxe,mermaid:Ixe,elf:kxe,elf_man:Dxe,elf_woman:Lxe,genie:Pxe,genie_man:Uxe,genie_woman:Fxe,zombie:Bxe,zombie_man:Gxe,zombie_woman:Vxe,massage:zxe,massage_man:Hxe,massage_woman:qxe,haircut:$xe,haircut_man:Yxe,haircut_woman:Wxe,walking:Kxe,walking_man:jxe,walking_woman:Qxe,standing_person:Xxe,standing_man:Zxe,standing_woman:Jxe,kneeling_person:e1e,kneeling_man:t1e,kneeling_woman:n1e,person_with_probing_cane:s1e,man_with_probing_cane:i1e,woman_with_probing_cane:r1e,person_in_motorized_wheelchair:o1e,man_in_motorized_wheelchair:a1e,woman_in_motorized_wheelchair:l1e,person_in_manual_wheelchair:c1e,man_in_manual_wheelchair:d1e,woman_in_manual_wheelchair:u1e,runner:p1e,running:_1e,running_man:h1e,running_woman:f1e,woman_dancing:m1e,dancer:g1e,man_dancing:b1e,business_suit_levitating:E1e,dancers:y1e,dancing_men:v1e,dancing_women:S1e,sauna_person:T1e,sauna_man:x1e,sauna_woman:C1e,climbing:w1e,climbing_man:R1e,climbing_woman:A1e,person_fencing:N1e,horse_racing:O1e,skier:M1e,snowboarder:I1e,golfing:k1e,golfing_man:D1e,golfing_woman:L1e,surfer:P1e,surfing_man:U1e,surfing_woman:F1e,rowboat:B1e,rowing_man:G1e,rowing_woman:V1e,swimmer:z1e,swimming_man:H1e,swimming_woman:q1e,bouncing_ball_person:$1e,bouncing_ball_man:Y1e,basketball_man:W1e,bouncing_ball_woman:K1e,basketball_woman:j1e,weight_lifting:Q1e,weight_lifting_man:X1e,weight_lifting_woman:Z1e,bicyclist:J1e,biking_man:eCe,biking_woman:tCe,mountain_bicyclist:nCe,mountain_biking_man:sCe,mountain_biking_woman:iCe,cartwheeling:rCe,man_cartwheeling:oCe,woman_cartwheeling:aCe,wrestling:lCe,men_wrestling:cCe,women_wrestling:dCe,water_polo:uCe,man_playing_water_polo:pCe,woman_playing_water_polo:_Ce,handball_person:hCe,man_playing_handball:fCe,woman_playing_handball:mCe,juggling_person:gCe,man_juggling:bCe,woman_juggling:ECe,lotus_position:yCe,lotus_position_man:vCe,lotus_position_woman:SCe,bath:TCe,sleeping_bed:xCe,people_holding_hands:CCe,two_women_holding_hands:wCe,couple:RCe,two_men_holding_hands:ACe,couplekiss:NCe,couplekiss_man_woman:OCe,couplekiss_man_man:MCe,couplekiss_woman_woman:ICe,couple_with_heart:kCe,couple_with_heart_woman_man:DCe,couple_with_heart_man_man:LCe,couple_with_heart_woman_woman:PCe,family:UCe,family_man_woman_boy:FCe,family_man_woman_girl:BCe,family_man_woman_girl_boy:GCe,family_man_woman_boy_boy:VCe,family_man_woman_girl_girl:zCe,family_man_man_boy:HCe,family_man_man_girl:qCe,family_man_man_girl_boy:$Ce,family_man_man_boy_boy:YCe,family_man_man_girl_girl:WCe,family_woman_woman_boy:KCe,family_woman_woman_girl:jCe,family_woman_woman_girl_boy:QCe,family_woman_woman_boy_boy:XCe,family_woman_woman_girl_girl:ZCe,family_man_boy:JCe,family_man_boy_boy:ewe,family_man_girl:twe,family_man_girl_boy:nwe,family_man_girl_girl:swe,family_woman_boy:iwe,family_woman_boy_boy:rwe,family_woman_girl:owe,family_woman_girl_boy:awe,family_woman_girl_girl:lwe,speaking_head:cwe,bust_in_silhouette:dwe,busts_in_silhouette:uwe,people_hugging:pwe,footprints:_we,monkey_face:hwe,monkey:fwe,gorilla:mwe,orangutan:gwe,dog:bwe,dog2:Ewe,guide_dog:ywe,service_dog:vwe,poodle:Swe,wolf:Twe,fox_face:xwe,raccoon:Cwe,cat:wwe,cat2:Rwe,black_cat:Awe,lion:Nwe,tiger:Owe,tiger2:Mwe,leopard:Iwe,horse:kwe,racehorse:Dwe,unicorn:Lwe,zebra:Pwe,deer:Uwe,bison:Fwe,cow:Bwe,ox:Gwe,water_buffalo:Vwe,cow2:zwe,pig:Hwe,pig2:qwe,boar:$we,pig_nose:Ywe,ram:Wwe,sheep:Kwe,goat:jwe,dromedary_camel:Qwe,camel:Xwe,llama:Zwe,giraffe:Jwe,elephant:eRe,mammoth:tRe,rhinoceros:nRe,hippopotamus:sRe,mouse:iRe,mouse2:rRe,rat:oRe,hamster:aRe,rabbit:lRe,rabbit2:cRe,chipmunk:dRe,beaver:uRe,hedgehog:pRe,bat:_Re,bear:hRe,polar_bear:fRe,koala:mRe,panda_face:gRe,sloth:bRe,otter:ERe,skunk:yRe,kangaroo:vRe,badger:SRe,feet:TRe,paw_prints:xRe,turkey:CRe,chicken:wRe,rooster:RRe,hatching_chick:ARe,baby_chick:NRe,hatched_chick:ORe,bird:MRe,penguin:IRe,dove:kRe,eagle:DRe,duck:LRe,swan:PRe,owl:URe,dodo:FRe,feather:BRe,flamingo:GRe,peacock:VRe,parrot:zRe,frog:HRe,crocodile:qRe,turtle:$Re,lizard:YRe,snake:WRe,dragon_face:KRe,dragon:jRe,sauropod:QRe,"t-rex":"🦖",whale:XRe,whale2:ZRe,dolphin:JRe,flipper:eAe,seal:tAe,fish:nAe,tropical_fish:sAe,blowfish:iAe,shark:rAe,octopus:oAe,shell:aAe,snail:lAe,butterfly:cAe,bug:dAe,ant:uAe,bee:pAe,honeybee:_Ae,beetle:hAe,lady_beetle:fAe,cricket:mAe,cockroach:gAe,spider:bAe,spider_web:EAe,scorpion:yAe,mosquito:vAe,fly:SAe,worm:TAe,microbe:xAe,bouquet:CAe,cherry_blossom:wAe,white_flower:RAe,rosette:AAe,rose:NAe,wilted_flower:OAe,hibiscus:MAe,sunflower:IAe,blossom:kAe,tulip:DAe,seedling:LAe,potted_plant:PAe,evergreen_tree:UAe,deciduous_tree:FAe,palm_tree:BAe,cactus:GAe,ear_of_rice:VAe,herb:zAe,shamrock:HAe,four_leaf_clover:qAe,maple_leaf:$Ae,fallen_leaf:YAe,leaves:WAe,grapes:KAe,melon:jAe,watermelon:QAe,tangerine:XAe,orange:ZAe,mandarin:JAe,lemon:e2e,banana:t2e,pineapple:n2e,mango:s2e,apple:i2e,green_apple:r2e,pear:o2e,peach:a2e,cherries:l2e,strawberry:c2e,blueberries:d2e,kiwi_fruit:u2e,tomato:p2e,olive:_2e,coconut:h2e,avocado:f2e,eggplant:m2e,potato:g2e,carrot:b2e,corn:E2e,hot_pepper:y2e,bell_pepper:v2e,cucumber:S2e,leafy_green:T2e,broccoli:x2e,garlic:C2e,onion:w2e,mushroom:R2e,peanuts:A2e,chestnut:N2e,bread:O2e,croissant:M2e,baguette_bread:I2e,flatbread:k2e,pretzel:D2e,bagel:L2e,pancakes:P2e,waffle:U2e,cheese:F2e,meat_on_bone:B2e,poultry_leg:G2e,cut_of_meat:V2e,bacon:z2e,hamburger:H2e,fries:q2e,pizza:$2e,hotdog:Y2e,sandwich:W2e,taco:K2e,burrito:j2e,tamale:Q2e,stuffed_flatbread:X2e,falafel:Z2e,egg:J2e,fried_egg:eNe,shallow_pan_of_food:tNe,stew:nNe,fondue:sNe,bowl_with_spoon:iNe,green_salad:rNe,popcorn:oNe,butter:aNe,salt:lNe,canned_food:cNe,bento:dNe,rice_cracker:uNe,rice_ball:pNe,rice:_Ne,curry:hNe,ramen:fNe,spaghetti:mNe,sweet_potato:gNe,oden:bNe,sushi:ENe,fried_shrimp:yNe,fish_cake:vNe,moon_cake:SNe,dango:TNe,dumpling:xNe,fortune_cookie:CNe,takeout_box:wNe,crab:RNe,lobster:ANe,shrimp:NNe,squid:ONe,oyster:MNe,icecream:INe,shaved_ice:kNe,ice_cream:DNe,doughnut:LNe,cookie:PNe,birthday:UNe,cake:FNe,cupcake:BNe,pie:GNe,chocolate_bar:VNe,candy:zNe,lollipop:HNe,custard:qNe,honey_pot:$Ne,baby_bottle:YNe,milk_glass:WNe,coffee:KNe,teapot:jNe,tea:QNe,sake:XNe,champagne:ZNe,wine_glass:JNe,cocktail:eOe,tropical_drink:tOe,beer:nOe,beers:sOe,clinking_glasses:iOe,tumbler_glass:rOe,cup_with_straw:oOe,bubble_tea:aOe,beverage_box:lOe,mate:cOe,ice_cube:dOe,chopsticks:uOe,plate_with_cutlery:pOe,fork_and_knife:_Oe,spoon:hOe,hocho:fOe,knife:mOe,amphora:gOe,earth_africa:bOe,earth_americas:EOe,earth_asia:yOe,globe_with_meridians:vOe,world_map:SOe,japan:TOe,compass:xOe,mountain_snow:COe,mountain:wOe,volcano:ROe,mount_fuji:AOe,camping:NOe,beach_umbrella:OOe,desert:MOe,desert_island:IOe,national_park:kOe,stadium:DOe,classical_building:LOe,building_construction:POe,bricks:UOe,rock:FOe,wood:BOe,hut:GOe,houses:VOe,derelict_house:zOe,house:HOe,house_with_garden:qOe,office:$Oe,post_office:YOe,european_post_office:WOe,hospital:KOe,bank:jOe,hotel:QOe,love_hotel:XOe,convenience_store:ZOe,school:JOe,department_store:eMe,factory:tMe,japanese_castle:nMe,european_castle:sMe,wedding:iMe,tokyo_tower:rMe,statue_of_liberty:oMe,church:aMe,mosque:lMe,hindu_temple:cMe,synagogue:dMe,shinto_shrine:uMe,kaaba:pMe,fountain:_Me,tent:hMe,foggy:fMe,night_with_stars:mMe,cityscape:gMe,sunrise_over_mountains:bMe,sunrise:EMe,city_sunset:yMe,city_sunrise:vMe,bridge_at_night:SMe,hotsprings:TMe,carousel_horse:xMe,ferris_wheel:CMe,roller_coaster:wMe,barber:RMe,circus_tent:AMe,steam_locomotive:NMe,railway_car:OMe,bullettrain_side:MMe,bullettrain_front:IMe,train2:kMe,metro:DMe,light_rail:LMe,station:PMe,tram:UMe,monorail:FMe,mountain_railway:BMe,train:GMe,bus:VMe,oncoming_bus:zMe,trolleybus:HMe,minibus:qMe,ambulance:$Me,fire_engine:YMe,police_car:WMe,oncoming_police_car:KMe,taxi:jMe,oncoming_taxi:QMe,car:XMe,red_car:ZMe,oncoming_automobile:JMe,blue_car:eIe,pickup_truck:tIe,truck:nIe,articulated_lorry:sIe,tractor:iIe,racing_car:rIe,motorcycle:oIe,motor_scooter:aIe,manual_wheelchair:lIe,motorized_wheelchair:cIe,auto_rickshaw:dIe,bike:uIe,kick_scooter:pIe,skateboard:_Ie,roller_skate:hIe,busstop:fIe,motorway:mIe,railway_track:gIe,oil_drum:bIe,fuelpump:EIe,rotating_light:yIe,traffic_light:vIe,vertical_traffic_light:SIe,stop_sign:TIe,construction:xIe,anchor:CIe,boat:wIe,sailboat:RIe,canoe:AIe,speedboat:NIe,passenger_ship:OIe,ferry:MIe,motor_boat:IIe,ship:kIe,airplane:DIe,small_airplane:LIe,flight_departure:PIe,flight_arrival:UIe,parachute:FIe,seat:BIe,helicopter:GIe,suspension_railway:VIe,mountain_cableway:zIe,aerial_tramway:HIe,artificial_satellite:qIe,rocket:$Ie,flying_saucer:YIe,bellhop_bell:WIe,luggage:KIe,hourglass:jIe,hourglass_flowing_sand:QIe,watch:XIe,alarm_clock:ZIe,stopwatch:JIe,timer_clock:eke,mantelpiece_clock:tke,clock12:nke,clock1230:ske,clock1:ike,clock130:rke,clock2:oke,clock230:ake,clock3:lke,clock330:cke,clock4:dke,clock430:uke,clock5:pke,clock530:_ke,clock6:hke,clock630:fke,clock7:mke,clock730:gke,clock8:bke,clock830:Eke,clock9:yke,clock930:vke,clock10:Ske,clock1030:Tke,clock11:xke,clock1130:Cke,new_moon:wke,waxing_crescent_moon:Rke,first_quarter_moon:Ake,moon:Nke,waxing_gibbous_moon:Oke,full_moon:Mke,waning_gibbous_moon:Ike,last_quarter_moon:kke,waning_crescent_moon:Dke,crescent_moon:Lke,new_moon_with_face:Pke,first_quarter_moon_with_face:Uke,last_quarter_moon_with_face:Fke,thermometer:Bke,sunny:Gke,full_moon_with_face:Vke,sun_with_face:zke,ringed_planet:Hke,star:qke,star2:$ke,stars:Yke,milky_way:Wke,cloud:Kke,partly_sunny:jke,cloud_with_lightning_and_rain:Qke,sun_behind_small_cloud:Xke,sun_behind_large_cloud:Zke,sun_behind_rain_cloud:Jke,cloud_with_rain:eDe,cloud_with_snow:tDe,cloud_with_lightning:nDe,tornado:sDe,fog:iDe,wind_face:rDe,cyclone:oDe,rainbow:aDe,closed_umbrella:lDe,open_umbrella:cDe,umbrella:dDe,parasol_on_ground:uDe,zap:pDe,snowflake:_De,snowman_with_snow:hDe,snowman:fDe,comet:mDe,fire:gDe,droplet:bDe,ocean:EDe,jack_o_lantern:yDe,christmas_tree:vDe,fireworks:SDe,sparkler:TDe,firecracker:xDe,sparkles:CDe,balloon:wDe,tada:RDe,confetti_ball:ADe,tanabata_tree:NDe,bamboo:ODe,dolls:MDe,flags:IDe,wind_chime:kDe,rice_scene:DDe,red_envelope:LDe,ribbon:PDe,gift:UDe,reminder_ribbon:FDe,tickets:BDe,ticket:GDe,medal_military:VDe,trophy:zDe,medal_sports:HDe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:qDe,baseball:$De,softball:YDe,basketball:WDe,volleyball:KDe,football:jDe,rugby_football:QDe,tennis:XDe,flying_disc:ZDe,bowling:JDe,cricket_game:eLe,field_hockey:tLe,ice_hockey:nLe,lacrosse:sLe,ping_pong:iLe,badminton:rLe,boxing_glove:oLe,martial_arts_uniform:aLe,goal_net:lLe,golf:cLe,ice_skate:dLe,fishing_pole_and_fish:uLe,diving_mask:pLe,running_shirt_with_sash:_Le,ski:hLe,sled:fLe,curling_stone:mLe,dart:gLe,yo_yo:bLe,kite:ELe,"8ball":"🎱",crystal_ball:yLe,magic_wand:vLe,nazar_amulet:SLe,video_game:TLe,joystick:xLe,slot_machine:CLe,game_die:wLe,jigsaw:RLe,teddy_bear:ALe,pinata:NLe,nesting_dolls:OLe,spades:MLe,hearts:ILe,diamonds:kLe,clubs:DLe,chess_pawn:LLe,black_joker:PLe,mahjong:ULe,flower_playing_cards:FLe,performing_arts:BLe,framed_picture:GLe,art:VLe,thread:zLe,sewing_needle:HLe,yarn:qLe,knot:$Le,eyeglasses:YLe,dark_sunglasses:WLe,goggles:KLe,lab_coat:jLe,safety_vest:QLe,necktie:XLe,shirt:ZLe,tshirt:JLe,jeans:ePe,scarf:tPe,gloves:nPe,coat:sPe,socks:iPe,dress:rPe,kimono:oPe,sari:aPe,one_piece_swimsuit:lPe,swim_brief:cPe,shorts:dPe,bikini:uPe,womans_clothes:pPe,purse:_Pe,handbag:hPe,pouch:fPe,shopping:mPe,school_satchel:gPe,thong_sandal:bPe,mans_shoe:EPe,shoe:yPe,athletic_shoe:vPe,hiking_boot:SPe,flat_shoe:TPe,high_heel:xPe,sandal:CPe,ballet_shoes:wPe,boot:RPe,crown:APe,womans_hat:NPe,tophat:OPe,mortar_board:MPe,billed_cap:IPe,military_helmet:kPe,rescue_worker_helmet:DPe,prayer_beads:LPe,lipstick:PPe,ring:UPe,gem:FPe,mute:BPe,speaker:GPe,sound:VPe,loud_sound:zPe,loudspeaker:HPe,mega:qPe,postal_horn:$Pe,bell:YPe,no_bell:WPe,musical_score:KPe,musical_note:jPe,notes:QPe,studio_microphone:XPe,level_slider:ZPe,control_knobs:JPe,microphone:eUe,headphones:tUe,radio:nUe,saxophone:sUe,accordion:iUe,guitar:rUe,musical_keyboard:oUe,trumpet:aUe,violin:lUe,banjo:cUe,drum:dUe,long_drum:uUe,iphone:pUe,calling:_Ue,phone:hUe,telephone:fUe,telephone_receiver:mUe,pager:gUe,fax:bUe,battery:EUe,electric_plug:yUe,computer:vUe,desktop_computer:SUe,printer:TUe,keyboard:xUe,computer_mouse:CUe,trackball:wUe,minidisc:RUe,floppy_disk:AUe,cd:NUe,dvd:OUe,abacus:MUe,movie_camera:IUe,film_strip:kUe,film_projector:DUe,clapper:LUe,tv:PUe,camera:UUe,camera_flash:FUe,video_camera:BUe,vhs:GUe,mag:VUe,mag_right:zUe,candle:HUe,bulb:qUe,flashlight:$Ue,izakaya_lantern:YUe,lantern:WUe,diya_lamp:KUe,notebook_with_decorative_cover:jUe,closed_book:QUe,book:XUe,open_book:ZUe,green_book:JUe,blue_book:eFe,orange_book:tFe,books:nFe,notebook:sFe,ledger:iFe,page_with_curl:rFe,scroll:oFe,page_facing_up:aFe,newspaper:lFe,newspaper_roll:cFe,bookmark_tabs:dFe,bookmark:uFe,label:pFe,moneybag:_Fe,coin:hFe,yen:fFe,dollar:mFe,euro:gFe,pound:bFe,money_with_wings:EFe,credit_card:yFe,receipt:vFe,chart:SFe,envelope:TFe,email:xFe,"e-mail":"📧",incoming_envelope:CFe,envelope_with_arrow:wFe,outbox_tray:RFe,inbox_tray:AFe,package:"📦",mailbox:NFe,mailbox_closed:OFe,mailbox_with_mail:MFe,mailbox_with_no_mail:IFe,postbox:kFe,ballot_box:DFe,pencil2:LFe,black_nib:PFe,fountain_pen:UFe,pen:FFe,paintbrush:BFe,crayon:GFe,memo:VFe,pencil:zFe,briefcase:HFe,file_folder:qFe,open_file_folder:$Fe,card_index_dividers:YFe,date:WFe,calendar:KFe,spiral_notepad:jFe,spiral_calendar:QFe,card_index:XFe,chart_with_upwards_trend:ZFe,chart_with_downwards_trend:JFe,bar_chart:e3e,clipboard:t3e,pushpin:n3e,round_pushpin:s3e,paperclip:i3e,paperclips:r3e,straight_ruler:o3e,triangular_ruler:a3e,scissors:l3e,card_file_box:c3e,file_cabinet:d3e,wastebasket:u3e,lock:p3e,unlock:_3e,lock_with_ink_pen:h3e,closed_lock_with_key:f3e,key:m3e,old_key:g3e,hammer:b3e,axe:E3e,pick:y3e,hammer_and_pick:v3e,hammer_and_wrench:S3e,dagger:T3e,crossed_swords:x3e,gun:C3e,boomerang:w3e,bow_and_arrow:R3e,shield:A3e,carpentry_saw:N3e,wrench:O3e,screwdriver:M3e,nut_and_bolt:I3e,gear:k3e,clamp:D3e,balance_scale:L3e,probing_cane:P3e,link:U3e,chains:F3e,hook:B3e,toolbox:G3e,magnet:V3e,ladder:z3e,alembic:H3e,test_tube:q3e,petri_dish:$3e,dna:Y3e,microscope:W3e,telescope:K3e,satellite:j3e,syringe:Q3e,drop_of_blood:X3e,pill:Z3e,adhesive_bandage:J3e,stethoscope:e4e,door:t4e,elevator:n4e,mirror:s4e,window:i4e,bed:r4e,couch_and_lamp:o4e,chair:a4e,toilet:l4e,plunger:c4e,shower:d4e,bathtub:u4e,mouse_trap:p4e,razor:_4e,lotion_bottle:h4e,safety_pin:f4e,broom:m4e,basket:g4e,roll_of_paper:b4e,bucket:E4e,soap:y4e,toothbrush:v4e,sponge:S4e,fire_extinguisher:T4e,shopping_cart:x4e,smoking:C4e,coffin:w4e,headstone:R4e,funeral_urn:A4e,moyai:N4e,placard:O4e,atm:M4e,put_litter_in_its_place:I4e,potable_water:k4e,wheelchair:D4e,mens:L4e,womens:P4e,restroom:U4e,baby_symbol:F4e,wc:B4e,passport_control:G4e,customs:V4e,baggage_claim:z4e,left_luggage:H4e,warning:q4e,children_crossing:$4e,no_entry:Y4e,no_entry_sign:W4e,no_bicycles:K4e,no_smoking:j4e,do_not_litter:Q4e,"non-potable_water":"🚱",no_pedestrians:X4e,no_mobile_phones:Z4e,underage:J4e,radioactive:eBe,biohazard:tBe,arrow_up:nBe,arrow_upper_right:sBe,arrow_right:iBe,arrow_lower_right:rBe,arrow_down:oBe,arrow_lower_left:aBe,arrow_left:lBe,arrow_upper_left:cBe,arrow_up_down:dBe,left_right_arrow:uBe,leftwards_arrow_with_hook:pBe,arrow_right_hook:_Be,arrow_heading_up:hBe,arrow_heading_down:fBe,arrows_clockwise:mBe,arrows_counterclockwise:gBe,back:bBe,end:EBe,on:yBe,soon:vBe,top:SBe,place_of_worship:TBe,atom_symbol:xBe,om:CBe,star_of_david:wBe,wheel_of_dharma:RBe,yin_yang:ABe,latin_cross:NBe,orthodox_cross:OBe,star_and_crescent:MBe,peace_symbol:IBe,menorah:kBe,six_pointed_star:DBe,aries:LBe,taurus:PBe,gemini:UBe,cancer:FBe,leo:BBe,virgo:GBe,libra:VBe,scorpius:zBe,sagittarius:HBe,capricorn:qBe,aquarius:$Be,pisces:YBe,ophiuchus:WBe,twisted_rightwards_arrows:KBe,repeat:jBe,repeat_one:QBe,arrow_forward:XBe,fast_forward:ZBe,next_track_button:JBe,play_or_pause_button:e5e,arrow_backward:t5e,rewind:n5e,previous_track_button:s5e,arrow_up_small:i5e,arrow_double_up:r5e,arrow_down_small:o5e,arrow_double_down:a5e,pause_button:l5e,stop_button:c5e,record_button:d5e,eject_button:u5e,cinema:p5e,low_brightness:_5e,high_brightness:h5e,signal_strength:f5e,vibration_mode:m5e,mobile_phone_off:g5e,female_sign:b5e,male_sign:E5e,transgender_symbol:y5e,heavy_multiplication_x:v5e,heavy_plus_sign:S5e,heavy_minus_sign:T5e,heavy_division_sign:x5e,infinity:C5e,bangbang:w5e,interrobang:R5e,question:A5e,grey_question:N5e,grey_exclamation:O5e,exclamation:M5e,heavy_exclamation_mark:I5e,wavy_dash:k5e,currency_exchange:D5e,heavy_dollar_sign:L5e,medical_symbol:P5e,recycle:U5e,fleur_de_lis:F5e,trident:B5e,name_badge:G5e,beginner:V5e,o:z5e,white_check_mark:H5e,ballot_box_with_check:q5e,heavy_check_mark:$5e,x:Y5e,negative_squared_cross_mark:W5e,curly_loop:K5e,loop:j5e,part_alternation_mark:Q5e,eight_spoked_asterisk:X5e,eight_pointed_black_star:Z5e,sparkle:J5e,copyright:e6e,registered:t6e,tm:n6e,hash:s6e,asterisk:i6e,zero:r6e,one:o6e,two:a6e,three:l6e,four:c6e,five:d6e,six:u6e,seven:p6e,eight:_6e,nine:h6e,keycap_ten:f6e,capital_abcd:m6e,abcd:g6e,symbols:b6e,abc:E6e,a:y6e,ab:v6e,b:S6e,cl:T6e,cool:x6e,free:C6e,information_source:w6e,id:R6e,m:A6e,new:"🆕",ng:N6e,o2:O6e,ok:M6e,parking:I6e,sos:k6e,up:D6e,vs:L6e,koko:P6e,sa:U6e,ideograph_advantage:F6e,accept:B6e,congratulations:G6e,secret:V6e,u6e80:z6e,red_circle:H6e,orange_circle:q6e,yellow_circle:$6e,green_circle:Y6e,large_blue_circle:W6e,purple_circle:K6e,brown_circle:j6e,black_circle:Q6e,white_circle:X6e,red_square:Z6e,orange_square:J6e,yellow_square:eGe,green_square:tGe,blue_square:nGe,purple_square:sGe,brown_square:iGe,black_large_square:rGe,white_large_square:oGe,black_medium_square:aGe,white_medium_square:lGe,black_medium_small_square:cGe,white_medium_small_square:dGe,black_small_square:uGe,white_small_square:pGe,large_orange_diamond:_Ge,large_blue_diamond:hGe,small_orange_diamond:fGe,small_blue_diamond:mGe,small_red_triangle:gGe,small_red_triangle_down:bGe,diamond_shape_with_a_dot_inside:EGe,radio_button:yGe,white_square_button:vGe,black_square_button:SGe,checkered_flag:TGe,triangular_flag_on_post:xGe,crossed_flags:CGe,black_flag:wGe,white_flag:RGe,rainbow_flag:AGe,transgender_flag:NGe,pirate_flag:OGe,ascension_island:MGe,andorra:IGe,united_arab_emirates:kGe,afghanistan:DGe,antigua_barbuda:LGe,anguilla:PGe,albania:UGe,armenia:FGe,angola:BGe,antarctica:GGe,argentina:VGe,american_samoa:zGe,austria:HGe,australia:qGe,aruba:$Ge,aland_islands:YGe,azerbaijan:WGe,bosnia_herzegovina:KGe,barbados:jGe,bangladesh:QGe,belgium:XGe,burkina_faso:ZGe,bulgaria:JGe,bahrain:e8e,burundi:t8e,benin:n8e,st_barthelemy:s8e,bermuda:i8e,brunei:r8e,bolivia:o8e,caribbean_netherlands:a8e,brazil:l8e,bahamas:c8e,bhutan:d8e,bouvet_island:u8e,botswana:p8e,belarus:_8e,belize:h8e,canada:f8e,cocos_islands:m8e,congo_kinshasa:g8e,central_african_republic:b8e,congo_brazzaville:E8e,switzerland:y8e,cote_divoire:v8e,cook_islands:S8e,chile:T8e,cameroon:x8e,cn:C8e,colombia:w8e,clipperton_island:R8e,costa_rica:A8e,cuba:N8e,cape_verde:O8e,curacao:M8e,christmas_island:I8e,cyprus:k8e,czech_republic:D8e,de:L8e,diego_garcia:P8e,djibouti:U8e,denmark:F8e,dominica:B8e,dominican_republic:G8e,algeria:V8e,ceuta_melilla:z8e,ecuador:H8e,estonia:q8e,egypt:$8e,western_sahara:Y8e,eritrea:W8e,es:K8e,ethiopia:j8e,eu:Q8e,european_union:X8e,finland:Z8e,fiji:J8e,falkland_islands:e9e,micronesia:t9e,faroe_islands:n9e,fr:s9e,gabon:i9e,gb:r9e,uk:o9e,grenada:a9e,georgia:l9e,french_guiana:c9e,guernsey:d9e,ghana:u9e,gibraltar:p9e,greenland:_9e,gambia:h9e,guinea:f9e,guadeloupe:m9e,equatorial_guinea:g9e,greece:b9e,south_georgia_south_sandwich_islands:E9e,guatemala:y9e,guam:v9e,guinea_bissau:S9e,guyana:T9e,hong_kong:x9e,heard_mcdonald_islands:C9e,honduras:w9e,croatia:R9e,haiti:A9e,hungary:N9e,canary_islands:O9e,indonesia:M9e,ireland:I9e,israel:k9e,isle_of_man:D9e,india:L9e,british_indian_ocean_territory:P9e,iraq:U9e,iran:F9e,iceland:B9e,it:G9e,jersey:V9e,jamaica:z9e,jordan:H9e,jp:q9e,kenya:$9e,kyrgyzstan:Y9e,cambodia:W9e,kiribati:K9e,comoros:j9e,st_kitts_nevis:Q9e,north_korea:X9e,kr:Z9e,kuwait:J9e,cayman_islands:eVe,kazakhstan:tVe,laos:nVe,lebanon:sVe,st_lucia:iVe,liechtenstein:rVe,sri_lanka:oVe,liberia:aVe,lesotho:lVe,lithuania:cVe,luxembourg:dVe,latvia:uVe,libya:pVe,morocco:_Ve,monaco:hVe,moldova:fVe,montenegro:mVe,st_martin:gVe,madagascar:bVe,marshall_islands:EVe,macedonia:yVe,mali:vVe,myanmar:SVe,mongolia:TVe,macau:xVe,northern_mariana_islands:CVe,martinique:wVe,mauritania:RVe,montserrat:AVe,malta:NVe,mauritius:OVe,maldives:MVe,malawi:IVe,mexico:kVe,malaysia:DVe,mozambique:LVe,namibia:PVe,new_caledonia:UVe,niger:FVe,norfolk_island:BVe,nigeria:GVe,nicaragua:VVe,netherlands:zVe,norway:HVe,nepal:qVe,nauru:$Ve,niue:YVe,new_zealand:WVe,oman:KVe,panama:jVe,peru:QVe,french_polynesia:XVe,papua_new_guinea:ZVe,philippines:JVe,pakistan:eze,poland:tze,st_pierre_miquelon:nze,pitcairn_islands:sze,puerto_rico:ize,palestinian_territories:rze,portugal:oze,palau:aze,paraguay:lze,qatar:cze,reunion:dze,romania:uze,serbia:pze,ru:_ze,rwanda:hze,saudi_arabia:fze,solomon_islands:mze,seychelles:gze,sudan:bze,sweden:Eze,singapore:yze,st_helena:vze,slovenia:Sze,svalbard_jan_mayen:Tze,slovakia:xze,sierra_leone:Cze,san_marino:wze,senegal:Rze,somalia:Aze,suriname:Nze,south_sudan:Oze,sao_tome_principe:Mze,el_salvador:Ize,sint_maarten:kze,syria:Dze,swaziland:Lze,tristan_da_cunha:Pze,turks_caicos_islands:Uze,chad:Fze,french_southern_territories:Bze,togo:Gze,thailand:Vze,tajikistan:zze,tokelau:Hze,timor_leste:qze,turkmenistan:$ze,tunisia:Yze,tonga:Wze,tr:Kze,trinidad_tobago:jze,tuvalu:Qze,taiwan:Xze,tanzania:Zze,ukraine:Jze,uganda:eHe,us_outlying_islands:tHe,united_nations:nHe,us:sHe,uruguay:iHe,uzbekistan:rHe,vatican_city:oHe,st_vincent_grenadines:aHe,venezuela:lHe,british_virgin_islands:cHe,us_virgin_islands:dHe,vietnam:uHe,vanuatu:pHe,wallis_futuna:_He,samoa:hHe,kosovo:fHe,yemen:mHe,mayotte:gHe,south_africa:bHe,zambia:EHe,zimbabwe:yHe,england:vHe,scotland:SHe,wales:THe};var CHe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["0&&!c.test(y[E-1])||E+b.length_&&(m=new f("text","",0),m.content=u.slice(_,E),g.push(m)),m=new f("emoji","",0),m.markup=v,m.content=n[v],g.push(m),_=E+b.length}),_=0;f--)b=g[f],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&i.test(b.content)&&(E[m].children=g=o(g,f,d(b.content,b.level,h.Token)))}};function AHe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var NHe=function(e){var n=e.defs,s;e.enabled.length&&(n=Object.keys(n).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=n[d]),c},{})),s=Object.keys(e.shortcuts).reduce(function(c,d){return n[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var i=Object.keys(n),r;i.length===0?r="^$":r=i.map(function(c){return":"+c+":"}).concat(Object.keys(s)).sort().reverse().map(function(c){return AHe(c)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:n,shortcuts:s,scanRE:o,replaceRE:a}},OHe=wHe,MHe=RHe,IHe=NHe,kHe=function(e,n){var s={defs:{},shortcuts:{},enabled:[]},i=IHe(e.utils.assign({},s,n||{}));e.renderer.rules.emoji=OHe,e.core.ruler.after("linkify","emoji",MHe(e,i.defs,i.shortcuts,i.scanRE,i.replaceRE))},DHe=xHe,LHe=CHe,PHe=kHe,UHe=function(e,n){var s={defs:DHe,shortcuts:LHe,enabled:[]},i=e.utils.assign({},s,n||{});PHe(e,i)};const FHe=gr(UHe);var bS=!1,ia={false:"push",true:"unshift",after:"push",before:"unshift"},qd={isPermalinkSymbol:!0};function Pg(t,e,n,s){var i;if(!bS){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),bS=!0}var o=[Object.assign(new n.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(t,n)]],Object.entries(e.permalinkAttrs(t,n)))}),Object.assign(new n.Token("html_block","",0),{content:e.permalinkSymbol,meta:qd}),new n.Token("link_close","a",-1)];e.permalinkSpace&&n.tokens[s+1].children[ia[e.permalinkBefore]](Object.assign(new n.Token("text","",0),{content:" "})),(i=n.tokens[s+1].children)[ia[e.permalinkBefore]].apply(i,o)}function i2(t){return"#"+t}function r2(t){return{}}var BHe={class:"header-anchor",symbol:"#",renderHref:i2,renderAttrs:r2};function tc(t){function e(n){return n=Object.assign({},e.defaults,n),function(s,i,r,o){return t(s,n,i,r,o)}}return e.defaults=Object.assign({},BHe),e.renderPermalinkImpl=t,e}var qu=tc(function(t,e,n,s,i){var r,o=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(t,s)))}),Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:qd}),new s.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";s.tokens[i+1].children[ia[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=s.tokens[i+1].children)[ia[e.placement]].apply(r,o)});Object.assign(qu.defaults,{space:!0,placement:"after",ariaHidden:!1});var Mr=tc(qu.renderPermalinkImpl);Mr.defaults=Object.assign({},qu.defaults,{ariaHidden:!0});var o2=tc(function(t,e,n,s,i){var r=[Object.assign(new s.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(t,s)]],Object.entries(e.renderAttrs(t,s)))})].concat(e.safariReaderFix?[new s.Token("span_open","span",1)]:[],s.tokens[i+1].children,e.safariReaderFix?[new s.Token("span_close","span",-1)]:[],[new s.Token("link_close","a",-1)]);s.tokens[i+1]=Object.assign(new s.Token("inline","",0),{children:r})});Object.assign(o2.defaults,{safariReaderFix:!1});var ES=tc(function(t,e,n,s,i){var r;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[i+1].children.filter(function(h){return h.type==="text"||h.type==="code_inline"}).reduce(function(h,f){return h+f.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(t,s)]),c.push.apply(c,Object.entries(e.renderAttrs(t,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[ia[e.placement]](Object.assign(new s.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[ia[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:qd}),new s.Token("span_close","span",-1))}else a.push(Object.assign(new s.Token("html_inline","",0),{content:e.symbol,meta:qd}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,t]);var u=[Object.assign(new s.Token("link_open","a",1),{attrs:c})].concat(a,[new s.Token("link_close","a",-1)]);(r=s.tokens).splice.apply(r,[i+3,0].concat(u)),e.wrapper&&(s.tokens.splice(i,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[0]+` `})),s.tokens.splice(i+3+u.length+1,0,Object.assign(new s.Token("html_block","",0),{content:e.wrapper[1]+` `})))});function yS(t,e,n,s){var i=t,r=s;if(n&&Object.prototype.hasOwnProperty.call(e,i))throw new Error("User defined `id` attribute `"+t+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,i);)i=t+"-"+r,r+=1;return e[i]=!0,i}function Uo(t,e){e=Object.assign({},Uo.defaults,e),t.core.ruler.push("anchor",function(n){for(var s,i={},r=n.tokens,o=Array.isArray(e.level)?(s=e.level,function(h){return s.includes(h)}):function(h){return function(f){return f>=h}}(e.level),a=0;a0&&!(n&i&&this.__match_alphabets__[i].call(this,s,n,i));i>>=4);if(this.__actions__(s,n,i),i===0)break;n=this.__transitions__[n][i]||0}return!!this.__accept_states__[n]};var GHe=Ui,VHe=GHe,zHe=function(e,n){var s={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};n=e.utils.assign({},s,n||{});function i(u,h){var f=u.bMarks[h]+u.sCount[h],m=u.bMarks[h]+u.blkIndent,_=u.skipSpacesBack(u.eMarks[h],m),g=[],b,E,y=!1,v=!1,S=0;for(b=f;b<_;b++)switch(u.src.charCodeAt(b)){case 92:y=!0;break;case 96:E=u.skipChars(b,96)-1,E>b?(v||(S===0?S=E-b:S===E-b&&(S=0)),b=E):(v||!y&&!S)&&(v=!v),y=!1;break;case 124:!v&&!y&&g.push(b),y=!1;break;default:y=!1;break}return g.length===0||(g[0]>m&&g.unshift(m-1),g[g.length-1]<_-1&&g.push(_)),g}function r(u,h,f){var m={text:null,label:null},_=u.bMarks[f]+u.sCount[f],g=u.eMarks[f],b=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,E=u.src.slice(_,g).match(b);return E?h?!0:(m.text=E[1],!n.autolabel&&!E[2]||(m.label=E[2]||E[1],m.label=m.label.toLowerCase().replace(/\W+/g,"")),m):!1}function o(u,h,f){var m={bounds:null,multiline:null},_=i(u,f),g,b,E;return _.length<2?!1:h?!0:(m.bounds=_,n.multiline&&(g=u.bMarks[f]+u.sCount[f],b=u.eMarks[f]-1,m.multiline=u.src.charCodeAt(b)===92,m.multiline&&(E=u.eMarks[f],u.eMarks[f]=u.skipSpacesBack(b,g),m.bounds=i(u,f),u.eMarks[f]=E)),m)}function a(u,h,f){var m={aligns:[],wraps:[]},_=i(u,f),g=/^:?(-+|=+):?\+?$/,b,E,y;if(u.sCount[f]-u.blkIndent>=4||_.length===0)return!1;for(b=0;b<_.length-1;b++){if(E=u.src.slice(_[b]+1,_[b+1]).trim(),!g.test(E))return!1;switch(m.wraps.push(E.charCodeAt(E.length-1)===43),y=(E.charCodeAt(0)===58)<<4|E.charCodeAt(E.length-1-m.wraps[b])===58,y){case 0:m.aligns.push("");break;case 1:m.aligns.push("right");break;case 16:m.aligns.push("left");break;case 17:m.aligns.push("center");break}}return h?!0:m}function c(u,h,f){return u.isEmpty(f)}function d(u,h,f,m){var _=new VHe,g=16,b=-1,E,y,v,S,R,C,A=[],I,x,O,B,H,te,k,$,q,U;if(h+2>f||(y=new u.Token("table_open","table",1),y.meta={sep:null,cap:null,tr:[]},_.set_highest_alphabet(65536),_.set_initial_state(65792),_.set_accept_states([65552,65553,0]),_.set_match_alphabets({65536:r.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)}),_.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}}),n.headerless&&(_.set_initial_state(69888),_.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new u.Token("tr_placeholder","tr",0),v.meta=Object()),n.multibody||_.update_transition(65552,{65536:0,16:65552}),_.set_actions(function(le,me,Se){switch(Se){case 65536:if(y.meta.cap)break;y.meta.cap=r(u,!1,le),y.meta.cap.map=[le,le+1],y.meta.cap.first=le===h;break;case 4096:y.meta.sep=a(u,!1,le),y.meta.sep.map=[le,le+1],v.meta.grp|=1,g=16;break;case 256:case 16:v=new u.Token("tr_open","tr",1),v.map=[le,le+1],v.meta=o(u,!1,le),v.meta.type=Se,v.meta.grp=g,g=0,y.meta.tr.push(v),n.multiline&&(v.meta.multiline&&b<0?b=y.meta.tr.length-1:!v.meta.multiline&&b>=0&&(E=y.meta.tr[b],E.meta.mbounds=y.meta.tr.slice(b).map(function(de){return de.meta.bounds}),E.map[1]=v.map[1],y.meta.tr=y.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,g=16;break}}),_.execute(h,f)===!1)||!y.meta.tr.length)return!1;if(m)return!0;if(y.meta.tr[y.meta.tr.length-1].meta.grp|=1,y.map=I=[h,0],y.block=!0,y.level=u.level++,u.tokens.push(y),y.meta.cap){E=u.push("caption_open","caption",1),E.map=y.meta.cap.map;var W=[],ne=y.meta.cap.first?"top":"bottom";y.meta.cap.label!==null&&W.push(["id",y.meta.cap.label]),ne!=="top"&&W.push(["style","caption-side: "+ne]),E.attrs=W,E=u.push("inline","",0),E.content=y.meta.cap.text,E.map=y.meta.cap.map,E.children=[],E=u.push("caption_close","caption",-1)}for(te=0;tev.meta.mbounds[$].length-2||(H=[v.meta.mbounds[$][k]+1,v.meta.mbounds[$][k+1]],B.push(u.src.slice.apply(u.src,H).trimRight()));for(U=new u.md.block.State(B.join(` `),u.md,u.env,[]),U.level=v.level+1,u.md.block.tokenize(U,v.map[0],U.lineMax),q=0;qf.match(h))}n.tabindex==!0&&(i.tokens[o-1].attrPush(["tabindex",r]),r++),n.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",s)};const $He=gr(qHe);var br={};br.getAttrs=function(t,e,n){const s=/[^\t\n\f />"'=]/,i=" ",r="=",o=".",a="#",c=[];let d="",u="",h=!0,f=!1;for(let m=e+n.leftDelimiter.length;m=s+1:u.length>=s}let r,o,a,c;const d=s-e.rightDelimiter.length;switch(t){case"start":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,o=r===-1?-1:n.indexOf(e.rightDelimiter,d),c=n.charAt(o+e.rightDelimiter.length),c&&e.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":r=n.lastIndexOf(e.leftDelimiter),o=r===-1?-1:n.indexOf(e.rightDelimiter,r+d),o=o===n.length-e.rightDelimiter.length?o:-1;break;case"only":a=n.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,a=n.slice(n.length-e.rightDelimiter.length),o=a===e.rightDelimiter?n.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${t}, expected 'start', 'end' or 'only'`)}return r!==-1&&o!==-1&&i(n.substring(r,o+e.rightDelimiter.length))}};br.removeDelimiter=function(t,e){const n=Ug(e.leftDelimiter),s=Ug(e.rightDelimiter),i=new RegExp("[ \\n]?"+n+"[^"+n+s+"]+"+s+"$"),r=t.search(i);return r!==-1?t.slice(0,r):t};function Ug(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}br.escapeRegExp=Ug;br.getMatchingOpeningToken=function(t,e){if(t[e].type==="softbreak")return!1;if(t[e].nesting===0)return t[e];const n=t[e].level,s=t[e].type.replace("_close","_open");for(;e>=0;--e)if(t[e].type===s&&t[e].level===n)return t[e];return!1};const YHe=/[&<>"]/,WHe=/[&<>"]/g,KHe={"&":"&","<":"<",">":">",'"':"""};function jHe(t){return KHe[t]}br.escapeHtml=function(t){return YHe.test(t)?t.replace(WHe,jHe):t};const Ct=br;var QHe=t=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ct.escapeRegExp(t.leftDelimiter)+"[^"+Ct.escapeRegExp(t.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ct.hasDelimiters("end",t)}],transform:(n,s)=>{const i=n[s],r=i.info.lastIndexOf(t.leftDelimiter),o=Ct.getAttrs(i.info,r,t);Ct.addAttrs(o,i),i.info=Ct.removeDelimiter(i.info,t)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:Ct.hasDelimiters("start",t)}]}],transform:(n,s,i)=>{const r=n[s].children[i],o=r.content.indexOf(t.rightDelimiter),a=n[s].children[i-1],c=Ct.getAttrs(r.content,0,t);Ct.addAttrs(c,a),r.content.length===o+t.rightDelimiter.length?n[s].children.splice(i,1):r.content=r.content.slice(o+t.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",t)}],transform:(n,s)=>{const i=n[s+2],r=Ct.getMatchingOpeningToken(n,s),o=Ct.getAttrs(i.content,0,t);Ct.addAttrs(o,r),n.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",t)}]}],transform:(n,s,i)=>{const r=n[s].children[i],o=r.content,a=Ct.getAttrs(o,0,t),c=Ct.getMatchingOpeningToken(n[s].children,i-1);Ct.addAttrs(a,c),r.content=o.slice(o.indexOf(t.rightDelimiter)+t.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",t)}]}],transform:(n,s,i)=>{const o=n[s].children[i].content,a=Ct.getAttrs(o,0,t);let c=s-2;for(;n[c-1]&&n[c-1].type!=="ordered_list_open"&&n[c-1].type!=="bullet_list_open";)c--;Ct.addAttrs(a,n[c-1]),n[s].children=n[s].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",t),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,s)=>{const r=n[s+2].content,o=Ct.getAttrs(r,0,t),a=Ct.getMatchingOpeningToken(n,s);Ct.addAttrs(o,a),n.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",t)}]}],transform:(n,s,i)=>{const r=n[s].children[i],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(t.leftDelimiter),t);Ct.addAttrs(a,n[s-2]);const c=o.slice(0,o.lastIndexOf(t.leftDelimiter));r.content=vS(c)!==" "?c:c.slice(0,-1)}},{name:` @@ -52,7 +52,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),me=U,le=W),ne===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:i.executionOutput},null,8,eKe),et(` `)]),et(` `)])):G("",!0)])}const nKe=ot(MWe,[["render",tKe]]);var E2={exports:{}};(function(t,e){(function(n,s){t.exports=s()})(LA,function(){function n(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 h,f,m;u[0]==="\\["?(h="display_math",f="\\\\]"):u[0]==="\\("?(h="inline_math",f="\\\\)"):u[1]&&(h="math",f="\\end{"+u[1]+"}",m=!0);var _=a.src.indexOf(f,d);if(_===-1)return!1;var g=_+f.length;if(!c){var b=a.push(h,"",0);b.content=m?a.src.slice(a.pos,g):a.src.slice(d,_)}return a.pos=g,!0}function s(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",h=a.src.charCodeAt(++d);if(h===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(h===32||h===9||h===10)return!1;var f=a.src.indexOf(u,d);if(f===-1||a.src.charCodeAt(f-1)===92)return!1;var m=f+u.length;if(u.length===1){var _=a.src.charCodeAt(f-1);if(_===32||_===9||_===10)return!1;var g=a.src.charCodeAt(m);if(g>=48&&g<58)return!1}if(!c){var b=a.push(u.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(d,f)}return a.pos=m,!0}function i(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const oKe={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:nKe},setup(t){const e=new Dbe({html:!0,highlight:(r,o)=>{const a=o&&to.getLanguage(o)?o:"plaintext";return to.highlight(a,r).value},renderInline:!0,breaks:!0}).use(FHe).use(Uo).use($He,{figcaption:!0}).use(i7e).use(HHe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}).use(iKe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),n=ct([]),s=()=>{if(t.markdownText){let r=e.parse(t.markdownText,{}),o=[];n.value=[];for(let a=0;a0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),n.value.push({type:"code",language:rKe(r[a].info),code:r[a].content}));o.length>0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else n.value=[];Le(()=>{ze.replace()})},i=(r,o)=>{n.value[r].code=o};return In(()=>t.markdownText,s),ci(()=>{s(),Le(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:n,updateCode:i}}},aKe={class:"break-all container w-full"},lKe={ref:"mdRender",class:"markdown-content"},cKe=["innerHTML"];function dKe(t,e,n,s,i,r){const o=tt("code-block");return T(),w("div",aKe,[l("div",lKe,[(T(!0),w(Pe,null,Ke(s.markdownItems,(a,c)=>(T(),w("div",{key:c},[a.type==="code"?(T(),dt(o,{key:0,host:n.host,language:a.language,code:a.code,discussion_id:n.discussion_id,message_id:n.message_id,client_id:n.client_id,onUpdateCode:d=>s.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),w("div",{key:1,innerHTML:a.html},null,8,cKe))]))),128))],512)])}const Yu=ot(oKe,[["render",dKe]]),uKe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Yu},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.has_button=!0,this.show=!0},showBlockingMessage(t){this.message=t,this.has_button=!1,this.show=!0},updateMessage(t){this.message=t,this.show=!0},hideMessage(){this.show=!1}}},pKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},_Ke={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},hKe={class:"container max-h-500 overflow-y-auto"},fKe={class:"text-lg font-medium"},mKe={class:"mt-4 flex justify-center"},gKe={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"},bKe=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),EKe=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),yKe=[bKe,EKe];function vKe(t,e,n,s,i,r){const o=tt("MarkdownRenderer");return i.show?(T(),w("div",pKe,[l("div",_Ke,[l("div",hKe,[l("div",fKe,[V(o,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",mKe,[i.has_button?(T(),w("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.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 ")):G("",!0),i.has_button?G("",!0):(T(),w("svg",gKe,yKe))])])])):G("",!0)}const y2=ot(uKe,[["render",vKe]]);const SKe={props:{progress:{type:Number,required:!0}}},TKe={class:"progress-bar-container"};function xKe(t,e,n,s,i,r){return T(),w("div",TKe,[l("div",{class:"progress-bar",style:Ht({width:`${n.progress}%`})},null,4)])}const Wu=ot(SKe,[["render",xKe]]),CKe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Le(()=>{ze.replace()})},methods:{btn_clicked(t){console.log(t)},hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,s){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let i=0;i{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})}},watch:{controls_array:{deep:!0,handler(t){t.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Le(()=>{ze.replace()})}}},wKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},RKe={class:"relative w-full max-w-md"},AKe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},NKe={class:"flex flex-row flex-grow items-center m-2 p-1"},OKe={class:"grow flex items-center"},MKe=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),IKe={class:"text-lg font-semibold select-none mr-2"},kKe={class:"items-end"},DKe=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),LKe=l("span",{class:"sr-only"},"Close form modal",-1),PKe=[DKe,LKe],UKe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},FKe={class:"px-2"},BKe={key:0},GKe={key:0},VKe={class:"text-base font-semibold"},zKe={key:0,class:"relative inline-flex"},HKe=["onUpdate:modelValue"],qKe=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),$Ke={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},YKe=["onUpdate:modelValue"],WKe={key:1},KKe={class:"text-base font-semibold"},jKe={key:0,class:"relative inline-flex"},QKe=["onUpdate:modelValue"],XKe=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),ZKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},JKe=["onUpdate:modelValue"],eje=["value","selected"],tje={key:1},nje={class:"",onclick:"btn_clicked(item)"},sje={key:2},ije={key:0},rje={class:"text-base font-semibold"},oje={key:0,class:"relative inline-flex"},aje=["onUpdate:modelValue"],lje=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),cje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},dje=["onUpdate:modelValue"],uje={key:1},pje={class:"text-base font-semibold"},_je={key:0,class:"relative inline-flex"},hje=["onUpdate:modelValue"],fje=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),mje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},gje=["onUpdate:modelValue"],bje=["value","selected"],Eje={key:3},yje={class:"text-base font-semibold"},vje={key:0,class:"relative inline-flex"},Sje=["onUpdate:modelValue"],Tje=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),xje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Cje=["onUpdate:modelValue"],wje=["onUpdate:modelValue","min","max"],Rje={key:4},Aje={class:"text-base font-semibold"},Nje={key:0,class:"relative inline-flex"},Oje=["onUpdate:modelValue"],Mje=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),Ije={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},kje=["onUpdate:modelValue"],Dje=["onUpdate:modelValue","min","max"],Lje={key:5},Pje={class:"mb-2 relative flex items-center gap-2"},Uje={for:"default-checkbox",class:"text-base font-semibold"},Fje=["onUpdate:modelValue"],Bje={key:0,class:"relative inline-flex"},Gje=["onUpdate:modelValue"],Vje=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),zje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Hje={key:6},qje={class:"text-base font-semibold"},$je={key:0,class:"relative inline-flex"},Yje=["onUpdate:modelValue"],Wje=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),Kje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},jje=["onUpdate:modelValue"],Qje=l("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Xje={class:"flex flex-row flex-grow gap-3"},Zje={class:"p-2 text-center grow"};function Jje(t,e,n,s,i,r){return i.show?(T(),w("div",wKe,[l("div",RKe,[l("div",AKe,[l("div",NKe,[l("div",OKe,[MKe,l("h3",IKe,K(i.title),1)]),l("div",kKe,[l("button",{type:"button",onClick:e[0]||(e[0]=j(o=>r.hide(!1),["stop"])),title:"Close",class:"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"},PKe)])]),l("div",UKe,[(T(!0),w(Pe,null,Ke(i.controls_array,(o,a)=>(T(),w("div",FKe,[o.type=="str"||o.type=="string"?(T(),w("div",BKe,[o.options?G("",!0):(T(),w("div",GKe,[l("label",{class:Ge(["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",VKe,K(o.name)+": ",1),o.help?(T(),w("label",zKe,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,HKe),[[$e,o.isHelp]]),qKe])):G("",!0)],2),o.isHelp?(T(),w("p",$Ke,K(o.help),1)):G("",!0),P(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,YKe),[[pe,o.value]])])),o.options?(T(),w("div",WKe,[l("label",{class:Ge(["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",KKe,K(o.name)+": ",1),o.help?(T(),w("label",jKe,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,QKe),[[$e,o.isHelp]]),XKe])):G("",!0)],2),o.isHelp?(T(),w("p",ZKe,K(o.help),1)):G("",!0),P(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),w(Pe,null,Ke(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},K(c),9,eje))),256))],8,JKe),[[Dt,o.value]])])):G("",!0)])):G("",!0),o.type=="btn"?(T(),w("div",tje,[l("button",nje,K(o.name),1)])):G("",!0),o.type=="text"?(T(),w("div",sje,[o.options?G("",!0):(T(),w("div",ije,[l("label",{class:Ge(["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",rje,K(o.name)+": ",1),o.help?(T(),w("label",oje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,aje),[[$e,o.isHelp]]),lje])):G("",!0)],2),o.isHelp?(T(),w("p",cje,K(o.help),1)):G("",!0),P(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,dje),[[pe,o.value]])])),o.options?(T(),w("div",uje,[l("label",{class:Ge(["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",pje,K(o.name)+": ",1),o.help?(T(),w("label",_je,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,hje),[[$e,o.isHelp]]),fje])):G("",!0)],2),o.isHelp?(T(),w("p",mje,K(o.help),1)):G("",!0),P(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),w(Pe,null,Ke(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},K(c),9,bje))),256))],8,gje),[[Dt,o.value]])])):G("",!0)])):G("",!0),o.type=="int"?(T(),w("div",Eje,[l("label",{class:Ge(["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,K(o.name)+": ",1),o.help?(T(),w("label",vje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Sje),[[$e,o.isHelp]]),Tje])):G("",!0)],2),o.isHelp?(T(),w("p",xje,K(o.help),1)):G("",!0),P(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,Cje),[[pe,o.value]]),o.min!=null&&o.max!=null?P((T(),w("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,wje)),[[pe,o.value]]):G("",!0)])):G("",!0),o.type=="float"?(T(),w("div",Rje,[l("label",{class:Ge(["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",Aje,K(o.name)+": ",1),o.help?(T(),w("label",Nje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Oje),[[$e,o.isHelp]]),Mje])):G("",!0)],2),o.isHelp?(T(),w("p",Ije,K(o.help),1)):G("",!0),P(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,kje),[[pe,o.value]]),o.min!=null&&o.max!=null?P((T(),w("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,Dje)),[[pe,o.value]]):G("",!0)])):G("",!0),o.type=="bool"?(T(),w("div",Lje,[l("div",Pje,[l("label",Uje,K(o.name)+": ",1),P(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,Fje),[[$e,o.value]]),o.help?(T(),w("label",Bje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Gje),[[$e,o.isHelp]]),Vje])):G("",!0)]),o.isHelp?(T(),w("p",zje,K(o.help),1)):G("",!0)])):G("",!0),o.type=="list"?(T(),w("div",Hje,[l("label",{class:Ge(["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",qje,K(o.name)+": ",1),o.help?(T(),w("label",$je,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Yje),[[$e,o.isHelp]]),Wje])):G("",!0)],2),o.isHelp?(T(),w("p",Kje,K(o.help),1)):G("",!0),P(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,jje),[[pe,o.value]])])):G("",!0),Qje]))),256)),l("div",Xje,[l("div",Zje,[l("button",{onClick:e[1]||(e[1]=j(o=>r.hide(!0),["stop"])),type:"button",class:"mr-2 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},K(i.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=j(o=>r.hide(!1),["stop"])),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-11 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"},K(i.DenyButtonText),1)])])])])])])):G("",!0)}const nc=ot(CKe,[["render",Jje]]),eQe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(s=>{this.message=t,this.show=!0,this.resolve=s})}}},tQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},nQe={class:"relative w-full max-w-md max-h-full"},sQe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},iQe=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),rQe=l("span",{class:"sr-only"},"Close modal",-1),oQe=[iQe,rQe],aQe={class:"p-4 text-center"},lQe=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),cQe={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function dQe(t,e,n,s,i,r){return i.show?(T(),w("div",tQe,[l("div",nQe,[l("div",sQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},oQe),l("div",aQe,[lQe,l("h3",cQe,K(i.message),1),l("button",{onClick:e[1]||(e[1]=o=>r.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"},K(i.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>r.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"},K(i.DenyButtonText),1)])])])])):G("",!0)}const v2=ot(eQe,[["render",dQe]]),uQe={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(t){t.target.files&&(this.file=t.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){ae.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(t=>{const e=t.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(t=>{console.error(t)})}}},pQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},_Qe={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},hQe={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"},fQe=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),mQe=l("span",{class:"sr-only"},"Close modal",-1),gQe=[fQe,mQe],bQe={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},EQe={class:"w-full flex flex-row mt-4 text-center justify-center"},yQe={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},vQe={class:"mb-4 w-full"},SQe={class:"w-full bg-bg-light dark:bg-bg-dark"},TQe=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1),xQe=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1),CQe=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1),wQe=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1),RQe=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1),AQe=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1),NQe=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1),OQe=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1),MQe=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1),IQe=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1),kQe=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1),DQe=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1),LQe=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1),PQe=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1);function UQe(t,e,n,s,i,r){return i.show?(T(),w("div",pQe,[l("div",_Qe,[l("div",hQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},gQe),l("div",bQe,[l("div",EQe,[l("button",{type:"submit",onClick:e[1]||(e[1]=j((...o)=>r.submitForm&&r.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]=j(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",yQe,[l("form",vQe,[l("table",SQe,[l("tr",null,[TQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>n.config.personality_conditioning=o)},null,512),[[pe,n.config.personality_conditioning]])])]),l("tr",null,[xQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>n.config.user_message_prefix=o)},null,512),[[pe,n.config.user_message_prefix]])])]),l("tr",null,[CQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>n.config.ai_message_prefix=o)},null,512),[[pe,n.config.ai_message_prefix]])])]),l("tr",null,[wQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>n.config.link_text=o)},null,512),[[pe,n.config.link_text]])])]),l("tr",null,[RQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>n.config.welcome_message=o)},null,512),[[pe,n.config.welcome_message]])])]),l("tr",null,[AQe,l("td",null,[P(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>n.config.model_temperature=o)},null,512),[[pe,n.config.model_temperature]])])]),l("tr",null,[NQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>n.config.model_top_k=o)},null,512),[[pe,n.config.model_top_k]])])]),l("tr",null,[OQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>n.config.model_top_p=o)},null,512),[[pe,n.config.model_top_p]])])]),l("tr",null,[MQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>n.config.model_repeat_penalty=o)},null,512),[[pe,n.config.model_repeat_penalty]])])]),l("tr",null,[IQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>n.config.model_repeat_last_n=o)},null,512),[[pe,n.config.model_repeat_last_n]])])]),l("tr",null,[kQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>n.config.recommended_binding=o)},null,512),[[pe,n.config.recommended_binding]])])]),l("tr",null,[DQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>n.config.recommended_model=o)},null,512),[[pe,n.config.recommended_model]])])]),l("tr",null,[LQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>n.config.dependencies=o)},null,512),[[pe,n.config.dependencies]])])]),l("tr",null,[PQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>n.config.anti_prompts=o)},null,512),[[pe,n.config.anti_prompts]])])])])])])])])])])):G("",!0)}const S2=ot(uQe,[["render",UQe]]);const FQe={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ae.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.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)})}}},BQe=t=>(Ss("data-v-d504dfc9"),t=t(),Ts(),t),GQe={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},VQe={class:"popup-container"},zQe=["src"],HQe={class:"checkbox-container"},qQe=BQe(()=>l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1));function $Qe(t,e,n,s,i,r){return T(),dt(Us,{name:"fade"},{default:Ie(()=>[i.showPopup?(T(),w("div",GQe,[l("div",VQe,[l("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),l("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,zQe),l("div",HQe,[P(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)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[$e,this.$store.state.config.show_news_panel]]),qQe])])])):G("",!0)]),_:1})}const T2=ot(FQe,[["render",$Qe],["__scopeId","data-v-d504dfc9"]]),YQe={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(t){this.href==="#"&&(t.preventDefault(),this.$emit("click"))}}},WQe=["href","title"],KQe=["data-feather"];function jQe(t,e,n,s,i,r){return T(),w("a",{href:n.href,onClick:e[0]||(e[0]=(...o)=>r.onClick&&r.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[l("i",{"data-feather":n.icon},null,8,KQe)],8,WQe)}const Ed=ot(YQe,[["render",jQe]]),QQe={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},XQe=["href","title"],ZQe=["data-feather"],JQe={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},eXe=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),tXe=[eXe],nXe={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sXe=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),iXe=[sXe];function rXe(t,e,n,s,i,r){return T(),w("a",{href:n.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[n.icon!=="x"&&n.icon!=="discord"?(T(),w("i",{key:0,"data-feather":n.icon},null,8,ZQe)):n.icon==="x"?(T(),w("svg",JQe,tXe)):n.icon==="discord"?(T(),w("svg",nXe,iXe)):G("",!0)],8,XQe)}const dl=ot(QQe,[["render",rXe]]),oXe="/assets/fastapi-4a6542d0.png",aXe="/assets/discord-6817c341.svg",lXe={key:0,class:"navbar-container z-60"},cXe={class:"game-menu"},dXe={name:"Navigation",computed:{filteredNavLinks(){return filteredNavLinks.value}}},x2=Object.assign(dXe,{setup(t){const e=qP(),n=ct(0),s=ct([]),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:()=>Ms.state.config.enable_sd_service||Ms.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ms.state.config.enable_comfyui_service||Ms.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ms.state.config.active_tts_service!=="None"&&Ms.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],r=Je(()=>Ms.state.ready?i.filter(d=>d.condition?d.condition():d.active):i.filter(d=>d.active));ci(()=>{o()}),In(()=>e.name,o);function o(){const d=r.value.findIndex(u=>u.route===e.name);d!==-1&&(n.value=d)}function a(d){return e.name===d}function c(d){n.value=d}return(d,u)=>d.$store.state.ready?(T(),w("div",lXe,[l("nav",cXe,[(T(!0),w(Pe,null,Ke(r.value,(h,f)=>(T(),dt(Lt(Qb),{key:f,to:{name:h.route},class:Ge(["menu-item",{"active-link":a(h.route)}]),onClick:m=>c(f),ref_for:!0,ref_key:"menuItems",ref:s},{default:Ie(()=>[et(K(h.text),1)]),_:2},1032,["to","class","onClick"]))),128))])])):G("",!0)}}),uXe="/assets/static_info-b284ded1.svg",pXe="/assets/animated_info-7edcb0f9.svg",gs="/assets/logo-ec01a7c6.png",_Xe="/assets/fun_mode-14669a57.svg",hXe="/assets/normal_mode-f539f08d.svg";const fXe={class:"top-0 shadow-lg navbar-container"},mXe={class:"container flex flex-col lg:flex-row items-center gap-2 pb-0"},gXe={class:"logo-container"},bXe=["src"],EXe=l("div",{class:"flex flex-col justify-center"},[l("p",{class:"text-2xl font-bold drop-shadow-md leading-none"},"LoLLMS"),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1),yXe={class:"flex gap-3 flex-1 items-center justify-end"},vXe={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},SXe=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),TXe=[SXe],xXe={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},CXe=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),wXe=[CXe],RXe={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"},AXe=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),NXe=[AXe],OXe={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},MXe=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),IXe=[MXe],kXe={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},DXe=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),LXe=[DXe],PXe={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},UXe=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),FXe=[UXe],BXe={class:"flex items-center space-x-4"},GXe={class:"flex items-center space-x-4"},VXe={class:"relative group",title:"Lollms News"},zXe=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),HXe=[zXe],qXe=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"}," Lollms News ",-1),$Xe={class:"relative group"},YXe=Na('',1),WXe=[YXe],KXe=Na('',1),jXe=[KXe],QXe={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},XXe={class:"language-selector relative"},ZXe={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"}},JXe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},eZe=["onClick"],tZe=["onClick"],nZe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},sZe=l("i",{"data-feather":"sun"},null,-1),iZe=[sZe],rZe=l("i",{"data-feather":"moon"},null,-1),oZe=[rZe],aZe={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"},lZe={class:"text-2xl animate-pulse mt-2 text-white"},cZe={id:"app"},dZe={name:"TopBar",computed:{storeLogo(){return this.$store.state.config?gs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:gs},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}},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},components:{Toast:Zl,MessageBox:y2,ProgressBar:Wu,UniversalForm:nc,YesNoDialog:v2,Navigation:x2,PersonalityEditor:S2,PopupViewer:T2,ActionButton:Ed,SocialIcon:dl},watch:{"$store.state.config.fun_mode":function(t,e){console.log(`Fun mode changed from ${e} to ${t}! 🎉`)},"$store.state.isConnected":function(t,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()),Le(()=>{ze.replace()})}},data(){return{customLanguage:"",selectedLanguage:"",isLanguageMenuVisible:!1,static_info:uXe,animated_info:pXe,normal_mode:hXe,fun_mode:_Xe,is_first_connection:!0,discord:aXe,FastAPI:oXe,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:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,posts_headers:{accept:"application/json","Content-Type":"application/json"}}},async mounted(){this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Le(()=>{ze.replace()}),window.addEventListener("resize",this.adjustMenuPosition)},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{adjustMenuPosition(){const t=this.$refs.languageMenu;if(t){const e=t.getBoundingClientRect(),n=window.innerWidth;e.right>n?(t.style.left="auto",t.style.right="0"):(t.style.left="0",t.style.right="auto")}},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},async selectLanguage(t){await this.$store.dispatch("changeLanguage",t),this.toggleLanguageMenu(),this.language=t},async deleteLanguage(t){await this.$store.dispatch("deleteLanguage",t),this.toggleLanguageMenu(),this.language=t},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},restartProgram(t){t.preventDefault(),this.$store.state.api_post_req("restart_program",this.$store.state.client_id),this.rebooting_audio.play(),this.$store.state.toast.showToast("Rebooting the app. Please wait...",410,!1),console.log("this.$store.state.api_get_req",this.$store.state.api_get_req),setTimeout(()=>{window.close()},2e3)},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(t){console.log("Input text:",t)},applyConfiguration(){this.isLoading=!0,console.log(this.$store.state.config),ae.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config},{headers:this.posts_headers}).then(t=>{this.isLoading=!1,t.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),Le(()=>{ze.replace()})})},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()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),Le(()=>{Op(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}Le(()=>{Op(()=>Promise.resolve({}),["assets/stackoverflow-light-077a2b3c.css"])}),this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Op(()=>Promise.resolve({}),["assets/tokyo-night-dark-f9656fc4.css"]),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}}},uZe=Object.assign(dZe,{setup(t){return(e,n)=>(T(),w("header",fXe,[l("nav",mXe,[V(Lt(Qb),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",gXe,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Lt(gs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Lt(gs),alt:"Logo",title:"LoLLMS WebUI"},null,8,bXe)]),EXe]),_:1}),l("div",yXe,[e.isModelOK?(T(),w("div",vXe,TXe)):(T(),w("div",xXe,wXe)),e.isGenerating?(T(),w("div",OXe,IXe)):(T(),w("div",RXe,NXe)),e.isConnected?(T(),w("div",kXe,LXe)):(T(),w("div",PXe,FXe))]),l("div",BXe,[V(Ed,{onClick:e.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),V(Ed,{onClick:e.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),V(Ed,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),l("div",GXe,[V(dl,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),V(dl,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),V(dl,{href:"https://x.com/ParisNeo_AI",icon:"x"}),V(dl,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"})]),l("div",VXe,[l("div",{onClick:n[0]||(n[0]=s=>e.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"},HXe),qXe]),l("div",$Xe,[e.is_fun_mode?(T(),w("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:n[1]||(n[1]=s=>e.fun_mode_off())},WXe)):(T(),w("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:n[2]||(n[2]=s=>e.fun_mode_on())},jXe)),l("span",QXe,K(e.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1)]),l("div",XXe,[l("button",{onClick:n[3]||(n[3]=(...s)=>e.toggleLanguageMenu&&e.toggleLanguageMenu(...s)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},K(e.$store.state.language.slice(0,2)),1),e.isLanguageMenuVisible?(T(),w("div",ZXe,[l("ul",JXe,[(T(!0),w(Pe,null,Ke(e.languages,s=>(T(),w("li",{key:s,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:i=>e.deleteLanguage(s),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,eZe),l("div",{onClick:i=>e.selectLanguage(s),class:Ge({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":s===e.$store.state.language,"flex-grow":!0})},K(s),11,tZe)]))),128)),l("li",nZe,[P(l("input",{type:"text","onUpdate:modelValue":n[4]||(n[4]=s=>e.customLanguage=s),onKeyup:n[5]||(n[5]=Vs(j((...s)=>e.addCustomLanguage&&e.addCustomLanguage(...s),["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),[[pe,e.customLanguage]])])])],512)):G("",!0)]),l("div",{class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:n[6]||(n[6]=s=>e.themeSwitch())},iZe),l("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:n[7]||(n[7]=s=>e.themeSwitch())},oZe)]),V(x2),V(Zl,{ref:"toast"},null,512),V(y2,{ref:"messageBox"},null,512),P(l("div",aZe,[V(Wu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",lZe,K(e.loading_infos)+" ...",1)],512),[[wt,e.progress_visibility]]),V(nc,{ref:"universalForm",class:"z-20"},null,512),V(v2,{ref:"yesNoDialog",class:"z-20"},null,512),V(S2,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",cZe,[V(T2,{ref:"news"},null,512)])]))}}),pZe={class:"flex overflow-hidden flex-grow w-full"},_Ze={__name:"App",setup(t){return(e,n)=>(T(),w("div",{class:Ge([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"])},[V(uZe),l("div",pZe,[V(Lt(DA),null,{default:Ie(({Component:s})=>[(T(),dt(pI,null,[(T(),dt(Tu(s)))],1024))]),_:1})])],2))}},ai=Object.create(null);ai.open="0";ai.close="1";ai.ping="2";ai.pong="3";ai.message="4";ai.upgrade="5";ai.noop="6";const yd=Object.create(null);Object.keys(ai).forEach(t=>{yd[ai[t]]=t});const Bg={type:"error",data:"parser error"},C2=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",w2=typeof ArrayBuffer=="function",R2=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,uE=({type:t,data:e},n,s)=>C2&&e instanceof Blob?n?s(e):r1(e,s):w2&&(e instanceof ArrayBuffer||R2(e))?n?s(e):r1(new Blob([e]),s):s(ai[t]+(e||"")),r1=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function o1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Tm;function hZe(t,e){if(C2&&t.data instanceof Blob)return t.data.arrayBuffer().then(o1).then(e);if(w2&&(t.data instanceof ArrayBuffer||R2(t.data)))return e(o1(t.data));uE(t,!1,n=>{Tm||(Tm=new TextEncoder),e(Tm.encode(n))})}const a1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,s,i=0,r,o,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(s=0;s>4,u[i++]=(o&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return d},mZe=typeof ArrayBuffer=="function",pE=(t,e)=>{if(typeof t!="string")return{type:"message",data:A2(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:gZe(t.substring(1),e)}:yd[n]?t.length>1?{type:yd[n],data:t.substring(1)}:{type:yd[n]}:Bg},gZe=(t,e)=>{if(mZe){const n=fZe(t);return A2(n,e)}else return{base64:!0,data:t}},A2=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},N2=String.fromCharCode(30),bZe=(t,e)=>{const n=t.length,s=new Array(n);let i=0;t.forEach((r,o)=>{uE(r,!1,a=>{s[o]=a,++i===n&&e(s.join(N2))})})},EZe=(t,e)=>{const n=t.split(N2),s=[];for(let i=0;i{const s=n.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let xm;function wc(t){return t.reduce((e,n)=>e+n.length,0)}function Rc(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(Bg);break}i=u*Math.pow(2,32)+d.getUint32(4),s=3}else{if(wc(n)t){a.enqueue(Bg);break}}}})}const O2=4;function an(t){if(t)return SZe(t)}function SZe(t){for(var e in an.prototype)t[e]=an.prototype[e];return t}an.prototype.on=an.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};an.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function M2(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const TZe=ds.setTimeout,xZe=ds.clearTimeout;function Ku(t,e){e.useNativeTimers?(t.setTimeoutFn=TZe.bind(ds),t.clearTimeoutFn=xZe.bind(ds)):(t.setTimeoutFn=ds.setTimeout.bind(ds),t.clearTimeoutFn=ds.clearTimeout.bind(ds))}const CZe=1.33;function wZe(t){return typeof t=="string"?RZe(t):Math.ceil((t.byteLength||t.size)*CZe)}function RZe(t){let e=0,n=0;for(let s=0,i=t.length;s=57344?n+=3:(s++,n+=4);return n}function AZe(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function NZe(t){let e={},n=t.split("&");for(let s=0,i=n.length;s0);return e}function k2(){const t=d1(+new Date);return t!==c1?(l1=0,c1=t):t+"."+d1(l1++)}for(;Ac{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=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)};EZe(e,this.socket.binaryType).forEach(n),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,bZe(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=k2()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ko(this.uri(),e)}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}let Ko=class vd extends an{constructor(e,n){super(),Ku(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=M2(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const s=this.xhr=new L2(n);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}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 i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),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(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=vd.requestsCount++,vd.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=kZe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete vd.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()}};Ko.requestsCount=0;Ko.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u1);else if(typeof addEventListener=="function"){const t="onpagehide"in ds?"pagehide":"unload";addEventListener(t,u1,!1)}}function u1(){for(let t in Ko.requests)Ko.requests.hasOwnProperty(t)&&Ko.requests[t].abort()}const hE=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Nc=ds.WebSocket||ds.MozWebSocket,p1=!0,PZe="arraybuffer",_1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class UZe extends _E{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,s=_1?{}:M2(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=p1&&!_1?n?new Nc(e,n):new Nc(e):new Nc(e,n,s)}catch(i){return this.emitReserved("error",i)}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 n=0;n{const o={};try{p1&&this.ws.send(r)}catch{}i&&hE(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=k2()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Nc}}class FZe extends _E{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=vZe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),i=yZe();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),r())}).catch(a=>{})};r();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 n=0;n{i&&hE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const BZe={websocket:UZe,webtransport:FZe,polling:LZe},GZe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,VZe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vg(t){if(t.length>2e3)throw"URI too long";const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let i=GZe.exec(t||""),r={},o=14;for(;o--;)r[VZe[o]]=i[o]||"";return n!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=zZe(r,r.path),r.queryKey=HZe(r,r.query),r}function zZe(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function HZe(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(n[i]=r)}),n}let P2=class Po extends an{constructor(e,n={}){super(),this.binaryType=PZe,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Vg(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Vg(n.host).host),Ku(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=NZe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=O2,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new BZe[e](s)}open(){let e;if(this.opts.rememberUpgrade&&Po.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}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",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),s=!1;Po.priorWebsocketSuccess=!1;const i=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Po.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function r(){s||(s=!0,u(),n.close(),n=null)}const o=h=>{const f=new Error("probe error: "+h);f.transport=n.name,r(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function c(){o("socket closed")}function d(h){n&&h.name!==n.name&&r()}const u=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",c),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Po.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 n=1;for(let s=0;s0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(e,n,s){return this.sendPacket("message",e,n,s),this}send(e,n,s){return this.sendPacket("message",e,n,s),this}sendPacket(e,n,s,i){if(typeof n=="function"&&(i=n,n=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:n,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};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){Po.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let s=0;const i=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,U2=Object.prototype.toString,WZe=typeof Blob=="function"||typeof Blob<"u"&&U2.call(Blob)==="[object BlobConstructor]",KZe=typeof File=="function"||typeof File<"u"&&U2.call(File)==="[object FileConstructor]";function fE(t){return $Ze&&(t instanceof ArrayBuffer||YZe(t))||WZe&&t instanceof Blob||KZe&&t instanceof File}function Sd(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n=0&&t.num{delete this.acks[e];for(let o=0;o{this.io.clearTimeoutFn(r),n.apply(this,[null,...o])}}emitWithAck(e,...n){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,r)=>{n.push((o,a)=>s?o?r(o):i(a):i(o)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:Ot.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ot.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 Ot.EVENT:case Ot.BINARY_EVENT:this.onevent(e);break;case Ot.ACK:case Ot.BINARY_ACK:this.onack(e);break;case Ot.DISCONNECT:this.ondisconnect();break;case Ot.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 n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)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 n=this;let s=!1;return function(...i){s||(s=!0,n.packet({type:Ot.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:Ot.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 n=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pa.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Pa.prototype.reset=function(){this.attempts=0};Pa.prototype.setMin=function(t){this.ms=t};Pa.prototype.setMax=function(t){this.max=t};Pa.prototype.setJitter=function(t){this.jitter=t};class qg extends an{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ku(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Pa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||tJe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 P2(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=Os(n,"open",function(){s.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Os(n,"error",r);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),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(Os(e,"ping",this.onping.bind(this)),Os(e,"data",this.ondata.bind(this)),Os(e,"error",this.onerror.bind(this)),Os(e,"close",this.onclose.bind(this)),Os(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){hE(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new F2(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=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"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);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 Xa={};function Td(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=qZe(t,e.path||"/socket.io"),s=n.source,i=n.id,r=n.path,o=Xa[i]&&r in Xa[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new qg(s,e):(Xa[i]||(Xa[i]=new qg(s,e)),c=Xa[i]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(Td,{Manager:qg,Socket:F2,io:Td,connect:Td});const B2="/";console.log(B2);const qe=new Td(B2,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const sJe={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){Le(()=>{ze.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.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(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},iJe={class:"flex items-center space-x-2"},rJe=["value","type","placeholder"],oJe=["value","min","max"],aJe=l("i",{"data-feather":"clipboard"},null,-1),lJe=[aJe],cJe=l("i",{"data-feather":"upload"},null,-1),dJe=[cJe],uJe=["accept"];function pJe(t,e,n,s,i,r){return T(),w("div",iJe,[t.useSlider?(T(),w("input",{key:1,type:"range",value:parseInt(i.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.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,oJe)):(T(),w("input",{key:0,value:i.inputValue,type:n.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.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,rJe)),l("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.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"},lJe),n.inputType==="file"?(T(),w("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.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"},dJe)):G("",!0),n.inputType==="file"?(T(),w("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,uJe)):G("",!0)])}const gE=ot(sJe,[["render",pJe]]),_Je={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"]}}},hJe={class:"w-full"},fJe={class:"break-words"},mJe={class:"break-words mt-2"},gJe={class:"mt-4"};function bJe(t,e,n,s,i,r){return T(),w("div",hJe,[l("div",fJe,[(T(!0),w(Pe,null,Ke(n.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Ht({backgroundColor:i.colors[a%i.colors.length]})},K(o[0]),5)]))),128))]),l("div",mJe,[(T(!0),w(Pe,null,Ke(n.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Ht({backgroundColor:i.colors[a%i.colors.length]})},K(o[1]),5)]))),128))]),l("div",gJe,[l("strong",null,"Total Tokens: "+K(n.namedTokens.length),1)])])}const EJe=ot(_Je,[["render",bJe]]),yJe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function vJe(t,e,n,s,i,r){return T(),w("button",MR({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",[n.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},t.$attrs,SI(t.$listeners,!0)),[un(t.$slots,"icon"),un(t.$slots,"default")],16)}const G2=ot(yJe,[["render",vJe]]);const SJe={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)}}},TJe={key:1,class:"flex flex-wrap"},xJe={key:2,class:"mb-2"};function CJe(t,e,n,s,i,r){return T(),w("div",null,[i.isActive?(T(),w("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):G("",!0),P(l("div",{class:Ge(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{subcard:n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=o=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>i.isHovered=!1),onClick:e[4]||(e[4]=j((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:Ht({cursor:this.disableFocus?"":"pointer"})},[n.title?(T(),w("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:Ge([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},K(n.title),3)):G("",!0),n.isHorizontal?(T(),w("div",TJe,[un(t.$slots,"default")])):(T(),w("div",xJe,[un(t.$slots,"default")]))],38),[[wt,i.shrink===!1]]),n.is_subcard?P((T(),w("div",{key:1,onClick:e[5]||(e[5]=o=>i.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"},K(n.title),513)),[[wt,i.shrink===!0]]):P((T(),w("div",{key:2,onClick:e[6]||(e[6]=o=>i.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)),[[wt,i.shrink===!0]])])}const ju=ot(SJe,[["render",CJe]]),V2="/assets/code_block-e2753d3f.svg",z2="/assets/python_block-4008a934.png",H2="/assets/javascript_block-5e59df30.svg",q2="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==",$2="/assets/cpp_block-109b2fbe.png",Y2="/assets/html5_block-205d2852.png",W2="/assets/LaTeX_block-06b165c0.png",K2="/assets/bash_block-7ca80e4e.png",wJe="/assets/tokenize_icon-0553c60f.svg",RJe="/assets/deaf_on-7481cb29.svg",AJe="/assets/deaf_off-c2c46908.svg",NJe="/assets/rec_on-3b37b566.svg",OJe="/assets/rec_off-2c08e836.svg",j2="/assets/loading-c3bdfb0a.svg",MJe={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""}}}},IJe=["title"],kJe={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"},DJe=["innerHTML"];function LJe(t,e,n,s,i,r){return T(),w("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:n.title,onClick:e[0]||(e[0]=o=>t.$emit("click"))},[(T(),w("svg",kJe,[l("g",{innerHTML:r.iconPath},null,8,DJe)]))],8,IJe)}const bE=ot(MJe,[["render",LJe]]);var Hn="top",ys="bottom",vs="right",qn="left",EE="auto",sc=[Hn,ys,vs,qn],oa="start",zl="end",PJe="clippingParents",Q2="viewport",Za="popper",UJe="reference",f1=sc.reduce(function(t,e){return t.concat([e+"-"+oa,e+"-"+zl])},[]),X2=[].concat(sc,[EE]).reduce(function(t,e){return t.concat([e,e+"-"+oa,e+"-"+zl])},[]),FJe="beforeRead",BJe="read",GJe="afterRead",VJe="beforeMain",zJe="main",HJe="afterMain",qJe="beforeWrite",$Je="write",YJe="afterWrite",WJe=[FJe,BJe,GJe,VJe,zJe,HJe,qJe,$Je,YJe];function li(t){return t?(t.nodeName||"").toLowerCase():null}function ns(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function no(t){var e=ns(t).Element;return t instanceof e||t instanceof Element}function bs(t){var e=ns(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function yE(t){if(typeof ShadowRoot>"u")return!1;var e=ns(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function KJe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},i=e.attributes[n]||{},r=e.elements[n];!bs(r)||!li(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(o){var a=i[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function jJe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var i=e.elements[s],r=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),a=o.reduce(function(c,d){return c[d]="",c},{});!bs(i)||!li(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(c){i.removeAttribute(c)}))})}}const QJe={name:"applyStyles",enabled:!0,phase:"write",fn:KJe,effect:jJe,requires:["computeStyles"]};function ri(t){return t.split("-")[0]}var Wr=Math.max,Yd=Math.min,aa=Math.round;function $g(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Z2(){return!/^((?!chrome|android).)*safari/i.test($g())}function la(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var s=t.getBoundingClientRect(),i=1,r=1;e&&bs(t)&&(i=t.offsetWidth>0&&aa(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&aa(s.height)/t.offsetHeight||1);var o=no(t)?ns(t):window,a=o.visualViewport,c=!Z2()&&n,d=(s.left+(c&&a?a.offsetLeft:0))/i,u=(s.top+(c&&a?a.offsetTop:0))/r,h=s.width/i,f=s.height/r;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function vE(t){var e=la(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function J2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&yE(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Di(t){return ns(t).getComputedStyle(t)}function XJe(t){return["table","td","th"].indexOf(li(t))>=0}function Er(t){return((no(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qu(t){return li(t)==="html"?t:t.assignedSlot||t.parentNode||(yE(t)?t.host:null)||Er(t)}function m1(t){return!bs(t)||Di(t).position==="fixed"?null:t.offsetParent}function ZJe(t){var e=/firefox/i.test($g()),n=/Trident/i.test($g());if(n&&bs(t)){var s=Di(t);if(s.position==="fixed")return null}var i=Qu(t);for(yE(i)&&(i=i.host);bs(i)&&["html","body"].indexOf(li(i))<0;){var r=Di(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function ic(t){for(var e=ns(t),n=m1(t);n&&XJe(n)&&Di(n).position==="static";)n=m1(n);return n&&(li(n)==="html"||li(n)==="body"&&Di(n).position==="static")?e:n||ZJe(t)||e}function SE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yl(t,e,n){return Wr(t,Yd(e,n))}function JJe(t,e,n){var s=yl(t,e,n);return s>n?n:s}function eN(){return{top:0,right:0,bottom:0,left:0}}function tN(t){return Object.assign({},eN(),t)}function nN(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var eet=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,tN(typeof e!="number"?e:nN(e,sc))};function tet(t){var e,n=t.state,s=t.name,i=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=ri(n.placement),c=SE(a),d=[qn,vs].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var h=eet(i.padding,n),f=vE(r),m=c==="y"?Hn:qn,_=c==="y"?ys:vs,g=n.rects.reference[u]+n.rects.reference[c]-o[c]-n.rects.popper[u],b=o[c]-n.rects.reference[c],E=ic(r),y=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,v=g/2-b/2,S=h[m],R=y-f[u]-h[_],C=y/2-f[u]/2+v,A=yl(S,C,R),I=c;n.modifiersData[s]=(e={},e[I]=A,e.centerOffset=A-C,e)}}function net(t){var e=t.state,n=t.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||J2(e.elements.popper,i)&&(e.elements.arrow=i))}const set={name:"arrow",enabled:!0,phase:"main",fn:tet,effect:net,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(t){return t.split("-")[1]}var iet={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ret(t,e){var n=t.x,s=t.y,i=e.devicePixelRatio||1;return{x:aa(n*i)/i||0,y:aa(s*i)/i||0}}function g1(t){var e,n=t.popper,s=t.popperRect,i=t.placement,r=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,h=t.isFixed,f=o.x,m=f===void 0?0:f,_=o.y,g=_===void 0?0:_,b=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=b.x,g=b.y;var E=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=qn,S=Hn,R=window;if(d){var C=ic(n),A="clientHeight",I="clientWidth";if(C===ns(n)&&(C=Er(n),Di(C).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),C=C,i===Hn||(i===qn||i===vs)&&r===zl){S=ys;var x=h&&C===R&&R.visualViewport?R.visualViewport.height:C[A];g-=x-s.height,g*=c?1:-1}if(i===qn||(i===Hn||i===ys)&&r===zl){v=vs;var O=h&&C===R&&R.visualViewport?R.visualViewport.width:C[I];m-=O-s.width,m*=c?1:-1}}var B=Object.assign({position:a},d&&iet),H=u===!0?ret({x:m,y:g},ns(n)):{x:m,y:g};if(m=H.x,g=H.y,c){var te;return Object.assign({},B,(te={},te[S]=y?"0":"",te[v]=E?"0":"",te.transform=(R.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",te))}return Object.assign({},B,(e={},e[S]=y?g+"px":"",e[v]=E?m+"px":"",e.transform="",e))}function oet(t){var e=t.state,n=t.options,s=n.gpuAcceleration,i=s===void 0?!0:s,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:ri(e.placement),variation:ca(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,g1(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,g1(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 aet={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oet,data:{}};var Oc={passive:!0};function cet(t){var e=t.state,n=t.instance,s=t.options,i=s.scroll,r=i===void 0?!0:i,o=s.resize,a=o===void 0?!0:o,c=ns(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",n.update,Oc)}),a&&c.addEventListener("resize",n.update,Oc),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Oc)}),a&&c.removeEventListener("resize",n.update,Oc)}}const det={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cet,data:{}};var uet={left:"right",right:"left",bottom:"top",top:"bottom"};function xd(t){return t.replace(/left|right|bottom|top/g,function(e){return uet[e]})}var pet={start:"end",end:"start"};function b1(t){return t.replace(/start|end/g,function(e){return pet[e]})}function TE(t){var e=ns(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function xE(t){return la(Er(t)).left+TE(t).scrollLeft}function _et(t,e){var n=ns(t),s=Er(t),i=n.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,c=0;if(i){r=i.width,o=i.height;var d=Z2();(d||!d&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:a+xE(t),y:c}}function het(t){var e,n=Er(t),s=TE(t),i=(e=t.ownerDocument)==null?void 0:e.body,r=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+xE(t),c=-s.scrollTop;return Di(i||n).direction==="rtl"&&(a+=Wr(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:c}}function CE(t){var e=Di(t),n=e.overflow,s=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function sN(t){return["html","body","#document"].indexOf(li(t))>=0?t.ownerDocument.body:bs(t)&&CE(t)?t:sN(Qu(t))}function vl(t,e){var n;e===void 0&&(e=[]);var s=sN(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),r=ns(s),o=i?[r].concat(r.visualViewport||[],CE(s)?s:[]):s,a=e.concat(o);return i?a:a.concat(vl(Qu(o)))}function Yg(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fet(t,e){var n=la(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function E1(t,e,n){return e===Q2?Yg(_et(t,n)):no(e)?fet(e,n):Yg(het(Er(t)))}function met(t){var e=vl(Qu(t)),n=["absolute","fixed"].indexOf(Di(t).position)>=0,s=n&&bs(t)?ic(t):t;return no(s)?e.filter(function(i){return no(i)&&J2(i,s)&&li(i)!=="body"}):[]}function get(t,e,n,s){var i=e==="clippingParents"?met(t):[].concat(e),r=[].concat(i,[n]),o=r[0],a=r.reduce(function(c,d){var u=E1(t,d,s);return c.top=Wr(u.top,c.top),c.right=Yd(u.right,c.right),c.bottom=Yd(u.bottom,c.bottom),c.left=Wr(u.left,c.left),c},E1(t,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 iN(t){var e=t.reference,n=t.element,s=t.placement,i=s?ri(s):null,r=s?ca(s):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,c;switch(i){case Hn:c={x:o,y:e.y-n.height};break;case ys:c={x:o,y:e.y+e.height};break;case vs:c={x:e.x+e.width,y:a};break;case qn:c={x:e.x-n.width,y:a};break;default:c={x:e.x,y:e.y}}var d=i?SE(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case oa:c[d]=c[d]-(e[u]/2-n[u]/2);break;case zl:c[d]=c[d]+(e[u]/2-n[u]/2);break}}return c}function Hl(t,e){e===void 0&&(e={});var n=e,s=n.placement,i=s===void 0?t.placement:s,r=n.strategy,o=r===void 0?t.strategy:r,a=n.boundary,c=a===void 0?PJe:a,d=n.rootBoundary,u=d===void 0?Q2:d,h=n.elementContext,f=h===void 0?Za:h,m=n.altBoundary,_=m===void 0?!1:m,g=n.padding,b=g===void 0?0:g,E=tN(typeof b!="number"?b:nN(b,sc)),y=f===Za?UJe:Za,v=t.rects.popper,S=t.elements[_?y:f],R=get(no(S)?S:S.contextElement||Er(t.elements.popper),c,u,o),C=la(t.elements.reference),A=iN({reference:C,element:v,strategy:"absolute",placement:i}),I=Yg(Object.assign({},v,A)),x=f===Za?I:C,O={top:R.top-x.top+E.top,bottom:x.bottom-R.bottom+E.bottom,left:R.left-x.left+E.left,right:x.right-R.right+E.right},B=t.modifiersData.offset;if(f===Za&&B){var H=B[i];Object.keys(O).forEach(function(te){var k=[vs,ys].indexOf(te)>=0?1:-1,$=[Hn,ys].indexOf(te)>=0?"y":"x";O[te]+=H[$]*k})}return O}function bet(t,e){e===void 0&&(e={});var n=e,s=n.placement,i=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?X2:c,u=ca(s),h=u?a?f1:f1.filter(function(_){return ca(_)===u}):sc,f=h.filter(function(_){return d.indexOf(_)>=0});f.length===0&&(f=h);var m=f.reduce(function(_,g){return _[g]=Hl(t,{placement:g,boundary:i,rootBoundary:r,padding:o})[ri(g)],_},{});return Object.keys(m).sort(function(_,g){return m[_]-m[g]})}function Eet(t){if(ri(t)===EE)return[];var e=xd(t);return[b1(t),e,b1(e)]}function yet(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,c=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,_=m===void 0?!0:m,g=n.allowedAutoPlacements,b=e.options.placement,E=ri(b),y=E===b,v=c||(y||!_?[xd(b)]:Eet(b)),S=[b].concat(v).reduce(function(Ee,Me){return Ee.concat(ri(Me)===EE?bet(e,{placement:Me,boundary:u,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:g}):Me)},[]),R=e.rects.reference,C=e.rects.popper,A=new Map,I=!0,x=S[0],O=0;O=0,$=k?"width":"height",q=Hl(e,{placement:B,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),U=k?te?vs:qn:te?ys:Hn;R[$]>C[$]&&(U=xd(U));var W=xd(U),ne=[];if(r&&ne.push(q[H]<=0),a&&ne.push(q[U]<=0,q[W]<=0),ne.every(function(Ee){return Ee})){x=B,I=!1;break}A.set(B,ne)}if(I)for(var le=_?3:1,me=function(Me){var ke=S.find(function(Z){var he=A.get(Z);if(he)return he.slice(0,Me).every(function(_e){return _e})});if(ke)return x=ke,"break"},Se=le;Se>0;Se--){var de=me(Se);if(de==="break")break}e.placement!==x&&(e.modifiersData[s]._skip=!0,e.placement=x,e.reset=!0)}}const vet={name:"flip",enabled:!0,phase:"main",fn:yet,requiresIfExists:["offset"],data:{_skip:!1}};function y1(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function v1(t){return[Hn,vs,ys,qn].some(function(e){return t[e]>=0})}function Tet(t){var e=t.state,n=t.name,s=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,o=Hl(e,{elementContext:"reference"}),a=Hl(e,{altBoundary:!0}),c=y1(o,s),d=y1(a,i,r),u=v1(c),h=v1(d);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const xet={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tet};function Cet(t,e,n){var s=ri(t),i=[qn,Hn].indexOf(s)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[qn,vs].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function wet(t){var e=t.state,n=t.options,s=t.name,i=n.offset,r=i===void 0?[0,0]:i,o=X2.reduce(function(u,h){return u[h]=Cet(h,e.rects,r),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 Ret={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wet};function Aet(t){var e=t.state,n=t.name;e.modifiersData[n]=iN({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Net={name:"popperOffsets",enabled:!0,phase:"read",fn:Aet,data:{}};function Oet(t){return t==="x"?"y":"x"}function Met(t){var e=t.state,n=t.options,s=t.name,i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,m=f===void 0?!0:f,_=n.tetherOffset,g=_===void 0?0:_,b=Hl(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),E=ri(e.placement),y=ca(e.placement),v=!y,S=SE(E),R=Oet(S),C=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,x=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(C){if(r){var te,k=S==="y"?Hn:qn,$=S==="y"?ys:vs,q=S==="y"?"height":"width",U=C[S],W=U+b[k],ne=U-b[$],le=m?-I[q]/2:0,me=y===oa?A[q]:I[q],Se=y===oa?-I[q]:-A[q],de=e.elements.arrow,Ee=m&&de?vE(de):{width:0,height:0},Me=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:eN(),ke=Me[k],Z=Me[$],he=yl(0,A[q],Ee[q]),_e=v?A[q]/2-le-he-ke-O.mainAxis:me-he-ke-O.mainAxis,we=v?-A[q]/2+le+he+Z+O.mainAxis:Se+he+Z+O.mainAxis,Ue=e.elements.arrow&&ic(e.elements.arrow),N=Ue?S==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,z=(te=B==null?void 0:B[S])!=null?te:0,Y=U+_e-z-N,ce=U+we-z,re=yl(m?Yd(W,Y):W,U,m?Wr(ne,ce):ne);C[S]=re,H[S]=re-U}if(a){var xe,Ne=S==="x"?Hn:qn,ie=S==="x"?ys:vs,Re=C[R],ge=R==="y"?"height":"width",De=Re+b[Ne],L=Re-b[ie],M=[Hn,qn].indexOf(E)!==-1,Q=(xe=B==null?void 0:B[R])!=null?xe:0,ye=M?De:Re-A[ge]-I[ge]-Q+O.altAxis,X=M?Re+A[ge]+I[ge]-Q-O.altAxis:L,se=m&&M?JJe(ye,Re,X):yl(m?ye:De,Re,m?X:L);C[R]=se,H[R]=se-Re}e.modifiersData[s]=H}}const Iet={name:"preventOverflow",enabled:!0,phase:"main",fn:Met,requiresIfExists:["offset"]};function ket(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Det(t){return t===ns(t)||!bs(t)?TE(t):ket(t)}function Let(t){var e=t.getBoundingClientRect(),n=aa(e.width)/t.offsetWidth||1,s=aa(e.height)/t.offsetHeight||1;return n!==1||s!==1}function Pet(t,e,n){n===void 0&&(n=!1);var s=bs(e),i=bs(e)&&Let(e),r=Er(e),o=la(t,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&((li(e)!=="body"||CE(r))&&(a=Det(e)),bs(e)?(c=la(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=xE(r))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Uet(t){var e=new Map,n=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function i(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var c=e.get(a);c&&i(c)}}),s.push(r)}return t.forEach(function(r){n.has(r.name)||i(r)}),s}function Fet(t){var e=Uet(t);return WJe.reduce(function(n,s){return n.concat(e.filter(function(i){return i.phase===s}))},[])}function Bet(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Get(t){var e=t.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var S1={placement:"bottom",modifiers:[],strategy:"absolute"};function T1(){for(var t=arguments.length,e=new Array(t),n=0;n{this.createPopper()})},closeMenu(t){var e;!this.$el.contains(t.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(t.target))&&(this.isOpen=!1)},createPopper(){const t=this.$el.querySelector("button"),e=this.$refs.dropdown;t&&e&&(this.popperInstance=Xu(t,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},qet={class:"relative inline-block text-left"},$et={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"},Yet={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function Wet(t,e,n,s,i,r){const o=tt("ToolbarButton");return T(),w("div",qet,[l("div",null,[V(o,{onClick:j(r.toggleMenu,["stop"]),title:n.title,icon:"code"},null,8,["onClick","title"])]),(T(),dt(zI,{to:"body"},[i.isOpen?(T(),w("div",$et,[l("div",Yet,[un(t.$slots,"default",{},void 0,!0)])],512)):G("",!0)]))])}const rN=ot(Het,[["render",Wet],["__scopeId","data-v-6c3ea3a5"]]);async function x1(t,e="",n=[]){return new Promise((s,i)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?r.innerHTML=` +`}).use(iKe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),n=ct([]),s=()=>{if(t.markdownText){let r=e.parse(t.markdownText,{}),o=[];n.value=[];for(let a=0;a0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),n.value.push({type:"code",language:rKe(r[a].info),code:r[a].content}));o.length>0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else n.value=[];Le(()=>{ze.replace()})},i=(r,o)=>{n.value[r].code=o};return In(()=>t.markdownText,s),ci(()=>{s(),Le(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:n,updateCode:i}}},aKe={class:"break-all container w-full"},lKe={ref:"mdRender",class:"markdown-content"},cKe=["innerHTML"];function dKe(t,e,n,s,i,r){const o=tt("code-block");return T(),w("div",aKe,[l("div",lKe,[(T(!0),w(Pe,null,Ke(s.markdownItems,(a,c)=>(T(),w("div",{key:c},[a.type==="code"?(T(),dt(o,{key:0,host:n.host,language:a.language,code:a.code,discussion_id:n.discussion_id,message_id:n.message_id,client_id:n.client_id,onUpdateCode:d=>s.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),w("div",{key:1,innerHTML:a.html},null,8,cKe))]))),128))],512)])}const Yu=ot(oKe,[["render",dKe]]),uKe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Yu},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(t){this.message=t,this.has_button=!0,this.show=!0},showBlockingMessage(t){this.message=t,this.has_button=!1,this.show=!0},updateMessage(t){this.message=t,this.show=!0},hideMessage(){this.show=!1}}},pKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},_Ke={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},hKe={class:"container max-h-500 overflow-y-auto"},fKe={class:"text-lg font-medium"},mKe={class:"mt-4 flex justify-center"},gKe={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"},bKe=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),EKe=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),yKe=[bKe,EKe];function vKe(t,e,n,s,i,r){const o=tt("MarkdownRenderer");return i.show?(T(),w("div",pKe,[l("div",_Ke,[l("div",hKe,[l("div",fKe,[V(o,{ref:"mdRender",host:"","markdown-text":i.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",mKe,[i.has_button?(T(),w("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.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 ")):G("",!0),i.has_button?G("",!0):(T(),w("svg",gKe,yKe))])])])):G("",!0)}const y2=ot(uKe,[["render",vKe]]);const SKe={props:{progress:{type:Number,required:!0}}},TKe={class:"progress-bar-container"};function xKe(t,e,n,s,i,r){return T(),w("div",TKe,[l("div",{class:"progress-bar",style:Ht({width:`${n.progress}%`})},null,4)])}const Wu=ot(SKe,[["render",xKe]]),CKe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Le(()=>{ze.replace()})},methods:{btn_clicked(t){console.log(t)},hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,s){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=s||this.DenyButtonText;for(let i=0;i{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=i,console.log("show form",this.controls_array)})}},watch:{controls_array:{deep:!0,handler(t){t.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Le(()=>{ze.replace()})}}},wKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},RKe={class:"relative w-full max-w-md"},AKe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},NKe={class:"flex flex-row flex-grow items-center m-2 p-1"},OKe={class:"grow flex items-center"},MKe=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),IKe={class:"text-lg font-semibold select-none mr-2"},kKe={class:"items-end"},DKe=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),LKe=l("span",{class:"sr-only"},"Close form modal",-1),PKe=[DKe,LKe],UKe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},FKe={class:"px-2"},BKe={key:0},GKe={key:0},VKe={class:"text-base font-semibold"},zKe={key:0,class:"relative inline-flex"},HKe=["onUpdate:modelValue"],qKe=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),$Ke={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},YKe=["onUpdate:modelValue"],WKe={key:1},KKe={class:"text-base font-semibold"},jKe={key:0,class:"relative inline-flex"},QKe=["onUpdate:modelValue"],XKe=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),ZKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},JKe=["onUpdate:modelValue"],eje=["value","selected"],tje={key:1},nje={class:"",onclick:"btn_clicked(item)"},sje={key:2},ije={key:0},rje={class:"text-base font-semibold"},oje={key:0,class:"relative inline-flex"},aje=["onUpdate:modelValue"],lje=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),cje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},dje=["onUpdate:modelValue"],uje={key:1},pje={class:"text-base font-semibold"},_je={key:0,class:"relative inline-flex"},hje=["onUpdate:modelValue"],fje=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),mje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},gje=["onUpdate:modelValue"],bje=["value","selected"],Eje={key:3},yje={class:"text-base font-semibold"},vje={key:0,class:"relative inline-flex"},Sje=["onUpdate:modelValue"],Tje=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),xje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Cje=["onUpdate:modelValue"],wje=["onUpdate:modelValue","min","max"],Rje={key:4},Aje={class:"text-base font-semibold"},Nje={key:0,class:"relative inline-flex"},Oje=["onUpdate:modelValue"],Mje=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),Ije={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},kje=["onUpdate:modelValue"],Dje=["onUpdate:modelValue","min","max"],Lje={key:5},Pje={class:"mb-2 relative flex items-center gap-2"},Uje={for:"default-checkbox",class:"text-base font-semibold"},Fje=["onUpdate:modelValue"],Bje={key:0,class:"relative inline-flex"},Gje=["onUpdate:modelValue"],Vje=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),zje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Hje={key:6},qje={class:"text-base font-semibold"},$je={key:0,class:"relative inline-flex"},Yje=["onUpdate:modelValue"],Wje=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),Kje={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},jje=["onUpdate:modelValue"],Qje=l("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),Xje={class:"flex flex-row flex-grow gap-3"},Zje={class:"p-2 text-center grow"};function Jje(t,e,n,s,i,r){return i.show?(T(),w("div",wKe,[l("div",RKe,[l("div",AKe,[l("div",NKe,[l("div",OKe,[MKe,l("h3",IKe,K(i.title),1)]),l("div",kKe,[l("button",{type:"button",onClick:e[0]||(e[0]=j(o=>r.hide(!1),["stop"])),title:"Close",class:"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"},PKe)])]),l("div",UKe,[(T(!0),w(Pe,null,Ke(i.controls_array,(o,a)=>(T(),w("div",FKe,[o.type=="str"||o.type=="string"?(T(),w("div",BKe,[o.options?G("",!0):(T(),w("div",GKe,[l("label",{class:Ge(["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",VKe,K(o.name)+": ",1),o.help?(T(),w("label",zKe,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,HKe),[[$e,o.isHelp]]),qKe])):G("",!0)],2),o.isHelp?(T(),w("p",$Ke,K(o.help),1)):G("",!0),P(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,YKe),[[pe,o.value]])])),o.options?(T(),w("div",WKe,[l("label",{class:Ge(["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",KKe,K(o.name)+": ",1),o.help?(T(),w("label",jKe,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,QKe),[[$e,o.isHelp]]),XKe])):G("",!0)],2),o.isHelp?(T(),w("p",ZKe,K(o.help),1)):G("",!0),P(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),w(Pe,null,Ke(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},K(c),9,eje))),256))],8,JKe),[[kt,o.value]])])):G("",!0)])):G("",!0),o.type=="btn"?(T(),w("div",tje,[l("button",nje,K(o.name),1)])):G("",!0),o.type=="text"?(T(),w("div",sje,[o.options?G("",!0):(T(),w("div",ije,[l("label",{class:Ge(["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",rje,K(o.name)+": ",1),o.help?(T(),w("label",oje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,aje),[[$e,o.isHelp]]),lje])):G("",!0)],2),o.isHelp?(T(),w("p",cje,K(o.help),1)):G("",!0),P(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,dje),[[pe,o.value]])])),o.options?(T(),w("div",uje,[l("label",{class:Ge(["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",pje,K(o.name)+": ",1),o.help?(T(),w("label",_je,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,hje),[[$e,o.isHelp]]),fje])):G("",!0)],2),o.isHelp?(T(),w("p",mje,K(o.help),1)):G("",!0),P(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),w(Pe,null,Ke(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},K(c),9,bje))),256))],8,gje),[[kt,o.value]])])):G("",!0)])):G("",!0),o.type=="int"?(T(),w("div",Eje,[l("label",{class:Ge(["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,K(o.name)+": ",1),o.help?(T(),w("label",vje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Sje),[[$e,o.isHelp]]),Tje])):G("",!0)],2),o.isHelp?(T(),w("p",xje,K(o.help),1)):G("",!0),P(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,Cje),[[pe,o.value]]),o.min!=null&&o.max!=null?P((T(),w("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,wje)),[[pe,o.value]]):G("",!0)])):G("",!0),o.type=="float"?(T(),w("div",Rje,[l("label",{class:Ge(["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",Aje,K(o.name)+": ",1),o.help?(T(),w("label",Nje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Oje),[[$e,o.isHelp]]),Mje])):G("",!0)],2),o.isHelp?(T(),w("p",Ije,K(o.help),1)):G("",!0),P(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,kje),[[pe,o.value]]),o.min!=null&&o.max!=null?P((T(),w("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,Dje)),[[pe,o.value]]):G("",!0)])):G("",!0),o.type=="bool"?(T(),w("div",Lje,[l("div",Pje,[l("label",Uje,K(o.name)+": ",1),P(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,Fje),[[$e,o.value]]),o.help?(T(),w("label",Bje,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Gje),[[$e,o.isHelp]]),Vje])):G("",!0)]),o.isHelp?(T(),w("p",zje,K(o.help),1)):G("",!0)])):G("",!0),o.type=="list"?(T(),w("div",Hje,[l("label",{class:Ge(["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",qje,K(o.name)+": ",1),o.help?(T(),w("label",$je,[P(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Yje),[[$e,o.isHelp]]),Wje])):G("",!0)],2),o.isHelp?(T(),w("p",Kje,K(o.help),1)):G("",!0),P(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,jje),[[pe,o.value]])])):G("",!0),Qje]))),256)),l("div",Xje,[l("div",Zje,[l("button",{onClick:e[1]||(e[1]=j(o=>r.hide(!0),["stop"])),type:"button",class:"mr-2 text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},K(i.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=j(o=>r.hide(!1),["stop"])),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-11 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"},K(i.DenyButtonText),1)])])])])])])):G("",!0)}const nc=ot(CKe,[["render",Jje]]),eQe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(s=>{this.message=t,this.show=!0,this.resolve=s})}}},tQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},nQe={class:"relative w-full max-w-md max-h-full"},sQe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},iQe=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),rQe=l("span",{class:"sr-only"},"Close modal",-1),oQe=[iQe,rQe],aQe={class:"p-4 text-center"},lQe=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),cQe={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function dQe(t,e,n,s,i,r){return i.show?(T(),w("div",tQe,[l("div",nQe,[l("div",sQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},oQe),l("div",aQe,[lQe,l("h3",cQe,K(i.message),1),l("button",{onClick:e[1]||(e[1]=o=>r.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"},K(i.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>r.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"},K(i.DenyButtonText),1)])])])])):G("",!0)}const v2=ot(eQe,[["render",dQe]]),uQe={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(t){t.target.files&&(this.file=t.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){ae.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(t=>{const e=t.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(t=>{console.error(t)})}}},pQe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},_Qe={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},hQe={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"},fQe=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),mQe=l("span",{class:"sr-only"},"Close modal",-1),gQe=[fQe,mQe],bQe={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},EQe={class:"w-full flex flex-row mt-4 text-center justify-center"},yQe={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},vQe={class:"mb-4 w-full"},SQe={class:"w-full bg-bg-light dark:bg-bg-dark"},TQe=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1),xQe=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1),CQe=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1),wQe=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1),RQe=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1),AQe=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1),NQe=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1),OQe=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1),MQe=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1),IQe=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1),kQe=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1),DQe=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1),LQe=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1),PQe=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1);function UQe(t,e,n,s,i,r){return i.show?(T(),w("div",pQe,[l("div",_Qe,[l("div",hQe,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},gQe),l("div",bQe,[l("div",EQe,[l("button",{type:"submit",onClick:e[1]||(e[1]=j((...o)=>r.submitForm&&r.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]=j(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",yQe,[l("form",vQe,[l("table",SQe,[l("tr",null,[TQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>n.config.personality_conditioning=o)},null,512),[[pe,n.config.personality_conditioning]])])]),l("tr",null,[xQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>n.config.user_message_prefix=o)},null,512),[[pe,n.config.user_message_prefix]])])]),l("tr",null,[CQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>n.config.ai_message_prefix=o)},null,512),[[pe,n.config.ai_message_prefix]])])]),l("tr",null,[wQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>n.config.link_text=o)},null,512),[[pe,n.config.link_text]])])]),l("tr",null,[RQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>n.config.welcome_message=o)},null,512),[[pe,n.config.welcome_message]])])]),l("tr",null,[AQe,l("td",null,[P(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>n.config.model_temperature=o)},null,512),[[pe,n.config.model_temperature]])])]),l("tr",null,[NQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>n.config.model_top_k=o)},null,512),[[pe,n.config.model_top_k]])])]),l("tr",null,[OQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>n.config.model_top_p=o)},null,512),[[pe,n.config.model_top_p]])])]),l("tr",null,[MQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>n.config.model_repeat_penalty=o)},null,512),[[pe,n.config.model_repeat_penalty]])])]),l("tr",null,[IQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>n.config.model_repeat_last_n=o)},null,512),[[pe,n.config.model_repeat_last_n]])])]),l("tr",null,[kQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>n.config.recommended_binding=o)},null,512),[[pe,n.config.recommended_binding]])])]),l("tr",null,[DQe,l("td",null,[P(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>n.config.recommended_model=o)},null,512),[[pe,n.config.recommended_model]])])]),l("tr",null,[LQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>n.config.dependencies=o)},null,512),[[pe,n.config.dependencies]])])]),l("tr",null,[PQe,l("td",null,[P(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>n.config.anti_prompts=o)},null,512),[[pe,n.config.anti_prompts]])])])])])])])])])])):G("",!0)}const S2=ot(uQe,[["render",UQe]]);const FQe={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ae.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.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)})}}},BQe=t=>(Ss("data-v-d504dfc9"),t=t(),Ts(),t),GQe={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},VQe={class:"popup-container"},zQe=["src"],HQe={class:"checkbox-container"},qQe=BQe(()=>l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1));function $Qe(t,e,n,s,i,r){return T(),dt(Us,{name:"fade"},{default:Ie(()=>[i.showPopup?(T(),w("div",GQe,[l("div",VQe,[l("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),l("iframe",{src:i.webpageUrl,class:"iframe-content"},null,8,zQe),l("div",HQe,[P(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)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[$e,this.$store.state.config.show_news_panel]]),qQe])])])):G("",!0)]),_:1})}const T2=ot(FQe,[["render",$Qe],["__scopeId","data-v-d504dfc9"]]),YQe={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(t){this.href==="#"&&(t.preventDefault(),this.$emit("click"))}}},WQe=["href","title"],KQe=["data-feather"];function jQe(t,e,n,s,i,r){return T(),w("a",{href:n.href,onClick:e[0]||(e[0]=(...o)=>r.onClick&&r.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[l("i",{"data-feather":n.icon},null,8,KQe)],8,WQe)}const Ed=ot(YQe,[["render",jQe]]),QQe={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},XQe=["href","title"],ZQe=["data-feather"],JQe={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},eXe=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),tXe=[eXe],nXe={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sXe=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),iXe=[sXe];function rXe(t,e,n,s,i,r){return T(),w("a",{href:n.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:n.title},[n.icon!=="x"&&n.icon!=="discord"?(T(),w("i",{key:0,"data-feather":n.icon},null,8,ZQe)):n.icon==="x"?(T(),w("svg",JQe,tXe)):n.icon==="discord"?(T(),w("svg",nXe,iXe)):G("",!0)],8,XQe)}const dl=ot(QQe,[["render",rXe]]),oXe="/assets/fastapi-4a6542d0.png",aXe="/assets/discord-6817c341.svg",lXe={key:0,class:"navbar-container z-60"},cXe={class:"game-menu"},dXe={name:"Navigation",computed:{filteredNavLinks(){return filteredNavLinks.value}}},x2=Object.assign(dXe,{setup(t){const e=qP(),n=ct(0),s=ct([]),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:()=>Ms.state.config.enable_sd_service||Ms.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Ms.state.config.enable_comfyui_service||Ms.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Ms.state.config.active_tts_service!=="None"&&Ms.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],r=Je(()=>Ms.state.ready?i.filter(d=>d.condition?d.condition():d.active):i.filter(d=>d.active));ci(()=>{o()}),In(()=>e.name,o);function o(){const d=r.value.findIndex(u=>u.route===e.name);d!==-1&&(n.value=d)}function a(d){return e.name===d}function c(d){n.value=d}return(d,u)=>d.$store.state.ready?(T(),w("div",lXe,[l("nav",cXe,[(T(!0),w(Pe,null,Ke(r.value,(h,f)=>(T(),dt(Lt(Qb),{key:f,to:{name:h.route},class:Ge(["menu-item",{"active-link":a(h.route)}]),onClick:m=>c(f),ref_for:!0,ref_key:"menuItems",ref:s},{default:Ie(()=>[et(K(h.text),1)]),_:2},1032,["to","class","onClick"]))),128))])])):G("",!0)}}),uXe="/assets/static_info-b284ded1.svg",pXe="/assets/animated_info-7edcb0f9.svg",gs="/assets/logo-ec01a7c6.png",_Xe="/assets/fun_mode-14669a57.svg",hXe="/assets/normal_mode-f539f08d.svg";const fXe={class:"top-0 shadow-lg navbar-container"},mXe={class:"container flex flex-col lg:flex-row items-center gap-2 pb-0"},gXe={class:"logo-container"},bXe=["src"],EXe=l("div",{class:"flex flex-col justify-center"},[l("p",{class:"text-2xl font-bold drop-shadow-md leading-none"},"LoLLMS"),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1),yXe={class:"flex gap-3 flex-1 items-center justify-end"},vXe={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},SXe=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),TXe=[SXe],xXe={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},CXe=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),wXe=[CXe],RXe={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"},AXe=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),NXe=[AXe],OXe={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},MXe=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),IXe=[MXe],kXe={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},DXe=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),LXe=[DXe],PXe={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},UXe=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),FXe=[UXe],BXe={class:"flex items-center space-x-4"},GXe={class:"flex items-center space-x-4"},VXe={class:"relative group",title:"Lollms News"},zXe=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),HXe=[zXe],qXe=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"}," Lollms News ",-1),$Xe={class:"relative group"},YXe=Na('',1),WXe=[YXe],KXe=Na('',1),jXe=[KXe],QXe={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 bottom-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},XXe={class:"language-selector relative"},ZXe={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"}},JXe={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},eZe=["onClick"],tZe=["onClick"],nZe={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"},sZe=l("i",{"data-feather":"sun"},null,-1),iZe=[sZe],rZe=l("i",{"data-feather":"moon"},null,-1),oZe=[rZe],aZe={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"},lZe={class:"text-2xl animate-pulse mt-2 text-white"},cZe={id:"app"},dZe={name:"TopBar",computed:{storeLogo(){return this.$store.state.config?gs:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:gs},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}},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(t){return console.error("Oopsie! Looks like we hit a snag: ",t),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},components:{Toast:Zl,MessageBox:y2,ProgressBar:Wu,UniversalForm:nc,YesNoDialog:v2,Navigation:x2,PersonalityEditor:S2,PopupViewer:T2,ActionButton:Ed,SocialIcon:dl},watch:{"$store.state.config.fun_mode":function(t,e){console.log(`Fun mode changed from ${e} to ${t}! 🎉`)},"$store.state.isConnected":function(t,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()),Le(()=>{ze.replace()})}},data(){return{customLanguage:"",selectedLanguage:"",isLanguageMenuVisible:!1,static_info:uXe,animated_info:pXe,normal_mode:hXe,fun_mode:_Xe,is_first_connection:!0,discord:aXe,FastAPI:oXe,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:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,posts_headers:{accept:"application/json","Content-Type":"application/json"}}},async mounted(){this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Le(()=>{ze.replace()}),window.addEventListener("resize",this.adjustMenuPosition)},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},created(){this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches},methods:{adjustMenuPosition(){const t=this.$refs.languageMenu;if(t){const e=t.getBoundingClientRect(),n=window.innerWidth;e.right>n?(t.style.left="auto",t.style.right="0"):(t.style.left="0",t.style.right="auto")}},addCustomLanguage(){this.customLanguage.trim()!==""&&(this.selectLanguage(this.customLanguage),this.customLanguage="")},async selectLanguage(t){await this.$store.dispatch("changeLanguage",t),this.toggleLanguageMenu(),this.language=t},async deleteLanguage(t){await this.$store.dispatch("deleteLanguage",t),this.toggleLanguageMenu(),this.language=t},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},restartProgram(t){t.preventDefault(),this.$store.state.api_post_req("restart_program",this.$store.state.client_id),this.rebooting_audio.play(),this.$store.state.toast.showToast("Rebooting the app. Please wait...",410,!1),console.log("this.$store.state.api_get_req",this.$store.state.api_get_req),setTimeout(()=>{window.close()},2e3)},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(t){console.log("Input text:",t)},applyConfiguration(){this.isLoading=!0,console.log(this.$store.state.config),ae.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config},{headers:this.posts_headers}).then(t=>{this.isLoading=!1,t.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),Le(()=>{ze.replace()})})},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()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),Le(()=>{Op(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}Le(()=>{Op(()=>Promise.resolve({}),["assets/stackoverflow-light-077a2b3c.css"])}),this.sunIcon.classList.add("display-none")},themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Op(()=>Promise.resolve({}),["assets/tokyo-night-dark-f9656fc4.css"]),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle()},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")}}},uZe=Object.assign(dZe,{setup(t){return(e,n)=>(T(),w("header",fXe,[l("nav",mXe,[V(Lt(Qb),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",gXe,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?Lt(gs):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:Lt(gs),alt:"Logo",title:"LoLLMS WebUI"},null,8,bXe)]),EXe]),_:1}),l("div",yXe,[e.isModelOK?(T(),w("div",vXe,TXe)):(T(),w("div",xXe,wXe)),e.isGenerating?(T(),w("div",OXe,IXe)):(T(),w("div",RXe,NXe)),e.isConnected?(T(),w("div",kXe,LXe)):(T(),w("div",PXe,FXe))]),l("div",BXe,[V(Ed,{onClick:e.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),V(Ed,{onClick:e.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),V(Ed,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),l("div",GXe,[V(dl,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),V(dl,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),V(dl,{href:"https://x.com/ParisNeo_AI",icon:"x"}),V(dl,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"})]),l("div",VXe,[l("div",{onClick:n[0]||(n[0]=s=>e.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"},HXe),qXe]),l("div",$Xe,[e.is_fun_mode?(T(),w("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:n[1]||(n[1]=s=>e.fun_mode_off())},WXe)):(T(),w("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:n[2]||(n[2]=s=>e.fun_mode_on())},jXe)),l("span",QXe,K(e.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1)]),l("div",XXe,[l("button",{onClick:n[3]||(n[3]=(...s)=>e.toggleLanguageMenu&&e.toggleLanguageMenu(...s)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},K(e.$store.state.language.slice(0,2)),1),e.isLanguageMenuVisible?(T(),w("div",ZXe,[l("ul",JXe,[(T(!0),w(Pe,null,Ke(e.languages,s=>(T(),w("li",{key:s,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:i=>e.deleteLanguage(s),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,eZe),l("div",{onClick:i=>e.selectLanguage(s),class:Ge({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":s===e.$store.state.language,"flex-grow":!0})},K(s),11,tZe)]))),128)),l("li",nZe,[P(l("input",{type:"text","onUpdate:modelValue":n[4]||(n[4]=s=>e.customLanguage=s),onKeyup:n[5]||(n[5]=Vs(j((...s)=>e.addCustomLanguage&&e.addCustomLanguage(...s),["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),[[pe,e.customLanguage]])])])],512)):G("",!0)]),l("div",{class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:n[6]||(n[6]=s=>e.themeSwitch())},iZe),l("div",{class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:n[7]||(n[7]=s=>e.themeSwitch())},oZe)]),V(x2),V(Zl,{ref:"toast"},null,512),V(y2,{ref:"messageBox"},null,512),P(l("div",aZe,[V(Wu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",lZe,K(e.loading_infos)+" ...",1)],512),[[wt,e.progress_visibility]]),V(nc,{ref:"universalForm",class:"z-20"},null,512),V(v2,{ref:"yesNoDialog",class:"z-20"},null,512),V(S2,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",cZe,[V(T2,{ref:"news"},null,512)])]))}}),pZe={class:"flex overflow-hidden flex-grow w-full"},_Ze={__name:"App",setup(t){return(e,n)=>(T(),w("div",{class:Ge([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"])},[V(uZe),l("div",pZe,[V(Lt(DA),null,{default:Ie(({Component:s})=>[(T(),dt(pI,null,[(T(),dt(Tu(s)))],1024))]),_:1})])],2))}},ai=Object.create(null);ai.open="0";ai.close="1";ai.ping="2";ai.pong="3";ai.message="4";ai.upgrade="5";ai.noop="6";const yd=Object.create(null);Object.keys(ai).forEach(t=>{yd[ai[t]]=t});const Bg={type:"error",data:"parser error"},C2=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",w2=typeof ArrayBuffer=="function",R2=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,uE=({type:t,data:e},n,s)=>C2&&e instanceof Blob?n?s(e):r1(e,s):w2&&(e instanceof ArrayBuffer||R2(e))?n?s(e):r1(new Blob([e]),s):s(ai[t]+(e||"")),r1=(t,e)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];e("b"+(s||""))},n.readAsDataURL(t)};function o1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Tm;function hZe(t,e){if(C2&&t.data instanceof Blob)return t.data.arrayBuffer().then(o1).then(e);if(w2&&(t.data instanceof ArrayBuffer||R2(t.data)))return e(o1(t.data));uE(t,!1,n=>{Tm||(Tm=new TextEncoder),e(Tm.encode(n))})}const a1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,s,i=0,r,o,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(s=0;s>4,u[i++]=(o&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return d},mZe=typeof ArrayBuffer=="function",pE=(t,e)=>{if(typeof t!="string")return{type:"message",data:A2(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:gZe(t.substring(1),e)}:yd[n]?t.length>1?{type:yd[n],data:t.substring(1)}:{type:yd[n]}:Bg},gZe=(t,e)=>{if(mZe){const n=fZe(t);return A2(n,e)}else return{base64:!0,data:t}},A2=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},N2=String.fromCharCode(30),bZe=(t,e)=>{const n=t.length,s=new Array(n);let i=0;t.forEach((r,o)=>{uE(r,!1,a=>{s[o]=a,++i===n&&e(s.join(N2))})})},EZe=(t,e)=>{const n=t.split(N2),s=[];for(let i=0;i{const s=n.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let xm;function wc(t){return t.reduce((e,n)=>e+n.length,0)}function Rc(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(Bg);break}i=u*Math.pow(2,32)+d.getUint32(4),s=3}else{if(wc(n)t){a.enqueue(Bg);break}}}})}const O2=4;function an(t){if(t)return SZe(t)}function SZe(t){for(var e in an.prototype)t[e]=an.prototype[e];return t}an.prototype.on=an.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};an.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function M2(t,...e){return e.reduce((n,s)=>(t.hasOwnProperty(s)&&(n[s]=t[s]),n),{})}const TZe=ds.setTimeout,xZe=ds.clearTimeout;function Ku(t,e){e.useNativeTimers?(t.setTimeoutFn=TZe.bind(ds),t.clearTimeoutFn=xZe.bind(ds)):(t.setTimeoutFn=ds.setTimeout.bind(ds),t.clearTimeoutFn=ds.clearTimeout.bind(ds))}const CZe=1.33;function wZe(t){return typeof t=="string"?RZe(t):Math.ceil((t.byteLength||t.size)*CZe)}function RZe(t){let e=0,n=0;for(let s=0,i=t.length;s=57344?n+=3:(s++,n+=4);return n}function AZe(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function NZe(t){let e={},n=t.split("&");for(let s=0,i=n.length;s0);return e}function k2(){const t=d1(+new Date);return t!==c1?(l1=0,c1=t):t+"."+d1(l1++)}for(;Ac{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=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)};EZe(e,this.socket.binaryType).forEach(n),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,bZe(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=k2()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ko(this.uri(),e)}doWrite(e,n){const s=this.request({method:"POST",data:e});s.on("success",n),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=e}}let Ko=class vd extends an{constructor(e,n){super(),Ku(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=M2(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const s=this.xhr=new L2(n);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}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 i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),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(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=vd.requestsCount++,vd.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=kZe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete vd.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()}};Ko.requestsCount=0;Ko.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",u1);else if(typeof addEventListener=="function"){const t="onpagehide"in ds?"pagehide":"unload";addEventListener(t,u1,!1)}}function u1(){for(let t in Ko.requests)Ko.requests.hasOwnProperty(t)&&Ko.requests[t].abort()}const hE=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Nc=ds.WebSocket||ds.MozWebSocket,p1=!0,PZe="arraybuffer",_1=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class UZe extends _E{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,s=_1?{}:M2(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=p1&&!_1?n?new Nc(e,n):new Nc(e):new Nc(e,n,s)}catch(i){return this.emitReserved("error",i)}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 n=0;n{const o={};try{p1&&this.ws.send(r)}catch{}i&&hE(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=k2()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Nc}}class FZe extends _E{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=vZe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(n).getReader(),i=yZe();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:a,value:c})=>{a||(this.onPacket(c),r())}).catch(a=>{})};r();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 n=0;n{i&&hE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const BZe={websocket:UZe,webtransport:FZe,polling:LZe},GZe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,VZe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vg(t){if(t.length>2e3)throw"URI too long";const e=t,n=t.indexOf("["),s=t.indexOf("]");n!=-1&&s!=-1&&(t=t.substring(0,n)+t.substring(n,s).replace(/:/g,";")+t.substring(s,t.length));let i=GZe.exec(t||""),r={},o=14;for(;o--;)r[VZe[o]]=i[o]||"";return n!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=zZe(r,r.path),r.queryKey=HZe(r,r.query),r}function zZe(t,e){const n=/\/{2,9}/g,s=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function HZe(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(n[i]=r)}),n}let P2=class Po extends an{constructor(e,n={}){super(),this.binaryType=PZe,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Vg(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Vg(n.host).host),Ku(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=NZe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(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"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=O2,n.transport=e,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new BZe[e](s)}open(){let e;if(this.opts.rememberUpgrade&&Po.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}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",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),s=!1;Po.priorWebsocketSuccess=!1;const i=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Po.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function r(){s||(s=!0,u(),n.close(),n=null)}const o=h=>{const f=new Error("probe error: "+h);f.transport=n.name,r(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function c(){o("socket closed")}function d(h){n&&h.name!==n.name&&r()}const u=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",c),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Po.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),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 n=1;for(let s=0;s0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(e,n,s){return this.sendPacket("message",e,n,s),this}send(e,n,s){return this.sendPacket("message",e,n,s),this}sendPacket(e,n,s,i){if(typeof n=="function"&&(i=n,n=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:n,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};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){Po.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let s=0;const i=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,U2=Object.prototype.toString,WZe=typeof Blob=="function"||typeof Blob<"u"&&U2.call(Blob)==="[object BlobConstructor]",KZe=typeof File=="function"||typeof File<"u"&&U2.call(File)==="[object FileConstructor]";function fE(t){return $Ze&&(t instanceof ArrayBuffer||YZe(t))||WZe&&t instanceof Blob||KZe&&t instanceof File}function Sd(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,s=t.length;n=0&&t.num{delete this.acks[e];for(let o=0;o{this.io.clearTimeoutFn(r),n.apply(this,[null,...o])}}emitWithAck(e,...n){const s=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,r)=>{n.push((o,a)=>s?o?r(o):i(a):i(o)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:Ot.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ot.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 Ot.EVENT:case Ot.BINARY_EVENT:this.onevent(e);break;case Ot.ACK:case Ot.BINARY_ACK:this.onack(e);break;case Ot.DISCONNECT:this.ondisconnect();break;case Ot.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 n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)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 n=this;let s=!1;return function(...i){s||(s=!0,n.packet({type:Ot.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:Ot.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 n=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}Pa.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};Pa.prototype.reset=function(){this.attempts=0};Pa.prototype.setMin=function(t){this.ms=t};Pa.prototype.setMax=function(t){this.max=t};Pa.prototype.setJitter=function(t){this.jitter=t};class qg extends an{constructor(e,n){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ku(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Pa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||tJe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 P2(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=Os(n,"open",function(){s.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Os(n,"error",r);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),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(Os(e,"ping",this.onping.bind(this)),Os(e,"data",this.ondata.bind(this)),Os(e,"error",this.onerror.bind(this)),Os(e,"close",this.onclose.bind(this)),Os(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){hE(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new F2(this,e,n),this.nsps[e]=s),s}_destroy(e){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(e){const n=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"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);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 Xa={};function Td(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=qZe(t,e.path||"/socket.io"),s=n.source,i=n.id,r=n.path,o=Xa[i]&&r in Xa[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new qg(s,e):(Xa[i]||(Xa[i]=new qg(s,e)),c=Xa[i]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(Td,{Manager:qg,Socket:F2,io:Td,connect:Td});const B2="/";console.log(B2);const qe=new Td(B2,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const sJe={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){Le(()=>{ze.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.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(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},iJe={class:"flex items-center space-x-2"},rJe=["value","type","placeholder"],oJe=["value","min","max"],aJe=l("i",{"data-feather":"clipboard"},null,-1),lJe=[aJe],cJe=l("i",{"data-feather":"upload"},null,-1),dJe=[cJe],uJe=["accept"];function pJe(t,e,n,s,i,r){return T(),w("div",iJe,[t.useSlider?(T(),w("input",{key:1,type:"range",value:parseInt(i.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.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,oJe)):(T(),w("input",{key:0,value:i.inputValue,type:n.inputType,placeholder:i.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.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,rJe)),l("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.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"},lJe),n.inputType==="file"?(T(),w("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.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"},dJe)):G("",!0),n.inputType==="file"?(T(),w("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,uJe)):G("",!0)])}const gE=ot(sJe,[["render",pJe]]),_Je={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"]}}},hJe={class:"w-full"},fJe={class:"break-words"},mJe={class:"break-words mt-2"},gJe={class:"mt-4"};function bJe(t,e,n,s,i,r){return T(),w("div",hJe,[l("div",fJe,[(T(!0),w(Pe,null,Ke(n.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Ht({backgroundColor:i.colors[a%i.colors.length]})},K(o[0]),5)]))),128))]),l("div",mJe,[(T(!0),w(Pe,null,Ke(n.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Ht({backgroundColor:i.colors[a%i.colors.length]})},K(o[1]),5)]))),128))]),l("div",gJe,[l("strong",null,"Total Tokens: "+K(n.namedTokens.length),1)])])}const EJe=ot(_Je,[["render",bJe]]),yJe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function vJe(t,e,n,s,i,r){return T(),w("button",MR({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",[n.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},t.$attrs,SI(t.$listeners,!0)),[un(t.$slots,"icon"),un(t.$slots,"default")],16)}const G2=ot(yJe,[["render",vJe]]);const SJe={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)}}},TJe={key:1,class:"flex flex-wrap"},xJe={key:2,class:"mb-2"};function CJe(t,e,n,s,i,r){return T(),w("div",null,[i.isActive?(T(),w("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):G("",!0),P(l("div",{class:Ge(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{subcard:n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&i.isHovered,active:i.isActive}]),onMouseenter:e[2]||(e[2]=o=>i.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>i.isHovered=!1),onClick:e[4]||(e[4]=j((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:Ht({cursor:this.disableFocus?"":"pointer"})},[n.title?(T(),w("div",{key:0,onClick:e[1]||(e[1]=o=>i.shrink=!0),class:Ge([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},K(n.title),3)):G("",!0),n.isHorizontal?(T(),w("div",TJe,[un(t.$slots,"default")])):(T(),w("div",xJe,[un(t.$slots,"default")]))],38),[[wt,i.shrink===!1]]),n.is_subcard?P((T(),w("div",{key:1,onClick:e[5]||(e[5]=o=>i.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"},K(n.title),513)),[[wt,i.shrink===!0]]):P((T(),w("div",{key:2,onClick:e[6]||(e[6]=o=>i.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)),[[wt,i.shrink===!0]])])}const ju=ot(SJe,[["render",CJe]]),V2="/assets/code_block-e2753d3f.svg",z2="/assets/python_block-4008a934.png",H2="/assets/javascript_block-5e59df30.svg",q2="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==",$2="/assets/cpp_block-109b2fbe.png",Y2="/assets/html5_block-205d2852.png",W2="/assets/LaTeX_block-06b165c0.png",K2="/assets/bash_block-7ca80e4e.png",wJe="/assets/tokenize_icon-0553c60f.svg",RJe="/assets/deaf_on-7481cb29.svg",AJe="/assets/deaf_off-c2c46908.svg",NJe="/assets/rec_on-3b37b566.svg",OJe="/assets/rec_off-2c08e836.svg",j2="/assets/loading-c3bdfb0a.svg",MJe={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""}}}},IJe=["title"],kJe={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"},DJe=["innerHTML"];function LJe(t,e,n,s,i,r){return T(),w("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:n.title,onClick:e[0]||(e[0]=o=>t.$emit("click"))},[(T(),w("svg",kJe,[l("g",{innerHTML:r.iconPath},null,8,DJe)]))],8,IJe)}const bE=ot(MJe,[["render",LJe]]);var Hn="top",ys="bottom",vs="right",qn="left",EE="auto",sc=[Hn,ys,vs,qn],oa="start",zl="end",PJe="clippingParents",Q2="viewport",Za="popper",UJe="reference",f1=sc.reduce(function(t,e){return t.concat([e+"-"+oa,e+"-"+zl])},[]),X2=[].concat(sc,[EE]).reduce(function(t,e){return t.concat([e,e+"-"+oa,e+"-"+zl])},[]),FJe="beforeRead",BJe="read",GJe="afterRead",VJe="beforeMain",zJe="main",HJe="afterMain",qJe="beforeWrite",$Je="write",YJe="afterWrite",WJe=[FJe,BJe,GJe,VJe,zJe,HJe,qJe,$Je,YJe];function li(t){return t?(t.nodeName||"").toLowerCase():null}function ns(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function no(t){var e=ns(t).Element;return t instanceof e||t instanceof Element}function bs(t){var e=ns(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function yE(t){if(typeof ShadowRoot>"u")return!1;var e=ns(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function KJe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var s=e.styles[n]||{},i=e.attributes[n]||{},r=e.elements[n];!bs(r)||!li(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(o){var a=i[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function jJe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(s){var i=e.elements[s],r=e.attributes[s]||{},o=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:n[s]),a=o.reduce(function(c,d){return c[d]="",c},{});!bs(i)||!li(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(c){i.removeAttribute(c)}))})}}const QJe={name:"applyStyles",enabled:!0,phase:"write",fn:KJe,effect:jJe,requires:["computeStyles"]};function ri(t){return t.split("-")[0]}var Wr=Math.max,Yd=Math.min,aa=Math.round;function $g(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Z2(){return!/^((?!chrome|android).)*safari/i.test($g())}function la(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var s=t.getBoundingClientRect(),i=1,r=1;e&&bs(t)&&(i=t.offsetWidth>0&&aa(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&aa(s.height)/t.offsetHeight||1);var o=no(t)?ns(t):window,a=o.visualViewport,c=!Z2()&&n,d=(s.left+(c&&a?a.offsetLeft:0))/i,u=(s.top+(c&&a?a.offsetTop:0))/r,h=s.width/i,f=s.height/r;return{width:h,height:f,top:u,right:d+h,bottom:u+f,left:d,x:d,y:u}}function vE(t){var e=la(t),n=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:s}}function J2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&yE(n)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Di(t){return ns(t).getComputedStyle(t)}function XJe(t){return["table","td","th"].indexOf(li(t))>=0}function Er(t){return((no(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qu(t){return li(t)==="html"?t:t.assignedSlot||t.parentNode||(yE(t)?t.host:null)||Er(t)}function m1(t){return!bs(t)||Di(t).position==="fixed"?null:t.offsetParent}function ZJe(t){var e=/firefox/i.test($g()),n=/Trident/i.test($g());if(n&&bs(t)){var s=Di(t);if(s.position==="fixed")return null}var i=Qu(t);for(yE(i)&&(i=i.host);bs(i)&&["html","body"].indexOf(li(i))<0;){var r=Di(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function ic(t){for(var e=ns(t),n=m1(t);n&&XJe(n)&&Di(n).position==="static";)n=m1(n);return n&&(li(n)==="html"||li(n)==="body"&&Di(n).position==="static")?e:n||ZJe(t)||e}function SE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yl(t,e,n){return Wr(t,Yd(e,n))}function JJe(t,e,n){var s=yl(t,e,n);return s>n?n:s}function eN(){return{top:0,right:0,bottom:0,left:0}}function tN(t){return Object.assign({},eN(),t)}function nN(t,e){return e.reduce(function(n,s){return n[s]=t,n},{})}var eet=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,tN(typeof e!="number"?e:nN(e,sc))};function tet(t){var e,n=t.state,s=t.name,i=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=ri(n.placement),c=SE(a),d=[qn,vs].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var h=eet(i.padding,n),f=vE(r),m=c==="y"?Hn:qn,_=c==="y"?ys:vs,g=n.rects.reference[u]+n.rects.reference[c]-o[c]-n.rects.popper[u],b=o[c]-n.rects.reference[c],E=ic(r),y=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,v=g/2-b/2,S=h[m],R=y-f[u]-h[_],C=y/2-f[u]/2+v,A=yl(S,C,R),I=c;n.modifiersData[s]=(e={},e[I]=A,e.centerOffset=A-C,e)}}function net(t){var e=t.state,n=t.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||J2(e.elements.popper,i)&&(e.elements.arrow=i))}const set={name:"arrow",enabled:!0,phase:"main",fn:tet,effect:net,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(t){return t.split("-")[1]}var iet={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ret(t,e){var n=t.x,s=t.y,i=e.devicePixelRatio||1;return{x:aa(n*i)/i||0,y:aa(s*i)/i||0}}function g1(t){var e,n=t.popper,s=t.popperRect,i=t.placement,r=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,h=t.isFixed,f=o.x,m=f===void 0?0:f,_=o.y,g=_===void 0?0:_,b=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=b.x,g=b.y;var E=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=qn,S=Hn,R=window;if(d){var C=ic(n),A="clientHeight",I="clientWidth";if(C===ns(n)&&(C=Er(n),Di(C).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),C=C,i===Hn||(i===qn||i===vs)&&r===zl){S=ys;var x=h&&C===R&&R.visualViewport?R.visualViewport.height:C[A];g-=x-s.height,g*=c?1:-1}if(i===qn||(i===Hn||i===ys)&&r===zl){v=vs;var O=h&&C===R&&R.visualViewport?R.visualViewport.width:C[I];m-=O-s.width,m*=c?1:-1}}var B=Object.assign({position:a},d&&iet),H=u===!0?ret({x:m,y:g},ns(n)):{x:m,y:g};if(m=H.x,g=H.y,c){var te;return Object.assign({},B,(te={},te[S]=y?"0":"",te[v]=E?"0":"",te.transform=(R.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",te))}return Object.assign({},B,(e={},e[S]=y?g+"px":"",e[v]=E?m+"px":"",e.transform="",e))}function oet(t){var e=t.state,n=t.options,s=n.gpuAcceleration,i=s===void 0?!0:s,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:ri(e.placement),variation:ca(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,g1(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,g1(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 aet={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oet,data:{}};var Oc={passive:!0};function cet(t){var e=t.state,n=t.instance,s=t.options,i=s.scroll,r=i===void 0?!0:i,o=s.resize,a=o===void 0?!0:o,c=ns(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",n.update,Oc)}),a&&c.addEventListener("resize",n.update,Oc),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Oc)}),a&&c.removeEventListener("resize",n.update,Oc)}}const det={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cet,data:{}};var uet={left:"right",right:"left",bottom:"top",top:"bottom"};function xd(t){return t.replace(/left|right|bottom|top/g,function(e){return uet[e]})}var pet={start:"end",end:"start"};function b1(t){return t.replace(/start|end/g,function(e){return pet[e]})}function TE(t){var e=ns(t),n=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:n,scrollTop:s}}function xE(t){return la(Er(t)).left+TE(t).scrollLeft}function _et(t,e){var n=ns(t),s=Er(t),i=n.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,c=0;if(i){r=i.width,o=i.height;var d=Z2();(d||!d&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:a+xE(t),y:c}}function het(t){var e,n=Er(t),s=TE(t),i=(e=t.ownerDocument)==null?void 0:e.body,r=Wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+xE(t),c=-s.scrollTop;return Di(i||n).direction==="rtl"&&(a+=Wr(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:c}}function CE(t){var e=Di(t),n=e.overflow,s=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function sN(t){return["html","body","#document"].indexOf(li(t))>=0?t.ownerDocument.body:bs(t)&&CE(t)?t:sN(Qu(t))}function vl(t,e){var n;e===void 0&&(e=[]);var s=sN(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),r=ns(s),o=i?[r].concat(r.visualViewport||[],CE(s)?s:[]):s,a=e.concat(o);return i?a:a.concat(vl(Qu(o)))}function Yg(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fet(t,e){var n=la(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function E1(t,e,n){return e===Q2?Yg(_et(t,n)):no(e)?fet(e,n):Yg(het(Er(t)))}function met(t){var e=vl(Qu(t)),n=["absolute","fixed"].indexOf(Di(t).position)>=0,s=n&&bs(t)?ic(t):t;return no(s)?e.filter(function(i){return no(i)&&J2(i,s)&&li(i)!=="body"}):[]}function get(t,e,n,s){var i=e==="clippingParents"?met(t):[].concat(e),r=[].concat(i,[n]),o=r[0],a=r.reduce(function(c,d){var u=E1(t,d,s);return c.top=Wr(u.top,c.top),c.right=Yd(u.right,c.right),c.bottom=Yd(u.bottom,c.bottom),c.left=Wr(u.left,c.left),c},E1(t,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 iN(t){var e=t.reference,n=t.element,s=t.placement,i=s?ri(s):null,r=s?ca(s):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,c;switch(i){case Hn:c={x:o,y:e.y-n.height};break;case ys:c={x:o,y:e.y+e.height};break;case vs:c={x:e.x+e.width,y:a};break;case qn:c={x:e.x-n.width,y:a};break;default:c={x:e.x,y:e.y}}var d=i?SE(i):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case oa:c[d]=c[d]-(e[u]/2-n[u]/2);break;case zl:c[d]=c[d]+(e[u]/2-n[u]/2);break}}return c}function Hl(t,e){e===void 0&&(e={});var n=e,s=n.placement,i=s===void 0?t.placement:s,r=n.strategy,o=r===void 0?t.strategy:r,a=n.boundary,c=a===void 0?PJe:a,d=n.rootBoundary,u=d===void 0?Q2:d,h=n.elementContext,f=h===void 0?Za:h,m=n.altBoundary,_=m===void 0?!1:m,g=n.padding,b=g===void 0?0:g,E=tN(typeof b!="number"?b:nN(b,sc)),y=f===Za?UJe:Za,v=t.rects.popper,S=t.elements[_?y:f],R=get(no(S)?S:S.contextElement||Er(t.elements.popper),c,u,o),C=la(t.elements.reference),A=iN({reference:C,element:v,strategy:"absolute",placement:i}),I=Yg(Object.assign({},v,A)),x=f===Za?I:C,O={top:R.top-x.top+E.top,bottom:x.bottom-R.bottom+E.bottom,left:R.left-x.left+E.left,right:x.right-R.right+E.right},B=t.modifiersData.offset;if(f===Za&&B){var H=B[i];Object.keys(O).forEach(function(te){var k=[vs,ys].indexOf(te)>=0?1:-1,$=[Hn,ys].indexOf(te)>=0?"y":"x";O[te]+=H[$]*k})}return O}function bet(t,e){e===void 0&&(e={});var n=e,s=n.placement,i=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?X2:c,u=ca(s),h=u?a?f1:f1.filter(function(_){return ca(_)===u}):sc,f=h.filter(function(_){return d.indexOf(_)>=0});f.length===0&&(f=h);var m=f.reduce(function(_,g){return _[g]=Hl(t,{placement:g,boundary:i,rootBoundary:r,padding:o})[ri(g)],_},{});return Object.keys(m).sort(function(_,g){return m[_]-m[g]})}function Eet(t){if(ri(t)===EE)return[];var e=xd(t);return[b1(t),e,b1(e)]}function yet(t){var e=t.state,n=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,c=n.fallbackPlacements,d=n.padding,u=n.boundary,h=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,_=m===void 0?!0:m,g=n.allowedAutoPlacements,b=e.options.placement,E=ri(b),y=E===b,v=c||(y||!_?[xd(b)]:Eet(b)),S=[b].concat(v).reduce(function(Ee,Me){return Ee.concat(ri(Me)===EE?bet(e,{placement:Me,boundary:u,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:g}):Me)},[]),R=e.rects.reference,C=e.rects.popper,A=new Map,I=!0,x=S[0],O=0;O=0,$=k?"width":"height",q=Hl(e,{placement:B,boundary:u,rootBoundary:h,altBoundary:f,padding:d}),U=k?te?vs:qn:te?ys:Hn;R[$]>C[$]&&(U=xd(U));var W=xd(U),ne=[];if(r&&ne.push(q[H]<=0),a&&ne.push(q[U]<=0,q[W]<=0),ne.every(function(Ee){return Ee})){x=B,I=!1;break}A.set(B,ne)}if(I)for(var le=_?3:1,me=function(Me){var ke=S.find(function(Z){var he=A.get(Z);if(he)return he.slice(0,Me).every(function(_e){return _e})});if(ke)return x=ke,"break"},Se=le;Se>0;Se--){var de=me(Se);if(de==="break")break}e.placement!==x&&(e.modifiersData[s]._skip=!0,e.placement=x,e.reset=!0)}}const vet={name:"flip",enabled:!0,phase:"main",fn:yet,requiresIfExists:["offset"],data:{_skip:!1}};function y1(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function v1(t){return[Hn,vs,ys,qn].some(function(e){return t[e]>=0})}function Tet(t){var e=t.state,n=t.name,s=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,o=Hl(e,{elementContext:"reference"}),a=Hl(e,{altBoundary:!0}),c=y1(o,s),d=y1(a,i,r),u=v1(c),h=v1(d);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const xet={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tet};function Cet(t,e,n){var s=ri(t),i=[qn,Hn].indexOf(s)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[qn,vs].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function wet(t){var e=t.state,n=t.options,s=t.name,i=n.offset,r=i===void 0?[0,0]:i,o=X2.reduce(function(u,h){return u[h]=Cet(h,e.rects,r),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 Ret={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wet};function Aet(t){var e=t.state,n=t.name;e.modifiersData[n]=iN({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Net={name:"popperOffsets",enabled:!0,phase:"read",fn:Aet,data:{}};function Oet(t){return t==="x"?"y":"x"}function Met(t){var e=t.state,n=t.options,s=t.name,i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,h=n.padding,f=n.tether,m=f===void 0?!0:f,_=n.tetherOffset,g=_===void 0?0:_,b=Hl(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),E=ri(e.placement),y=ca(e.placement),v=!y,S=SE(E),R=Oet(S),C=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,x=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(C){if(r){var te,k=S==="y"?Hn:qn,$=S==="y"?ys:vs,q=S==="y"?"height":"width",U=C[S],W=U+b[k],ne=U-b[$],le=m?-I[q]/2:0,me=y===oa?A[q]:I[q],Se=y===oa?-I[q]:-A[q],de=e.elements.arrow,Ee=m&&de?vE(de):{width:0,height:0},Me=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:eN(),ke=Me[k],Z=Me[$],he=yl(0,A[q],Ee[q]),_e=v?A[q]/2-le-he-ke-O.mainAxis:me-he-ke-O.mainAxis,we=v?-A[q]/2+le+he+Z+O.mainAxis:Se+he+Z+O.mainAxis,Ue=e.elements.arrow&&ic(e.elements.arrow),N=Ue?S==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,z=(te=B==null?void 0:B[S])!=null?te:0,Y=U+_e-z-N,ce=U+we-z,re=yl(m?Yd(W,Y):W,U,m?Wr(ne,ce):ne);C[S]=re,H[S]=re-U}if(a){var xe,Ne=S==="x"?Hn:qn,ie=S==="x"?ys:vs,Re=C[R],ge=R==="y"?"height":"width",De=Re+b[Ne],L=Re-b[ie],M=[Hn,qn].indexOf(E)!==-1,Q=(xe=B==null?void 0:B[R])!=null?xe:0,ye=M?De:Re-A[ge]-I[ge]-Q+O.altAxis,X=M?Re+A[ge]+I[ge]-Q-O.altAxis:L,se=m&&M?JJe(ye,Re,X):yl(m?ye:De,Re,m?X:L);C[R]=se,H[R]=se-Re}e.modifiersData[s]=H}}const Iet={name:"preventOverflow",enabled:!0,phase:"main",fn:Met,requiresIfExists:["offset"]};function ket(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Det(t){return t===ns(t)||!bs(t)?TE(t):ket(t)}function Let(t){var e=t.getBoundingClientRect(),n=aa(e.width)/t.offsetWidth||1,s=aa(e.height)/t.offsetHeight||1;return n!==1||s!==1}function Pet(t,e,n){n===void 0&&(n=!1);var s=bs(e),i=bs(e)&&Let(e),r=Er(e),o=la(t,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&((li(e)!=="body"||CE(r))&&(a=Det(e)),bs(e)?(c=la(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=xE(r))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Uet(t){var e=new Map,n=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function i(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var c=e.get(a);c&&i(c)}}),s.push(r)}return t.forEach(function(r){n.has(r.name)||i(r)}),s}function Fet(t){var e=Uet(t);return WJe.reduce(function(n,s){return n.concat(e.filter(function(i){return i.phase===s}))},[])}function Bet(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Get(t){var e=t.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(e).map(function(n){return e[n]})}var S1={placement:"bottom",modifiers:[],strategy:"absolute"};function T1(){for(var t=arguments.length,e=new Array(t),n=0;n{this.createPopper()})},closeMenu(t){var e;!this.$el.contains(t.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(t.target))&&(this.isOpen=!1)},createPopper(){const t=this.$el.querySelector("button"),e=this.$refs.dropdown;t&&e&&(this.popperInstance=Xu(t,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},qet={class:"relative inline-block text-left"},$et={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"},Yet={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function Wet(t,e,n,s,i,r){const o=tt("ToolbarButton");return T(),w("div",qet,[l("div",null,[V(o,{onClick:j(r.toggleMenu,["stop"]),title:n.title,icon:"code"},null,8,["onClick","title"])]),(T(),dt(zI,{to:"body"},[i.isOpen?(T(),w("div",$et,[l("div",Yet,[un(t.$slots,"default",{},void 0,!0)])],512)):G("",!0)]))])}const rN=ot(Het,[["render",Wet],["__scopeId","data-v-6c3ea3a5"]]);async function x1(t,e="",n=[]){return new Promise((s,i)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?r.innerHTML=`

${t}

@@ -78,7 +78,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),me=U,le=W),ne===void 0 `+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+4+t.length):(this.text=this.text.slice(0,e)+"\n```"+t+` `+this.text.slice(e,n)+"\n```\n"+this.text.slice(n),e=e+3+t.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(t){const e=t.target,n=e.selectionStart,s=e.selectionEnd,i=e.value.substring(0,n),r=e.value.substring(s),o=i+" "+r;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,ae.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(t=>{console.log(t),t.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(t=>{this.$refs.toast.showToast(`Error ${t}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let t=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,n=this.text;t!=e&&(n=n.slice(t,e)),ae.post("./text2Wave",{client_id:this.$store.state.client_id,text:n}).then(s=>{console.log(s.data.url);let i=s.data.url;this.audio_url=i,this.isSynthesizingVoice=!1,Le(()=>{ze.replace()})}).catch(s=>{this.$refs.toast.showToast(`Error: ${s}`,4,!1),this.isSynthesizingVoice=!1,Le(()=>{ze.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const n=i=>{let r=this.text.substring(i,i+e);const o=[".","!","?",` `];let a=-1;return o.forEach(c=>{const d=r.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+i+1},s=()=>{const i=n(t),r=this.text.substring(t,i);this.msg.text=r,t=i+1,this.msg.onend=o=>{t{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",i))},this.speechSynthesis.speak(this.msg)};s()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),qe.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const t=await ae.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(t.data.named_tokens),this.namedTokens=t.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${t}`),qe.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){qe.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=Ket(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={client_id:this.$store.state.client_id,name:t,content:this.text},ae.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){ae.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?ae.post("/stop_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!1,this.pending=!1,console.log(t),this.text+=t.data.text,console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):ae.post("/start_recording",{client_id:this.$store.state.client_id}).then(t=>{this.is_recording=!0,this.pending=!1,console.log(t.data)}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?ae.get("/stop_recording").then(t=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=t.data.text,this.read()}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}):ae.get("/start_recording").then(t=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},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.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},Qet={class:"container w-full background-color shadow-lg 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"},Xet={class:"container flex flex-row m-2 w-full"},Zet={class:"flex-grow w-full m-2"},Jet={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},ett={class:"flex items-center space-x-2"},ttt=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:"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),ntt=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:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1),stt=["src"],itt=l("span",{class:"w-80"},null,-1),rtt=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:"M6 18L18 6M6 6l12 12"})],-1),ott=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),att=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:"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15.536a5 5 0 001.414 1.414m2.828-9.9a9 9 0 012.828-2.828"})],-1),ltt=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),ctt=["src"],dtt=["src"],utt=["src"],ptt=["src"],_tt=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),htt={key:1,class:"w-6 h-6"},ftt=l("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",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),mtt=[ftt],gtt=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:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1),btt=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:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),Ett=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:"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),ytt={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},vtt=l("input",{type:"file",id:"import-input",class:"hidden"},null,-1),Stt={key:0},Ttt=["src"],xtt={key:2},Ctt={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},wtt=l("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1),Rtt=["value"],Att={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},Ntt=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"},"Selecting model...")],-1),Ott=[Ntt],Mtt=["value"],Itt=l("br",null,null,-1),ktt=l("i",{"data-feather":"check"},null,-1),Dtt=[ktt],Ltt=l("i",{"data-feather":"plus"},null,-1),Ptt=[Ltt],Utt=l("i",{"data-feather":"x"},null,-1),Ftt=[Utt],Btt=l("i",{"data-feather":"refresh-ccw"},null,-1),Gtt=[Btt],Vtt={class:"slider-container ml-2 mr-2"},ztt=l("h3",{class:"text-gray-600"},"Temperature",-1),Htt={class:"slider-value text-gray-500"},qtt={class:"slider-container ml-2 mr-2"},$tt=l("h3",{class:"text-gray-600"},"Top K",-1),Ytt={class:"slider-value text-gray-500"},Wtt={class:"slider-container ml-2 mr-2"},Ktt=l("h3",{class:"text-gray-600"},"Top P",-1),jtt={class:"slider-value text-gray-500"},Qtt={class:"slider-container ml-2 mr-2"},Xtt=l("h3",{class:"text-gray-600"},"Repeat Penalty",-1),Ztt={class:"slider-value text-gray-500"},Jtt={class:"slider-container ml-2 mr-2"},ent=l("h3",{class:"text-gray-600"},"Repeat Last N",-1),tnt={class:"slider-value text-gray-500"},nnt={class:"slider-container ml-2 mr-2"},snt=l("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),int={class:"slider-value text-gray-500"},rnt={class:"slider-container ml-2 mr-2"},ont=l("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),ant={class:"slider-value text-gray-500"},lnt={class:"slider-container ml-2 mr-2"},cnt=l("h3",{class:"text-gray-600"},"Seed",-1),dnt={class:"slider-value text-gray-500"};function unt(t,e,n,s,i,r){const o=tt("ChatBarButton"),a=tt("ToolbarButton"),c=tt("DropdownSubmenu"),d=tt("DropdownMenu"),u=tt("tokens-hilighter"),h=tt("MarkdownRenderer"),f=tt("Card"),m=tt("Toast");return T(),w(Pe,null,[l("div",Qet,[l("div",Xet,[l("div",Zet,[l("div",Jet,[l("div",ett,[P(V(o,{onClick:r.generate,title:"Generate from the current cursor position"},{icon:Ie(()=>[ttt]),_:1},8,["onClick"]),[[wt,!i.generating]]),P(V(o,{onClick:r.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Ie(()=>[ntt]),_:1},8,["onClick"]),[[wt,!i.generating]]),P(V(o,{onClick:r.tokenize_text,title:"Tokenize the text"},{icon:Ie(()=>[l("img",{src:i.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,stt)]),_:1},8,["onClick"]),[[wt,!i.generating]]),itt,P(V(o,{onClick:r.stopGeneration,title:"Stop generation"},{icon:Ie(()=>[rtt]),_:1},8,["onClick"]),[[wt,i.generating]]),V(o,{onClick:r.startSpeechRecognition,class:Ge({"text-red-500":t.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Ie(()=>[ott]),_:1},8,["onClick","class"]),V(o,{onClick:r.speak,class:Ge({"text-red-500":r.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Ie(()=>[att]),_:1},8,["onClick","class"]),V(o,{onClick:r.triggerFileUpload,title:"Upload a voice"},{icon:Ie(()=>[ltt]),_:1},8,["onClick"]),V(o,{onClick:r.startRecordingAndTranscribing,class:Ge({"text-green-500":i.isLesteningToVoice}),title:"Start audio to audio"},{icon:Ie(()=>[i.pending?(T(),w("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,dtt)):(T(),w("img",{key:0,src:i.is_deaf_transcribing?i.deaf_on:i.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,ctt))]),_:1},8,["onClick","class"]),V(o,{onClick:r.startRecording,class:Ge({"text-green-500":i.isLesteningToVoice}),title:"Start audio recording"},{icon:Ie(()=>[i.pending?(T(),w("img",{key:1,src:i.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,ptt)):(T(),w("img",{key:0,src:i.is_recording?i.rec_on:i.rec_off,alt:"Record",class:"h-5 w-5"},null,8,utt))]),_:1},8,["onClick","class"]),i.isSynthesizingVoice?(T(),w("div",htt,mtt)):(T(),dt(o,{key:0,onClick:r.read,title:"Generate audio from text"},{icon:Ie(()=>[_tt]),_:1},8,["onClick"])),P(V(o,{onClick:r.exportText,title:"Export text"},{icon:Ie(()=>[gtt]),_:1},8,["onClick"]),[[wt,!i.generating]]),P(V(o,{onClick:r.importText,title:"Import text"},{icon:Ie(()=>[btt]),_:1},8,["onClick"]),[[wt,!i.generating]]),V(o,{onClick:e[0]||(e[0]=_=>i.showSettings=!i.showSettings),title:"Settings"},{icon:Ie(()=>[Ett]),_:1})]),l("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(..._)=>r.handleFileUpload&&r.handleFileUpload(..._)),style:{display:"none"},accept:".wav"},null,544),l("div",ytt,[l("button",{class:Ge(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="source"}]),onClick:e[2]||(e[2]=_=>i.tab_id="source")}," Source ",2),l("button",{class:Ge(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":i.tab_id=="render"}]),onClick:e[3]||(e[3]=_=>i.tab_id="render")}," Render ",2)]),vtt]),l("div",{class:Ge(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":i.generating}])},[i.tab_id==="source"?(T(),w("div",Stt,[V(d,{title:"Add Block"},{default:Ie(()=>[V(c,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[V(a,{onClick:e[4]||(e[4]=j(_=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),V(a,{onClick:e[5]||(e[5]=j(_=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),V(a,{onClick:e[6]||(e[6]=j(_=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),V(a,{onClick:e[7]||(e[7]=j(_=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),V(a,{onClick:e[8]||(e[8]=j(_=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),V(a,{onClick:e[9]||(e[9]=j(_=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),V(a,{onClick:e[10]||(e[10]=j(_=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),V(a,{onClick:e[11]||(e[11]=j(_=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),V(a,{onClick:e[12]||(e[12]=j(_=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),V(a,{onClick:e[13]||(e[13]=j(_=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),V(a,{onClick:e[14]||(e[14]=j(_=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),V(c,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[V(a,{onClick:e[15]||(e[15]=j(_=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),V(a,{onClick:e[16]||(e[16]=j(_=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),V(a,{onClick:e[17]||(e[17]=j(_=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),V(a,{onClick:e[18]||(e[18]=j(_=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),V(a,{onClick:e[19]||(e[19]=j(_=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),V(c,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[V(a,{onClick:e[20]||(e[20]=j(_=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),V(a,{onClick:e[21]||(e[21]=j(_=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),V(a,{onClick:e[22]||(e[22]=j(_=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),V(a,{onClick:e[23]||(e[23]=j(_=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),V(a,{onClick:e[24]||(e[24]=j(_=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),V(c,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[V(a,{onClick:e[25]||(e[25]=j(_=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),V(a,{onClick:e[26]||(e[26]=j(_=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),V(a,{onClick:e[27]||(e[27]=j(_=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),V(c,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[V(a,{onClick:e[28]||(e[28]=j(_=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),V(a,{onClick:e[29]||(e[29]=j(_=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),V(a,{onClick:e[30]||(e[30]=j(_=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),V(c,{title:"Database",icon:"database"},{default:Ie(()=>[V(a,{onClick:e[31]||(e[31]=j(_=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),V(a,{onClick:e[32]||(e[32]=j(_=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),V(a,{onClick:e[33]||(e[33]=j(_=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),V(a,{onClick:e[34]||(e[34]=j(_=>t.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),P(l("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=Vs(j((..._)=>r.insertTab&&r.insertTab(..._),["prevent"]),["tab"])),class:"block min-h-500 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,style:Ht({minHeight:i.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=_=>i.text=_),onClick:e[37]||(e[37]=j((..._)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(..._),["prevent"])),onChange:e[38]||(e[38]=j((..._)=>r.mdTextarea_changed&&r.mdTextarea_changed(..._),["prevent"]))},`\r - `,36),[[pe,i.text]]),l("span",null,"Cursor position "+K(i.cursorPosition),1)])):G("",!0),i.audio_url!=null?(T(),w("audio",{controls:"",key:i.audio_url},[l("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Ttt),et(" Your browser does not support the audio element. ")])):G("",!0),V(u,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(T(),w("div",xtt,[V(h,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":i.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):G("",!0)],2)]),i.showSettings?(T(),w("div",Ctt,[wtt,V(f,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[P(l("select",{"onUpdate:modelValue":e[39]||(e[39]=_=>this.$store.state.selectedModel=_),onChange:e[40]||(e[40]=(..._)=>r.setModel&&r.setModel(..._)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(r.models,_=>(T(),w("option",{key:_,value:_},K(_),9,Rtt))),128))],544),[[Dt,this.$store.state.selectedModel]]),i.selecting_model?(T(),w("div",Att,Ott)):G("",!0)]),_:1}),V(f,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[P(l("select",{"onUpdate:modelValue":e[41]||(e[41]=_=>i.selectedPreset=_),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(i.presets,_=>(T(),w("option",{key:_,value:_},K(_.name),9,Mtt))),128))],512),[[Dt,i.selectedPreset]]),Itt,l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(..._)=>r.setPreset&&r.setPreset(..._)),title:"Use preset"},Dtt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(..._)=>r.addPreset&&r.addPreset(..._)),title:"Add this text as a preset"},Ptt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(..._)=>r.removePreset&&r.removePreset(..._)),title:"Remove preset"},Ftt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(..._)=>r.reloadPresets&&r.reloadPresets(..._)),title:"Reload presets list"},Gtt)]),_:1}),V(f,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[l("div",Vtt,[ztt,P(l("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=_=>i.temperature=_),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[pe,i.temperature]]),l("span",Htt,"Current value: "+K(i.temperature),1)]),l("div",qtt,[$tt,P(l("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=_=>i.top_k=_),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[pe,i.top_k]]),l("span",Ytt,"Current value: "+K(i.top_k),1)]),l("div",Wtt,[Ktt,P(l("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=_=>i.top_p=_),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[pe,i.top_p]]),l("span",jtt,"Current value: "+K(i.top_p),1)]),l("div",Qtt,[Xtt,P(l("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=_=>i.repeat_penalty=_),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.repeat_penalty]]),l("span",Ztt,"Current value: "+K(i.repeat_penalty),1)]),l("div",Jtt,[ent,P(l("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=_=>i.repeat_last_n=_),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.repeat_last_n]]),l("span",tnt,"Current value: "+K(i.repeat_last_n),1)]),l("div",nnt,[snt,P(l("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=_=>i.n_crop=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.n_crop]]),l("span",int,"Current value: "+K(i.n_crop),1)]),l("div",rnt,[ont,P(l("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=_=>i.n_predicts=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.n_predicts]]),l("span",ant,"Current value: "+K(i.n_predicts),1)]),l("div",lnt,[cnt,P(l("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=_=>i.seed=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.seed]]),l("span",dnt,"Current value: "+K(i.seed),1)])]),_:1})])):G("",!0)])]),V(m,{ref:"toast"},null,512)],64)}const pnt=ot(jet,[["render",unt]]);const _nt={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(FO(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},hnt={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full 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"},fnt={key:0},mnt=["onClick"],gnt={key:0},bnt=["src"],Ent={key:1},ynt=l("p",null,"No extension is active. Please install and activate an extension.",-1),vnt=[ynt];function Snt(t,e,n,s,i,r){return T(),w("div",hnt,[r.activeExtensions.length>0?(T(),w("div",fnt,[(T(!0),w(Pe,null,Ke(r.activeExtensions,o=>(T(),w("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[l("div",{class:Ge({"active-tab":o===i.activeExtension})},K(o.name),3)],8,mnt))),128)),i.activeExtension?(T(),w("div",gnt,[l("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,bnt)])):G("",!0)])):(T(),w("div",Ent,vnt))])}const Tnt=ot(_nt,[["render",Snt]]);const xnt={data(){return{sections:[{id:"introduction",title:"Introduction",content:` + `,36),[[pe,i.text]]),l("span",null,"Cursor position "+K(i.cursorPosition),1)])):G("",!0),i.audio_url!=null?(T(),w("audio",{controls:"",key:i.audio_url},[l("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,Ttt),et(" Your browser does not support the audio element. ")])):G("",!0),V(u,{namedTokens:i.namedTokens},null,8,["namedTokens"]),i.tab_id==="render"?(T(),w("div",xtt,[V(h,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":i.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):G("",!0)],2)]),i.showSettings?(T(),w("div",Ctt,[wtt,V(f,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[P(l("select",{"onUpdate:modelValue":e[39]||(e[39]=_=>this.$store.state.selectedModel=_),onChange:e[40]||(e[40]=(..._)=>r.setModel&&r.setModel(..._)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(r.models,_=>(T(),w("option",{key:_,value:_},K(_),9,Rtt))),128))],544),[[kt,this.$store.state.selectedModel]]),i.selecting_model?(T(),w("div",Att,Ott)):G("",!0)]),_:1}),V(f,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[P(l("select",{"onUpdate:modelValue":e[41]||(e[41]=_=>i.selectedPreset=_),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(i.presets,_=>(T(),w("option",{key:_,value:_},K(_.name),9,Mtt))),128))],512),[[kt,i.selectedPreset]]),Itt,l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(..._)=>r.setPreset&&r.setPreset(..._)),title:"Use preset"},Dtt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(..._)=>r.addPreset&&r.addPreset(..._)),title:"Add this text as a preset"},Ptt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(..._)=>r.removePreset&&r.removePreset(..._)),title:"Remove preset"},Ftt),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(..._)=>r.reloadPresets&&r.reloadPresets(..._)),title:"Reload presets list"},Gtt)]),_:1}),V(f,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[l("div",Vtt,[ztt,P(l("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=_=>i.temperature=_),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[pe,i.temperature]]),l("span",Htt,"Current value: "+K(i.temperature),1)]),l("div",qtt,[$tt,P(l("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=_=>i.top_k=_),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[pe,i.top_k]]),l("span",Ytt,"Current value: "+K(i.top_k),1)]),l("div",Wtt,[Ktt,P(l("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=_=>i.top_p=_),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[pe,i.top_p]]),l("span",jtt,"Current value: "+K(i.top_p),1)]),l("div",Qtt,[Xtt,P(l("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=_=>i.repeat_penalty=_),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.repeat_penalty]]),l("span",Ztt,"Current value: "+K(i.repeat_penalty),1)]),l("div",Jtt,[ent,P(l("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=_=>i.repeat_last_n=_),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.repeat_last_n]]),l("span",tnt,"Current value: "+K(i.repeat_last_n),1)]),l("div",nnt,[snt,P(l("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=_=>i.n_crop=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.n_crop]]),l("span",int,"Current value: "+K(i.n_crop),1)]),l("div",rnt,[ont,P(l("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=_=>i.n_predicts=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.n_predicts]]),l("span",ant,"Current value: "+K(i.n_predicts),1)]),l("div",lnt,[cnt,P(l("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=_=>i.seed=_),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[pe,i.seed]]),l("span",dnt,"Current value: "+K(i.seed),1)])]),_:1})])):G("",!0)])]),V(m,{ref:"toast"},null,512)],64)}const pnt=ot(jet,[["render",unt]]);const _nt={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(FO(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},hnt={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full 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"},fnt={key:0},mnt=["onClick"],gnt={key:0},bnt=["src"],Ent={key:1},ynt=l("p",null,"No extension is active. Please install and activate an extension.",-1),vnt=[ynt];function Snt(t,e,n,s,i,r){return T(),w("div",hnt,[r.activeExtensions.length>0?(T(),w("div",fnt,[(T(!0),w(Pe,null,Ke(r.activeExtensions,o=>(T(),w("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[l("div",{class:Ge({"active-tab":o===i.activeExtension})},K(o.name),3)],8,mnt))),128)),i.activeExtension?(T(),w("div",gnt,[l("iframe",{src:i.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,bnt)])):G("",!0)])):(T(),w("div",Ent,vnt))])}const Tnt=ot(_nt,[["render",Snt]]);const xnt={data(){return{sections:[{id:"introduction",title:"Introduction",content:`

LoLLMs (Lord of Large Language Multimodal Systems) is a powerful and versatile AI system designed to handle a wide range of tasks. Developed by ParisNeo, a computer geek passionate about AI, LoLLMs aims to be the ultimate tool for AI-assisted work and creativity.

With its advanced capabilities in natural language processing, multimodal understanding, and code interpretation, LoLLMs can assist users in various domains, from content creation to complex problem-solving.

`},{id:"key-features",title:"Key Features",content:` @@ -151,11 +151,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`),me=U,le=W),ne===void 0
  • Consult the FAQ section for common issues and solutions
  • If problems persist, please reach out to our support team through one of the contact methods listed below.

    - `}],contactLinks:[{text:"Email",url:"mailto:parisneoai@gmail.com"},{text:"Twitter",url:"https://twitter.com/ParisNeo_AI"},{text:"Discord",url:"https://discord.gg/BDxacQmv"},{text:"Sub-Reddit",url:"https://www.reddit.com/r/lollms"},{text:"Instagram",url:"https://www.instagram.com/spacenerduino/"}]}},methods:{scrollToSection(t){const e=document.getElementById(t);e&&e.scrollIntoView({behavior:"smooth",block:"start"})}}},Cnt={class:"min-h-screen w-full bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-y-auto"},wnt={class:"container mx-auto px-4 py-8 relative z-10"},Rnt=l("header",{class:"text-center mb-12 sticky top-0 bg-white dark:bg-gray-800 bg-opacity-90 dark:bg-opacity-90 backdrop-filter backdrop-blur-lg p-4 rounded-b-lg shadow-md"},[l("h1",{class:"text-5xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400 mb-2 animate-glow"}," LoLLMs Help Documentation "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"},' "One tool to rule them all" ')],-1),Ant={class:"bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 mb-8 animate-fade-in sticky top-32 max-h-[calc(100vh-8rem)] overflow-y-auto"},Nnt=l("h2",{class:"text-3xl font-semibold mb-4 text-gray-800 dark:text-gray-200"},"Table of Contents",-1),Ont={class:"space-y-2"},Mnt=["href","onClick"],Int={key:0,class:"ml-4 mt-2 space-y-1"},knt=["href","onClick"],Dnt={class:"bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 animate-fade-in"},Lnt=["id"],Pnt={class:"text-4xl font-semibold mb-6 text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400"},Unt=["innerHTML"],Fnt={key:0,class:"mt-8"},Bnt=["id"],Gnt={class:"text-3xl font-semibold mb-4 text-gray-700 dark:text-gray-300"},Vnt=["innerHTML"],znt={class:"mt-12 pt-8 border-t border-gray-300 dark:border-gray-700 animate-fade-in"},Hnt=l("h2",{class:"text-3xl font-semibold mb-6 text-center text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400"},"Contact",-1),qnt={class:"flex flex-wrap justify-center gap-6 mb-8"},$nt=["href"],Ynt=l("p",{class:"text-center font-bold text-2xl text-gray-700 dark:text-gray-300"},"See ya!",-1),Wnt={class:"fixed inset-0 pointer-events-none overflow-hidden"},Knt=l("svg",{class:"w-2 h-2 text-yellow-300",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})],-1),jnt=[Knt];function Qnt(t,e,n,s,i,r){return T(),w("div",Cnt,[l("div",wnt,[Rnt,l("nav",Ant,[Nnt,l("ul",Ont,[(T(!0),w(Pe,null,Ke(i.sections,o=>(T(),w("li",{key:o.id,class:"ml-4"},[l("a",{href:`#${o.id}`,onClick:a=>r.scrollToSection(o.id),class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 hover:underline transition-colors duration-200"},K(o.title),9,Mnt),o.subsections?(T(),w("ul",Int,[(T(!0),w(Pe,null,Ke(o.subsections,a=>(T(),w("li",{key:a.id},[l("a",{href:`#${a.id}`,onClick:c=>r.scrollToSection(a.id),class:"text-blue-500 dark:text-blue-300 hover:text-blue-700 dark:hover:text-blue-200 hover:underline transition-colors duration-200"},K(a.title),9,knt)]))),128))])):G("",!0)]))),128))])]),l("main",Dnt,[(T(!0),w(Pe,null,Ke(i.sections,o=>(T(),w("section",{key:o.id,id:o.id,class:"mb-12"},[l("h2",Pnt,K(o.title),1),l("div",{innerHTML:o.content,class:"prose dark:prose-invert max-w-none"},null,8,Unt),o.subsections?(T(),w("div",Fnt,[(T(!0),w(Pe,null,Ke(o.subsections,a=>(T(),w("section",{key:a.id,id:a.id,class:"mb-8"},[l("h3",Gnt,K(a.title),1),l("div",{innerHTML:a.content,class:"prose dark:prose-invert max-w-none"},null,8,Vnt)],8,Bnt))),128))])):G("",!0)],8,Lnt))),128))]),l("footer",znt,[Hnt,l("div",qnt,[(T(!0),w(Pe,null,Ke(i.contactLinks,(o,a)=>(T(),w("a",{key:a,href:o.url,target:"_blank",class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 hover:underline transition-colors duration-200"},K(o.text),9,$nt))),128))]),Ynt])]),l("div",Wnt,[(T(),w(Pe,null,Ke(50,o=>l("div",{key:o,class:"absolute animate-fall",style:Ht({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},jnt,4)),64))])])}const Xnt=ot(xnt,[["render",Qnt]]);function si(t,e=!0,n=1){const s=e?1e3:1024;if(Math.abs(t)=s&&r{ze.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected",t),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Le(()=>{ze.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},Jnt={class:"menu-container"},est=["title"],tst=["src"],nst=["data-feather"],sst={key:2,class:"w-5 h-5"},ist={key:3,"data-feather":"menu"},rst={class:"flex-grow menu-ul"},ost=["onClick"],ast={key:0,"data-feather":"check"},lst=["src","alt"],cst=["data-feather"],dst={key:3,class:"menu-icon"};function ust(t,e,n,s,i,r){return T(),w("div",Jnt,[l("button",{onClick:e[0]||(e[0]=j((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:n.title,class:Ge([n.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"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(T(),w("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,tst)):n.icon&&n.icon.includes("feather")?(T(),w("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,nst)):n.icon&&n.icon.includes("#")?(T(),w("p",sst,K(n.icon.split("#")[1]),1)):(T(),w("i",ist))],10,est),V(Us,{name:"slide"},{default:Ie(()=>[i.isMenuOpen?(T(),w("div",{key:0,class:"menu-list flex-grow",style:Ht(i.menuPosition),ref:"menu"},[l("ul",rst,[(T(!0),w(Pe,null,Ke(n.commands,(o,a)=>(T(),w("li",{key:a,onClick:j(c=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==o.name?(T(),w("i",ast)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),w("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,lst)):G("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),w("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,cst)):(T(),w("span",dst)),l("span",null,K(o.name),1)],8,ost))),128))])],4)):G("",!0)]),_:1})])}const wE=ot(Znt,[["render",ust]]),pst={components:{InteractiveMenu:wE},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(){Le(()=>{ze.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return si(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?Is:this.model.icon},defaultImg(t){t.target.src=Is},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t){if(console.log("event.target.tagName.toLowerCase()"),console.log(t.target.tagName.toLowerCase()),t.target.tagName.toLowerCase()==="button"||t.target.tagName.toLowerCase()==="svg"){t.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Le(()=>{ze.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 t=[{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&&t.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return si(this.speed)},total_size_computed(){return si(this.total_size)},downloaded_size_computed(){return si(this.downloaded_size)}},watch:{linkNotValid(){Le(()=>{ze.replace()})}}},_st=["title"],hst={key:0,class:"flex flex-row"},fst={class:"max-w-[300px] overflow-x-auto"},mst={class:"flex gap-3 items-center grow"},gst=["href"],bst=["src"],Est={class:"flex-1 overflow-hidden"},yst={class:"font-bold font-large text-lg truncate"},vst={key:1,class:"flex items-center flex-row gap-2 my-1"},Sst={class:"flex grow items-center"},Tst=l("i",{"data-feather":"box",class:"w-5"},null,-1),xst=l("span",{class:"sr-only"},"Custom model / local model",-1),Cst=[Tst,xst],wst=l("span",{class:"sr-only"},"Remove",-1),Rst={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"},Ast={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Nst=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),Ost={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Mst={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Ist={class:"flex justify-between mb-1"},kst=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),Dst={class:"text-sm font-medium text-blue-700 dark:text-white"},Lst={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Pst={class:"flex justify-between mb-1"},Ust={class:"text-base font-medium text-blue-700 dark:text-white"},Fst={class:"text-sm font-medium text-blue-700 dark:text-white"},Bst={class:"flex flex-grow"},Gst={class:"flex flex-row flex-grow gap-3"},Vst={class:"p-2 text-center grow"},zst={key:3},Hst={class:"flex flex-row items-center gap-3"},qst=["src"],$st={class:"font-bold font-large text-lg truncate"},Yst=l("div",{class:"grow"},null,-1),Wst={class:"flex items-center flex-row-reverse gap-2 my-1"},Kst={class:"flex flex-row items-center"},jst={key:0,class:"text-base text-red-600 flex items-center mt-1"},Qst=l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Xst=["title"],Zst={class:""},Jst={class:"flex flex-row items-center"},eit=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),tit=l("b",null,"Card: ",-1),nit=["href","title"],sit=l("div",{class:"grow"},null,-1),iit=l("i",{"data-feather":"clipboard",class:"w-5"},null,-1),rit=[iit],oit={class:"flex items-center"},ait=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),lit=l("b",null,"File size: ",-1),cit={class:"flex items-center"},dit=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),uit=l("b",null,"License: ",-1),pit={key:0,class:"flex items-center"},_it=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),hit=l("b",null,"quantizer: ",-1),fit=["href"],mit={class:"flex items-center"},git=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),bit=l("b",null,"Model creator: ",-1),Eit=["href"],yit={class:"flex items-center"},vit=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),Sit=l("b",null,"Release date: ",-1),Tit={class:"flex items-center"},xit=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),Cit=l("b",null,"Category: ",-1),wit=["href"];function Rit(t,e,n,s,i,r){const o=tt("InteractiveMenu");return T(),w("div",{class:Ge(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:n.model.name,onClick:e[10]||(e[10]=j(a=>r.toggleSelected(a),["prevent"]))},[n.model.isCustomModel?(T(),w("div",hst,[l("div",fst,[l("div",mst,[l("a",{href:n.model.model_creator_link,target:"_blank"},[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,bst)],8,gst),l("div",Est,[l("h3",yst,K(n.model.name),1)])])])])):G("",!0),n.model.isCustomModel?(T(),w("div",vst,[l("div",Sst,[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]=j(()=>{},["stop"]))},Cst),et(" Custom model ")]),l("div",null,[n.model.isInstalled?(T(),w("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=j((...a)=>r.uninstall&&r.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"},[et(" Uninstall "),wst])):G("",!0)])])):G("",!0),i.installing?(T(),w("div",Rst,[l("div",Ast,[Nst,l("div",Ost,[l("div",Mst,[l("div",Ist,[kst,l("span",Dst,K(Math.floor(i.progress))+"%",1)]),l("div",Lst,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht({width:i.progress+"%"})},null,4)]),l("div",Pst,[l("span",Ust,"Download speed: "+K(r.speed_computed)+"/s",1),l("span",Fst,K(r.downloaded_size_computed)+"/"+K(r.total_size_computed),1)])])]),l("div",Bst,[l("div",Gst,[l("div",Vst,[l("button",{onClick:e[3]||(e[3]=j((...a)=>r.toggleCancelInstall&&r.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 ")])])])])])):G("",!0),n.model.isCustomModel?G("",!0):(T(),w("div",zst,[l("div",Hst,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:Ge(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,qst),l("h3",$st,K(n.model.name),1),Yst,V(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Wst,[l("div",Kst,[i.linkNotValid?(T(),w("div",jst,[Qst,et(" Link is not valid ")])):G("",!0)])]),l("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[l("div",Zst,[l("div",Jst,[eit,tit,l("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[5]||(e[5]=j(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,nit),sit,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]=j(a=>r.toggleCopyLink(),["stop"]))},rit)]),l("div",oit,[l("div",{class:Ge(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[ait,lit,et(" "+K(r.fileSize),1)],2)]),l("div",cit,[dit,uit,et(" "+K(n.model.license),1)]),n.model.quantizer!="None"&&n.model.type!="transformers"?(T(),w("div",pit,[_it,hit,l("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.quantizer),9,fit)])):G("",!0),l("div",mit,[git,bit,l("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.model_creator),9,Eit)]),l("div",yit,[vit,Sit,et(" "+K(n.model.last_commit_time),1)]),l("div",Tit,[xit,Cit,l("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.category),9,wit)])])],8,Xst)]))],10,_st)}const Ait=ot(pst,[["render",Rit]]),Nit={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}}},Oit={class:"p-4"},Mit={class:"flex items-center mb-4"},Iit=["src"],kit={class:"text-lg font-semibold"},Dit=l("strong",null,"Author:",-1),Lit=l("strong",null,"Description:",-1),Pit=l("strong",null,"Category:",-1),Uit={key:0},Fit=l("strong",null,"Disclaimer:",-1),Bit=l("strong",null,"Conditioning Text:",-1),Git=l("strong",null,"AI Prefix:",-1),Vit=l("strong",null,"User Prefix:",-1),zit=l("strong",null,"Antiprompts:",-1);function Hit(t,e,n,s,i,r){return T(),w("div",Oit,[l("div",Mit,[l("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Iit),l("h2",kit,K(i.personalityName),1)]),l("p",null,[Dit,et(" "+K(i.personalityAuthor),1)]),l("p",null,[Lit,et(" "+K(i.personalityDescription),1)]),l("p",null,[Pit,et(" "+K(i.personalityCategory),1)]),i.disclaimer?(T(),w("p",Uit,[Fit,et(" "+K(i.disclaimer),1)])):G("",!0),l("p",null,[Bit,et(" "+K(i.conditioningText),1)]),l("p",null,[Git,et(" "+K(i.aiPrefix),1)]),l("p",null,[Vit,et(" "+K(i.userPrefix),1)]),l("div",null,[zit,l("ul",null,[(T(!0),w(Pe,null,Ke(i.antipromptsList,o=>(T(),w("li",{key:o.id},K(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(T(),w("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):G("",!0)])}const qit=ot(Nit,[["render",Hit]]),Zu="/assets/logo-9d653710.svg",$it="/",Yit={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},components:{InteractiveMenu:wE},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let t=[{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"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Le(()=>{ze.replace()})},methods:{showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return $it+this.personality.avatar},defaultImg(t){t.target.src=Zu},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)}},watch:{selected(){Le(()=>{ze.replace()})}}},Wit=["title"],Kit={class:"flex-grow"},jit={class:"flex items-center mb-4"},Qit=["src"],Xit={class:"text-sm text-gray-600"},Zit={class:"text-sm text-gray-600"},Jit={key:0,class:"text-sm text-gray-600"},ert={class:"text-sm text-gray-600"},trt={class:"mb-4"},nrt=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1),srt=["innerHTML"],irt={key:0,class:"mb-4"},rrt=l("label",{for:"languages",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Language:",-1),ort=["selected"],art={class:"mt-auto pt-4 border-t"},lrt={class:"flex justify-between items-center flex-wrap"},crt=["title"],drt=["fill"],urt=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),prt=[urt],_rt=l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1),hrt=[_rt],frt=l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1),mrt=[frt],grt=l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1),brt=[grt],Ert=["src"];function yrt(t,e,n,s,i,r){const o=tt("InteractiveMenu");return T(),w("div",{class:Ge(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",r.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:n.personality.installed?"":"Not installed"},[l("div",Kit,[l("div",jit,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.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)=>r.toggleSelected&&r.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,Qit),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a))},K(n.personality.name),1),l("p",Xit,"Author: "+K(n.personality.author),1),l("p",Zit,"Version: "+K(n.personality.version),1),n.personality.language?(T(),w("p",Jit,"Language: "+K(n.personality.language),1)):G("",!0),l("p",ert,"Category: "+K(n.personality.category),1)])]),l("div",trt,[nrt,l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.personality.description},null,8,srt)]),n.personality.languages&&n.select_language?(T(),w("div",irt,[rrt,i.isMounted?G("",!0):P((T(),w("select",{key:0,id:"languages","onUpdate:modelValue":e[6]||(e[6]=a=>n.personality.language=a),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),w(Pe,null,Ke(n.personality.languages,(a,c)=>(T(),w("option",{key:c,selected:a==n.personality.languages[0]},K(a),9,ort))),128))],512)),[[Dt,n.personality.language]])])):G("",!0)]),l("div",art,[l("div",lrt,[l("button",{onClick:e[7]||(e[7]=(...a)=>t.toggleFavorite&&t.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("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"},prt,8,drt))],8,crt),i.isMounted?(T(),w("button",{key:0,onClick:e[8]||(e[8]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},hrt)):G("",!0),i.isMounted?(T(),w("button",{key:1,onClick:e[9]||(e[9]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},mrt)):G("",!0),l("button",{onClick:e[10]||(e[10]=(...a)=>r.showFolder&&r.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},brt),V(o,{commands:r.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(T(),w("div",{key:0,style:Ht({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,Ert)],4)):G("",!0)],10,Wit)}const RE=ot(Yit,[["render",yrt]]),vrt={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(t){console.log(`UI prop changed for instance ${this.instanceId}:`,t),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const t=this.$refs.container,n=new DOMParser().parseFromString(this.ui,"text/html"),s=n.getElementsByTagName("style");Array.from(s).forEach(r=>{const o=document.createElement("style");o.textContent=this.scopeCSS(r.textContent),document.head.appendChild(o)}),t.innerHTML=n.body.innerHTML;const i=n.getElementsByTagName("script");Array.from(i).forEach(r=>{const o=document.createElement("script");o.textContent=r.textContent,t.appendChild(o)})},scopeCSS(t){return t.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Srt=["id"];function Trt(t,e,n,s,i,r){return T(),w("div",{id:i.containerId,ref:"container"},null,8,Srt)}const oN=ot(vrt,[["render",Trt]]),xrt="/",Crt={components:{DynamicUIRenderer:oN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Le(()=>{ze.replace()})},methods:{copyToClipBoard(t){console.log("Copying to clipboard :",t),navigator.clipboard.writeText(t)},getImgUrl(){return xrt+this.binding.icon},defaultImg(t){t.target.src=Zu},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(){Le(()=>{ze.replace()})}}},wrt=["title"],Rrt={class:"flex flex-row items-center gap-3"},Art=["src"],Nrt={class:"font-bold font-large text-lg truncate"},Ort=l("div",{class:"grow"},null,-1),Mrt={class:"flex-none gap-1"},Irt=l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),krt=l("span",{class:"sr-only"},"Help",-1),Drt=[Irt,krt],Lrt={class:"flex items-center flex-row-reverse gap-2 my-1"},Prt=l("span",{class:"sr-only"},"Click to install",-1),Urt=l("span",{class:"sr-only"},"Reinstall",-1),Frt=l("span",{class:"sr-only"},"UnInstall",-1),Brt=l("span",{class:"sr-only"},"Settings",-1),Grt={class:""},Vrt={class:""},zrt={class:"flex items-center"},Hrt=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qrt=l("b",null,"Author: ",-1),$rt={class:"flex items-center"},Yrt=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Wrt=l("b",null,"Folder: ",-1),Krt=l("div",{class:"grow"},null,-1),jrt=l("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Qrt=[jrt],Xrt={class:"flex items-center"},Zrt=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Jrt=l("b",null,"Version: ",-1),eot={class:"flex items-center"},tot=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),not=l("b",null,"Link: ",-1),sot=["href"],iot=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1),rot=["title","innerHTML"];function oot(t,e,n,s,i,r){const o=tt("DynamicUIRenderer");return T(),w("div",{class:Ge(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=j((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[l("div",null,[l("div",Rrt,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Art),l("h3",Nrt,K(n.binding.name),1),Ort,l("div",Mrt,[n.selected?(T(),w("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=j(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Drt)):G("",!0)])]),l("div",Lrt,[n.binding.installed?G("",!0):(T(),w("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=j((...a)=>r.toggleInstall&&r.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"},[et(" Install "),Prt])),n.binding.installed?(T(),w("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=j((...a)=>r.toggleReinstall&&r.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"},[et(" Reinstall "),Urt])):G("",!0),n.binding.installed?(T(),w("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=j((...a)=>r.toggleUnInstall&&r.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"},[et(" Uninstall "),Frt])):G("",!0),n.selected?(T(),w("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=j((...a)=>r.toggleSettings&&r.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"},[et(" Settings "),Brt])):G("",!0)]),n.binding.ui?(T(),dt(o,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):G("",!0),l("div",Grt,[l("div",Vrt,[l("div",zrt,[Hrt,qrt,et(" "+K(n.binding.author),1)]),l("div",$rt,[Yrt,Wrt,et(" "+K(n.binding.folder)+" ",1),Krt,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]=j(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},Qrt)]),l("div",Xrt,[Zrt,Jrt,et(" "+K(n.binding.version),1)]),l("div",eot,[tot,not,l("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},K(n.binding.link),9,sot)])]),iot,l("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description,innerHTML:n.binding.description},null,8,rot)])])],10,wrt)}const aot=ot(Crt,[["render",oot]]),lot={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},cot={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},dot={class:"relative w-full max-w-md max-h-full"},uot={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},pot=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),_ot=l("span",{class:"sr-only"},"Close modal",-1),hot=[pot,_ot],fot={class:"p-4 text-center"},mot=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),got={class:"p-4 text-center mx-auto mb-4"},bot=l("label",{class:"mr-2"},"Model path",-1);function Eot(t,e,n,s,i,r){return i.show?(T(),w("div",cot,[l("div",dot,[l("div",uot,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},hot),l("div",fot,[mot,l("div",got,[bot,P(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[pe,i.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>r.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=>r.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")])])])])):G("",!0)}const yot=ot(lot,[["render",Eot]]);const vot={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(t){return typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){const e=["bytes","KB","MB","GB"];let n=0;for(;t>=1024&&n(Ss("data-v-f43216be"),t=t(),Ts(),t),Sot={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Tot={class:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6 w-96 max-w-md"},xot={class:"text-2xl font-bold mb-4 text-gray-800 dark:text-white flex items-center"},Cot=AE(()=>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)),wot={class:"h-48 bg-gray-100 dark:bg-gray-700 rounded-lg mb-4 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200 dark:scrollbar-thumb-gray-600 dark:scrollbar-track-gray-800"},Rot={class:"flex items-center justify-between"},Aot={class:"flex-grow"},Not=["onClick"],Oot=["onUpdate:modelValue","onBlur","onKeyup"],Mot={key:2,class:"text-xs text-gray-500 dark:text-gray-400 ml-2"},Iot={class:"flex items-center"},kot=["onClick"],Dot=AE(()=>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)),Lot=[Dot],Pot=["onClick"],Uot=AE(()=>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)),Fot=[Uot],Bot={key:0,class:"flex flex-col mb-4"},Got={class:"flex justify-between"},Vot=["disabled"];function zot(t,e,n,s,i,r){return T(),dt(Us,{name:"fade"},{default:Ie(()=>[n.show?(T(),w("div",Sot,[l("div",Tot,[l("h2",xot,[Cot,et(" "+K(n.title),1)]),l("div",wot,[l("ul",null,[(T(!0),w(Pe,null,Ke(n.choices,(o,a)=>(T(),w("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",Rot,[l("div",Aot,[o.isEditing?P((T(),w("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>r.finishEditing(o),onKeyup:Vs(c=>r.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,Oot)),[[pe,o.editName]]):(T(),w("span",{key:0,onClick:c=>r.selectChoice(o),class:Ge([{"font-semibold":o===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},K(r.displayName(o)),11,Not)),o.size?(T(),w("span",Mot,K(r.formatSize(o.size)),1)):G("",!0)]),l("div",Iot,[l("button",{onClick:c=>r.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},Lot,8,kot),n.can_remove?(T(),w("button",{key:0,onClick:c=>r.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},Fot,8,Pot)):G("",!0)])])]))),128))])]),i.showInput?(T(),w("div",Bot,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.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),[[pe,i.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):G("",!0),l("div",Got,[l("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.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)=>r.validateChoice&&r.validateChoice(...o)),disabled:!i.selectedChoice,class:Ge([{"bg-blue-500 hover:bg-blue-600":i.selectedChoice,"bg-gray-400 cursor-not-allowed":!i.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Vot),l("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.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 ")])])])):G("",!0)]),_:1})}const NE=ot(vot,[["render",zot],["__scopeId","data-v-f43216be"]]),Hot={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const t=this.radioOptions.find(e=>e.value===this.selectedValue);return t?t.label:""}},watch:{selectedValue(t,e){this.$emit("radio-selected",t)}},methods:{handleRadioChange(){}}},qot={class:"flex space-x-4"},$ot=["value","aria-checked"],Yot={class:"text-gray-700"};function Wot(t,e,n,s,i,r){return T(),w("div",qot,[(T(!0),w(Pe,null,Ke(n.radioOptions,(o,a)=>(T(),w("label",{key:o.value,class:"flex items-center space-x-2"},[P(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>i.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>r.handleRadioChange&&r.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,$ot),[[Ak,i.selectedValue]]),l("span",Yot,K(o.label),1)]))),128))])}const Kot=ot(Hot,[["render",Wot]]),jot="/assets/gpu-df72bf63.svg",Qot={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 t=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",t),this.$emit("change"),this.newItem=""}},removeItem(t){const e=this.modelValue.filter((n,s)=>s!==t);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(t){this.draggingIndex=t},dragItem(t){if(this.draggingIndex!==null){const e=[...this.modelValue],n=e.splice(this.draggingIndex,1)[0];e.splice(t,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(t){if(t>0){const e=[...this.modelValue],n=e.splice(t,1)[0];e.splice(t-1,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(t){if(ti.newItem=o),placeholder:n.placeholder,onKeyup:e[1]||(e[1]=Vs((...o)=>r.addItem&&r.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,Zot),[[pe,i.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>r.addItem&&r.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),n.modelValue.length>0?(T(),w("ul",Jot,[(T(!0),w(Pe,null,Ke(n.modelValue,(o,a)=>(T(),w("li",{key:a,class:Ge(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[l("span",eat,K(o),1),l("div",tat,[l("button",{onClick:c=>r.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},iat,8,nat),a>0?(T(),w("button",{key:0,onClick:c=>r.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},aat,8,rat)):G("",!0),ar.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},dat,8,lat)):G("",!0)]),i.draggingIndex===a?(T(),w("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>r.startDragging(a),onMousemove:c=>r.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>r.stopDragging&&r.stopDragging(...c))},null,40,uat)):G("",!0)],2))),128))])):G("",!0),n.modelValue.length>0?(T(),w("div",pat,[l("button",{onClick:e[4]||(e[4]=(...o)=>r.removeAll&&r.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):G("",!0)])}const hat=ot(Qot,[["render",_at]]);const fat="/";ae.defaults.baseURL="/";const mat={components:{AddModelDialog:yot,ModelEntry:Ait,PersonalityViewer:qit,PersonalityEntry:RE,BindingEntry:aot,ChoiceDialog:NE,Card:ju,StringListManager:hat,RadioOptions:Kot},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:Is,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:gs,binding_changed:!1,SVGGPU:jot,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:fat,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(t){console.log("Error cought:",t)}qe.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(t=>t.json()).then(t=>{this.voices=t.voices}).catch(t=>console.error("Error fetching voices:",t))},async refreshHardwareUsage(t){await t.dispatch("refreshDiskUsage"),await t.dispatch("refreshRamUsage"),await t.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(t){this.$store.state.config.rag_databases.splice(t,1),this.settingsChanged=!0},async vectorize_folder(t){await ae.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[t]},this.posts_headers)},async select_folder(t){try{qe.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[t]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ae.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(t){console.log("handleTemplateSelection");const e=t.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=` + `}],contactLinks:[{text:"Email",url:"mailto:parisneoai@gmail.com"},{text:"Twitter",url:"https://twitter.com/ParisNeo_AI"},{text:"Discord",url:"https://discord.gg/BDxacQmv"},{text:"Sub-Reddit",url:"https://www.reddit.com/r/lollms"},{text:"Instagram",url:"https://www.instagram.com/spacenerduino/"}]}},methods:{scrollToSection(t){const e=document.getElementById(t);e&&e.scrollIntoView({behavior:"smooth",block:"start"})}}},Cnt={class:"min-h-screen w-full bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-y-auto"},wnt={class:"container mx-auto px-4 py-8 relative z-10"},Rnt=l("header",{class:"text-center mb-12 sticky top-0 bg-white dark:bg-gray-800 bg-opacity-90 dark:bg-opacity-90 backdrop-filter backdrop-blur-lg p-4 rounded-b-lg shadow-md"},[l("h1",{class:"text-5xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400 mb-2 animate-glow"}," LoLLMs Help Documentation "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"},' "One tool to rule them all" ')],-1),Ant={class:"bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 mb-8 animate-fade-in sticky top-32 max-h-[calc(100vh-8rem)] overflow-y-auto"},Nnt=l("h2",{class:"text-3xl font-semibold mb-4 text-gray-800 dark:text-gray-200"},"Table of Contents",-1),Ont={class:"space-y-2"},Mnt=["href","onClick"],Int={key:0,class:"ml-4 mt-2 space-y-1"},knt=["href","onClick"],Dnt={class:"bg-white dark:bg-gray-800 shadow-md rounded-lg p-6 animate-fade-in"},Lnt=["id"],Pnt={class:"text-4xl font-semibold mb-6 text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400"},Unt=["innerHTML"],Fnt={key:0,class:"mt-8"},Bnt=["id"],Gnt={class:"text-3xl font-semibold mb-4 text-gray-700 dark:text-gray-300"},Vnt=["innerHTML"],znt={class:"mt-12 pt-8 border-t border-gray-300 dark:border-gray-700 animate-fade-in"},Hnt=l("h2",{class:"text-3xl font-semibold mb-6 text-center text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400"},"Contact",-1),qnt={class:"flex flex-wrap justify-center gap-6 mb-8"},$nt=["href"],Ynt=l("p",{class:"text-center font-bold text-2xl text-gray-700 dark:text-gray-300"},"See ya!",-1),Wnt={class:"fixed inset-0 pointer-events-none overflow-hidden"},Knt=l("svg",{class:"w-2 h-2 text-yellow-300",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})],-1),jnt=[Knt];function Qnt(t,e,n,s,i,r){return T(),w("div",Cnt,[l("div",wnt,[Rnt,l("nav",Ant,[Nnt,l("ul",Ont,[(T(!0),w(Pe,null,Ke(i.sections,o=>(T(),w("li",{key:o.id,class:"ml-4"},[l("a",{href:`#${o.id}`,onClick:a=>r.scrollToSection(o.id),class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 hover:underline transition-colors duration-200"},K(o.title),9,Mnt),o.subsections?(T(),w("ul",Int,[(T(!0),w(Pe,null,Ke(o.subsections,a=>(T(),w("li",{key:a.id},[l("a",{href:`#${a.id}`,onClick:c=>r.scrollToSection(a.id),class:"text-blue-500 dark:text-blue-300 hover:text-blue-700 dark:hover:text-blue-200 hover:underline transition-colors duration-200"},K(a.title),9,knt)]))),128))])):G("",!0)]))),128))])]),l("main",Dnt,[(T(!0),w(Pe,null,Ke(i.sections,o=>(T(),w("section",{key:o.id,id:o.id,class:"mb-12"},[l("h2",Pnt,K(o.title),1),l("div",{innerHTML:o.content,class:"prose dark:prose-invert max-w-none"},null,8,Unt),o.subsections?(T(),w("div",Fnt,[(T(!0),w(Pe,null,Ke(o.subsections,a=>(T(),w("section",{key:a.id,id:a.id,class:"mb-8"},[l("h3",Gnt,K(a.title),1),l("div",{innerHTML:a.content,class:"prose dark:prose-invert max-w-none"},null,8,Vnt)],8,Bnt))),128))])):G("",!0)],8,Lnt))),128))]),l("footer",znt,[Hnt,l("div",qnt,[(T(!0),w(Pe,null,Ke(i.contactLinks,(o,a)=>(T(),w("a",{key:a,href:o.url,target:"_blank",class:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 hover:underline transition-colors duration-200"},K(o.text),9,$nt))),128))]),Ynt])]),l("div",Wnt,[(T(),w(Pe,null,Ke(50,o=>l("div",{key:o,class:"absolute animate-fall",style:Ht({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},jnt,4)),64))])])}const Xnt=ot(xnt,[["render",Qnt]]);function si(t,e=!0,n=1){const s=e?1e3:1024;if(Math.abs(t)=s&&r{ze.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected",t),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Le(()=>{ze.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},Jnt={class:"menu-container"},est=["title"],tst=["src"],nst=["data-feather"],sst={key:2,class:"w-5 h-5"},ist={key:3,"data-feather":"menu"},rst={class:"flex-grow menu-ul"},ost=["onClick"],ast={key:0,"data-feather":"check"},lst=["src","alt"],cst=["data-feather"],dst={key:3,class:"menu-icon"};function ust(t,e,n,s,i,r){return T(),w("div",Jnt,[l("button",{onClick:e[0]||(e[0]=j((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:n.title,class:Ge([n.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"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(T(),w("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,tst)):n.icon&&n.icon.includes("feather")?(T(),w("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,nst)):n.icon&&n.icon.includes("#")?(T(),w("p",sst,K(n.icon.split("#")[1]),1)):(T(),w("i",ist))],10,est),V(Us,{name:"slide"},{default:Ie(()=>[i.isMenuOpen?(T(),w("div",{key:0,class:"menu-list flex-grow",style:Ht(i.menuPosition),ref:"menu"},[l("ul",rst,[(T(!0),w(Pe,null,Ke(n.commands,(o,a)=>(T(),w("li",{key:a,onClick:j(c=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==o.name?(T(),w("i",ast)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),w("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,lst)):G("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),w("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,cst)):(T(),w("span",dst)),l("span",null,K(o.name),1)],8,ost))),128))])],4)):G("",!0)]),_:1})])}const wE=ot(Znt,[["render",ust]]),pst={components:{InteractiveMenu:wE},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(){Le(()=>{ze.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return si(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?Is:this.model.icon},defaultImg(t){t.target.src=Is},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t){if(console.log("event.target.tagName.toLowerCase()"),console.log(t.target.tagName.toLowerCase()),t.target.tagName.toLowerCase()==="button"||t.target.tagName.toLowerCase()==="svg"){t.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Le(()=>{ze.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 t=[{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&&t.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return si(this.speed)},total_size_computed(){return si(this.total_size)},downloaded_size_computed(){return si(this.downloaded_size)}},watch:{linkNotValid(){Le(()=>{ze.replace()})}}},_st=["title"],hst={key:0,class:"flex flex-row"},fst={class:"max-w-[300px] overflow-x-auto"},mst={class:"flex gap-3 items-center grow"},gst=["href"],bst=["src"],Est={class:"flex-1 overflow-hidden"},yst={class:"font-bold font-large text-lg truncate"},vst={key:1,class:"flex items-center flex-row gap-2 my-1"},Sst={class:"flex grow items-center"},Tst=l("i",{"data-feather":"box",class:"w-5"},null,-1),xst=l("span",{class:"sr-only"},"Custom model / local model",-1),Cst=[Tst,xst],wst=l("span",{class:"sr-only"},"Remove",-1),Rst={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"},Ast={class:"relative flex flex-col items-center justify-center flex-grow h-full"},Nst=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),Ost={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},Mst={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},Ist={class:"flex justify-between mb-1"},kst=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),Dst={class:"text-sm font-medium text-blue-700 dark:text-white"},Lst={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Pst={class:"flex justify-between mb-1"},Ust={class:"text-base font-medium text-blue-700 dark:text-white"},Fst={class:"text-sm font-medium text-blue-700 dark:text-white"},Bst={class:"flex flex-grow"},Gst={class:"flex flex-row flex-grow gap-3"},Vst={class:"p-2 text-center grow"},zst={key:3},Hst={class:"flex flex-row items-center gap-3"},qst=["src"],$st={class:"font-bold font-large text-lg truncate"},Yst=l("div",{class:"grow"},null,-1),Wst={class:"flex items-center flex-row-reverse gap-2 my-1"},Kst={class:"flex flex-row items-center"},jst={key:0,class:"text-base text-red-600 flex items-center mt-1"},Qst=l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Xst=["title"],Zst={class:""},Jst={class:"flex flex-row items-center"},eit=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),tit=l("b",null,"Card: ",-1),nit=["href","title"],sit=l("div",{class:"grow"},null,-1),iit=l("i",{"data-feather":"clipboard",class:"w-5"},null,-1),rit=[iit],oit={class:"flex items-center"},ait=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),lit=l("b",null,"File size: ",-1),cit={class:"flex items-center"},dit=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),uit=l("b",null,"License: ",-1),pit={key:0,class:"flex items-center"},_it=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),hit=l("b",null,"quantizer: ",-1),fit=["href"],mit={class:"flex items-center"},git=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),bit=l("b",null,"Model creator: ",-1),Eit=["href"],yit={class:"flex items-center"},vit=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),Sit=l("b",null,"Release date: ",-1),Tit={class:"flex items-center"},xit=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),Cit=l("b",null,"Category: ",-1),wit=["href"];function Rit(t,e,n,s,i,r){const o=tt("InteractiveMenu");return T(),w("div",{class:Ge(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:n.model.name,onClick:e[10]||(e[10]=j(a=>r.toggleSelected(a),["prevent"]))},[n.model.isCustomModel?(T(),w("div",hst,[l("div",fst,[l("div",mst,[l("a",{href:n.model.model_creator_link,target:"_blank"},[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,bst)],8,gst),l("div",Est,[l("h3",yst,K(n.model.name),1)])])])])):G("",!0),n.model.isCustomModel?(T(),w("div",vst,[l("div",Sst,[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]=j(()=>{},["stop"]))},Cst),et(" Custom model ")]),l("div",null,[n.model.isInstalled?(T(),w("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=j((...a)=>r.uninstall&&r.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"},[et(" Uninstall "),wst])):G("",!0)])])):G("",!0),i.installing?(T(),w("div",Rst,[l("div",Ast,[Nst,l("div",Ost,[l("div",Mst,[l("div",Ist,[kst,l("span",Dst,K(Math.floor(i.progress))+"%",1)]),l("div",Lst,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht({width:i.progress+"%"})},null,4)]),l("div",Pst,[l("span",Ust,"Download speed: "+K(r.speed_computed)+"/s",1),l("span",Fst,K(r.downloaded_size_computed)+"/"+K(r.total_size_computed),1)])])]),l("div",Bst,[l("div",Gst,[l("div",Vst,[l("button",{onClick:e[3]||(e[3]=j((...a)=>r.toggleCancelInstall&&r.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 ")])])])])])):G("",!0),n.model.isCustomModel?G("",!0):(T(),w("div",zst,[l("div",Hst,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:Ge(["w-10 h-10 rounded-lg object-fill",i.linkNotValid?"grayscale":""])},null,42,qst),l("h3",$st,K(n.model.name),1),Yst,V(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Wst,[l("div",Kst,[i.linkNotValid?(T(),w("div",jst,[Qst,et(" Link is not valid ")])):G("",!0)])]),l("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[l("div",Zst,[l("div",Jst,[eit,tit,l("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[5]||(e[5]=j(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:i.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,nit),sit,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]=j(a=>r.toggleCopyLink(),["stop"]))},rit)]),l("div",oit,[l("div",{class:Ge(["flex flex-shrink-0 items-center",i.linkNotValid?"text-red-600":""])},[ait,lit,et(" "+K(r.fileSize),1)],2)]),l("div",cit,[dit,uit,et(" "+K(n.model.license),1)]),n.model.quantizer!="None"&&n.model.type!="transformers"?(T(),w("div",pit,[_it,hit,l("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.quantizer),9,fit)])):G("",!0),l("div",mit,[git,bit,l("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.model_creator),9,Eit)]),l("div",yit,[vit,Sit,et(" "+K(n.model.last_commit_time),1)]),l("div",Tit,[xit,Cit,l("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=j(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},K(n.model.category),9,wit)])])],8,Xst)]))],10,_st)}const Ait=ot(pst,[["render",Rit]]),Nit={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}}},Oit={class:"p-4"},Mit={class:"flex items-center mb-4"},Iit=["src"],kit={class:"text-lg font-semibold"},Dit=l("strong",null,"Author:",-1),Lit=l("strong",null,"Description:",-1),Pit=l("strong",null,"Category:",-1),Uit={key:0},Fit=l("strong",null,"Disclaimer:",-1),Bit=l("strong",null,"Conditioning Text:",-1),Git=l("strong",null,"AI Prefix:",-1),Vit=l("strong",null,"User Prefix:",-1),zit=l("strong",null,"Antiprompts:",-1);function Hit(t,e,n,s,i,r){return T(),w("div",Oit,[l("div",Mit,[l("img",{src:i.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Iit),l("h2",kit,K(i.personalityName),1)]),l("p",null,[Dit,et(" "+K(i.personalityAuthor),1)]),l("p",null,[Lit,et(" "+K(i.personalityDescription),1)]),l("p",null,[Pit,et(" "+K(i.personalityCategory),1)]),i.disclaimer?(T(),w("p",Uit,[Fit,et(" "+K(i.disclaimer),1)])):G("",!0),l("p",null,[Bit,et(" "+K(i.conditioningText),1)]),l("p",null,[Git,et(" "+K(i.aiPrefix),1)]),l("p",null,[Vit,et(" "+K(i.userPrefix),1)]),l("div",null,[zit,l("ul",null,[(T(!0),w(Pe,null,Ke(i.antipromptsList,o=>(T(),w("li",{key:o.id},K(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>i.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),i.editMode?(T(),w("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):G("",!0)])}const qit=ot(Nit,[["render",Hit]]),Zu="/assets/logo-9d653710.svg",$it="/",Yit={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},components:{InteractiveMenu:wE},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let t=[{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"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Le(()=>{ze.replace()})},methods:{showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return $it+this.personality.avatar},defaultImg(t){t.target.src=Zu},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)}},watch:{selected(){Le(()=>{ze.replace()})}}},Wit=["title"],Kit={class:"flex-grow"},jit={class:"flex items-center mb-4"},Qit=["src"],Xit={class:"text-sm text-gray-600"},Zit={class:"text-sm text-gray-600"},Jit={key:0,class:"text-sm text-gray-600"},ert={class:"text-sm text-gray-600"},trt={class:"mb-4"},nrt=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1),srt=["innerHTML"],irt={key:0,class:"mb-4"},rrt=l("label",{for:"languages",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Select Language:",-1),ort=["selected"],art={class:"mt-auto pt-4 border-t"},lrt={class:"flex justify-between items-center flex-wrap"},crt=["title"],drt=["fill"],urt=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),prt=[urt],_rt=l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1),hrt=[_rt],frt=l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1),mrt=[frt],grt=l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1),brt=[grt],Ert=["src"];function yrt(t,e,n,s,i,r){const o=tt("InteractiveMenu");return T(),w("div",{class:Ge(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",r.selected_computed?"border-primary-light":"border-transparent",i.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:n.personality.installed?"":"Not installed"},[l("div",Kit,[l("div",jit,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.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)=>r.toggleSelected&&r.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,Qit),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a))},K(n.personality.name),1),l("p",Xit,"Author: "+K(n.personality.author),1),l("p",Zit,"Version: "+K(n.personality.version),1),n.personality.language?(T(),w("p",Jit,"Language: "+K(n.personality.language),1)):G("",!0),l("p",ert,"Category: "+K(n.personality.category),1)])]),l("div",trt,[nrt,l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.personality.description},null,8,srt)]),n.personality.languages&&n.select_language?(T(),w("div",irt,[rrt,i.isMounted?G("",!0):P((T(),w("select",{key:0,id:"languages","onUpdate:modelValue":e[6]||(e[6]=a=>n.personality.language=a),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),w(Pe,null,Ke(n.personality.languages,(a,c)=>(T(),w("option",{key:c,selected:a==n.personality.languages[0]},K(a),9,ort))),128))],512)),[[kt,n.personality.language]])])):G("",!0)]),l("div",art,[l("div",lrt,[l("button",{onClick:e[7]||(e[7]=(...a)=>t.toggleFavorite&&t.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("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"},prt,8,drt))],8,crt),i.isMounted?(T(),w("button",{key:0,onClick:e[8]||(e[8]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},hrt)):G("",!0),i.isMounted?(T(),w("button",{key:1,onClick:e[9]||(e[9]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},mrt)):G("",!0),l("button",{onClick:e[10]||(e[10]=(...a)=>r.showFolder&&r.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},brt),V(o,{commands:r.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(T(),w("div",{key:0,style:Ht({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,Ert)],4)):G("",!0)],10,Wit)}const RE=ot(Yit,[["render",yrt]]),vrt={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(t){console.log(`UI prop changed for instance ${this.instanceId}:`,t),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const t=this.$refs.container,n=new DOMParser().parseFromString(this.ui,"text/html"),s=n.getElementsByTagName("style");Array.from(s).forEach(r=>{const o=document.createElement("style");o.textContent=this.scopeCSS(r.textContent),document.head.appendChild(o)}),t.innerHTML=n.body.innerHTML;const i=n.getElementsByTagName("script");Array.from(i).forEach(r=>{const o=document.createElement("script");o.textContent=r.textContent,t.appendChild(o)})},scopeCSS(t){return t.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},Srt=["id"];function Trt(t,e,n,s,i,r){return T(),w("div",{id:i.containerId,ref:"container"},null,8,Srt)}const oN=ot(vrt,[["render",Trt]]),xrt="/",Crt={components:{DynamicUIRenderer:oN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Le(()=>{ze.replace()})},methods:{copyToClipBoard(t){console.log("Copying to clipboard :",t),navigator.clipboard.writeText(t)},getImgUrl(){return xrt+this.binding.icon},defaultImg(t){t.target.src=Zu},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(){Le(()=>{ze.replace()})}}},wrt=["title"],Rrt={class:"flex flex-row items-center gap-3"},Art=["src"],Nrt={class:"font-bold font-large text-lg truncate"},Ort=l("div",{class:"grow"},null,-1),Mrt={class:"flex-none gap-1"},Irt=l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),krt=l("span",{class:"sr-only"},"Help",-1),Drt=[Irt,krt],Lrt={class:"flex items-center flex-row-reverse gap-2 my-1"},Prt=l("span",{class:"sr-only"},"Click to install",-1),Urt=l("span",{class:"sr-only"},"Reinstall",-1),Frt=l("span",{class:"sr-only"},"UnInstall",-1),Brt=l("span",{class:"sr-only"},"Settings",-1),Grt={class:""},Vrt={class:""},zrt={class:"flex items-center"},Hrt=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qrt=l("b",null,"Author: ",-1),$rt={class:"flex items-center"},Yrt=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Wrt=l("b",null,"Folder: ",-1),Krt=l("div",{class:"grow"},null,-1),jrt=l("i",{"data-feather":"clipboard",class:"w-5"},null,-1),Qrt=[jrt],Xrt={class:"flex items-center"},Zrt=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Jrt=l("b",null,"Version: ",-1),eot={class:"flex items-center"},tot=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),not=l("b",null,"Link: ",-1),sot=["href"],iot=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1),rot=["title","innerHTML"];function oot(t,e,n,s,i,r){const o=tt("DynamicUIRenderer");return T(),w("div",{class:Ge(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=j((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[l("div",null,[l("div",Rrt,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Art),l("h3",Nrt,K(n.binding.name),1),Ort,l("div",Mrt,[n.selected?(T(),w("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=j(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Drt)):G("",!0)])]),l("div",Lrt,[n.binding.installed?G("",!0):(T(),w("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=j((...a)=>r.toggleInstall&&r.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"},[et(" Install "),Prt])),n.binding.installed?(T(),w("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=j((...a)=>r.toggleReinstall&&r.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"},[et(" Reinstall "),Urt])):G("",!0),n.binding.installed?(T(),w("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=j((...a)=>r.toggleUnInstall&&r.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"},[et(" Uninstall "),Frt])):G("",!0),n.selected?(T(),w("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=j((...a)=>r.toggleSettings&&r.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"},[et(" Settings "),Brt])):G("",!0)]),n.binding.ui?(T(),dt(o,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):G("",!0),l("div",Grt,[l("div",Vrt,[l("div",zrt,[Hrt,qrt,et(" "+K(n.binding.author),1)]),l("div",$rt,[Yrt,Wrt,et(" "+K(n.binding.folder)+" ",1),Krt,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]=j(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},Qrt)]),l("div",Xrt,[Zrt,Jrt,et(" "+K(n.binding.version),1)]),l("div",eot,[tot,not,l("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},K(n.binding.link),9,sot)])]),iot,l("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description,innerHTML:n.binding.description},null,8,rot)])])],10,wrt)}const aot=ot(Crt,[["render",oot]]),lot={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},cot={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},dot={class:"relative w-full max-w-md max-h-full"},uot={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},pot=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),_ot=l("span",{class:"sr-only"},"Close modal",-1),hot=[pot,_ot],fot={class:"p-4 text-center"},mot=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),got={class:"p-4 text-center mx-auto mb-4"},bot=l("label",{class:"mr-2"},"Model path",-1);function Eot(t,e,n,s,i,r){return i.show?(T(),w("div",cot,[l("div",dot,[l("div",uot,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.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"},hot),l("div",fot,[mot,l("div",got,[bot,P(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[pe,i.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>r.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=>r.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")])])])])):G("",!0)}const yot=ot(lot,[["render",Eot]]);const vot={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(t){return typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){const e=["bytes","KB","MB","GB"];let n=0;for(;t>=1024&&n(Ss("data-v-f43216be"),t=t(),Ts(),t),Sot={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Tot={class:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6 w-96 max-w-md"},xot={class:"text-2xl font-bold mb-4 text-gray-800 dark:text-white flex items-center"},Cot=AE(()=>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)),wot={class:"h-48 bg-gray-100 dark:bg-gray-700 rounded-lg mb-4 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200 dark:scrollbar-thumb-gray-600 dark:scrollbar-track-gray-800"},Rot={class:"flex items-center justify-between"},Aot={class:"flex-grow"},Not=["onClick"],Oot=["onUpdate:modelValue","onBlur","onKeyup"],Mot={key:2,class:"text-xs text-gray-500 dark:text-gray-400 ml-2"},Iot={class:"flex items-center"},kot=["onClick"],Dot=AE(()=>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)),Lot=[Dot],Pot=["onClick"],Uot=AE(()=>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)),Fot=[Uot],Bot={key:0,class:"flex flex-col mb-4"},Got={class:"flex justify-between"},Vot=["disabled"];function zot(t,e,n,s,i,r){return T(),dt(Us,{name:"fade"},{default:Ie(()=>[n.show?(T(),w("div",Sot,[l("div",Tot,[l("h2",xot,[Cot,et(" "+K(n.title),1)]),l("div",wot,[l("ul",null,[(T(!0),w(Pe,null,Ke(n.choices,(o,a)=>(T(),w("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",Rot,[l("div",Aot,[o.isEditing?P((T(),w("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>r.finishEditing(o),onKeyup:Vs(c=>r.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,Oot)),[[pe,o.editName]]):(T(),w("span",{key:0,onClick:c=>r.selectChoice(o),class:Ge([{"font-semibold":o===i.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},K(r.displayName(o)),11,Not)),o.size?(T(),w("span",Mot,K(r.formatSize(o.size)),1)):G("",!0)]),l("div",Iot,[l("button",{onClick:c=>r.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},Lot,8,kot),n.can_remove?(T(),w("button",{key:0,onClick:c=>r.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},Fot,8,Pot)):G("",!0)])])]))),128))])]),i.showInput?(T(),w("div",Bot,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>i.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),[[pe,i.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):G("",!0),l("div",Got,[l("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.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)=>r.validateChoice&&r.validateChoice(...o)),disabled:!i.selectedChoice,class:Ge([{"bg-blue-500 hover:bg-blue-600":i.selectedChoice,"bg-gray-400 cursor-not-allowed":!i.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,Vot),l("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.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 ")])])])):G("",!0)]),_:1})}const NE=ot(vot,[["render",zot],["__scopeId","data-v-f43216be"]]),Hot={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const t=this.radioOptions.find(e=>e.value===this.selectedValue);return t?t.label:""}},watch:{selectedValue(t,e){this.$emit("radio-selected",t)}},methods:{handleRadioChange(){}}},qot={class:"flex space-x-4"},$ot=["value","aria-checked"],Yot={class:"text-gray-700"};function Wot(t,e,n,s,i,r){return T(),w("div",qot,[(T(!0),w(Pe,null,Ke(n.radioOptions,(o,a)=>(T(),w("label",{key:o.value,class:"flex items-center space-x-2"},[P(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>i.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>r.handleRadioChange&&r.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":i.selectedValue===o.value.toString(),role:"radio"},null,40,$ot),[[Ak,i.selectedValue]]),l("span",Yot,K(o.label),1)]))),128))])}const Kot=ot(Hot,[["render",Wot]]),jot="/assets/gpu-df72bf63.svg",Qot={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 t=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",t),this.$emit("change"),this.newItem=""}},removeItem(t){const e=this.modelValue.filter((n,s)=>s!==t);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(t){this.draggingIndex=t},dragItem(t){if(this.draggingIndex!==null){const e=[...this.modelValue],n=e.splice(this.draggingIndex,1)[0];e.splice(t,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(t){if(t>0){const e=[...this.modelValue],n=e.splice(t,1)[0];e.splice(t-1,0,n),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(t){if(ti.newItem=o),placeholder:n.placeholder,onKeyup:e[1]||(e[1]=Vs((...o)=>r.addItem&&r.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,Zot),[[pe,i.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>r.addItem&&r.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),n.modelValue.length>0?(T(),w("ul",Jot,[(T(!0),w(Pe,null,Ke(n.modelValue,(o,a)=>(T(),w("li",{key:a,class:Ge(["flex items-center mb-2 relative",{"bg-gray-200":i.draggingIndex===a}])},[l("span",eat,K(o),1),l("div",tat,[l("button",{onClick:c=>r.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},iat,8,nat),a>0?(T(),w("button",{key:0,onClick:c=>r.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},aat,8,rat)):G("",!0),ar.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},dat,8,lat)):G("",!0)]),i.draggingIndex===a?(T(),w("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>r.startDragging(a),onMousemove:c=>r.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>r.stopDragging&&r.stopDragging(...c))},null,40,uat)):G("",!0)],2))),128))])):G("",!0),n.modelValue.length>0?(T(),w("div",pat,[l("button",{onClick:e[4]||(e[4]=(...o)=>r.removeAll&&r.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):G("",!0)])}const hat=ot(Qot,[["render",_at]]);const fat="/";ae.defaults.baseURL="/";const mat={components:{AddModelDialog:yot,ModelEntry:Ait,PersonalityViewer:qit,PersonalityEntry:RE,BindingEntry:aot,ChoiceDialog:NE,Card:ju,StringListManager:hat,RadioOptions:Kot},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:Is,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:gs,binding_changed:!1,SVGGPU:jot,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:fat,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(t){console.log("Error cought:",t)}qe.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(t=>t.json()).then(t=>{this.voices=t.voices}).catch(t=>console.error("Error fetching voices:",t))},async refreshHardwareUsage(t){await t.dispatch("refreshDiskUsage"),await t.dispatch("refreshRamUsage"),await t.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(t){this.$store.state.config.rag_databases.splice(t,1),this.settingsChanged=!0},async vectorize_folder(t){await ae.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[t]},this.posts_headers)},async select_folder(t){try{qe.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[t]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ae.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(t){console.log("handleTemplateSelection");const e=t.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=` -`,this.configFile.start_user_header_id_template="[INST]",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="[/INST]",this.configFile.start_ai_header_id_template="[INST]",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="[/INST]",this.settingsChanged=!0)},install_model(){},reinstallDiffusersService(){ae.post("/install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeDiffusersService(){ae.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallSDService(){ae.post("/install_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeSDService(){ae.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},startSDService(){ae.post("start_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},showSD(){ae.post("show_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallComfyUIService(){ae.post("install_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},upgradeComfyUIService(){ae.post("upgrade_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startComfyUIService(){ae.post("start_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},showComfyui(){ae.post("show_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallMotionCtrlService(){ae.post("install_motion_ctrl",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallvLLMService(){ae.post("install_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startvLLMService(){ae.post("start_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startollamaService(){ae.post("start_ollama",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallPetalsService(){ae.post("install_petals",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallOLLAMAService(){ae.post("install_ollama",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallElasticSearchService(){ae.post("install_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},getSeviceVoices(){ae.get("list_voices").then(t=>{this.voices=t.data.voices}).catch(t=>{console.error(t)})},load_more_models(){this.models_zoo_initialLoadCount+10{ze.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(t){this.$store.state.sort_type=t,this.updateModelsZoo(),console.log(`Selected sorting:${t}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(t){this.isLoading=!0,this.selectSortOption(t).then(()=>{this.isLoading=!1})},filter_installed(t){return console.log("filtering"),t.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(console.log("voice synthesis"),this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let t=await this.api_get_req("check_update");this.has_updates=t.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(t){this.selected_variant=t},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(t){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let n="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:n},console.log("installing...",this.addModel);const s=i=>{if(console.log("received something"),i.status&&i.progress<=100){if(this.addModel=i,console.log("Progress",i),e.progress=i.progress,e.speed=i.speed,e.total_size=i.total_size,e.downloaded_size=i.downloaded_size,e.start_time=i.start_time,e.installing=!0,e.progress==100){const r=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[r].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),qe.off("install_progress",s),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: +`,this.configFile.start_user_header_id_template="[INST]",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="[/INST]",this.configFile.start_ai_header_id_template="[INST]",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="[/INST]",this.settingsChanged=!0)},install_model(){},reinstallDiffusersService(){ae.post("/install_diffusers",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeDiffusersService(){ae.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallSDService(){ae.post("/install_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},upgradeSDService(){ae.post("upgrade_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},startSDService(){ae.post("start_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},showSD(){ae.post("show_sd",{client_id:this.$store.state.client_id},this.posts_headers).then(t=>{}).catch(t=>{console.error(t)})},reinstallComfyUIService(){ae.post("install_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},upgradeComfyUIService(){ae.post("upgrade_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startComfyUIService(){ae.post("start_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},showComfyui(){ae.post("show_comfyui",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallvLLMService(){ae.post("install_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startvLLMService(){ae.post("start_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},startollamaService(){ae.post("start_ollama",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallPetalsService(){ae.post("install_petals",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallOLLAMAService(){ae.post("install_ollama",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},reinstallElasticSearchService(){ae.post("install_vllm",{client_id:this.$store.state.client_id}).then(t=>{}).catch(t=>{console.error(t)})},getSeviceVoices(){ae.get("list_voices").then(t=>{this.voices=t.data.voices}).catch(t=>{console.error(t)})},load_more_models(){this.models_zoo_initialLoadCount+10{ze.replace()}),this.binding_changed&&!this.mzc_collapsed&&(this.modelsZoo==null||this.modelsZoo.length==0)&&(console.log("Refreshing models"),await this.$store.dispatch("refreshConfig"),this.models_zoo=[],this.refreshModelsZoo(),this.binding_changed=!1)},async selectSortOption(t){this.$store.state.sort_type=t,this.updateModelsZoo(),console.log(`Selected sorting:${t}`),console.log(`models:${this.models_zoo}`)},handleRadioSelected(t){this.isLoading=!0,this.selectSortOption(t).then(()=>{this.isLoading=!1})},filter_installed(t){return console.log("filtering"),t.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(console.log("voice synthesis"),this.audioVoices=speechSynthesis.getVoices(),console.log("Voices:"+this.audioVoices),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let t=await this.api_get_req("check_update");this.has_updates=t.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(t){this.selected_variant=t},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(t){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$store.state.toast.showToast("Link is not valid, file does not exist",4,!1);return}let n="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:n},console.log("installing...",this.addModel);const s=i=>{if(console.log("received something"),i.status&&i.progress<=100){if(this.addModel=i,console.log("Progress",i),e.progress=i.progress,e.speed=i.speed,e.total_size=i.total_size,e.downloaded_size=i.downloaded_size,e.start_time=i.start_time,e.installing=!0,e.progress==100){const r=this.models_zoo.findIndex(o=>o.name===e.model.name);this.models_zoo[r].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),qe.off("install_progress",s),console.log("Installed successfully"),this.$store.state.toast.showToast(`Model: `+e.model.name+` installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else qe.off("install_progress",s),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",i.error),this.$store.state.toast.showToast(`Model: `+e.model.name+` @@ -219,25 +219,25 @@ Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this `,4,!1),console.error(e)})},async remountPersonality(t){await this.unmountPersonality(t),await this.mountPersonality(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,console.log("Personality path:",t.personality.path),ae.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:t.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(t){t.target.src=gs},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 t=await ae.get("/get_snd_input_devices");this.snd_input_devices=t.data.device_names,this.snd_input_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const t=await ae.get("/get_snd_output_devices");this.snd_output_devices=t.data.device_names,this.snd_output_devices_indexes=t.data.device_indexes}catch{console.log("Couldin't list output devices")}try{console.log("Getting comfyui models");const t=await ae.get("/list_comfyui_models");console.log("res is ",t),t.data.status&&(this.comfyui_models=t.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(t=>t.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(t=>t.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return Is;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Is}}},imgModel:{get(){try{let t=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return t>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[t].icon}`),this.$store.state.modelsZoo[t].icon):Is}catch{console.log("error")}if(!this.isMounted)return Is;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Is}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(t){this.$store.state.config.audio_out_voice=t}},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(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:gs},set(t){this.$store.state.config.user_avatar=t}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(t){this.$store.state.config.hardware_mode=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(t){this.$store.state.config.auto_speak=t}},auto_read:{get(){return this.$store.state.config.auto_read},set(t){this.$store.state.config.auto_read=t}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(t){console.log("Current xtts voice set to ",t),this.$store.state.config.xtts_current_language=t}},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(t){t=="main_voice"||t===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",t),this.$store.state.config.xtts_current_voice=t)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(t){this.$store.state.config.audio_pitch=t}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(t){this.$store.state.config.audio_in_language=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(t){this.$store.state.config.discussion_db_name=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(t){this.$store.commit("setbindingsZoo",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},installed_models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},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 t=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return t>-1?this.bindingsZoo[t].name:null},active_pesonality(){if(!this.isMounted)return null;const t=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return t>-1?this.$store.state.personalities[t].name:null},speed_computed(){return si(this.addModel.speed)},total_size_computed(){return si(this.addModel.total_size)},downloaded_size_computed(){return si(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Le(()=>{ze.replace()})},pc_collapsed(){Le(()=>{ze.replace()})},mc_collapsed(){Le(()=>{ze.replace()})},sc_collapsed(){Le(()=>{ze.replace()})},showConfirmation(){Le(()=>{ze.replace()})},mzl_collapsed(){Le(()=>{ze.replace()})},pzl_collapsed(){Le(()=>{ze.replace()})},ezl_collapsed(){Le(()=>{ze.replace()})},bzl_collapsed(){Le(()=>{ze.replace()})},all_collapsed(t){this.collapseAll(t),Le(()=>{ze.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,Le(()=>{ze.replace()})},isLoading(){Le(()=>{ze.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},mzdc_collapsed(){Le(()=>{ze.replace()})}},async beforeRouteLeave(t){if(await this.$router.isReady(),this.settingsChanged)return await this.$store.state.yesNoDialog.askQuestion(`Did You forget to apply changes? -You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},D=t=>(Ss("data-v-631a8340"),t=t(),Ts(),t),gat={class:"container 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"},bat={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},Eat={key:0,class:"flex gap-3 flex-1 items-center duration-75"},yat=D(()=>l("i",{"data-feather":"x"},null,-1)),vat=[yat],Sat=D(()=>l("i",{"data-feather":"check"},null,-1)),Tat=[Sat],xat={key:1,class:"flex gap-3 flex-1 items-center"},Cat=D(()=>l("i",{"data-feather":"refresh-ccw"},null,-1)),wat=[Cat],Rat=D(()=>l("i",{"data-feather":"list"},null,-1)),Aat=[Rat],Nat={class:"flex gap-3 flex-1 items-center justify-end"},Oat=D(()=>l("i",{"data-feather":"trash-2"},null,-1)),Mat=[Oat],Iat=D(()=>l("i",{"data-feather":"refresh-ccw"},null,-1)),kat=[Iat],Dat=D(()=>l("i",{"data-feather":"arrow-up-circle"},null,-1)),Lat=D(()=>l("i",{"data-feather":"alert-circle"},null,-1)),Pat=[Dat,Lat],Uat={class:"flex gap-3 items-center"},Fat={key:0,class:"flex gap-3 items-center"},Bat=D(()=>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)),Gat=[Bat],Vat=D(()=>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)),zat=[Vat],Hat={key:1,role:"status"},qat=D(()=>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)),$at=D(()=>l("span",{class:"sr-only"},"Loading...",-1)),Yat={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"},Wat={class:"flex flex-row p-3"},Kat=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),jat=[Kat],Qat=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Xat=[Qat],Zat=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Jat=D(()=>l("div",{class:"mr-2"},"|",-1)),elt={class:"text-base font-semibold cursor-pointer select-none items-center"},tlt={class:"flex gap-2 items-center"},nlt={key:0},slt=["src"],ilt={class:"font-bold font-large text-lg"},rlt={key:1},olt={class:"flex gap-2 items-center"},alt=["src"],llt={class:"font-bold font-large text-lg"},clt=D(()=>l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),dlt={class:"font-bold font-large text-lg"},ult=D(()=>l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),plt={class:"font-bold font-large text-lg"},_lt={class:"mb-2"},hlt=D(()=>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"})]),et(" CPU Ram usage: ")],-1)),flt={class:"flex flex-col mx-2"},mlt=D(()=>l("b",null,"Avaliable ram: ",-1)),glt=D(()=>l("b",null,"Ram usage: ",-1)),blt={class:"p-2"},Elt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},ylt={class:"mb-2"},vlt=D(()=>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"}),et(" Disk usage: ")],-1)),Slt={class:"flex flex-col mx-2"},Tlt=D(()=>l("b",null,"Avaliable disk space: ",-1)),xlt=D(()=>l("b",null,"Disk usage: ",-1)),Clt={class:"p-2"},wlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Rlt={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Alt=["src"],Nlt={class:"flex flex-col mx-2"},Olt=D(()=>l("b",null,"Model: ",-1)),Mlt=D(()=>l("b",null,"Avaliable vram: ",-1)),Ilt=D(()=>l("b",null,"GPU usage: ",-1)),klt={class:"p-2"},Dlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Llt={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"},Plt={class:"flex flex-row p-3"},Ult=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],Vlt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1)),zlt={class:"flex flex-col mb-2 px-3 pb-2"},Hlt={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"},qlt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),$lt={style:{width:"100%"}},Ylt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),Wlt={style:{width:"100%"}},Klt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),jlt={style:{width:"100%"}},Qlt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),Xlt={style:{width:"100%"}},Zlt={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"},Jlt={class:"flex flex-row p-3"},ect=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),tct=[ect],nct=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),sct=[nct],ict=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),rct={class:"flex flex-col mb-2 px-3 pb-2"},oct={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"},act=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),lct={for:"logo-upload"},cct=["src"],dct={style:{width:"10%"}},uct=D(()=>l("i",{"data-feather":"x"},null,-1)),pct=[uct],_ct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),hct={class:"text-center items-center"},fct={class:"flex flex-row"},mct=D(()=>l("option",{value:"cpu"},"CPU",-1)),gct=D(()=>l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),bct=D(()=>l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Ect=D(()=>l("option",{value:"nvidia"},"NVIDIA",-1)),yct=D(()=>l("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),vct=D(()=>l("option",{value:"amd"},"AMD",-1)),Sct=D(()=>l("option",{value:"apple-intel"},"Apple Intel",-1)),Tct=D(()=>l("option",{value:"apple-silicon"},"Apple Silicon",-1)),xct=[mct,gct,bct,Ect,yct,vct,Sct,Tct],Cct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),wct={style:{width:"100%"}},Rct=D(()=>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)),Act={class:"flex flex-row"},Nct=D(()=>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)),Oct={class:"flex flex-row"},Mct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Ict={class:"flex flex-row"},kct=D(()=>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)),Dct={class:"flex flex-row"},Lct=D(()=>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)),Pct={class:"flex flex-row"},Uct=D(()=>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)),Fct={class:"flex flex-row"},Bct=D(()=>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)),Gct={class:"flex flex-row"},Vct=D(()=>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)),zct={class:"flex flex-row"},Hct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),qct={class:"flex flex-row"},$ct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),Yct={class:"flex flex-row"},Wct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),Kct={class:"flex flex-row"},jct={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"},Qct=D(()=>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)),Xct=D(()=>l("option",{value:"lollms"},"Lollms communication template",-1)),Zct=D(()=>l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),Jct=D(()=>l("option",{value:"bare"},"Bare, useful when in chat mode",-1)),edt=D(()=>l("option",{value:"llama3"},"LLama3 communication template",-1)),tdt=D(()=>l("option",{value:"mistral"},"Mistral communication template",-1)),ndt=[Xct,Zct,Jct,edt,tdt],sdt=D(()=>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)),idt=D(()=>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)),rdt=D(()=>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)),odt=D(()=>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)),adt=D(()=>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)),ldt=D(()=>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)),cdt=D(()=>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)),ddt=D(()=>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)),udt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),pdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),_dt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),hdt=["innerHTML"],fdt=D(()=>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)),mdt={style:{width:"100%"}},gdt={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"},bdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),Edt={style:{width:"100%"}},ydt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),vdt={style:{width:"100%"}},Sdt=D(()=>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)),Tdt={style:{width:"100%"}},xdt=D(()=>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)),Cdt={style:{width:"100%"}},wdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Rdt={for:"avatar-upload"},Adt=["src"],Ndt={style:{width:"10%"}},Odt=D(()=>l("i",{"data-feather":"x"},null,-1)),Mdt=[Odt],Idt=D(()=>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)),kdt={class:"flex flex-row"},Ddt=D(()=>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)),Ldt={style:{width:"100%"}},Pdt=D(()=>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)),Udt={style:{width:"100%"}},Fdt={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"},Bdt=D(()=>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)),Gdt={style:{width:"100%"}},Vdt=D(()=>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)),zdt={style:{width:"100%"}},Hdt=D(()=>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)),qdt={style:{width:"100%"}},$dt=D(()=>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)),Ydt={style:{width:"100%"}},Wdt=D(()=>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)),Kdt={style:{width:"100%"}},jdt={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"},Qdt=D(()=>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)),Xdt={class:"flex flex-row"},Zdt=D(()=>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)),Jdt={style:{width:"100%"}},eut={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"},tut=D(()=>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)),nut={class:"flex flex-row"},sut={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"},iut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),rut={class:"flex flex-row"},out=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),aut={class:"flex flex-row"},lut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),cut={class:"flex flex-row"},dut={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"},uut={class:"flex flex-row p-3"},put=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),_ut=[put],hut=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),fut=[hut],mut=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),gut={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"},but=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),Eut={style:{width:"100%"}},yut=["onUpdate:modelValue"],vut=["onClick"],Sut=["onClick"],Tut=["onClick"],xut=D(()=>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)),Cut=D(()=>l("option",{value:"bert"},"Bert Vectorizer",-1)),wut=D(()=>l("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Rut=D(()=>l("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),Aut=[Cut,wut,Rut],Nut=D(()=>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)),Out=D(()=>l("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),Mut=[Out],Iut=D(()=>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)),kut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),Dut=D(()=>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)),Lut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),Put=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),Uut=D(()=>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)),Fut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),But=D(()=>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)),Gut=D(()=>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)),Vut=D(()=>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)),zut={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"},Hut=D(()=>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)),qut={class:"flex flex-row"},$ut=D(()=>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)),Yut={class:"flex flex-row"},Wut=D(()=>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)),Kut={class:"flex flex-row"},jut=D(()=>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)),Qut={class:"flex flex-row"},Xut=D(()=>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)),Zut={class:"flex flex-row"},Jut=D(()=>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)),ept=D(()=>l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),tpt=D(()=>l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),npt=D(()=>l("option",{value:"model_embedding"},"Model Embedding",-1)),spt=D(()=>l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),ipt=[ept,tpt,npt,spt],rpt=D(()=>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)),opt={style:{width:"100%"}},apt=D(()=>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)),lpt=D(()=>l("option",{value:"PCA"},"PCA",-1)),cpt=D(()=>l("option",{value:"TSNE"},"TSNE",-1)),dpt=[lpt,cpt],upt=D(()=>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)),ppt={class:"flex flex-row"},_pt=D(()=>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)),hpt=D(()=>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)),fpt=D(()=>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)),mpt={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"},gpt={class:"flex flex-row p-3"},bpt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Ept=[bpt],ypt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),vpt=[ypt],Spt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),Tpt={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"},xpt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Cpt={class:"flex flex-row"},wpt=D(()=>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)),Rpt={class:"flex flex-row"},Apt=D(()=>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)),Npt={class:"flex flex-row"},Opt=D(()=>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)),Mpt={class:"flex flex-row"},Ipt=D(()=>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)),kpt={class:"flex flex-col"},Dpt=D(()=>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)),Lpt={class:"flex flex-col"},Ppt=D(()=>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)),Upt={class:"flex flex-col"},Fpt=D(()=>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)),Bpt={class:"flex flex-col"},Gpt={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"},Vpt={class:"flex flex-row p-3"},zpt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Hpt=[zpt],qpt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),$pt=[qpt],Ypt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),Wpt={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"},Kpt=D(()=>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)),jpt={style:{width:"100%"}},Qpt=D(()=>l("option",{value:"None"},"None",-1)),Xpt=D(()=>l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),Zpt=D(()=>l("option",{value:"xtts"},"XTTS",-1)),Jpt=D(()=>l("option",{value:"openai_tts"},"Open AI TTS",-1)),e_t=D(()=>l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1)),t_t=[Qpt,Xpt,Zpt,Jpt,e_t],n_t=D(()=>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)),s_t={style:{width:"100%"}},i_t=D(()=>l("option",{value:"None"},"None",-1)),r_t=D(()=>l("option",{value:"whisper"},"Whisper",-1)),o_t=D(()=>l("option",{value:"openai_whisper"},"Open AI Whisper",-1)),a_t=[i_t,r_t,o_t],l_t=D(()=>l("tr",null,null,-1)),c_t=D(()=>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)),d_t={style:{width:"100%"}},u_t=D(()=>l("option",{value:"None"},"None",-1)),p_t=D(()=>l("option",{value:"diffusers"},"Diffusers",-1)),__t=D(()=>l("option",{value:"autosd"},"AUTO1111's SD",-1)),h_t=D(()=>l("option",{value:"dall-e"},"Open AI DALL-E",-1)),f_t=D(()=>l("option",{value:"midjourney"},"Midjourney",-1)),m_t=D(()=>l("option",{value:"comfyui"},"Comfyui",-1)),g_t=D(()=>l("option",{value:"fooocus"},"Fooocus",-1)),b_t=[u_t,p_t,__t,h_t,f_t,m_t,g_t],E_t=D(()=>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)),y_t={style:{width:"100%"}},v_t=D(()=>l("option",{value:"None"},"None",-1)),S_t=D(()=>l("option",{value:"musicgen"},"Music Gen",-1)),T_t=[v_t,S_t],x_t={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"},C_t=D(()=>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)),w_t={class:"flex flex-row"},R_t=D(()=>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)),A_t={class:"flex flex-row"},N_t=D(()=>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)),O_t={class:"flex flex-row"},M_t=D(()=>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)),I_t={class:"flex flex-row"},k_t={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"},D_t=D(()=>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_t={style:{width:"100%"}},P_t=D(()=>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)),U_t={style:{width:"100%"}},F_t=D(()=>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)),B_t={style:{width:"100%"}},G_t=D(()=>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)),V_t={style:{width:"100%"}},z_t=D(()=>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)),H_t={style:{width:"100%"}},q_t=D(()=>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)),$_t={style:{width:"100%"}},Y_t=D(()=>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)),W_t={style:{width:"100%"}},K_t=D(()=>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)),j_t={class:"flex flex-row"},Q_t=D(()=>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)),X_t={class:"flex flex-row"},Z_t={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"},J_t=D(()=>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)),eht={style:{width:"100%"}},tht=["value"],nht=D(()=>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)),sht={style:{width:"100%"}},iht=["value"],rht={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"},oht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),aht={style:{width:"100%"}},lht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),cht={style:{width:"100%"}},dht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),uht={style:{width:"100%"}},pht=D(()=>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)),_ht={style:{width:"100%"}},hht=D(()=>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)),fht={style:{width:"100%"}},mht=D(()=>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)),ght={style:{width:"100%"}},bht=D(()=>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)),Eht={style:{width:"100%"}},yht=D(()=>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)),vht={style:{width:"100%"}},Sht=D(()=>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)),Tht={style:{width:"100%"}},xht=D(()=>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)),Cht={style:{width:"100%"}},wht=D(()=>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)),Rht={style:{width:"100%"}},Aht=D(()=>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)),Nht={style:{width:"100%"}},Oht=D(()=>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)),Mht={style:{width:"100%"}},Iht=D(()=>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)),kht={style:{width:"100%"}},Dht={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"},Lht=D(()=>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)),Pht={class:"flex flex-row"},Uht=D(()=>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)),Fht={class:"flex flex-row"},Bht=D(()=>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)),Ght=D(()=>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)),Vht=["value"],zht={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"},Hht=D(()=>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)),qht={class:"flex flex-row"},$ht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Yht={class:"flex flex-row"},Wht=["value"],Kht={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"},jht=D(()=>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)),Qht={class:"flex flex-row"},Xht=D(()=>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)),Zht={class:"flex flex-row"},Jht=["value"],eft={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"},tft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),nft={class:"flex flex-row"},sft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),ift=D(()=>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)),rft=["value"],oft={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"},aft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),lft={class:"flex flex-row"},cft=["value"],dft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),uft={class:"flex flex-row"},pft=["value"],_ft=D(()=>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)),hft={class:"flex flex-row"},fft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),mft={class:"flex flex-row"},gft=D(()=>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)),bft={class:"flex flex-row"},Eft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),yft={class:"flex flex-row"},vft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),Sft={class:"flex flex-row"},Tft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),xft={class:"flex flex-row"},Cft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),wft={class:"flex flex-row"},Rft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),Aft={class:"flex flex-row"},Nft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),Oft={class:"flex flex-row"},Mft=D(()=>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)),Ift={class:"flex flex-row"},kft={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"},Dft=D(()=>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)),Lft={class:"flex flex-row"},Pft=D(()=>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)),Uft={class:"flex flex-row"},Fft=D(()=>l("option",null," tts-1 ",-1)),Bft=D(()=>l("option",null," tts-2 ",-1)),Gft=[Fft,Bft],Vft=D(()=>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)),zft={class:"flex flex-row"},Hft=D(()=>l("option",null," alloy ",-1)),qft=D(()=>l("option",null," echo ",-1)),$ft=D(()=>l("option",null," fable ",-1)),Yft=D(()=>l("option",null," nova ",-1)),Wft=D(()=>l("option",null," shimmer ",-1)),Kft=[Hft,qft,$ft,Yft,Wft],jft={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"},Qft=D(()=>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)),Xft={class:"flex flex-row"},Zft=D(()=>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)),Jft={class:"flex flex-row"},emt=D(()=>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)),tmt={class:"flex flex-row"},nmt=D(()=>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)),smt={class:"flex flex-row"},imt=D(()=>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)),rmt={class:"flex flex-row"},omt=["value"],amt={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"},lmt=D(()=>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)),cmt={class:"flex flex-row"},dmt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),umt=[dmt],pmt=D(()=>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)),_mt={class:"flex flex-row"},hmt=D(()=>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)),fmt={class:"flex flex-row"},mmt=D(()=>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)),gmt={class:"flex flex-row"},bmt={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"},Emt=D(()=>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)),ymt={class:"flex flex-row"},vmt=D(()=>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)),Smt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),Tmt={class:"flex flex-row"},xmt=D(()=>l("td",null,null,-1)),Cmt={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"},wmt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),Rmt={class:"flex flex-row"},Amt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),Nmt={class:"flex flex-row"},Omt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),Mmt={class:"flex flex-row"},Imt={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"},kmt=D(()=>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)),Dmt={class:"flex flex-row"},Lmt=D(()=>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)),Pmt={class:"flex flex-row"},Umt=D(()=>l("option",null," dall-e-2 ",-1)),Fmt=D(()=>l("option",null," dall-e-3 ",-1)),Bmt=[Umt,Fmt],Gmt={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"},Vmt=D(()=>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)),zmt={class:"flex flex-row"},Hmt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),qmt=[Hmt],$mt=D(()=>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)),Ymt={class:"flex flex-row"},Wmt=["value"],Kmt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),jmt={class:"flex flex-row"},Qmt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Xmt=[Qmt],Zmt=D(()=>l("td",{style:{"min-width":"200px"}},null,-1)),Jmt={class:"flex flex-row"},egt=D(()=>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)),tgt=D(()=>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)),ngt={class:"flex flex-row"},sgt={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"},igt=D(()=>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)),rgt={class:"flex flex-row"},ogt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),agt=[ogt],lgt=D(()=>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)),cgt={class:"flex flex-row"},dgt=D(()=>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)),ugt={class:"flex flex-row"},pgt={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"},_gt=D(()=>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)),hgt={class:"flex flex-row"},fgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),mgt=[fgt],ggt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),bgt={class:"flex flex-row"},Egt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),ygt={class:"flex flex-row"},vgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),Sgt={class:"flex flex-col align-bottom"},Tgt={class:"relative"},xgt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),Cgt={class:"absolute right-0"},wgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),Rgt={class:"flex flex-row"},Agt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),Ngt={class:"flex flex-row"},Ogt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),Mgt={class:"flex flex-row"},Igt={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"},kgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),Dgt={class:"flex flex-row"},Lgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Pgt=[Lgt],Ugt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),Fgt={class:"flex flex-row"},Bgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),Ggt={class:"flex flex-row"},Vgt={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"},zgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Motion Ctrl service:")],-1)),Hgt={class:"flex flex-row"},qgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),$gt=[qgt],Ygt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Motion Ctrl service:")],-1)),Wgt={class:"flex flex-row"},Kgt=D(()=>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)),jgt={class:"flex flex-row"},Qgt={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"},Xgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),Zgt={class:"flex flex-row"},Jgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),ebt={class:"flex flex-row"},tbt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),nbt={class:"flex flex-row"},sbt={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"},ibt={class:"flex flex-row p-3"},rbt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),obt=[rbt],abt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),lbt=[abt],cbt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),dbt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},ubt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),pbt={key:1,class:"mr-2"},_bt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},hbt={class:"flex gap-1 items-center"},fbt=["src"],mbt={class:"font-bold font-large text-lg line-clamp-1"},gbt={key:0,class:"mb-2"},bbt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Ebt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),ybt=[Ebt],vbt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Sbt=[vbt],Tbt={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"},xbt={class:"flex flex-row p-3"},Cbt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),wbt=[Cbt],Rbt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Abt=[Rbt],Nbt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),Obt={class:"flex flex-row items-center"},Mbt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Ibt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),kbt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Dbt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Lbt={key:2,class:"mr-2"},Pbt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Ubt={class:"flex gap-1 items-center"},Fbt=["src"],Bbt={class:"font-bold font-large text-lg line-clamp-1"},Gbt={class:"mx-2 mb-4"},Vbt={class:"relative"},zbt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Hbt={key:0},qbt=D(()=>l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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)),$bt=[qbt],Ybt={key:1},Wbt=D(()=>l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",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)),Kbt=[Wbt],jbt=D(()=>l("label",{for:"only_installed"},"Show only installed models",-1)),Qbt=D(()=>l("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),Xbt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Zbt=D(()=>l("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 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)),Jbt=D(()=>l("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),eEt=[Zbt,Jbt],tEt={key:1,class:"mb-2"},nEt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},sEt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),iEt=[sEt],rEt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),oEt=[rEt],aEt={class:"mb-2"},lEt={class:"p-2"},cEt={class:"mb-3"},dEt=D(()=>l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),uEt={key:0},pEt={class:"mb-3"},_Et=D(()=>l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),hEt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},fEt=D(()=>l("div",{role:"status",class:"justify-center"},null,-1)),mEt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},gEt={class:"w-full p-2"},bEt={class:"flex justify-between mb-1"},EEt=Na(' Downloading Loading...',1),yEt={class:"text-sm font-medium text-blue-700 dark:text-white"},vEt=["title"],SEt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},TEt={class:"flex justify-between mb-1"},xEt={class:"text-base font-medium text-blue-700 dark:text-white"},CEt={class:"text-sm font-medium text-blue-700 dark:text-white"},wEt={class:"flex flex-grow"},REt={class:"flex flex-row flex-grow gap-3"},AEt={class:"p-2 text-center grow"},NEt={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"},OEt={class:"flex flex-row p-3 items-center"},MEt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),IEt=[MEt],kEt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),DEt=[kEt],LEt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),PEt={key:0,class:"mr-2"},UEt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},FEt={key:1,class:"mr-2"},BEt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},GEt={key:0,class:"flex -space-x-4 items-center"},VEt={class:"group items-center flex flex-row"},zEt=["onClick"],HEt=["src","title"],qEt=["onClick"],$Et=D(()=>l("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",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)),YEt=[$Et],WEt=D(()=>l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",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)),KEt=[WEt],jEt={class:"mx-2 mb-4"},QEt=D(()=>l("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),XEt={class:"relative"},ZEt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},JEt={key:0},eyt=D(()=>l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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)),tyt=[eyt],nyt={key:1},syt=D(()=>l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",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)),iyt=[syt],ryt={key:0,class:"mx-2 mb-4"},oyt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},ayt=["selected"],lyt={key:0,class:"mb-2"},cyt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},dyt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),uyt=[dyt],pyt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),_yt=[pyt],hyt={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"},fyt={class:"flex flex-row"},myt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),gyt=[myt],byt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Eyt=[byt],yyt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),vyt={class:"m-2"},Syt={class:"flex flex-row gap-2 items-center"},Tyt=D(()=>l("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),xyt={class:"m-2"},Cyt=D(()=>l("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),wyt={class:"m-2"},Ryt={class:"flex flex-col align-bottom"},Ayt={class:"relative"},Nyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),Oyt={class:"absolute right-0"},Myt={class:"m-2"},Iyt={class:"flex flex-col align-bottom"},kyt={class:"relative"},Dyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),Lyt={class:"absolute right-0"},Pyt={class:"m-2"},Uyt={class:"flex flex-col align-bottom"},Fyt={class:"relative"},Byt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),Gyt={class:"absolute right-0"},Vyt={class:"m-2"},zyt={class:"flex flex-col align-bottom"},Hyt={class:"relative"},qyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),$yt={class:"absolute right-0"},Yyt={class:"m-2"},Wyt={class:"flex flex-col align-bottom"},Kyt={class:"relative"},jyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Qyt={class:"absolute right-0"},Xyt={class:"m-2"},Zyt={class:"flex flex-col align-bottom"},Jyt={class:"relative"},evt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),tvt={class:"absolute right-0"};function nvt(t,e,n,s,i,r){const o=tt("StringListManager"),a=tt("Card"),c=tt("BindingEntry"),d=tt("RadioOptions"),u=tt("model-entry"),h=tt("personality-entry"),f=tt("AddModelDialog"),m=tt("ChoiceDialog");return T(),w(Pe,null,[l("div",gat,[l("div",bat,[i.showConfirmation?(T(),w("div",Eat,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=j(_=>i.showConfirmation=!1,["stop"]))},vat),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=j(_=>r.save_configuration(),["stop"]))},Tat)])):G("",!0),i.showConfirmation?G("",!0):(T(),w("div",xat,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},wat),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]=j(_=>i.all_collapsed=!i.all_collapsed,["stop"]))},Aat)])),l("div",Nat,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},Mat),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},kat),i.has_updates?(T(),w("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},Pat)):G("",!0),l("div",Uat,[i.settingsChanged?(T(),w("div",Fat,[i.isLoading?G("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=j(_=>r.applyConfiguration(),["stop"]))},Gat)),i.isLoading?G("",!0):(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=j(_=>r.cancelConfiguration(),["stop"]))},zat))])):G("",!0),i.isLoading?(T(),w("div",Hat,[l("p",null,K(i.loading_text),1),qat,$at])):G("",!0)])])]),l("div",{class:Ge(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",Yat,[l("div",Wat,[l("button",{onClick:e[9]||(e[9]=j(_=>i.sc_collapsed=!i.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,jat,512),[[wt,i.sc_collapsed]]),P(l("div",null,Xat,512),[[wt,!i.sc_collapsed]]),Zat,Jat,l("div",elt,[l("div",tlt,[l("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(T(),w("div",nlt,[(T(!0),w(Pe,null,Ke(r.vramUsage.gpus,_=>(T(),w("div",{class:"flex gap-2 items-center",key:_},[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,slt),l("h3",ilt,[l("div",null,K(r.computedFileSize(_.used_vram))+" / "+K(r.computedFileSize(_.total_vram))+" ("+K(_.percentage)+"%) ",1)])]))),128))])):G("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(T(),w("div",rlt,[l("div",olt,[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,alt),l("h3",llt,[l("div",null,K(r.vramUsage.gpus.length)+"x ",1)])])])):G("",!0)]),clt,l("h3",dlt,[l("div",null,K(r.ram_usage)+" / "+K(r.ram_total_space)+" ("+K(r.ram_percent_usage)+"%)",1)]),ult,l("h3",plt,[l("div",null,K(r.disk_binding_models_usage)+" / "+K(r.disk_total_space)+" ("+K(r.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Ge([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",_lt,[hlt,l("div",flt,[l("div",null,[mlt,et(K(r.ram_available_space),1)]),l("div",null,[glt,et(" "+K(r.ram_usage)+" / "+K(r.ram_total_space)+" ("+K(r.ram_percent_usage)+")% ",1)])]),l("div",blt,[l("div",Elt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+r.ram_percent_usage+"%;")},null,4)])])]),l("div",ylt,[vlt,l("div",Slt,[l("div",null,[Tlt,et(K(r.disk_available_space),1)]),l("div",null,[xlt,et(" "+K(r.disk_binding_models_usage)+" / "+K(r.disk_total_space)+" ("+K(r.disk_percent_usage)+"%)",1)])]),l("div",Clt,[l("div",wlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(T(!0),w(Pe,null,Ke(r.vramUsage.gpus,_=>(T(),w("div",{class:"mb-2",key:_},[l("label",Rlt,[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Alt),et(" GPU usage: ")]),l("div",Nlt,[l("div",null,[Olt,et(K(_.gpu_model),1)]),l("div",null,[Mlt,et(K(this.computedFileSize(_.available_space)),1)]),l("div",null,[Ilt,et(" "+K(this.computedFileSize(_.used_vram))+" / "+K(this.computedFileSize(_.total_vram))+" ("+K(_.percentage)+"%)",1)])]),l("div",klt,[l("div",Dlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",Llt,[l("div",Plt,[l("button",{onClick:e[10]||(e[10]=j(_=>i.smartrouterconf_collapsed=!i.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Flt,512),[[wt,i.smartrouterconf_collapsed]]),P(l("div",null,Glt,512),[[wt,!i.smartrouterconf_collapsed]]),Vlt])]),l("div",{class:Ge([{hidden:i.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",zlt,[V(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Hlt,[l("tr",null,[qlt,l("td",$lt,[P(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=_=>r.configFile.use_smart_routing=_),onChange:e[12]||(e[12]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_smart_routing]])])]),l("tr",null,[Ylt,l("td",Wlt,[P(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.restore_model_after_smart_routing=_),onChange:e[14]||(e[14]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.restore_model_after_smart_routing]])])]),l("tr",null,[Klt,l("td",jlt,[P(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.smart_routing_router_model=_),onChange:e[16]||(e[16]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.smart_routing_router_model]])])]),l("tr",null,[Qlt,l("td",Xlt,[V(o,{modelValue:r.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.smart_routing_models_by_power=_),onChange:e[18]||(e[18]=_=>i.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",Zlt,[l("div",Jlt,[l("button",{onClick:e[19]||(e[19]=j(_=>i.mainconf_collapsed=!i.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,tct,512),[[wt,i.mainconf_collapsed]]),P(l("div",null,sct,512),[[wt,!i.mainconf_collapsed]]),ict])]),l("div",{class:Ge([{hidden:i.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",rct,[V(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",oct,[l("tr",null,[act,l("td",null,[l("label",lct,[l("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,cct)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),l("td",dct,[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]=j(_=>r.resetLogo(),["stop"]))},pct)])]),l("tr",null,[_ct,l("td",hct,[l("div",fct,[P(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=_=>r.configFile.hardware_mode=_),onChange:e[23]||(e[23]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},xct,544),[[Dt,r.configFile.hardware_mode]])])])]),l("tr",null,[Cct,l("td",wct,[P(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=_=>r.configFile.discussion_db_name=_),onChange:e[25]||(e[25]=_=>i.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),[[pe,r.configFile.discussion_db_name]])])]),l("tr",null,[Rct,l("td",null,[l("div",Act,[P(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[27]||(e[27]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[Nct,l("td",null,[l("div",Oct,[P(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=_=>r.configFile.auto_show_browser=_),onChange:e[29]||(e[29]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_show_browser]])])])]),l("tr",null,[Mct,l("td",null,[l("div",Ict,[P(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=_=>r.configFile.debug=_),onChange:e[31]||(e[31]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug]])])])]),l("tr",null,[kct,l("td",null,[l("div",Dct,[P(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[33]||(e[33]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[Lct,l("td",null,[l("div",Pct,[P(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[35]||(e[35]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[Uct,l("td",null,[l("div",Fct,[P(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=_=>r.configFile.debug_show_chunks=_),onChange:e[37]||(e[37]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_chunks]])])])]),l("tr",null,[Bct,l("td",null,[l("div",Gct,[P(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.debug_log_file_path=_),onChange:e[39]||(e[39]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.debug_log_file_path]])])])]),l("tr",null,[Vct,l("td",null,[l("div",zct,[P(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.show_news_panel=_),onChange:e[41]||(e[41]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.show_news_panel]])])])]),l("tr",null,[Hct,l("td",null,[l("div",qct,[P(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.auto_save=_),onChange:e[43]||(e[43]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_save]])])])]),l("tr",null,[$ct,l("td",null,[l("div",Yct,[P(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.auto_update=_),onChange:e[45]||(e[45]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_update]])])])]),l("tr",null,[Wct,l("td",null,[l("div",Kct,[P(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.auto_title=_),onChange:e[47]||(e[47]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_title]])])])])])]),_:1}),V(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jct,[l("tr",null,[Qct,l("td",null,[l("select",{onChange:e[48]||(e[48]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},ndt,32)])]),l("tr",null,[sdt,l("td",null,[P(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=_=>r.configFile.start_header_id_template=_),onChange:e[50]||(e[50]=_=>i.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),[[pe,r.configFile.start_header_id_template]])])]),l("tr",null,[idt,l("td",null,[P(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=_=>r.configFile.end_header_id_template=_),onChange:e[52]||(e[52]=_=>i.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),[[pe,r.configFile.end_header_id_template]])])]),l("tr",null,[rdt,l("td",null,[P(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=_=>r.configFile.start_user_header_id_template=_),onChange:e[54]||(e[54]=_=>i.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),[[pe,r.configFile.start_user_header_id_template]])])]),l("tr",null,[odt,l("td",null,[P(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=_=>r.configFile.end_user_header_id_template=_),onChange:e[56]||(e[56]=_=>i.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),[[pe,r.configFile.end_user_header_id_template]])])]),l("tr",null,[adt,l("td",null,[P(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=_=>r.configFile.end_user_message_id_template=_),onChange:e[58]||(e[58]=_=>i.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),[[pe,r.configFile.end_user_message_id_template]])])]),l("tr",null,[ldt,l("td",null,[P(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[60]||(e[60]=_=>i.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),[[pe,r.configFile.start_ai_header_id_template]])])]),l("tr",null,[cdt,l("td",null,[P(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[62]||(e[62]=_=>i.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),[[pe,r.configFile.end_ai_header_id_template]])])]),l("tr",null,[ddt,l("td",null,[P(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[64]||(e[64]=_=>i.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),[[pe,r.configFile.end_ai_message_id_template]])])]),l("tr",null,[udt,l("td",null,[P(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=_=>r.configFile.separator_template=_),onChange:e[66]||(e[66]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.separator_template]])])]),l("tr",null,[pdt,l("td",null,[P(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=_=>r.configFile.system_message_template=_),onChange:e[68]||(e[68]=_=>i.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),[[pe,r.configFile.system_message_template]])])]),l("tr",null,[_dt,l("td",null,[l("div",{innerHTML:r.full_template},null,8,hdt)])]),l("tr",null,[fdt,l("td",mdt,[P(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=_=>r.configFile.use_continue_message=_),onChange:e[70]||(e[70]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_continue_message]])])])])]),_:1}),V(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",gdt,[l("tr",null,[bdt,l("td",Edt,[P(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=_=>r.configFile.user_name=_),onChange:e[72]||(e[72]=_=>i.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.user_name]])])]),l("tr",null,[ydt,l("td",vdt,[P(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=_=>r.configFile.user_description=_),onChange:e[74]||(e[74]=_=>i.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),[[pe,r.configFile.user_description]])])]),l("tr",null,[Sdt,l("td",Tdt,[P(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[76]||(e[76]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[xdt,l("td",Cdt,[P(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[78]||(e[78]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_model_name_in_discussions]])])]),l("tr",null,[wdt,l("td",null,[l("label",Rdt,[l("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Adt)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),l("td",Ndt,[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]=j(_=>r.resetAvatar(),["stop"]))},Mdt)])]),l("tr",null,[Idt,l("td",null,[l("div",kdt,[P(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[82]||(e[82]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[Ddt,l("td",Ldt,[P(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=_=>r.configFile.max_n_predict=_),onChange:e[84]||(e[84]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.max_n_predict]])])]),l("tr",null,[Pdt,l("td",Udt,[P(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=_=>r.configFile.max_n_predict=_),onChange:e[86]||(e[86]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.max_n_predict]])])])])]),_:1}),V(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Fdt,[l("tr",null,[Bdt,l("td",Gdt,[P(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=_=>r.configFile.turn_on_code_execution=_),onChange:e[88]||(e[88]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_code_execution]])])]),l("tr",null,[Vdt,l("td",zdt,[P(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=_=>r.configFile.turn_on_code_validation=_),onChange:e[90]||(e[90]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_code_validation]])])]),l("tr",null,[Hdt,l("td",qdt,[P(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[92]||(e[92]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[$dt,l("td",Ydt,[P(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[94]||(e[94]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_open_file_validation]])])]),l("tr",null,[Wdt,l("td",Kdt,[P(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[96]||(e[96]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),V(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jdt,[l("tr",null,[Qdt,l("td",null,[l("div",Xdt,[P(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=_=>r.configFile.activate_skills_lib=_),onChange:e[98]||(e[98]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_skills_lib]])])])]),l("tr",null,[Zdt,l("td",Jdt,[P(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=_=>r.configFile.skills_lib_database_name=_),onChange:e[100]||(e[100]=_=>i.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),[[pe,r.configFile.skills_lib_database_name]])])])])]),_:1}),V(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",eut,[l("tr",null,[tut,l("td",null,[l("div",nut,[P(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.pdf_latex_path=_),onChange:e[102]||(e[102]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.pdf_latex_path]])])])])])]),_:1}),V(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",sut,[l("tr",null,[iut,l("td",null,[l("div",rut,[P(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.positive_boost=_),onChange:e[104]||(e[104]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.positive_boost]])])])]),l("tr",null,[out,l("td",null,[l("div",aut,[P(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.negative_boost=_),onChange:e[106]||(e[106]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.negative_boost]])])])]),l("tr",null,[lut,l("td",null,[l("div",cut,[P(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.fun_mode=_),onChange:e[108]||(e[108]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",dut,[l("div",uut,[l("button",{onClick:e[109]||(e[109]=j(_=>i.data_conf_collapsed=!i.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,_ut,512),[[wt,i.data_conf_collapsed]]),P(l("div",null,fut,512),[[wt,!i.data_conf_collapsed]]),mut])]),l("div",{class:Ge([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",gut,[l("tr",null,[but,l("td",Eut,[(T(!0),w(Pe,null,Ke(r.configFile.rag_databases,(_,g)=>(T(),w("div",{key:g,class:"flex items-center mb-2"},[P(l("input",{type:"text","onUpdate:modelValue":b=>r.configFile.rag_databases[g]=b,onChange:e[110]||(e[110]=b=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,yut),[[pe,r.configFile.rag_databases[g]]]),l("button",{onClick:b=>r.vectorize_folder(g),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,vut),l("button",{onClick:b=>r.select_folder(g),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Sut),l("button",{onClick:b=>r.removeDataSource(g),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,Tut)]))),128)),l("button",{onClick:e[111]||(e[111]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[xut,l("td",null,[P(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=_=>r.configFile.rag_vectorizer=_),onChange:e[113]||(e[113]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Aut,544),[[Dt,r.configFile.rag_vectorizer]])])]),l("tr",null,[Nut,l("td",null,[P(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[115]||(e[115]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Mut,544),[[Dt,r.configFile.rag_vectorizer_model]])])]),l("tr",null,[Iut,l("td",null,[P(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[116]||(e[116]=_=>r.configFile.rag_chunk_size=_),onChange:e[117]||(e[117]=_=>i.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),[[pe,r.configFile.rag_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[118]||(e[118]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[119]||(e[119]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_chunk_size]])])]),l("tr",null,[kut,l("td",null,[P(l("input",{id:"rag_overlap","onUpdate:modelValue":e[120]||(e[120]=_=>r.configFile.rag_overlap=_),onChange:e[121]||(e[121]=_=>i.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),[[pe,r.configFile.rag_overlap]]),P(l("input",{"onUpdate:modelValue":e[122]||(e[122]=_=>r.configFile.rag_overlap=_),type:"number",onChange:e[123]||(e[123]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_overlap]])])]),l("tr",null,[Dut,l("td",null,[P(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[124]||(e[124]=_=>r.configFile.rag_n_chunks=_),onChange:e[125]||(e[125]=_=>i.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),[[pe,r.configFile.rag_n_chunks]]),P(l("input",{"onUpdate:modelValue":e[126]||(e[126]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[127]||(e[127]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_n_chunks]])])]),l("tr",null,[Lut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[128]||(e[128]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[129]||(e[129]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_clean_chunks]])])]),l("tr",null,[Put,l("td",null,[P(l("input",{"onUpdate:modelValue":e[130]||(e[130]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[131]||(e[131]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_follow_subfolders]])])]),l("tr",null,[Uut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[132]||(e[132]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[133]||(e[133]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[Fut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[134]||(e[134]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[135]||(e[135]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_preprocess_chunks]])])]),l("tr",null,[But,l("td",null,[P(l("input",{"onUpdate:modelValue":e[136]||(e[136]=_=>r.configFile.rag_activate_multi_hops=_),type:"checkbox",onChange:e[137]||(e[137]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_activate_multi_hops]])])]),l("tr",null,[Gut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[138]||(e[138]=_=>r.configFile.contextual_summary=_),type:"checkbox",onChange:e[139]||(e[139]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.contextual_summary]])])]),l("tr",null,[Vut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[140]||(e[140]=_=>r.configFile.rag_deactivate=_),type:"checkbox",onChange:e[141]||(e[141]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_deactivate]])])])])]),_:1}),V(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zut,[l("tr",null,[Hut,l("td",null,[l("div",qut,[P(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[142]||(e[142]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[143]||(e[143]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[$ut,l("td",null,[l("div",Yut,[P(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[144]||(e[144]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[145]||(e[145]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[Wut,l("td",null,[l("div",Kut,[P(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[146]||(e[146]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[147]||(e[147]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[jut,l("td",null,[l("div",Qut,[P(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[148]||(e[148]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[149]||(e[149]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[Xut,l("td",null,[l("div",Zut,[P(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[150]||(e[150]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[151]||(e[151]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[Jut,l("td",null,[P(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[152]||(e[152]=_=>r.configFile.data_vectorization_method=_),onChange:e[153]||(e[153]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},ipt,544),[[Dt,r.configFile.data_vectorization_method]])])]),l("tr",null,[rpt,l("td",opt,[P(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[154]||(e[154]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[155]||(e[155]=_=>i.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),[[pe,r.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[apt,l("td",null,[P(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[156]||(e[156]=_=>r.configFile.data_visualization_method=_),onChange:e[157]||(e[157]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},dpt,544),[[Dt,r.configFile.data_visualization_method]])])]),l("tr",null,[upt,l("td",null,[l("div",ppt,[P(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[158]||(e[158]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[159]||(e[159]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[_pt,l("td",null,[P(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[161]||(e[161]=_=>i.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),[[pe,r.configFile.data_vectorization_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[163]||(e[163]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[hpt,l("td",null,[P(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[165]||(e[165]=_=>i.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),[[pe,r.configFile.data_vectorization_overlap_size]]),P(l("input",{"onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[167]||(e[167]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[fpt,l("td",null,[P(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[169]||(e[169]=_=>i.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),[[pe,r.configFile.data_vectorization_nb_chunks]]),P(l("input",{"onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[171]||(e[171]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",mpt,[l("div",gpt,[l("button",{onClick:e[172]||(e[172]=j(_=>i.internet_conf_collapsed=!i.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Ept,512),[[wt,i.internet_conf_collapsed]]),P(l("div",null,vpt,512),[[wt,!i.internet_conf_collapsed]]),Spt])]),l("div",{class:Ge([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Tpt,[l("tr",null,[xpt,l("td",null,[l("div",Cpt,[P(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[173]||(e[173]=_=>r.configFile.activate_internet_search=_),onChange:e[174]||(e[174]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_internet_search]])])])]),l("tr",null,[wpt,l("td",null,[l("div",Rpt,[P(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[175]||(e[175]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[176]||(e[176]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[Apt,l("td",null,[l("div",Npt,[P(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[177]||(e[177]=_=>r.configFile.internet_quick_search=_),onChange:e[178]||(e[178]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.internet_quick_search]])])])]),l("tr",null,[Opt,l("td",null,[l("div",Mpt,[P(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[179]||(e[179]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[180]||(e[180]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.internet_activate_search_decision]])])])]),l("tr",null,[Ipt,l("td",null,[l("div",kpt,[P(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[181]||(e[181]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[182]||(e[182]=_=>i.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),[[pe,r.configFile.internet_vectorization_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[183]||(e[183]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[184]||(e[184]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[Dpt,l("td",null,[l("div",Lpt,[P(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[186]||(e[186]=_=>i.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),[[pe,r.configFile.internet_vectorization_overlap_size]]),P(l("input",{"onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[188]||(e[188]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[Ppt,l("td",null,[l("div",Upt,[P(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[190]||(e[190]=_=>i.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),[[pe,r.configFile.internet_vectorization_nb_chunks]]),P(l("input",{"onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[192]||(e[192]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[Fpt,l("td",null,[l("div",Bpt,[P(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[194]||(e[194]=_=>i.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),[[pe,r.configFile.internet_nb_search_pages]]),P(l("input",{"onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[196]||(e[196]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",Gpt,[l("div",Vpt,[l("button",{onClick:e[197]||(e[197]=j(_=>i.servers_conf_collapsed=!i.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Hpt,512),[[wt,i.servers_conf_collapsed]]),P(l("div",null,$pt,512),[[wt,!i.servers_conf_collapsed]]),Ypt])]),l("div",{class:Ge([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wpt,[l("tr",null,[Kpt,l("td",jpt,[P(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[198]||(e[198]=_=>r.configFile.active_tts_service=_),onChange:e[199]||(e[199]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},t_t,544),[[Dt,r.configFile.active_tts_service]])])]),l("tr",null,[n_t,l("td",s_t,[P(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[200]||(e[200]=_=>r.configFile.active_stt_service=_),onChange:e[201]||(e[201]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},a_t,544),[[Dt,r.configFile.active_stt_service]])])]),l_t,l("tr",null,[c_t,l("td",d_t,[P(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[202]||(e[202]=_=>r.configFile.active_tti_service=_),onChange:e[203]||(e[203]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},b_t,544),[[Dt,r.configFile.active_tti_service]])])]),l("tr",null,[E_t,l("td",y_t,[P(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[204]||(e[204]=_=>r.configFile.active_ttm_service=_),onChange:e[205]||(e[205]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},T_t,544),[[Dt,r.configFile.active_ttm_service]])])])])]),_:1}),V(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",x_t,[l("tr",null,[C_t,l("td",null,[l("div",w_t,[P(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[206]||(e[206]=_=>r.configFile.use_negative_prompt=_),onChange:e[207]||(e[207]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_negative_prompt]])])])]),l("tr",null,[R_t,l("td",null,[l("div",A_t,[P(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[208]||(e[208]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[209]||(e[209]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[N_t,l("td",null,[l("div",O_t,[P(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[211]||(e[211]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[M_t,l("td",null,[l("div",I_t,[P(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=_=>r.configFile.default_negative_prompt=_),onChange:e[213]||(e[213]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.default_negative_prompt]])])])])])]),_:1}),V(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",k_t,[l("tr",null,[D_t,l("td",L_t,[P(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[214]||(e[214]=_=>r.configFile.stt_listening_threshold=_),onChange:e[215]||(e[215]=_=>i.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),[[pe,r.configFile.stt_listening_threshold]])])]),l("tr",null,[P_t,l("td",U_t,[P(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[216]||(e[216]=_=>r.configFile.stt_silence_duration=_),onChange:e[217]||(e[217]=_=>i.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),[[pe,r.configFile.stt_silence_duration]])])]),l("tr",null,[F_t,l("td",B_t,[P(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[218]||(e[218]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[219]||(e[219]=_=>i.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),[[pe,r.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[G_t,l("td",V_t,[P(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[220]||(e[220]=_=>r.configFile.stt_gain=_),onChange:e[221]||(e[221]=_=>i.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),[[pe,r.configFile.stt_gain]])])]),l("tr",null,[z_t,l("td",H_t,[P(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[222]||(e[222]=_=>r.configFile.stt_rate=_),onChange:e[223]||(e[223]=_=>i.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),[[pe,r.configFile.stt_rate]])])]),l("tr",null,[q_t,l("td",$_t,[P(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[224]||(e[224]=_=>r.configFile.stt_channels=_),onChange:e[225]||(e[225]=_=>i.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),[[pe,r.configFile.stt_channels]])])]),l("tr",null,[Y_t,l("td",W_t,[P(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[226]||(e[226]=_=>r.configFile.stt_buffer_size=_),onChange:e[227]||(e[227]=_=>i.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),[[pe,r.configFile.stt_buffer_size]])])]),l("tr",null,[K_t,l("td",null,[l("div",j_t,[P(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[228]||(e[228]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[229]||(e[229]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.stt_activate_word_detection]])])])]),l("tr",null,[Q_t,l("td",null,[l("div",X_t,[P(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[230]||(e[230]=_=>r.configFile.stt_word_detection_file=_),onChange:e[231]||(e[231]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.stt_word_detection_file]])])])])])]),_:1}),V(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Z_t,[l("tr",null,[J_t,l("td",eht,[P(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[232]||(e[232]=_=>r.configFile.stt_input_device=_),onChange:e[233]||(e[233]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.snd_input_devices,(_,g)=>(T(),w("option",{key:_,value:i.snd_input_devices_indexes[g]},K(_),9,tht))),128))],544),[[Dt,r.configFile.stt_input_device]])])]),l("tr",null,[nht,l("td",sht,[P(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[234]||(e[234]=_=>r.configFile.tts_output_device=_),onChange:e[235]||(e[235]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.snd_output_devices,(_,g)=>(T(),w("option",{key:_,value:i.snd_output_devices_indexes[g]},K(_),9,iht))),128))],544),[[Dt,r.configFile.tts_output_device]])])])])]),_:1}),V(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rht,[l("tr",null,[oht,l("td",aht,[P(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[236]||(e[236]=_=>r.configFile.host=_),onChange:e[237]||(e[237]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.host]])])]),l("tr",null,[lht,l("td",cht,[V(o,{modelValue:r.configFile.lollms_access_keys,"onUpdate:modelValue":e[238]||(e[238]=_=>r.configFile.lollms_access_keys=_),onChange:e[239]||(e[239]=_=>i.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[dht,l("td",uht,[P(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[240]||(e[240]=_=>r.configFile.port=_),onChange:e[241]||(e[241]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.port]])])]),l("tr",null,[pht,l("td",_ht,[P(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[242]||(e[242]=_=>r.configFile.headless_server_mode=_),onChange:e[243]||(e[243]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.headless_server_mode]])])]),l("tr",null,[hht,l("td",fht,[P(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[244]||(e[244]=_=>r.configFile.activate_lollms_server=_),onChange:e[245]||(e[245]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_server]])])]),l("tr",null,[mht,l("td",ght,[P(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[246]||(e[246]=_=>r.configFile.activate_lollms_rag_server=_),onChange:e[247]||(e[247]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_rag_server]])])]),l("tr",null,[bht,l("td",Eht,[P(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[248]||(e[248]=_=>r.configFile.activate_lollms_tts_server=_),onChange:e[249]||(e[249]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_tts_server]])])]),l("tr",null,[yht,l("td",vht,[P(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[250]||(e[250]=_=>r.configFile.activate_lollms_stt_server=_),onChange:e[251]||(e[251]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_stt_server]])])]),l("tr",null,[Sht,l("td",Tht,[P(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[252]||(e[252]=_=>r.configFile.activate_lollms_tti_server=_),onChange:e[253]||(e[253]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_tti_server]])])]),l("tr",null,[xht,l("td",Cht,[P(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=_=>r.configFile.activate_lollms_itt_server=_),onChange:e[255]||(e[255]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_itt_server]])])]),l("tr",null,[wht,l("td",Rht,[P(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[256]||(e[256]=_=>r.configFile.activate_lollms_ttm_server=_),onChange:e[257]||(e[257]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[Aht,l("td",Nht,[P(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[258]||(e[258]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[259]||(e[259]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_ollama_emulator]])])]),l("tr",null,[Oht,l("td",Mht,[P(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[260]||(e[260]=_=>r.configFile.activate_openai_emulator=_),onChange:e[261]||(e[261]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_openai_emulator]])])]),l("tr",null,[Iht,l("td",kht,[P(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[263]||(e[263]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),V(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Dht,[l("tr",null,[Lht,l("td",null,[l("div",Pht,[P(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[264]||(e[264]=_=>r.configFile.activate_audio_infos=_),onChange:e[265]||(e[265]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_audio_infos]])])])]),l("tr",null,[Uht,l("td",null,[l("div",Fht,[P(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[266]||(e[266]=_=>r.configFile.audio_auto_send_input=_),onChange:e[267]||(e[267]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.audio_auto_send_input]])])])]),l("tr",null,[Bht,l("td",null,[P(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[268]||(e[268]=_=>r.configFile.audio_silenceTimer=_),onChange:e[269]||(e[269]=_=>i.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),[[pe,r.configFile.audio_silenceTimer]]),P(l("input",{"onUpdate:modelValue":e[270]||(e[270]=_=>r.configFile.audio_silenceTimer=_),onChange:e[271]||(e[271]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.audio_silenceTimer]])])]),l("tr",null,[Ght,l("td",null,[P(l("select",{id:"audio_in_language","onUpdate:modelValue":e[272]||(e[272]=_=>r.configFile.audio_in_language=_),onChange:e[273]||(e[273]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.audioLanguages,_=>(T(),w("option",{key:_.code,value:_.code},K(_.name),9,Vht))),128))],544),[[Dt,r.configFile.audio_in_language]])])])])]),_:1}),V(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zht,[l("tr",null,[Hht,l("td",null,[l("div",qht,[P(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[274]||(e[274]=_=>r.configFile.whisper_activate=_),onChange:e[275]||(e[275]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.whisper_activate]])])])]),l("tr",null,[$ht,l("td",null,[l("div",Yht,[P(l("select",{id:"whisper_model","onUpdate:modelValue":e[276]||(e[276]=_=>r.configFile.whisper_model=_),onChange:e[277]||(e[277]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.whisperModels,_=>(T(),w("option",{key:_,value:_},K(_),9,Wht))),128))],544),[[Dt,r.configFile.whisper_model]])])])])])]),_:1}),V(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Kht,[l("tr",null,[jht,l("td",null,[l("div",Qht,[P(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[278]||(e[278]=_=>r.configFile.openai_whisper_key=_),onChange:e[279]||(e[279]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.openai_whisper_key]])])])]),l("tr",null,[Xht,l("td",null,[l("div",Zht,[P(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[280]||(e[280]=_=>r.configFile.openai_whisper_model=_),onChange:e[281]||(e[281]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.openaiWhisperModels,_=>(T(),w("option",{key:_,value:_},K(_),9,Jht))),128))],544),[[Dt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),V(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",eft,[l("tr",null,[tft,l("td",null,[l("div",nft,[P(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[282]||(e[282]=_=>r.configFile.auto_speak=_),onChange:e[283]||(e[283]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_speak]])])])]),l("tr",null,[sft,l("td",null,[P(l("input",{id:"audio_pitch","onUpdate:modelValue":e[284]||(e[284]=_=>r.configFile.audio_pitch=_),onChange:e[285]||(e[285]=_=>i.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),[[pe,r.configFile.audio_pitch]]),P(l("input",{"onUpdate:modelValue":e[286]||(e[286]=_=>r.configFile.audio_pitch=_),onChange:e[287]||(e[287]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.audio_pitch]])])]),l("tr",null,[ift,l("td",null,[P(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[288]||(e[288]=_=>r.configFile.audio_out_voice=_),onChange:e[289]||(e[289]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.audioVoices,_=>(T(),w("option",{key:_.name,value:_.name},K(_.name),9,rft))),128))],544),[[Dt,r.configFile.audio_out_voice]])])])])]),_:1}),V(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",oft,[l("tr",null,[aft,l("td",null,[l("div",lft,[P(l("select",{"onUpdate:modelValue":e[290]||(e[290]=_=>r.xtts_current_language=_),onChange:e[291]||(e[291]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voice_languages,(_,g)=>(T(),w("option",{key:g,value:_},K(g),9,cft))),128))],544),[[Dt,r.xtts_current_language]])])])]),l("tr",null,[dft,l("td",null,[l("div",uft,[P(l("select",{"onUpdate:modelValue":e[292]||(e[292]=_=>r.xtts_current_voice=_),onChange:e[293]||(e[293]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voices,_=>(T(),w("option",{key:_,value:_},K(_),9,pft))),128))],544),[[Dt,r.xtts_current_voice]])])])]),l("tr",null,[_ft,l("td",null,[l("div",hft,[P(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[294]||(e[294]=_=>r.configFile.xtts_freq=_),onChange:e[295]||(e[295]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[pe,r.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[fft,l("td",null,[l("div",mft,[P(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[296]||(e[296]=_=>r.configFile.auto_read=_),onChange:e[297]||(e[297]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_read]])])])]),l("tr",null,[gft,l("td",null,[l("div",bft,[P(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[298]||(e[298]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[299]||(e[299]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[Eft,l("td",null,[l("div",yft,[P(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[300]||(e[300]=_=>r.configFile.xtts_temperature=_),onChange:e[301]||(e[301]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[pe,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[vft,l("td",null,[l("div",Sft,[P(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[302]||(e[302]=_=>r.configFile.xtts_length_penalty=_),onChange:e[303]||(e[303]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[Tft,l("td",null,[l("div",xft,[P(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[304]||(e[304]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[305]||(e[305]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[Cft,l("td",null,[l("div",wft,[P(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[306]||(e[306]=_=>r.configFile.xtts_top_k=_),onChange:e[307]||(e[307]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[Rft,l("td",null,[l("div",Aft,[P(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[308]||(e[308]=_=>r.configFile.xtts_top_p=_),onChange:e[309]||(e[309]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[Nft,l("td",null,[l("div",Oft,[P(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[310]||(e[310]=_=>r.configFile.xtts_speed=_),onChange:e[311]||(e[311]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[Mft,l("td",null,[l("div",Ift,[P(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[312]||(e[312]=_=>r.configFile.enable_text_splitting=_),onChange:e[313]||(e[313]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_text_splitting]])])])])])]),_:1}),V(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",kft,[l("tr",null,[Dft,l("td",null,[l("div",Lft,[P(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[314]||(e[314]=_=>r.configFile.openai_tts_key=_),onChange:e[315]||(e[315]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.openai_tts_key]])])])]),l("tr",null,[Pft,l("td",null,[l("div",Uft,[P(l("select",{"onUpdate:modelValue":e[316]||(e[316]=_=>r.configFile.openai_tts_model=_),onChange:e[317]||(e[317]=_=>i.settingsChanged=!0)},Gft,544),[[Dt,r.configFile.openai_tts_model]])])])]),l("tr",null,[Vft,l("td",null,[l("div",zft,[P(l("select",{"onUpdate:modelValue":e[318]||(e[318]=_=>r.configFile.openai_tts_voice=_),onChange:e[319]||(e[319]=_=>i.settingsChanged=!0)},Kft,544),[[Dt,r.configFile.openai_tts_voice]])])])])])]),_:1}),V(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jft,[l("tr",null,[Qft,l("td",null,[l("div",Xft,[P(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=_=>r.configFile.elevenlabs_tts_key=_),onChange:e[321]||(e[321]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[Zft,l("td",null,[l("div",Jft,[P(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[322]||(e[322]=_=>r.configFile.elevenlabs_tts_model_id=_),onChange:e[323]||(e[323]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[emt,l("td",null,[l("div",tmt,[P(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[324]||(e[324]=_=>r.configFile.elevenlabs_tts_voice_stability=_),onChange:e[325]||(e[325]=_=>i.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),[[pe,r.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[nmt,l("td",null,[l("div",smt,[P(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[326]||(e[326]=_=>r.configFile.elevenlabs_tts_voice_boost=_),onChange:e[327]||(e[327]=_=>i.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),[[pe,r.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[imt,l("td",null,[l("div",rmt,[P(l("select",{"onUpdate:modelValue":e[328]||(e[328]=_=>r.configFile.elevenlabs_tts_voice_id=_),onChange:e[329]||(e[329]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voices,_=>(T(),w("option",{key:_.voice_id,value:_.voice_id},K(_.name),9,omt))),128))],544),[[Dt,r.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1})]),_:1}),V(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",amt,[l("tr",null,[lmt,l("td",null,[l("div",cmt,[P(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[330]||(e[330]=_=>r.configFile.enable_sd_service=_),onChange:e[331]||(e[331]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[332]||(e[332]=_=>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"))},umt)])]),l("tr",null,[pmt,l("td",null,[l("div",_mt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[333]||(e[333]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"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[334]||(e[334]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"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[335]||(e[335]=(..._)=>r.startSDService&&r.startSDService(..._))},"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[336]||(e[336]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),hmt])]),l("td",null,[l("div",fmt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[337]||(e[337]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),l("tr",null,[mmt,l("td",null,[l("div",gmt,[P(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[338]||(e[338]=_=>r.configFile.sd_base_url=_),onChange:e[339]||(e[339]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.sd_base_url]])])])])])]),_:1}),V(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",bmt,[l("tr",null,[Emt,l("td",null,[l("div",ymt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[340]||(e[340]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"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[341]||(e[341]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),vmt])])]),l("tr",null,[Smt,l("td",null,[l("div",Tmt,[P(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[342]||(e[342]=_=>r.configFile.diffusers_model=_),onChange:e[343]||(e[343]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.diffusers_model]])])]),xmt])])]),_:1}),V(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cmt,[l("tr",null,[wmt,l("td",null,[l("div",Rmt,[P(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[344]||(e[344]=_=>r.configFile.midjourney_key=_),onChange:e[345]||(e[345]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_key]])])])]),l("tr",null,[Amt,l("td",null,[l("div",Nmt,[P(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[346]||(e[346]=_=>r.configFile.midjourney_timeout=_),onChange:e[347]||(e[347]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_timeout]])])])]),l("tr",null,[Omt,l("td",null,[l("div",Mmt,[P(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[348]||(e[348]=_=>r.configFile.midjourney_retries=_),onChange:e[349]||(e[349]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_retries]])])])])])]),_:1}),V(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Imt,[l("tr",null,[kmt,l("td",null,[l("div",Dmt,[P(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[350]||(e[350]=_=>r.configFile.dall_e_key=_),onChange:e[351]||(e[351]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.dall_e_key]])])])]),l("tr",null,[Lmt,l("td",null,[l("div",Pmt,[P(l("select",{"onUpdate:modelValue":e[352]||(e[352]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[353]||(e[353]=_=>i.settingsChanged=!0)},Bmt,544),[[Dt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),V(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Gmt,[l("tr",null,[Vmt,l("td",null,[l("div",zmt,[P(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[354]||(e[354]=_=>r.configFile.enable_comfyui_service=_),onChange:e[355]||(e[355]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[356]||(e[356]=_=>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"))},qmt)])]),l("tr",null,[$mt,l("td",null,[l("div",Ymt,[P(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[357]||(e[357]=_=>r.configFile.comfyui_model=_),onChange:e[358]||(e[358]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.comfyui_models,(_,g)=>(T(),w("option",{key:_,value:_},K(_),9,Wmt))),128))],544),[[Dt,r.configFile.comfyui_model]])])])]),l("tr",null,[Kmt,l("td",null,[l("div",jmt,[P(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[359]||(e[359]=_=>r.configFile.comfyui_model=_),onChange:e[360]||(e[360]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[361]||(e[361]=_=>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"))},Xmt)])]),l("tr",null,[Zmt,l("td",null,[l("div",Jmt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[362]||(e[362]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"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[363]||(e[363]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"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[364]||(e[364]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"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[365]||(e[365]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),egt])])]),l("tr",null,[tgt,l("td",null,[l("div",ngt,[P(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[366]||(e[366]=_=>r.configFile.comfyui_base_url=_),onChange:e[367]||(e[367]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),V(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",sgt,[l("tr",null,[igt,l("td",null,[l("div",rgt,[P(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[368]||(e[368]=_=>r.configFile.enable_ollama_service=_),onChange:e[369]||(e[369]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[370]||(e[370]=_=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},D=t=>(Ss("data-v-3d5c8be5"),t=t(),Ts(),t),gat={class:"container 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"},bat={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},Eat={key:0,class:"flex gap-3 flex-1 items-center duration-75"},yat=D(()=>l("i",{"data-feather":"x"},null,-1)),vat=[yat],Sat=D(()=>l("i",{"data-feather":"check"},null,-1)),Tat=[Sat],xat={key:1,class:"flex gap-3 flex-1 items-center"},Cat=D(()=>l("i",{"data-feather":"refresh-ccw"},null,-1)),wat=[Cat],Rat=D(()=>l("i",{"data-feather":"list"},null,-1)),Aat=[Rat],Nat={class:"flex gap-3 flex-1 items-center justify-end"},Oat=D(()=>l("i",{"data-feather":"trash-2"},null,-1)),Mat=[Oat],Iat=D(()=>l("i",{"data-feather":"refresh-ccw"},null,-1)),kat=[Iat],Dat=D(()=>l("i",{"data-feather":"arrow-up-circle"},null,-1)),Lat=D(()=>l("i",{"data-feather":"alert-circle"},null,-1)),Pat=[Dat,Lat],Uat={class:"flex gap-3 items-center"},Fat={key:0,class:"flex gap-3 items-center"},Bat=D(()=>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)),Gat=[Bat],Vat=D(()=>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)),zat=[Vat],Hat={key:1,role:"status"},qat=D(()=>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)),$at=D(()=>l("span",{class:"sr-only"},"Loading...",-1)),Yat={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"},Wat={class:"flex flex-row p-3"},Kat=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),jat=[Kat],Qat=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Xat=[Qat],Zat=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Jat=D(()=>l("div",{class:"mr-2"},"|",-1)),elt={class:"text-base font-semibold cursor-pointer select-none items-center"},tlt={class:"flex gap-2 items-center"},nlt={key:0},slt=["src"],ilt={class:"font-bold font-large text-lg"},rlt={key:1},olt={class:"flex gap-2 items-center"},alt=["src"],llt={class:"font-bold font-large text-lg"},clt=D(()=>l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),dlt={class:"font-bold font-large text-lg"},ult=D(()=>l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),plt={class:"font-bold font-large text-lg"},_lt={class:"mb-2"},hlt=D(()=>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"})]),et(" CPU Ram usage: ")],-1)),flt={class:"flex flex-col mx-2"},mlt=D(()=>l("b",null,"Avaliable ram: ",-1)),glt=D(()=>l("b",null,"Ram usage: ",-1)),blt={class:"p-2"},Elt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},ylt={class:"mb-2"},vlt=D(()=>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"}),et(" Disk usage: ")],-1)),Slt={class:"flex flex-col mx-2"},Tlt=D(()=>l("b",null,"Avaliable disk space: ",-1)),xlt=D(()=>l("b",null,"Disk usage: ",-1)),Clt={class:"p-2"},wlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Rlt={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Alt=["src"],Nlt={class:"flex flex-col mx-2"},Olt=D(()=>l("b",null,"Model: ",-1)),Mlt=D(()=>l("b",null,"Avaliable vram: ",-1)),Ilt=D(()=>l("b",null,"GPU usage: ",-1)),klt={class:"p-2"},Dlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Llt={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"},Plt={class:"flex flex-row p-3"},Ult=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],Vlt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1)),zlt={class:"flex flex-col mb-2 px-3 pb-2"},Hlt={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"},qlt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),$lt={style:{width:"100%"}},Ylt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),Wlt={style:{width:"100%"}},Klt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),jlt={style:{width:"100%"}},Qlt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),Xlt={style:{width:"100%"}},Zlt={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"},Jlt={class:"flex flex-row p-3"},ect=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),tct=[ect],nct=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),sct=[nct],ict=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),rct={class:"flex flex-col mb-2 px-3 pb-2"},oct={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"},act=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),lct={for:"logo-upload"},cct=["src"],dct={style:{width:"10%"}},uct=D(()=>l("i",{"data-feather":"x"},null,-1)),pct=[uct],_ct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),hct={class:"text-center items-center"},fct={class:"flex flex-row"},mct=D(()=>l("option",{value:"cpu"},"CPU",-1)),gct=D(()=>l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),bct=D(()=>l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Ect=D(()=>l("option",{value:"nvidia"},"NVIDIA",-1)),yct=D(()=>l("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),vct=D(()=>l("option",{value:"amd"},"AMD",-1)),Sct=D(()=>l("option",{value:"apple-intel"},"Apple Intel",-1)),Tct=D(()=>l("option",{value:"apple-silicon"},"Apple Silicon",-1)),xct=[mct,gct,bct,Ect,yct,vct,Sct,Tct],Cct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),wct={style:{width:"100%"}},Rct=D(()=>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)),Act={class:"flex flex-row"},Nct=D(()=>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)),Oct={class:"flex flex-row"},Mct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),Ict={class:"flex flex-row"},kct=D(()=>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)),Dct={class:"flex flex-row"},Lct=D(()=>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)),Pct={class:"flex flex-row"},Uct=D(()=>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)),Fct={class:"flex flex-row"},Bct=D(()=>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)),Gct={class:"flex flex-row"},Vct=D(()=>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)),zct={class:"flex flex-row"},Hct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),qct={class:"flex flex-row"},$ct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),Yct={class:"flex flex-row"},Wct=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),Kct={class:"flex flex-row"},jct={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"},Qct=D(()=>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)),Xct=D(()=>l("option",{value:"lollms"},"Lollms communication template",-1)),Zct=D(()=>l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1)),Jct=D(()=>l("option",{value:"bare"},"Bare, useful when in chat mode",-1)),edt=D(()=>l("option",{value:"llama3"},"LLama3 communication template",-1)),tdt=D(()=>l("option",{value:"mistral"},"Mistral communication template",-1)),ndt=[Xct,Zct,Jct,edt,tdt],sdt=D(()=>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)),idt=D(()=>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)),rdt=D(()=>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)),odt=D(()=>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)),adt=D(()=>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)),ldt=D(()=>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)),cdt=D(()=>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)),ddt=D(()=>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)),udt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),pdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),_dt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),hdt=["innerHTML"],fdt=D(()=>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)),mdt={style:{width:"100%"}},gdt={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"},bdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),Edt={style:{width:"100%"}},ydt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),vdt={style:{width:"100%"}},Sdt=D(()=>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)),Tdt={style:{width:"100%"}},xdt=D(()=>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)),Cdt={style:{width:"100%"}},wdt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),Rdt={for:"avatar-upload"},Adt=["src"],Ndt={style:{width:"10%"}},Odt=D(()=>l("i",{"data-feather":"x"},null,-1)),Mdt=[Odt],Idt=D(()=>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)),kdt={class:"flex flex-row"},Ddt=D(()=>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)),Ldt={style:{width:"100%"}},Pdt=D(()=>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)),Udt={style:{width:"100%"}},Fdt={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"},Bdt=D(()=>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)),Gdt={style:{width:"100%"}},Vdt=D(()=>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)),zdt={style:{width:"100%"}},Hdt=D(()=>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)),qdt={style:{width:"100%"}},$dt=D(()=>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)),Ydt={style:{width:"100%"}},Wdt=D(()=>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)),Kdt={style:{width:"100%"}},jdt={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"},Qdt=D(()=>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)),Xdt={class:"flex flex-row"},Zdt=D(()=>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)),Jdt={style:{width:"100%"}},eut={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"},tut=D(()=>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)),nut={class:"flex flex-row"},sut={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"},iut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),rut={class:"flex flex-row"},out=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),aut={class:"flex flex-row"},lut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),cut={class:"flex flex-row"},dut={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"},uut={class:"flex flex-row p-3"},put=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),_ut=[put],hut=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),fut=[hut],mut=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1)),gut={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"},but=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),Eut={style:{width:"100%"}},yut=["onUpdate:modelValue"],vut=["onClick"],Sut=["onClick"],Tut=["onClick"],xut=D(()=>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)),Cut=D(()=>l("option",{value:"bert"},"Bert Vectorizer",-1)),wut=D(()=>l("option",{value:"tfidf"},"TFIDF Vectorizer",-1)),Rut=D(()=>l("option",{value:"word2vec"},"Word2Vec Vectorizer",-1)),Aut=[Cut,wut,Rut],Nut=D(()=>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)),Out=D(()=>l("option",{value:"bert-base-nli-mean-tokens"},"bert-base-nli-mean-tokens",-1)),Mut=[Out],Iut=D(()=>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)),kut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),Dut=D(()=>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)),Lut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),Put=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),Uut=D(()=>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)),Fut=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),But=D(()=>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)),Gut=D(()=>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)),Vut=D(()=>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)),zut={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"},Hut=D(()=>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)),qut={class:"flex flex-row"},$ut=D(()=>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)),Yut={class:"flex flex-row"},Wut=D(()=>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)),Kut={class:"flex flex-row"},jut=D(()=>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)),Qut={class:"flex flex-row"},Xut=D(()=>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)),Zut={class:"flex flex-row"},Jut=D(()=>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)),ept=D(()=>l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),tpt=D(()=>l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1)),npt=D(()=>l("option",{value:"model_embedding"},"Model Embedding",-1)),spt=D(()=>l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)),ipt=[ept,tpt,npt,spt],rpt=D(()=>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)),opt={style:{width:"100%"}},apt=D(()=>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)),lpt=D(()=>l("option",{value:"PCA"},"PCA",-1)),cpt=D(()=>l("option",{value:"TSNE"},"TSNE",-1)),dpt=[lpt,cpt],upt=D(()=>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)),ppt={class:"flex flex-row"},_pt=D(()=>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)),hpt=D(()=>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)),fpt=D(()=>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)),mpt={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"},gpt={class:"flex flex-row p-3"},bpt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Ept=[bpt],ypt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),vpt=[ypt],Spt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1)),Tpt={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"},xpt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet search:")],-1)),Cpt={class:"flex flex-row"},wpt=D(()=>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)),Rpt={class:"flex flex-row"},Apt=D(()=>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)),Npt={class:"flex flex-row"},Opt=D(()=>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)),Mpt={class:"flex flex-row"},Ipt=D(()=>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)),kpt={class:"flex flex-col"},Dpt=D(()=>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)),Lpt={class:"flex flex-col"},Ppt=D(()=>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)),Upt={class:"flex flex-col"},Fpt=D(()=>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)),Bpt={class:"flex flex-col"},Gpt={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"},Vpt={class:"flex flex-row p-3"},zpt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Hpt=[zpt],qpt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),$pt=[qpt],Ypt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1)),Wpt={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"},Kpt=D(()=>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)),jpt={style:{width:"100%"}},Qpt=D(()=>l("option",{value:"None"},"None",-1)),Xpt=D(()=>l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1)),Zpt=D(()=>l("option",{value:"xtts"},"XTTS",-1)),Jpt=D(()=>l("option",{value:"parler-tts"},"Parler-TTS",-1)),e_t=D(()=>l("option",{value:"openai_tts"},"Open AI TTS",-1)),t_t=D(()=>l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1)),n_t=[Qpt,Xpt,Zpt,Jpt,e_t,t_t],s_t=D(()=>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)),i_t={style:{width:"100%"}},r_t=D(()=>l("option",{value:"None"},"None",-1)),o_t=D(()=>l("option",{value:"whisper"},"Whisper",-1)),a_t=D(()=>l("option",{value:"openai_whisper"},"Open AI Whisper",-1)),l_t=[r_t,o_t,a_t],c_t=D(()=>l("tr",null,null,-1)),d_t=D(()=>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)),u_t={style:{width:"100%"}},p_t=D(()=>l("option",{value:"None"},"None",-1)),__t=D(()=>l("option",{value:"diffusers"},"Diffusers",-1)),h_t=D(()=>l("option",{value:"autosd"},"AUTO1111's SD",-1)),f_t=D(()=>l("option",{value:"dall-e"},"Open AI DALL-E",-1)),m_t=D(()=>l("option",{value:"midjourney"},"Midjourney",-1)),g_t=D(()=>l("option",{value:"comfyui"},"Comfyui",-1)),b_t=D(()=>l("option",{value:"fooocus"},"Fooocus",-1)),E_t=[p_t,__t,h_t,f_t,m_t,g_t,b_t],y_t=D(()=>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)),v_t={style:{width:"100%"}},S_t=D(()=>l("option",{value:"None"},"None",-1)),T_t=D(()=>l("option",{value:"musicgen"},"Music Gen",-1)),x_t=[S_t,T_t],C_t=D(()=>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)),w_t={style:{width:"100%"}},R_t=D(()=>l("option",{value:"None"},"None",-1)),A_t=D(()=>l("option",{value:"cog_video_x"},"Cog Video X",-1)),N_t=[R_t,A_t],O_t={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"},M_t=D(()=>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)),I_t={class:"flex flex-row"},k_t=D(()=>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)),D_t={class:"flex flex-row"},L_t=D(()=>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)),P_t={class:"flex flex-row"},U_t=D(()=>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)),F_t={class:"flex flex-row"},B_t={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"},G_t=D(()=>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)),V_t={style:{width:"100%"}},z_t=D(()=>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)),H_t={style:{width:"100%"}},q_t=D(()=>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)),$_t={style:{width:"100%"}},Y_t=D(()=>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)),W_t={style:{width:"100%"}},K_t=D(()=>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)),j_t={style:{width:"100%"}},Q_t=D(()=>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)),X_t={style:{width:"100%"}},Z_t=D(()=>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)),J_t={style:{width:"100%"}},eht=D(()=>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)),tht={class:"flex flex-row"},nht=D(()=>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)),sht={class:"flex flex-row"},iht={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"},rht=D(()=>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)),oht={style:{width:"100%"}},aht=["value"],lht=D(()=>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)),cht={style:{width:"100%"}},dht=["value"],uht={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"},pht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),_ht={style:{width:"100%"}},hht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),fht={style:{width:"100%"}},mht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),ght={style:{width:"100%"}},bht=D(()=>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)),Eht={style:{width:"100%"}},yht=D(()=>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)),vht={style:{width:"100%"}},Sht=D(()=>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)),Tht={style:{width:"100%"}},xht=D(()=>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)),Cht={style:{width:"100%"}},wht=D(()=>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)),Rht={style:{width:"100%"}},Aht=D(()=>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)),Nht={style:{width:"100%"}},Oht=D(()=>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)),Mht={style:{width:"100%"}},Iht=D(()=>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)),kht={style:{width:"100%"}},Dht=D(()=>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)),Lht={style:{width:"100%"}},Pht=D(()=>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)),Uht={style:{width:"100%"}},Fht=D(()=>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)),Bht={style:{width:"100%"}},Ght={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"},Vht=D(()=>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)),zht={class:"flex flex-row"},Hht=D(()=>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)),qht={class:"flex flex-row"},$ht=D(()=>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)),Yht=D(()=>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)),Wht=["value"],Kht={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"},jht=D(()=>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)),Qht={class:"flex flex-row"},Xht=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Zht={class:"flex flex-row"},Jht=["value"],eft={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"},tft=D(()=>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)),nft={class:"flex flex-row"},sft=D(()=>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)),ift={class:"flex flex-row"},rft=["value"],oft={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"},aft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),lft={class:"flex flex-row"},cft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),dft=D(()=>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)),uft=["value"],pft={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"},_ft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),hft={class:"flex flex-row"},fft=["value"],mft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),gft={class:"flex flex-row"},bft=["value"],Eft=D(()=>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)),yft={class:"flex flex-row"},vft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),Sft={class:"flex flex-row"},Tft=D(()=>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)),xft={class:"flex flex-row"},Cft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),wft={class:"flex flex-row"},Rft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),Aft={class:"flex flex-row"},Nft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),Oft={class:"flex flex-row"},Mft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),Ift={class:"flex flex-row"},kft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),Dft={class:"flex flex-row"},Lft=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),Pft={class:"flex flex-row"},Uft=D(()=>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)),Fft={class:"flex flex-row"},Bft={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"},Gft=D(()=>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)),Vft={class:"flex flex-row"},zft=D(()=>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)),Hft={class:"flex flex-row"},qft=D(()=>l("option",null," tts-1 ",-1)),$ft=D(()=>l("option",null," tts-2 ",-1)),Yft=[qft,$ft],Wft=D(()=>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)),Kft={class:"flex flex-row"},jft=D(()=>l("option",null," alloy ",-1)),Qft=D(()=>l("option",null," echo ",-1)),Xft=D(()=>l("option",null," fable ",-1)),Zft=D(()=>l("option",null," nova ",-1)),Jft=D(()=>l("option",null," shimmer ",-1)),emt=[jft,Qft,Xft,Zft,Jft],tmt={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"},nmt=D(()=>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)),smt={class:"flex flex-row"},imt=D(()=>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)),rmt={class:"flex flex-row"},omt=D(()=>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)),amt={class:"flex flex-row"},lmt=D(()=>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)),cmt={class:"flex flex-row"},dmt=D(()=>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)),umt={class:"flex flex-row"},pmt=["value"],_mt={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"},hmt=D(()=>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)),fmt={class:"flex flex-row"},mmt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),gmt=[mmt],bmt=D(()=>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)),Emt={class:"flex flex-row"},ymt=D(()=>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)),vmt={class:"flex flex-row"},Smt=D(()=>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)),Tmt={class:"flex flex-row"},xmt={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"},Cmt=D(()=>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)),wmt={class:"flex flex-row"},Rmt=D(()=>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)),Amt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),Nmt={class:"flex flex-row"},Omt=D(()=>l("td",null,null,-1)),Mmt={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"},Imt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),kmt={class:"flex flex-row"},Dmt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),Lmt={class:"flex flex-row"},Pmt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),Umt={class:"flex flex-row"},Fmt={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"},Bmt=D(()=>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)),Gmt={class:"flex flex-row"},Vmt=D(()=>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)),zmt={class:"flex flex-row"},Hmt=D(()=>l("option",null," dall-e-2 ",-1)),qmt=D(()=>l("option",null," dall-e-3 ",-1)),$mt=[Hmt,qmt],Ymt={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"},Wmt=D(()=>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)),Kmt={class:"flex flex-row"},jmt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Qmt=[jmt],Xmt=D(()=>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)),Zmt={class:"flex flex-row"},Jmt=["value"],egt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),tgt={class:"flex flex-row"},ngt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),sgt=[ngt],igt=D(()=>l("td",{style:{"min-width":"200px"}},null,-1)),rgt={class:"flex flex-row"},ogt=D(()=>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)),agt=D(()=>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)),lgt={class:"flex flex-row"},cgt={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"},dgt=D(()=>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)),ugt={class:"flex flex-row"},pgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),_gt=[pgt],hgt=D(()=>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)),fgt={class:"flex flex-row"},mgt=D(()=>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)),ggt={class:"flex flex-row"},bgt={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"},Egt=D(()=>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)),ygt={class:"flex flex-row"},vgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Sgt=[vgt],Tgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),xgt={class:"flex flex-row"},Cgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),wgt={class:"flex flex-row"},Rgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),Agt={class:"flex flex-col align-bottom"},Ngt={class:"relative"},Ogt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),Mgt={class:"absolute right-0"},Igt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),kgt={class:"flex flex-row"},Dgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),Lgt={class:"flex flex-row"},Pgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),Ugt={class:"flex flex-row"},Fgt={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"},Bgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),Ggt={class:"flex flex-row"},Vgt=D(()=>l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),zgt=[Vgt],Hgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),qgt={class:"flex flex-row"},$gt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),Ygt={class:"flex flex-row"},Wgt={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"},Kgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),jgt={class:"flex flex-row"},Qgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),Xgt={class:"flex flex-row"},Zgt=D(()=>l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),Jgt={class:"flex flex-row"},ebt={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"},tbt={class:"flex flex-row p-3"},nbt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),sbt=[nbt],ibt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),rbt=[ibt],obt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),abt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},lbt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),cbt={key:1,class:"mr-2"},dbt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},ubt={class:"flex gap-1 items-center"},pbt=["src"],_bt={class:"font-bold font-large text-lg line-clamp-1"},hbt={key:0,class:"mb-2"},fbt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},mbt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),gbt=[mbt],bbt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Ebt=[bbt],ybt={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"},vbt={class:"flex flex-row p-3"},Sbt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),Tbt=[Sbt],xbt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),Cbt=[xbt],wbt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),Rbt={class:"flex flex-row items-center"},Abt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Nbt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Obt={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Mbt=D(()=>l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Ibt={key:2,class:"mr-2"},kbt={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Dbt={class:"flex gap-1 items-center"},Lbt=["src"],Pbt={class:"font-bold font-large text-lg line-clamp-1"},Ubt={class:"mx-2 mb-4"},Fbt={class:"relative"},Bbt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Gbt={key:0},Vbt=D(()=>l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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)),zbt=[Vbt],Hbt={key:1},qbt=D(()=>l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",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)),$bt=[qbt],Ybt=D(()=>l("label",{for:"only_installed"},"Show only installed models",-1)),Wbt=D(()=>l("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),Kbt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},jbt=D(()=>l("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 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)),Qbt=D(()=>l("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Xbt=[jbt,Qbt],Zbt={key:1,class:"mb-2"},Jbt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},eEt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),tEt=[eEt],nEt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),sEt=[nEt],iEt={class:"mb-2"},rEt={class:"p-2"},oEt={class:"mb-3"},aEt=D(()=>l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),lEt={key:0},cEt={class:"mb-3"},dEt=D(()=>l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),uEt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},pEt=D(()=>l("div",{role:"status",class:"justify-center"},null,-1)),_Et={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},hEt={class:"w-full p-2"},fEt={class:"flex justify-between mb-1"},mEt=Na(' Downloading Loading...',1),gEt={class:"text-sm font-medium text-blue-700 dark:text-white"},bEt=["title"],EEt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},yEt={class:"flex justify-between mb-1"},vEt={class:"text-base font-medium text-blue-700 dark:text-white"},SEt={class:"text-sm font-medium text-blue-700 dark:text-white"},TEt={class:"flex flex-grow"},xEt={class:"flex flex-row flex-grow gap-3"},CEt={class:"p-2 text-center grow"},wEt={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"},REt={class:"flex flex-row p-3 items-center"},AEt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),NEt=[AEt],OEt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),MEt=[OEt],IEt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),kEt={key:0,class:"mr-2"},DEt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},LEt={key:1,class:"mr-2"},PEt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},UEt={key:0,class:"flex -space-x-4 items-center"},FEt={class:"group items-center flex flex-row"},BEt=["onClick"],GEt=["src","title"],VEt=["onClick"],zEt=D(()=>l("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",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)),HEt=[zEt],qEt=D(()=>l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",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)),$Et=[qEt],YEt={class:"mx-2 mb-4"},WEt=D(()=>l("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),KEt={class:"relative"},jEt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},QEt={key:0},XEt=D(()=>l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 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)),ZEt=[XEt],JEt={key:1},eyt=D(()=>l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",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)),tyt=[eyt],nyt={key:0,class:"mx-2 mb-4"},syt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},iyt=["selected"],ryt={key:0,class:"mb-2"},oyt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},ayt=D(()=>l("i",{"data-feather":"chevron-up"},null,-1)),lyt=[ayt],cyt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),dyt=[cyt],uyt={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"},pyt={class:"flex flex-row"},_yt=D(()=>l("i",{"data-feather":"chevron-right"},null,-1)),hyt=[_yt],fyt=D(()=>l("i",{"data-feather":"chevron-down"},null,-1)),myt=[fyt],gyt=D(()=>l("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),byt={class:"m-2"},Eyt={class:"flex flex-row gap-2 items-center"},yyt=D(()=>l("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),vyt={class:"m-2"},Syt=D(()=>l("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),Tyt={class:"m-2"},xyt={class:"flex flex-col align-bottom"},Cyt={class:"relative"},wyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),Ryt={class:"absolute right-0"},Ayt={class:"m-2"},Nyt={class:"flex flex-col align-bottom"},Oyt={class:"relative"},Myt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),Iyt={class:"absolute right-0"},kyt={class:"m-2"},Dyt={class:"flex flex-col align-bottom"},Lyt={class:"relative"},Pyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),Uyt={class:"absolute right-0"},Fyt={class:"m-2"},Byt={class:"flex flex-col align-bottom"},Gyt={class:"relative"},Vyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),zyt={class:"absolute right-0"},Hyt={class:"m-2"},qyt={class:"flex flex-col align-bottom"},$yt={class:"relative"},Yyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),Wyt={class:"absolute right-0"},Kyt={class:"m-2"},jyt={class:"flex flex-col align-bottom"},Qyt={class:"relative"},Xyt=D(()=>l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Zyt={class:"absolute right-0"};function Jyt(t,e,n,s,i,r){const o=tt("StringListManager"),a=tt("Card"),c=tt("BindingEntry"),d=tt("RadioOptions"),u=tt("model-entry"),h=tt("personality-entry"),f=tt("AddModelDialog"),m=tt("ChoiceDialog");return T(),w(Pe,null,[l("div",gat,[l("div",bat,[i.showConfirmation?(T(),w("div",Eat,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=j(_=>i.showConfirmation=!1,["stop"]))},vat),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=j(_=>r.save_configuration(),["stop"]))},Tat)])):G("",!0),i.showConfirmation?G("",!0):(T(),w("div",xat,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=_=>r.reset_configuration())},wat),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]=j(_=>i.all_collapsed=!i.all_collapsed,["stop"]))},Aat)])),l("div",Nat,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=_=>r.api_get_req("clear_uploads").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},Mat),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=_=>r.api_post_req("restart_program").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},kat),i.has_updates?(T(),w("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=_=>r.api_post_req("update_software").then(g=>{g.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},Pat)):G("",!0),l("div",Uat,[i.settingsChanged?(T(),w("div",Fat,[i.isLoading?G("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=j(_=>r.applyConfiguration(),["stop"]))},Gat)),i.isLoading?G("",!0):(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=j(_=>r.cancelConfiguration(),["stop"]))},zat))])):G("",!0),i.isLoading?(T(),w("div",Hat,[l("p",null,K(i.loading_text),1),qat,$at])):G("",!0)])])]),l("div",{class:Ge(i.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",Yat,[l("div",Wat,[l("button",{onClick:e[9]||(e[9]=j(_=>i.sc_collapsed=!i.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,jat,512),[[wt,i.sc_collapsed]]),P(l("div",null,Xat,512),[[wt,!i.sc_collapsed]]),Zat,Jat,l("div",elt,[l("div",tlt,[l("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(T(),w("div",nlt,[(T(!0),w(Pe,null,Ke(r.vramUsage.gpus,_=>(T(),w("div",{class:"flex gap-2 items-center",key:_},[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,slt),l("h3",ilt,[l("div",null,K(r.computedFileSize(_.used_vram))+" / "+K(r.computedFileSize(_.total_vram))+" ("+K(_.percentage)+"%) ",1)])]))),128))])):G("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(T(),w("div",rlt,[l("div",olt,[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,alt),l("h3",llt,[l("div",null,K(r.vramUsage.gpus.length)+"x ",1)])])])):G("",!0)]),clt,l("h3",dlt,[l("div",null,K(r.ram_usage)+" / "+K(r.ram_total_space)+" ("+K(r.ram_percent_usage)+"%)",1)]),ult,l("h3",plt,[l("div",null,K(r.disk_binding_models_usage)+" / "+K(r.disk_total_space)+" ("+K(r.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Ge([{hidden:i.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",_lt,[hlt,l("div",flt,[l("div",null,[mlt,et(K(r.ram_available_space),1)]),l("div",null,[glt,et(" "+K(r.ram_usage)+" / "+K(r.ram_total_space)+" ("+K(r.ram_percent_usage)+")% ",1)])]),l("div",blt,[l("div",Elt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+r.ram_percent_usage+"%;")},null,4)])])]),l("div",ylt,[vlt,l("div",Slt,[l("div",null,[Tlt,et(K(r.disk_available_space),1)]),l("div",null,[xlt,et(" "+K(r.disk_binding_models_usage)+" / "+K(r.disk_total_space)+" ("+K(r.disk_percent_usage)+"%)",1)])]),l("div",Clt,[l("div",wlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(T(!0),w(Pe,null,Ke(r.vramUsage.gpus,_=>(T(),w("div",{class:"mb-2",key:_},[l("label",Rlt,[l("img",{src:i.SVGGPU,width:"25",height:"25"},null,8,Alt),et(" GPU usage: ")]),l("div",Nlt,[l("div",null,[Olt,et(K(_.gpu_model),1)]),l("div",null,[Mlt,et(K(this.computedFileSize(_.available_space)),1)]),l("div",null,[Ilt,et(" "+K(this.computedFileSize(_.used_vram))+" / "+K(this.computedFileSize(_.total_vram))+" ("+K(_.percentage)+"%)",1)])]),l("div",klt,[l("div",Dlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht("width: "+_.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",Llt,[l("div",Plt,[l("button",{onClick:e[10]||(e[10]=j(_=>i.smartrouterconf_collapsed=!i.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Flt,512),[[wt,i.smartrouterconf_collapsed]]),P(l("div",null,Glt,512),[[wt,!i.smartrouterconf_collapsed]]),Vlt])]),l("div",{class:Ge([{hidden:i.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",zlt,[V(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Hlt,[l("tr",null,[qlt,l("td",$lt,[P(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=_=>r.configFile.use_smart_routing=_),onChange:e[12]||(e[12]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_smart_routing]])])]),l("tr",null,[Ylt,l("td",Wlt,[P(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=_=>r.configFile.restore_model_after_smart_routing=_),onChange:e[14]||(e[14]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.restore_model_after_smart_routing]])])]),l("tr",null,[Klt,l("td",jlt,[P(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=_=>r.configFile.smart_routing_router_model=_),onChange:e[16]||(e[16]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.smart_routing_router_model]])])]),l("tr",null,[Qlt,l("td",Xlt,[V(o,{modelValue:r.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=_=>r.configFile.smart_routing_models_by_power=_),onChange:e[18]||(e[18]=_=>i.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",Zlt,[l("div",Jlt,[l("button",{onClick:e[19]||(e[19]=j(_=>i.mainconf_collapsed=!i.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,tct,512),[[wt,i.mainconf_collapsed]]),P(l("div",null,sct,512),[[wt,!i.mainconf_collapsed]]),ict])]),l("div",{class:Ge([{hidden:i.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",rct,[V(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",oct,[l("tr",null,[act,l("td",null,[l("label",lct,[l("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,cct)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(..._)=>r.uploadLogo&&r.uploadLogo(..._))},null,32)]),l("td",dct,[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]=j(_=>r.resetLogo(),["stop"]))},pct)])]),l("tr",null,[_ct,l("td",hct,[l("div",fct,[P(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=_=>r.configFile.hardware_mode=_),onChange:e[23]||(e[23]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},xct,544),[[kt,r.configFile.hardware_mode]])])])]),l("tr",null,[Cct,l("td",wct,[P(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=_=>r.configFile.discussion_db_name=_),onChange:e[25]||(e[25]=_=>i.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),[[pe,r.configFile.discussion_db_name]])])]),l("tr",null,[Rct,l("td",null,[l("div",Act,[P(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=_=>r.configFile.copy_to_clipboard_add_all_details=_),onChange:e[27]||(e[27]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[Nct,l("td",null,[l("div",Oct,[P(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=_=>r.configFile.auto_show_browser=_),onChange:e[29]||(e[29]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_show_browser]])])])]),l("tr",null,[Mct,l("td",null,[l("div",Ict,[P(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=_=>r.configFile.debug=_),onChange:e[31]||(e[31]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug]])])])]),l("tr",null,[kct,l("td",null,[l("div",Dct,[P(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[33]||(e[33]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[Lct,l("td",null,[l("div",Pct,[P(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=_=>r.configFile.debug_show_final_full_prompt=_),onChange:e[35]||(e[35]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[Uct,l("td",null,[l("div",Fct,[P(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=_=>r.configFile.debug_show_chunks=_),onChange:e[37]||(e[37]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.debug_show_chunks]])])])]),l("tr",null,[Bct,l("td",null,[l("div",Gct,[P(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=_=>r.configFile.debug_log_file_path=_),onChange:e[39]||(e[39]=_=>i.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.debug_log_file_path]])])])]),l("tr",null,[Vct,l("td",null,[l("div",zct,[P(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=_=>r.configFile.show_news_panel=_),onChange:e[41]||(e[41]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.show_news_panel]])])])]),l("tr",null,[Hct,l("td",null,[l("div",qct,[P(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=_=>r.configFile.auto_save=_),onChange:e[43]||(e[43]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_save]])])])]),l("tr",null,[$ct,l("td",null,[l("div",Yct,[P(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=_=>r.configFile.auto_update=_),onChange:e[45]||(e[45]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_update]])])])]),l("tr",null,[Wct,l("td",null,[l("div",Kct,[P(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=_=>r.configFile.auto_title=_),onChange:e[47]||(e[47]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_title]])])])])])]),_:1}),V(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jct,[l("tr",null,[Qct,l("td",null,[l("select",{onChange:e[48]||(e[48]=(..._)=>r.handleTemplateSelection&&r.handleTemplateSelection(..._))},ndt,32)])]),l("tr",null,[sdt,l("td",null,[P(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=_=>r.configFile.start_header_id_template=_),onChange:e[50]||(e[50]=_=>i.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),[[pe,r.configFile.start_header_id_template]])])]),l("tr",null,[idt,l("td",null,[P(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=_=>r.configFile.end_header_id_template=_),onChange:e[52]||(e[52]=_=>i.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),[[pe,r.configFile.end_header_id_template]])])]),l("tr",null,[rdt,l("td",null,[P(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=_=>r.configFile.start_user_header_id_template=_),onChange:e[54]||(e[54]=_=>i.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),[[pe,r.configFile.start_user_header_id_template]])])]),l("tr",null,[odt,l("td",null,[P(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=_=>r.configFile.end_user_header_id_template=_),onChange:e[56]||(e[56]=_=>i.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),[[pe,r.configFile.end_user_header_id_template]])])]),l("tr",null,[adt,l("td",null,[P(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=_=>r.configFile.end_user_message_id_template=_),onChange:e[58]||(e[58]=_=>i.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),[[pe,r.configFile.end_user_message_id_template]])])]),l("tr",null,[ldt,l("td",null,[P(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=_=>r.configFile.start_ai_header_id_template=_),onChange:e[60]||(e[60]=_=>i.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),[[pe,r.configFile.start_ai_header_id_template]])])]),l("tr",null,[cdt,l("td",null,[P(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=_=>r.configFile.end_ai_header_id_template=_),onChange:e[62]||(e[62]=_=>i.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),[[pe,r.configFile.end_ai_header_id_template]])])]),l("tr",null,[ddt,l("td",null,[P(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=_=>r.configFile.end_ai_message_id_template=_),onChange:e[64]||(e[64]=_=>i.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),[[pe,r.configFile.end_ai_message_id_template]])])]),l("tr",null,[udt,l("td",null,[P(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=_=>r.configFile.separator_template=_),onChange:e[66]||(e[66]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.separator_template]])])]),l("tr",null,[pdt,l("td",null,[P(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=_=>r.configFile.system_message_template=_),onChange:e[68]||(e[68]=_=>i.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),[[pe,r.configFile.system_message_template]])])]),l("tr",null,[_dt,l("td",null,[l("div",{innerHTML:r.full_template},null,8,hdt)])]),l("tr",null,[fdt,l("td",mdt,[P(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=_=>r.configFile.use_continue_message=_),onChange:e[70]||(e[70]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_continue_message]])])])])]),_:1}),V(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",gdt,[l("tr",null,[bdt,l("td",Edt,[P(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=_=>r.configFile.user_name=_),onChange:e[72]||(e[72]=_=>i.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.user_name]])])]),l("tr",null,[ydt,l("td",vdt,[P(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=_=>r.configFile.user_description=_),onChange:e[74]||(e[74]=_=>i.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),[[pe,r.configFile.user_description]])])]),l("tr",null,[Sdt,l("td",Tdt,[P(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=_=>r.configFile.use_user_informations_in_discussion=_),onChange:e[76]||(e[76]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[xdt,l("td",Cdt,[P(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=_=>r.configFile.use_model_name_in_discussions=_),onChange:e[78]||(e[78]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_model_name_in_discussions]])])]),l("tr",null,[wdt,l("td",null,[l("label",Rdt,[l("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:i.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Adt)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(..._)=>r.uploadAvatar&&r.uploadAvatar(..._))},null,32)]),l("td",Ndt,[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]=j(_=>r.resetAvatar(),["stop"]))},Mdt)])]),l("tr",null,[Idt,l("td",null,[l("div",kdt,[P(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=_=>r.configFile.use_user_name_in_discussions=_),onChange:e[82]||(e[82]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[Ddt,l("td",Ldt,[P(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=_=>r.configFile.max_n_predict=_),onChange:e[84]||(e[84]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.max_n_predict]])])]),l("tr",null,[Pdt,l("td",Udt,[P(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=_=>r.configFile.max_n_predict=_),onChange:e[86]||(e[86]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.max_n_predict]])])])])]),_:1}),V(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Fdt,[l("tr",null,[Bdt,l("td",Gdt,[P(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=_=>r.configFile.turn_on_code_execution=_),onChange:e[88]||(e[88]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_code_execution]])])]),l("tr",null,[Vdt,l("td",zdt,[P(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=_=>r.configFile.turn_on_code_validation=_),onChange:e[90]||(e[90]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_code_validation]])])]),l("tr",null,[Hdt,l("td",qdt,[P(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=_=>r.configFile.turn_on_setting_update_validation=_),onChange:e[92]||(e[92]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[$dt,l("td",Ydt,[P(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=_=>r.configFile.turn_on_open_file_validation=_),onChange:e[94]||(e[94]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_open_file_validation]])])]),l("tr",null,[Wdt,l("td",Kdt,[P(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=_=>r.configFile.turn_on_send_file_validation=_),onChange:e[96]||(e[96]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),V(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jdt,[l("tr",null,[Qdt,l("td",null,[l("div",Xdt,[P(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=_=>r.configFile.activate_skills_lib=_),onChange:e[98]||(e[98]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_skills_lib]])])])]),l("tr",null,[Zdt,l("td",Jdt,[P(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=_=>r.configFile.skills_lib_database_name=_),onChange:e[100]||(e[100]=_=>i.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),[[pe,r.configFile.skills_lib_database_name]])])])])]),_:1}),V(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",eut,[l("tr",null,[tut,l("td",null,[l("div",nut,[P(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=_=>r.configFile.pdf_latex_path=_),onChange:e[102]||(e[102]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.pdf_latex_path]])])])])])]),_:1}),V(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",sut,[l("tr",null,[iut,l("td",null,[l("div",rut,[P(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=_=>r.configFile.positive_boost=_),onChange:e[104]||(e[104]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.positive_boost]])])])]),l("tr",null,[out,l("td",null,[l("div",aut,[P(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=_=>r.configFile.negative_boost=_),onChange:e[106]||(e[106]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.negative_boost]])])])]),l("tr",null,[lut,l("td",null,[l("div",cut,[P(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=_=>r.configFile.fun_mode=_),onChange:e[108]||(e[108]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",dut,[l("div",uut,[l("button",{onClick:e[109]||(e[109]=j(_=>i.data_conf_collapsed=!i.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,_ut,512),[[wt,i.data_conf_collapsed]]),P(l("div",null,fut,512),[[wt,!i.data_conf_collapsed]]),mut])]),l("div",{class:Ge([{hidden:i.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",gut,[l("tr",null,[but,l("td",Eut,[(T(!0),w(Pe,null,Ke(r.configFile.rag_databases,(_,g)=>(T(),w("div",{key:g,class:"flex items-center mb-2"},[P(l("input",{type:"text","onUpdate:modelValue":b=>r.configFile.rag_databases[g]=b,onChange:e[110]||(e[110]=b=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,yut),[[pe,r.configFile.rag_databases[g]]]),l("button",{onClick:b=>r.vectorize_folder(g),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,vut),l("button",{onClick:b=>r.select_folder(g),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,Sut),l("button",{onClick:b=>r.removeDataSource(g),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,Tut)]))),128)),l("button",{onClick:e[111]||(e[111]=(..._)=>r.addDataSource&&r.addDataSource(..._)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[xut,l("td",null,[P(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=_=>r.configFile.rag_vectorizer=_),onChange:e[113]||(e[113]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Aut,544),[[kt,r.configFile.rag_vectorizer]])])]),l("tr",null,[Nut,l("td",null,[P(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=_=>r.configFile.rag_vectorizer_model=_),onChange:e[115]||(e[115]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Mut,544),[[kt,r.configFile.rag_vectorizer_model]])])]),l("tr",null,[Iut,l("td",null,[P(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[116]||(e[116]=_=>r.configFile.rag_chunk_size=_),onChange:e[117]||(e[117]=_=>i.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),[[pe,r.configFile.rag_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[118]||(e[118]=_=>r.configFile.rag_chunk_size=_),type:"number",onChange:e[119]||(e[119]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_chunk_size]])])]),l("tr",null,[kut,l("td",null,[P(l("input",{id:"rag_overlap","onUpdate:modelValue":e[120]||(e[120]=_=>r.configFile.rag_overlap=_),onChange:e[121]||(e[121]=_=>i.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),[[pe,r.configFile.rag_overlap]]),P(l("input",{"onUpdate:modelValue":e[122]||(e[122]=_=>r.configFile.rag_overlap=_),type:"number",onChange:e[123]||(e[123]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_overlap]])])]),l("tr",null,[Dut,l("td",null,[P(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[124]||(e[124]=_=>r.configFile.rag_n_chunks=_),onChange:e[125]||(e[125]=_=>i.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),[[pe,r.configFile.rag_n_chunks]]),P(l("input",{"onUpdate:modelValue":e[126]||(e[126]=_=>r.configFile.rag_n_chunks=_),type:"number",onChange:e[127]||(e[127]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.rag_n_chunks]])])]),l("tr",null,[Lut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[128]||(e[128]=_=>r.configFile.rag_clean_chunks=_),type:"checkbox",onChange:e[129]||(e[129]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_clean_chunks]])])]),l("tr",null,[Put,l("td",null,[P(l("input",{"onUpdate:modelValue":e[130]||(e[130]=_=>r.configFile.rag_follow_subfolders=_),type:"checkbox",onChange:e[131]||(e[131]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_follow_subfolders]])])]),l("tr",null,[Uut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[132]||(e[132]=_=>r.configFile.rag_check_new_files_at_startup=_),type:"checkbox",onChange:e[133]||(e[133]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[Fut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[134]||(e[134]=_=>r.configFile.rag_preprocess_chunks=_),type:"checkbox",onChange:e[135]||(e[135]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_preprocess_chunks]])])]),l("tr",null,[But,l("td",null,[P(l("input",{"onUpdate:modelValue":e[136]||(e[136]=_=>r.configFile.rag_activate_multi_hops=_),type:"checkbox",onChange:e[137]||(e[137]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_activate_multi_hops]])])]),l("tr",null,[Gut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[138]||(e[138]=_=>r.configFile.contextual_summary=_),type:"checkbox",onChange:e[139]||(e[139]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.contextual_summary]])])]),l("tr",null,[Vut,l("td",null,[P(l("input",{"onUpdate:modelValue":e[140]||(e[140]=_=>r.configFile.rag_deactivate=_),type:"checkbox",onChange:e[141]||(e[141]=_=>i.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.rag_deactivate]])])])])]),_:1}),V(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zut,[l("tr",null,[Hut,l("td",null,[l("div",qut,[P(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[142]||(e[142]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[143]||(e[143]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[$ut,l("td",null,[l("div",Yut,[P(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[144]||(e[144]=_=>r.configFile.data_vectorization_visualize_on_vectorization=_),onChange:e[145]||(e[145]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[Wut,l("td",null,[l("div",Kut,[P(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[146]||(e[146]=_=>r.configFile.data_vectorization_build_keys_words=_),onChange:e[147]||(e[147]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[jut,l("td",null,[l("div",Qut,[P(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[148]||(e[148]=_=>r.configFile.data_vectorization_force_first_chunk=_),onChange:e[149]||(e[149]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[Xut,l("td",null,[l("div",Zut,[P(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[150]||(e[150]=_=>r.configFile.data_vectorization_put_chunk_informations_into_context=_),onChange:e[151]||(e[151]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[Jut,l("td",null,[P(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[152]||(e[152]=_=>r.configFile.data_vectorization_method=_),onChange:e[153]||(e[153]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},ipt,544),[[kt,r.configFile.data_vectorization_method]])])]),l("tr",null,[rpt,l("td",opt,[P(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[154]||(e[154]=_=>r.configFile.data_vectorization_sentense_transformer_model=_),onChange:e[155]||(e[155]=_=>i.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),[[pe,r.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[apt,l("td",null,[P(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[156]||(e[156]=_=>r.configFile.data_visualization_method=_),onChange:e[157]||(e[157]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},dpt,544),[[kt,r.configFile.data_visualization_method]])])]),l("tr",null,[upt,l("td",null,[l("div",ppt,[P(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[158]||(e[158]=_=>r.configFile.data_vectorization_save_db=_),onChange:e[159]||(e[159]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[_pt,l("td",null,[P(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[160]||(e[160]=_=>r.configFile.data_vectorization_chunk_size=_),onChange:e[161]||(e[161]=_=>i.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),[[pe,r.configFile.data_vectorization_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[162]||(e[162]=_=>r.configFile.data_vectorization_chunk_size=_),type:"number",onChange:e[163]||(e[163]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[hpt,l("td",null,[P(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[164]||(e[164]=_=>r.configFile.data_vectorization_overlap_size=_),onChange:e[165]||(e[165]=_=>i.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),[[pe,r.configFile.data_vectorization_overlap_size]]),P(l("input",{"onUpdate:modelValue":e[166]||(e[166]=_=>r.configFile.data_vectorization_overlap_size=_),type:"number",onChange:e[167]||(e[167]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[fpt,l("td",null,[P(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[168]||(e[168]=_=>r.configFile.data_vectorization_nb_chunks=_),onChange:e[169]||(e[169]=_=>i.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),[[pe,r.configFile.data_vectorization_nb_chunks]]),P(l("input",{"onUpdate:modelValue":e[170]||(e[170]=_=>r.configFile.data_vectorization_nb_chunks=_),type:"number",onChange:e[171]||(e[171]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",mpt,[l("div",gpt,[l("button",{onClick:e[172]||(e[172]=j(_=>i.internet_conf_collapsed=!i.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Ept,512),[[wt,i.internet_conf_collapsed]]),P(l("div",null,vpt,512),[[wt,!i.internet_conf_collapsed]]),Spt])]),l("div",{class:Ge([{hidden:i.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Tpt,[l("tr",null,[xpt,l("td",null,[l("div",Cpt,[P(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[173]||(e[173]=_=>r.configFile.activate_internet_search=_),onChange:e[174]||(e[174]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_internet_search]])])])]),l("tr",null,[wpt,l("td",null,[l("div",Rpt,[P(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[175]||(e[175]=_=>r.configFile.activate_internet_pages_judgement=_),onChange:e[176]||(e[176]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[Apt,l("td",null,[l("div",Npt,[P(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[177]||(e[177]=_=>r.configFile.internet_quick_search=_),onChange:e[178]||(e[178]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.internet_quick_search]])])])]),l("tr",null,[Opt,l("td",null,[l("div",Mpt,[P(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[179]||(e[179]=_=>r.configFile.internet_activate_search_decision=_),onChange:e[180]||(e[180]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.internet_activate_search_decision]])])])]),l("tr",null,[Ipt,l("td",null,[l("div",kpt,[P(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[181]||(e[181]=_=>r.configFile.internet_vectorization_chunk_size=_),onChange:e[182]||(e[182]=_=>i.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),[[pe,r.configFile.internet_vectorization_chunk_size]]),P(l("input",{"onUpdate:modelValue":e[183]||(e[183]=_=>r.configFile.internet_vectorization_chunk_size=_),type:"number",onChange:e[184]||(e[184]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[Dpt,l("td",null,[l("div",Lpt,[P(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[185]||(e[185]=_=>r.configFile.internet_vectorization_overlap_size=_),onChange:e[186]||(e[186]=_=>i.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),[[pe,r.configFile.internet_vectorization_overlap_size]]),P(l("input",{"onUpdate:modelValue":e[187]||(e[187]=_=>r.configFile.internet_vectorization_overlap_size=_),type:"number",onChange:e[188]||(e[188]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[Ppt,l("td",null,[l("div",Upt,[P(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[189]||(e[189]=_=>r.configFile.internet_vectorization_nb_chunks=_),onChange:e[190]||(e[190]=_=>i.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),[[pe,r.configFile.internet_vectorization_nb_chunks]]),P(l("input",{"onUpdate:modelValue":e[191]||(e[191]=_=>r.configFile.internet_vectorization_nb_chunks=_),type:"number",onChange:e[192]||(e[192]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[Fpt,l("td",null,[l("div",Bpt,[P(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[193]||(e[193]=_=>r.configFile.internet_nb_search_pages=_),onChange:e[194]||(e[194]=_=>i.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),[[pe,r.configFile.internet_nb_search_pages]]),P(l("input",{"onUpdate:modelValue":e[195]||(e[195]=_=>r.configFile.internet_nb_search_pages=_),type:"number",onChange:e[196]||(e[196]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",Gpt,[l("div",Vpt,[l("button",{onClick:e[197]||(e[197]=j(_=>i.servers_conf_collapsed=!i.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,Hpt,512),[[wt,i.servers_conf_collapsed]]),P(l("div",null,$pt,512),[[wt,!i.servers_conf_collapsed]]),Ypt])]),l("div",{class:Ge([{hidden:i.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[V(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wpt,[l("tr",null,[Kpt,l("td",jpt,[P(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[198]||(e[198]=_=>r.configFile.active_tts_service=_),onChange:e[199]||(e[199]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},n_t,544),[[kt,r.configFile.active_tts_service]])])]),l("tr",null,[s_t,l("td",i_t,[P(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[200]||(e[200]=_=>r.configFile.active_stt_service=_),onChange:e[201]||(e[201]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},l_t,544),[[kt,r.configFile.active_stt_service]])])]),c_t,l("tr",null,[d_t,l("td",u_t,[P(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[202]||(e[202]=_=>r.configFile.active_tti_service=_),onChange:e[203]||(e[203]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},E_t,544),[[kt,r.configFile.active_tti_service]])])]),l("tr",null,[y_t,l("td",v_t,[P(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[204]||(e[204]=_=>r.configFile.active_ttm_service=_),onChange:e[205]||(e[205]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},x_t,544),[[kt,r.configFile.active_ttm_service]])])]),l("tr",null,[C_t,l("td",w_t,[P(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[206]||(e[206]=_=>r.configFile.active_ttv_service=_),onChange:e[207]||(e[207]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},N_t,544),[[kt,r.configFile.active_ttv_service]])])])])]),_:1}),V(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",O_t,[l("tr",null,[M_t,l("td",null,[l("div",I_t,[P(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[208]||(e[208]=_=>r.configFile.use_negative_prompt=_),onChange:e[209]||(e[209]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_negative_prompt]])])])]),l("tr",null,[k_t,l("td",null,[l("div",D_t,[P(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=_=>r.configFile.use_ai_generated_negative_prompt=_),onChange:e[211]||(e[211]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[L_t,l("td",null,[l("div",P_t,[P(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=_=>r.configFile.negative_prompt_generation_prompt=_),onChange:e[213]||(e[213]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[U_t,l("td",null,[l("div",F_t,[P(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=_=>r.configFile.default_negative_prompt=_),onChange:e[215]||(e[215]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.default_negative_prompt]])])])])])]),_:1}),V(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",B_t,[l("tr",null,[G_t,l("td",V_t,[P(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[216]||(e[216]=_=>r.configFile.stt_listening_threshold=_),onChange:e[217]||(e[217]=_=>i.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),[[pe,r.configFile.stt_listening_threshold]])])]),l("tr",null,[z_t,l("td",H_t,[P(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[218]||(e[218]=_=>r.configFile.stt_silence_duration=_),onChange:e[219]||(e[219]=_=>i.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),[[pe,r.configFile.stt_silence_duration]])])]),l("tr",null,[q_t,l("td",$_t,[P(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[220]||(e[220]=_=>r.configFile.stt_sound_threshold_percentage=_),onChange:e[221]||(e[221]=_=>i.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),[[pe,r.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[Y_t,l("td",W_t,[P(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[222]||(e[222]=_=>r.configFile.stt_gain=_),onChange:e[223]||(e[223]=_=>i.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),[[pe,r.configFile.stt_gain]])])]),l("tr",null,[K_t,l("td",j_t,[P(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[224]||(e[224]=_=>r.configFile.stt_rate=_),onChange:e[225]||(e[225]=_=>i.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),[[pe,r.configFile.stt_rate]])])]),l("tr",null,[Q_t,l("td",X_t,[P(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[226]||(e[226]=_=>r.configFile.stt_channels=_),onChange:e[227]||(e[227]=_=>i.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),[[pe,r.configFile.stt_channels]])])]),l("tr",null,[Z_t,l("td",J_t,[P(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[228]||(e[228]=_=>r.configFile.stt_buffer_size=_),onChange:e[229]||(e[229]=_=>i.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),[[pe,r.configFile.stt_buffer_size]])])]),l("tr",null,[eht,l("td",null,[l("div",tht,[P(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[230]||(e[230]=_=>r.configFile.stt_activate_word_detection=_),onChange:e[231]||(e[231]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.stt_activate_word_detection]])])])]),l("tr",null,[nht,l("td",null,[l("div",sht,[P(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[232]||(e[232]=_=>r.configFile.stt_word_detection_file=_),onChange:e[233]||(e[233]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.stt_word_detection_file]])])])])])]),_:1}),V(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",iht,[l("tr",null,[rht,l("td",oht,[P(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[234]||(e[234]=_=>r.configFile.stt_input_device=_),onChange:e[235]||(e[235]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.snd_input_devices,(_,g)=>(T(),w("option",{key:_,value:i.snd_input_devices_indexes[g]},K(_),9,aht))),128))],544),[[kt,r.configFile.stt_input_device]])])]),l("tr",null,[lht,l("td",cht,[P(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[236]||(e[236]=_=>r.configFile.tts_output_device=_),onChange:e[237]||(e[237]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.snd_output_devices,(_,g)=>(T(),w("option",{key:_,value:i.snd_output_devices_indexes[g]},K(_),9,dht))),128))],544),[[kt,r.configFile.tts_output_device]])])])])]),_:1}),V(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",uht,[l("tr",null,[pht,l("td",_ht,[P(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[238]||(e[238]=_=>r.configFile.host=_),onChange:e[239]||(e[239]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.host]])])]),l("tr",null,[hht,l("td",fht,[V(o,{modelValue:r.configFile.lollms_access_keys,"onUpdate:modelValue":e[240]||(e[240]=_=>r.configFile.lollms_access_keys=_),onChange:e[241]||(e[241]=_=>i.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[mht,l("td",ght,[P(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[242]||(e[242]=_=>r.configFile.port=_),onChange:e[243]||(e[243]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.port]])])]),l("tr",null,[bht,l("td",Eht,[P(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[244]||(e[244]=_=>r.configFile.headless_server_mode=_),onChange:e[245]||(e[245]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.headless_server_mode]])])]),l("tr",null,[yht,l("td",vht,[P(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[246]||(e[246]=_=>r.configFile.activate_lollms_server=_),onChange:e[247]||(e[247]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_server]])])]),l("tr",null,[Sht,l("td",Tht,[P(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[248]||(e[248]=_=>r.configFile.activate_lollms_rag_server=_),onChange:e[249]||(e[249]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_rag_server]])])]),l("tr",null,[xht,l("td",Cht,[P(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[250]||(e[250]=_=>r.configFile.activate_lollms_tts_server=_),onChange:e[251]||(e[251]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_tts_server]])])]),l("tr",null,[wht,l("td",Rht,[P(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[252]||(e[252]=_=>r.configFile.activate_lollms_stt_server=_),onChange:e[253]||(e[253]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_stt_server]])])]),l("tr",null,[Aht,l("td",Nht,[P(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[254]||(e[254]=_=>r.configFile.activate_lollms_tti_server=_),onChange:e[255]||(e[255]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_tti_server]])])]),l("tr",null,[Oht,l("td",Mht,[P(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[256]||(e[256]=_=>r.configFile.activate_lollms_itt_server=_),onChange:e[257]||(e[257]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_itt_server]])])]),l("tr",null,[Iht,l("td",kht,[P(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[258]||(e[258]=_=>r.configFile.activate_lollms_ttm_server=_),onChange:e[259]||(e[259]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[Dht,l("td",Lht,[P(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[260]||(e[260]=_=>r.configFile.activate_ollama_emulator=_),onChange:e[261]||(e[261]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_ollama_emulator]])])]),l("tr",null,[Pht,l("td",Uht,[P(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=_=>r.configFile.activate_openai_emulator=_),onChange:e[263]||(e[263]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_openai_emulator]])])]),l("tr",null,[Fht,l("td",Bht,[P(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=_=>r.configFile.activate_mistralai_emulator=_),onChange:e[265]||(e[265]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),V(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ght,[l("tr",null,[Vht,l("td",null,[l("div",zht,[P(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[266]||(e[266]=_=>r.configFile.activate_audio_infos=_),onChange:e[267]||(e[267]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.activate_audio_infos]])])])]),l("tr",null,[Hht,l("td",null,[l("div",qht,[P(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[268]||(e[268]=_=>r.configFile.audio_auto_send_input=_),onChange:e[269]||(e[269]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.audio_auto_send_input]])])])]),l("tr",null,[$ht,l("td",null,[P(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[270]||(e[270]=_=>r.configFile.audio_silenceTimer=_),onChange:e[271]||(e[271]=_=>i.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),[[pe,r.configFile.audio_silenceTimer]]),P(l("input",{"onUpdate:modelValue":e[272]||(e[272]=_=>r.configFile.audio_silenceTimer=_),onChange:e[273]||(e[273]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.audio_silenceTimer]])])]),l("tr",null,[Yht,l("td",null,[P(l("select",{id:"audio_in_language","onUpdate:modelValue":e[274]||(e[274]=_=>r.configFile.audio_in_language=_),onChange:e[275]||(e[275]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.audioLanguages,_=>(T(),w("option",{key:_.code,value:_.code},K(_.name),9,Wht))),128))],544),[[kt,r.configFile.audio_in_language]])])])])]),_:1}),V(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Kht,[l("tr",null,[jht,l("td",null,[l("div",Qht,[P(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[276]||(e[276]=_=>r.configFile.whisper_activate=_),onChange:e[277]||(e[277]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.whisper_activate]])])])]),l("tr",null,[Xht,l("td",null,[l("div",Zht,[P(l("select",{id:"whisper_model","onUpdate:modelValue":e[278]||(e[278]=_=>r.configFile.whisper_model=_),onChange:e[279]||(e[279]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.whisperModels,_=>(T(),w("option",{key:_,value:_},K(_),9,Jht))),128))],544),[[kt,r.configFile.whisper_model]])])])])])]),_:1}),V(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",eft,[l("tr",null,[tft,l("td",null,[l("div",nft,[P(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[280]||(e[280]=_=>r.configFile.openai_whisper_key=_),onChange:e[281]||(e[281]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.openai_whisper_key]])])])]),l("tr",null,[sft,l("td",null,[l("div",ift,[P(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[282]||(e[282]=_=>r.configFile.openai_whisper_model=_),onChange:e[283]||(e[283]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(r.openaiWhisperModels,_=>(T(),w("option",{key:_,value:_},K(_),9,rft))),128))],544),[[kt,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),V(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",oft,[l("tr",null,[aft,l("td",null,[l("div",lft,[P(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[284]||(e[284]=_=>r.configFile.auto_speak=_),onChange:e[285]||(e[285]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_speak]])])])]),l("tr",null,[cft,l("td",null,[P(l("input",{id:"audio_pitch","onUpdate:modelValue":e[286]||(e[286]=_=>r.configFile.audio_pitch=_),onChange:e[287]||(e[287]=_=>i.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),[[pe,r.configFile.audio_pitch]]),P(l("input",{"onUpdate:modelValue":e[288]||(e[288]=_=>r.configFile.audio_pitch=_),onChange:e[289]||(e[289]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.audio_pitch]])])]),l("tr",null,[dft,l("td",null,[P(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[290]||(e[290]=_=>r.configFile.audio_out_voice=_),onChange:e[291]||(e[291]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.audioVoices,_=>(T(),w("option",{key:_.name,value:_.name},K(_.name),9,uft))),128))],544),[[kt,r.configFile.audio_out_voice]])])])])]),_:1}),V(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",pft,[l("tr",null,[_ft,l("td",null,[l("div",hft,[P(l("select",{"onUpdate:modelValue":e[292]||(e[292]=_=>r.xtts_current_language=_),onChange:e[293]||(e[293]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voice_languages,(_,g)=>(T(),w("option",{key:g,value:_},K(g),9,fft))),128))],544),[[kt,r.xtts_current_language]])])])]),l("tr",null,[mft,l("td",null,[l("div",gft,[P(l("select",{"onUpdate:modelValue":e[294]||(e[294]=_=>r.xtts_current_voice=_),onChange:e[295]||(e[295]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voices,_=>(T(),w("option",{key:_,value:_},K(_),9,bft))),128))],544),[[kt,r.xtts_current_voice]])])])]),l("tr",null,[Eft,l("td",null,[l("div",yft,[P(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[296]||(e[296]=_=>r.configFile.xtts_freq=_),onChange:e[297]||(e[297]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[pe,r.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[vft,l("td",null,[l("div",Sft,[P(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[298]||(e[298]=_=>r.configFile.auto_read=_),onChange:e[299]||(e[299]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.auto_read]])])])]),l("tr",null,[Tft,l("td",null,[l("div",xft,[P(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[300]||(e[300]=_=>r.configFile.xtts_stream_chunk_size=_),onChange:e[301]||(e[301]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[Cft,l("td",null,[l("div",wft,[P(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[302]||(e[302]=_=>r.configFile.xtts_temperature=_),onChange:e[303]||(e[303]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[pe,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[Rft,l("td",null,[l("div",Aft,[P(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[304]||(e[304]=_=>r.configFile.xtts_length_penalty=_),onChange:e[305]||(e[305]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[Nft,l("td",null,[l("div",Oft,[P(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[306]||(e[306]=_=>r.configFile.xtts_repetition_penalty=_),onChange:e[307]||(e[307]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[Mft,l("td",null,[l("div",Ift,[P(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[308]||(e[308]=_=>r.configFile.xtts_top_k=_),onChange:e[309]||(e[309]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[kft,l("td",null,[l("div",Dft,[P(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[310]||(e[310]=_=>r.configFile.xtts_top_p=_),onChange:e[311]||(e[311]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[Lft,l("td",null,[l("div",Pft,[P(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[312]||(e[312]=_=>r.configFile.xtts_speed=_),onChange:e[313]||(e[313]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[pe,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[Uft,l("td",null,[l("div",Fft,[P(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[314]||(e[314]=_=>r.configFile.enable_text_splitting=_),onChange:e[315]||(e[315]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_text_splitting]])])])])])]),_:1}),V(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Bft,[l("tr",null,[Gft,l("td",null,[l("div",Vft,[P(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[316]||(e[316]=_=>r.configFile.openai_tts_key=_),onChange:e[317]||(e[317]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.openai_tts_key]])])])]),l("tr",null,[zft,l("td",null,[l("div",Hft,[P(l("select",{"onUpdate:modelValue":e[318]||(e[318]=_=>r.configFile.openai_tts_model=_),onChange:e[319]||(e[319]=_=>i.settingsChanged=!0)},Yft,544),[[kt,r.configFile.openai_tts_model]])])])]),l("tr",null,[Wft,l("td",null,[l("div",Kft,[P(l("select",{"onUpdate:modelValue":e[320]||(e[320]=_=>r.configFile.openai_tts_voice=_),onChange:e[321]||(e[321]=_=>i.settingsChanged=!0)},emt,544),[[kt,r.configFile.openai_tts_voice]])])])])])]),_:1}),V(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",tmt,[l("tr",null,[nmt,l("td",null,[l("div",smt,[P(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[322]||(e[322]=_=>r.configFile.elevenlabs_tts_key=_),onChange:e[323]||(e[323]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[imt,l("td",null,[l("div",rmt,[P(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[324]||(e[324]=_=>r.configFile.elevenlabs_tts_model_id=_),onChange:e[325]||(e[325]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[omt,l("td",null,[l("div",amt,[P(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[326]||(e[326]=_=>r.configFile.elevenlabs_tts_voice_stability=_),onChange:e[327]||(e[327]=_=>i.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),[[pe,r.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[lmt,l("td",null,[l("div",cmt,[P(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[328]||(e[328]=_=>r.configFile.elevenlabs_tts_voice_boost=_),onChange:e[329]||(e[329]=_=>i.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),[[pe,r.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[dmt,l("td",null,[l("div",umt,[P(l("select",{"onUpdate:modelValue":e[330]||(e[330]=_=>r.configFile.elevenlabs_tts_voice_id=_),onChange:e[331]||(e[331]=_=>i.settingsChanged=!0)},[(T(!0),w(Pe,null,Ke(i.voices,_=>(T(),w("option",{key:_.voice_id,value:_.voice_id},K(_.name),9,pmt))),128))],544),[[kt,r.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1})]),_:1}),V(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",_mt,[l("tr",null,[hmt,l("td",null,[l("div",fmt,[P(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[332]||(e[332]=_=>r.configFile.enable_sd_service=_),onChange:e[333]||(e[333]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[334]||(e[334]=_=>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"))},gmt)])]),l("tr",null,[bmt,l("td",null,[l("div",Emt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[335]||(e[335]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"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[336]||(e[336]=(..._)=>r.upgradeSDService&&r.upgradeSDService(..._))},"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[337]||(e[337]=(..._)=>r.startSDService&&r.startSDService(..._))},"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[338]||(e[338]=(..._)=>r.showSD&&r.showSD(..._))},"show sd ui"),ymt])]),l("td",null,[l("div",vmt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[339]||(e[339]=(..._)=>r.reinstallSDService&&r.reinstallSDService(..._))},"install sd service")])])]),l("tr",null,[Smt,l("td",null,[l("div",Tmt,[P(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[340]||(e[340]=_=>r.configFile.sd_base_url=_),onChange:e[341]||(e[341]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.sd_base_url]])])])])])]),_:1}),V(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",xmt,[l("tr",null,[Cmt,l("td",null,[l("div",wmt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[342]||(e[342]=(..._)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(..._))},"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[343]||(e[343]=(..._)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(..._))},"upgrade diffusers service"),Rmt])])]),l("tr",null,[Amt,l("td",null,[l("div",Nmt,[P(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[344]||(e[344]=_=>r.configFile.diffusers_model=_),onChange:e[345]||(e[345]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.diffusers_model]])])]),Omt])])]),_:1}),V(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Mmt,[l("tr",null,[Imt,l("td",null,[l("div",kmt,[P(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[346]||(e[346]=_=>r.configFile.midjourney_key=_),onChange:e[347]||(e[347]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_key]])])])]),l("tr",null,[Dmt,l("td",null,[l("div",Lmt,[P(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[348]||(e[348]=_=>r.configFile.midjourney_timeout=_),onChange:e[349]||(e[349]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_timeout]])])])]),l("tr",null,[Pmt,l("td",null,[l("div",Umt,[P(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[350]||(e[350]=_=>r.configFile.midjourney_retries=_),onChange:e[351]||(e[351]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.midjourney_retries]])])])])])]),_:1}),V(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Fmt,[l("tr",null,[Bmt,l("td",null,[l("div",Gmt,[P(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[352]||(e[352]=_=>r.configFile.dall_e_key=_),onChange:e[353]||(e[353]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.dall_e_key]])])])]),l("tr",null,[Vmt,l("td",null,[l("div",zmt,[P(l("select",{"onUpdate:modelValue":e[354]||(e[354]=_=>r.configFile.dall_e_generation_engine=_),onChange:e[355]||(e[355]=_=>i.settingsChanged=!0)},$mt,544),[[kt,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),V(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ymt,[l("tr",null,[Wmt,l("td",null,[l("div",Kmt,[P(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[356]||(e[356]=_=>r.configFile.enable_comfyui_service=_),onChange:e[357]||(e[357]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[358]||(e[358]=_=>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"))},Qmt)])]),l("tr",null,[Xmt,l("td",null,[l("div",Zmt,[P(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[359]||(e[359]=_=>r.configFile.comfyui_model=_),onChange:e[360]||(e[360]=_=>i.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Pe,null,Ke(i.comfyui_models,(_,g)=>(T(),w("option",{key:_,value:_},K(_),9,Jmt))),128))],544),[[kt,r.configFile.comfyui_model]])])])]),l("tr",null,[egt,l("td",null,[l("div",tgt,[P(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[361]||(e[361]=_=>r.configFile.comfyui_model=_),onChange:e[362]||(e[362]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[363]||(e[363]=_=>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"))},sgt)])]),l("tr",null,[igt,l("td",null,[l("div",rgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[364]||(e[364]=(..._)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(..._))},"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[365]||(e[365]=(..._)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(..._))},"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[366]||(e[366]=(..._)=>r.startComfyUIService&&r.startComfyUIService(..._))},"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[367]||(e[367]=(..._)=>r.showComfyui&&r.showComfyui(..._))},"show comfyui"),ogt])])]),l("tr",null,[agt,l("td",null,[l("div",lgt,[P(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[368]||(e[368]=_=>r.configFile.comfyui_base_url=_),onChange:e[369]||(e[369]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),V(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",cgt,[l("tr",null,[dgt,l("td",null,[l("div",ugt,[P(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[370]||(e[370]=_=>r.configFile.enable_ollama_service=_),onChange:e[371]||(e[371]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[372]||(e[372]=_=>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`))},agt)])]),l("tr",null,[lgt,l("td",null,[l("div",cgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[371]||(e[371]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"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[372]||(e[372]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),l("tr",null,[dgt,l("td",null,[l("div",ugt,[P(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[373]||(e[373]=_=>r.configFile.ollama_base_url=_),onChange:e[374]||(e[374]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.ollama_base_url]])])])])])]),_:1}),V(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",pgt,[l("tr",null,[_gt,l("td",null,[l("div",hgt,[P(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[375]||(e[375]=_=>r.configFile.enable_vllm_service=_),onChange:e[376]||(e[376]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[377]||(e[377]=_=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding. +Here is how you can do that`))},_gt)])]),l("tr",null,[hgt,l("td",null,[l("div",fgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[373]||(e[373]=(..._)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(..._))},"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[374]||(e[374]=(..._)=>r.startollamaService&&r.startollamaService(..._))},"start ollama service")])])]),l("tr",null,[mgt,l("td",null,[l("div",ggt,[P(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[375]||(e[375]=_=>r.configFile.ollama_base_url=_),onChange:e[376]||(e[376]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.ollama_base_url]])])])])])]),_:1}),V(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",bgt,[l("tr",null,[Egt,l("td",null,[l("div",ygt,[P(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[377]||(e[377]=_=>r.configFile.enable_vllm_service=_),onChange:e[378]||(e[378]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[379]||(e[379]=_=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf 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`))},mgt)])]),l("tr",null,[ggt,l("td",null,[l("div",bgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[378]||(e[378]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[379]||(e[379]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),l("tr",null,[Egt,l("td",null,[l("div",ygt,[P(l("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[380]||(e[380]=_=>r.configFile.vllm_url=_),onChange:e[381]||(e[381]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_url]])])])]),l("tr",null,[vgt,l("td",null,[l("div",Sgt,[l("div",Tgt,[xgt,l("p",Cgt,[P(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[382]||(e[382]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[383]||(e[383]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.vllm_gpu_memory_utilization]])])]),P(l("input",{id:"vllm_gpu_memory_utilization",onChange:e[384]||(e[384]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[385]||(e[385]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",max:"1",step:"0.01",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),[[pe,r.configFile.vllm_gpu_memory_utilization]])])])]),l("tr",null,[wgt,l("td",null,[l("div",Rgt,[P(l("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[386]||(e[386]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[387]||(e[387]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_max_num_seqs]])])])]),l("tr",null,[Agt,l("td",null,[l("div",Ngt,[P(l("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[388]||(e[388]=_=>r.configFile.vllm_max_model_len=_),onChange:e[389]||(e[389]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_max_model_len]])])])]),l("tr",null,[Ogt,l("td",null,[l("div",Mgt,[P(l("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[390]||(e[390]=_=>r.configFile.vllm_model_path=_),onChange:e[391]||(e[391]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_model_path]])])])])])]),_:1}),V(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Igt,[l("tr",null,[kgt,l("td",null,[l("div",Dgt,[P(l("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[392]||(e[392]=_=>r.configFile.enable_petals_service=_),onChange:e[393]||(e[393]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_petals_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[394]||(e[394]=_=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. +Here is how you can do that`))},Sgt)])]),l("tr",null,[Tgt,l("td",null,[l("div",xgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[380]||(e[380]=(..._)=>r.reinstallvLLMService&&r.reinstallvLLMService(..._))},"install vLLM service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[381]||(e[381]=(..._)=>r.startvLLMService&&r.startvLLMService(..._))},"start vllm service")])])]),l("tr",null,[Cgt,l("td",null,[l("div",wgt,[P(l("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[382]||(e[382]=_=>r.configFile.vllm_url=_),onChange:e[383]||(e[383]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_url]])])])]),l("tr",null,[Rgt,l("td",null,[l("div",Agt,[l("div",Ngt,[Ogt,l("p",Mgt,[P(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[384]||(e[384]=_=>r.configFile.vllm_gpu_memory_utilization=_),onChange:e[385]||(e[385]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.vllm_gpu_memory_utilization]])])]),P(l("input",{id:"vllm_gpu_memory_utilization",onChange:e[386]||(e[386]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[387]||(e[387]=_=>r.configFile.vllm_gpu_memory_utilization=_),min:"0.10",max:"1",step:"0.01",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),[[pe,r.configFile.vllm_gpu_memory_utilization]])])])]),l("tr",null,[Igt,l("td",null,[l("div",kgt,[P(l("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[388]||(e[388]=_=>r.configFile.vllm_max_num_seqs=_),onChange:e[389]||(e[389]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_max_num_seqs]])])])]),l("tr",null,[Dgt,l("td",null,[l("div",Lgt,[P(l("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[390]||(e[390]=_=>r.configFile.vllm_max_model_len=_),onChange:e[391]||(e[391]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_max_model_len]])])])]),l("tr",null,[Pgt,l("td",null,[l("div",Ugt,[P(l("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[392]||(e[392]=_=>r.configFile.vllm_model_path=_),onChange:e[393]||(e[393]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.vllm_model_path]])])])])])]),_:1}),V(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Fgt,[l("tr",null,[Bgt,l("td",null,[l("div",Ggt,[P(l("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[394]||(e[394]=_=>r.configFile.enable_petals_service=_),onChange:e[395]||(e[395]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_petals_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[396]||(e[396]=_=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},Pgt)])]),l("tr",null,[Ugt,l("td",null,[l("div",Fgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[395]||(e[395]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),l("tr",null,[Bgt,l("td",null,[l("div",Ggt,[P(l("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[396]||(e[396]=_=>r.configFile.petals_base_url=_),onChange:e[397]||(e[397]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),V(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Motion Ctrl service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Vgt,[l("tr",null,[zgt,l("td",null,[l("div",Hgt,[P(l("input",{type:"checkbox",id:"enable_motion_ctrl_service",required:"","onUpdate:modelValue":e[398]||(e[398]=_=>r.configFile.enable_motion_ctrl_service=_),onChange:e[399]||(e[399]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.enable_motion_ctrl_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[400]||(e[400]=_=>this.$store.state.messageBox.showMessage("Activates Motion ctrl service. The service will be automatically loaded at startup alowing you to use the motoin control endpoint to generate videos"))},$gt)])]),l("tr",null,[Ygt,l("td",null,[l("div",Wgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[401]||(e[401]=(..._)=>r.reinstallMotionCtrlService&&r.reinstallMotionCtrlService(..._))},"install Motion Ctrl service")])])]),l("tr",null,[Kgt,l("td",null,[l("div",jgt,[P(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[402]||(e[402]=_=>r.configFile.sd_base_url=_),onChange:e[403]||(e[403]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.sd_base_url]])])])])])]),_:1}),V(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Qgt,[l("tr",null,[Xgt,l("td",null,[l("div",Zgt,[P(l("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[404]||(e[404]=_=>r.configFile.elastic_search_service=_),onChange:e[405]||(e[405]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.elastic_search_service]])])])]),l("tr",null,[Jgt,l("td",null,[l("div",ebt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[406]||(e[406]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),l("tr",null,[tbt,l("td",null,[l("div",nbt,[P(l("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[407]||(e[407]=_=>r.configFile.elastic_search_url=_),onChange:e[408]||(e[408]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),l("div",sbt,[l("div",ibt,[l("button",{onClick:e[409]||(e[409]=j(_=>i.bzc_collapsed=!i.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,obt,512),[[wt,i.bzc_collapsed]]),P(l("div",null,lbt,512),[[wt,!i.bzc_collapsed]]),cbt,r.configFile.binding_name?G("",!0):(T(),w("div",dbt,[ubt,et(" No binding selected! ")])),r.configFile.binding_name?(T(),w("div",pbt,"|")):G("",!0),r.configFile.binding_name?(T(),w("div",_bt,[l("div",hbt,[l("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,fbt),l("h3",mbt,K(r.binding_name),1)])])):G("",!0)])]),l("div",{class:Ge([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(T(),w("div",gbt,[l("label",bbt," Bindings: ("+K(r.bindingsZoo.length)+") ",1),l("div",{class:Ge(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.bzl_collapsed?"":"max-h-96"])},[V(ii,{name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.bindingsZoo,(_,g)=>(T(),dt(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+g+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):G("",!0),i.bzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[410]||(e[410]=_=>i.bzl_collapsed=!i.bzl_collapsed)},ybt)):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[411]||(e[411]=_=>i.bzl_collapsed=!i.bzl_collapsed)},Sbt))],2)]),l("div",Tbt,[l("div",xbt,[l("button",{onClick:e[412]||(e[412]=j(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[P(l("div",null,wbt,512),[[wt,i.mzc_collapsed]]),P(l("div",null,Abt,512),[[wt,!i.mzc_collapsed]]),Nbt,l("div",Obt,[r.configFile.binding_name?G("",!0):(T(),w("div",Mbt,[Ibt,et(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(T(),w("div",kbt,[Dbt,et(" No model selected! ")])):G("",!0),r.configFile.model_name?(T(),w("div",Lbt,"|")):G("",!0),r.configFile.model_name?(T(),w("div",Pbt,[l("div",Ubt,[l("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Fbt),l("h3",Bbt,K(r.configFile.model_name),1)])])):G("",!0)])])]),l("div",{class:Ge([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Gbt,[l("div",Vbt,[l("div",zbt,[i.searchModelInProgress?(T(),w("div",Hbt,$bt)):G("",!0),i.searchModelInProgress?G("",!0):(T(),w("div",Ybt,Kbt))]),P(l("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search models...",required:"","onUpdate:modelValue":e[413]||(e[413]=_=>i.searchModel=_),onKeyup:e[414]||(e[414]=Vs((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[pe,i.searchModel]]),i.searchModel?(T(),w("button",{key:0,onClick:e[415]||(e[415]=j(_=>i.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):G("",!0)])]),l("div",null,[P(l("input",{"onUpdate:modelValue":e[416]||(e[416]=_=>i.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[$e,i.show_only_installed_models]]),jbt]),l("div",null,[V(d,{radioOptions:i.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Qbt,i.is_loading_zoo?(T(),w("div",Xbt,eEt)):G("",!0),i.models_zoo&&i.models_zoo.length>0?(T(),w("div",tEt,[l("label",nEt," Models: ("+K(i.models_zoo.length)+") ",1),l("div",{class:Ge(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full 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",i.mzl_collapsed?"":"max-h-96"])},[V(ii,{name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.rendered_models_zoo,(_,g)=>(T(),dt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+g+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),l("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[417]||(e[417]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):G("",!0),i.mzl_collapsed?(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[418]||(e[418]=(..._)=>r.open_mzl&&r.open_mzl(..._))},iEt)):(T(),w("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[419]||(e[419]=(..._)=>r.open_mzl&&r.open_mzl(..._))},oEt)),l("div",aEt,[l("div",lEt,[l("div",null,[l("div",cEt,[dEt,P(l("input",{type:"text","onUpdate:modelValue":e[420]||(e[420]=_=>i.reference_path=_),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 Path ...",required:""},null,512),[[pe,i.reference_path]])]),l("button",{type:"button",onClick:e[421]||(e[421]=j(_=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?G("",!0):(T(),w("div",uEt,[l("div",pEt,[_Et,P(l("input",{type:"text","onUpdate:modelValue":e[422]||(e[422]=_=>i.addModel.url=_),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 URL ...",required:""},null,512),[[pe,i.addModel.url]])]),l("button",{type:"button",onClick:e[423]||(e[423]=j(_=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(T(),w("div",hEt,[fEt,l("div",mEt,[l("div",gEt,[l("div",bEt,[EEt,l("span",yEt,K(Math.floor(i.addModel.progress))+"%",1)]),l("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},K(i.addModel.url),9,vEt),l("div",SEt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht({width:i.addModel.progress+"%"})},null,4)]),l("div",TEt,[l("span",xEt,"Download speed: "+K(r.speed_computed)+"/s",1),l("span",CEt,K(r.downloaded_size_computed)+"/"+K(r.total_size_computed),1)])])]),l("div",wEt,[l("div",REt,[l("div",AEt,[l("button",{onClick:e[424]||(e[424]=j((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["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 ")])])])])):G("",!0)])])],2)]),l("div",NEt,[l("div",OEt,[l("button",{onClick:e[427]||(e[427]=j(_=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[P(l("div",null,IEt,512),[[wt,i.pzc_collapsed]]),P(l("div",null,DEt,512),[[wt,!i.pzc_collapsed]]),LEt,r.configFile.personalities?(T(),w("div",PEt,"|")):G("",!0),l("div",UEt,K(r.active_pesonality),1),r.configFile.personalities?(T(),w("div",FEt,"|")):G("",!0),r.configFile.personalities?(T(),w("div",BEt,[r.mountedPersArr.length>0?(T(),w("div",GEt,[(T(!0),w(Pe,null,Ke(r.mountedPersArr,(_,g)=>(T(),w("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:g+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[l("div",VEt,[l("button",{onClick:j(b=>r.onPersonalitySelected(_),["stop"])},[l("img",{src:i.bUrl+_.avatar,onError:e[425]||(e[425]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:Ge(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,HEt)],8,zEt),l("button",{onClick:j(b=>r.unmountPersonality(_),["stop"])},YEt,8,qEt)])]))),128))])):G("",!0)])):G("",!0),l("button",{onClick:e[426]||(e[426]=j(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},KEt)])]),l("div",{class:Ge([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",jEt,[QEt,l("div",XEt,[l("div",ZEt,[i.searchPersonalityInProgress?(T(),w("div",JEt,tyt)):G("",!0),i.searchPersonalityInProgress?G("",!0):(T(),w("div",nyt,iyt))]),P(l("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[428]||(e[428]=_=>i.searchPersonality=_),onKeyup:e[429]||(e[429]=j((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[pe,i.searchPersonality]]),i.searchPersonality?(T(),w("button",{key:0,onClick:e[430]||(e[430]=j(_=>i.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):G("",!0)])]),i.searchPersonality?G("",!0):(T(),w("div",ryt,[l("label",oyt," Personalities Category: ("+K(i.persCatgArr.length)+") ",1),l("select",{id:"persCat",onChange:e[431]||(e[431]=_=>r.update_personality_category(_.target.value,r.refresh)),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),w(Pe,null,Ke(i.persCatgArr,(_,g)=>(T(),w("option",{key:g,selected:_==this.configFile.personality_category},K(_),9,ayt))),128))],32)])),l("div",null,[i.personalitiesFiltered.length>0?(T(),w("div",lyt,[l("label",cyt,K(i.searchPersonality?"Search results":"Personalities")+": ("+K(i.personalitiesFiltered.length)+") ",1),l("div",{class:Ge(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.pzl_collapsed?"":"max-h-96"])},[V(ii,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.personalitiesFiltered,(_,g)=>(T(),dt(h,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+g+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===_.full_path||b===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},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"]))),128))]),_:1})],2)])):G("",!0)]),i.pzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[432]||(e[432]=_=>i.pzl_collapsed=!i.pzl_collapsed)},uyt)):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[433]||(e[433]=_=>i.pzl_collapsed=!i.pzl_collapsed)},_yt))],2)]),l("div",hyt,[l("div",fyt,[l("button",{onClick:e[434]||(e[434]=j(_=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[P(l("div",null,gyt,512),[[wt,i.mc_collapsed]]),P(l("div",null,Eyt,512),[[wt,!i.mc_collapsed]]),yyt])]),l("div",{class:Ge([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[l("div",vyt,[l("div",Syt,[P(l("input",{id:"override-model-parameters",type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[435]||(e[435]=j(()=>{},["stop"])),"onUpdate:modelValue":e[436]||(e[436]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[437]||(e[437]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[$e,r.configFile.override_personality_model_parameters]]),Tyt])]),l("div",{class:Ge(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[l("div",xyt,[Cyt,P(l("input",{type:"text",id:"seed","onUpdate:modelValue":e[438]||(e[438]=_=>r.configFile.seed=_),class:"bg-gray-50 border border-gray-300 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:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[pe,r.configFile.seed]])]),l("div",wyt,[l("div",Ryt,[l("div",Ayt,[Nyt,l("p",Oyt,[P(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[439]||(e[439]=_=>r.configFile.temperature=_),onChange:e[440]||(e[440]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.temperature]])])]),P(l("input",{id:"temperature",onChange:e[441]||(e[441]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[442]||(e[442]=_=>r.configFile.temperature=_),min:"0",max:"5",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),[[pe,r.configFile.temperature]])])]),l("div",Myt,[l("div",Iyt,[l("div",kyt,[Dyt,l("p",Lyt,[P(l("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[443]||(e[443]=_=>r.configFile.n_predict=_),onChange:e[444]||(e[444]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.n_predict]])])]),P(l("input",{id:"predict",type:"range",onChange:e[445]||(e[445]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[446]||(e[446]=_=>r.configFile.n_predict=_),min:"0",max:"2048",step:"32",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),[[pe,r.configFile.n_predict]])])]),l("div",Pyt,[l("div",Uyt,[l("div",Fyt,[Byt,l("p",Gyt,[P(l("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[447]||(e[447]=_=>r.configFile.top_k=_),onChange:e[448]||(e[448]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.top_k]])])]),P(l("input",{id:"top_k",type:"range",onChange:e[449]||(e[449]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[450]||(e[450]=_=>r.configFile.top_k=_),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),[[pe,r.configFile.top_k]])])]),l("div",Vyt,[l("div",zyt,[l("div",Hyt,[qyt,l("p",$yt,[P(l("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[451]||(e[451]=_=>r.configFile.top_p=_),onChange:e[452]||(e[452]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.top_p]])])]),P(l("input",{id:"top_p",type:"range","onUpdate:modelValue":e[453]||(e[453]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[454]||(e[454]=_=>i.settingsChanged=!0),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),[[pe,r.configFile.top_p]])])]),l("div",Yyt,[l("div",Wyt,[l("div",Kyt,[jyt,l("p",Qyt,[P(l("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[455]||(e[455]=_=>r.configFile.repeat_penalty=_),onChange:e[456]||(e[456]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.repeat_penalty]])])]),P(l("input",{id:"repeat_penalty",onChange:e[457]||(e[457]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[458]||(e[458]=_=>r.configFile.repeat_penalty=_),min:"0",max:"2",step:"0.01",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),[[pe,r.configFile.repeat_penalty]])])]),l("div",Xyt,[l("div",Zyt,[l("div",Jyt,[evt,l("p",tvt,[P(l("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[459]||(e[459]=_=>r.configFile.repeat_last_n=_),onChange:e[460]||(e[460]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.repeat_last_n]])])]),P(l("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[461]||(e[461]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[462]||(e[462]=_=>i.settingsChanged=!0),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),[[pe,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),V(f,{ref:"addmodeldialog"},null,512),V(m,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const svt=ot(mat,[["render",nvt],["__scopeId","data-v-631a8340"]]),ivt={components:{ClipBoardTextInput:gE,Card:ju},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};ae.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},rvt={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},ovt={class:"mb-4"},avt=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),lvt=["value"],cvt={class:"mb-4"},dvt=l("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),uvt={class:"mb-4"},pvt=l("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),_vt={class:"mb-4"},hvt=l("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),fvt={class:"mb-4"},mvt=l("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),gvt={class:"mb-4"},bvt=l("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Evt={class:"mb-4"},yvt=l("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),vvt=l("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Svt={key:1};function Tvt(t,e,n,s,i,r){const o=tt("Card"),a=tt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(T(),w("div",rvt,[l("form",{onSubmit:e[2]||(e[2]=j((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:""},[V(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[V(o,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",ovt,[avt,P(l("select",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedModel=c),onChange:e[1]||(e[1]=(...c)=>t.setModel&&t.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(r.models,c=>(T(),w("option",{key:c,value:c},K(c),9,lvt))),128))],544),[[Dt,r.selectedModel]])])]),_:1}),V(o,{title:"Data",isHorizontal:!1},{default:Ie(()=>[l("div",cvt,[dvt,V(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),V(o,{title:"Training",isHorizontal:!1},{default:Ie(()=>[l("div",uvt,[pvt,V(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),l("div",_vt,[hvt,V(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),l("div",fvt,[mvt,V(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),l("div",gvt,[bvt,V(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),V(o,{title:"Output",isHorizontal:!1},{default:Ie(()=>[l("div",Evt,[yvt,V(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),V(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[vvt]),_:1})],32)])):(T(),w("div",Svt,[V(o,{title:"Info",class:"",isHorizontal:!1},{default:Ie(()=>[et(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const xvt=ot(ivt,[["render",Tvt]]),Cvt={components:{ClipBoardTextInput:gE,Card:ju},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},wvt={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Rvt={class:"mb-4"},Avt=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Nvt={class:"mb-4"},Ovt=l("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Mvt=l("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Ivt(t,e,n,s,i,r){const o=tt("ClipBoardTextInput"),a=tt("Card");return T(),w("div",wvt,[l("form",{onSubmit:e[0]||(e[0]=j((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:"max-w-md mx-auto"},[V(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[V(a,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",Rvt,[Avt,V(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),l("div",Nvt,[Ovt,V(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),V(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[Mvt]),_:1})],32)])}const kvt=ot(Cvt,[["render",Ivt]]),Dvt={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Le(()=>{ze.replace()})},watch:{showConfirmation(){Le(()=>{ze.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Le(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Le(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Lvt=["id"],Pvt={class:"flex flex-row items-center gap-2"},Uvt={key:0},Fvt={class:"flex flex-row items-center w-full"},Bvt=["title"],Gvt=["value"],Vvt={class:"flex items-center flex-1 max-h-6"},zvt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},Hvt=l("i",{"data-feather":"x"},null,-1),qvt=[Hvt],$vt=l("i",{"data-feather":"check"},null,-1),Yvt=[$vt],Wvt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},Kvt=l("i",{"data-feather":"folder"},null,-1),jvt=[Kvt],Qvt=l("i",{"data-feather":"type"},null,-1),Xvt=[Qvt],Zvt=l("i",{"data-feather":"edit-2"},null,-1),Jvt=[Zvt],eSt=l("i",{"data-feather":"trash"},null,-1),tSt=[eSt];function nSt(t,e,n,s,i,r){return T(),w("div",{class:Ge([n.selected?"discussion-hilighted shadow-md min-w-[23rem] max-w-[23rem]":"discussion min-w-[23rem] max-w-[23rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm hover:shadow-md rounded-md duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=j(o=>r.selectEvent(),["stop"]))},[l("div",Pvt,[n.isCheckbox?(T(),w("div",Uvt,[P(l("input",{type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=j(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,n.id))},null,544),[[$e,i.checkBoxValue_local]])])):G("",!0),n.selected?(T(),w("div",{key:1,class:Ge(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):G("",!0),n.selected?G("",!0):(T(),w("div",{key:2,class:Ge(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),l("div",Fvt,[i.editTitle?G("",!0):(T(),w("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},K(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,Bvt)),i.editTitle?(T(),w("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Vs(j(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Vs(j(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=j(()=>{},["stop"]))},null,40,Gvt)):G("",!0),l("div",Vvt,[i.showConfirmation?(T(),w("div",zvt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=j(o=>r.cancel(),["stop"]))},qvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=j(o=>i.editTitleMode?r.editTitleEvent():i.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},Yvt)])):G("",!0),i.showConfirmation?G("",!0):(T(),w("div",Wvt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=j(o=>r.openFolderEvent(),["stop"]))},jvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=j(o=>i.makeTitleMode=!0,["stop"]))},Xvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=j(o=>i.editTitleMode=!0,["stop"]))},Jvt),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=j(o=>i.deleteMode=!0,["stop"]))},tSt)]))])])],10,Lvt)}const OE=ot(Dvt,[["render",nSt]]),sSt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(t){this.prompt=t}}},iSt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},rSt={class:"bg-white p-8 rounded"},oSt={class:"text-xl font-bold mb-4"};function aSt(t,e,n,s,i,r){return T(),w("div",null,[i.show?(T(),w("div",iSt,[l("div",rSt,[l("h2",oSt,K(n.promptText),1),P(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>i.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[pe,i.inputText]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),l("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):G("",!0)])}const aN=ot(sSt,[["render",aSt]]),lSt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:OE,MarkdownRenderer:Yu},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){ae.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(t=>{this.categories=t.data.categories}).catch(t=>{console.error("Error fetching categories:",t)})},fetchTitles(){console.log("Fetching categories"),ae.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(t=>{this.titles=t.data.titles,console.log("titles recovered")}).catch(t=>{console.error("Error fetching titles:",t)})},fetchContent(t){ae.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:t}).then(e=>{const n=e.data.contents[0];this.id=n.id,this.content=n.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(t){console.log("Delete category")},editCategory(t){console.log("Edit category")},checkUncheckCategory(t){console.log("Unchecked category")},deleteSkill(t){console.log("Delete skill ",t),ae.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:t}).then(()=>{this.fetchTitles()})},editTitle(t){ae.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:t,title:t}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(t){console.log("Make title")},checkUncheckTitle(t){},searchSkills(){}}},cSt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},dSt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},uSt={class:"search p-4"},pSt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},_St=l("h2",{class:"text-xl font-bold m-4"},"Titles",-1),hSt={class:"z-0 flex flex-col flex-grow 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"},fSt=l("h2",{class:"text-xl font-bold m-4"},"Content",-1);function mSt(t,e,n,s,i,r){const o=tt("Discussion"),a=tt("MarkdownRenderer");return T(),w("div",{class:Ge([{hidden:!i.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[l("div",cSt,[l("div",dSt,[l("div",uSt,[P(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=c=>i.searchQuery=c),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[pe,i.searchQuery]]),l("button",{onClick:e[1]||(e[1]=(...c)=>r.searchSkills&&r.searchSkills(...c)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),l("div",pSt,[_St,i.titles.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.titles,c=>(T(),dt(o,{key:c.id,id:c.id,title:c.title,selected:r.fetchContent(c.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,onSelect:d=>r.fetchContent(c.id),onDelete:d=>r.deleteSkill(c.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):G("",!0)])]),l("div",hSt,[fSt,V(a,{host:n.host,"markdown-text":i.content,message_id:i.id,discussion_id:i.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),l("button",{onClick:e[2]||(e[2]=(...c)=>r.closeComponent&&r.closeComponent(...c)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const lN=ot(lSt,[["render",mSt]]),gSt={props:{htmlContent:{type:String,required:!0}}},bSt=["innerHTML"];function ESt(t,e,n,s,i,r){return T(),w("div",{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:n.htmlContent},null,8,bSt)}const ySt=ot(gSt,[["render",ESt]]);const vSt={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},isArray(t){return Array.isArray(t)},toggleCollapse(t){this.collapsedKeys.has(t)?this.collapsedKeys.delete(t):this.collapsedKeys.add(t)},isCollapsed(t){return this.collapsedKeys.has(t)},getValueType(t){return typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":t===null?"null":""},formatValue(t){return typeof t=="string"?`"${t}"`:String(t)}}},SSt={class:"json-tree-view"},TSt=["onClick"],xSt={key:0,class:"toggle-icon"},CSt={class:"key"},wSt={key:0,class:"json-nested"};function RSt(t,e,n,s,i,r){const o=tt("json-tree-view",!0);return T(),w("div",SSt,[(T(!0),w(Pe,null,Ke(n.data,(a,c)=>(T(),w("div",{key:c,class:"json-item"},[l("div",{class:"json-key",onClick:d=>r.toggleCollapse(c)},[r.isObject(a)||r.isArray(a)?(T(),w("span",xSt,[l("i",{class:Ge(r.isCollapsed(c)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):G("",!0),l("span",CSt,K(c)+":",1),!r.isObject(a)&&!r.isArray(a)?(T(),w("span",{key:1,class:Ge(["value",r.getValueType(a)])},K(r.formatValue(a)),3)):G("",!0)],8,TSt),(r.isObject(a)||r.isArray(a))&&!r.isCollapsed(c)?(T(),w("div",wSt,[V(o,{data:a,depth:n.depth+1},null,8,["data","depth"])])):G("",!0)]))),128))])}const ASt=ot(vSt,[["render",RSt],["__scopeId","data-v-40406ec6"]]);const NSt={components:{JsonTreeView:ASt},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(t){return console.error("Error parsing JSON string:",t),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},OSt={key:0,class:"json-viewer"},MSt={class:"toggle-icon"},ISt={class:"json-content panels-color"};function kSt(t,e,n,s,i,r){const o=tt("json-tree-view");return r.isContentPresent?(T(),w("div",OSt,[l("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>r.toggleCollapsible&&r.toggleCollapsible(...a))},[l("span",MSt,[l("i",{class:Ge(i.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),et(" "+K(n.jsonFormText),1)]),P(l("div",ISt,[V(o,{data:r.parsedJsonData,depth:0},null,8,["data"])],512),[[wt,!i.collapsed]])])):G("",!0)}const DSt=ot(NSt,[["render",kSt],["__scopeId","data-v-83fc9727"]]);const LSt={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(t){typeof t!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(t){typeof t!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!t&&console.error("Task completed with errors.")}}},Ju=t=>(Ss("data-v-78f415f6"),t=t(),Ts(),t),PSt={class:"step-container"},USt={class:"step-icon"},FSt={key:0},BSt={key:0},GSt=Ju(()=>l("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)),VSt=[GSt],zSt={key:1},HSt=Ju(()=>l("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)),qSt=[HSt],$St={key:2},YSt=Ju(()=>l("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)),WSt=[YSt],KSt={key:1},jSt=Ju(()=>l("div",{class:"spinner"},null,-1)),QSt=[jSt],XSt={class:"step-content"},ZSt={key:0,class:"step-description"};function JSt(t,e,n,s,i,r){return T(),w("div",PSt,[l("div",{class:Ge(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":n.done&&n.status,"bg-red-100 dark:bg-red-900":n.done&&!n.status,"bg-gray-100 dark:bg-gray-800":!n.done}])},[l("div",USt,[n.step_type==="start_end"?(T(),w("div",FSt,[n.done?n.done&&n.status?(T(),w("div",zSt,qSt)):(T(),w("div",$St,WSt)):(T(),w("div",BSt,VSt))])):G("",!0),n.done?G("",!0):(T(),w("div",KSt,QSt))]),l("div",XSt,[l("h3",{class:Ge(["step-text",{"text-green-600 dark:text-green-400":n.done&&n.status,"text-red-600 dark:text-red-400":n.done&&!n.status,"text-gray-800 dark:text-gray-200":!n.done}])},K(n.text||"No text provided"),3),n.description?(T(),w("p",ZSt,K(n.description||"No description provided"),1)):G("",!0)])],2)])}const e0t=ot(LSt,[["render",JSt],["__scopeId","data-v-78f415f6"]]),t0t="/assets/process-61f7a21b.svg",n0t="/assets/ok-a0b56451.svg",s0t="/assets/failed-183609e7.svg",cN="/assets/send_globe-305330b9.svg";const i0t="/",r0t={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:Yu,Step:e0t,RenderHTMLJS:ySt,JsonViewer:DSt,DynamicUIRenderer:oN,ToolbarButton:bE,DropdownMenu:rN},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:$2,html5_block:Y2,LaTeX_block:W2,json_block:q2,javascript_block:H2,process_svg:t0t,ok_svg:n0t,failed_svg:s0t,loading_svg:j2,sendGlobe:cN,code_block:V2,python_block:z2,bash_block:K2,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Le(()=>{ze.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let t of this.message.metadata)Object.prototype.hasOwnProperty.call(t,"audio_url")&&t.audio_url!=null&&(this.audio_url=t.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(t,e){let n=e.getTime()-t.getTime();const s=Math.floor(n/(1e3*60*60));n-=s*(1e3*60*60);const i=Math.floor(n/(1e3*60));n-=i*(1e3*60);const r=Math.floor(n/1e3);return n-=r*1e3,[s,i,r]},insertTab(t){const e=t.target,n=e.selectionStart,s=e.selectionEnd,i=t.shiftKey;if(n===s)if(i){if(e.value.substring(n-4,n)==" "){const r=e.value.substring(0,n-4),o=e.value.substring(s),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n-4})}}else{const r=e.value.substring(0,n),o=e.value.substring(s),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4})}else{const o=e.value.substring(n,s).split(` +Here is how you can do that`))},zgt)])]),l("tr",null,[Hgt,l("td",null,[l("div",qgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[397]||(e[397]=(..._)=>r.reinstallPetalsService&&r.reinstallPetalsService(..._))},"install petals service")])])]),l("tr",null,[$gt,l("td",null,[l("div",Ygt,[P(l("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[398]||(e[398]=_=>r.configFile.petals_base_url=_),onChange:e[399]||(e[399]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),V(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[V(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wgt,[l("tr",null,[Kgt,l("td",null,[l("div",jgt,[P(l("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[400]||(e[400]=_=>r.configFile.elastic_search_service=_),onChange:e[401]||(e[401]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[$e,r.configFile.elastic_search_service]])])])]),l("tr",null,[Qgt,l("td",null,[l("div",Xgt,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[402]||(e[402]=(..._)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(..._))},"install ElasticSearch service")])])]),l("tr",null,[Zgt,l("td",null,[l("div",Jgt,[P(l("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[403]||(e[403]=_=>r.configFile.elastic_search_url=_),onChange:e[404]||(e[404]=_=>i.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[pe,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),l("div",ebt,[l("div",tbt,[l("button",{onClick:e[405]||(e[405]=j(_=>i.bzc_collapsed=!i.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[P(l("div",null,sbt,512),[[wt,i.bzc_collapsed]]),P(l("div",null,rbt,512),[[wt,!i.bzc_collapsed]]),obt,r.configFile.binding_name?G("",!0):(T(),w("div",abt,[lbt,et(" No binding selected! ")])),r.configFile.binding_name?(T(),w("div",cbt,"|")):G("",!0),r.configFile.binding_name?(T(),w("div",dbt,[l("div",ubt,[l("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,pbt),l("h3",_bt,K(r.binding_name),1)])])):G("",!0)])]),l("div",{class:Ge([{hidden:i.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(T(),w("div",hbt,[l("label",fbt," Bindings: ("+K(r.bindingsZoo.length)+") ",1),l("div",{class:Ge(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.bzl_collapsed?"":"max-h-96"])},[V(ii,{name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.bindingsZoo,(_,g)=>(T(),dt(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+g+"-"+_.folder,binding:_,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:_.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):G("",!0),i.bzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[406]||(e[406]=_=>i.bzl_collapsed=!i.bzl_collapsed)},gbt)):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[407]||(e[407]=_=>i.bzl_collapsed=!i.bzl_collapsed)},Ebt))],2)]),l("div",ybt,[l("div",vbt,[l("button",{onClick:e[408]||(e[408]=j(_=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[P(l("div",null,Tbt,512),[[wt,i.mzc_collapsed]]),P(l("div",null,Cbt,512),[[wt,!i.mzc_collapsed]]),wbt,l("div",Rbt,[r.configFile.binding_name?G("",!0):(T(),w("div",Abt,[Nbt,et(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(T(),w("div",Obt,[Mbt,et(" No model selected! ")])):G("",!0),r.configFile.model_name?(T(),w("div",Ibt,"|")):G("",!0),r.configFile.model_name?(T(),w("div",kbt,[l("div",Dbt,[l("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Lbt),l("h3",Pbt,K(r.configFile.model_name),1)])])):G("",!0)])])]),l("div",{class:Ge([{hidden:i.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Ubt,[l("div",Fbt,[l("div",Bbt,[i.searchModelInProgress?(T(),w("div",Gbt,zbt)):G("",!0),i.searchModelInProgress?G("",!0):(T(),w("div",Hbt,$bt))]),P(l("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search models...",required:"","onUpdate:modelValue":e[409]||(e[409]=_=>i.searchModel=_),onKeyup:e[410]||(e[410]=Vs((..._)=>r.searchModel_func&&r.searchModel_func(..._),["enter"]))},null,544),[[pe,i.searchModel]]),i.searchModel?(T(),w("button",{key:0,onClick:e[411]||(e[411]=j(_=>i.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):G("",!0)])]),l("div",null,[P(l("input",{"onUpdate:modelValue":e[412]||(e[412]=_=>i.show_only_installed_models=_),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[$e,i.show_only_installed_models]]),Ybt]),l("div",null,[V(d,{radioOptions:i.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Wbt,i.is_loading_zoo?(T(),w("div",Kbt,Xbt)):G("",!0),i.models_zoo&&i.models_zoo.length>0?(T(),w("div",Zbt,[l("label",Jbt," Models: ("+K(i.models_zoo.length)+") ",1),l("div",{class:Ge(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full 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",i.mzl_collapsed?"":"max-h-96"])},[V(ii,{name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.rendered_models_zoo,(_,g)=>(T(),dt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+g+"-"+_.name,model:_,"is-installed":_.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:_.name===r.configFile.model_name,model_type:_.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),l("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[413]||(e[413]=(..._)=>r.load_more_models&&r.load_more_models(..._))},"Load more models",512)]),_:1})],2)])):G("",!0),i.mzl_collapsed?(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[414]||(e[414]=(..._)=>r.open_mzl&&r.open_mzl(..._))},tEt)):(T(),w("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[415]||(e[415]=(..._)=>r.open_mzl&&r.open_mzl(..._))},sEt)),l("div",iEt,[l("div",rEt,[l("div",null,[l("div",oEt,[aEt,P(l("input",{type:"text","onUpdate:modelValue":e[416]||(e[416]=_=>i.reference_path=_),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 Path ...",required:""},null,512),[[pe,i.reference_path]])]),l("button",{type:"button",onClick:e[417]||(e[417]=j(_=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),i.modelDownlaodInProgress?G("",!0):(T(),w("div",lEt,[l("div",cEt,[dEt,P(l("input",{type:"text","onUpdate:modelValue":e[418]||(e[418]=_=>i.addModel.url=_),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 URL ...",required:""},null,512),[[pe,i.addModel.url]])]),l("button",{type:"button",onClick:e[419]||(e[419]=j(_=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),i.modelDownlaodInProgress?(T(),w("div",uEt,[pEt,l("div",_Et,[l("div",hEt,[l("div",fEt,[mEt,l("span",gEt,K(Math.floor(i.addModel.progress))+"%",1)]),l("div",{class:"mx-1 opacity-80 line-clamp-1",title:i.addModel.url},K(i.addModel.url),9,bEt),l("div",EEt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Ht({width:i.addModel.progress+"%"})},null,4)]),l("div",yEt,[l("span",vEt,"Download speed: "+K(r.speed_computed)+"/s",1),l("span",SEt,K(r.downloaded_size_computed)+"/"+K(r.total_size_computed),1)])])]),l("div",TEt,[l("div",xEt,[l("div",CEt,[l("button",{onClick:e[420]||(e[420]=j((..._)=>r.onCancelInstall&&r.onCancelInstall(..._),["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 ")])])])])):G("",!0)])])],2)]),l("div",wEt,[l("div",REt,[l("button",{onClick:e[423]||(e[423]=j(_=>i.pzc_collapsed=!i.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[P(l("div",null,NEt,512),[[wt,i.pzc_collapsed]]),P(l("div",null,MEt,512),[[wt,!i.pzc_collapsed]]),IEt,r.configFile.personalities?(T(),w("div",kEt,"|")):G("",!0),l("div",DEt,K(r.active_pesonality),1),r.configFile.personalities?(T(),w("div",LEt,"|")):G("",!0),r.configFile.personalities?(T(),w("div",PEt,[r.mountedPersArr.length>0?(T(),w("div",UEt,[(T(!0),w(Pe,null,Ke(r.mountedPersArr,(_,g)=>(T(),w("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:g+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[l("div",FEt,[l("button",{onClick:j(b=>r.onPersonalitySelected(_),["stop"])},[l("img",{src:i.bUrl+_.avatar,onError:e[421]||(e[421]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:Ge(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,GEt)],8,BEt),l("button",{onClick:j(b=>r.unmountPersonality(_),["stop"])},HEt,8,VEt)])]))),128))])):G("",!0)])):G("",!0),l("button",{onClick:e[422]||(e[422]=j(_=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},$Et)])]),l("div",{class:Ge([{hidden:i.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",YEt,[WEt,l("div",KEt,[l("div",jEt,[i.searchPersonalityInProgress?(T(),w("div",QEt,ZEt)):G("",!0),i.searchPersonalityInProgress?G("",!0):(T(),w("div",JEt,tyt))]),P(l("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 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",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[424]||(e[424]=_=>i.searchPersonality=_),onKeyup:e[425]||(e[425]=j((..._)=>r.searchPersonality_func&&r.searchPersonality_func(..._),["stop"]))},null,544),[[pe,i.searchPersonality]]),i.searchPersonality?(T(),w("button",{key:0,onClick:e[426]||(e[426]=j(_=>i.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):G("",!0)])]),i.searchPersonality?G("",!0):(T(),w("div",nyt,[l("label",syt," Personalities Category: ("+K(i.persCatgArr.length)+") ",1),l("select",{id:"persCat",onChange:e[427]||(e[427]=_=>r.update_personality_category(_.target.value,r.refresh)),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),w(Pe,null,Ke(i.persCatgArr,(_,g)=>(T(),w("option",{key:g,selected:_==this.configFile.personality_category},K(_),9,iyt))),128))],32)])),l("div",null,[i.personalitiesFiltered.length>0?(T(),w("div",ryt,[l("label",oyt,K(i.searchPersonality?"Search results":"Personalities")+": ("+K(i.personalitiesFiltered.length)+") ",1),l("div",{class:Ge(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",i.pzl_collapsed?"":"max-h-96"])},[V(ii,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.personalitiesFiltered,(_,g)=>(T(),dt(h,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+g+"-"+_.name,personality:_,select_language:!0,full_path:_.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===_.full_path||b===_.full_path+":"+_.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},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"]))),128))]),_:1})],2)])):G("",!0)]),i.pzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[428]||(e[428]=_=>i.pzl_collapsed=!i.pzl_collapsed)},lyt)):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[429]||(e[429]=_=>i.pzl_collapsed=!i.pzl_collapsed)},dyt))],2)]),l("div",uyt,[l("div",pyt,[l("button",{onClick:e[430]||(e[430]=j(_=>i.mc_collapsed=!i.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[P(l("div",null,hyt,512),[[wt,i.mc_collapsed]]),P(l("div",null,myt,512),[[wt,!i.mc_collapsed]]),gyt])]),l("div",{class:Ge([{hidden:i.mc_collapsed},"flex flex-col mb-2 p-2"])},[l("div",byt,[l("div",Eyt,[P(l("input",{id:"override-model-parameters",type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[431]||(e[431]=j(()=>{},["stop"])),"onUpdate:modelValue":e[432]||(e[432]=_=>r.configFile.override_personality_model_parameters=_),onChange:e[433]||(e[433]=_=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[$e,r.configFile.override_personality_model_parameters]]),yyt])]),l("div",{class:Ge(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[l("div",vyt,[Syt,P(l("input",{type:"text",id:"seed","onUpdate:modelValue":e[434]||(e[434]=_=>r.configFile.seed=_),class:"bg-gray-50 border border-gray-300 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:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[pe,r.configFile.seed]])]),l("div",Tyt,[l("div",xyt,[l("div",Cyt,[wyt,l("p",Ryt,[P(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[435]||(e[435]=_=>r.configFile.temperature=_),onChange:e[436]||(e[436]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.temperature]])])]),P(l("input",{id:"temperature",onChange:e[437]||(e[437]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[438]||(e[438]=_=>r.configFile.temperature=_),min:"0",max:"5",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),[[pe,r.configFile.temperature]])])]),l("div",Ayt,[l("div",Nyt,[l("div",Oyt,[Myt,l("p",Iyt,[P(l("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[439]||(e[439]=_=>r.configFile.n_predict=_),onChange:e[440]||(e[440]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.n_predict]])])]),P(l("input",{id:"predict",type:"range",onChange:e[441]||(e[441]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[442]||(e[442]=_=>r.configFile.n_predict=_),min:"0",max:"2048",step:"32",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),[[pe,r.configFile.n_predict]])])]),l("div",kyt,[l("div",Dyt,[l("div",Lyt,[Pyt,l("p",Uyt,[P(l("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[443]||(e[443]=_=>r.configFile.top_k=_),onChange:e[444]||(e[444]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.top_k]])])]),P(l("input",{id:"top_k",type:"range",onChange:e[445]||(e[445]=_=>i.settingsChanged=!0),"onUpdate:modelValue":e[446]||(e[446]=_=>r.configFile.top_k=_),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),[[pe,r.configFile.top_k]])])]),l("div",Fyt,[l("div",Byt,[l("div",Gyt,[Vyt,l("p",zyt,[P(l("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[447]||(e[447]=_=>r.configFile.top_p=_),onChange:e[448]||(e[448]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.top_p]])])]),P(l("input",{id:"top_p",type:"range","onUpdate:modelValue":e[449]||(e[449]=_=>r.configFile.top_p=_),min:"0",max:"1",step:"0.01",onChange:e[450]||(e[450]=_=>i.settingsChanged=!0),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),[[pe,r.configFile.top_p]])])]),l("div",Hyt,[l("div",qyt,[l("div",$yt,[Yyt,l("p",Wyt,[P(l("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[451]||(e[451]=_=>r.configFile.repeat_penalty=_),onChange:e[452]||(e[452]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.repeat_penalty]])])]),P(l("input",{id:"repeat_penalty",onChange:e[453]||(e[453]=_=>i.settingsChanged=!0),type:"range","onUpdate:modelValue":e[454]||(e[454]=_=>r.configFile.repeat_penalty=_),min:"0",max:"2",step:"0.01",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),[[pe,r.configFile.repeat_penalty]])])]),l("div",Kyt,[l("div",jyt,[l("div",Qyt,[Xyt,l("p",Zyt,[P(l("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[455]||(e[455]=_=>r.configFile.repeat_last_n=_),onChange:e[456]||(e[456]=_=>i.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[pe,r.configFile.repeat_last_n]])])]),P(l("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[457]||(e[457]=_=>r.configFile.repeat_last_n=_),min:"0",max:"100",step:"1",onChange:e[458]||(e[458]=_=>i.settingsChanged=!0),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),[[pe,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),V(f,{ref:"addmodeldialog"},null,512),V(m,{class:"z-20",show:i.variantSelectionDialogVisible,choices:i.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const evt=ot(mat,[["render",Jyt],["__scopeId","data-v-3d5c8be5"]]),tvt={components:{ClipBoardTextInput:gE,Card:ju},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};ae.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},nvt={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},svt={class:"mb-4"},ivt=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),rvt=["value"],ovt={class:"mb-4"},avt=l("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),lvt={class:"mb-4"},cvt=l("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),dvt={class:"mb-4"},uvt=l("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),pvt={class:"mb-4"},_vt=l("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),hvt={class:"mb-4"},fvt=l("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),mvt={class:"mb-4"},gvt=l("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),bvt=l("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Evt={key:1};function yvt(t,e,n,s,i,r){const o=tt("Card"),a=tt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(T(),w("div",nvt,[l("form",{onSubmit:e[2]||(e[2]=j((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:""},[V(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[V(o,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",svt,[ivt,P(l("select",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedModel=c),onChange:e[1]||(e[1]=(...c)=>t.setModel&&t.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Pe,null,Ke(r.models,c=>(T(),w("option",{key:c,value:c},K(c),9,rvt))),128))],544),[[kt,r.selectedModel]])])]),_:1}),V(o,{title:"Data",isHorizontal:!1},{default:Ie(()=>[l("div",ovt,[avt,V(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),V(o,{title:"Training",isHorizontal:!1},{default:Ie(()=>[l("div",lvt,[cvt,V(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),l("div",dvt,[uvt,V(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),l("div",pvt,[_vt,V(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),l("div",hvt,[fvt,V(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),V(o,{title:"Output",isHorizontal:!1},{default:Ie(()=>[l("div",mvt,[gvt,V(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),V(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[bvt]),_:1})],32)])):(T(),w("div",Evt,[V(o,{title:"Info",class:"",isHorizontal:!1},{default:Ie(()=>[et(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const vvt=ot(tvt,[["render",yvt]]),Svt={components:{ClipBoardTextInput:gE,Card:ju},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Tvt={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},xvt={class:"mb-4"},Cvt=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),wvt={class:"mb-4"},Rvt=l("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Avt=l("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Nvt(t,e,n,s,i,r){const o=tt("ClipBoardTextInput"),a=tt("Card");return T(),w("div",Tvt,[l("form",{onSubmit:e[0]||(e[0]=j((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:"max-w-md mx-auto"},[V(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[V(a,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",xvt,[Cvt,V(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),l("div",wvt,[Rvt,V(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),V(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[Avt]),_:1})],32)])}const Ovt=ot(Svt,[["render",Nvt]]),Mvt={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Le(()=>{ze.replace()})},watch:{showConfirmation(){Le(()=>{ze.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Le(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Le(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Ivt=["id"],kvt={class:"flex flex-row items-center gap-2"},Dvt={key:0},Lvt={class:"flex flex-row items-center w-full"},Pvt=["title"],Uvt=["value"],Fvt={class:"flex items-center flex-1 max-h-6"},Bvt={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},Gvt=l("i",{"data-feather":"x"},null,-1),Vvt=[Gvt],zvt=l("i",{"data-feather":"check"},null,-1),Hvt=[zvt],qvt={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},$vt=l("i",{"data-feather":"folder"},null,-1),Yvt=[$vt],Wvt=l("i",{"data-feather":"type"},null,-1),Kvt=[Wvt],jvt=l("i",{"data-feather":"edit-2"},null,-1),Qvt=[jvt],Xvt=l("i",{"data-feather":"trash"},null,-1),Zvt=[Xvt];function Jvt(t,e,n,s,i,r){return T(),w("div",{class:Ge([n.selected?"discussion-hilighted shadow-md min-w-[23rem] max-w-[23rem]":"discussion min-w-[23rem] max-w-[23rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm hover:shadow-md rounded-md duration-75 group cursor-pointer"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=j(o=>r.selectEvent(),["stop"]))},[l("div",kvt,[n.isCheckbox?(T(),w("div",Dvt,[P(l("input",{type:"checkbox",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-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=j(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,n.id))},null,544),[[$e,i.checkBoxValue_local]])])):G("",!0),n.selected?(T(),w("div",{key:1,class:Ge(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):G("",!0),n.selected?G("",!0):(T(),w("div",{key:2,class:Ge(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),l("div",Lvt,[i.editTitle?G("",!0):(T(),w("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},K(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,Pvt)),i.editTitle?(T(),w("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Vs(j(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Vs(j(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=j(()=>{},["stop"]))},null,40,Uvt)):G("",!0),l("div",Fvt,[i.showConfirmation?(T(),w("div",Bvt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=j(o=>r.cancel(),["stop"]))},Vvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=j(o=>i.editTitleMode?r.editTitleEvent():i.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},Hvt)])):G("",!0),i.showConfirmation?G("",!0):(T(),w("div",qvt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=j(o=>r.openFolderEvent(),["stop"]))},Yvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=j(o=>i.makeTitleMode=!0,["stop"]))},Kvt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=j(o=>i.editTitleMode=!0,["stop"]))},Qvt),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=j(o=>i.deleteMode=!0,["stop"]))},Zvt)]))])])],10,Ivt)}const OE=ot(Mvt,[["render",Jvt]]),eSt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(t){this.prompt=t}}},tSt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},nSt={class:"bg-white p-8 rounded"},sSt={class:"text-xl font-bold mb-4"};function iSt(t,e,n,s,i,r){return T(),w("div",null,[i.show?(T(),w("div",tSt,[l("div",nSt,[l("h2",sSt,K(n.promptText),1),P(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>i.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[pe,i.inputText]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),l("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):G("",!0)])}const aN=ot(eSt,[["render",iSt]]),rSt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:OE,MarkdownRenderer:Yu},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){ae.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(t=>{this.categories=t.data.categories}).catch(t=>{console.error("Error fetching categories:",t)})},fetchTitles(){console.log("Fetching categories"),ae.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(t=>{this.titles=t.data.titles,console.log("titles recovered")}).catch(t=>{console.error("Error fetching titles:",t)})},fetchContent(t){ae.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:t}).then(e=>{const n=e.data.contents[0];this.id=n.id,this.content=n.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(t){console.log("Delete category")},editCategory(t){console.log("Edit category")},checkUncheckCategory(t){console.log("Unchecked category")},deleteSkill(t){console.log("Delete skill ",t),ae.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:t}).then(()=>{this.fetchTitles()})},editTitle(t){ae.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:t,title:t}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(t){console.log("Make title")},checkUncheckTitle(t){},searchSkills(){}}},oSt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},aSt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},lSt={class:"search p-4"},cSt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},dSt=l("h2",{class:"text-xl font-bold m-4"},"Titles",-1),uSt={class:"z-0 flex flex-col flex-grow 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"},pSt=l("h2",{class:"text-xl font-bold m-4"},"Content",-1);function _St(t,e,n,s,i,r){const o=tt("Discussion"),a=tt("MarkdownRenderer");return T(),w("div",{class:Ge([{hidden:!i.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[l("div",oSt,[l("div",aSt,[l("div",lSt,[P(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=c=>i.searchQuery=c),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[pe,i.searchQuery]]),l("button",{onClick:e[1]||(e[1]=(...c)=>r.searchSkills&&r.searchSkills(...c)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),l("div",cSt,[dSt,i.titles.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(i.titles,c=>(T(),dt(o,{key:c.id,id:c.id,title:c.title,selected:r.fetchContent(c.id),loading:i.loading,isCheckbox:i.isCheckbox,checkBoxValue:!1,onSelect:d=>r.fetchContent(c.id),onDelete:d=>r.deleteSkill(c.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):G("",!0)])]),l("div",uSt,[pSt,V(a,{host:n.host,"markdown-text":i.content,message_id:i.id,discussion_id:i.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),l("button",{onClick:e[2]||(e[2]=(...c)=>r.closeComponent&&r.closeComponent(...c)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const lN=ot(rSt,[["render",_St]]),hSt={props:{htmlContent:{type:String,required:!0}}},fSt=["innerHTML"];function mSt(t,e,n,s,i,r){return T(),w("div",{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:n.htmlContent},null,8,fSt)}const gSt=ot(hSt,[["render",mSt]]);const bSt={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},isArray(t){return Array.isArray(t)},toggleCollapse(t){this.collapsedKeys.has(t)?this.collapsedKeys.delete(t):this.collapsedKeys.add(t)},isCollapsed(t){return this.collapsedKeys.has(t)},getValueType(t){return typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":t===null?"null":""},formatValue(t){return typeof t=="string"?`"${t}"`:String(t)}}},ESt={class:"json-tree-view"},ySt=["onClick"],vSt={key:0,class:"toggle-icon"},SSt={class:"key"},TSt={key:0,class:"json-nested"};function xSt(t,e,n,s,i,r){const o=tt("json-tree-view",!0);return T(),w("div",ESt,[(T(!0),w(Pe,null,Ke(n.data,(a,c)=>(T(),w("div",{key:c,class:"json-item"},[l("div",{class:"json-key",onClick:d=>r.toggleCollapse(c)},[r.isObject(a)||r.isArray(a)?(T(),w("span",vSt,[l("i",{class:Ge(r.isCollapsed(c)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):G("",!0),l("span",SSt,K(c)+":",1),!r.isObject(a)&&!r.isArray(a)?(T(),w("span",{key:1,class:Ge(["value",r.getValueType(a)])},K(r.formatValue(a)),3)):G("",!0)],8,ySt),(r.isObject(a)||r.isArray(a))&&!r.isCollapsed(c)?(T(),w("div",TSt,[V(o,{data:a,depth:n.depth+1},null,8,["data","depth"])])):G("",!0)]))),128))])}const CSt=ot(bSt,[["render",xSt],["__scopeId","data-v-40406ec6"]]);const wSt={components:{JsonTreeView:CSt},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(t){return console.error("Error parsing JSON string:",t),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},RSt={key:0,class:"json-viewer"},ASt={class:"toggle-icon"},NSt={class:"json-content panels-color"};function OSt(t,e,n,s,i,r){const o=tt("json-tree-view");return r.isContentPresent?(T(),w("div",RSt,[l("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>r.toggleCollapsible&&r.toggleCollapsible(...a))},[l("span",ASt,[l("i",{class:Ge(i.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),et(" "+K(n.jsonFormText),1)]),P(l("div",NSt,[V(o,{data:r.parsedJsonData,depth:0},null,8,["data"])],512),[[wt,!i.collapsed]])])):G("",!0)}const MSt=ot(wSt,[["render",OSt],["__scopeId","data-v-83fc9727"]]);const ISt={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(t){typeof t!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(t){typeof t!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!t&&console.error("Task completed with errors.")}}},Ju=t=>(Ss("data-v-78f415f6"),t=t(),Ts(),t),kSt={class:"step-container"},DSt={class:"step-icon"},LSt={key:0},PSt={key:0},USt=Ju(()=>l("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)),FSt=[USt],BSt={key:1},GSt=Ju(()=>l("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)),VSt=[GSt],zSt={key:2},HSt=Ju(()=>l("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)),qSt=[HSt],$St={key:1},YSt=Ju(()=>l("div",{class:"spinner"},null,-1)),WSt=[YSt],KSt={class:"step-content"},jSt={key:0,class:"step-description"};function QSt(t,e,n,s,i,r){return T(),w("div",kSt,[l("div",{class:Ge(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":n.done&&n.status,"bg-red-100 dark:bg-red-900":n.done&&!n.status,"bg-gray-100 dark:bg-gray-800":!n.done}])},[l("div",DSt,[n.step_type==="start_end"?(T(),w("div",LSt,[n.done?n.done&&n.status?(T(),w("div",BSt,VSt)):(T(),w("div",zSt,qSt)):(T(),w("div",PSt,FSt))])):G("",!0),n.done?G("",!0):(T(),w("div",$St,WSt))]),l("div",KSt,[l("h3",{class:Ge(["step-text",{"text-green-600 dark:text-green-400":n.done&&n.status,"text-red-600 dark:text-red-400":n.done&&!n.status,"text-gray-800 dark:text-gray-200":!n.done}])},K(n.text||"No text provided"),3),n.description?(T(),w("p",jSt,K(n.description||"No description provided"),1)):G("",!0)])],2)])}const XSt=ot(ISt,[["render",QSt],["__scopeId","data-v-78f415f6"]]),ZSt="/assets/process-61f7a21b.svg",JSt="/assets/ok-a0b56451.svg",e0t="/assets/failed-183609e7.svg",cN="/assets/send_globe-305330b9.svg";const t0t="/",n0t={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:Yu,Step:XSt,RenderHTMLJS:gSt,JsonViewer:MSt,DynamicUIRenderer:oN,ToolbarButton:bE,DropdownMenu:rN},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:$2,html5_block:Y2,LaTeX_block:W2,json_block:q2,javascript_block:H2,process_svg:ZSt,ok_svg:JSt,failed_svg:e0t,loading_svg:j2,sendGlobe:cN,code_block:V2,python_block:z2,bash_block:K2,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Le(()=>{ze.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let t of this.message.metadata)Object.prototype.hasOwnProperty.call(t,"audio_url")&&t.audio_url!=null&&(this.audio_url=t.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(t,e){let n=e.getTime()-t.getTime();const s=Math.floor(n/(1e3*60*60));n-=s*(1e3*60*60);const i=Math.floor(n/(1e3*60));n-=i*(1e3*60);const r=Math.floor(n/1e3);return n-=r*1e3,[s,i,r]},insertTab(t){const e=t.target,n=e.selectionStart,s=e.selectionEnd,i=t.shiftKey;if(n===s)if(i){if(e.value.substring(n-4,n)==" "){const r=e.value.substring(0,n-4),o=e.value.substring(s),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n-4})}}else{const r=e.value.substring(0,n),o=e.value.substring(s),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4})}else{const o=e.value.substring(n,s).split(` `).map(u=>u.trim()===""?u:i?u.startsWith(" ")?u.substring(4):u:" "+u),a=e.value.substring(0,n),c=e.value.substring(s),d=a+o.join(` `)+c;this.message.content=d,this.$nextTick(()=>{e.selectionStart=n,e.selectionEnd=s+o.length*4})}t.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,ae.post("./text2wav",{text:this.message.content}).then(t=>{this.isSynthesizingVoice=!1;let e=t.data.url;console.log(e),this.audio_url=e,this.message.metadata||(this.message.metadata=[]);let n=!1;for(let s of this.message.metadata)Object.prototype.hasOwnProperty.call(s,"audio_url")&&(s.audio_url=this.audio_url,n=!0);n||this.message.metadata.push({audio_url:this.audio_url}),this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSynthesizingVoice=!1}))},async speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking?(this.isSpeaking=!0,ae.post("./stop",{text:this.message.content}).then(t=>{this.isSpeaking=!1}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSpeaking=!1})):(this.isSpeaking=!0,ae.post("./text2Audio",{client_id:this.$store.state.client_id,text:this.message.content}).then(t=>{this.isSpeaking=!1}).catch(t=>{this.$store.state.toast.showToast(`Error: ${t}`,4,!1),this.isSpeaking=!1}));else{if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.message.content,this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(i=>i.name===this.$store.state.config.audio_out_voice)[0]);const n=i=>{let r=this.message.content.substring(i,i+e);const o=[".","!","?",` `];let a=-1;return o.forEach(c=>{const d=r.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+i+1},s=()=>{if(this.message.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const i=n(t),r=this.message.content.substring(t,i);this.msg.text=r,t=i+1,this.msg.onend=o=>{t{s()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",i))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{s()},1)};console.log("Speaking chunk"),s()}},toggleModel(){this.expanded=!this.expanded},addBlock(t){let e=this.$refs.mdTextarea.selectionStart,n=this.$refs.mdTextarea.selectionEnd;e==n?speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+"\n\n```\n"+this.message.content.slice(e),e=e+3+t.length):speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+t+` `+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),e=e+4+t.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+t+` -`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),p=p+3+t.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(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?i0t+this.avatar:(console.log("No avatar found"),gs)},defaultImg(t){t.target.src=gs},parseDate(t){let e=new Date(Date.parse(t)),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":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(n/86400);if(!(isNaN(s)||s<0||s>=31))return s==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/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(t){t&&(this.$refs.audio_player.src=t)},"message.content":function(t){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(t){console.log("ui changed to",t),this.ui_componentKey++},showConfirmation(){Le(()=>{ze.replace()})},deleteMsgMode(){Le(()=>{ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,Le(()=>{ze.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 t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!t.getTime()||!e.getTime())return;let[s,i,r]=this.computeTimeDiff(t,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},warmup_duration(){const t=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, ",t," -> ",e),e.getTime()===t.getTime())return 0;if(!t.getTime()||!e.getTime())return;let s,i,r;[s,i,r]=this.computeTimeDiff(t,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},generation_rate(){const t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),n=this.message.nb_tokens;if(e.getTime()===t.getTime()||!n||!t.getTime()||!e.getTime())return;let i=e.getTime()-t.getTime();const r=Math.floor(i/1e3),o=n/r;return Math.round(o)+" t/s"}}},o0t={class:"relative w-full group rounded-lg m-2 shadow-lg message 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"},a0t={class:"flex flex-row gap-2"},l0t={class:"flex-shrink-0"},c0t={class:"group/avatar"},d0t=["src","data-popover-target"],u0t={class:"flex flex-col w-full flex-grow-0"},p0t={class:"flex flex-row flex-grow items-start"},_0t={class:"flex flex-col mb-2"},h0t={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},f0t=["title"],m0t=l("div",{class:"flex-grow"},null,-1),g0t={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"},b0t={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"},E0t={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"},y0t={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500"},v0t={key:0,class:"w-8 h-8 text-white animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},S0t=l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),T0t=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"},null,-1),x0t=[S0t,T0t],C0t={key:1,class:"w-8 h-8 text-red-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},w0t=l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),R0t=[w0t],A0t={key:2,class:"w-8 h-8 text-green-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},N0t=l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1),O0t=[N0t],M0t={class:"leading-5"},I0t=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1),k0t={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},D0t={class:"content px-5 pb-5 pt-4"},L0t={class:"list-none"},P0t=l("div",{class:"flex flex-col items-start w-full"},null,-1),U0t={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"},F0t={key:1},B0t=["src"],G0t={class:"flex-row justify-end mx-2"},V0t={class:"invisible group-hover:visible flex flex-row"},z0t={key:0},H0t={key:1},q0t={key:2},$0t={key:3},Y0t={key:4,class:"flex items-center duration-75"},W0t=l("i",{"data-feather":"x"},null,-1),K0t=[W0t],j0t=l("i",{"data-feather":"check"},null,-1),Q0t=[j0t],X0t=l("i",{"data-feather":"trash"},null,-1),Z0t=[X0t],J0t=l("i",{"data-feather":"thumbs-up"},null,-1),eTt=[J0t],tTt={class:"flex flex-row items-center"},nTt=l("i",{"data-feather":"thumbs-down"},null,-1),sTt=[nTt],iTt={class:"flex flex-row items-center"},rTt=l("i",{"data-feather":"volume-2"},null,-1),oTt=[rTt],aTt={key:6,class:"flex flex-row items-center"},lTt=l("i",{"data-feather":"voicemail"},null,-1),cTt=[lTt],dTt=["src"],uTt={class:"text-sm text-gray-400 mt-2"},pTt={class:"flex flex-row items-center gap-2"},_Tt={key:0},hTt={class:"font-thin"},fTt={key:1},mTt={class:"font-thin"},gTt={key:2},bTt={class:"font-thin"},ETt={key:3},yTt=["title"],vTt={key:4},STt=["title"],TTt={key:5},xTt=["title"],CTt={key:6},wTt=["title"];function RTt(t,e,n,s,i,r){var _;const o=tt("Step"),a=tt("RenderHTMLJS"),c=tt("MarkdownRenderer"),d=tt("JsonViewer"),u=tt("DynamicUIRenderer"),h=tt("ToolbarButton"),f=tt("DropdownSubmenu"),m=tt("DropdownMenu");return T(),w("div",o0t,[l("div",a0t,[l("div",l0t,[l("div",c0t,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=g=>r.defaultImg(g)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,d0t)])]),l("div",u0t,[l("div",p0t,[l("div",_0t,[l("div",h0t,K(n.message.sender)+" ",1),n.message.created_at?(T(),w("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},K(r.created_at),9,f0t)):G("",!0)]),m0t]),l("div",g0t,[P(l("details",b0t,[l("summary",E0t,[l("div",y0t,[n.message.status_message!=="Done"&&n.message.status_message!=="Generation canceled"?(T(),w("svg",v0t,x0t)):G("",!0),n.message.status_message==="Generation canceled"?(T(),w("svg",C0t,R0t)):G("",!0),n.message.status_message==="Done"?(T(),w("svg",A0t,O0t)):G("",!0)]),l("dl",M0t,[I0t,l("dt",k0t,[l("span",{class:Ge(["inline-block w-2 h-2 rounded-full",{"bg-blue-500 animate-pulse":n.message.status_message!=="Done"&&n.message.status_message!=="Generation canceled","bg-red-500":n.message.status_message==="Generation canceled","bg-green-500":n.message.status_message==="Done"}])},null,2),et(" "+K(n.message===void 0?"":n.message.status_message),1)])])]),l("div",D0t,[l("ol",L0t,[(T(!0),w(Pe,null,Ke(n.message.steps,(g,b)=>(T(),w("div",{key:"step-"+n.message.id+"-"+b,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:Ht({backgroundColor:g.done?"transparent":"inherit"})},[V(o,{done:g.done,text:g.text,status:g.status,step_type:g.step_type},null,8,["done","text","status","step_type"])],4))),128))])])],512),[[wt,n.message!=null&&n.message.steps!=null&&n.message.steps.length>0]]),P0t,l("div",U0t,[(T(!0),w(Pe,null,Ke(n.message.html_js_s,(g,b)=>(T(),w("div",{key:"htmljs-"+n.message.id+"-"+b,class:"htmljs font-bold",style:Ht({backgroundColor:t.step.done?"transparent":"inherit"})},[V(a,{htmlContent:g},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?G("",!0):(T(),dt(c,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[n.message.open?P((T(),w("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=Vs(j((...g)=>r.insertTab&&r.insertTab(...g),["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]=g=>n.message.content=g)},`\r - `,544)),[[pe,n.message.content]]):G("",!0)]),n.message.metadata!==null?(T(),w("div",F0t,[(T(!0),w(Pe,null,Ke(((_=n.message.metadata)==null?void 0:_.filter(g=>g!=null&&g.hasOwnProperty("title")&&g.hasOwnProperty("content")))||[],(g,b)=>(T(),w("div",{key:"json-"+n.message.id+"-"+b,class:"json font-bold"},[(T(),dt(d,{jsonFormText:g.title,jsonData:g.content,key:"msgjson-"+n.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):G("",!0),n.message.ui?(T(),dt(u,{ref:"ui",class:"w-full",ui:n.message.ui,key:"msgui-"+n.message.id},null,8,["ui"])):G("",!0),i.audio_url!=null?(T(),w("audio",{controls:"",key:i.audio_url},[l("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,B0t),et(" Your browser does not support the audio element. ")])):G("",!0)]),l("div",G0t,[l("div",V0t,[r.editMsgMode?(T(),w("div",z0t,[V(h,{onClick:e[3]||(e[3]=j(g=>r.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),V(h,{onClick:j(r.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),V(m,{title:"Add Block"},{default:Ie(()=>[V(f,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[V(h,{onClick:e[4]||(e[4]=j(g=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),V(h,{onClick:e[5]||(e[5]=j(g=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),V(h,{onClick:e[6]||(e[6]=j(g=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),V(h,{onClick:e[7]||(e[7]=j(g=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),V(h,{onClick:e[8]||(e[8]=j(g=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),V(h,{onClick:e[9]||(e[9]=j(g=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),V(h,{onClick:e[10]||(e[10]=j(g=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),V(h,{onClick:e[11]||(e[11]=j(g=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),V(h,{onClick:e[12]||(e[12]=j(g=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),V(h,{onClick:e[13]||(e[13]=j(g=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),V(h,{onClick:e[14]||(e[14]=j(g=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),V(f,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[V(h,{onClick:e[15]||(e[15]=j(g=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),V(h,{onClick:e[16]||(e[16]=j(g=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),V(h,{onClick:e[17]||(e[17]=j(g=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),V(h,{onClick:e[18]||(e[18]=j(g=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),V(h,{onClick:e[19]||(e[19]=j(g=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),V(f,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[V(h,{onClick:e[20]||(e[20]=j(g=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),V(h,{onClick:e[21]||(e[21]=j(g=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),V(h,{onClick:e[22]||(e[22]=j(g=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),V(h,{onClick:e[23]||(e[23]=j(g=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),V(h,{onClick:e[24]||(e[24]=j(g=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),V(f,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[V(h,{onClick:e[25]||(e[25]=j(g=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),V(h,{onClick:e[26]||(e[26]=j(g=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),V(h,{onClick:e[27]||(e[27]=j(g=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),V(f,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[V(h,{onClick:e[28]||(e[28]=j(g=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),V(h,{onClick:e[29]||(e[29]=j(g=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),V(h,{onClick:e[30]||(e[30]=j(g=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),V(f,{title:"Database",icon:"database"},{default:Ie(()=>[V(h,{onClick:e[31]||(e[31]=j(g=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),V(h,{onClick:e[32]||(e[32]=j(g=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),V(h,{onClick:e[33]||(e[33]=j(g=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),w("div",H0t,[V(h,{onClick:e[34]||(e[34]=j(g=>r.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),V(h,{onClick:r.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!r.editMsgMode&&n.message.sender!==t.$store.state.mountedPers.name?(T(),w("div",q0t,[V(h,{onClick:e[35]||(e[35]=j(g=>r.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),V(h,{onClick:e[36]||(e[36]=j(g=>r.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),V(h,{onClick:e[37]||(e[37]=j(g=>r.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):G("",!0),!r.editMsgMode&&n.message.sender===t.$store.state.mountedPers.name?(T(),w("div",$0t,[V(h,{onClick:r.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):G("",!0),i.deleteMsgMode?(T(),w("div",Y0t,[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]=j(g=>i.deleteMsgMode=!1,["stop"]))},K0t),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]=j(g=>r.deleteMsg(),["stop"]))},Q0t)])):G("",!0),!r.editMsgMode&&!i.deleteMsgMode?(T(),w("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]=g=>i.deleteMsgMode=!0)},Z0t)):G("",!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]=j(g=>r.rankUp(),["stop"]))},eTt),l("div",tTt,[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]=j(g=>r.rankDown(),["stop"]))},sTt),n.message.rank!=0?(T(),w("div",{key:0,class:Ge(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},K(n.message.rank),3)):G("",!0)]),l("div",iTt,[this.$store.state.config.active_tts_service!="None"?(T(),w("div",{key:0,class:Ge(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[43]||(e[43]=j(g=>r.speak(),["stop"]))},oTt,2)):G("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),w("div",aTt,[i.isSynthesizingVoice?(T(),w("img",{key:1,src:i.loading_svg},null,8,dTt)):(T(),w("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]=j(g=>r.read(),["stop"]))},cTt))])):G("",!0)])]),l("div",uTt,[l("div",pTt,[n.message.binding?(T(),w("p",_Tt,[et("Binding: "),l("span",hTt,K(n.message.binding),1)])):G("",!0),n.message.model?(T(),w("p",fTt,[et("Model: "),l("span",mTt,K(n.message.model),1)])):G("",!0),n.message.seed?(T(),w("p",gTt,[et("Seed: "),l("span",bTt,K(n.message.seed),1)])):G("",!0),n.message.nb_tokens?(T(),w("p",ETt,[et("Number of tokens: "),l("span",{class:"font-thin",title:"Number of Tokens: "+n.message.nb_tokens},K(n.message.nb_tokens),9,yTt)])):G("",!0),r.warmup_duration?(T(),w("p",vTt,[et("Warmup duration: "),l("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},K(r.warmup_duration),9,STt)])):G("",!0),r.time_spent?(T(),w("p",TTt,[et("Generation duration: "),l("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},K(r.time_spent),9,xTt)])):G("",!0),r.generation_rate?(T(),w("p",CTt,[et("Rate: "),l("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},K(r.generation_rate),9,wTt)])):G("",!0)])])])])])}const dN=ot(r0t,[["render",RTt]]),ATt="/";ae.defaults.baseURL="/";const NTt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Zl,UniversalForm:nc},data(){return{bUrl:ATt,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(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ae.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),s={client_id:this.$store.state.client_id,id:n};e=await ae.post("/select_personality",s),console.log("Generating message from ",e.data.status),qe.emit("generate_msg_from",{id:-1})}},async remount_personality(){const t=this.mountedPers;if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await ae.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(t){try{ae.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 - "+t.name,"Save changes","Cancel").then(n=>{try{ae.post("/set_active_personality_settings",n).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. +`+this.message.content.slice(e,n)+"\n```\n"+this.message.content.slice(n),p=p+3+t.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(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?t0t+this.avatar:(console.log("No avatar found"),gs)},defaultImg(t){t.target.src=gs},parseDate(t){let e=new Date(Date.parse(t)),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":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,s=Math.floor(n/86400);if(!(isNaN(s)||s<0||s>=31))return s==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/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(t){t&&(this.$refs.audio_player.src=t)},"message.content":function(t){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(t){console.log("ui changed to",t),this.ui_componentKey++},showConfirmation(){Le(()=>{ze.replace()})},deleteMsgMode(){Le(()=>{ze.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,Le(()=>{ze.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 t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!t.getTime()||!e.getTime())return;let[s,i,r]=this.computeTimeDiff(t,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},warmup_duration(){const t=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, ",t," -> ",e),e.getTime()===t.getTime())return 0;if(!t.getTime()||!e.getTime())return;let s,i,r;[s,i,r]=this.computeTimeDiff(t,e);function o(c){return c<10&&(c="0"+c),c}return o(s)+"h:"+o(i)+"m:"+o(r)+"s"},generation_rate(){const t=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),n=this.message.nb_tokens;if(e.getTime()===t.getTime()||!n||!t.getTime()||!e.getTime())return;let i=e.getTime()-t.getTime();const r=Math.floor(i/1e3),o=n/r;return Math.round(o)+" t/s"}}},s0t={class:"relative w-full group rounded-lg m-2 shadow-lg message 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"},i0t={class:"flex flex-row gap-2"},r0t={class:"flex-shrink-0"},o0t={class:"group/avatar"},a0t=["src","data-popover-target"],l0t={class:"flex flex-col w-full flex-grow-0"},c0t={class:"flex flex-row flex-grow items-start"},d0t={class:"flex flex-col mb-2"},u0t={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},p0t=["title"],_0t=l("div",{class:"flex-grow"},null,-1),h0t={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"},f0t={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"},m0t={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"},g0t={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500"},b0t={key:0,class:"w-8 h-8 text-white animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},E0t=l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),y0t=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"},null,-1),v0t=[E0t,y0t],S0t={key:1,class:"w-8 h-8 text-red-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},T0t=l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),x0t=[T0t],C0t={key:2,class:"w-8 h-8 text-green-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},w0t=l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1),R0t=[w0t],A0t={class:"leading-5"},N0t=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1),O0t={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},M0t={class:"content px-5 pb-5 pt-4"},I0t={class:"list-none"},k0t=l("div",{class:"flex flex-col items-start w-full"},null,-1),D0t={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"},L0t={key:1},P0t=["src"],U0t={class:"flex-row justify-end mx-2"},F0t={class:"invisible group-hover:visible flex flex-row"},B0t={key:0},G0t={key:1},V0t={key:2},z0t={key:3},H0t={key:4,class:"flex items-center duration-75"},q0t=l("i",{"data-feather":"x"},null,-1),$0t=[q0t],Y0t=l("i",{"data-feather":"check"},null,-1),W0t=[Y0t],K0t=l("i",{"data-feather":"trash"},null,-1),j0t=[K0t],Q0t=l("i",{"data-feather":"thumbs-up"},null,-1),X0t=[Q0t],Z0t={class:"flex flex-row items-center"},J0t=l("i",{"data-feather":"thumbs-down"},null,-1),eTt=[J0t],tTt={class:"flex flex-row items-center"},nTt=l("i",{"data-feather":"volume-2"},null,-1),sTt=[nTt],iTt={key:6,class:"flex flex-row items-center"},rTt=l("i",{"data-feather":"voicemail"},null,-1),oTt=[rTt],aTt=["src"],lTt={class:"text-sm text-gray-400 mt-2"},cTt={class:"flex flex-row items-center gap-2"},dTt={key:0},uTt={class:"font-thin"},pTt={key:1},_Tt={class:"font-thin"},hTt={key:2},fTt={class:"font-thin"},mTt={key:3},gTt=["title"],bTt={key:4},ETt=["title"],yTt={key:5},vTt=["title"],STt={key:6},TTt=["title"];function xTt(t,e,n,s,i,r){var _;const o=tt("Step"),a=tt("RenderHTMLJS"),c=tt("MarkdownRenderer"),d=tt("JsonViewer"),u=tt("DynamicUIRenderer"),h=tt("ToolbarButton"),f=tt("DropdownSubmenu"),m=tt("DropdownMenu");return T(),w("div",s0t,[l("div",i0t,[l("div",r0t,[l("div",o0t,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=g=>r.defaultImg(g)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,a0t)])]),l("div",l0t,[l("div",c0t,[l("div",d0t,[l("div",u0t,K(n.message.sender)+" ",1),n.message.created_at?(T(),w("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},K(r.created_at),9,p0t)):G("",!0)]),_0t]),l("div",h0t,[P(l("details",f0t,[l("summary",m0t,[l("div",g0t,[n.message.status_message!=="Done"&&n.message.status_message!=="Generation canceled"?(T(),w("svg",b0t,v0t)):G("",!0),n.message.status_message==="Generation canceled"?(T(),w("svg",S0t,x0t)):G("",!0),n.message.status_message==="Done"?(T(),w("svg",C0t,R0t)):G("",!0)]),l("dl",A0t,[N0t,l("dt",O0t,[l("span",{class:Ge(["inline-block w-2 h-2 rounded-full",{"bg-blue-500 animate-pulse":n.message.status_message!=="Done"&&n.message.status_message!=="Generation canceled","bg-red-500":n.message.status_message==="Generation canceled","bg-green-500":n.message.status_message==="Done"}])},null,2),et(" "+K(n.message===void 0?"":n.message.status_message),1)])])]),l("div",M0t,[l("ol",I0t,[(T(!0),w(Pe,null,Ke(n.message.steps,(g,b)=>(T(),w("div",{key:"step-"+n.message.id+"-"+b,class:"group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800",style:Ht({backgroundColor:g.done?"transparent":"inherit"})},[V(o,{done:g.done,text:g.text,status:g.status,step_type:g.step_type},null,8,["done","text","status","step_type"])],4))),128))])])],512),[[wt,n.message!=null&&n.message.steps!=null&&n.message.steps.length>0]]),k0t,l("div",D0t,[(T(!0),w(Pe,null,Ke(n.message.html_js_s,(g,b)=>(T(),w("div",{key:"htmljs-"+n.message.id+"-"+b,class:"htmljs font-bold",style:Ht({backgroundColor:t.step.done?"transparent":"inherit"})},[V(a,{htmlContent:g},null,8,["htmlContent"])],4))),128))]),r.editMsgMode?G("",!0):(T(),dt(c,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[n.message.open?P((T(),w("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=Vs(j((...g)=>r.insertTab&&r.insertTab(...g),["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]=g=>n.message.content=g)},`\r + `,544)),[[pe,n.message.content]]):G("",!0)]),n.message.metadata!==null?(T(),w("div",L0t,[(T(!0),w(Pe,null,Ke(((_=n.message.metadata)==null?void 0:_.filter(g=>g!=null&&g.hasOwnProperty("title")&&g.hasOwnProperty("content")))||[],(g,b)=>(T(),w("div",{key:"json-"+n.message.id+"-"+b,class:"json font-bold"},[(T(),dt(d,{jsonFormText:g.title,jsonData:g.content,key:"msgjson-"+n.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):G("",!0),n.message.ui?(T(),dt(u,{ref:"ui",class:"w-full",ui:n.message.ui,key:"msgui-"+n.message.id},null,8,["ui"])):G("",!0),i.audio_url!=null?(T(),w("audio",{controls:"",key:i.audio_url},[l("source",{src:i.audio_url,type:"audio/wav",ref:"audio_player"},null,8,P0t),et(" Your browser does not support the audio element. ")])):G("",!0)]),l("div",U0t,[l("div",F0t,[r.editMsgMode?(T(),w("div",B0t,[V(h,{onClick:e[3]||(e[3]=j(g=>r.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),V(h,{onClick:j(r.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),V(m,{title:"Add Block"},{default:Ie(()=>[V(f,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[V(h,{onClick:e[4]||(e[4]=j(g=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),V(h,{onClick:e[5]||(e[5]=j(g=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),V(h,{onClick:e[6]||(e[6]=j(g=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),V(h,{onClick:e[7]||(e[7]=j(g=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),V(h,{onClick:e[8]||(e[8]=j(g=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),V(h,{onClick:e[9]||(e[9]=j(g=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),V(h,{onClick:e[10]||(e[10]=j(g=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),V(h,{onClick:e[11]||(e[11]=j(g=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),V(h,{onClick:e[12]||(e[12]=j(g=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),V(h,{onClick:e[13]||(e[13]=j(g=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),V(h,{onClick:e[14]||(e[14]=j(g=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),V(f,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[V(h,{onClick:e[15]||(e[15]=j(g=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),V(h,{onClick:e[16]||(e[16]=j(g=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),V(h,{onClick:e[17]||(e[17]=j(g=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),V(h,{onClick:e[18]||(e[18]=j(g=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),V(h,{onClick:e[19]||(e[19]=j(g=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),V(f,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[V(h,{onClick:e[20]||(e[20]=j(g=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),V(h,{onClick:e[21]||(e[21]=j(g=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),V(h,{onClick:e[22]||(e[22]=j(g=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),V(h,{onClick:e[23]||(e[23]=j(g=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),V(h,{onClick:e[24]||(e[24]=j(g=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),V(f,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[V(h,{onClick:e[25]||(e[25]=j(g=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),V(h,{onClick:e[26]||(e[26]=j(g=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),V(h,{onClick:e[27]||(e[27]=j(g=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),V(f,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[V(h,{onClick:e[28]||(e[28]=j(g=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),V(h,{onClick:e[29]||(e[29]=j(g=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),V(h,{onClick:e[30]||(e[30]=j(g=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),V(f,{title:"Database",icon:"database"},{default:Ie(()=>[V(h,{onClick:e[31]||(e[31]=j(g=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),V(h,{onClick:e[32]||(e[32]=j(g=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),V(h,{onClick:e[33]||(e[33]=j(g=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),w("div",G0t,[V(h,{onClick:e[34]||(e[34]=j(g=>r.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),V(h,{onClick:r.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!r.editMsgMode&&n.message.sender!==t.$store.state.mountedPers.name?(T(),w("div",V0t,[V(h,{onClick:e[35]||(e[35]=j(g=>r.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),V(h,{onClick:e[36]||(e[36]=j(g=>r.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),V(h,{onClick:e[37]||(e[37]=j(g=>r.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):G("",!0),!r.editMsgMode&&n.message.sender===t.$store.state.mountedPers.name?(T(),w("div",z0t,[V(h,{onClick:r.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):G("",!0),i.deleteMsgMode?(T(),w("div",H0t,[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]=j(g=>i.deleteMsgMode=!1,["stop"]))},$0t),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]=j(g=>r.deleteMsg(),["stop"]))},W0t)])):G("",!0),!r.editMsgMode&&!i.deleteMsgMode?(T(),w("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]=g=>i.deleteMsgMode=!0)},j0t)):G("",!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]=j(g=>r.rankUp(),["stop"]))},X0t),l("div",Z0t,[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]=j(g=>r.rankDown(),["stop"]))},eTt),n.message.rank!=0?(T(),w("div",{key:0,class:Ge(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},K(n.message.rank),3)):G("",!0)]),l("div",tTt,[this.$store.state.config.active_tts_service!="None"?(T(),w("div",{key:0,class:Ge(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[43]||(e[43]=j(g=>r.speak(),["stop"]))},sTt,2)):G("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),w("div",iTt,[i.isSynthesizingVoice?(T(),w("img",{key:1,src:i.loading_svg},null,8,aTt)):(T(),w("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]=j(g=>r.read(),["stop"]))},oTt))])):G("",!0)])]),l("div",lTt,[l("div",cTt,[n.message.binding?(T(),w("p",dTt,[et("Binding: "),l("span",uTt,K(n.message.binding),1)])):G("",!0),n.message.model?(T(),w("p",pTt,[et("Model: "),l("span",_Tt,K(n.message.model),1)])):G("",!0),n.message.seed?(T(),w("p",hTt,[et("Seed: "),l("span",fTt,K(n.message.seed),1)])):G("",!0),n.message.nb_tokens?(T(),w("p",mTt,[et("Number of tokens: "),l("span",{class:"font-thin",title:"Number of Tokens: "+n.message.nb_tokens},K(n.message.nb_tokens),9,gTt)])):G("",!0),r.warmup_duration?(T(),w("p",bTt,[et("Warmup duration: "),l("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},K(r.warmup_duration),9,ETt)])):G("",!0),r.time_spent?(T(),w("p",yTt,[et("Generation duration: "),l("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},K(r.time_spent),9,vTt)])):G("",!0),r.generation_rate?(T(),w("p",STt,[et("Rate: "),l("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},K(r.generation_rate),9,TTt)])):G("",!0)])])])])])}const dN=ot(n0t,[["render",xTt]]),CTt="/";ae.defaults.baseURL="/";const wTt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Zl,UniversalForm:nc},data(){return{bUrl:CTt,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(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async handleOnTalk(){const t=this.mountedPers;console.log("pers:",t),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ae.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path),s={client_id:this.$store.state.client_id,id:n};e=await ae.post("/select_personality",s),console.log("Generating message from ",e.data.status),qe.emit("generate_msg_from",{id:-1})}},async remount_personality(){const t=this.mountedPers;if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await ae.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(t){try{ae.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 - "+t.name,"Save changes","Cancel").then(n=>{try{ae.post("/set_active_personality_settings",n).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. `+s,4,!1)})}catch(s){this.$refs.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+s.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Le(()=>{ze.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await ae.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Zu}}},OTt={class:"w-fit flex select-none"},MTt={class:"w-fit flex select-none"},ITt={class:"w-8 h-8 group relative"},kTt=["src","title"],DTt={class:"opacity-0 group-hover:opacity-100"},LTt=l("span",{title:"Remount"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("g",{id:"surface1"},[l("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),PTt=[LTt],UTt=l("span",{title:"Talk"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),FTt=[UTt];function BTt(t,e,n,s,i,r){const o=tt("UniversalForm");return T(),w(Pe,null,[l("div",OTt,[l("div",MTt,[l("div",ITt,[l("img",{src:i.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,kTt),l("div",DTt,[t.personalityHoveredIndex===t.index?(T(),w("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=j(a=>r.remount_personality(),["prevent"]))},PTt)):G("",!0),t.personalityHoveredIndex===t.index?(T(),w("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=j(a=>r.handleOnTalk(),["prevent"]))},FTt)):G("",!0),l("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=j((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+K(r.mountedPersArr.length-1),1)])])])]),V(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const GTt=ot(NTt,[["render",BTt]]);const VTt="/";ae.defaults.baseURL="/";const zTt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:RE,Toast:Zl,UniversalForm:nc},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:VTt,isMounted:!1,isLoading:!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(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async onCopyToCustom(t){await ae.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:t.personality.category,name:t.personality.name})},onCopyPersonalityName(t){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(t){try{const e=await ae.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Zu},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,ae.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality + Endpoint error: `+s.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(Le(()=>{ze.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await ae.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Zu}}},RTt={class:"w-fit flex select-none"},ATt={class:"w-fit flex select-none"},NTt={class:"w-8 h-8 group relative"},OTt=["src","title"],MTt={class:"opacity-0 group-hover:opacity-100"},ITt=l("span",{title:"Remount"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-0 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("g",{id:"surface1"},[l("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1),kTt=[ITt],DTt=l("span",{title:"Talk"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1),LTt=[DTt];function PTt(t,e,n,s,i,r){const o=tt("UniversalForm");return T(),w(Pe,null,[l("div",RTt,[l("div",ATt,[l("div",NTt,[l("img",{src:i.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 hover:scale-150 active:scale-90 hover:z-50 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+r.mountedPers.name,onClick:e[1]||(e[1]=a=>r.onSettingsPersonality(r.mountedPers))},null,40,OTt),l("div",MTt,[t.personalityHoveredIndex===t.index?(T(),w("button",{key:0,class:"z-50 -top-1 group-hover:translate-x-5 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[2]||(e[2]=j(a=>r.remount_personality(),["prevent"]))},kTt)):G("",!0),t.personalityHoveredIndex===t.index?(T(),w("button",{key:1,class:"-top-1 group-hover:-translate-x-12 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[3]||(e[3]=j(a=>r.handleOnTalk(),["prevent"]))},LTt)):G("",!0),l("div",{class:"top-0 group-hover:-translate-x-8 group-hover:-translate-y-8 left-0 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-500 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",onClick:e[4]||(e[4]=j((...a)=>r.toggleShowPersList&&r.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+K(r.mountedPersArr.length-1),1)])])])]),V(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const UTt=ot(wTt,[["render",PTt]]);const FTt="/";ae.defaults.baseURL="/";const BTt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:RE,Toast:Zl,UniversalForm:nc},name:"MountedPersonalitiesList",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},bUrl:FTt,isMounted:!1,isLoading:!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(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{async onCopyToCustom(t){await ae.post("/copy_to_custom_personas",{client_id:this.$store.state.client_id,category:t.personality.category,name:t.personality.name})},onCopyPersonalityName(t){this.$store.state.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(t){try{const e=await ae.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=Zu},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,ae.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},editPersonality(t){t=t.personality,ae.post("/get_personality_config",{client_id:this.$store.state.client_id,category:t.category,name:t.folder}).then(e=>{const n=e.data;console.log("Done"),n.status?(this.$store.state.currentPersonConfig=n.config,this.$store.state.showPersonalityEditor=!0,this.$store.state.personality_editor.showPanel(),this.$store.state.selectedPersonality=t):console.error(n.error)}).catch(e=>{console.error(e)})},onPersonalityMounted(t){this.mountPersonality(t)},onPersonalityUnMounted(t){this.unmountPersonality(t)},onPersonalityRemount(t){this.reMountPersonality(t)},async handleOpenFolder(t){const e={client_id:this.$store.state.client_id,personality_folder:t.personality.category+"/"+t.personality.folder};console.log(e),await ae.post("/open_personality_folder",e)},async handleOnTalk(t){if(ze.replace(),console.log("ppa",t),t){if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t);this.onTalk(t)}},async onPersonalitySelected(t){if(ze.replace(),console.log("Selected personality : ",JSON.stringify(t.personality)),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t)}},onSettingsPersonality(t){try{ae.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 - "+t.personality.name,"Save changes","Cancel").then(n=>{try{ae.post("/set_active_personality_settings",n).then(s=>{s&&s.data?(console.log("personality set with new settings",s.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. @@ -247,14 +247,14 @@ If You are using windows, this will install wsl so you need to activate it. Error: `+e.error,4,!1))},async reMountPersonality(t){if(console.log("remount pers",t),!t)return;if(!this.configFile.personalities.includes(t.personality.full_path)){this.$refs.toast.showToast("Personality not mounted",4,!1);return}const e=await this.remount_personality(t.personality);console.log("remount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality remounted",4,!0),t.isMounted=!0,this.onMounted(this),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality Error: `+e.error,4,!1))},async unmountPersonality(t){if(!t)return;console.log(`Unmounting ${JSON.stringify(t.personality)}`);const e=await this.unmount_personality(t.personality);if(e.status){console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities;const n=this.configFile.personalities[this.configFile.active_personality_id],s=this.personalities.findIndex(a=>a.full_path==n),i=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path),r=this.personalities[s];r.isMounted=!1,r.selected=!0,this.$refs.personalitiesZoo[i].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(r)).status&&ze.replace(),this.$refs.toast.showToast("Personality unmounted",4,!0),this.onUnMounted(this)}else this.$refs.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==n),i=this.personalities[s];if(i)console.log("adding from config"),t.push(i);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];t.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;ei.full_path==n);if(console.log("discussionPersonalities -includes",s),console.log("discussionPersonalities -mounted list",this.mountedPersArr),s==-1){const i=this.personalities.findIndex(o=>o.full_path==n),r=this.personalities[i];console.log("adding discucc121",r,n),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},ME=t=>(Ss("data-v-f44002af"),t=t(),Ts(),t),HTt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-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"},qTt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},$Tt=ME(()=>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)),YTt=ME(()=>l("span",{class:"sr-only"},"Loading...",-1)),WTt=[$Tt,YTt],KTt=ME(()=>l("i",{"data-feather":"chevron-down"},null,-1)),jTt=[KTt],QTt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},XTt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function ZTt(t,e,n,s,i,r){const o=tt("personality-entry"),a=tt("Toast"),c=tt("UniversalForm");return T(),w("div",HTt,[i.isLoading?(T(),w("div",qTt,WTt)):G("",!0),l("div",null,[r.mountedPersArr.length>0?(T(),w("div",{key:0,class:Ge(i.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[l("button",{class:"mt-0 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:"Close personality list",type:"button",onClick:e[0]||(e[0]=j((...d)=>r.toggleShowPersList&&r.toggleShowPersList(...d),["stop"]))},jTt),l("label",QTt," Mounted Personalities: ("+K(r.mountedPersArr.length)+") ",1),l("div",XTt,[V(ii,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(this.$store.state.mountedPersArr,(d,u)=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+u+"-"+d.name,personality:d,full_path:d.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===d.full_path||r.configFile.personalities[r.configFile.active_personality_id]===d.full_path+":"+d.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):G("",!0)]),V(a,{ref:"toast"},null,512),V(c,{ref:"universalForm",class:"z-20"},null,512)])}const JTt=ot(zTt,[["render",ZTt],["__scopeId","data-v-f44002af"]]);const ext={components:{InteractiveMenu:wE},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),Le(()=>{ze.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(s=>s.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=s=>{this.selectedFile=s.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};qe.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,qe.off("file_received")}),qe.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){Le(()=>{ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},txt=t=>(Ss("data-v-1a32c141"),t=t(),Ts(),t),nxt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},sxt=txt(()=>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)),ixt=[sxt];function rxt(t,e,n,s,i,r){const o=tt("InteractiveMenu");return i.loading?(T(),w("div",nxt,ixt)):(T(),dt(o,{key:1,commands:n.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const oxt=ot(ext,[["render",rxt],["__scopeId","data-v-1a32c141"]]),axt="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",Is);const lxt="/",cxt={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:nc,MountedPersonalities:GTt,MountedPersonalitiesList:JTt,PersonalitiesCommands:oxt,ChatBarButton:G2},setup(){},data(){return{is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:axt,sendGlobe:cN,modelImgPlaceholder:Is,bUrl:lxt,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{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 t=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const n=e.split("::");console.log("extracted",n[0]);const i=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",i),{name:n[0],value:n[0]||"default_value",icon:i,help:"mounts the database"}});return console.log("formatted data sources",t),t},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;e0&&this.addFiles(n)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,ae.post("/apply_settings",{config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Le(()=>{ze.replace()})})},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showModelConfig(){try{this.isLoading=!0,ae.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{ae.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:e}).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. +Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;er.full_path==n),i=this.personalities[s];if(i)console.log("adding from config"),t.push(i);else{console.log("adding default");const r=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),o=this.personalities[r];t.push(o)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;ei.full_path==n);if(console.log("discussionPersonalities -includes",s),console.log("discussionPersonalities -mounted list",this.mountedPersArr),s==-1){const i=this.personalities.findIndex(o=>o.full_path==n),r=this.personalities[i];console.log("adding discucc121",r,n),r&&(this.mountedPersArr.push(r),console.log("adding discucc",r))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},ME=t=>(Ss("data-v-f44002af"),t=t(),Ts(),t),GTt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-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"},VTt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},zTt=ME(()=>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)),HTt=ME(()=>l("span",{class:"sr-only"},"Loading...",-1)),qTt=[zTt,HTt],$Tt=ME(()=>l("i",{"data-feather":"chevron-down"},null,-1)),YTt=[$Tt],WTt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},KTt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function jTt(t,e,n,s,i,r){const o=tt("personality-entry"),a=tt("Toast"),c=tt("UniversalForm");return T(),w("div",GTt,[i.isLoading?(T(),w("div",VTt,qTt)):G("",!0),l("div",null,[r.mountedPersArr.length>0?(T(),w("div",{key:0,class:Ge(i.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[l("button",{class:"mt-0 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:"Close personality list",type:"button",onClick:e[0]||(e[0]=j((...d)=>r.toggleShowPersList&&r.toggleShowPersList(...d),["stop"]))},YTt),l("label",WTt," Mounted Personalities: ("+K(r.mountedPersArr.length)+") ",1),l("div",KTt,[V(ii,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(this.$store.state.mountedPersArr,(d,u)=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+u+"-"+d.name,personality:d,full_path:d.full_path,select_language:!1,selected:r.configFile.personalities[r.configFile.active_personality_id]===d.full_path||r.configFile.personalities[r.configFile.active_personality_id]===d.full_path+":"+d.language,"on-selected":r.onPersonalitySelected,"on-mount":r.onPersonalityMounted,"on-edit":r.editPersonality,"on-un-mount":r.onPersonalityUnMounted,"on-remount":r.onPersonalityRemount,"on-settings":r.onSettingsPersonality,"on-reinstall":r.onPersonalityReinstall,"on-talk":r.handleOnTalk,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-edit","on-un-mount","on-remount","on-settings","on-reinstall","on-talk","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})])],2)):G("",!0)]),V(a,{ref:"toast"},null,512),V(c,{ref:"universalForm",class:"z-20"},null,512)])}const QTt=ot(BTt,[["render",jTt],["__scopeId","data-v-f44002af"]]);const XTt={components:{InteractiveMenu:wE},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),Le(()=>{ze.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(s=>s.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=s=>{this.selectedFile=s.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};qe.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,qe.off("file_received")}),qe.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){Le(()=>{ze.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},ZTt=t=>(Ss("data-v-1a32c141"),t=t(),Ts(),t),JTt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},ext=ZTt(()=>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)),txt=[ext];function nxt(t,e,n,s,i,r){const o=tt("InteractiveMenu");return i.loading?(T(),w("div",JTt,txt)):(T(),dt(o,{key:1,commands:n.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const sxt=ot(XTt,[["render",nxt],["__scopeId","data-v-1a32c141"]]),ixt="/assets/loader_v0-16906488.svg";console.log("modelImgPlaceholder:",Is);const rxt="/",oxt={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{UniversalForm:nc,MountedPersonalities:UTt,MountedPersonalitiesList:QTt,PersonalitiesCommands:sxt,ChatBarButton:G2},setup(){},data(){return{is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:ixt,sendGlobe:cN,modelImgPlaceholder:Is,bUrl:rxt,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{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 t=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const n=e.split("::");console.log("extracted",n[0]);const i=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",i),{name:n[0],value:n[0]||"default_value",icon:i,help:"mounts the database"}});return console.log("formatted data sources",t),t},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},installedBindings(){return this.$store.state.installedBindings},installedModels(){return this.$store.state.installedModels},mountedPersonalities(){return this.$store.state.mountedPersArr},binding_name(){return this.$store.state.config.binding_name},model_name(){return this.$store.state.config.model_name},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;e0&&this.addFiles(n)},toggleSwitch(){this.$store.state.config.activate_internet_search=!this.$store.state.config.activate_internet_search,this.isLoading=!0,ae.post("/apply_settings",{config:this.$store.state.config}).then(t=>{this.isLoading=!1,t.data.status?(this.$store.state.config.activate_internet_search?this.$store.state.toast.showToast("Websearch activated.",4,!0):this.$store.state.toast.showToast("Websearch deactivated.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1),Le(()=>{ze.replace()})})},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showModelConfig(){try{this.isLoading=!0,ae.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{ae.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:e}).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+n,4,!1),this.isLoading=!1)})}catch(n){this.$store.state.toast.showToast(`Did not get binding settings responses. Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$store.state.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$store.state.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},async remount_personality(t){if(console.log("Remounting personality ",t),!t)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language};console.log("after");const n=await ae.post("/remount_personality",e);if(console.log("Remounting personality executed:",n),n)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),n.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},async unmountPersonality(t){if(console.log("Unmounting personality:",t),!t)return;const e=await this.unmount_personality(t.personality||t);if(console.log(e),e.status){this.$store.state.config.personalities=e.personalities,this.$store.state.toast.showToast("Personality unmounted",4,!0),this.$store.dispatch("refreshMountedPersonalities");const n=this.$store.state.mountedPersArr[this.$store.state.mountedPersArr.length-1];console.log(n,this.$store.state.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$store.state.toast.showToast(`Selected personality: `+n.name,4,!0)}else this.$store.state.toast.showToast(`Could not unmount personality Error: `+e.error,4,!1)},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={client_id:this.$store.state.client_id,language:t.language,category:t.category,folder:t.folder};try{const n=await ae.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async showBindingHoveredIn(t){this.bindingHoveredIndex=t},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(t){this.modelHoveredIndex=t},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(t){this.personalityHoveredIndex=t},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(t){if(t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=t.language===null?t.full_path:t.full_path+":"+t.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const n=await this.select_personality(t);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: -`+t.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Le(()=>{ze.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const e=t.language===null?t.full_path:t.full_path+":"+t.language;console.log("Selecting personality ",e);const n=this.$store.state.config.personalities.findIndex(i=>i===e),s={client_id:this.$store.state.client_id,id:n};try{const i=await ae.post("/select_personality",s);if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(t){t.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const n=new MouseEvent("click");e.dispatchEvent(n)},setBinding(t){console.log("Setting binding to "+t.name),this.selecting_binding=!0,this.selectedBinding=t,this.$store.state.messageBox.showBlockingMessage("Loading binding"),ae.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},setModel(t){console.log("Setting model to "+t.name),this.selecting_model=!0,this.selectedModel=t,this.$store.state.messageBox.showBlockingMessage("Loading model"),ae.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},download_files(){ae.get("/download_files")},remove_file(t){ae.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t}).then(e=>{console.log(e)})},clear_files(){ae.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{console.log(t),t.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(t,e){console.log("Send file triggered");const n=new FileReader,s=24*1024;let i=0,r=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,c=i+a.byteLength>=t.size;qe.emit("send_file_chunk",{filename:t.name,chunk:a,offset:i,isLastChunk:c,chunkIndex:r}),i+=a.byteLength,r++,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=t.slice(i,i+s);n.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),qe.emit("start_bidirectional_audio_stream"),Le(()=>{ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),qe.emit("stop_bidirectional_audio_stream"),Le(()=>{ze.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=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.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.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(t){this.showPersonalities=!this.showPersonalities},handleOnTalk(t){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${t.name} is Talking`,4,!0),this.onTalk(t)},onMountFun(t){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(t){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(t){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(t){return Le(()=>{ze.replace()}),si(t)},removeItem(t){console.log("Removing ",t.name),ae.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=t)}),console.log(this.filesList)},sendMessageEvent(t,e="no_internet"){this.$emit("messageSentEvent",t,e)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},async mountDB(t){await ae.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:t}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const t=document.createElement("input");t.type="file",t.style.display="none",t.multiple=!0,document.body.appendChild(t),t.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(t.files),document.body.removeChild(t)}),t.click()},takePicture(){qe.emit("take_picture"),qe.on("picture_taken",()=>{ae.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.filesList=t.data.files,this.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.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(t){console.log("Adding files");const e=[...t];let n=0;const s=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[n];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{n++,s()})};s()}},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){Le(()=>{ze.replace()})},loading(t,e){Le(()=>{ze.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let s=0;s{ze.replace()}),console.log("Chatbar mounted"),qe.on("rtcom_status_changed",t=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",t.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(){Le(()=>{ze.replace()})}},Yt=t=>(Ss("data-v-edbefc1f"),t=t(),Ts(),t),dxt={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},uxt={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},pxt={class:"flex"},_xt=["title"],hxt=Yt(()=>l("i",{"data-feather":"list"},null,-1)),fxt=[hxt],mxt={key:0},gxt={class:"flex flex-col max-h-64"},bxt=["title"],Ext={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"},yxt={key:0,filesList:"",role:"status"},vxt=Yt(()=>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)),Sxt=Yt(()=>l("span",{class:"sr-only"},"Loading...",-1)),Txt=[vxt,Sxt],xxt=Yt(()=>l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Cxt=Yt(()=>l("div",{class:"grow"},null,-1)),wxt={class:"flex flex-row items-center"},Rxt={class:"whitespace-nowrap"},Axt=["onClick"],Nxt=Yt(()=>l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Oxt=[Nxt],Mxt={key:1,class:"flex mx-1 w-500"},Ixt={class:"whitespace-nowrap flex flex-row gap-2"},kxt=Yt(()=>l("p",{class:"font-bold"}," Total size: ",-1)),Dxt=Yt(()=>l("div",{class:"grow"},null,-1)),Lxt=Yt(()=>l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Pxt=[Lxt],Uxt=Yt(()=>l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),Fxt=[Uxt],Bxt={key:2,class:"mx-1"},Gxt={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},Vxt={role:"status"},zxt=["src"],Hxt=Yt(()=>l("span",{class:"sr-only"},"Selecting model...",-1)),qxt={class:"flex w-fit relative grow w-full"},$xt={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"},Yxt={key:0,title:"Waiting for reply"},Wxt=["src"],Kxt=Yt(()=>l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1)),jxt={key:1,class:"w-fit group relative"},Qxt={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},Xxt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},Zxt=["onMouseover"],Jxt={class:"relative"},e1t=["onClick"],t1t=["src","title"],n1t={class:"group items-center flex flex-row"},s1t=["src","title"],i1t={key:2,class:"w-fit group relative"},r1t={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},o1t={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},a1t=["onMouseover"],l1t={class:"relative"},c1t=["onClick"],d1t=["src","title"],u1t={class:"group items-center flex flex-row"},p1t=["src","title"],_1t={key:3,class:"w-fit group relative"},h1t={class:"top-50 hide opacity-0 group-hover:bottom-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},f1t={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},m1t=["onMouseover"],g1t={class:"relative"},b1t=["onClick"],E1t=["src","title"],y1t=["onClick"],v1t=Yt(()=>l("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",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)),S1t=[v1t],T1t=["onClick"],x1t=Yt(()=>l("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("g",{id:"surface1"},[l("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),C1t=[x1t],w1t=["onClick"],R1t=Yt(()=>l("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),A1t=[R1t],N1t={class:"w-fit"},O1t={class:"w-fit"},M1t={class:"relative grow"},I1t={class:"flex items-center space-x-3"},k1t=Yt(()=>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)),D1t=Yt(()=>l("span",null,"Stop",-1)),L1t=Yt(()=>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)),P1t=Yt(()=>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)),U1t=Yt(()=>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)),F1t=Yt(()=>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:"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15.536a5 5 0 001.414 1.414m2.828-9.9a9 9 0 012.828-2.828"})],-1)),B1t=Yt(()=>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 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),G1t=Yt(()=>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)),V1t=Yt(()=>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)),z1t=Yt(()=>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)),H1t=Yt(()=>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)),q1t=Yt(()=>l("div",{class:"ml-auto gap-2"},null,-1));function $1t(t,e,n,s,i,r){const o=tt("MountedPersonalitiesList"),a=tt("MountedPersonalities"),c=tt("PersonalitiesCommands"),d=tt("ChatBarButton"),u=tt("UniversalForm");return T(),w(Pe,null,[l("div",dxt,[i.filesList.length>0||i.showPersonalities?(T(),w("div",uxt,[l("div",pxt,[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:i.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=j(h=>i.showfilesList=!i.showfilesList,["stop"]))},fxt,8,_xt)]),i.filesList.length>0&&i.showfilesList==!0?(T(),w("div",mxt,[l("div",gxt,[V(ii,{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),w(Pe,null,Ke(i.filesList,(h,f)=>(T(),w("div",{key:f+"-"+h.name},[l("div",{class:"m-1",title:h.name},[l("div",Ext,[i.isFileSentList[f]?G("",!0):(T(),w("div",yxt,Txt)),xxt,l("div",{class:Ge(["line-clamp-1 w-3/5",i.isFileSentList[f]?"text-green-500":"text-red-200"])},K(h.name),3),Cxt,l("div",wxt,[l("p",Rxt,K(r.computedFileSize(h.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:m=>r.removeItem(h)},Oxt,8,Axt)])])],8,bxt)]))),128))]),_:1})])])):G("",!0),i.filesList.length>0?(T(),w("div",Mxt,[l("div",Ixt,[kxt,et(" "+K(i.totalSize)+" ("+K(i.filesList.length)+") ",1)]),Dxt,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]=(...h)=>r.clear_files&&r.clear_files(...h))},Pxt),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]=(...h)=>r.download_files&&r.download_files(...h))},Fxt)])):G("",!0),i.showPersonalities?(T(),w("div",Bxt,[V(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":t.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):G("",!0)])):G("",!0),i.selecting_model||i.selecting_binding?(T(),w("div",Gxt,[l("div",Vxt,[l("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,zxt),Hxt])])):G("",!0),l("div",qxt,[l("div",$xt,[n.loading?(T(),w("div",Yxt,[l("img",{src:i.loader_v0},null,8,Wxt),Kxt])):G("",!0),n.loading?G("",!0):(T(),w("div",jxt,[l("div",Qxt,[l("div",Xxt,[(T(!0),w(Pe,null,Ke(r.installedBindings,(h,f)=>(T(),w("div",{class:"w-fit h-fit inset-0 opacity-100",key:f+"-"+h.name,ref_for:!0,ref:"installedBindings",onMouseover:m=>r.showBindingHoveredIn(f),onMouseleave:e[4]||(e[4]=m=>r.showBindingHoveredOut())},[f!=r.binding_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.bindingHoveredIndex===f?"scale-150":""])},[l("div",Jxt,[l("button",{onClick:j(m=>r.setBinding(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:h.icon?h.icon:i.modelImgPlaceholder,onError:e[3]||(e[3]=(...m)=>i.modelImgPlaceholder&&i.modelImgPlaceholder(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.bindingHoveredIndex===f?"scale-150 ":""+h.name==r.binding_name?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,t1t)],8,e1t)])],2)):G("",!0)],40,Zxt))),128))])]),l("div",n1t,[l("button",{onClick:e[5]||(e[5]=j(h=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[l("img",{src:r.currentBindingIcon,class:"w-8 h-8 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:r.currentBinding?r.currentBinding.name:"unknown"},null,8,s1t)])])])),n.loading?G("",!0):(T(),w("div",i1t,[l("div",r1t,[l("div",o1t,[(T(!0),w(Pe,null,Ke(r.installedModels,(h,f)=>(T(),w("div",{class:"w-fit h-fit",key:f+"-"+h.name,ref_for:!0,ref:"installedModels",onMouseover:m=>r.showModelHoveredIn(f),onMouseleave:e[7]||(e[7]=m=>r.showModelHoveredOut())},[f!=r.model_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.modelHoveredIndex===f?"scale-150":""])},[l("div",l1t,[l("button",{onClick:j(m=>r.setModel(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:h.icon?h.icon:i.modelImgPlaceholder,onError:e[6]||(e[6]=(...m)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.modelHoveredIndex===f?"scale-150 ":""+h.name==r.model_name?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,d1t)],8,c1t)])],2)):G("",!0)],40,a1t))),128))])]),l("div",u1t,[l("button",{onClick:e[8]||(e[8]=j(h=>r.copyModelName(),["prevent"])),class:"w-8 h-8"},[l("img",{src:r.currentModelIcon,class:"w-8 h-8 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:r.currentModel?r.currentModel.name:"unknown"},null,8,p1t)])])])),n.loading?G("",!0):(T(),w("div",_1t,[l("div",h1t,[l("div",f1t,[(T(!0),w(Pe,null,Ke(r.mountedPersonalities,(h,f)=>(T(),w("div",{class:"w-fit h-fit inset-0 opacity-100",key:f+"-"+h.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:m=>r.showPersonalityHoveredIn(f),onMouseleave:e[10]||(e[10]=m=>r.showPersonalityHoveredOut())},[f!=r.personality_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.personalityHoveredIndex===f?"scale-150":""])},[l("div",g1t,[l("button",{onClick:j(m=>r.onPersonalitySelected(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:i.bUrl+h.avatar,onError:e[9]||(e[9]=(...m)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.personalityHoveredIndex===f?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,E1t)],8,b1t),i.personalityHoveredIndex===f?(T(),w("button",{key:0,onClick:j(m=>r.unmountPersonality(h),["prevent"])},S1t,8,y1t)):G("",!0),i.personalityHoveredIndex===f?(T(),w("button",{key:1,onClick:j(m=>r.remount_personality(h),["prevent"])},C1t,8,T1t)):G("",!0),i.personalityHoveredIndex===f?(T(),w("button",{key:2,onClick:j(m=>r.handleOnTalk(h),["prevent"])},A1t,8,w1t)):G("",!0)])],2)):G("",!0)],40,m1t))),128))])]),V(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),l("div",N1t,[i.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),dt(c,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),l("div",O1t,[r.isDataSourceNamesValid?(T(),dt(c,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":n.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),l("div",M1t,[l("form",null,[P(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[11]||(e[11]=h=>i.message=h),onPaste:e[12]||(e[12]=(...h)=>r.handlePaste&&r.handlePaste(...h)),onKeydown:e[13]||(e[13]=Vs(j(h=>r.submitOnEnter(h),["exact"]),["enter"])),class:"w-full p-3 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),[[pe,i.message]])])]),l("div",I1t,[n.loading?(T(),dt(d,{key:0,onClick:r.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>[k1t]),default:Ie(()=>[D1t]),_:1},8,["onClick"])):(T(),dt(d,{key:1,onClick:r.submit,title:"Send"},{icon:Ie(()=>[L1t]),_:1},8,["onClick"])),V(d,{onClick:r.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>[P1t]),_:1},8,["onClick"]),V(d,{onClick:r.startSpeechRecognition,class:Ge({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>[U1t]),_:1},8,["onClick","class"]),t.$store.state.config.active_tts_service!="None"&&t.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),dt(d,{key:2,onClick:e[14]||(e[14]=h=>i.is_rt?r.stopRTCom:r.startRTCom),class:Ge(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>[F1t]),_:1},8,["class"])):G("",!0),V(d,{onClick:r.add_file,title:"Send file"},{icon:Ie(()=>[B1t]),_:1},8,["onClick"]),V(d,{onClick:r.takePicture,title:"Take picture"},{icon:Ie(()=>[G1t]),_:1},8,["onClick"]),V(d,{onClick:r.addWebLink,title:"Add web link"},{icon:Ie(()=>[V1t]),_:1},8,["onClick"]),V(d,{onClick:r.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>[z1t]),_:1},8,["onClick"]),V(d,{onClick:r.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>[H1t]),_:1},8,["onClick"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[15]||(e[15]=(...h)=>r.addFiles&&r.addFiles(...h)),multiple:"",style:{display:"none"}},null,544)]),q1t])]),V(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const uN=ot(cxt,[["render",$1t],["__scopeId","data-v-edbefc1f"]]);const Y1t={name:"WelcomeComponent",setup(){const t=qk();return{logoSrc:Je(()=>t.state.config&&t.state.config.app_custom_logo?`/user_infos/${t.state.config.app_custom_logo}`:gs)}}},W1t=t=>(Ss("data-v-b052c8c7"),t=t(),Ts(),t),K1t={class:"flex flex-col items-center justify-center w-full h-full min-h-screen bg-gradient-to-br from-indigo-100 to-purple-100 dark:from-indigo-900 dark:to-purple-900 p-8"},j1t={class:"text-center max-w-4xl"},Q1t={class:"flex items-center justify-center gap-8 mb-12"},X1t={class:"relative w-24 h-24"},Z1t=["src"],J1t=W1t(()=>l("div",{class:"flex flex-col items-start"},[l("h1",{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"}," LoLLMS "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1)),eCt=Na('

    Welcome to LoLLMS WebUI

    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.

    Discover the capabilities of LoLLMS:

    • Engage in natural language conversations
    • Generate creative content and ideas
    • Analyze complex data and provide insights
    • Assist with coding and technical tasks
    • Process and understand multimodal inputs
    ',1);function tCt(t,e,n,s,i,r){return T(),w("div",K1t,[l("div",j1t,[l("div",Q1t,[l("div",X1t,[l("img",{src:s.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,Z1t)]),J1t]),eCt])])}const pN=ot(Y1t,[["render",tCt],["__scopeId","data-v-b052c8c7"]]);var nCt=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),Wd=globalThis&&globalThis.__assign||function(){return Wd=Object.assign||function(t){for(var e,n=1,s=arguments.length;n(Ss("data-v-09e89fd8"),t=t(),Ts(),t),cCt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden"},dCt={class:"absolute inset-0 pointer-events-none overflow-hidden"},uCt=Mt(()=>l("svg",{class:"w-2 h-2 text-yellow-300",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})],-1)),pCt=[uCt],_Ct={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},hCt={class:"mb-8 w-full"},fCt=Mt(()=>l("h1",{class:"text-5xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400 mb-2 animate-glow"}," LoLLMS ",-1)),mCt=Mt(()=>l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),gCt=Mt(()=>l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),bCt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},ECt={class:"w-full h-24 relative overflow-hidden bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded-full shadow-lg"},yCt={class:"w-full max-w-2xl"},vCt={role:"status",class:"w-full"},SCt={class:"text-xl text-gray-700 dark:text-gray-300"},TCt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},xCt=Mt(()=>l("i",{"data-feather":"chevron-right"},null,-1)),CCt=[xCt],wCt=Mt(()=>l("i",{"data-feather":"chevron-left"},null,-1)),RCt=[wCt],ACt=Na('',1),NCt=[ACt],OCt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] unicolor-panels-color dark:bg-bg-dark-tone"},MCt={class:"text-light-text-panel dark:text-dark-text-panel panels-color sticky z-10 top-0"},ICt={class:"flex-row p-4 flex items-center gap-3 flex-0"},kCt=Mt(()=>l("i",{"data-feather":"plus"},null,-1)),DCt=[kCt],LCt=Mt(()=>l("i",{"data-feather":"check-square"},null,-1)),PCt=[LCt],UCt={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},FCt=Mt(()=>l("i",{"data-feather":"database"},null,-1)),BCt=[FCt],GCt=Mt(()=>l("i",{"data-feather":"log-in"},null,-1)),VCt=[GCt],zCt=Mt(()=>l("i",{"data-feather":"folder"},null,-1)),HCt=[zCt],qCt={key:1,class:"dropdown"},$Ct=Mt(()=>l("i",{"data-feather":"search"},null,-1)),YCt=[$Ct],WCt={key:2,class:"flex gap-3 flex-1 items-center duration-75"},KCt=Mt(()=>l("i",{"data-feather":"x"},null,-1)),jCt=[KCt],QCt=Mt(()=>l("i",{"data-feather":"check"},null,-1)),XCt=[QCt],ZCt=Mt(()=>l("i",{"data-feather":"hard-drive"},null,-1)),JCt=[ZCt],ewt=Mt(()=>l("i",{"data-feather":"check-circle"},null,-1)),twt=[ewt],nwt=Mt(()=>l("i",{"data-feather":"x-octagon"},null,-1)),swt=[nwt],iwt=Mt(()=>l("i",{"data-feather":"book"},null,-1)),rwt=[iwt],owt={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},awt=Mt(()=>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)),lwt=[awt],cwt={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},dwt={class:"p-4 pt-2"},uwt={class:"relative"},pwt=Mt(()=>l("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[l("div",{class:"scale-75"},[l("i",{"data-feather":"search"})])],-1)),_wt={class:"absolute inset-y-0 right-0 flex items-center pr-3"},hwt=Mt(()=>l("i",{"data-feather":"x"},null,-1)),fwt=[hwt],mwt={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},gwt={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},bwt={class:"flex flex-row flex-grow"},Ewt={key:0},ywt={class:"flex flex-row"},vwt={key:0,class:"flex gap-3"},Swt=Mt(()=>l("i",{"data-feather":"trash"},null,-1)),Twt=[Swt],xwt={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},Cwt=Mt(()=>l("i",{"data-feather":"check"},null,-1)),wwt=[Cwt],Rwt=Mt(()=>l("i",{"data-feather":"x"},null,-1)),Awt=[Rwt],Nwt={class:"flex gap-3"},Owt=Mt(()=>l("i",{"data-feather":"codepen"},null,-1)),Mwt=[Owt],Iwt=Mt(()=>l("i",{"data-feather":"folder"},null,-1)),kwt=[Iwt],Dwt=Mt(()=>l("i",{"data-feather":"bookmark"},null,-1)),Lwt=[Dwt],Pwt=Mt(()=>l("i",{"data-feather":"list"},null,-1)),Uwt=[Pwt],Fwt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Bwt={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"},Gwt=Mt(()=>l("p",{class:"px-3"},"No discussions are found",-1)),Vwt=[Gwt],zwt=Mt(()=>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)),Hwt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},qwt={key:2,class:"relative flex flex-col flex-grow"},$wt={class:"container pt-4 pb-50 mb-50 w-full"},Ywt={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 h-[600px]"},Wwt=Mt(()=>l("h2",{class:"text-2xl font-bold mb-4"},"Prompt examples",-1)),Kwt={key:0,class:"overflow-y-auto flex-grow pr-2 custom-scrollbar"},jwt={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-2"},Qwt=["onClick"],Xwt=["title"],Zwt={class:"absolute inset-0 overflow-hidden"},Jwt=Mt(()=>l("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white dark:to-gray-800 group-hover:opacity-0 transition-opacity duration-300"},null,-1)),eRt=Mt(()=>l("div",{class:"mt-2 text-sm text-gray-500 dark:text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1)),tRt=Mt(()=>l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1)),nRt=Mt(()=>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)),sRt={key:0,class:"flex flex-row items-center justify-center h-10"},iRt={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"},rRt={ref:"isolatedContent",class:"h-full"},oRt={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"},aRt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},lRt={setup(){},data(){return{lastMessageHtml:"",defaultMessageHtml:` +`+t.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Le(()=>{ze.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const e=t.language===null?t.full_path:t.full_path+":"+t.language;console.log("Selecting personality ",e);const n=this.$store.state.config.personalities.findIndex(i=>i===e),s={client_id:this.$store.state.client_id,id:n};try{const i=await ae.post("/select_personality",s);if(i)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),i.data}catch(i){console.log(i.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(t){t.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const n=new MouseEvent("click");e.dispatchEvent(n)},setBinding(t){console.log("Setting binding to "+t.name),this.selecting_binding=!0,this.selectedBinding=t,this.$store.state.messageBox.showBlockingMessage("Loading binding"),ae.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},setModel(t){console.log("Setting model to "+t.name),this.selecting_model=!0,this.selectedModel=t,this.$store.state.messageBox.showBlockingMessage("Loading model"),ae.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:t.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},download_files(){ae.get("/download_files")},remove_file(t){ae.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t}).then(e=>{console.log(e)})},clear_files(){ae.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{console.log(t),t.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(t,e){console.log("Send file triggered");const n=new FileReader,s=24*1024;let i=0,r=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,c=i+a.byteLength>=t.size;qe.emit("send_file_chunk",{filename:t.name,chunk:a,offset:i,isLastChunk:c,chunkIndex:r}),i+=a.byteLength,r++,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=t.slice(i,i+s);n.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),qe.emit("start_bidirectional_audio_stream"),Le(()=>{ze.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),qe.emit("stop_bidirectional_audio_stream"),Le(()=>{ze.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=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.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.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(t){this.showPersonalities=!this.showPersonalities},handleOnTalk(t){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${t.name} is Talking`,4,!0),this.onTalk(t)},onMountFun(t){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(t){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(t){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(t){return Le(()=>{ze.replace()}),si(t)},removeItem(t){console.log("Removing ",t.name),ae.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:t.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=t)}),console.log(this.filesList)},sendMessageEvent(t,e="no_internet"){this.$emit("messageSentEvent",t,e)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},async mountDB(t){await ae.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:t}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const t=document.createElement("input");t.type="file",t.style.display="none",t.multiple=!0,document.body.appendChild(t),t.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(t.files),document.body.removeChild(t)}),t.click()},takePicture(){qe.emit("take_picture"),qe.on("picture_taken",()=>{ae.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(t=>{this.filesList=t.data.files,this.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.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(t){console.log("Adding files");const e=[...t];let n=0;const s=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const i=e[n];this.filesList.push(i),this.isFileSentList.push(!1),this.send_file(i,()=>{n++,s()})};s()}},watch:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){Le(()=>{ze.replace()})},loading(t,e){Le(()=>{ze.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let s=0;s{ze.replace()}),console.log("Chatbar mounted"),qe.on("rtcom_status_changed",t=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",t.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(){Le(()=>{ze.replace()})}},Yt=t=>(Ss("data-v-edbefc1f"),t=t(),Ts(),t),axt={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},lxt={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},cxt={class:"flex"},dxt=["title"],uxt=Yt(()=>l("i",{"data-feather":"list"},null,-1)),pxt=[uxt],_xt={key:0},hxt={class:"flex flex-col max-h-64"},fxt=["title"],mxt={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"},gxt={key:0,filesList:"",role:"status"},bxt=Yt(()=>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)),Ext=Yt(()=>l("span",{class:"sr-only"},"Loading...",-1)),yxt=[bxt,Ext],vxt=Yt(()=>l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Sxt=Yt(()=>l("div",{class:"grow"},null,-1)),Txt={class:"flex flex-row items-center"},xxt={class:"whitespace-nowrap"},Cxt=["onClick"],wxt=Yt(()=>l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Rxt=[wxt],Axt={key:1,class:"flex mx-1 w-500"},Nxt={class:"whitespace-nowrap flex flex-row gap-2"},Oxt=Yt(()=>l("p",{class:"font-bold"}," Total size: ",-1)),Mxt=Yt(()=>l("div",{class:"grow"},null,-1)),Ixt=Yt(()=>l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),kxt=[Ixt],Dxt=Yt(()=>l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)),Lxt=[Dxt],Pxt={key:2,class:"mx-1"},Uxt={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},Fxt={role:"status"},Bxt=["src"],Gxt=Yt(()=>l("span",{class:"sr-only"},"Selecting model...",-1)),Vxt={class:"flex w-fit relative grow w-full"},zxt={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"},Hxt={key:0,title:"Waiting for reply"},qxt=["src"],$xt=Yt(()=>l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1)),Yxt={key:1,class:"w-fit group relative"},Wxt={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},Kxt={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},jxt=["onMouseover"],Qxt={class:"relative"},Xxt=["onClick"],Zxt=["src","title"],Jxt={class:"group items-center flex flex-row"},e1t=["src","title"],t1t={key:2,class:"w-fit group relative"},n1t={class:"hide top-50 hide opacity-0 group-hover:bottom-0 opacity-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},s1t={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},i1t=["onMouseover"],r1t={class:"relative"},o1t=["onClick"],a1t=["src","title"],l1t={class:"group items-center flex flex-row"},c1t=["src","title"],d1t={key:3,class:"w-fit group relative"},u1t={class:"top-50 hide opacity-0 group-hover:bottom-0 .group-hover:block fixed w-[1000px] group absolute group-hover:opacity-100 transform group-hover:translate-y-[-50px] group-hover:translate-x-[0px] transition-all duration-300"},p1t={class:"w-fit flex-wrap flex bg-white bg-opacity-50 backdrop-blur-md rounded p-4"},_1t=["onMouseover"],h1t={class:"relative"},f1t=["onClick"],m1t=["src","title"],g1t=["onClick"],b1t=Yt(()=>l("span",{class:"-top-6 -right-6 border-gray-500 absolute active:scale-90 w-7 h-7 hover:scale-150 transition bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"top-1 left-1 relative w-5 h-5 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20","stroke-width":"1",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)),E1t=[b1t],y1t=["onClick"],v1t=Yt(()=>l("span",{class:"-top-9 left-2 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Remount"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 30 30",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("g",{id:"surface1"},[l("path",{style:{},d:"M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z "})])])],-1)),S1t=[v1t],T1t=["onClick"],x1t=Yt(()=>l("span",{class:"-top-6 -left-6 border-gray-500 active:scale-90 absolute items-center w-7 h-7 hover:scale-150 transition text-red-200 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2",title:"Talk"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"top-1 left-1 relative w-4 h-4 text-red-600 hover:text-red-500",viewBox:"0 0 24 24",width:"2",height:"2",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},[l("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),l("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})])],-1)),C1t=[x1t],w1t={class:"w-fit"},R1t={class:"w-fit"},A1t={class:"relative grow"},N1t={class:"flex items-center space-x-3"},O1t=Yt(()=>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)),M1t=Yt(()=>l("span",null,"Stop",-1)),I1t=Yt(()=>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)),k1t=Yt(()=>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)),D1t=Yt(()=>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)),L1t=Yt(()=>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:"M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15.536a5 5 0 001.414 1.414m2.828-9.9a9 9 0 012.828-2.828"})],-1)),P1t=Yt(()=>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 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),U1t=Yt(()=>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)),F1t=Yt(()=>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)),B1t=Yt(()=>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)),G1t=Yt(()=>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)),V1t=Yt(()=>l("div",{class:"ml-auto gap-2"},null,-1));function z1t(t,e,n,s,i,r){const o=tt("MountedPersonalitiesList"),a=tt("MountedPersonalities"),c=tt("PersonalitiesCommands"),d=tt("ChatBarButton"),u=tt("UniversalForm");return T(),w(Pe,null,[l("div",axt,[i.filesList.length>0||i.showPersonalities?(T(),w("div",lxt,[l("div",cxt,[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:i.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=j(h=>i.showfilesList=!i.showfilesList,["stop"]))},pxt,8,dxt)]),i.filesList.length>0&&i.showfilesList==!0?(T(),w("div",_xt,[l("div",hxt,[V(ii,{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),w(Pe,null,Ke(i.filesList,(h,f)=>(T(),w("div",{key:f+"-"+h.name},[l("div",{class:"m-1",title:h.name},[l("div",mxt,[i.isFileSentList[f]?G("",!0):(T(),w("div",gxt,yxt)),vxt,l("div",{class:Ge(["line-clamp-1 w-3/5",i.isFileSentList[f]?"text-green-500":"text-red-200"])},K(h.name),3),Sxt,l("div",Txt,[l("p",xxt,K(r.computedFileSize(h.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:m=>r.removeItem(h)},Rxt,8,Cxt)])])],8,fxt)]))),128))]),_:1})])])):G("",!0),i.filesList.length>0?(T(),w("div",Axt,[l("div",Nxt,[Oxt,et(" "+K(i.totalSize)+" ("+K(i.filesList.length)+") ",1)]),Mxt,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]=(...h)=>r.clear_files&&r.clear_files(...h))},kxt),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]=(...h)=>r.download_files&&r.download_files(...h))},Lxt)])):G("",!0),i.showPersonalities?(T(),w("div",Pxt,[V(o,{ref:"mountedPersList",onShowPersList:r.onShowPersListFun,"on-mounted":r.onMountFun,"on-un-mounted":r.onUnmountFun,"on-remounted":t.onRemountFun,"on-talk":r.handleOnTalk,discussionPersonalities:r.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):G("",!0)])):G("",!0),i.selecting_model||i.selecting_binding?(T(),w("div",Uxt,[l("div",Fxt,[l("img",{src:i.loader_v0,class:"w-50 h-50"},null,8,Bxt),Gxt])])):G("",!0),l("div",Vxt,[l("div",zxt,[n.loading?(T(),w("div",Hxt,[l("img",{src:i.loader_v0},null,8,qxt),$xt])):G("",!0),n.loading?G("",!0):(T(),w("div",Yxt,[l("div",Wxt,[l("div",Kxt,[(T(!0),w(Pe,null,Ke(r.installedBindings,(h,f)=>(T(),w("div",{class:"w-fit h-fit inset-0 opacity-100",key:f+"-"+h.name,ref_for:!0,ref:"installedBindings",onMouseover:m=>r.showBindingHoveredIn(f),onMouseleave:e[4]||(e[4]=m=>r.showBindingHoveredOut())},[f!=r.binding_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.bindingHoveredIndex===f?"scale-150":""])},[l("div",Qxt,[l("button",{onClick:j(m=>r.setBinding(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:h.icon?h.icon:i.modelImgPlaceholder,onError:e[3]||(e[3]=(...m)=>i.modelImgPlaceholder&&i.modelImgPlaceholder(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.bindingHoveredIndex===f?"scale-150 ":""+h.name==r.binding_name?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,Zxt)],8,Xxt)])],2)):G("",!0)],40,jxt))),128))])]),l("div",Jxt,[l("button",{onClick:e[5]||(e[5]=j(h=>r.showModelConfig(),["prevent"])),class:"w-8 h-8"},[l("img",{src:r.currentBindingIcon,class:"w-8 h-8 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:r.currentBinding?r.currentBinding.name:"unknown"},null,8,e1t)])])])),n.loading?G("",!0):(T(),w("div",t1t,[l("div",n1t,[l("div",s1t,[(T(!0),w(Pe,null,Ke(r.installedModels,(h,f)=>(T(),w("div",{class:"w-fit h-fit",key:f+"-"+h.name,ref_for:!0,ref:"installedModels",onMouseover:m=>r.showModelHoveredIn(f),onMouseleave:e[7]||(e[7]=m=>r.showModelHoveredOut())},[f!=r.model_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.modelHoveredIndex===f?"scale-150":""])},[l("div",r1t,[l("button",{onClick:j(m=>r.setModel(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:h.icon?h.icon:i.modelImgPlaceholder,onError:e[6]||(e[6]=(...m)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.modelHoveredIndex===f?"scale-150 ":""+h.name==r.model_name?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,a1t)],8,o1t)])],2)):G("",!0)],40,i1t))),128))])]),l("div",l1t,[l("button",{onClick:e[8]||(e[8]=j(h=>r.copyModelName(),["prevent"])),class:"w-8 h-8"},[l("img",{src:r.currentModelIcon,class:"w-8 h-8 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:r.currentModel?r.currentModel.name:"unknown"},null,8,c1t)])])])),n.loading?G("",!0):(T(),w("div",d1t,[l("div",u1t,[l("div",p1t,[(T(!0),w(Pe,null,Ke(r.mountedPersonalities,(h,f)=>(T(),w("div",{class:"w-fit h-fit inset-0 opacity-100",key:f+"-"+h.name,ref_for:!0,ref:"mountedPersonalities",onMouseover:m=>r.showPersonalityHoveredIn(f),onMouseleave:e[10]||(e[10]=m=>r.showPersonalityHoveredOut())},[f!=r.personality_name?(T(),w("div",{key:0,class:Ge(["items-center flex flex-row relative z-20 hover:-translate-y-8 duration-300",i.personalityHoveredIndex===f?"scale-150":""])},[l("div",h1t,[l("button",{onClick:j(m=>r.onPersonalitySelected(h),["prevent"]),class:"w-10 h-10 relative"},[l("img",{src:i.bUrl+h.avatar,onError:e[9]||(e[9]=(...m)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...m)),class:Ge(["z-50 w-10 h-10 rounded-full object-fill text-red-700 border-2 border-gray-500 active:scale-90",i.personalityHoveredIndex===f?"scale-150 ":""+this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(h.full_path)?"border-secondary":"border-transparent z-0"]),title:h.name},null,42,m1t)],8,f1t),i.personalityHoveredIndex===f?(T(),w("button",{key:0,onClick:j(m=>r.unmountPersonality(h),["prevent"])},E1t,8,g1t)):G("",!0),i.personalityHoveredIndex===f?(T(),w("button",{key:1,onClick:j(m=>r.remount_personality(h),["prevent"])},S1t,8,y1t)):G("",!0),i.personalityHoveredIndex===f?(T(),w("button",{key:2,onClick:j(m=>r.handleOnTalk(h),["prevent"])},C1t,8,T1t)):G("",!0)])],2)):G("",!0)],40,_1t))),128))])]),V(a,{ref:"mountedPers",onShowPersList:r.onShowPersListFun,onReady:r.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])])),l("div",w1t,[i.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),dt(c,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),l("div",R1t,[r.isDataSourceNamesValid?(T(),dt(c,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":n.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):G("",!0)]),l("div",A1t,[l("form",null,[P(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[11]||(e[11]=h=>i.message=h),onPaste:e[12]||(e[12]=(...h)=>r.handlePaste&&r.handlePaste(...h)),onKeydown:e[13]||(e[13]=Vs(j(h=>r.submitOnEnter(h),["exact"]),["enter"])),class:"w-full p-3 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),[[pe,i.message]])])]),l("div",N1t,[n.loading?(T(),dt(d,{key:0,onClick:r.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>[O1t]),default:Ie(()=>[M1t]),_:1},8,["onClick"])):(T(),dt(d,{key:1,onClick:r.submit,title:"Send"},{icon:Ie(()=>[I1t]),_:1},8,["onClick"])),V(d,{onClick:r.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>[k1t]),_:1},8,["onClick"]),V(d,{onClick:r.startSpeechRecognition,class:Ge({"text-red-500":i.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>[D1t]),_:1},8,["onClick","class"]),t.$store.state.config.active_tts_service!="None"&&t.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),dt(d,{key:2,onClick:e[14]||(e[14]=h=>i.is_rt?r.stopRTCom:r.startRTCom),class:Ge(i.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>[L1t]),_:1},8,["class"])):G("",!0),V(d,{onClick:r.add_file,title:"Send file"},{icon:Ie(()=>[P1t]),_:1},8,["onClick"]),V(d,{onClick:r.takePicture,title:"Take picture"},{icon:Ie(()=>[U1t]),_:1},8,["onClick"]),V(d,{onClick:r.addWebLink,title:"Add web link"},{icon:Ie(()=>[F1t]),_:1},8,["onClick"]),V(d,{onClick:r.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>[B1t]),_:1},8,["onClick"]),V(d,{onClick:r.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>[G1t]),_:1},8,["onClick"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[15]||(e[15]=(...h)=>r.addFiles&&r.addFiles(...h)),multiple:"",style:{display:"none"}},null,544)]),V1t])]),V(u,{ref:"universalForm",class:"z-20"},null,512)],64)}const uN=ot(oxt,[["render",z1t],["__scopeId","data-v-edbefc1f"]]);const H1t={name:"WelcomeComponent",setup(){const t=qk();return{logoSrc:Je(()=>t.state.config&&t.state.config.app_custom_logo?`/user_infos/${t.state.config.app_custom_logo}`:gs)}}},q1t=t=>(Ss("data-v-b052c8c7"),t=t(),Ts(),t),$1t={class:"flex flex-col items-center justify-center w-full h-full min-h-screen bg-gradient-to-br from-indigo-100 to-purple-100 dark:from-indigo-900 dark:to-purple-900 p-8"},Y1t={class:"text-center max-w-4xl"},W1t={class:"flex items-center justify-center gap-8 mb-12"},K1t={class:"relative w-24 h-24"},j1t=["src"],Q1t=q1t(()=>l("div",{class:"flex flex-col items-start"},[l("h1",{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"}," LoLLMS "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1)),X1t=Na('

    Welcome to LoLLMS WebUI

    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.

    Discover the capabilities of LoLLMS:

    • Engage in natural language conversations
    • Generate creative content and ideas
    • Analyze complex data and provide insights
    • Assist with coding and technical tasks
    • Process and understand multimodal inputs
    ',1);function Z1t(t,e,n,s,i,r){return T(),w("div",$1t,[l("div",Y1t,[l("div",W1t,[l("div",K1t,[l("img",{src:s.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,j1t)]),Q1t]),X1t])])}const pN=ot(H1t,[["render",Z1t],["__scopeId","data-v-b052c8c7"]]);var J1t=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),Wd=globalThis&&globalThis.__assign||function(){return Wd=Object.assign||function(t){for(var e,n=1,s=arguments.length;n(Ss("data-v-09e89fd8"),t=t(),Ts(),t),oCt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-100 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden"},aCt={class:"absolute inset-0 pointer-events-none overflow-hidden"},lCt=Mt(()=>l("svg",{class:"w-2 h-2 text-yellow-300",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})],-1)),cCt=[lCt],dCt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},uCt={class:"mb-8 w-full"},pCt=Mt(()=>l("h1",{class:"text-5xl md:text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-400 dark:to-purple-400 mb-2 animate-glow"}," LoLLMS ",-1)),_Ct=Mt(()=>l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),hCt=Mt(()=>l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),fCt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},mCt={class:"w-full h-24 relative overflow-hidden bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded-full shadow-lg"},gCt={class:"w-full max-w-2xl"},bCt={role:"status",class:"w-full"},ECt={class:"text-xl text-gray-700 dark:text-gray-300"},yCt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},vCt=Mt(()=>l("i",{"data-feather":"chevron-right"},null,-1)),SCt=[vCt],TCt=Mt(()=>l("i",{"data-feather":"chevron-left"},null,-1)),xCt=[TCt],CCt=Na('',1),wCt=[CCt],RCt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] unicolor-panels-color dark:bg-bg-dark-tone"},ACt={class:"text-light-text-panel dark:text-dark-text-panel panels-color sticky z-10 top-0"},NCt={class:"flex-row p-4 flex items-center gap-3 flex-0"},OCt=Mt(()=>l("i",{"data-feather":"plus"},null,-1)),MCt=[OCt],ICt=Mt(()=>l("i",{"data-feather":"check-square"},null,-1)),kCt=[ICt],DCt={class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},LCt=Mt(()=>l("i",{"data-feather":"database"},null,-1)),PCt=[LCt],UCt=Mt(()=>l("i",{"data-feather":"log-in"},null,-1)),FCt=[UCt],BCt=Mt(()=>l("i",{"data-feather":"folder"},null,-1)),GCt=[BCt],VCt={key:1,class:"dropdown"},zCt=Mt(()=>l("i",{"data-feather":"search"},null,-1)),HCt=[zCt],qCt={key:2,class:"flex gap-3 flex-1 items-center duration-75"},$Ct=Mt(()=>l("i",{"data-feather":"x"},null,-1)),YCt=[$Ct],WCt=Mt(()=>l("i",{"data-feather":"check"},null,-1)),KCt=[WCt],jCt=Mt(()=>l("i",{"data-feather":"hard-drive"},null,-1)),QCt=[jCt],XCt=Mt(()=>l("i",{"data-feather":"check-circle"},null,-1)),ZCt=[XCt],JCt=Mt(()=>l("i",{"data-feather":"x-octagon"},null,-1)),ewt=[JCt],twt=Mt(()=>l("i",{"data-feather":"book"},null,-1)),nwt=[twt],swt={key:7,title:"Loading..",class:"flex flex-row flex-grow justify-end"},iwt=Mt(()=>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)),rwt=[iwt],owt={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},awt={class:"p-4 pt-2"},lwt={class:"relative"},cwt=Mt(()=>l("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[l("div",{class:"scale-75"},[l("i",{"data-feather":"search"})])],-1)),dwt={class:"absolute inset-y-0 right-0 flex items-center pr-3"},uwt=Mt(()=>l("i",{"data-feather":"x"},null,-1)),pwt=[uwt],_wt={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},hwt={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},fwt={class:"flex flex-row flex-grow"},mwt={key:0},gwt={class:"flex flex-row"},bwt={key:0,class:"flex gap-3"},Ewt=Mt(()=>l("i",{"data-feather":"trash"},null,-1)),ywt=[Ewt],vwt={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},Swt=Mt(()=>l("i",{"data-feather":"check"},null,-1)),Twt=[Swt],xwt=Mt(()=>l("i",{"data-feather":"x"},null,-1)),Cwt=[xwt],wwt={class:"flex gap-3"},Rwt=Mt(()=>l("i",{"data-feather":"codepen"},null,-1)),Awt=[Rwt],Nwt=Mt(()=>l("i",{"data-feather":"folder"},null,-1)),Owt=[Nwt],Mwt=Mt(()=>l("i",{"data-feather":"bookmark"},null,-1)),Iwt=[Mwt],kwt=Mt(()=>l("i",{"data-feather":"list"},null,-1)),Dwt=[kwt],Lwt={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},Pwt={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"},Uwt=Mt(()=>l("p",{class:"px-3"},"No discussions are found",-1)),Fwt=[Uwt],Bwt=Mt(()=>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)),Gwt={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Vwt={key:2,class:"relative flex flex-col flex-grow"},zwt={class:"container pt-4 pb-50 mb-50 w-full"},Hwt={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 h-[600px]"},qwt=Mt(()=>l("h2",{class:"text-2xl font-bold mb-4"},"Prompt examples",-1)),$wt={key:0,class:"overflow-y-auto flex-grow pr-2 custom-scrollbar"},Ywt={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-2"},Wwt=["onClick"],Kwt=["title"],jwt={class:"absolute inset-0 overflow-hidden"},Qwt=Mt(()=>l("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white dark:to-gray-800 group-hover:opacity-0 transition-opacity duration-300"},null,-1)),Xwt=Mt(()=>l("div",{class:"mt-2 text-sm text-gray-500 dark:text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1)),Zwt=Mt(()=>l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1)),Jwt=Mt(()=>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)),eRt={key:0,class:"flex flex-row items-center justify-center h-10"},tRt={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"},nRt={ref:"isolatedContent",class:"h-full"},sRt={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"},iRt={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},rRt={setup(){},data(){return{lastMessageHtml:"",defaultMessageHtml:` @@ -315,7 +315,7 @@ Error: `+e.error,4,!1)},async unmount_personality(t){if(!t)return{status:!1,erro
    - `,memory_icon:iCt,active_skills:rCt,inactive_skills:oCt,skillsRegistry:aCt,robot:lCt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,leftPanelCollapsed:!1,rightPanelCollapsed:!0,isOpen:!1,discussion_id:0}},methods:{getRandomEdgePosition(){switch(Math.floor(Math.random()*4)){case 0:return 0;case 1:return 100;case 2:return Math.random()*100;case 3:return Math.random()*100}},selectPrompt(t){this.$refs.chatBox.message=t},extractHtml(){if(this.discussionArr.length>0){const t=this.discussionArr[this.discussionArr.length-1].content,e="```html",n="```";let s=t.indexOf(e);if(s===-1)return this.lastMessageHtml=this.defaultMessageHtml,this.renderIsolatedContent(),this.defaultMessageHtml;s+=e.length;let i=t.indexOf(n,s);i===-1?this.lastMessageHtml=t.slice(s).trim():this.lastMessageHtml=t.slice(s,i).trim()}else this.lastMessageHtml=this.defaultMessageHtml;this.renderIsolatedContent()},renderIsolatedContent(){const t=document.createElement("iframe");if(t.style.border="none",t.style.width="100%",t.style.height="100%",this.$refs.isolatedContent){this.$refs.isolatedContent.innerHTML="",this.$refs.isolatedContent.appendChild(t);const e=t.contentDocument||t.contentWindow.document;e.open(),e.write(` + `,memory_icon:tCt,active_skills:nCt,inactive_skills:sCt,skillsRegistry:iCt,robot:rCt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,leftPanelCollapsed:!1,rightPanelCollapsed:!0,isOpen:!1,discussion_id:0}},methods:{getRandomEdgePosition(){switch(Math.floor(Math.random()*4)){case 0:return 0;case 1:return 100;case 2:return Math.random()*100;case 3:return Math.random()*100}},selectPrompt(t){this.$refs.chatBox.message=t},extractHtml(){if(this.discussionArr.length>0){const t=this.discussionArr[this.discussionArr.length-1].content,e="```html",n="```";let s=t.indexOf(e);if(s===-1)return this.lastMessageHtml=this.defaultMessageHtml,this.renderIsolatedContent(),this.defaultMessageHtml;s+=e.length;let i=t.indexOf(n,s);i===-1?this.lastMessageHtml=t.slice(s).trim():this.lastMessageHtml=t.slice(s,i).trim()}else this.lastMessageHtml=this.defaultMessageHtml;this.renderIsolatedContent()},renderIsolatedContent(){const t=document.createElement("iframe");if(t.style.border="none",t.style.width="100%",t.style.height="100%",this.$refs.isolatedContent){this.$refs.isolatedContent.innerHTML="",this.$refs.isolatedContent.appendChild(t);const e=t.contentDocument||t.contentWindow.document;e.open(),e.write(` ${this.lastMessageHtml} `),e.close()}},async triggerRobotAction(){this.rightPanelCollapsed=!this.rightPanelCollapsed,this.rightPanelCollapsed||(this.leftPanelCollapsed=!0,this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},add_webpage(){console.log("addWebLink received"),this.$refs.web_url_input_box.showPanel()},addWebpage(){ae.post("/add_webpage",{client_id:this.client_id,url:this.$refs.web_url_input_box.inputText},{headers:this.posts_headers}).then(t=>{t&&t.status&&(console.log("Done"),this.recoverFiles())})},show_progress(t){this.progress_visibility_val=!0},hide_progress(t){this.progress_visibility_val=!1},update_progress(t){console.log("Progress update"),this.progress_value=t.value},onSettingsBinding(){try{this.isLoading=!0,ae.get("/get_active_binding_settings").then(t=>{if(this.isLoading=!1,t)if(t.data&&Object.keys(t.data).length>0){const e=this.$store.state.bindingsZoo.find(n=>n.name==this.state.config.binding_name);this.$store.state.universalForm.showForm(t.data,"Binding settings - "+e.binding.name,"Save changes","Cancel").then(n=>{try{ae.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:n}).then(s=>{s&&s.data?(console.log("binding set with new settings",s.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses. `+s,4,!1),this.isLoading=!1)})}catch(s){this.$store.state.toast.showToast(`Did not get binding settings responses. @@ -328,15 +328,15 @@ ${e} ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Le(()=>{ze.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},saveMarkdowntoFile(t,e){e=e||"data.md";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([t],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const s=new FileReader;s.onload=i=>e(this.parseJsonObj(i.target.result)),s.onerror=i=>n(i),s.readAsText(t)})},async exportDiscussionsAsMarkdown(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(n+"."+s+"."+i+"."+r+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(t,"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 t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),s=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(n+"."+s+"."+i+"."+r+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(t,"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(t){},async importDiscussions(t){const e=await this.parseJsonFile(t.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 t=this.$store.state.personalities;this.personalityAvatars=t.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(t){if(t.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===t),n=this.personalityAvatars[e];if(n)return console.log("Avatar",n.avatar),n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(t){if(t.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[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(){console.log("Created discussions view");const e=(await ae.get("/get_versionID")).data.versionId;qe.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",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(()=>{ze.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(n){console.log("Error cought:",n)}try{for(this.$store.state.loading_infos="Loading Configuration";qe.id===void 0;)await new Promise(n=>setTimeout(n,100));this.$store.state.client_id=qe.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(n){console.log("Error cought:",n)}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(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchisRTOn")}catch(n){console.log("Error cought:",n)}this.$store.state.isConnected=!0,this.$store.state.client_id=qe.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,qe.on("connected",this.socketIOConnected),qe.on("disconnected",this.socketIODisconnected),console.log("Added events"),qe.on("show_progress",this.show_progress),qe.on("hide_progress",this.hide_progress),qe.on("update_progress",this.update_progress),qe.on("notification",this.notify),qe.on("new_message",this.new_message),qe.on("update_message",this.update_message),qe.on("close_message",this.finalMsgEvent),qe.on("disucssion_renamed",n=>{console.log("Received new title",n.discussion_id,n.title);const s=this.list.findIndex(r=>r.id==n.discussion_id),i=this.list[s];i.title=n.title}),qe.onclose=n=>{console.log("WebSocket connection closed:",n.code,n.reason),this.socketIODisconnected()},qe.on("connect_error",n=>{n.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",n),this.$store.state.isConnected=!1}),qe.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),qe.disconnect()}},async mounted(){qe.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{ze.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Le(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:OE,Message:dN,ChatBox:uN,WelcomeComponent:pN,ChoiceDialog:NE,ProgressBar:Wu,InputBox:aN,SkillsLibraryViewer:lN},watch:{messages:{handler:"extractHtml",deep:!0},progress_visibility_val(t){console.log("progress_visibility changed to "+t)},filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Le(()=>{ze.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Le(()=>{ze.replace()})},isSearch(){Le(()=>{ze.replace()})}},computed:{...aD({versionId:t=>t.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+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(t){this.$store.state.isModelOk=t}},isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const t=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(n=>n.full_path===t);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),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 qe.id},showLeftPanel(){return this.$store.state.ready&&!this.leftPanelCollapsed},showRightPanel(){return this.$store.state.ready&&!this.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 Le(()=>{ze.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},cRt=Object.assign(lRt,{__name:"DiscussionsView",setup(t){return ci(()=>{TN()}),ae.defaults.baseURL="/",(e,n)=>(T(),w(Pe,null,[V(Us,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?G("",!0):(T(),w("div",cCt,[l("div",dCt,[(T(),w(Pe,null,Ke(50,s=>l("div",{key:s,class:"absolute animate-fall",style:Ht({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},pCt,4)),64))]),l("div",_Ct,[l("div",hCt,[fCt,mCt,gCt,l("p",bCt,K(e.version_info),1),l("div",ECt,[l("img",{class:"w-24 h-24 animate-glow rounded-full absolute top-0 transition-all duration-300 ease-linear",style:Ht({left:`calc(${e.loading_progress}% - 3rem)`}),title:"LoLLMS WebUI",src:gs,alt:"Logo"},null,4)])]),l("div",yCt,[l("div",vCt,[l("p",SCt,K(e.loading_infos)+"... ",1),l("p",TCt,K(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),e.isReady?(T(),w("button",{key:0,onClick:n[0]||(n[0]=(...s)=>e.togglePanel&&e.togglePanel(...s)),class:"absolute top-2 left-2 p-3 bg-white bg-opacity-0 cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 hover:shadow-xl group"},[P(l("div",null,CCt,512),[[wt,e.leftPanelCollapsed]]),P(l("div",null,RCt,512),[[wt,!e.leftPanelCollapsed]])])):G("",!0),e.isReady?(T(),w("button",{key:1,onClick:n[1]||(n[1]=j(s=>e.triggerRobotAction(),["stop"])),class:"absolute z-50 bottom-20 right-2 p-3 bg-white bg-opacity-10 rounded-full cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 animate-pulse shadow-lg hover:shadow-xl group"},NCt)):G("",!0),V(Us,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),w("div",OCt,[l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[29]||(n[29]=j(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",MCt,[l("div",ICt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[2]||(n[2]=s=>e.createNewDiscussion())},DCt),l("button",{class:Ge(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[3]||(n[3]=s=>e.isCheckbox=!e.isCheckbox)},PCt,2),l("button",UCt,[l("i",{"data-feather":"trash-2",onClick:n[4]||(n[4]=j(()=>{},["stop"]))})]),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:n[5]||(n[5]=j(s=>e.database_selectorDialogVisible=!0,["stop"]))},BCt),l("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[6]||(n[6]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[7]||(n[7]=j(s=>e.$refs.fileDialog.click(),["stop"]))},VCt),l("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:n[8]||(n[8]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?G("",!0):(T(),w("button",{key:0,title:"Import discussion bundle",onClick:n[9]||(n[9]=j(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},HCt)),e.isOpen?(T(),w("div",qCt,[l("button",{onClick:n[10]||(n[10]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},"LOLLMS"),l("button",{onClick:n[11]||(n[11]=(...s)=>e.importChatGPT&&e.importChatGPT(...s))},"ChatGPT")])):G("",!0),l("button",{class:Ge(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[12]||(n[12]=s=>e.isSearch=!e.isSearch)},YCt,2),e.showSaveConfirmation?(T(),w("div",WCt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:n[13]||(n[13]=j(s=>e.showSaveConfirmation=!1,["stop"]))},jCt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:n[14]||(n[14]=j(s=>e.save_configuration(),["stop"]))},XCt)])):G("",!0),e.loading?G("",!0):(T(),w("button",{key:3,type:"button",onClick:n[15]||(n[15]=j((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},JCt)),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),w("button",{key:4,type:"button",onClick:n[16]||(n[16]=j((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},twt)):G("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),w("button",{key:5,type:"button",onClick:n[17]||(n[17]=j((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},swt)):G("",!0),e.loading?G("",!0):(T(),w("button",{key:6,type:"button",onClick:n[18]||(n[18]=j((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},rwt)),e.loading?(T(),w("div",owt,lwt)):G("",!0)]),e.isSearch?(T(),w("div",cwt,[l("div",dwt,[l("div",uwt,[pwt,l("div",_wt,[l("div",{class:Ge(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[19]||(n[19]=s=>e.filterTitle="")},fwt,2)]),P(l("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light 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",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[20]||(n[20]=s=>e.filterTitle=s),onInput:n[21]||(n[21]=s=>e.filterDiscussions())},null,544),[[pe,e.filterTitle]])])])])):G("",!0),e.isCheckbox?(T(),w("hr",mwt)):G("",!0),e.isCheckbox?(T(),w("div",gwt,[l("div",bwt,[e.selectedDiscussions.length>0?(T(),w("p",Ewt,"Selected: "+K(e.selectedDiscussions.length),1)):G("",!0)]),l("div",ywt,[e.selectedDiscussions.length>0?(T(),w("div",vwt,[e.showConfirmation?G("",!0):(T(),w("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[22]||(n[22]=j(s=>e.showConfirmation=!0,["stop"]))},Twt)),e.showConfirmation?(T(),w("div",xwt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[23]||(n[23]=j((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},wwt),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[24]||(n[24]=j(s=>e.showConfirmation=!1,["stop"]))},Awt)])):G("",!0)])):G("",!0),l("div",Nwt,[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:n[25]||(n[25]=j((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},Mwt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[26]||(n[26]=j((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},kwt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[27]||(n[27]=j((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},Lwt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[28]||(n[28]=j((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},Uwt)])])])):G("",!0)]),l("div",Fwt,[l("div",{class:Ge(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Ge([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(e.list,(s,i)=>(T(),dt(OE,{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:r=>e.selectDiscussion(s),onDelete:r=>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})):G("",!0),e.list.length<1?(T(),w("div",Bwt,Vwt)):G("",!0),zwt],2)],2)])],32),l("div",{class:"absolute h-15 bottom-0 left-0 w-full unicolor-panels-color light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:n[30]||(n[30]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[l("p",Hwt,K(e.formatted_database_name.replace("_"," ")),1)])])):G("",!0)]),_:1}),e.isReady?(T(),w("div",qwt,[l("div",{id:"messages-list",class:Ge(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",$wt,[e.discussionArr.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(e.discussionArr,(s,i)=>(T(),dt(dN,{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(),w("div",Ywt,[Wwt,e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",Kwt,[l("div",jwt,[(T(!0),w(Pe,null,Ke(e.personality.prompts_list,(s,i)=>(T(),w("div",{key:i,onClick:r=>e.selectPrompt(s),class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-4 cursor-pointer hover:shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between h-[220px] overflow-hidden group"},[l("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden relative h-full"},[l("div",Zwt,K(s),1),Jwt],8,Xwt),eRt],8,Qwt))),128))])])):G("",!0)])):G("",!0)]),_:1})):G("",!0),e.currentDiscussion.id?G("",!0):(T(),dt(pN,{key:1})),tRt]),nRt],2),e.currentDiscussion.id?(T(),w("div",sRt,[V(uN,{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"])])):G("",!0)])):G("",!0),V(Us,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),w("div",iRt,[l("div",rRt,null,512)])):G("",!0)]),_:1}),V(NE,{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"]),P(l("div",oRt,[V(Wu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",aRt,K(e.loading_infos)+" ...",1)],512),[[wt,e.progress_visibility]]),V(aN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),V(lN,{ref:"skills_lib"},null,512)],64))}}),dRt=ot(cRt,[["__scopeId","data-v-09e89fd8"]]);/** +`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(t){if(t.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[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(){console.log("Created discussions view");const e=(await ae.get("/get_versionID")).data.versionId;qe.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",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(()=>{ze.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(n){console.log("Error cought:",n)}try{for(this.$store.state.loading_infos="Loading Configuration";qe.id===void 0;)await new Promise(n=>setTimeout(n,100));this.$store.state.client_id=qe.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(n){console.log("Error cought:",n)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(n){console.log("Error cought:",n)}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(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(n){console.log("Error cought:",n)}try{await this.$store.dispatch("fetchisRTOn")}catch(n){console.log("Error cought:",n)}this.$store.state.isConnected=!0,this.$store.state.client_id=qe.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,qe.on("connected",this.socketIOConnected),qe.on("disconnected",this.socketIODisconnected),console.log("Added events"),qe.on("show_progress",this.show_progress),qe.on("hide_progress",this.hide_progress),qe.on("update_progress",this.update_progress),qe.on("notification",this.notify),qe.on("new_message",this.new_message),qe.on("update_message",this.update_message),qe.on("close_message",this.finalMsgEvent),qe.on("disucssion_renamed",n=>{console.log("Received new title",n.discussion_id,n.title);const s=this.list.findIndex(r=>r.id==n.discussion_id),i=this.list[s];i.title=n.title}),qe.onclose=n=>{console.log("WebSocket connection closed:",n.code,n.reason),this.socketIODisconnected()},qe.on("connect_error",n=>{n.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",n),this.$store.state.isConnected=!1}),qe.onerror=n=>{console.log("WebSocket connection error:",n.code,n.reason),this.socketIODisconnected(),qe.disconnect()}},async mounted(){qe.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{ze.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Le(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:OE,Message:dN,ChatBox:uN,WelcomeComponent:pN,ChoiceDialog:NE,ProgressBar:Wu,InputBox:aN,SkillsLibraryViewer:lN},watch:{messages:{handler:"extractHtml",deep:!0},progress_visibility_val(t){console.log("progress_visibility changed to "+t)},filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Le(()=>{ze.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Le(()=>{ze.replace()})},isSearch(){Le(()=>{ze.replace()})}},computed:{...aD({versionId:t=>t.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?" v"+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(t){this.$store.state.isModelOk=t}},isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const t=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(n=>n.full_path===t);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),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 qe.id},showLeftPanel(){return this.$store.state.ready&&!this.leftPanelCollapsed},showRightPanel(){return this.$store.state.ready&&!this.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 Le(()=>{ze.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},oRt=Object.assign(rRt,{__name:"DiscussionsView",setup(t){return ci(()=>{TN()}),ae.defaults.baseURL="/",(e,n)=>(T(),w(Pe,null,[V(Us,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?G("",!0):(T(),w("div",oCt,[l("div",aCt,[(T(),w(Pe,null,Ke(50,s=>l("div",{key:s,class:"absolute animate-fall",style:Ht({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})},cCt,4)),64))]),l("div",dCt,[l("div",uCt,[pCt,_Ct,hCt,l("p",fCt,K(e.version_info),1),l("div",mCt,[l("img",{class:"w-24 h-24 animate-glow rounded-full absolute top-0 transition-all duration-300 ease-linear",style:Ht({left:`calc(${e.loading_progress}% - 3rem)`}),title:"LoLLMS WebUI",src:gs,alt:"Logo"},null,4)])]),l("div",gCt,[l("div",bCt,[l("p",ECt,K(e.loading_infos)+"... ",1),l("p",yCt,K(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),e.isReady?(T(),w("button",{key:0,onClick:n[0]||(n[0]=(...s)=>e.togglePanel&&e.togglePanel(...s)),class:"absolute top-2 left-2 p-3 bg-white bg-opacity-0 cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 hover:shadow-xl group"},[P(l("div",null,SCt,512),[[wt,e.leftPanelCollapsed]]),P(l("div",null,xCt,512),[[wt,!e.leftPanelCollapsed]])])):G("",!0),e.isReady?(T(),w("button",{key:1,onClick:n[1]||(n[1]=j(s=>e.triggerRobotAction(),["stop"])),class:"absolute z-50 bottom-20 right-2 p-3 bg-white bg-opacity-10 rounded-full cursor-pointer transition-all duration-300 hover:scale-110 hover:bg-opacity-20 animate-pulse shadow-lg hover:shadow-xl group"},wCt)):G("",!0),V(Us,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),w("div",RCt,[l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[29]||(n[29]=j(s=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",ACt,[l("div",NCt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[2]||(n[2]=s=>e.createNewDiscussion())},MCt),l("button",{class:Ge(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[3]||(n[3]=s=>e.isCheckbox=!e.isCheckbox)},kCt,2),l("button",DCt,[l("i",{"data-feather":"trash-2",onClick:n[4]||(n[4]=j(()=>{},["stop"]))})]),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:n[5]||(n[5]=j(s=>e.database_selectorDialogVisible=!0,["stop"]))},PCt),l("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[6]||(n[6]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},null,544),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[7]||(n[7]=j(s=>e.$refs.fileDialog.click(),["stop"]))},FCt),l("input",{type:"file",ref:"bundleLoadingDialog",style:{display:"none"},onChange:n[8]||(n[8]=(...s)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...s))},null,544),e.showSaveConfirmation?G("",!0):(T(),w("button",{key:0,title:"Import discussion bundle",onClick:n[9]||(n[9]=j(s=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-2xl hover:text-secondary duration-75 active:scale-90"},GCt)),e.isOpen?(T(),w("div",VCt,[l("button",{onClick:n[10]||(n[10]=(...s)=>e.importDiscussions&&e.importDiscussions(...s))},"LOLLMS"),l("button",{onClick:n[11]||(n[11]=(...s)=>e.importChatGPT&&e.importChatGPT(...s))},"ChatGPT")])):G("",!0),l("button",{class:Ge(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[12]||(n[12]=s=>e.isSearch=!e.isSearch)},HCt,2),e.showSaveConfirmation?(T(),w("div",qCt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:n[13]||(n[13]=j(s=>e.showSaveConfirmation=!1,["stop"]))},YCt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:n[14]||(n[14]=j(s=>e.save_configuration(),["stop"]))},KCt)])):G("",!0),e.loading?G("",!0):(T(),w("button",{key:3,type:"button",onClick:n[15]||(n[15]=j((...s)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...s),["stop"])),title:"Add this discussion content to skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},QCt)),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),w("button",{key:4,type:"button",onClick:n[16]||(n[16]=j((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is activated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},ZCt)):G("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),w("button",{key:5,type:"button",onClick:n[17]||(n[17]=j((...s)=>e.toggleSkillsLib&&e.toggleSkillsLib(...s),["stop"])),title:"Skills database is deactivated",class:"w-6 hover:text-secondary duration-75 active:scale-90"},ewt)):G("",!0),e.loading?G("",!0):(T(),w("button",{key:6,type:"button",onClick:n[18]||(n[18]=j((...s)=>e.showSkillsLib&&e.showSkillsLib(...s),["stop"])),title:"Show Skills database",class:"w-6 hover:text-secondary duration-75 active:scale-90"},nwt)),e.loading?(T(),w("div",swt,rwt)):G("",!0)]),e.isSearch?(T(),w("div",owt,[l("div",awt,[l("div",lwt,[cwt,l("div",dwt,[l("div",{class:Ge(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[19]||(n[19]=s=>e.filterTitle="")},pwt,2)]),P(l("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light 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",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[20]||(n[20]=s=>e.filterTitle=s),onInput:n[21]||(n[21]=s=>e.filterDiscussions())},null,544),[[pe,e.filterTitle]])])])])):G("",!0),e.isCheckbox?(T(),w("hr",_wt)):G("",!0),e.isCheckbox?(T(),w("div",hwt,[l("div",fwt,[e.selectedDiscussions.length>0?(T(),w("p",mwt,"Selected: "+K(e.selectedDiscussions.length),1)):G("",!0)]),l("div",gwt,[e.selectedDiscussions.length>0?(T(),w("div",bwt,[e.showConfirmation?G("",!0):(T(),w("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[22]||(n[22]=j(s=>e.showConfirmation=!0,["stop"]))},ywt)),e.showConfirmation?(T(),w("div",vwt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[23]||(n[23]=j((...s)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...s),["stop"]))},Twt),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[24]||(n[24]=j(s=>e.showConfirmation=!1,["stop"]))},Cwt)])):G("",!0)])):G("",!0),l("div",wwt,[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:n[25]||(n[25]=j((...s)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...s),["stop"]))},Awt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[26]||(n[26]=j((...s)=>e.exportDiscussions&&e.exportDiscussions(...s),["stop"]))},Owt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[27]||(n[27]=j((...s)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...s),["stop"]))},Iwt),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[28]||(n[28]=j((...s)=>e.selectAllDiscussions&&e.selectAllDiscussions(...s),["stop"]))},Dwt)])])])):G("",!0)]),l("div",Lwt,[l("div",{class:Ge(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Ge([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(e.list,(s,i)=>(T(),dt(OE,{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:r=>e.selectDiscussion(s),onDelete:r=>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})):G("",!0),e.list.length<1?(T(),w("div",Pwt,Fwt)):G("",!0),Bwt],2)],2)])],32),l("div",{class:"absolute h-15 bottom-0 left-0 w-full unicolor-panels-color light-text-panel py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:n[30]||(n[30]=(...s)=>e.showDatabaseSelector&&e.showDatabaseSelector(...s))},[l("p",Gwt,K(e.formatted_database_name.replace("_"," ")),1)])])):G("",!0)]),_:1}),e.isReady?(T(),w("div",Vwt,[l("div",{id:"messages-list",class:Ge(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",zwt,[e.discussionArr.length>0?(T(),dt(ii,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(e.discussionArr,(s,i)=>(T(),dt(dN,{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(),w("div",Hwt,[qwt,e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",$wt,[l("div",Ywt,[(T(!0),w(Pe,null,Ke(e.personality.prompts_list,(s,i)=>(T(),w("div",{key:i,onClick:r=>e.selectPrompt(s),class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-4 cursor-pointer hover:shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between h-[220px] overflow-hidden group"},[l("div",{title:s,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden relative h-full"},[l("div",jwt,K(s),1),Qwt],8,Kwt),Xwt],8,Wwt))),128))])])):G("",!0)])):G("",!0)]),_:1})):G("",!0),e.currentDiscussion.id?G("",!0):(T(),dt(pN,{key:1})),Zwt]),Jwt],2),e.currentDiscussion.id?(T(),w("div",eRt,[V(uN,{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"])])):G("",!0)])):G("",!0),V(Us,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),w("div",tRt,[l("div",nRt,null,512)])):G("",!0)]),_:1}),V(NE,{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"]),P(l("div",sRt,[V(Wu,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",iRt,K(e.loading_infos)+" ...",1)],512),[[wt,e.progress_visibility]]),V(aN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),V(lN,{ref:"skills_lib"},null,512)],64))}}),aRt=ot(oRt,[["__scopeId","data-v-09e89fd8"]]);/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const HE="159",uRt=0,A1=1,pRt=2,xN=1,_Rt=2,Ci=3,Li=0,$n=1,Js=2,ur=0,jo=1,N1=2,O1=3,M1=4,hRt=5,Fr=100,fRt=101,mRt=102,I1=103,k1=104,gRt=200,bRt=201,ERt=202,yRt=203,jg=204,Qg=205,vRt=206,SRt=207,TRt=208,xRt=209,CRt=210,wRt=211,RRt=212,ARt=213,NRt=214,ORt=0,MRt=1,IRt=2,nu=3,kRt=4,DRt=5,LRt=6,PRt=7,qE=0,URt=1,FRt=2,pr=0,BRt=1,GRt=2,VRt=3,zRt=4,HRt=5,D1="attached",qRt="detached",CN=300,da=301,ua=302,Xg=303,Zg=304,ep=306,pa=1e3,us=1001,su=1002,gn=1003,Jg=1004,wd=1005,zn=1006,wN=1007,so=1008,_r=1009,$Rt=1010,YRt=1011,$E=1012,RN=1013,ar=1014,Ai=1015,ql=1016,AN=1017,NN=1018,Kr=1020,WRt=1021,ps=1023,KRt=1024,jRt=1025,jr=1026,_a=1027,QRt=1028,ON=1029,XRt=1030,MN=1031,IN=1033,Cm=33776,wm=33777,Rm=33778,Am=33779,L1=35840,P1=35841,U1=35842,F1=35843,kN=36196,B1=37492,G1=37496,V1=37808,z1=37809,H1=37810,q1=37811,$1=37812,Y1=37813,W1=37814,K1=37815,j1=37816,Q1=37817,X1=37818,Z1=37819,J1=37820,eC=37821,Nm=36492,tC=36494,nC=36495,ZRt=36283,sC=36284,iC=36285,rC=36286,$l=2300,ha=2301,Om=2302,oC=2400,aC=2401,lC=2402,JRt=2500,eAt=0,DN=1,eb=2,LN=3e3,Qr=3001,tAt=3200,nAt=3201,YE=0,sAt=1,_s="",tn="srgb",wn="srgb-linear",WE="display-p3",tp="display-p3-linear",iu="linear",Kt="srgb",ru="rec709",ou="p3",bo=7680,cC=519,iAt=512,rAt=513,oAt=514,PN=515,aAt=516,lAt=517,cAt=518,dAt=519,tb=35044,dC="300 es",nb=1035,Ni=2e3,au=2001;class Ua{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(n)===-1&&s[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const s=this._listeners[e.type];if(s!==void 0){e.target=this;const i=s.slice(0);for(let r=0,o=i.length;r>8&255]+Rn[t>>16&255]+Rn[t>>24&255]+"-"+Rn[e&255]+Rn[e>>8&255]+"-"+Rn[e>>16&15|64]+Rn[e>>24&255]+"-"+Rn[n&63|128]+Rn[n>>8&255]+"-"+Rn[n>>16&255]+Rn[n>>24&255]+Rn[s&255]+Rn[s>>8&255]+Rn[s>>16&255]+Rn[s>>24&255]).toLowerCase()}function Nn(t,e,n){return Math.max(e,Math.min(n,t))}function KE(t,e){return(t%e+e)%e}function uAt(t,e,n,s,i){return s+(t-e)*(i-s)/(n-e)}function pAt(t,e,n){return t!==e?(n-t)/(e-t):0}function xl(t,e,n){return(1-n)*t+n*e}function _At(t,e,n,s){return xl(t,e,1-Math.exp(-n*s))}function hAt(t,e=1){return e-Math.abs(KE(t,e*2)-e)}function fAt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function mAt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function gAt(t,e){return t+Math.floor(Math.random()*(e-t+1))}function bAt(t,e){return t+Math.random()*(e-t)}function EAt(t){return t*(.5-Math.random())}function yAt(t){t!==void 0&&(uC=t);let e=uC+=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 vAt(t){return t*Tl}function SAt(t){return t*fa}function sb(t){return(t&t-1)===0&&t!==0}function TAt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function lu(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function xAt(t,e,n,s,i){const r=Math.cos,o=Math.sin,a=r(n/2),c=o(n/2),d=r((e+s)/2),u=o((e+s)/2),h=r((e-s)/2),f=o((e-s)/2),m=r((s-e)/2),_=o((s-e)/2);switch(i){case"XYX":t.set(a*u,c*h,c*f,a*d);break;case"YZY":t.set(c*f,a*u,c*h,a*d);break;case"ZXZ":t.set(c*h,c*f,a*u,a*d);break;case"XZX":t.set(a*u,c*_,c*m,a*d);break;case"YXY":t.set(c*m,a*u,c*_,a*d);break;case"ZYZ":t.set(c*_,c*m,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function ei(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Vt(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const CAt={DEG2RAD:Tl,RAD2DEG:fa,generateUUID:Bs,clamp:Nn,euclideanModulo:KE,mapLinear:uAt,inverseLerp:pAt,lerp:xl,damp:_At,pingpong:hAt,smoothstep:fAt,smootherstep:mAt,randInt:gAt,randFloat:bAt,randFloatSpread:EAt,seededRandom:yAt,degToRad:vAt,radToDeg:SAt,isPowerOfTwo:sb,ceilPowerOfTwo:TAt,floorPowerOfTwo:lu,setQuaternionFromProperEuler:xAt,normalize:Vt,denormalize:ei};class At{constructor(e=0,n=0){At.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.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 n=this.x,s=this.y,i=e.elements;return this.x=i[0]*n+i[3]*s+i[6],this.y=i[1]*n+i[4]*s+i[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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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 n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(Nn(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y;return n*n+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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const s=Math.cos(n),i=Math.sin(n),r=this.x-e.x,o=this.y-e.y;return this.x=r*s-o*i+e.x,this.y=r*i+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,n,s,i,r,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,n,s,i,r,o,a,c,d)}set(e,n,s,i,r,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=n,u[4]=r,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 n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],this}extractBasis(e,n,s){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,i=n.elements,r=this.elements,o=s[0],a=s[3],c=s[6],d=s[1],u=s[4],h=s[7],f=s[2],m=s[5],_=s[8],g=i[0],b=i[3],E=i[6],y=i[1],v=i[4],S=i[7],R=i[2],C=i[5],A=i[8];return r[0]=o*g+a*y+c*R,r[3]=o*b+a*v+c*C,r[6]=o*E+a*S+c*A,r[1]=d*g+u*y+h*R,r[4]=d*b+u*v+h*C,r[7]=d*E+u*S+h*A,r[2]=f*g+m*y+_*R,r[5]=f*b+m*v+_*C,r[8]=f*E+m*S+_*A,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return n*o*u-n*a*d-s*r*u+s*a*c+i*r*d-i*o*c}invert(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],h=u*o-a*d,f=a*c-u*r,m=d*r-o*c,_=n*h+s*f+i*m;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);const g=1/_;return e[0]=h*g,e[1]=(i*d-u*s)*g,e[2]=(a*s-i*o)*g,e[3]=f*g,e[4]=(u*n-i*c)*g,e[5]=(i*r-a*n)*g,e[6]=m*g,e[7]=(s*c-d*n)*g,e[8]=(o*n-s*r)*g,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,s,i,r,o,a){const c=Math.cos(r),d=Math.sin(r);return this.set(s*c,s*d,-s*(c*o+d*a)+o+e,-i*d,i*c,-i*(-d*o+c*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(Mm.makeScale(e,n)),this}rotate(e){return this.premultiply(Mm.makeRotation(-e)),this}translate(e,n){return this.premultiply(Mm.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,s,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,s=e.elements;for(let i=0;i<9;i++)if(n[i]!==s[i])return!1;return!0}fromArray(e,n=0){for(let s=0;s<9;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Mm=new Tt;function UN(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function Yl(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function wAt(){const t=Yl("canvas");return t.style.display="block",t}const pC={};function Cl(t){t in pC||(pC[t]=!0,console.warn(t))}const _C=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),hC=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Pc={[wn]:{transfer:iu,primaries:ru,toReference:t=>t,fromReference:t=>t},[tn]:{transfer:Kt,primaries:ru,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[tp]:{transfer:iu,primaries:ou,toReference:t=>t.applyMatrix3(hC),fromReference:t=>t.applyMatrix3(_C)},[WE]:{transfer:Kt,primaries:ou,toReference:t=>t.convertSRGBToLinear().applyMatrix3(hC),fromReference:t=>t.applyMatrix3(_C).convertLinearToSRGB()}},RAt=new Set([wn,tp]),Ut={enabled:!0,_workingColorSpace:wn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!RAt.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const s=Pc[e].toReference,i=Pc[n].fromReference;return i(s(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Pc[t].primaries},getTransfer:function(t){return t===_s?iu:Pc[t].transfer}};function Qo(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function Im(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let Eo;class FN{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Eo===void 0&&(Eo=Yl("canvas")),Eo.width=e.width,Eo.height=e.height;const s=Eo.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),n=Eo}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.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 n=Yl("canvas");n.width=e.width,n.height=e.height;const s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const i=s.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o0&&(s.userData=this.userData),n||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==CN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case pa:e.x=e.x-Math.floor(e.x);break;case us:e.x=e.x<0?0:1;break;case su: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 pa:e.y=e.y-Math.floor(e.y);break;case us:e.y=e.y<0?0:1;break;case su: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 Cl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===tn?Qr:LN}set encoding(e){Cl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Qr?tn:_s}}Cn.DEFAULT_IMAGE=null;Cn.DEFAULT_MAPPING=CN;Cn.DEFAULT_ANISOTROPY=1;class $t{constructor(e=0,n=0,s=0,i=1){$t.prototype.isVector4=!0,this.x=e,this.y=n,this.z=s,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,s,i){return this.x=e,this.y=n,this.z=s,this.w=i,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.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 n=this.x,s=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*n+o[4]*s+o[8]*i+o[12]*r,this.y=o[1]*n+o[5]*s+o[9]*i+o[13]*r,this.z=o[2]*n+o[6]*s+o[10]*i+o[14]*r,this.w=o[3]*n+o[7]*s+o[11]*i+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,s,i,r;const c=e.elements,d=c[0],u=c[4],h=c[8],f=c[1],m=c[5],_=c[9],g=c[2],b=c[6],E=c[10];if(Math.abs(u-f)<.01&&Math.abs(h-g)<.01&&Math.abs(_-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(h+g)<.1&&Math.abs(_+b)<.1&&Math.abs(d+m+E-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const v=(d+1)/2,S=(m+1)/2,R=(E+1)/2,C=(u+f)/4,A=(h+g)/4,I=(_+b)/4;return v>S&&v>R?v<.01?(s=0,i=.707106781,r=.707106781):(s=Math.sqrt(v),i=C/s,r=A/s):S>R?S<.01?(s=.707106781,i=0,r=.707106781):(i=Math.sqrt(S),s=C/i,r=I/i):R<.01?(s=.707106781,i=.707106781,r=0):(r=Math.sqrt(R),s=A/r,i=I/r),this.set(s,i,r,n),this}let y=Math.sqrt((b-_)*(b-_)+(h-g)*(h-g)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-_)/y,this.y=(h-g)/y,this.z=(f-u)/y,this.w=Math.acos((d+m+E-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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this.z=e.z+(n.z-e.z)*s,this.w=e.w+(n.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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),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 OAt extends Ua{constructor(e=1,n=1,s={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new $t(0,0,e,n),this.scissorTest=!1,this.viewport=new $t(0,0,e,n);const i={width:e,height:n,depth:1};s.encoding!==void 0&&(Cl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===Qr?tn:_s),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:zn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new Cn(i,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,n,s=1){(this.width!==e||this.height!==n||this.depth!==s)&&(this.width=e,this.height=n,this.depth=s,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=s,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}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 n=Object.assign({},e.texture.image);return this.texture.source=new BN(n),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 io extends OAt{constructor(e=1,n=1,s={}){super(e,n,s),this.isWebGLRenderTarget=!0}}class GN extends Cn{constructor(e=null,n=1,s=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:s,depth:i},this.magFilter=gn,this.minFilter=gn,this.wrapR=us,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class MAt extends Cn{constructor(e=null,n=1,s=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:s,depth:i},this.magFilter=gn,this.minFilter=gn,this.wrapR=us,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class yr{constructor(e=0,n=0,s=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=s,this._w=i}static slerpFlat(e,n,s,i,r,o,a){let c=s[i+0],d=s[i+1],u=s[i+2],h=s[i+3];const f=r[o+0],m=r[o+1],_=r[o+2],g=r[o+3];if(a===0){e[n+0]=c,e[n+1]=d,e[n+2]=u,e[n+3]=h;return}if(a===1){e[n+0]=f,e[n+1]=m,e[n+2]=_,e[n+3]=g;return}if(h!==g||c!==f||d!==m||u!==_){let b=1-a;const E=c*f+d*m+u*_+h*g,y=E>=0?1:-1,v=1-E*E;if(v>Number.EPSILON){const R=Math.sqrt(v),C=Math.atan2(R,E*y);b=Math.sin(b*C)/R,a=Math.sin(a*C)/R}const S=a*y;if(c=c*b+f*S,d=d*b+m*S,u=u*b+_*S,h=h*b+g*S,b===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+h*h);c*=R,d*=R,u*=R,h*=R}}e[n]=c,e[n+1]=d,e[n+2]=u,e[n+3]=h}static multiplyQuaternionsFlat(e,n,s,i,r,o){const a=s[i],c=s[i+1],d=s[i+2],u=s[i+3],h=r[o],f=r[o+1],m=r[o+2],_=r[o+3];return e[n]=a*_+u*h+c*m-d*f,e[n+1]=c*_+u*f+d*h-a*m,e[n+2]=d*_+u*m+a*f-c*h,e[n+3]=u*_-a*h-c*f-d*m,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,n,s,i){return this._x=e,this._y=n,this._z=s,this._w=i,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,n){const s=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(s/2),u=a(i/2),h=a(r/2),f=c(s/2),m=c(i/2),_=c(r/2);switch(o){case"XYZ":this._x=f*u*h+d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h-f*m*_;break;case"YXZ":this._x=f*u*h+d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h+f*m*_;break;case"ZXY":this._x=f*u*h-d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h-f*m*_;break;case"ZYX":this._x=f*u*h-d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h+f*m*_;break;case"YZX":this._x=f*u*h+d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h-f*m*_;break;case"XZY":this._x=f*u*h-d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h+f*m*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const s=n/2,i=Math.sin(s);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,s=n[0],i=n[4],r=n[8],o=n[1],a=n[5],c=n[9],d=n[2],u=n[6],h=n[10],f=s+a+h;if(f>0){const m=.5/Math.sqrt(f+1);this._w=.25/m,this._x=(u-c)*m,this._y=(r-d)*m,this._z=(o-i)*m}else if(s>a&&s>h){const m=2*Math.sqrt(1+s-a-h);this._w=(u-c)/m,this._x=.25*m,this._y=(i+o)/m,this._z=(r+d)/m}else if(a>h){const m=2*Math.sqrt(1+a-s-h);this._w=(r-d)/m,this._x=(i+o)/m,this._y=.25*m,this._z=(c+u)/m}else{const m=2*Math.sqrt(1+h-s-a);this._w=(o-i)/m,this._x=(r+d)/m,this._y=(c+u)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let s=e.dot(n)+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*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Nn(this.dot(e),-1,1)))}rotateTowards(e,n){const s=this.angleTo(e);if(s===0)return this;const i=Math.min(1,n/s);return this.slerp(e,i),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,n){const s=e._x,i=e._y,r=e._z,o=e._w,a=n._x,c=n._y,d=n._z,u=n._w;return this._x=s*u+o*a+i*d-r*c,this._y=i*u+o*c+r*a-s*d,this._z=r*u+o*d+s*c-i*a,this._w=o*u-s*a-i*c-r*d,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+s*e._x+i*e._y+r*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=i,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const m=1-n;return this._w=m*o+n*this._w,this._x=m*s+n*this._x,this._y=m*i+n*this._y,this._z=m*r+n*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),h=Math.sin((1-n)*u)/d,f=Math.sin(n*u)/d;return this._w=o*h+this._w*f,this._x=s*h+this._x*f,this._y=i*h+this._y*f,this._z=r*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,s){return this.copy(e).slerp(n,s)}random(){const e=Math.random(),n=Math.sqrt(1-e),s=Math.sqrt(e),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(n*Math.cos(i),s*Math.sin(r),s*Math.cos(r),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),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 oe{constructor(e=0,n=0,s=0){oe.prototype.isVector3=!0,this.x=e,this.y=n,this.z=s}set(e,n,s){return s===void 0&&(s=this.z),this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.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,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(fC.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(fC.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*n+r[3]*s+r[6]*i,this.y=r[1]*n+r[4]*s+r[7]*i,this.z=r[2]*n+r[5]*s+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,s=this.y,i=this.z,r=e.elements,o=1/(r[3]*n+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*n+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*n+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*n+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(e){const n=this.x,s=this.y,i=this.z,r=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*i-a*s),u=2*(a*n-r*i),h=2*(r*s-o*n);return this.x=n+c*d+o*h-a*u,this.y=s+c*u+a*d-r*h,this.z=i+c*h+r*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 n=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*n+r[4]*s+r[8]*i,this.y=r[1]*n+r[5]*s+r[9]*i,this.z=r[2]*n+r[6]*s+r[10]*i,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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this.z=e.z+(n.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const s=e.x,i=e.y,r=e.z,o=n.x,a=n.y,c=n.z;return this.x=i*c-r*a,this.y=r*o-s*c,this.z=s*a-i*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const s=e.dot(this)/n;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return Dm.copy(this).projectOnVector(e),this.sub(Dm)}reflect(e){return this.sub(Dm.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(Nn(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y,i=this.z-e.z;return n*n+s*s+i*i}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,n,s){const i=Math.sin(n)*e;return this.x=i*Math.sin(s),this.y=Math.cos(n)*e,this.z=i*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,s){return this.x=e*Math.sin(n),this.y=s,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),s=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=s,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,s=Math.sqrt(1-e**2);return this.x=s*Math.cos(n),this.y=s*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Dm=new oe,fC=new yr;class Fi{constructor(e=new oe(1/0,1/0,1/0),n=new oe(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,s=e.length;nthis.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,n){return n.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,Rs),Rs.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,s;return e.normal.x>0?(n=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),n<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ja),Fc.subVectors(this.max,Ja),yo.subVectors(e.a,Ja),vo.subVectors(e.b,Ja),So.subVectors(e.c,Ja),qi.subVectors(vo,yo),$i.subVectors(So,vo),wr.subVectors(yo,So);let n=[0,-qi.z,qi.y,0,-$i.z,$i.y,0,-wr.z,wr.y,qi.z,0,-qi.x,$i.z,0,-$i.x,wr.z,0,-wr.x,-qi.y,qi.x,0,-$i.y,$i.x,0,-wr.y,wr.x,0];return!Lm(n,yo,vo,So,Fc)||(n=[1,0,0,0,1,0,0,0,1],!Lm(n,yo,vo,So,Fc))?!1:(Bc.crossVectors(qi,$i),n=[Bc.x,Bc.y,Bc.z],Lm(n,yo,vo,So,Fc))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Rs).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Rs).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:(bi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),bi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),bi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),bi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),bi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),bi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),bi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),bi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(bi),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 bi=[new oe,new oe,new oe,new oe,new oe,new oe,new oe,new oe],Rs=new oe,Uc=new Fi,yo=new oe,vo=new oe,So=new oe,qi=new oe,$i=new oe,wr=new oe,Ja=new oe,Fc=new oe,Bc=new oe,Rr=new oe;function Lm(t,e,n,s,i){for(let r=0,o=t.length-3;r<=o;r+=3){Rr.fromArray(t,r);const a=i.x*Math.abs(Rr.x)+i.y*Math.abs(Rr.y)+i.z*Math.abs(Rr.z),c=e.dot(Rr),d=n.dot(Rr),u=s.dot(Rr);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const IAt=new Fi,el=new oe,Pm=new oe;class pi{constructor(e=new oe,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const s=this.center;n!==void 0?s.copy(n):IAt.setFromPoints(e).getCenter(s);let i=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}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;el.subVectors(e,this.center);const n=el.lengthSq();if(n>this.radius*this.radius){const s=Math.sqrt(n),i=(s-this.radius)*.5;this.center.addScaledVector(el,i/s),this.radius+=i}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):(Pm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(el.copy(e.center).add(Pm)),this.expandByPoint(el.copy(e.center).sub(Pm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Ei=new oe,Um=new oe,Gc=new oe,Yi=new oe,Fm=new oe,Vc=new oe,Bm=new oe;class np{constructor(e=new oe,n=new oe(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.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,Ei)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const s=n.dot(this.direction);return s<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,s)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Ei.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Ei.copy(this.origin).addScaledVector(this.direction,n),Ei.distanceToSquared(e))}distanceSqToSegment(e,n,s,i){Um.copy(e).add(n).multiplyScalar(.5),Gc.copy(n).sub(e).normalize(),Yi.copy(this.origin).sub(Um);const r=e.distanceTo(n)*.5,o=-this.direction.dot(Gc),a=Yi.dot(this.direction),c=-Yi.dot(Gc),d=Yi.lengthSq(),u=Math.abs(1-o*o);let h,f,m,_;if(u>0)if(h=o*c-a,f=o*a-c,_=r*u,h>=0)if(f>=-_)if(f<=_){const g=1/u;h*=g,f*=g,m=h*(h+o*f+2*a)+f*(o*h+f+2*c)+d}else f=r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;else f=-r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;else f<=-_?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-c),r),m=-h*h+f*(f+2*c)+d):f<=_?(h=0,f=Math.min(Math.max(-r,-c),r),m=f*(f+2*c)+d):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-c),r),m=-h*h+f*(f+2*c)+d);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;return s&&s.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(Um).addScaledVector(Gc,f),m}intersectSphere(e,n){Ei.subVectors(e.center,this.origin);const s=Ei.dot(this.direction),i=Ei.dot(Ei)-s*s,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=s-o,c=s+o;return c<0?null:a<0?this.at(c,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const s=-(this.origin.dot(e.normal)+e.constant)/n;return s>=0?s:null}intersectPlane(e,n){const s=this.distanceToPlane(e);return s===null?null:this.at(s,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let s,i,r,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,h=1/this.direction.z,f=this.origin;return d>=0?(s=(e.min.x-f.x)*d,i=(e.max.x-f.x)*d):(s=(e.max.x-f.x)*d,i=(e.min.x-f.x)*d),u>=0?(r=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(r=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),s>o||r>i||((r>s||isNaN(s))&&(s=r),(o=0?(a=(e.min.z-f.z)*h,c=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,c=(e.min.z-f.z)*h),s>c||a>i)||((a>s||s!==s)&&(s=a),(c=0?s:i,n)}intersectsBox(e){return this.intersectBox(e,Ei)!==null}intersectTriangle(e,n,s,i,r){Fm.subVectors(n,e),Vc.subVectors(s,e),Bm.crossVectors(Fm,Vc);let o=this.direction.dot(Bm),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Yi.subVectors(this.origin,e);const c=a*this.direction.dot(Vc.crossVectors(Yi,Vc));if(c<0)return null;const d=a*this.direction.dot(Fm.cross(Yi));if(d<0||c+d>o)return null;const u=-a*Yi.dot(Bm);return u<0?null:this.at(u/o,r)}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,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b){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,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b)}set(e,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b){const E=this.elements;return E[0]=e,E[4]=n,E[8]=s,E[12]=i,E[1]=r,E[5]=o,E[9]=a,E[13]=c,E[2]=d,E[6]=u,E[10]=h,E[14]=f,E[3]=m,E[7]=_,E[11]=g,E[15]=b,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 n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],this}copyPosition(e){const n=this.elements,s=e.elements;return n[12]=s[12],n[13]=s[13],n[14]=s[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,s){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,n,s){return this.set(e.x,n.x,s.x,0,e.y,n.y,s.y,0,e.z,n.z,s.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,s=e.elements,i=1/To.setFromMatrixColumn(e,0).length(),r=1/To.setFromMatrixColumn(e,1).length(),o=1/To.setFromMatrixColumn(e,2).length();return n[0]=s[0]*i,n[1]=s[1]*i,n[2]=s[2]*i,n[3]=0,n[4]=s[4]*r,n[5]=s[5]*r,n[6]=s[6]*r,n[7]=0,n[8]=s[8]*o,n[9]=s[9]*o,n[10]=s[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,s=e.x,i=e.y,r=e.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(i),d=Math.sin(i),u=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*u,m=o*h,_=a*u,g=a*h;n[0]=c*u,n[4]=-c*h,n[8]=d,n[1]=m+_*d,n[5]=f-g*d,n[9]=-a*c,n[2]=g-f*d,n[6]=_+m*d,n[10]=o*c}else if(e.order==="YXZ"){const f=c*u,m=c*h,_=d*u,g=d*h;n[0]=f+g*a,n[4]=_*a-m,n[8]=o*d,n[1]=o*h,n[5]=o*u,n[9]=-a,n[2]=m*a-_,n[6]=g+f*a,n[10]=o*c}else if(e.order==="ZXY"){const f=c*u,m=c*h,_=d*u,g=d*h;n[0]=f-g*a,n[4]=-o*h,n[8]=_+m*a,n[1]=m+_*a,n[5]=o*u,n[9]=g-f*a,n[2]=-o*d,n[6]=a,n[10]=o*c}else if(e.order==="ZYX"){const f=o*u,m=o*h,_=a*u,g=a*h;n[0]=c*u,n[4]=_*d-m,n[8]=f*d+g,n[1]=c*h,n[5]=g*d+f,n[9]=m*d-_,n[2]=-d,n[6]=a*c,n[10]=o*c}else if(e.order==="YZX"){const f=o*c,m=o*d,_=a*c,g=a*d;n[0]=c*u,n[4]=g-f*h,n[8]=_*h+m,n[1]=h,n[5]=o*u,n[9]=-a*u,n[2]=-d*u,n[6]=m*h+_,n[10]=f-g*h}else if(e.order==="XZY"){const f=o*c,m=o*d,_=a*c,g=a*d;n[0]=c*u,n[4]=-h,n[8]=d*u,n[1]=f*h+g,n[5]=o*u,n[9]=m*h-_,n[2]=_*h-m,n[6]=a*u,n[10]=g*h+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(kAt,e,DAt)}lookAt(e,n,s){const i=this.elements;return jn.subVectors(e,n),jn.lengthSq()===0&&(jn.z=1),jn.normalize(),Wi.crossVectors(s,jn),Wi.lengthSq()===0&&(Math.abs(s.z)===1?jn.x+=1e-4:jn.z+=1e-4,jn.normalize(),Wi.crossVectors(s,jn)),Wi.normalize(),zc.crossVectors(jn,Wi),i[0]=Wi.x,i[4]=zc.x,i[8]=jn.x,i[1]=Wi.y,i[5]=zc.y,i[9]=jn.y,i[2]=Wi.z,i[6]=zc.z,i[10]=jn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,i=n.elements,r=this.elements,o=s[0],a=s[4],c=s[8],d=s[12],u=s[1],h=s[5],f=s[9],m=s[13],_=s[2],g=s[6],b=s[10],E=s[14],y=s[3],v=s[7],S=s[11],R=s[15],C=i[0],A=i[4],I=i[8],x=i[12],O=i[1],B=i[5],H=i[9],te=i[13],k=i[2],$=i[6],q=i[10],U=i[14],W=i[3],ne=i[7],le=i[11],me=i[15];return r[0]=o*C+a*O+c*k+d*W,r[4]=o*A+a*B+c*$+d*ne,r[8]=o*I+a*H+c*q+d*le,r[12]=o*x+a*te+c*U+d*me,r[1]=u*C+h*O+f*k+m*W,r[5]=u*A+h*B+f*$+m*ne,r[9]=u*I+h*H+f*q+m*le,r[13]=u*x+h*te+f*U+m*me,r[2]=_*C+g*O+b*k+E*W,r[6]=_*A+g*B+b*$+E*ne,r[10]=_*I+g*H+b*q+E*le,r[14]=_*x+g*te+b*U+E*me,r[3]=y*C+v*O+S*k+R*W,r[7]=y*A+v*B+S*$+R*ne,r[11]=y*I+v*H+S*q+R*le,r[15]=y*x+v*te+S*U+R*me,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[4],i=e[8],r=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],h=e[6],f=e[10],m=e[14],_=e[3],g=e[7],b=e[11],E=e[15];return _*(+r*c*h-i*d*h-r*a*f+s*d*f+i*a*m-s*c*m)+g*(+n*c*m-n*d*f+r*o*f-i*o*m+i*d*u-r*c*u)+b*(+n*d*h-n*a*m-r*o*h+s*o*m+r*a*u-s*d*u)+E*(-i*a*u-n*c*h+n*a*f+i*o*h-s*o*f+s*c*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,s){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=n,i[14]=s),this}invert(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],h=e[9],f=e[10],m=e[11],_=e[12],g=e[13],b=e[14],E=e[15],y=h*b*d-g*f*d+g*c*m-a*b*m-h*c*E+a*f*E,v=_*f*d-u*b*d-_*c*m+o*b*m+u*c*E-o*f*E,S=u*g*d-_*h*d+_*a*m-o*g*m-u*a*E+o*h*E,R=_*h*c-u*g*c-_*a*f+o*g*f+u*a*b-o*h*b,C=n*y+s*v+i*S+r*R;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/C;return e[0]=y*A,e[1]=(g*f*r-h*b*r-g*i*m+s*b*m+h*i*E-s*f*E)*A,e[2]=(a*b*r-g*c*r+g*i*d-s*b*d-a*i*E+s*c*E)*A,e[3]=(h*c*r-a*f*r-h*i*d+s*f*d+a*i*m-s*c*m)*A,e[4]=v*A,e[5]=(u*b*r-_*f*r+_*i*m-n*b*m-u*i*E+n*f*E)*A,e[6]=(_*c*r-o*b*r-_*i*d+n*b*d+o*i*E-n*c*E)*A,e[7]=(o*f*r-u*c*r+u*i*d-n*f*d-o*i*m+n*c*m)*A,e[8]=S*A,e[9]=(_*h*r-u*g*r-_*s*m+n*g*m+u*s*E-n*h*E)*A,e[10]=(o*g*r-_*a*r+_*s*d-n*g*d-o*s*E+n*a*E)*A,e[11]=(u*a*r-o*h*r-u*s*d+n*h*d+o*s*m-n*a*m)*A,e[12]=R*A,e[13]=(u*g*i-_*h*i+_*s*f-n*g*f-u*s*b+n*h*b)*A,e[14]=(_*a*i-o*g*i-_*s*c+n*g*c+o*s*b-n*a*b)*A,e[15]=(o*h*i-u*a*i+u*s*c-n*h*c-o*s*f+n*a*f)*A,this}scale(e){const n=this.elements,s=e.x,i=e.y,r=e.z;return n[0]*=s,n[4]*=i,n[8]*=r,n[1]*=s,n[5]*=i,n[9]*=r,n[2]*=s,n[6]*=i,n[10]*=r,n[3]*=s,n[7]*=i,n[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,n=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],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,s,i))}makeTranslation(e,n,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,n,0,0,1,s,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,n,-s,0,0,s,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,0,s,0,0,1,0,0,-s,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const s=Math.cos(n),i=Math.sin(n),r=1-s,o=e.x,a=e.y,c=e.z,d=r*o,u=r*a;return this.set(d*o+s,d*a-i*c,d*c+i*a,0,d*a+i*c,u*a+s,u*c-i*o,0,d*c-i*a,u*c+i*o,r*c*c+s,0,0,0,0,1),this}makeScale(e,n,s){return this.set(e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,n,s,i,r,o){return this.set(1,s,r,0,e,1,o,0,n,i,1,0,0,0,0,1),this}compose(e,n,s){const i=this.elements,r=n._x,o=n._y,a=n._z,c=n._w,d=r+r,u=o+o,h=a+a,f=r*d,m=r*u,_=r*h,g=o*u,b=o*h,E=a*h,y=c*d,v=c*u,S=c*h,R=s.x,C=s.y,A=s.z;return i[0]=(1-(g+E))*R,i[1]=(m+S)*R,i[2]=(_-v)*R,i[3]=0,i[4]=(m-S)*C,i[5]=(1-(f+E))*C,i[6]=(b+y)*C,i[7]=0,i[8]=(_+v)*A,i[9]=(b-y)*A,i[10]=(1-(f+g))*A,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,s){const i=this.elements;let r=To.set(i[0],i[1],i[2]).length();const o=To.set(i[4],i[5],i[6]).length(),a=To.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],As.copy(this);const d=1/r,u=1/o,h=1/a;return As.elements[0]*=d,As.elements[1]*=d,As.elements[2]*=d,As.elements[4]*=u,As.elements[5]*=u,As.elements[6]*=u,As.elements[8]*=h,As.elements[9]*=h,As.elements[10]*=h,n.setFromRotationMatrix(As),s.x=r,s.y=o,s.z=a,this}makePerspective(e,n,s,i,r,o,a=Ni){const c=this.elements,d=2*r/(n-e),u=2*r/(s-i),h=(n+e)/(n-e),f=(s+i)/(s-i);let m,_;if(a===Ni)m=-(o+r)/(o-r),_=-2*o*r/(o-r);else if(a===au)m=-o/(o-r),_=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=m,c[14]=_,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,n,s,i,r,o,a=Ni){const c=this.elements,d=1/(n-e),u=1/(s-i),h=1/(o-r),f=(n+e)*d,m=(s+i)*u;let _,g;if(a===Ni)_=(o+r)*h,g=-2*h;else if(a===au)_=r*h,g=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-f,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=g,c[14]=-_,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const n=this.elements,s=e.elements;for(let i=0;i<16;i++)if(n[i]!==s[i])return!1;return!0}fromArray(e,n=0){for(let s=0;s<16;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e[n+9]=s[9],e[n+10]=s[10],e[n+11]=s[11],e[n+12]=s[12],e[n+13]=s[13],e[n+14]=s[14],e[n+15]=s[15],e}}const To=new oe,As=new xt,kAt=new oe(0,0,0),DAt=new oe(1,1,1),Wi=new oe,zc=new oe,jn=new oe,mC=new xt,gC=new yr;class sp{constructor(e=0,n=0,s=0,i=sp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=s,this._order=i}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,n,s,i=this._order){return this._x=e,this._y=n,this._z=s,this._order=i,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,n=this._order,s=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],c=i[1],d=i[5],u=i[9],h=i[2],f=i[6],m=i[10];switch(n){case"XYZ":this._y=Math.asin(Nn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,m),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,d),this._z=0);break;case"YXZ":this._x=Math.asin(-Nn(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Nn(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,m),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,r));break;case"ZYX":this._y=Math.asin(-Nn(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,m),this._z=Math.atan2(c,r)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(Nn(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-Nn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,d),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,s){return mC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(mC,n,s)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return gC.setFromEuler(this),this.setFromQuaternion(gC,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=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+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}}sp.DEFAULT_ORDER="XYZ";class VN{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){for(let s=0;s0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.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()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function r(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(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){i.children=[];for(let a=0;a0){i.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),h.length>0&&(s.shapes=h),f.length>0&&(s.skeletons=f),m.length>0&&(s.animations=m),_.length>0&&(s.nodes=_)}return s.object=i,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,n=!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)),n===!0)for(let s=0;s0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,n,s,i,r){Ns.subVectors(i,n),vi.subVectors(s,n),Gm.subVectors(e,n);const o=Ns.dot(Ns),a=Ns.dot(vi),c=Ns.dot(Gm),d=vi.dot(vi),u=vi.dot(Gm),h=o*d-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,m=(d*c-a*u)*f,_=(o*u-a*c)*f;return r.set(1-m-_,_,m)}static containsPoint(e,n,s,i){return this.getBarycoord(e,n,s,i,Si),Si.x>=0&&Si.y>=0&&Si.x+Si.y<=1}static getUV(e,n,s,i,r,o,a,c){return qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),qc=!0),this.getInterpolation(e,n,s,i,r,o,a,c)}static getInterpolation(e,n,s,i,r,o,a,c){return this.getBarycoord(e,n,s,i,Si),c.setScalar(0),c.addScaledVector(r,Si.x),c.addScaledVector(o,Si.y),c.addScaledVector(a,Si.z),c}static isFrontFacing(e,n,s,i){return Ns.subVectors(s,n),vi.subVectors(e,n),Ns.cross(vi).dot(i)<0}set(e,n,s){return this.a.copy(e),this.b.copy(n),this.c.copy(s),this}setFromPointsAndIndices(e,n,s,i){return this.a.copy(e[n]),this.b.copy(e[s]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,s,i){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,s),this.c.fromBufferAttribute(e,i),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 Ns.subVectors(this.c,this.b),vi.subVectors(this.a,this.b),Ns.cross(vi).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return ks.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return ks.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,s,i,r){return qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),qc=!0),ks.getInterpolation(e,this.a,this.b,this.c,n,s,i,r)}getInterpolation(e,n,s,i,r){return ks.getInterpolation(e,this.a,this.b,this.c,n,s,i,r)}containsPoint(e){return ks.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return ks.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const s=this.a,i=this.b,r=this.c;let o,a;Co.subVectors(i,s),wo.subVectors(r,s),Vm.subVectors(e,s);const c=Co.dot(Vm),d=wo.dot(Vm);if(c<=0&&d<=0)return n.copy(s);zm.subVectors(e,i);const u=Co.dot(zm),h=wo.dot(zm);if(u>=0&&h<=u)return n.copy(i);const f=c*h-u*d;if(f<=0&&c>=0&&u<=0)return o=c/(c-u),n.copy(s).addScaledVector(Co,o);Hm.subVectors(e,r);const m=Co.dot(Hm),_=wo.dot(Hm);if(_>=0&&m<=_)return n.copy(r);const g=m*d-c*_;if(g<=0&&d>=0&&_<=0)return a=d/(d-_),n.copy(s).addScaledVector(wo,a);const b=u*_-m*h;if(b<=0&&h-u>=0&&m-_>=0)return SC.subVectors(r,i),a=(h-u)/(h-u+(m-_)),n.copy(i).addScaledVector(SC,a);const E=1/(b+g+f);return o=g*E,a=f*E,n.copy(s).addScaledVector(Co,o).addScaledVector(wo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const zN={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},Ki={h:0,s:0,l:0},$c={h:0,s:0,l:0};function qm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class _t{constructor(e,n,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,s)}set(e,n,s){if(n===void 0&&s===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,n,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=tn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ut.toWorkingColorSpace(this,n),this}setRGB(e,n,s,i=Ut.workingColorSpace){return this.r=e,this.g=n,this.b=s,Ut.toWorkingColorSpace(this,i),this}setHSL(e,n,s,i=Ut.workingColorSpace){if(e=KE(e,1),n=Nn(n,0,1),s=Nn(s,0,1),n===0)this.r=this.g=this.b=s;else{const r=s<=.5?s*(1+n):s+n-s*n,o=2*s-r;this.r=qm(o,r,e+1/3),this.g=qm(o,r,e),this.b=qm(o,r,e-1/3)}return Ut.toWorkingColorSpace(this,i),this}setStyle(e,n=tn){function s(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,n);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,n);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(r,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=tn){const s=zN[e.toLowerCase()];return s!==void 0?this.setHex(s,n):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=Qo(e.r),this.g=Qo(e.g),this.b=Qo(e.b),this}copyLinearToSRGB(e){return this.r=Im(e.r),this.g=Im(e.g),this.b=Im(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tn){return Ut.fromWorkingColorSpace(An.copy(this),e),Math.round(Nn(An.r*255,0,255))*65536+Math.round(Nn(An.g*255,0,255))*256+Math.round(Nn(An.b*255,0,255))}getHexString(e=tn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Ut.workingColorSpace){Ut.fromWorkingColorSpace(An.copy(this),n);const s=An.r,i=An.g,r=An.b,o=Math.max(s,i,r),a=Math.min(s,i,r);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const h=o-a;switch(d=u<=.5?h/(o+a):h/(2-o-a),o){case s:c=(i-r)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const s=e[n];if(s===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(s):i&&i.isVector3&&s&&s.isVector3?i.copy(s):this[n]=s}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(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!==jo&&(s.blending=this.blending),this.side!==Li&&(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!==jg&&(s.blendSrc=this.blendSrc),this.blendDst!==Qg&&(s.blendDst=this.blendDst),this.blendEquation!==Fr&&(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!==nu&&(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!==cC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==bo&&(s.stencilFail=this.stencilFail),this.stencilZFail!==bo&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==bo&&(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 i(r){const o=[];for(const a in r){const c=r[a];delete c.metadata,o.push(c)}return o}if(n){const r=i(e.textures),o=i(e.images);r.length>0&&(s.textures=r),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 n=e.clippingPlanes;let s=null;if(n!==null){const i=n.length;s=new Array(i);for(let r=0;r!==i;++r)s[r]=n[r].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 lr extends Gs{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new _t(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=qE,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 on=new oe,Yc=new At;class Bn{constructor(e,n,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=n,this.count=e!==void 0?e.length/n:0,this.normalized=s,this.usage=tb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ai,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,n){this.updateRanges.push({start:e,count:n})}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,n,s){e*=this.itemSize,s*=n.itemSize;for(let i=0,r=this.itemSize;i0&&(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 n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const s=this.attributes;for(const c in s){const d=s[c];e.data.attributes[c]=d.toJSON(e.data)}const i={};let r=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let h=0,f=d.length;h0&&(i[c]=u,r=!0)}r&&(e.data.morphAttributes=i,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 n={};this.name=e.name;const s=e.index;s!==null&&this.setIndex(s.clone(n));const i=e.attributes;for(const d in i){const u=i[d];this.setAttribute(d,u.clone(n))}const r=e.morphAttributes;for(const d in r){const u=[],h=r[d];for(let f=0,m=h.length;f0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r(e.far-e.near)**2))&&(TC.copy(r).invert(),Ar.copy(e.ray).applyMatrix4(TC),!(s.boundingBox!==null&&Ar.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,n,Ar)))}_computeIntersections(e,n,s){let i;const r=this.geometry,o=this.material,a=r.index,c=r.attributes.position,d=r.attributes.uv,u=r.attributes.uv1,h=r.attributes.normal,f=r.groups,m=r.drawRange;if(a!==null)if(Array.isArray(o))for(let _=0,g=f.length;_n.far?null:{distance:d,point:Jc.clone(),object:t}}function ed(t,e,n,s,i,r,o,a,c,d){t.getVertexPosition(a,Ao),t.getVertexPosition(c,No),t.getVertexPosition(d,Oo);const u=zAt(t,e,n,s,Ao,No,Oo,Zc);if(u){i&&(jc.fromBufferAttribute(i,a),Qc.fromBufferAttribute(i,c),Xc.fromBufferAttribute(i,d),u.uv=ks.getInterpolation(Zc,Ao,No,Oo,jc,Qc,Xc,new At)),r&&(jc.fromBufferAttribute(r,a),Qc.fromBufferAttribute(r,c),Xc.fromBufferAttribute(r,d),u.uv1=ks.getInterpolation(Zc,Ao,No,Oo,jc,Qc,Xc,new At),u.uv2=u.uv1),o&&(CC.fromBufferAttribute(o,a),wC.fromBufferAttribute(o,c),RC.fromBufferAttribute(o,d),u.normal=ks.getInterpolation(Zc,Ao,No,Oo,CC,wC,RC,new oe),u.normal.dot(s.direction)>0&&u.normal.multiplyScalar(-1));const h={a,b:c,c:d,normal:new oe,materialIndex:0};ks.getNormal(Ao,No,Oo,h.normal),u.face=h}return u}class hr extends _i{constructor(e=1,n=1,s=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:s,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const c=[],d=[],u=[],h=[];let f=0,m=0;_("z","y","x",-1,-1,s,n,e,o,r,0),_("z","y","x",1,-1,s,n,-e,o,r,1),_("x","z","y",1,1,e,s,n,i,o,2),_("x","z","y",1,-1,e,s,-n,i,o,3),_("x","y","z",1,-1,e,n,s,i,r,4),_("x","y","z",-1,-1,e,n,-s,i,r,5),this.setIndex(c),this.setAttribute("position",new Oi(d,3)),this.setAttribute("normal",new Oi(u,3)),this.setAttribute("uv",new Oi(h,2));function _(g,b,E,y,v,S,R,C,A,I,x){const O=S/A,B=R/I,H=S/2,te=R/2,k=C/2,$=A+1,q=I+1;let U=0,W=0;const ne=new oe;for(let le=0;le0?1:-1,u.push(ne.x,ne.y,ne.z),h.push(Se/A),h.push(1-le/I),U+=1}}for(let le=0;le>8&255]+Rn[t>>16&255]+Rn[t>>24&255]+"-"+Rn[e&255]+Rn[e>>8&255]+"-"+Rn[e>>16&15|64]+Rn[e>>24&255]+"-"+Rn[n&63|128]+Rn[n>>8&255]+"-"+Rn[n>>16&255]+Rn[n>>24&255]+Rn[s&255]+Rn[s>>8&255]+Rn[s>>16&255]+Rn[s>>24&255]).toLowerCase()}function Nn(t,e,n){return Math.max(e,Math.min(n,t))}function KE(t,e){return(t%e+e)%e}function lAt(t,e,n,s,i){return s+(t-e)*(i-s)/(n-e)}function cAt(t,e,n){return t!==e?(n-t)/(e-t):0}function xl(t,e,n){return(1-n)*t+n*e}function dAt(t,e,n,s){return xl(t,e,1-Math.exp(-n*s))}function uAt(t,e=1){return e-Math.abs(KE(t,e*2)-e)}function pAt(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function _At(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(t*6-15)+10))}function hAt(t,e){return t+Math.floor(Math.random()*(e-t+1))}function fAt(t,e){return t+Math.random()*(e-t)}function mAt(t){return t*(.5-Math.random())}function gAt(t){t!==void 0&&(uC=t);let e=uC+=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 bAt(t){return t*Tl}function EAt(t){return t*fa}function sb(t){return(t&t-1)===0&&t!==0}function yAt(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function lu(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function vAt(t,e,n,s,i){const r=Math.cos,o=Math.sin,a=r(n/2),c=o(n/2),d=r((e+s)/2),u=o((e+s)/2),h=r((e-s)/2),f=o((e-s)/2),m=r((s-e)/2),_=o((s-e)/2);switch(i){case"XYX":t.set(a*u,c*h,c*f,a*d);break;case"YZY":t.set(c*f,a*u,c*h,a*d);break;case"ZXZ":t.set(c*h,c*f,a*u,a*d);break;case"XZX":t.set(a*u,c*_,c*m,a*d);break;case"YXY":t.set(c*m,a*u,c*_,a*d);break;case"ZYZ":t.set(c*_,c*m,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function ei(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Vt(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const SAt={DEG2RAD:Tl,RAD2DEG:fa,generateUUID:Bs,clamp:Nn,euclideanModulo:KE,mapLinear:lAt,inverseLerp:cAt,lerp:xl,damp:dAt,pingpong:uAt,smoothstep:pAt,smootherstep:_At,randInt:hAt,randFloat:fAt,randFloatSpread:mAt,seededRandom:gAt,degToRad:bAt,radToDeg:EAt,isPowerOfTwo:sb,ceilPowerOfTwo:yAt,floorPowerOfTwo:lu,setQuaternionFromProperEuler:vAt,normalize:Vt,denormalize:ei};class At{constructor(e=0,n=0){At.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.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 n=this.x,s=this.y,i=e.elements;return this.x=i[0]*n+i[3]*s+i[6],this.y=i[1]*n+i[4]*s+i[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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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 n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(Nn(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y;return n*n+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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const s=Math.cos(n),i=Math.sin(n),r=this.x-e.x,o=this.y-e.y;return this.x=r*s-o*i+e.x,this.y=r*i+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,n,s,i,r,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,n,s,i,r,o,a,c,d)}set(e,n,s,i,r,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=n,u[4]=r,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 n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],this}extractBasis(e,n,s){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,i=n.elements,r=this.elements,o=s[0],a=s[3],c=s[6],d=s[1],u=s[4],h=s[7],f=s[2],m=s[5],_=s[8],g=i[0],b=i[3],E=i[6],y=i[1],v=i[4],S=i[7],R=i[2],C=i[5],A=i[8];return r[0]=o*g+a*y+c*R,r[3]=o*b+a*v+c*C,r[6]=o*E+a*S+c*A,r[1]=d*g+u*y+h*R,r[4]=d*b+u*v+h*C,r[7]=d*E+u*S+h*A,r[2]=f*g+m*y+_*R,r[5]=f*b+m*v+_*C,r[8]=f*E+m*S+_*A,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return n*o*u-n*a*d-s*r*u+s*a*c+i*r*d-i*o*c}invert(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],h=u*o-a*d,f=a*c-u*r,m=d*r-o*c,_=n*h+s*f+i*m;if(_===0)return this.set(0,0,0,0,0,0,0,0,0);const g=1/_;return e[0]=h*g,e[1]=(i*d-u*s)*g,e[2]=(a*s-i*o)*g,e[3]=f*g,e[4]=(u*n-i*c)*g,e[5]=(i*r-a*n)*g,e[6]=m*g,e[7]=(s*c-d*n)*g,e[8]=(o*n-s*r)*g,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,s,i,r,o,a){const c=Math.cos(r),d=Math.sin(r);return this.set(s*c,s*d,-s*(c*o+d*a)+o+e,-i*d,i*c,-i*(-d*o+c*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(Mm.makeScale(e,n)),this}rotate(e){return this.premultiply(Mm.makeRotation(-e)),this}translate(e,n){return this.premultiply(Mm.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,s,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,s=e.elements;for(let i=0;i<9;i++)if(n[i]!==s[i])return!1;return!0}fromArray(e,n=0){for(let s=0;s<9;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Mm=new Tt;function UN(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function Yl(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function TAt(){const t=Yl("canvas");return t.style.display="block",t}const pC={};function Cl(t){t in pC||(pC[t]=!0,console.warn(t))}const _C=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),hC=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Pc={[wn]:{transfer:iu,primaries:ru,toReference:t=>t,fromReference:t=>t},[tn]:{transfer:Kt,primaries:ru,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[tp]:{transfer:iu,primaries:ou,toReference:t=>t.applyMatrix3(hC),fromReference:t=>t.applyMatrix3(_C)},[WE]:{transfer:Kt,primaries:ou,toReference:t=>t.convertSRGBToLinear().applyMatrix3(hC),fromReference:t=>t.applyMatrix3(_C).convertLinearToSRGB()}},xAt=new Set([wn,tp]),Ut={enabled:!0,_workingColorSpace:wn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!xAt.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const s=Pc[e].toReference,i=Pc[n].fromReference;return i(s(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Pc[t].primaries},getTransfer:function(t){return t===_s?iu:Pc[t].transfer}};function Qo(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function Im(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let Eo;class FN{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Eo===void 0&&(Eo=Yl("canvas")),Eo.width=e.width,Eo.height=e.height;const s=Eo.getContext("2d");e instanceof ImageData?s.putImageData(e,0,0):s.drawImage(e,0,0,e.width,e.height),n=Eo}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.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 n=Yl("canvas");n.width=e.width,n.height=e.height;const s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height);const i=s.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o0&&(s.userData=this.userData),n||(e.textures[this.uuid]=s),s}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==CN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case pa:e.x=e.x-Math.floor(e.x);break;case us:e.x=e.x<0?0:1;break;case su: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 pa:e.y=e.y-Math.floor(e.y);break;case us:e.y=e.y<0?0:1;break;case su: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 Cl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===tn?Qr:LN}set encoding(e){Cl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Qr?tn:_s}}Cn.DEFAULT_IMAGE=null;Cn.DEFAULT_MAPPING=CN;Cn.DEFAULT_ANISOTROPY=1;class $t{constructor(e=0,n=0,s=0,i=1){$t.prototype.isVector4=!0,this.x=e,this.y=n,this.z=s,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,s,i){return this.x=e,this.y=n,this.z=s,this.w=i,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.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 n=this.x,s=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*n+o[4]*s+o[8]*i+o[12]*r,this.y=o[1]*n+o[5]*s+o[9]*i+o[13]*r,this.z=o[2]*n+o[6]*s+o[10]*i+o[14]*r,this.w=o[3]*n+o[7]*s+o[11]*i+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,s,i,r;const c=e.elements,d=c[0],u=c[4],h=c[8],f=c[1],m=c[5],_=c[9],g=c[2],b=c[6],E=c[10];if(Math.abs(u-f)<.01&&Math.abs(h-g)<.01&&Math.abs(_-b)<.01){if(Math.abs(u+f)<.1&&Math.abs(h+g)<.1&&Math.abs(_+b)<.1&&Math.abs(d+m+E-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const v=(d+1)/2,S=(m+1)/2,R=(E+1)/2,C=(u+f)/4,A=(h+g)/4,I=(_+b)/4;return v>S&&v>R?v<.01?(s=0,i=.707106781,r=.707106781):(s=Math.sqrt(v),i=C/s,r=A/s):S>R?S<.01?(s=.707106781,i=0,r=.707106781):(i=Math.sqrt(S),s=C/i,r=I/i):R<.01?(s=.707106781,i=.707106781,r=0):(r=Math.sqrt(R),s=A/r,i=I/r),this.set(s,i,r,n),this}let y=Math.sqrt((b-_)*(b-_)+(h-g)*(h-g)+(f-u)*(f-u));return Math.abs(y)<.001&&(y=1),this.x=(b-_)/y,this.y=(h-g)/y,this.z=(f-u)/y,this.w=Math.acos((d+m+E-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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this.z=e.z+(n.z-e.z)*s,this.w=e.w+(n.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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),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 RAt extends Ua{constructor(e=1,n=1,s={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new $t(0,0,e,n),this.scissorTest=!1,this.viewport=new $t(0,0,e,n);const i={width:e,height:n,depth:1};s.encoding!==void 0&&(Cl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),s.colorSpace=s.encoding===Qr?tn:_s),s=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:zn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},s),this.texture=new Cn(i,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,n,s=1){(this.width!==e||this.height!==n||this.depth!==s)&&(this.width=e,this.height=n,this.depth=s,this.texture.image.width=e,this.texture.image.height=n,this.texture.image.depth=s,this.dispose()),this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}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 n=Object.assign({},e.texture.image);return this.texture.source=new BN(n),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 io extends RAt{constructor(e=1,n=1,s={}){super(e,n,s),this.isWebGLRenderTarget=!0}}class GN extends Cn{constructor(e=null,n=1,s=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:s,depth:i},this.magFilter=gn,this.minFilter=gn,this.wrapR=us,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class AAt extends Cn{constructor(e=null,n=1,s=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:s,depth:i},this.magFilter=gn,this.minFilter=gn,this.wrapR=us,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class yr{constructor(e=0,n=0,s=0,i=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=s,this._w=i}static slerpFlat(e,n,s,i,r,o,a){let c=s[i+0],d=s[i+1],u=s[i+2],h=s[i+3];const f=r[o+0],m=r[o+1],_=r[o+2],g=r[o+3];if(a===0){e[n+0]=c,e[n+1]=d,e[n+2]=u,e[n+3]=h;return}if(a===1){e[n+0]=f,e[n+1]=m,e[n+2]=_,e[n+3]=g;return}if(h!==g||c!==f||d!==m||u!==_){let b=1-a;const E=c*f+d*m+u*_+h*g,y=E>=0?1:-1,v=1-E*E;if(v>Number.EPSILON){const R=Math.sqrt(v),C=Math.atan2(R,E*y);b=Math.sin(b*C)/R,a=Math.sin(a*C)/R}const S=a*y;if(c=c*b+f*S,d=d*b+m*S,u=u*b+_*S,h=h*b+g*S,b===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+h*h);c*=R,d*=R,u*=R,h*=R}}e[n]=c,e[n+1]=d,e[n+2]=u,e[n+3]=h}static multiplyQuaternionsFlat(e,n,s,i,r,o){const a=s[i],c=s[i+1],d=s[i+2],u=s[i+3],h=r[o],f=r[o+1],m=r[o+2],_=r[o+3];return e[n]=a*_+u*h+c*m-d*f,e[n+1]=c*_+u*f+d*h-a*m,e[n+2]=d*_+u*m+a*f-c*h,e[n+3]=u*_-a*h-c*f-d*m,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,n,s,i){return this._x=e,this._y=n,this._z=s,this._w=i,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,n){const s=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(s/2),u=a(i/2),h=a(r/2),f=c(s/2),m=c(i/2),_=c(r/2);switch(o){case"XYZ":this._x=f*u*h+d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h-f*m*_;break;case"YXZ":this._x=f*u*h+d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h+f*m*_;break;case"ZXY":this._x=f*u*h-d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h-f*m*_;break;case"ZYX":this._x=f*u*h-d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h+f*m*_;break;case"YZX":this._x=f*u*h+d*m*_,this._y=d*m*h+f*u*_,this._z=d*u*_-f*m*h,this._w=d*u*h-f*m*_;break;case"XZY":this._x=f*u*h-d*m*_,this._y=d*m*h-f*u*_,this._z=d*u*_+f*m*h,this._w=d*u*h+f*m*_;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const s=n/2,i=Math.sin(s);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,s=n[0],i=n[4],r=n[8],o=n[1],a=n[5],c=n[9],d=n[2],u=n[6],h=n[10],f=s+a+h;if(f>0){const m=.5/Math.sqrt(f+1);this._w=.25/m,this._x=(u-c)*m,this._y=(r-d)*m,this._z=(o-i)*m}else if(s>a&&s>h){const m=2*Math.sqrt(1+s-a-h);this._w=(u-c)/m,this._x=.25*m,this._y=(i+o)/m,this._z=(r+d)/m}else if(a>h){const m=2*Math.sqrt(1+a-s-h);this._w=(r-d)/m,this._x=(i+o)/m,this._y=.25*m,this._z=(c+u)/m}else{const m=2*Math.sqrt(1+h-s-a);this._w=(o-i)/m,this._x=(r+d)/m,this._y=(c+u)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let s=e.dot(n)+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*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Nn(this.dot(e),-1,1)))}rotateTowards(e,n){const s=this.angleTo(e);if(s===0)return this;const i=Math.min(1,n/s);return this.slerp(e,i),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,n){const s=e._x,i=e._y,r=e._z,o=e._w,a=n._x,c=n._y,d=n._z,u=n._w;return this._x=s*u+o*a+i*d-r*c,this._y=i*u+o*c+r*a-s*d,this._z=r*u+o*d+s*c-i*a,this._w=o*u-s*a-i*c-r*d,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+s*e._x+i*e._y+r*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=i,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const m=1-n;return this._w=m*o+n*this._w,this._x=m*s+n*this._x,this._y=m*i+n*this._y,this._z=m*r+n*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),h=Math.sin((1-n)*u)/d,f=Math.sin(n*u)/d;return this._w=o*h+this._w*f,this._x=s*h+this._x*f,this._y=i*h+this._y*f,this._z=r*h+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,s){return this.copy(e).slerp(n,s)}random(){const e=Math.random(),n=Math.sqrt(1-e),s=Math.sqrt(e),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(n*Math.cos(i),s*Math.sin(r),s*Math.cos(r),n*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),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 oe{constructor(e=0,n=0,s=0){oe.prototype.isVector3=!0,this.x=e,this.y=n,this.z=s}set(e,n,s){return s===void 0&&(s=this.z),this.x=e,this.y=n,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,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;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,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,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,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.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,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(fC.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(fC.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*n+r[3]*s+r[6]*i,this.y=r[1]*n+r[4]*s+r[7]*i,this.z=r[2]*n+r[5]*s+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,s=this.y,i=this.z,r=e.elements,o=1/(r[3]*n+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*n+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*n+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*n+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(e){const n=this.x,s=this.y,i=this.z,r=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*i-a*s),u=2*(a*n-r*i),h=2*(r*s-o*n);return this.x=n+c*d+o*h-a*u,this.y=s+c*u+a*d-r*h,this.z=i+c*h+r*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 n=this.x,s=this.y,i=this.z,r=e.elements;return this.x=r[0]*n+r[4]*s+r[8]*i,this.y=r[1]*n+r[5]*s+r[9]*i,this.z=r[2]*n+r[6]*s+r[10]*i,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,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,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,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this.z=e.z+(n.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const s=e.x,i=e.y,r=e.z,o=n.x,a=n.y,c=n.z;return this.x=i*c-r*a,this.y=r*o-s*c,this.z=s*a-i*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const s=e.dot(this)/n;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return Dm.copy(this).projectOnVector(e),this.sub(Dm)}reflect(e){return this.sub(Dm.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(Nn(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y,i=this.z-e.z;return n*n+s*s+i*i}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,n,s){const i=Math.sin(n)*e;return this.x=i*Math.sin(s),this.y=Math.cos(n)*e,this.z=i*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,s){return this.x=e*Math.sin(n),this.y=s,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),s=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=s,this.z=i,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*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,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,n=Math.random()*Math.PI*2,s=Math.sqrt(1-e**2);return this.x=s*Math.cos(n),this.y=s*Math.sin(n),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Dm=new oe,fC=new yr;class Fi{constructor(e=new oe(1/0,1/0,1/0),n=new oe(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,s=e.length;nthis.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,n){return n.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,Rs),Rs.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,s;return e.normal.x>0?(n=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),n<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ja),Fc.subVectors(this.max,Ja),yo.subVectors(e.a,Ja),vo.subVectors(e.b,Ja),So.subVectors(e.c,Ja),qi.subVectors(vo,yo),$i.subVectors(So,vo),wr.subVectors(yo,So);let n=[0,-qi.z,qi.y,0,-$i.z,$i.y,0,-wr.z,wr.y,qi.z,0,-qi.x,$i.z,0,-$i.x,wr.z,0,-wr.x,-qi.y,qi.x,0,-$i.y,$i.x,0,-wr.y,wr.x,0];return!Lm(n,yo,vo,So,Fc)||(n=[1,0,0,0,1,0,0,0,1],!Lm(n,yo,vo,So,Fc))?!1:(Bc.crossVectors(qi,$i),n=[Bc.x,Bc.y,Bc.z],Lm(n,yo,vo,So,Fc))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Rs).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Rs).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:(bi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),bi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),bi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),bi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),bi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),bi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),bi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),bi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(bi),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 bi=[new oe,new oe,new oe,new oe,new oe,new oe,new oe,new oe],Rs=new oe,Uc=new Fi,yo=new oe,vo=new oe,So=new oe,qi=new oe,$i=new oe,wr=new oe,Ja=new oe,Fc=new oe,Bc=new oe,Rr=new oe;function Lm(t,e,n,s,i){for(let r=0,o=t.length-3;r<=o;r+=3){Rr.fromArray(t,r);const a=i.x*Math.abs(Rr.x)+i.y*Math.abs(Rr.y)+i.z*Math.abs(Rr.z),c=e.dot(Rr),d=n.dot(Rr),u=s.dot(Rr);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const NAt=new Fi,el=new oe,Pm=new oe;class pi{constructor(e=new oe,n=-1){this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const s=this.center;n!==void 0?s.copy(n):NAt.setFromPoints(e).getCenter(s);let i=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}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;el.subVectors(e,this.center);const n=el.lengthSq();if(n>this.radius*this.radius){const s=Math.sqrt(n),i=(s-this.radius)*.5;this.center.addScaledVector(el,i/s),this.radius+=i}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):(Pm.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(el.copy(e.center).add(Pm)),this.expandByPoint(el.copy(e.center).sub(Pm))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Ei=new oe,Um=new oe,Gc=new oe,Yi=new oe,Fm=new oe,Vc=new oe,Bm=new oe;class np{constructor(e=new oe,n=new oe(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.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,Ei)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const s=n.dot(this.direction);return s<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,s)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Ei.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Ei.copy(this.origin).addScaledVector(this.direction,n),Ei.distanceToSquared(e))}distanceSqToSegment(e,n,s,i){Um.copy(e).add(n).multiplyScalar(.5),Gc.copy(n).sub(e).normalize(),Yi.copy(this.origin).sub(Um);const r=e.distanceTo(n)*.5,o=-this.direction.dot(Gc),a=Yi.dot(this.direction),c=-Yi.dot(Gc),d=Yi.lengthSq(),u=Math.abs(1-o*o);let h,f,m,_;if(u>0)if(h=o*c-a,f=o*a-c,_=r*u,h>=0)if(f>=-_)if(f<=_){const g=1/u;h*=g,f*=g,m=h*(h+o*f+2*a)+f*(o*h+f+2*c)+d}else f=r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;else f=-r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;else f<=-_?(h=Math.max(0,-(-o*r+a)),f=h>0?-r:Math.min(Math.max(-r,-c),r),m=-h*h+f*(f+2*c)+d):f<=_?(h=0,f=Math.min(Math.max(-r,-c),r),m=f*(f+2*c)+d):(h=Math.max(0,-(o*r+a)),f=h>0?r:Math.min(Math.max(-r,-c),r),m=-h*h+f*(f+2*c)+d);else f=o>0?-r:r,h=Math.max(0,-(o*f+a)),m=-h*h+f*(f+2*c)+d;return s&&s.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(Um).addScaledVector(Gc,f),m}intersectSphere(e,n){Ei.subVectors(e.center,this.origin);const s=Ei.dot(this.direction),i=Ei.dot(Ei)-s*s,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=s-o,c=s+o;return c<0?null:a<0?this.at(c,n):this.at(a,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const s=-(this.origin.dot(e.normal)+e.constant)/n;return s>=0?s:null}intersectPlane(e,n){const s=this.distanceToPlane(e);return s===null?null:this.at(s,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let s,i,r,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,h=1/this.direction.z,f=this.origin;return d>=0?(s=(e.min.x-f.x)*d,i=(e.max.x-f.x)*d):(s=(e.max.x-f.x)*d,i=(e.min.x-f.x)*d),u>=0?(r=(e.min.y-f.y)*u,o=(e.max.y-f.y)*u):(r=(e.max.y-f.y)*u,o=(e.min.y-f.y)*u),s>o||r>i||((r>s||isNaN(s))&&(s=r),(o=0?(a=(e.min.z-f.z)*h,c=(e.max.z-f.z)*h):(a=(e.max.z-f.z)*h,c=(e.min.z-f.z)*h),s>c||a>i)||((a>s||s!==s)&&(s=a),(c=0?s:i,n)}intersectsBox(e){return this.intersectBox(e,Ei)!==null}intersectTriangle(e,n,s,i,r){Fm.subVectors(n,e),Vc.subVectors(s,e),Bm.crossVectors(Fm,Vc);let o=this.direction.dot(Bm),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Yi.subVectors(this.origin,e);const c=a*this.direction.dot(Vc.crossVectors(Yi,Vc));if(c<0)return null;const d=a*this.direction.dot(Fm.cross(Yi));if(d<0||c+d>o)return null;const u=-a*Yi.dot(Bm);return u<0?null:this.at(u/o,r)}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,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b){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,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b)}set(e,n,s,i,r,o,a,c,d,u,h,f,m,_,g,b){const E=this.elements;return E[0]=e,E[4]=n,E[8]=s,E[12]=i,E[1]=r,E[5]=o,E[9]=a,E[13]=c,E[2]=d,E[6]=u,E[10]=h,E[14]=f,E[3]=m,E[7]=_,E[11]=g,E[15]=b,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 n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],this}copyPosition(e){const n=this.elements,s=e.elements;return n[12]=s[12],n[13]=s[13],n[14]=s[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,s){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,n,s){return this.set(e.x,n.x,s.x,0,e.y,n.y,s.y,0,e.z,n.z,s.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,s=e.elements,i=1/To.setFromMatrixColumn(e,0).length(),r=1/To.setFromMatrixColumn(e,1).length(),o=1/To.setFromMatrixColumn(e,2).length();return n[0]=s[0]*i,n[1]=s[1]*i,n[2]=s[2]*i,n[3]=0,n[4]=s[4]*r,n[5]=s[5]*r,n[6]=s[6]*r,n[7]=0,n[8]=s[8]*o,n[9]=s[9]*o,n[10]=s[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,s=e.x,i=e.y,r=e.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(i),d=Math.sin(i),u=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const f=o*u,m=o*h,_=a*u,g=a*h;n[0]=c*u,n[4]=-c*h,n[8]=d,n[1]=m+_*d,n[5]=f-g*d,n[9]=-a*c,n[2]=g-f*d,n[6]=_+m*d,n[10]=o*c}else if(e.order==="YXZ"){const f=c*u,m=c*h,_=d*u,g=d*h;n[0]=f+g*a,n[4]=_*a-m,n[8]=o*d,n[1]=o*h,n[5]=o*u,n[9]=-a,n[2]=m*a-_,n[6]=g+f*a,n[10]=o*c}else if(e.order==="ZXY"){const f=c*u,m=c*h,_=d*u,g=d*h;n[0]=f-g*a,n[4]=-o*h,n[8]=_+m*a,n[1]=m+_*a,n[5]=o*u,n[9]=g-f*a,n[2]=-o*d,n[6]=a,n[10]=o*c}else if(e.order==="ZYX"){const f=o*u,m=o*h,_=a*u,g=a*h;n[0]=c*u,n[4]=_*d-m,n[8]=f*d+g,n[1]=c*h,n[5]=g*d+f,n[9]=m*d-_,n[2]=-d,n[6]=a*c,n[10]=o*c}else if(e.order==="YZX"){const f=o*c,m=o*d,_=a*c,g=a*d;n[0]=c*u,n[4]=g-f*h,n[8]=_*h+m,n[1]=h,n[5]=o*u,n[9]=-a*u,n[2]=-d*u,n[6]=m*h+_,n[10]=f-g*h}else if(e.order==="XZY"){const f=o*c,m=o*d,_=a*c,g=a*d;n[0]=c*u,n[4]=-h,n[8]=d*u,n[1]=f*h+g,n[5]=o*u,n[9]=m*h-_,n[2]=_*h-m,n[6]=a*u,n[10]=g*h+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(OAt,e,MAt)}lookAt(e,n,s){const i=this.elements;return jn.subVectors(e,n),jn.lengthSq()===0&&(jn.z=1),jn.normalize(),Wi.crossVectors(s,jn),Wi.lengthSq()===0&&(Math.abs(s.z)===1?jn.x+=1e-4:jn.z+=1e-4,jn.normalize(),Wi.crossVectors(s,jn)),Wi.normalize(),zc.crossVectors(jn,Wi),i[0]=Wi.x,i[4]=zc.x,i[8]=jn.x,i[1]=Wi.y,i[5]=zc.y,i[9]=jn.y,i[2]=Wi.z,i[6]=zc.z,i[10]=jn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,i=n.elements,r=this.elements,o=s[0],a=s[4],c=s[8],d=s[12],u=s[1],h=s[5],f=s[9],m=s[13],_=s[2],g=s[6],b=s[10],E=s[14],y=s[3],v=s[7],S=s[11],R=s[15],C=i[0],A=i[4],I=i[8],x=i[12],O=i[1],B=i[5],H=i[9],te=i[13],k=i[2],$=i[6],q=i[10],U=i[14],W=i[3],ne=i[7],le=i[11],me=i[15];return r[0]=o*C+a*O+c*k+d*W,r[4]=o*A+a*B+c*$+d*ne,r[8]=o*I+a*H+c*q+d*le,r[12]=o*x+a*te+c*U+d*me,r[1]=u*C+h*O+f*k+m*W,r[5]=u*A+h*B+f*$+m*ne,r[9]=u*I+h*H+f*q+m*le,r[13]=u*x+h*te+f*U+m*me,r[2]=_*C+g*O+b*k+E*W,r[6]=_*A+g*B+b*$+E*ne,r[10]=_*I+g*H+b*q+E*le,r[14]=_*x+g*te+b*U+E*me,r[3]=y*C+v*O+S*k+R*W,r[7]=y*A+v*B+S*$+R*ne,r[11]=y*I+v*H+S*q+R*le,r[15]=y*x+v*te+S*U+R*me,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[4],i=e[8],r=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],h=e[6],f=e[10],m=e[14],_=e[3],g=e[7],b=e[11],E=e[15];return _*(+r*c*h-i*d*h-r*a*f+s*d*f+i*a*m-s*c*m)+g*(+n*c*m-n*d*f+r*o*f-i*o*m+i*d*u-r*c*u)+b*(+n*d*h-n*a*m-r*o*h+s*o*m+r*a*u-s*d*u)+E*(-i*a*u-n*c*h+n*a*f+i*o*h-s*o*f+s*c*u)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,s){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=n,i[14]=s),this}invert(){const e=this.elements,n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],h=e[9],f=e[10],m=e[11],_=e[12],g=e[13],b=e[14],E=e[15],y=h*b*d-g*f*d+g*c*m-a*b*m-h*c*E+a*f*E,v=_*f*d-u*b*d-_*c*m+o*b*m+u*c*E-o*f*E,S=u*g*d-_*h*d+_*a*m-o*g*m-u*a*E+o*h*E,R=_*h*c-u*g*c-_*a*f+o*g*f+u*a*b-o*h*b,C=n*y+s*v+i*S+r*R;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/C;return e[0]=y*A,e[1]=(g*f*r-h*b*r-g*i*m+s*b*m+h*i*E-s*f*E)*A,e[2]=(a*b*r-g*c*r+g*i*d-s*b*d-a*i*E+s*c*E)*A,e[3]=(h*c*r-a*f*r-h*i*d+s*f*d+a*i*m-s*c*m)*A,e[4]=v*A,e[5]=(u*b*r-_*f*r+_*i*m-n*b*m-u*i*E+n*f*E)*A,e[6]=(_*c*r-o*b*r-_*i*d+n*b*d+o*i*E-n*c*E)*A,e[7]=(o*f*r-u*c*r+u*i*d-n*f*d-o*i*m+n*c*m)*A,e[8]=S*A,e[9]=(_*h*r-u*g*r-_*s*m+n*g*m+u*s*E-n*h*E)*A,e[10]=(o*g*r-_*a*r+_*s*d-n*g*d-o*s*E+n*a*E)*A,e[11]=(u*a*r-o*h*r-u*s*d+n*h*d+o*s*m-n*a*m)*A,e[12]=R*A,e[13]=(u*g*i-_*h*i+_*s*f-n*g*f-u*s*b+n*h*b)*A,e[14]=(_*a*i-o*g*i-_*s*c+n*g*c+o*s*b-n*a*b)*A,e[15]=(o*h*i-u*a*i+u*s*c-n*h*c-o*s*f+n*a*f)*A,this}scale(e){const n=this.elements,s=e.x,i=e.y,r=e.z;return n[0]*=s,n[4]*=i,n[8]*=r,n[1]*=s,n[5]*=i,n[9]*=r,n[2]*=s,n[6]*=i,n[10]*=r,n[3]*=s,n[7]*=i,n[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,n=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],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,s,i))}makeTranslation(e,n,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,n,0,0,1,s,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,n,-s,0,0,s,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,0,s,0,0,1,0,0,-s,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const s=Math.cos(n),i=Math.sin(n),r=1-s,o=e.x,a=e.y,c=e.z,d=r*o,u=r*a;return this.set(d*o+s,d*a-i*c,d*c+i*a,0,d*a+i*c,u*a+s,u*c-i*o,0,d*c-i*a,u*c+i*o,r*c*c+s,0,0,0,0,1),this}makeScale(e,n,s){return this.set(e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,n,s,i,r,o){return this.set(1,s,r,0,e,1,o,0,n,i,1,0,0,0,0,1),this}compose(e,n,s){const i=this.elements,r=n._x,o=n._y,a=n._z,c=n._w,d=r+r,u=o+o,h=a+a,f=r*d,m=r*u,_=r*h,g=o*u,b=o*h,E=a*h,y=c*d,v=c*u,S=c*h,R=s.x,C=s.y,A=s.z;return i[0]=(1-(g+E))*R,i[1]=(m+S)*R,i[2]=(_-v)*R,i[3]=0,i[4]=(m-S)*C,i[5]=(1-(f+E))*C,i[6]=(b+y)*C,i[7]=0,i[8]=(_+v)*A,i[9]=(b-y)*A,i[10]=(1-(f+g))*A,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,n,s){const i=this.elements;let r=To.set(i[0],i[1],i[2]).length();const o=To.set(i[4],i[5],i[6]).length(),a=To.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],As.copy(this);const d=1/r,u=1/o,h=1/a;return As.elements[0]*=d,As.elements[1]*=d,As.elements[2]*=d,As.elements[4]*=u,As.elements[5]*=u,As.elements[6]*=u,As.elements[8]*=h,As.elements[9]*=h,As.elements[10]*=h,n.setFromRotationMatrix(As),s.x=r,s.y=o,s.z=a,this}makePerspective(e,n,s,i,r,o,a=Ni){const c=this.elements,d=2*r/(n-e),u=2*r/(s-i),h=(n+e)/(n-e),f=(s+i)/(s-i);let m,_;if(a===Ni)m=-(o+r)/(o-r),_=-2*o*r/(o-r);else if(a===au)m=-o/(o-r),_=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=m,c[14]=_,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,n,s,i,r,o,a=Ni){const c=this.elements,d=1/(n-e),u=1/(s-i),h=1/(o-r),f=(n+e)*d,m=(s+i)*u;let _,g;if(a===Ni)_=(o+r)*h,g=-2*h;else if(a===au)_=r*h,g=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-f,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=g,c[14]=-_,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const n=this.elements,s=e.elements;for(let i=0;i<16;i++)if(n[i]!==s[i])return!1;return!0}fromArray(e,n=0){for(let s=0;s<16;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e[n+9]=s[9],e[n+10]=s[10],e[n+11]=s[11],e[n+12]=s[12],e[n+13]=s[13],e[n+14]=s[14],e[n+15]=s[15],e}}const To=new oe,As=new xt,OAt=new oe(0,0,0),MAt=new oe(1,1,1),Wi=new oe,zc=new oe,jn=new oe,mC=new xt,gC=new yr;class sp{constructor(e=0,n=0,s=0,i=sp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=s,this._order=i}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,n,s,i=this._order){return this._x=e,this._y=n,this._z=s,this._order=i,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,n=this._order,s=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],c=i[1],d=i[5],u=i[9],h=i[2],f=i[6],m=i[10];switch(n){case"XYZ":this._y=Math.asin(Nn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,m),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(f,d),this._z=0);break;case"YXZ":this._x=Math.asin(-Nn(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Nn(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-h,m),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,r));break;case"ZYX":this._y=Math.asin(-Nn(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(f,m),this._z=Math.atan2(c,r)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(Nn(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-Nn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,d),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,s){return mC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(mC,n,s)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return gC.setFromEuler(this),this.setFromQuaternion(gC,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=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+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}}sp.DEFAULT_ORDER="XYZ";class VN{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let n=0;n1){for(let s=0;s0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.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()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function r(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(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){i.children=[];for(let a=0;a0){i.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),h.length>0&&(s.shapes=h),f.length>0&&(s.skeletons=f),m.length>0&&(s.animations=m),_.length>0&&(s.nodes=_)}return s.object=i,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,n=!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)),n===!0)for(let s=0;s0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,n,s,i,r){Ns.subVectors(i,n),vi.subVectors(s,n),Gm.subVectors(e,n);const o=Ns.dot(Ns),a=Ns.dot(vi),c=Ns.dot(Gm),d=vi.dot(vi),u=vi.dot(Gm),h=o*d-a*a;if(h===0)return r.set(-2,-1,-1);const f=1/h,m=(d*c-a*u)*f,_=(o*u-a*c)*f;return r.set(1-m-_,_,m)}static containsPoint(e,n,s,i){return this.getBarycoord(e,n,s,i,Si),Si.x>=0&&Si.y>=0&&Si.x+Si.y<=1}static getUV(e,n,s,i,r,o,a,c){return qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),qc=!0),this.getInterpolation(e,n,s,i,r,o,a,c)}static getInterpolation(e,n,s,i,r,o,a,c){return this.getBarycoord(e,n,s,i,Si),c.setScalar(0),c.addScaledVector(r,Si.x),c.addScaledVector(o,Si.y),c.addScaledVector(a,Si.z),c}static isFrontFacing(e,n,s,i){return Ns.subVectors(s,n),vi.subVectors(e,n),Ns.cross(vi).dot(i)<0}set(e,n,s){return this.a.copy(e),this.b.copy(n),this.c.copy(s),this}setFromPointsAndIndices(e,n,s,i){return this.a.copy(e[n]),this.b.copy(e[s]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,n,s,i){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,s),this.c.fromBufferAttribute(e,i),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 Ns.subVectors(this.c,this.b),vi.subVectors(this.a,this.b),Ns.cross(vi).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return ks.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return ks.getBarycoord(e,this.a,this.b,this.c,n)}getUV(e,n,s,i,r){return qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),qc=!0),ks.getInterpolation(e,this.a,this.b,this.c,n,s,i,r)}getInterpolation(e,n,s,i,r){return ks.getInterpolation(e,this.a,this.b,this.c,n,s,i,r)}containsPoint(e){return ks.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return ks.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const s=this.a,i=this.b,r=this.c;let o,a;Co.subVectors(i,s),wo.subVectors(r,s),Vm.subVectors(e,s);const c=Co.dot(Vm),d=wo.dot(Vm);if(c<=0&&d<=0)return n.copy(s);zm.subVectors(e,i);const u=Co.dot(zm),h=wo.dot(zm);if(u>=0&&h<=u)return n.copy(i);const f=c*h-u*d;if(f<=0&&c>=0&&u<=0)return o=c/(c-u),n.copy(s).addScaledVector(Co,o);Hm.subVectors(e,r);const m=Co.dot(Hm),_=wo.dot(Hm);if(_>=0&&m<=_)return n.copy(r);const g=m*d-c*_;if(g<=0&&d>=0&&_<=0)return a=d/(d-_),n.copy(s).addScaledVector(wo,a);const b=u*_-m*h;if(b<=0&&h-u>=0&&m-_>=0)return SC.subVectors(r,i),a=(h-u)/(h-u+(m-_)),n.copy(i).addScaledVector(SC,a);const E=1/(b+g+f);return o=g*E,a=f*E,n.copy(s).addScaledVector(Co,o).addScaledVector(wo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const zN={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},Ki={h:0,s:0,l:0},$c={h:0,s:0,l:0};function qm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class _t{constructor(e,n,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,s)}set(e,n,s){if(n===void 0&&s===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,n,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=tn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ut.toWorkingColorSpace(this,n),this}setRGB(e,n,s,i=Ut.workingColorSpace){return this.r=e,this.g=n,this.b=s,Ut.toWorkingColorSpace(this,i),this}setHSL(e,n,s,i=Ut.workingColorSpace){if(e=KE(e,1),n=Nn(n,0,1),s=Nn(s,0,1),n===0)this.r=this.g=this.b=s;else{const r=s<=.5?s*(1+n):s+n-s*n,o=2*s-r;this.r=qm(o,r,e+1/3),this.g=qm(o,r,e),this.b=qm(o,r,e-1/3)}return Ut.toWorkingColorSpace(this,i),this}setStyle(e,n=tn){function s(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,n);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,n);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(r,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=tn){const s=zN[e.toLowerCase()];return s!==void 0?this.setHex(s,n):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=Qo(e.r),this.g=Qo(e.g),this.b=Qo(e.b),this}copyLinearToSRGB(e){return this.r=Im(e.r),this.g=Im(e.g),this.b=Im(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=tn){return Ut.fromWorkingColorSpace(An.copy(this),e),Math.round(Nn(An.r*255,0,255))*65536+Math.round(Nn(An.g*255,0,255))*256+Math.round(Nn(An.b*255,0,255))}getHexString(e=tn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Ut.workingColorSpace){Ut.fromWorkingColorSpace(An.copy(this),n);const s=An.r,i=An.g,r=An.b,o=Math.max(s,i,r),a=Math.min(s,i,r);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const h=o-a;switch(d=u<=.5?h/(o+a):h/(2-o-a),o){case s:c=(i-r)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const s=e[n];if(s===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const i=this[n];if(i===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(s):i&&i.isVector3&&s&&s.isVector3?i.copy(s):this[n]=s}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(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!==jo&&(s.blending=this.blending),this.side!==Li&&(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!==jg&&(s.blendSrc=this.blendSrc),this.blendDst!==Qg&&(s.blendDst=this.blendDst),this.blendEquation!==Fr&&(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!==nu&&(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!==cC&&(s.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(s.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(s.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==bo&&(s.stencilFail=this.stencilFail),this.stencilZFail!==bo&&(s.stencilZFail=this.stencilZFail),this.stencilZPass!==bo&&(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 i(r){const o=[];for(const a in r){const c=r[a];delete c.metadata,o.push(c)}return o}if(n){const r=i(e.textures),o=i(e.images);r.length>0&&(s.textures=r),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 n=e.clippingPlanes;let s=null;if(n!==null){const i=n.length;s=new Array(i);for(let r=0;r!==i;++r)s[r]=n[r].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 lr extends Gs{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new _t(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=qE,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 on=new oe,Yc=new At;class Bn{constructor(e,n,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=n,this.count=e!==void 0?e.length/n:0,this.normalized=s,this.usage=tb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ai,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,n){this.updateRanges.push({start:e,count:n})}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,n,s){e*=this.itemSize,s*=n.itemSize;for(let i=0,r=this.itemSize;i0&&(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 n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const s=this.attributes;for(const c in s){const d=s[c];e.data.attributes[c]=d.toJSON(e.data)}const i={};let r=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let h=0,f=d.length;h0&&(i[c]=u,r=!0)}r&&(e.data.morphAttributes=i,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 n={};this.name=e.name;const s=e.index;s!==null&&this.setIndex(s.clone(n));const i=e.attributes;for(const d in i){const u=i[d];this.setAttribute(d,u.clone(n))}const r=e.morphAttributes;for(const d in r){const u=[],h=r[d];for(let f=0,m=h.length;f0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r(e.far-e.near)**2))&&(TC.copy(r).invert(),Ar.copy(e.ray).applyMatrix4(TC),!(s.boundingBox!==null&&Ar.intersectsBox(s.boundingBox)===!1)&&this._computeIntersections(e,n,Ar)))}_computeIntersections(e,n,s){let i;const r=this.geometry,o=this.material,a=r.index,c=r.attributes.position,d=r.attributes.uv,u=r.attributes.uv1,h=r.attributes.normal,f=r.groups,m=r.drawRange;if(a!==null)if(Array.isArray(o))for(let _=0,g=f.length;_n.far?null:{distance:d,point:Jc.clone(),object:t}}function ed(t,e,n,s,i,r,o,a,c,d){t.getVertexPosition(a,Ao),t.getVertexPosition(c,No),t.getVertexPosition(d,Oo);const u=BAt(t,e,n,s,Ao,No,Oo,Zc);if(u){i&&(jc.fromBufferAttribute(i,a),Qc.fromBufferAttribute(i,c),Xc.fromBufferAttribute(i,d),u.uv=ks.getInterpolation(Zc,Ao,No,Oo,jc,Qc,Xc,new At)),r&&(jc.fromBufferAttribute(r,a),Qc.fromBufferAttribute(r,c),Xc.fromBufferAttribute(r,d),u.uv1=ks.getInterpolation(Zc,Ao,No,Oo,jc,Qc,Xc,new At),u.uv2=u.uv1),o&&(CC.fromBufferAttribute(o,a),wC.fromBufferAttribute(o,c),RC.fromBufferAttribute(o,d),u.normal=ks.getInterpolation(Zc,Ao,No,Oo,CC,wC,RC,new oe),u.normal.dot(s.direction)>0&&u.normal.multiplyScalar(-1));const h={a,b:c,c:d,normal:new oe,materialIndex:0};ks.getNormal(Ao,No,Oo,h.normal),u.face=h}return u}class hr extends _i{constructor(e=1,n=1,s=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:s,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const c=[],d=[],u=[],h=[];let f=0,m=0;_("z","y","x",-1,-1,s,n,e,o,r,0),_("z","y","x",1,-1,s,n,-e,o,r,1),_("x","z","y",1,1,e,s,n,i,o,2),_("x","z","y",1,-1,e,s,-n,i,o,3),_("x","y","z",1,-1,e,n,s,i,r,4),_("x","y","z",-1,-1,e,n,-s,i,r,5),this.setIndex(c),this.setAttribute("position",new Oi(d,3)),this.setAttribute("normal",new Oi(u,3)),this.setAttribute("uv",new Oi(h,2));function _(g,b,E,y,v,S,R,C,A,I,x){const O=S/A,B=R/I,H=S/2,te=R/2,k=C/2,$=A+1,q=I+1;let U=0,W=0;const ne=new oe;for(let le=0;le0?1:-1,u.push(ne.x,ne.y,ne.z),h.push(Se/A),h.push(1-le/I),U+=1}}for(let le=0;le0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const s={};for(const i in this.extensions)this.extensions[i]===!0&&(s[i]=!0);return Object.keys(s).length>0&&(n.extensions=s),n}}class YN extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Ni}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Un extends YN{constructor(e=50,n=1,s=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=s,this.far=i,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=fa*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Tl*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return fa*2*Math.atan(Math.tan(Tl*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,s,i,r,o){this.aspect=e/n,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=n,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Tl*.5*this.fov)/this.zoom,s=2*n,i=this.aspect*s,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,d=o.fullHeight;r+=o.offsetX*i/c,n-=o.offsetY*s/d,i*=o.width/c,s*=o.height/d}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,n,n-s,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Mo=-90,Io=1;class WAt extends Jt{constructor(e,n,s){super(),this.type="CubeCamera",this.renderTarget=s,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Un(Mo,Io,e,n);i.layers=this.layers,this.add(i);const r=new Un(Mo,Io,e,n);r.layers=this.layers,this.add(r);const o=new Un(Mo,Io,e,n);o.layers=this.layers,this.add(o);const a=new Un(Mo,Io,e,n);a.layers=this.layers,this.add(a);const c=new Un(Mo,Io,e,n);c.layers=this.layers,this.add(c);const d=new Un(Mo,Io,e,n);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[s,i,r,o,a,c]=n;for(const d of n)this.remove(d);if(e===Ni)s.up.set(0,1,0),s.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===au)s.up.set(0,-1,0),s.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of n)this.add(d),d.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:s,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,c,d,u]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),_=e.xr.enabled;e.xr.enabled=!1;const g=s.texture.generateMipmaps;s.texture.generateMipmaps=!1,e.setRenderTarget(s,0,i),e.render(n,r),e.setRenderTarget(s,1,i),e.render(n,o),e.setRenderTarget(s,2,i),e.render(n,a),e.setRenderTarget(s,3,i),e.render(n,c),e.setRenderTarget(s,4,i),e.render(n,d),s.texture.generateMipmaps=g,e.setRenderTarget(s,5,i),e.render(n,u),e.setRenderTarget(h,f,m),e.xr.enabled=_,s.texture.needsPMREMUpdate=!0}}class WN extends Cn{constructor(e,n,s,i,r,o,a,c,d,u){e=e!==void 0?e:[],n=n!==void 0?n:da,super(e,n,s,i,r,o,a,c,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class KAt extends io{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const s={width:e,height:e,depth:1},i=[s,s,s,s,s,s];n.encoding!==void 0&&(Cl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===Qr?tn:_s),this.texture=new WN(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:zn}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const s={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class ro extends Gs{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=zAt,this.fragmentShader=HAt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=ma(e.uniforms),this.uniformsGroups=GAt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?n.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?n.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?n.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?n.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?n.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?n.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?n.uniforms[i]={type:"m4",value:o.toArray()}:n.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const s={};for(const i in this.extensions)this.extensions[i]===!0&&(s[i]=!0);return Object.keys(s).length>0&&(n.extensions=s),n}}class YN extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Ni}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Un extends YN{constructor(e=50,n=1,s=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=s,this.far=i,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=fa*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Tl*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return fa*2*Math.atan(Math.tan(Tl*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,n,s,i,r,o){this.aspect=e/n,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=n,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Tl*.5*this.fov)/this.zoom,s=2*n,i=this.aspect*s,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,d=o.fullHeight;r+=o.offsetX*i/c,n-=o.offsetY*s/d,i*=o.width/c,s*=o.height/d}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,n,n-s,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Mo=-90,Io=1;class qAt extends Jt{constructor(e,n,s){super(),this.type="CubeCamera",this.renderTarget=s,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Un(Mo,Io,e,n);i.layers=this.layers,this.add(i);const r=new Un(Mo,Io,e,n);r.layers=this.layers,this.add(r);const o=new Un(Mo,Io,e,n);o.layers=this.layers,this.add(o);const a=new Un(Mo,Io,e,n);a.layers=this.layers,this.add(a);const c=new Un(Mo,Io,e,n);c.layers=this.layers,this.add(c);const d=new Un(Mo,Io,e,n);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[s,i,r,o,a,c]=n;for(const d of n)this.remove(d);if(e===Ni)s.up.set(0,1,0),s.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===au)s.up.set(0,-1,0),s.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of n)this.add(d),d.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:s,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,c,d,u]=this.children,h=e.getRenderTarget(),f=e.getActiveCubeFace(),m=e.getActiveMipmapLevel(),_=e.xr.enabled;e.xr.enabled=!1;const g=s.texture.generateMipmaps;s.texture.generateMipmaps=!1,e.setRenderTarget(s,0,i),e.render(n,r),e.setRenderTarget(s,1,i),e.render(n,o),e.setRenderTarget(s,2,i),e.render(n,a),e.setRenderTarget(s,3,i),e.render(n,c),e.setRenderTarget(s,4,i),e.render(n,d),s.texture.generateMipmaps=g,e.setRenderTarget(s,5,i),e.render(n,u),e.setRenderTarget(h,f,m),e.xr.enabled=_,s.texture.needsPMREMUpdate=!0}}class WN extends Cn{constructor(e,n,s,i,r,o,a,c,d,u){e=e!==void 0?e:[],n=n!==void 0?n:da,super(e,n,s,i,r,o,a,c,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class $At extends io{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const s={width:e,height:e,depth:1},i=[s,s,s,s,s,s];n.encoding!==void 0&&(Cl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===Qr?tn:_s),this.texture=new WN(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:zn}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const s={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -371,9 +371,9 @@ ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},i=new hr(5,5,5),r=new ro({name:"CubemapFromEquirect",uniforms:ma(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader,side:$n,blending:ur});r.uniforms.tEquirect.value=n;const o=new Fn(i,r),a=n.minFilter;return n.minFilter===so&&(n.minFilter=zn),new WAt(1,10,this).update(e,o),n.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,n,s,i){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(n,s,i);e.setRenderTarget(r)}}const Wm=new oe,jAt=new oe,QAt=new Tt;class Ir{constructor(e=new oe(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,s,i){return this.normal.set(e,n,s),this.constant=i,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,s){const i=Wm.subVectors(s,n).cross(jAt.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const s=e.delta(Wm),i=this.normal.dot(s);if(i===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:n.copy(e.start).addScaledVector(s,r)}intersectsLine(e){const n=this.distanceToPoint(e.start),s=this.distanceToPoint(e.end);return n<0&&s>0||s<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const s=n||QAt.getNormalMatrix(e),i=this.coplanarPoint(Wm).applyMatrix4(e),r=this.normal.applyMatrix3(s).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Nr=new pi,td=new oe;class jE{constructor(e=new Ir,n=new Ir,s=new Ir,i=new Ir,r=new Ir,o=new Ir){this.planes=[e,n,s,i,r,o]}set(e,n,s,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(s),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(e){const n=this.planes;for(let s=0;s<6;s++)n[s].copy(e.planes[s]);return this}setFromProjectionMatrix(e,n=Ni){const s=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],c=i[3],d=i[4],u=i[5],h=i[6],f=i[7],m=i[8],_=i[9],g=i[10],b=i[11],E=i[12],y=i[13],v=i[14],S=i[15];if(s[0].setComponents(c-r,f-d,b-m,S-E).normalize(),s[1].setComponents(c+r,f+d,b+m,S+E).normalize(),s[2].setComponents(c+o,f+u,b+_,S+y).normalize(),s[3].setComponents(c-o,f-u,b-_,S-y).normalize(),s[4].setComponents(c-a,f-h,b-g,S-v).normalize(),n===Ni)s[5].setComponents(c+a,f+h,b+g,S+v).normalize();else if(n===au)s[5].setComponents(a,h,g,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Nr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Nr.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Nr)}intersectsSprite(e){return Nr.center.set(0,0,0),Nr.radius=.7071067811865476,Nr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Nr)}intersectsSphere(e){const n=this.planes,s=e.center,i=-e.radius;for(let r=0;r<6;r++)if(n[r].distanceToPoint(s)0?e.max.x:e.min.x,td.y=i.normal.y>0?e.max.y:e.min.y,td.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(td)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let s=0;s<6;s++)if(n[s].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function KN(){let t=null,e=!1,n=null,s=null;function i(r,o){n(r,o),s=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(s=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(s),e=!1},setAnimationLoop:function(r){n=r},setContext:function(r){t=r}}}function XAt(t,e){const n=e.isWebGL2,s=new WeakMap;function i(d,u){const h=d.array,f=d.usage,m=h.byteLength,_=t.createBuffer();t.bindBuffer(u,_),t.bufferData(u,h,f),d.onUploadCallback();let g;if(h instanceof Float32Array)g=t.FLOAT;else if(h instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(n)g=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else g=t.UNSIGNED_SHORT;else if(h instanceof Int16Array)g=t.SHORT;else if(h instanceof Uint32Array)g=t.UNSIGNED_INT;else if(h instanceof Int32Array)g=t.INT;else if(h instanceof Int8Array)g=t.BYTE;else if(h instanceof Uint8Array)g=t.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)g=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:_,type:g,bytesPerElement:h.BYTES_PER_ELEMENT,version:d.version,size:m}}function r(d,u,h){const f=u.array,m=u._updateRange,_=u.updateRanges;if(t.bindBuffer(h,d),m.count===-1&&_.length===0&&t.bufferSubData(h,0,f),_.length!==0){for(let g=0,b=_.length;g1?null:n.copy(e.start).addScaledVector(s,r)}intersectsLine(e){const n=this.distanceToPoint(e.start),s=this.distanceToPoint(e.end);return n<0&&s>0||s<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const s=n||WAt.getNormalMatrix(e),i=this.coplanarPoint(Wm).applyMatrix4(e),r=this.normal.applyMatrix3(s).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Nr=new pi,td=new oe;class jE{constructor(e=new Ir,n=new Ir,s=new Ir,i=new Ir,r=new Ir,o=new Ir){this.planes=[e,n,s,i,r,o]}set(e,n,s,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(n),a[2].copy(s),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(e){const n=this.planes;for(let s=0;s<6;s++)n[s].copy(e.planes[s]);return this}setFromProjectionMatrix(e,n=Ni){const s=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],c=i[3],d=i[4],u=i[5],h=i[6],f=i[7],m=i[8],_=i[9],g=i[10],b=i[11],E=i[12],y=i[13],v=i[14],S=i[15];if(s[0].setComponents(c-r,f-d,b-m,S-E).normalize(),s[1].setComponents(c+r,f+d,b+m,S+E).normalize(),s[2].setComponents(c+o,f+u,b+_,S+y).normalize(),s[3].setComponents(c-o,f-u,b-_,S-y).normalize(),s[4].setComponents(c-a,f-h,b-g,S-v).normalize(),n===Ni)s[5].setComponents(c+a,f+h,b+g,S+v).normalize();else if(n===au)s[5].setComponents(a,h,g,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Nr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Nr.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Nr)}intersectsSprite(e){return Nr.center.set(0,0,0),Nr.radius=.7071067811865476,Nr.applyMatrix4(e.matrixWorld),this.intersectsSphere(Nr)}intersectsSphere(e){const n=this.planes,s=e.center,i=-e.radius;for(let r=0;r<6;r++)if(n[r].distanceToPoint(s)0?e.max.x:e.min.x,td.y=i.normal.y>0?e.max.y:e.min.y,td.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(td)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let s=0;s<6;s++)if(n[s].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function KN(){let t=null,e=!1,n=null,s=null;function i(r,o){n(r,o),s=t.requestAnimationFrame(i)}return{start:function(){e!==!0&&n!==null&&(s=t.requestAnimationFrame(i),e=!0)},stop:function(){t.cancelAnimationFrame(s),e=!1},setAnimationLoop:function(r){n=r},setContext:function(r){t=r}}}function KAt(t,e){const n=e.isWebGL2,s=new WeakMap;function i(d,u){const h=d.array,f=d.usage,m=h.byteLength,_=t.createBuffer();t.bindBuffer(u,_),t.bufferData(u,h,f),d.onUploadCallback();let g;if(h instanceof Float32Array)g=t.FLOAT;else if(h instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(n)g=t.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else g=t.UNSIGNED_SHORT;else if(h instanceof Int16Array)g=t.SHORT;else if(h instanceof Uint32Array)g=t.UNSIGNED_INT;else if(h instanceof Int32Array)g=t.INT;else if(h instanceof Int8Array)g=t.BYTE;else if(h instanceof Uint8Array)g=t.UNSIGNED_BYTE;else if(h instanceof Uint8ClampedArray)g=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+h);return{buffer:_,type:g,bytesPerElement:h.BYTES_PER_ELEMENT,version:d.version,size:m}}function r(d,u,h){const f=u.array,m=u._updateRange,_=u.updateRanges;if(t.bindBuffer(h,d),m.count===-1&&_.length===0&&t.bufferSubData(h,0,f),_.length!==0){for(let g=0,b=_.length;g 0 +#endif`,d2t=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { @@ -570,26 +570,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #pragma unroll_loop_end if ( clipped ) discard; #endif -#endif`,h2t=`#if NUM_CLIPPING_PLANES > 0 +#endif`,u2t=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,f2t=`#if NUM_CLIPPING_PLANES > 0 +#endif`,p2t=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`,m2t=`#if NUM_CLIPPING_PLANES > 0 +#endif`,_2t=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,g2t=`#if defined( USE_COLOR_ALPHA ) +#endif`,h2t=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,b2t=`#if defined( USE_COLOR_ALPHA ) +#endif`,f2t=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,E2t=`#if defined( USE_COLOR_ALPHA ) +#endif`,m2t=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) varying vec3 vColor; -#endif`,y2t=`#if defined( USE_COLOR_ALPHA ) +#endif`,g2t=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) vColor = vec3( 1.0 ); @@ -599,7 +599,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; -#endif`,v2t=`#define PI 3.141592653589793 +#endif`,b2t=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -677,7 +677,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,S2t=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,E2t=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -775,7 +775,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,T2t=`vec3 transformedNormal = objectNormal; +#endif`,y2t=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -804,18 +804,18 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,x2t=`#ifdef USE_DISPLACEMENTMAP +#endif`,v2t=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,C2t=`#ifdef USE_DISPLACEMENTMAP +#endif`,S2t=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,w2t=`#ifdef USE_EMISSIVEMAP +#endif`,T2t=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,R2t=`#ifdef USE_EMISSIVEMAP +#endif`,x2t=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,A2t="gl_FragColor = linearToOutputTexel( gl_FragColor );",N2t=` +#endif`,C2t="gl_FragColor = linearToOutputTexel( gl_FragColor );",w2t=` const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( vec3( 0.8224621, 0.177538, 0.0 ), vec3( 0.0331941, 0.9668058, 0.0 ), @@ -843,7 +843,7 @@ vec4 LinearToLinear( in vec4 value ) { } vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value ); -}`,O2t=`#ifdef USE_ENVMAP +}`,R2t=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -872,7 +872,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,M2t=`#ifdef USE_ENVMAP +#endif`,A2t=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; #ifdef ENVMAP_TYPE_CUBE @@ -881,7 +881,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,I2t=`#ifdef USE_ENVMAP +#endif`,N2t=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -892,7 +892,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,k2t=`#ifdef USE_ENVMAP +#endif`,O2t=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -903,7 +903,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,D2t=`#ifdef USE_ENVMAP +#endif`,M2t=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -920,18 +920,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,L2t=`#ifdef USE_FOG +#endif`,I2t=`#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`,P2t=`#ifdef USE_FOG +#endif`,k2t=`#ifdef USE_FOG varying float vFogDepth; -#endif`,U2t=`#ifdef USE_FOG +#endif`,D2t=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,F2t=`#ifdef USE_FOG +#endif`,L2t=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -940,7 +940,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,B2t=`#ifdef USE_GRADIENTMAP +#endif`,P2t=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -952,16 +952,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,G2t=`#ifdef USE_LIGHTMAP +}`,U2t=`#ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; reflectedLight.indirectDiffuse += lightMapIrradiance; -#endif`,V2t=`#ifdef USE_LIGHTMAP +#endif`,F2t=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,z2t=`LambertMaterial material; +#endif`,B2t=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,H2t=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,G2t=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -975,7 +975,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,q2t=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,V2t=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -1098,7 +1098,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,$2t=`#ifdef USE_ENVMAP +#endif`,z2t=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -1131,8 +1131,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,Y2t=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,W2t=`varying vec3 vViewPosition; +#endif`,H2t=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,q2t=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -1144,11 +1144,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,K2t=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,$2t=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,j2t=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,Y2t=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -1165,7 +1165,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Q2t=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,W2t=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -1248,7 +1248,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,X2t=`struct PhysicalMaterial { +#endif`,K2t=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1548,7 +1548,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,Z2t=` +}`,j2t=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1663,7 +1663,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,J2t=`#if defined( RE_IndirectDiffuse ) +#endif`,Q2t=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1682,25 +1682,25 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,eNt=`#if defined( RE_IndirectDiffuse ) +#endif`,X2t=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,tNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,Z2t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,nNt=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) +#endif`,J2t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,sNt=`#ifdef USE_LOGDEPTHBUF +#endif`,eNt=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT varying float vFragDepth; varying float vIsPerspective; #else uniform float logDepthBufFC; #endif -#endif`,iNt=`#ifdef USE_LOGDEPTHBUF +#endif`,tNt=`#ifdef USE_LOGDEPTHBUF #ifdef USE_LOGDEPTHBUF_EXT vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); @@ -1710,16 +1710,16 @@ IncidentLight directLight; gl_Position.z *= gl_Position.w; } #endif -#endif`,rNt=`#ifdef USE_MAP +#endif`,nNt=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,oNt=`#ifdef USE_MAP +#endif`,sNt=`#ifdef USE_MAP uniform sampler2D map; -#endif`,aNt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,iNt=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1731,7 +1731,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,lNt=`#if defined( USE_POINTS_UV ) +#endif`,rNt=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1743,13 +1743,13 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,cNt=`float metalnessFactor = metalness; +#endif`,oNt=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,dNt=`#ifdef USE_METALNESSMAP +#endif`,aNt=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,uNt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) +#endif`,lNt=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1758,7 +1758,7 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,pNt=`#ifdef USE_MORPHNORMALS +#endif`,cNt=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1770,7 +1770,7 @@ IncidentLight directLight; objectNormal += morphNormal2 * morphTargetInfluences[ 2 ]; objectNormal += morphNormal3 * morphTargetInfluences[ 3 ]; #endif -#endif`,_Nt=`#ifdef USE_MORPHTARGETS +#endif`,dNt=`#ifdef USE_MORPHTARGETS uniform float morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1790,7 +1790,7 @@ IncidentLight directLight; uniform float morphTargetInfluences[ 4 ]; #endif #endif -#endif`,hNt=`#ifdef USE_MORPHTARGETS +#endif`,uNt=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; #ifdef MORPHTARGETS_TEXTURE for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { @@ -1808,7 +1808,7 @@ IncidentLight directLight; transformed += morphTarget7 * morphTargetInfluences[ 7 ]; #endif #endif -#endif`,fNt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,pNt=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1849,7 +1849,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,mNt=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,_Nt=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1864,25 +1864,25 @@ vec3 nonPerturbedNormal = normal;`,mNt=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,gNt=`#ifndef FLAT_SHADED +#endif`,hNt=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,bNt=`#ifndef FLAT_SHADED +#endif`,fNt=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,ENt=`#ifndef FLAT_SHADED +#endif`,mNt=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,yNt=`#ifdef USE_NORMALMAP +#endif`,gNt=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1904,13 +1904,13 @@ vec3 nonPerturbedNormal = normal;`,mNt=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,vNt=`#ifdef USE_CLEARCOAT +#endif`,bNt=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,SNt=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,ENt=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,TNt=`#ifdef USE_CLEARCOATMAP +#endif`,yNt=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -1919,18 +1919,18 @@ vec3 nonPerturbedNormal = normal;`,mNt=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,xNt=`#ifdef USE_IRIDESCENCEMAP +#endif`,vNt=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,CNt=`#ifdef OPAQUE +#endif`,SNt=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,wNt=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,TNt=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -1971,9 +1971,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,RNt=`#ifdef PREMULTIPLIED_ALPHA +}`,xNt=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,ANt=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,CNt=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -1981,22 +1981,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,wNt=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,ONt=`#ifdef DITHERING +#endif`,RNt=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,MNt=`float roughnessFactor = roughness; +#endif`,ANt=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,INt=`#ifdef USE_ROUGHNESSMAP +#endif`,NNt=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,kNt=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,ONt=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -2173,7 +2173,7 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } -#endif`,DNt=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,MNt=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -2211,7 +2211,7 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,LNt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,INt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -2243,7 +2243,7 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,PNt=`float getShadowMask() { +#endif`,kNt=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -2275,12 +2275,12 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING #endif #endif return shadow; -}`,UNt=`#ifdef USE_SKINNING +}`,DNt=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,FNt=`#ifdef USE_SKINNING +#endif`,LNt=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -2295,7 +2295,7 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,BNt=`#ifdef USE_SKINNING +#endif`,PNt=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -2303,7 +2303,7 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,GNt=`#ifdef USE_SKINNING +#endif`,UNt=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -2314,17 +2314,17 @@ gl_Position = projectionMatrix * mvPosition;`,NNt=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,VNt=`float specularStrength; +#endif`,FNt=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,zNt=`#ifdef USE_SPECULARMAP +#endif`,BNt=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,HNt=`#if defined( TONE_MAPPING ) +#endif`,GNt=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,qNt=`#ifndef saturate +#endif`,VNt=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2360,7 +2360,7 @@ vec3 ACESFilmicToneMapping( vec3 color ) { color = ACESOutputMat * color; return saturate( color ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,zNt=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2381,7 +2381,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,YNt=`#ifdef USE_TRANSMISSION +#endif`,HNt=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2487,7 +2487,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,WNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,qNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2557,7 +2557,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,KNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,$Nt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2651,7 +2651,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,jNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,YNt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2722,7 +2722,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,QNt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,WNt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2731,12 +2731,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,$Nt=`#ifdef USE_TRANSMIS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const XNt=`varying vec2 vUv; +#endif`;const KNt=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,ZNt=`uniform sampler2D t2D; +}`,jNt=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { @@ -2748,14 +2748,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,JNt=`varying vec3 vWorldDirection; +}`,QNt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,eOt=`#ifdef ENVMAP_TYPE_CUBE +}`,XNt=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; @@ -2777,14 +2777,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,tOt=`varying vec3 vWorldDirection; +}`,ZNt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,nOt=`uniform samplerCube tCube; +}`,JNt=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; @@ -2794,7 +2794,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`,sOt=`#include +}`,eOt=`#include #include #include #include @@ -2820,7 +2820,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`,iOt=`#if DEPTH_PACKING == 3200 +}`,tOt=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -2850,7 +2850,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`,rOt=`#define DISTANCE +}`,nOt=`#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -2876,7 +2876,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`,oOt=`#define DISTANCE +}`,sOt=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -2900,13 +2900,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`,aOt=`varying vec3 vWorldDirection; +}`,iOt=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`,lOt=`uniform sampler2D tEquirect; +}`,rOt=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -2915,7 +2915,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`,cOt=`uniform float scale; +}`,oOt=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -2936,7 +2936,7 @@ void main() { #include #include #include -}`,dOt=`uniform vec3 diffuse; +}`,aOt=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -2964,7 +2964,7 @@ void main() { #include #include #include -}`,uOt=`#include +}`,lOt=`#include #include #include #include @@ -2995,7 +2995,7 @@ void main() { #include #include #include -}`,pOt=`uniform vec3 diffuse; +}`,cOt=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -3043,7 +3043,7 @@ void main() { #include #include #include -}`,_Ot=`#define LAMBERT +}`,dOt=`#define LAMBERT varying vec3 vViewPosition; #include #include @@ -3081,7 +3081,7 @@ void main() { #include #include #include -}`,hOt=`#define LAMBERT +}`,uOt=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3138,7 +3138,7 @@ void main() { #include #include #include -}`,fOt=`#define MATCAP +}`,pOt=`#define MATCAP varying vec3 vViewPosition; #include #include @@ -3171,7 +3171,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`,mOt=`#define MATCAP +}`,_Ot=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -3217,7 +3217,7 @@ void main() { #include #include #include -}`,gOt=`#define NORMAL +}`,hOt=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif @@ -3249,7 +3249,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif -}`,bOt=`#define NORMAL +}`,fOt=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; @@ -3270,7 +3270,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`,EOt=`#define PHONG +}`,mOt=`#define PHONG varying vec3 vViewPosition; #include #include @@ -3308,7 +3308,7 @@ void main() { #include #include #include -}`,yOt=`#define PHONG +}`,gOt=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -3367,7 +3367,7 @@ void main() { #include #include #include -}`,vOt=`#define STANDARD +}`,bOt=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -3409,7 +3409,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`,SOt=`#define STANDARD +}`,EOt=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR @@ -3531,7 +3531,7 @@ void main() { #include #include #include -}`,TOt=`#define TOON +}`,yOt=`#define TOON varying vec3 vViewPosition; #include #include @@ -3567,7 +3567,7 @@ void main() { #include #include #include -}`,xOt=`#define TOON +}`,vOt=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3620,7 +3620,7 @@ void main() { #include #include #include -}`,COt=`uniform float size; +}`,SOt=`uniform float size; uniform float scale; #include #include @@ -3650,7 +3650,7 @@ void main() { #include #include #include -}`,wOt=`uniform vec3 diffuse; +}`,TOt=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3675,7 +3675,7 @@ void main() { #include #include #include -}`,ROt=`#include +}`,xOt=`#include #include #include #include @@ -3697,7 +3697,7 @@ void main() { #include #include #include -}`,AOt=`uniform vec3 color; +}`,COt=`uniform vec3 color; uniform float opacity; #include #include @@ -3713,7 +3713,7 @@ void main() { #include #include #include -}`,NOt=`uniform float rotation; +}`,wOt=`uniform float rotation; uniform vec2 center; #include #include @@ -3739,7 +3739,7 @@ void main() { #include #include #include -}`,OOt=`uniform vec3 diffuse; +}`,ROt=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3764,7 +3764,7 @@ void main() { #include #include #include -}`,St={alphahash_fragment:ZAt,alphahash_pars_fragment:JAt,alphamap_fragment:e2t,alphamap_pars_fragment:t2t,alphatest_fragment:n2t,alphatest_pars_fragment:s2t,aomap_fragment:i2t,aomap_pars_fragment:r2t,batching_pars_vertex:o2t,batching_vertex:a2t,begin_vertex:l2t,beginnormal_vertex:c2t,bsdfs:d2t,iridescence_fragment:u2t,bumpmap_pars_fragment:p2t,clipping_planes_fragment:_2t,clipping_planes_pars_fragment:h2t,clipping_planes_pars_vertex:f2t,clipping_planes_vertex:m2t,color_fragment:g2t,color_pars_fragment:b2t,color_pars_vertex:E2t,color_vertex:y2t,common:v2t,cube_uv_reflection_fragment:S2t,defaultnormal_vertex:T2t,displacementmap_pars_vertex:x2t,displacementmap_vertex:C2t,emissivemap_fragment:w2t,emissivemap_pars_fragment:R2t,colorspace_fragment:A2t,colorspace_pars_fragment:N2t,envmap_fragment:O2t,envmap_common_pars_fragment:M2t,envmap_pars_fragment:I2t,envmap_pars_vertex:k2t,envmap_physical_pars_fragment:$2t,envmap_vertex:D2t,fog_vertex:L2t,fog_pars_vertex:P2t,fog_fragment:U2t,fog_pars_fragment:F2t,gradientmap_pars_fragment:B2t,lightmap_fragment:G2t,lightmap_pars_fragment:V2t,lights_lambert_fragment:z2t,lights_lambert_pars_fragment:H2t,lights_pars_begin:q2t,lights_toon_fragment:Y2t,lights_toon_pars_fragment:W2t,lights_phong_fragment:K2t,lights_phong_pars_fragment:j2t,lights_physical_fragment:Q2t,lights_physical_pars_fragment:X2t,lights_fragment_begin:Z2t,lights_fragment_maps:J2t,lights_fragment_end:eNt,logdepthbuf_fragment:tNt,logdepthbuf_pars_fragment:nNt,logdepthbuf_pars_vertex:sNt,logdepthbuf_vertex:iNt,map_fragment:rNt,map_pars_fragment:oNt,map_particle_fragment:aNt,map_particle_pars_fragment:lNt,metalnessmap_fragment:cNt,metalnessmap_pars_fragment:dNt,morphcolor_vertex:uNt,morphnormal_vertex:pNt,morphtarget_pars_vertex:_Nt,morphtarget_vertex:hNt,normal_fragment_begin:fNt,normal_fragment_maps:mNt,normal_pars_fragment:gNt,normal_pars_vertex:bNt,normal_vertex:ENt,normalmap_pars_fragment:yNt,clearcoat_normal_fragment_begin:vNt,clearcoat_normal_fragment_maps:SNt,clearcoat_pars_fragment:TNt,iridescence_pars_fragment:xNt,opaque_fragment:CNt,packing:wNt,premultiplied_alpha_fragment:RNt,project_vertex:ANt,dithering_fragment:NNt,dithering_pars_fragment:ONt,roughnessmap_fragment:MNt,roughnessmap_pars_fragment:INt,shadowmap_pars_fragment:kNt,shadowmap_pars_vertex:DNt,shadowmap_vertex:LNt,shadowmask_pars_fragment:PNt,skinbase_vertex:UNt,skinning_pars_vertex:FNt,skinning_vertex:BNt,skinnormal_vertex:GNt,specularmap_fragment:VNt,specularmap_pars_fragment:zNt,tonemapping_fragment:HNt,tonemapping_pars_fragment:qNt,transmission_fragment:$Nt,transmission_pars_fragment:YNt,uv_pars_fragment:WNt,uv_pars_vertex:KNt,uv_vertex:jNt,worldpos_vertex:QNt,background_vert:XNt,background_frag:ZNt,backgroundCube_vert:JNt,backgroundCube_frag:eOt,cube_vert:tOt,cube_frag:nOt,depth_vert:sOt,depth_frag:iOt,distanceRGBA_vert:rOt,distanceRGBA_frag:oOt,equirect_vert:aOt,equirect_frag:lOt,linedashed_vert:cOt,linedashed_frag:dOt,meshbasic_vert:uOt,meshbasic_frag:pOt,meshlambert_vert:_Ot,meshlambert_frag:hOt,meshmatcap_vert:fOt,meshmatcap_frag:mOt,meshnormal_vert:gOt,meshnormal_frag:bOt,meshphong_vert:EOt,meshphong_frag:yOt,meshphysical_vert:vOt,meshphysical_frag:SOt,meshtoon_vert:TOt,meshtoon_frag:xOt,points_vert:COt,points_frag:wOt,shadow_vert:ROt,shadow_frag:AOt,sprite_vert:NOt,sprite_frag:OOt},We={common:{diffuse:{value:new _t(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 At(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 _t(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 _t(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 _t(16777215)},opacity:{value:1},center:{value:new At(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Xs={basic:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.fog]),vertexShader:St.meshbasic_vert,fragmentShader:St.meshbasic_frag},lambert:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new _t(0)}}]),vertexShader:St.meshlambert_vert,fragmentShader:St.meshlambert_frag},phong:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new _t(0)},specular:{value:new _t(1118481)},shininess:{value:30}}]),vertexShader:St.meshphong_vert,fragmentShader:St.meshphong_frag},standard:{uniforms:Pn([We.common,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.roughnessmap,We.metalnessmap,We.fog,We.lights,{emissive:{value:new _t(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag},toon:{uniforms:Pn([We.common,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.gradientmap,We.fog,We.lights,{emissive:{value:new _t(0)}}]),vertexShader:St.meshtoon_vert,fragmentShader:St.meshtoon_frag},matcap:{uniforms:Pn([We.common,We.bumpmap,We.normalmap,We.displacementmap,We.fog,{matcap:{value:null}}]),vertexShader:St.meshmatcap_vert,fragmentShader:St.meshmatcap_frag},points:{uniforms:Pn([We.points,We.fog]),vertexShader:St.points_vert,fragmentShader:St.points_frag},dashed:{uniforms:Pn([We.common,We.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:St.linedashed_vert,fragmentShader:St.linedashed_frag},depth:{uniforms:Pn([We.common,We.displacementmap]),vertexShader:St.depth_vert,fragmentShader:St.depth_frag},normal:{uniforms:Pn([We.common,We.bumpmap,We.normalmap,We.displacementmap,{opacity:{value:1}}]),vertexShader:St.meshnormal_vert,fragmentShader:St.meshnormal_frag},sprite:{uniforms:Pn([We.sprite,We.fog]),vertexShader:St.sprite_vert,fragmentShader:St.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:St.background_vert,fragmentShader:St.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:St.backgroundCube_vert,fragmentShader:St.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:St.cube_vert,fragmentShader:St.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:St.equirect_vert,fragmentShader:St.equirect_frag},distanceRGBA:{uniforms:Pn([We.common,We.displacementmap,{referencePosition:{value:new oe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:St.distanceRGBA_vert,fragmentShader:St.distanceRGBA_frag},shadow:{uniforms:Pn([We.lights,We.fog,{color:{value:new _t(0)},opacity:{value:1}}]),vertexShader:St.shadow_vert,fragmentShader:St.shadow_frag}};Xs.physical={uniforms:Pn([Xs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new At(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 _t(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 At},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new _t(0)},specularColor:{value:new _t(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new At},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag};const nd={r:0,b:0,g:0};function MOt(t,e,n,s,i,r,o){const a=new _t(0);let c=r===!0?0:1,d,u,h=null,f=0,m=null;function _(b,E){let y=!1,v=E.isScene===!0?E.background:null;v&&v.isTexture&&(v=(E.backgroundBlurriness>0?n:e).get(v)),v===null?g(a,c):v&&v.isColor&&(g(v,1),y=!0);const S=t.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),(t.autoClear||y)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===ep)?(u===void 0&&(u=new Fn(new hr(1,1,1),new ro({name:"BackgroundCubeMaterial",uniforms:ma(Xs.backgroundCube.uniforms),vertexShader:Xs.backgroundCube.vertexShader,fragmentShader:Xs.backgroundCube.fragmentShader,side:$n,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,C,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=E.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,u.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Kt,(h!==v||f!==v.version||m!==t.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,m=t.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(d===void 0&&(d=new Fn(new QE(2,2),new ro({name:"BackgroundMaterial",uniforms:ma(Xs.background.uniforms),vertexShader:Xs.background.vertexShader,fragmentShader:Xs.background.fragmentShader,side:Li,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(d)),d.material.uniforms.t2D.value=v,d.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,d.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Kt,v.matrixAutoUpdate===!0&&v.updateMatrix(),d.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||m!==t.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,m=t.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function g(b,E){b.getRGB(nd,$N(t)),s.buffers.color.setClear(nd.r,nd.g,nd.b,E,o)}return{getClearColor:function(){return a},setClearColor:function(b,E=1){a.set(b),c=E,g(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(b){c=b,g(a,c)},render:_}}function IOt(t,e,n,s){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),r=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||r!==null,a={},c=b(null);let d=c,u=!1;function h(k,$,q,U,W){let ne=!1;if(o){const le=g(U,q,$);d!==le&&(d=le,m(d.object)),ne=E(k,U,q,W),ne&&y(k,U,q,W)}else{const le=$.wireframe===!0;(d.geometry!==U.id||d.program!==q.id||d.wireframe!==le)&&(d.geometry=U.id,d.program=q.id,d.wireframe=le,ne=!0)}W!==null&&n.update(W,t.ELEMENT_ARRAY_BUFFER),(ne||u)&&(u=!1,I(k,$,q,U),W!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(W).buffer))}function f(){return s.isWebGL2?t.createVertexArray():r.createVertexArrayOES()}function m(k){return s.isWebGL2?t.bindVertexArray(k):r.bindVertexArrayOES(k)}function _(k){return s.isWebGL2?t.deleteVertexArray(k):r.deleteVertexArrayOES(k)}function g(k,$,q){const U=q.wireframe===!0;let W=a[k.id];W===void 0&&(W={},a[k.id]=W);let ne=W[$.id];ne===void 0&&(ne={},W[$.id]=ne);let le=ne[U];return le===void 0&&(le=b(f()),ne[U]=le),le}function b(k){const $=[],q=[],U=[];for(let W=0;W=0){const Ee=W[Se];let Me=ne[Se];if(Me===void 0&&(Se==="instanceMatrix"&&k.instanceMatrix&&(Me=k.instanceMatrix),Se==="instanceColor"&&k.instanceColor&&(Me=k.instanceColor)),Ee===void 0||Ee.attribute!==Me||Me&&Ee.data!==Me.data)return!0;le++}return d.attributesNum!==le||d.index!==U}function y(k,$,q,U){const W={},ne=$.attributes;let le=0;const me=q.getAttributes();for(const Se in me)if(me[Se].location>=0){let Ee=ne[Se];Ee===void 0&&(Se==="instanceMatrix"&&k.instanceMatrix&&(Ee=k.instanceMatrix),Se==="instanceColor"&&k.instanceColor&&(Ee=k.instanceColor));const Me={};Me.attribute=Ee,Ee&&Ee.data&&(Me.data=Ee.data),W[Se]=Me,le++}d.attributes=W,d.attributesNum=le,d.index=U}function v(){const k=d.newAttributes;for(let $=0,q=k.length;$=0){let de=W[me];if(de===void 0&&(me==="instanceMatrix"&&k.instanceMatrix&&(de=k.instanceMatrix),me==="instanceColor"&&k.instanceColor&&(de=k.instanceColor)),de!==void 0){const Ee=de.normalized,Me=de.itemSize,ke=n.get(de);if(ke===void 0)continue;const Z=ke.buffer,he=ke.type,_e=ke.bytesPerElement,we=s.isWebGL2===!0&&(he===t.INT||he===t.UNSIGNED_INT||de.gpuType===RN);if(de.isInterleavedBufferAttribute){const Ue=de.data,N=Ue.stride,z=de.offset;if(Ue.isInstancedInterleavedBuffer){for(let Y=0;Y0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const c=r(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=n.logarithmicDepthBuffer===!0,h=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=t.getParameter(t.MAX_TEXTURE_SIZE),_=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),g=t.getParameter(t.MAX_VERTEX_ATTRIBS),b=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),E=t.getParameter(t.MAX_VARYING_VECTORS),y=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),R=v&&S,C=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:i,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:u,maxTextures:h,maxVertexTextures:f,maxTextureSize:m,maxCubemapSize:_,maxAttributes:g,maxVertexUniforms:b,maxVaryings:E,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:C}}function LOt(t){const e=this;let n=null,s=0,i=!1,r=!1;const o=new Ir,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const m=h.length!==0||f||s!==0||i;return i=f,s=h.length,m},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){n=u(h,f,0)},this.setState=function(h,f,m){const _=h.clippingPlanes,g=h.clipIntersection,b=h.clipShadows,E=t.get(h);if(!i||_===null||_.length===0||r&&!b)r?u(null):d();else{const y=r?0:s,v=y*4;let S=E.clippingState||null;c.value=S,S=u(_,f,v,m);for(let R=0;R!==v;++R)S[R]=n[R];E.clippingState=S,this.numIntersection=g?this.numPlanes:0,this.numPlanes+=y}};function d(){c.value!==n&&(c.value=n,c.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function u(h,f,m,_){const g=h!==null?h.length:0;let b=null;if(g!==0){if(b=c.value,_!==!0||b===null){const E=m+g*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length0){const d=new KAt(c.height/2);return d.fromEquirectangularTexture(t,o),e.set(o,d),o.addEventListener("dispose",i),n(d.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function r(){e=new WeakMap}return{get:s,dispose:r}}class XE extends YN{constructor(e=-1,n=1,s=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=s,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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,n,s,i,r,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=n,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,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),n=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=s-e,o=s+e,a=i+n,c=i-n;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;r+=d*this.view.offsetX,o=r+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Bo=4,AC=[.125,.215,.35,.446,.526,.582],Br=20,Km=new XE,NC=new _t;let jm=null,Qm=0,Xm=0;const kr=(1+Math.sqrt(5))/2,ko=1/kr,OC=[new oe(1,1,1),new oe(-1,1,1),new oe(1,1,-1),new oe(-1,1,-1),new oe(0,kr,ko),new oe(0,kr,-ko),new oe(ko,0,kr),new oe(-ko,0,kr),new oe(kr,ko,0),new oe(-kr,ko,0)];class MC{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,n=0,s=.1,i=100){jm=this._renderer.getRenderTarget(),Qm=this._renderer.getActiveCubeFace(),Xm=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,s,i,r),n>0&&this._blur(r,0,0,n),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=DC(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=kC(),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?v:0,v,v),u.setRenderTarget(i),g&&u.render(_,a),u.render(e,a)}_.geometry.dispose(),_.material.dispose(),u.toneMapping=f,u.autoClear=h,e.background=b}_textureToCubeUV(e,n){const s=this._renderer,i=e.mapping===da||e.mapping===ua;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=DC()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=kC());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Fn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const c=this._cubeSize;sd(n,0,0,3*c,2*c),s.setRenderTarget(n),s.render(o,Km)}_applyPMREM(e){const n=this._renderer,s=n.autoClear;n.autoClear=!1;for(let i=1;iBr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Br}`);const E=[];let y=0;for(let A=0;Av-Bo?i-v+Bo:0),C=4*(this._cubeSize-S);sd(n,R,C,3*S,2*S),c.setRenderTarget(n),c.render(h,Km)}}function UOt(t){const e=[],n=[],s=[];let i=t;const r=t-Bo+1+AC.length;for(let o=0;ot-Bo?c=AC[o-t+Bo-1]:o===0&&(c=0),s.push(c);const d=1/(a-2),u=-d,h=1+d,f=[u,u,h,u,h,h,u,u,h,h,u,h],m=6,_=6,g=3,b=2,E=1,y=new Float32Array(g*_*m),v=new Float32Array(b*_*m),S=new Float32Array(E*_*m);for(let C=0;C2?0:-1,x=[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];y.set(x,g*_*C),v.set(f,b*_*C);const O=[C,C,C,C,C,C];S.set(O,E*_*C)}const R=new _i;R.setAttribute("position",new Bn(y,g)),R.setAttribute("uv",new Bn(v,b)),R.setAttribute("faceIndex",new Bn(S,E)),e.push(R),i>Bo&&i--}return{lodPlanes:e,sizeLods:n,sigmas:s}}function IC(t,e,n){const s=new io(t,e,n);return s.texture.mapping=ep,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function sd(t,e,n,s,i){t.viewport.set(e,n,s,i),t.scissor.set(e,n,s,i)}function FOt(t,e,n){const s=new Float32Array(Br),i=new oe(0,1,0);return new ro({name:"SphericalGaussianBlur",defines:{n:Br,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:s},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:ZE(),fragmentShader:` +}`,St={alphahash_fragment:jAt,alphahash_pars_fragment:QAt,alphamap_fragment:XAt,alphamap_pars_fragment:ZAt,alphatest_fragment:JAt,alphatest_pars_fragment:e2t,aomap_fragment:t2t,aomap_pars_fragment:n2t,batching_pars_vertex:s2t,batching_vertex:i2t,begin_vertex:r2t,beginnormal_vertex:o2t,bsdfs:a2t,iridescence_fragment:l2t,bumpmap_pars_fragment:c2t,clipping_planes_fragment:d2t,clipping_planes_pars_fragment:u2t,clipping_planes_pars_vertex:p2t,clipping_planes_vertex:_2t,color_fragment:h2t,color_pars_fragment:f2t,color_pars_vertex:m2t,color_vertex:g2t,common:b2t,cube_uv_reflection_fragment:E2t,defaultnormal_vertex:y2t,displacementmap_pars_vertex:v2t,displacementmap_vertex:S2t,emissivemap_fragment:T2t,emissivemap_pars_fragment:x2t,colorspace_fragment:C2t,colorspace_pars_fragment:w2t,envmap_fragment:R2t,envmap_common_pars_fragment:A2t,envmap_pars_fragment:N2t,envmap_pars_vertex:O2t,envmap_physical_pars_fragment:z2t,envmap_vertex:M2t,fog_vertex:I2t,fog_pars_vertex:k2t,fog_fragment:D2t,fog_pars_fragment:L2t,gradientmap_pars_fragment:P2t,lightmap_fragment:U2t,lightmap_pars_fragment:F2t,lights_lambert_fragment:B2t,lights_lambert_pars_fragment:G2t,lights_pars_begin:V2t,lights_toon_fragment:H2t,lights_toon_pars_fragment:q2t,lights_phong_fragment:$2t,lights_phong_pars_fragment:Y2t,lights_physical_fragment:W2t,lights_physical_pars_fragment:K2t,lights_fragment_begin:j2t,lights_fragment_maps:Q2t,lights_fragment_end:X2t,logdepthbuf_fragment:Z2t,logdepthbuf_pars_fragment:J2t,logdepthbuf_pars_vertex:eNt,logdepthbuf_vertex:tNt,map_fragment:nNt,map_pars_fragment:sNt,map_particle_fragment:iNt,map_particle_pars_fragment:rNt,metalnessmap_fragment:oNt,metalnessmap_pars_fragment:aNt,morphcolor_vertex:lNt,morphnormal_vertex:cNt,morphtarget_pars_vertex:dNt,morphtarget_vertex:uNt,normal_fragment_begin:pNt,normal_fragment_maps:_Nt,normal_pars_fragment:hNt,normal_pars_vertex:fNt,normal_vertex:mNt,normalmap_pars_fragment:gNt,clearcoat_normal_fragment_begin:bNt,clearcoat_normal_fragment_maps:ENt,clearcoat_pars_fragment:yNt,iridescence_pars_fragment:vNt,opaque_fragment:SNt,packing:TNt,premultiplied_alpha_fragment:xNt,project_vertex:CNt,dithering_fragment:wNt,dithering_pars_fragment:RNt,roughnessmap_fragment:ANt,roughnessmap_pars_fragment:NNt,shadowmap_pars_fragment:ONt,shadowmap_pars_vertex:MNt,shadowmap_vertex:INt,shadowmask_pars_fragment:kNt,skinbase_vertex:DNt,skinning_pars_vertex:LNt,skinning_vertex:PNt,skinnormal_vertex:UNt,specularmap_fragment:FNt,specularmap_pars_fragment:BNt,tonemapping_fragment:GNt,tonemapping_pars_fragment:VNt,transmission_fragment:zNt,transmission_pars_fragment:HNt,uv_pars_fragment:qNt,uv_pars_vertex:$Nt,uv_vertex:YNt,worldpos_vertex:WNt,background_vert:KNt,background_frag:jNt,backgroundCube_vert:QNt,backgroundCube_frag:XNt,cube_vert:ZNt,cube_frag:JNt,depth_vert:eOt,depth_frag:tOt,distanceRGBA_vert:nOt,distanceRGBA_frag:sOt,equirect_vert:iOt,equirect_frag:rOt,linedashed_vert:oOt,linedashed_frag:aOt,meshbasic_vert:lOt,meshbasic_frag:cOt,meshlambert_vert:dOt,meshlambert_frag:uOt,meshmatcap_vert:pOt,meshmatcap_frag:_Ot,meshnormal_vert:hOt,meshnormal_frag:fOt,meshphong_vert:mOt,meshphong_frag:gOt,meshphysical_vert:bOt,meshphysical_frag:EOt,meshtoon_vert:yOt,meshtoon_frag:vOt,points_vert:SOt,points_frag:TOt,shadow_vert:xOt,shadow_frag:COt,sprite_vert:wOt,sprite_frag:ROt},We={common:{diffuse:{value:new _t(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 At(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 _t(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 _t(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 _t(16777215)},opacity:{value:1},center:{value:new At(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Xs={basic:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.fog]),vertexShader:St.meshbasic_vert,fragmentShader:St.meshbasic_frag},lambert:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new _t(0)}}]),vertexShader:St.meshlambert_vert,fragmentShader:St.meshlambert_frag},phong:{uniforms:Pn([We.common,We.specularmap,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.fog,We.lights,{emissive:{value:new _t(0)},specular:{value:new _t(1118481)},shininess:{value:30}}]),vertexShader:St.meshphong_vert,fragmentShader:St.meshphong_frag},standard:{uniforms:Pn([We.common,We.envmap,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.roughnessmap,We.metalnessmap,We.fog,We.lights,{emissive:{value:new _t(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag},toon:{uniforms:Pn([We.common,We.aomap,We.lightmap,We.emissivemap,We.bumpmap,We.normalmap,We.displacementmap,We.gradientmap,We.fog,We.lights,{emissive:{value:new _t(0)}}]),vertexShader:St.meshtoon_vert,fragmentShader:St.meshtoon_frag},matcap:{uniforms:Pn([We.common,We.bumpmap,We.normalmap,We.displacementmap,We.fog,{matcap:{value:null}}]),vertexShader:St.meshmatcap_vert,fragmentShader:St.meshmatcap_frag},points:{uniforms:Pn([We.points,We.fog]),vertexShader:St.points_vert,fragmentShader:St.points_frag},dashed:{uniforms:Pn([We.common,We.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:St.linedashed_vert,fragmentShader:St.linedashed_frag},depth:{uniforms:Pn([We.common,We.displacementmap]),vertexShader:St.depth_vert,fragmentShader:St.depth_frag},normal:{uniforms:Pn([We.common,We.bumpmap,We.normalmap,We.displacementmap,{opacity:{value:1}}]),vertexShader:St.meshnormal_vert,fragmentShader:St.meshnormal_frag},sprite:{uniforms:Pn([We.sprite,We.fog]),vertexShader:St.sprite_vert,fragmentShader:St.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:St.background_vert,fragmentShader:St.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:St.backgroundCube_vert,fragmentShader:St.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:St.cube_vert,fragmentShader:St.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:St.equirect_vert,fragmentShader:St.equirect_frag},distanceRGBA:{uniforms:Pn([We.common,We.displacementmap,{referencePosition:{value:new oe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:St.distanceRGBA_vert,fragmentShader:St.distanceRGBA_frag},shadow:{uniforms:Pn([We.lights,We.fog,{color:{value:new _t(0)},opacity:{value:1}}]),vertexShader:St.shadow_vert,fragmentShader:St.shadow_frag}};Xs.physical={uniforms:Pn([Xs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new At(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 _t(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 At},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new _t(0)},specularColor:{value:new _t(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new At},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag};const nd={r:0,b:0,g:0};function AOt(t,e,n,s,i,r,o){const a=new _t(0);let c=r===!0?0:1,d,u,h=null,f=0,m=null;function _(b,E){let y=!1,v=E.isScene===!0?E.background:null;v&&v.isTexture&&(v=(E.backgroundBlurriness>0?n:e).get(v)),v===null?g(a,c):v&&v.isColor&&(g(v,1),y=!0);const S=t.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),(t.autoClear||y)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===ep)?(u===void 0&&(u=new Fn(new hr(1,1,1),new ro({name:"BackgroundCubeMaterial",uniforms:ma(Xs.backgroundCube.uniforms),vertexShader:Xs.backgroundCube.vertexShader,fragmentShader:Xs.backgroundCube.fragmentShader,side:$n,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,C,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=E.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,u.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Kt,(h!==v||f!==v.version||m!==t.toneMapping)&&(u.material.needsUpdate=!0,h=v,f=v.version,m=t.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(d===void 0&&(d=new Fn(new QE(2,2),new ro({name:"BackgroundMaterial",uniforms:ma(Xs.background.uniforms),vertexShader:Xs.background.vertexShader,fragmentShader:Xs.background.fragmentShader,side:Li,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(d)),d.material.uniforms.t2D.value=v,d.material.uniforms.backgroundIntensity.value=E.backgroundIntensity,d.material.toneMapped=Ut.getTransfer(v.colorSpace)!==Kt,v.matrixAutoUpdate===!0&&v.updateMatrix(),d.material.uniforms.uvTransform.value.copy(v.matrix),(h!==v||f!==v.version||m!==t.toneMapping)&&(d.material.needsUpdate=!0,h=v,f=v.version,m=t.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function g(b,E){b.getRGB(nd,$N(t)),s.buffers.color.setClear(nd.r,nd.g,nd.b,E,o)}return{getClearColor:function(){return a},setClearColor:function(b,E=1){a.set(b),c=E,g(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(b){c=b,g(a,c)},render:_}}function NOt(t,e,n,s){const i=t.getParameter(t.MAX_VERTEX_ATTRIBS),r=s.isWebGL2?null:e.get("OES_vertex_array_object"),o=s.isWebGL2||r!==null,a={},c=b(null);let d=c,u=!1;function h(k,$,q,U,W){let ne=!1;if(o){const le=g(U,q,$);d!==le&&(d=le,m(d.object)),ne=E(k,U,q,W),ne&&y(k,U,q,W)}else{const le=$.wireframe===!0;(d.geometry!==U.id||d.program!==q.id||d.wireframe!==le)&&(d.geometry=U.id,d.program=q.id,d.wireframe=le,ne=!0)}W!==null&&n.update(W,t.ELEMENT_ARRAY_BUFFER),(ne||u)&&(u=!1,I(k,$,q,U),W!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,n.get(W).buffer))}function f(){return s.isWebGL2?t.createVertexArray():r.createVertexArrayOES()}function m(k){return s.isWebGL2?t.bindVertexArray(k):r.bindVertexArrayOES(k)}function _(k){return s.isWebGL2?t.deleteVertexArray(k):r.deleteVertexArrayOES(k)}function g(k,$,q){const U=q.wireframe===!0;let W=a[k.id];W===void 0&&(W={},a[k.id]=W);let ne=W[$.id];ne===void 0&&(ne={},W[$.id]=ne);let le=ne[U];return le===void 0&&(le=b(f()),ne[U]=le),le}function b(k){const $=[],q=[],U=[];for(let W=0;W=0){const Ee=W[Se];let Me=ne[Se];if(Me===void 0&&(Se==="instanceMatrix"&&k.instanceMatrix&&(Me=k.instanceMatrix),Se==="instanceColor"&&k.instanceColor&&(Me=k.instanceColor)),Ee===void 0||Ee.attribute!==Me||Me&&Ee.data!==Me.data)return!0;le++}return d.attributesNum!==le||d.index!==U}function y(k,$,q,U){const W={},ne=$.attributes;let le=0;const me=q.getAttributes();for(const Se in me)if(me[Se].location>=0){let Ee=ne[Se];Ee===void 0&&(Se==="instanceMatrix"&&k.instanceMatrix&&(Ee=k.instanceMatrix),Se==="instanceColor"&&k.instanceColor&&(Ee=k.instanceColor));const Me={};Me.attribute=Ee,Ee&&Ee.data&&(Me.data=Ee.data),W[Se]=Me,le++}d.attributes=W,d.attributesNum=le,d.index=U}function v(){const k=d.newAttributes;for(let $=0,q=k.length;$=0){let de=W[me];if(de===void 0&&(me==="instanceMatrix"&&k.instanceMatrix&&(de=k.instanceMatrix),me==="instanceColor"&&k.instanceColor&&(de=k.instanceColor)),de!==void 0){const Ee=de.normalized,Me=de.itemSize,ke=n.get(de);if(ke===void 0)continue;const Z=ke.buffer,he=ke.type,_e=ke.bytesPerElement,we=s.isWebGL2===!0&&(he===t.INT||he===t.UNSIGNED_INT||de.gpuType===RN);if(de.isInterleavedBufferAttribute){const Ue=de.data,N=Ue.stride,z=de.offset;if(Ue.isInstancedInterleavedBuffer){for(let Y=0;Y0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&t.constructor.name==="WebGL2RenderingContext";let a=n.precision!==void 0?n.precision:"highp";const c=r(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=n.logarithmicDepthBuffer===!0,h=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),f=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=t.getParameter(t.MAX_TEXTURE_SIZE),_=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),g=t.getParameter(t.MAX_VERTEX_ATTRIBS),b=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),E=t.getParameter(t.MAX_VARYING_VECTORS),y=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),v=f>0,S=o||e.has("OES_texture_float"),R=v&&S,C=o?t.getParameter(t.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:i,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:u,maxTextures:h,maxVertexTextures:f,maxTextureSize:m,maxCubemapSize:_,maxAttributes:g,maxVertexUniforms:b,maxVaryings:E,maxFragmentUniforms:y,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:C}}function IOt(t){const e=this;let n=null,s=0,i=!1,r=!1;const o=new Ir,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(h,f){const m=h.length!==0||f||s!==0||i;return i=f,s=h.length,m},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,f){n=u(h,f,0)},this.setState=function(h,f,m){const _=h.clippingPlanes,g=h.clipIntersection,b=h.clipShadows,E=t.get(h);if(!i||_===null||_.length===0||r&&!b)r?u(null):d();else{const y=r?0:s,v=y*4;let S=E.clippingState||null;c.value=S,S=u(_,f,v,m);for(let R=0;R!==v;++R)S[R]=n[R];E.clippingState=S,this.numIntersection=g?this.numPlanes:0,this.numPlanes+=y}};function d(){c.value!==n&&(c.value=n,c.needsUpdate=s>0),e.numPlanes=s,e.numIntersection=0}function u(h,f,m,_){const g=h!==null?h.length:0;let b=null;if(g!==0){if(b=c.value,_!==!0||b===null){const E=m+g*4,y=f.matrixWorldInverse;a.getNormalMatrix(y),(b===null||b.length0){const d=new $At(c.height/2);return d.fromEquirectangularTexture(t,o),e.set(o,d),o.addEventListener("dispose",i),n(d.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function r(){e=new WeakMap}return{get:s,dispose:r}}class XE extends YN{constructor(e=-1,n=1,s=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=s,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),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,n,s,i,r,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=n,this.view.offsetX=s,this.view.offsetY=i,this.view.width=r,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),n=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=s-e,o=s+e,a=i+n,c=i-n;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;r+=d*this.view.offsetX,o=r+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const Bo=4,AC=[.125,.215,.35,.446,.526,.582],Br=20,Km=new XE,NC=new _t;let jm=null,Qm=0,Xm=0;const kr=(1+Math.sqrt(5))/2,ko=1/kr,OC=[new oe(1,1,1),new oe(-1,1,1),new oe(1,1,-1),new oe(-1,1,-1),new oe(0,kr,ko),new oe(0,kr,-ko),new oe(ko,0,kr),new oe(-ko,0,kr),new oe(kr,ko,0),new oe(-kr,ko,0)];class MC{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,n=0,s=.1,i=100){jm=this._renderer.getRenderTarget(),Qm=this._renderer.getActiveCubeFace(),Xm=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,s,i,r),n>0&&this._blur(r,0,0,n),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=DC(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=kC(),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?v:0,v,v),u.setRenderTarget(i),g&&u.render(_,a),u.render(e,a)}_.geometry.dispose(),_.material.dispose(),u.toneMapping=f,u.autoClear=h,e.background=b}_textureToCubeUV(e,n){const s=this._renderer,i=e.mapping===da||e.mapping===ua;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=DC()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=kC());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Fn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const c=this._cubeSize;sd(n,0,0,3*c,2*c),s.setRenderTarget(n),s.render(o,Km)}_applyPMREM(e){const n=this._renderer,s=n.autoClear;n.autoClear=!1;for(let i=1;iBr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Br}`);const E=[];let y=0;for(let A=0;Av-Bo?i-v+Bo:0),C=4*(this._cubeSize-S);sd(n,R,C,3*S,2*S),c.setRenderTarget(n),c.render(h,Km)}}function DOt(t){const e=[],n=[],s=[];let i=t;const r=t-Bo+1+AC.length;for(let o=0;ot-Bo?c=AC[o-t+Bo-1]:o===0&&(c=0),s.push(c);const d=1/(a-2),u=-d,h=1+d,f=[u,u,h,u,h,h,u,u,h,h,u,h],m=6,_=6,g=3,b=2,E=1,y=new Float32Array(g*_*m),v=new Float32Array(b*_*m),S=new Float32Array(E*_*m);for(let C=0;C2?0:-1,x=[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];y.set(x,g*_*C),v.set(f,b*_*C);const O=[C,C,C,C,C,C];S.set(O,E*_*C)}const R=new _i;R.setAttribute("position",new Bn(y,g)),R.setAttribute("uv",new Bn(v,b)),R.setAttribute("faceIndex",new Bn(S,E)),e.push(R),i>Bo&&i--}return{lodPlanes:e,sizeLods:n,sigmas:s}}function IC(t,e,n){const s=new io(t,e,n);return s.texture.mapping=ep,s.texture.name="PMREM.cubeUv",s.scissorTest=!0,s}function sd(t,e,n,s,i){t.viewport.set(e,n,s,i),t.scissor.set(e,n,s,i)}function LOt(t,e,n){const s=new Float32Array(Br),i=new oe(0,1,0);return new ro({name:"SphericalGaussianBlur",defines:{n:Br,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:s},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:ZE(),fragmentShader:` precision mediump float; precision mediump int; @@ -3914,26 +3914,26 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function BOt(t){let e=new WeakMap,n=null;function s(a){if(a&&a.isTexture){const c=a.mapping,d=c===Xg||c===Zg,u=c===da||c===ua;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let h=e.get(a);return n===null&&(n=new MC(t)),h=d?n.fromEquirectangular(a,h):n.fromCubemap(a,h),e.set(a,h),h.texture}else{if(e.has(a))return e.get(a).texture;{const h=a.image;if(d&&h&&h.height>0||u&&h&&i(h)){n===null&&(n=new MC(t));const f=d?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function i(a){let c=0;const d=6;for(let u=0;ue.maxTextureSize&&(B=Math.ceil(O/e.maxTextureSize),O=e.maxTextureSize);const H=new Float32Array(O*B*4*g),te=new GN(H,O,B,g);te.type=Ai,te.needsUpdate=!0;const k=x*4;for(let q=0;q0)return t;const i=e*n;let r=LC[i];if(r===void 0&&(r=new Float32Array(i),LC[i]=r),e!==0){s.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=n,t[o].toArray(r,a)}return r}function _n(t,e){if(t.length!==e.length)return!1;for(let n=0,s=t.length;n0||u&&h&&i(h)){n===null&&(n=new MC(t));const f=d?n.fromEquirectangular(a):n.fromCubemap(a);return e.set(a,f),a.addEventListener("dispose",r),f.texture}else return null}}}return a}function i(a){let c=0;const d=6;for(let u=0;ue.maxTextureSize&&(B=Math.ceil(O/e.maxTextureSize),O=e.maxTextureSize);const H=new Float32Array(O*B*4*g),te=new GN(H,O,B,g);te.type=Ai,te.needsUpdate=!0;const k=x*4;for(let q=0;q0)return t;const i=e*n;let r=LC[i];if(r===void 0&&(r=new Float32Array(i),LC[i]=r),e!==0){s.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=n,t[o].toArray(r,a)}return r}function _n(t,e){if(t.length!==e.length)return!1;for(let n=0,s=t.length;n":" "} ${a}: ${n[o]}`)}return s.join(` -`)}function VMt(t){const e=Ut.getPrimaries(Ut.workingColorSpace),n=Ut.getPrimaries(t);let s;switch(e===n?s="":e===ou&&n===ru?s="LinearDisplayP3ToLinearSRGB":e===ru&&n===ou&&(s="LinearSRGBToLinearDisplayP3"),t){case wn:case tp:return[s,"LinearTransferOETF"];case tn:case WE:return[s,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[s,"LinearTransferOETF"]}}function zC(t,e,n){const s=t.getShaderParameter(e,t.COMPILE_STATUS),i=t.getShaderInfoLog(e).trim();if(s&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return n.toUpperCase()+` +`)}function FMt(t){const e=Ut.getPrimaries(Ut.workingColorSpace),n=Ut.getPrimaries(t);let s;switch(e===n?s="":e===ou&&n===ru?s="LinearDisplayP3ToLinearSRGB":e===ru&&n===ou&&(s="LinearSRGBToLinearDisplayP3"),t){case wn:case tp:return[s,"LinearTransferOETF"];case tn:case WE:return[s,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[s,"LinearTransferOETF"]}}function zC(t,e,n){const s=t.getShaderParameter(e,t.COMPILE_STATUS),i=t.getShaderInfoLog(e).trim();if(s&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return n.toUpperCase()+` `+i+` -`+GMt(t.getShaderSource(e),o)}else return i}function zMt(t,e){const n=VMt(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function HMt(t,e){let n;switch(e){case BRt:n="Linear";break;case GRt:n="Reinhard";break;case VRt:n="OptimizedCineon";break;case zRt:n="ACESFilmic";break;case HRt:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function qMt(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.normalMapTangentSpace||t.clearcoatNormalMap||t.flatShading||t.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(pl).join(` -`)}function $Mt(t){const e=[];for(const n in t){const s=t[n];s!==!1&&e.push("#define "+n+" "+s)}return e.join(` -`)}function YMt(t,e){const n={},s=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function ib(t){return t.replace(WMt,jMt)}const KMt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function jMt(t,e){let n=St[e];if(n===void 0){const s=KMt.get(e);if(s!==void 0)n=St[s],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,s);else throw new Error("Can not resolve #include <"+e+">")}return ib(n)}const QMt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function $C(t){return t.replace(QMt,XMt)}function XMt(t,e,n,s){let i="";for(let r=parseInt(e);r/gm;function ib(t){return t.replace(qMt,YMt)}const $Mt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function YMt(t,e){let n=St[e];if(n===void 0){const s=$Mt.get(e);if(s!==void 0)n=St[s],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,s);else throw new Error("Can not resolve #include <"+e+">")}return ib(n)}const WMt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function $C(t){return t.replace(WMt,KMt)}function KMt(t,e,n,s){let i="";for(let r=parseInt(e);r0&&(b+=` `),E=[m,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,_].filter(pl).join(` `),E.length>0&&(E+=` `)):(b=[YC(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,_,n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )"," attribute vec3 morphTarget0;"," attribute vec3 morphTarget1;"," attribute vec3 morphTarget2;"," attribute vec3 morphTarget3;"," #ifdef USE_MORPHNORMALS"," attribute vec3 morphNormal0;"," attribute vec3 morphNormal1;"," attribute vec3 morphNormal2;"," attribute vec3 morphNormal3;"," #else"," attribute vec3 morphTarget4;"," attribute vec3 morphTarget5;"," attribute vec3 morphTarget6;"," attribute vec3 morphTarget7;"," #endif","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(pl).join(` -`),E=[m,YC(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,_,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==pr?"#define TONE_MAPPING":"",n.toneMapping!==pr?St.tonemapping_pars_fragment:"",n.toneMapping!==pr?HMt("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",St.colorspace_pars_fragment,zMt("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` +`),E=[m,YC(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,_,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+c:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==pr?"#define TONE_MAPPING":"",n.toneMapping!==pr?St.tonemapping_pars_fragment:"",n.toneMapping!==pr?GMt("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",St.colorspace_pars_fragment,BMt("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` `].filter(pl).join(` `)),o=ib(o),o=HC(o,n),o=qC(o,n),a=ib(a),a=HC(a,n),a=qC(a,n),o=$C(o),a=$C(a),n.isWebGL2&&n.isRawShaderMaterial!==!0&&(y=`#version 300 es `,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(` @@ -3944,9 +3944,9 @@ precision `+t.precision+" int;";return t.precision==="highp"?e+=` Program Info Log: `+H+` `+U+` -`+W)}else H!==""?console.warn("THREE.WebGLProgram: Program Info Log:",H):(te===""||k==="")&&(q=!1);q&&(B.diagnostics={runnable:$,programLog:H,vertexShader:{log:te,prefix:b},fragmentShader:{log:k,prefix:E}})}i.deleteShader(R),i.deleteShader(C),I=new Rd(i,g),x=YMt(i,g)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let x;this.getAttributes=function(){return x===void 0&&A(this),x};let O=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return O===!1&&(O=i.getProgramParameter(g,FMt)),O},this.destroy=function(){s.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=BMt++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=R,this.fragmentShader=C,this}let iIt=0;class rIt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,s=e.fragmentShader,i=this._getShaderStage(n),r=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const s of n)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 n=this.materialCache;let s=n.get(e);return s===void 0&&(s=new Set,n.set(e,s)),s}_getShaderStage(e){const n=this.shaderCache;let s=n.get(e);return s===void 0&&(s=new oIt(e),n.set(e,s)),s}}class oIt{constructor(e){this.id=iIt++,this.code=e,this.usedTimes=0}}function aIt(t,e,n,s,i,r,o){const a=new VN,c=new rIt,d=[],u=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let m=i.precision;const _={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 g(x){return x===0?"uv":`uv${x}`}function b(x,O,B,H,te){const k=H.fog,$=te.geometry,q=x.isMeshStandardMaterial?H.environment:null,U=(x.isMeshStandardMaterial?n:e).get(x.envMap||q),W=U&&U.mapping===ep?U.image.height:null,ne=_[x.type];x.precision!==null&&(m=i.getMaxPrecision(x.precision),m!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",m,"instead."));const le=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,me=le!==void 0?le.length:0;let Se=0;$.morphAttributes.position!==void 0&&(Se=1),$.morphAttributes.normal!==void 0&&(Se=2),$.morphAttributes.color!==void 0&&(Se=3);let de,Ee,Me,ke;if(ne){const En=Xs[ne];de=En.vertexShader,Ee=En.fragmentShader}else de=x.vertexShader,Ee=x.fragmentShader,c.update(x),Me=c.getVertexShaderID(x),ke=c.getFragmentShaderID(x);const Z=t.getRenderTarget(),he=te.isInstancedMesh===!0,_e=te.isBatchedMesh===!0,we=!!x.map,Ue=!!x.matcap,N=!!U,z=!!x.aoMap,Y=!!x.lightMap,ce=!!x.bumpMap,re=!!x.normalMap,xe=!!x.displacementMap,Ne=!!x.emissiveMap,ie=!!x.metalnessMap,Re=!!x.roughnessMap,ge=x.anisotropy>0,De=x.clearcoat>0,L=x.iridescence>0,M=x.sheen>0,Q=x.transmission>0,ye=ge&&!!x.anisotropyMap,X=De&&!!x.clearcoatMap,se=De&&!!x.clearcoatNormalMap,Ae=De&&!!x.clearcoatRoughnessMap,Ce=L&&!!x.iridescenceMap,Fe=L&&!!x.iridescenceThicknessMap,Ze=M&&!!x.sheenColorMap,ft=M&&!!x.sheenRoughnessMap,Be=!!x.specularMap,pt=!!x.specularColorMap,st=!!x.specularIntensityMap,Ye=Q&&!!x.transmissionMap,nt=Q&&!!x.thicknessMap,je=!!x.gradientMap,yt=!!x.alphaMap,ee=x.alphaTest>0,Qe=!!x.alphaHash,Ve=!!x.extensions,Oe=!!$.attributes.uv1,He=!!$.attributes.uv2,lt=!!$.attributes.uv3;let Nt=pr;return x.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(Nt=t.toneMapping),{isWebGL2:u,shaderID:ne,shaderType:x.type,shaderName:x.name,vertexShader:de,fragmentShader:Ee,defines:x.defines,customVertexShaderID:Me,customFragmentShaderID:ke,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:m,batching:_e,instancing:he,instancingColor:he&&te.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Z===null?t.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:wn,map:we,matcap:Ue,envMap:N,envMapMode:N&&U.mapping,envMapCubeUVHeight:W,aoMap:z,lightMap:Y,bumpMap:ce,normalMap:re,displacementMap:f&&xe,emissiveMap:Ne,normalMapObjectSpace:re&&x.normalMapType===sAt,normalMapTangentSpace:re&&x.normalMapType===YE,metalnessMap:ie,roughnessMap:Re,anisotropy:ge,anisotropyMap:ye,clearcoat:De,clearcoatMap:X,clearcoatNormalMap:se,clearcoatRoughnessMap:Ae,iridescence:L,iridescenceMap:Ce,iridescenceThicknessMap:Fe,sheen:M,sheenColorMap:Ze,sheenRoughnessMap:ft,specularMap:Be,specularColorMap:pt,specularIntensityMap:st,transmission:Q,transmissionMap:Ye,thicknessMap:nt,gradientMap:je,opaque:x.transparent===!1&&x.blending===jo,alphaMap:yt,alphaTest:ee,alphaHash:Qe,combine:x.combine,mapUv:we&&g(x.map.channel),aoMapUv:z&&g(x.aoMap.channel),lightMapUv:Y&&g(x.lightMap.channel),bumpMapUv:ce&&g(x.bumpMap.channel),normalMapUv:re&&g(x.normalMap.channel),displacementMapUv:xe&&g(x.displacementMap.channel),emissiveMapUv:Ne&&g(x.emissiveMap.channel),metalnessMapUv:ie&&g(x.metalnessMap.channel),roughnessMapUv:Re&&g(x.roughnessMap.channel),anisotropyMapUv:ye&&g(x.anisotropyMap.channel),clearcoatMapUv:X&&g(x.clearcoatMap.channel),clearcoatNormalMapUv:se&&g(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ae&&g(x.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&g(x.iridescenceMap.channel),iridescenceThicknessMapUv:Fe&&g(x.iridescenceThicknessMap.channel),sheenColorMapUv:Ze&&g(x.sheenColorMap.channel),sheenRoughnessMapUv:ft&&g(x.sheenRoughnessMap.channel),specularMapUv:Be&&g(x.specularMap.channel),specularColorMapUv:pt&&g(x.specularColorMap.channel),specularIntensityMapUv:st&&g(x.specularIntensityMap.channel),transmissionMapUv:Ye&&g(x.transmissionMap.channel),thicknessMapUv:nt&&g(x.thicknessMap.channel),alphaMapUv:yt&&g(x.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(re||ge),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Oe,vertexUv2s:He,vertexUv3s:lt,pointsUvs:te.isPoints===!0&&!!$.attributes.uv&&(we||yt),fog:!!k,useFog:x.fog===!0,fogExp2:k&&k.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:te.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:me,morphTextureStride:Se,numDirLights:O.directional.length,numPointLights:O.point.length,numSpotLights:O.spot.length,numSpotLightMaps:O.spotLightMap.length,numRectAreaLights:O.rectArea.length,numHemiLights:O.hemi.length,numDirLightShadows:O.directionalShadowMap.length,numPointLightShadows:O.pointShadowMap.length,numSpotLightShadows:O.spotShadowMap.length,numSpotLightShadowsWithMaps:O.numSpotLightShadowsWithMaps,numLightProbes:O.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:t.shadowMap.enabled&&B.length>0,shadowMapType:t.shadowMap.type,toneMapping:Nt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:we&&x.map.isVideoTexture===!0&&Ut.getTransfer(x.map.colorSpace)===Kt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===Js,flipSided:x.side===$n,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ve&&x.extensions.derivatives===!0,extensionFragDepth:Ve&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ve&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ve&&x.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:x.customProgramCacheKey()}}function E(x){const O=[];if(x.shaderID?O.push(x.shaderID):(O.push(x.customVertexShaderID),O.push(x.customFragmentShaderID)),x.defines!==void 0)for(const B in x.defines)O.push(B),O.push(x.defines[B]);return x.isRawShaderMaterial===!1&&(y(O,x),v(O,x),O.push(t.outputColorSpace)),O.push(x.customProgramCacheKey),O.join()}function y(x,O){x.push(O.precision),x.push(O.outputColorSpace),x.push(O.envMapMode),x.push(O.envMapCubeUVHeight),x.push(O.mapUv),x.push(O.alphaMapUv),x.push(O.lightMapUv),x.push(O.aoMapUv),x.push(O.bumpMapUv),x.push(O.normalMapUv),x.push(O.displacementMapUv),x.push(O.emissiveMapUv),x.push(O.metalnessMapUv),x.push(O.roughnessMapUv),x.push(O.anisotropyMapUv),x.push(O.clearcoatMapUv),x.push(O.clearcoatNormalMapUv),x.push(O.clearcoatRoughnessMapUv),x.push(O.iridescenceMapUv),x.push(O.iridescenceThicknessMapUv),x.push(O.sheenColorMapUv),x.push(O.sheenRoughnessMapUv),x.push(O.specularMapUv),x.push(O.specularColorMapUv),x.push(O.specularIntensityMapUv),x.push(O.transmissionMapUv),x.push(O.thicknessMapUv),x.push(O.combine),x.push(O.fogExp2),x.push(O.sizeAttenuation),x.push(O.morphTargetsCount),x.push(O.morphAttributeCount),x.push(O.numDirLights),x.push(O.numPointLights),x.push(O.numSpotLights),x.push(O.numSpotLightMaps),x.push(O.numHemiLights),x.push(O.numRectAreaLights),x.push(O.numDirLightShadows),x.push(O.numPointLightShadows),x.push(O.numSpotLightShadows),x.push(O.numSpotLightShadowsWithMaps),x.push(O.numLightProbes),x.push(O.shadowMapType),x.push(O.toneMapping),x.push(O.numClippingPlanes),x.push(O.numClipIntersection),x.push(O.depthPacking)}function v(x,O){a.disableAll(),O.isWebGL2&&a.enable(0),O.supportsVertexTextures&&a.enable(1),O.instancing&&a.enable(2),O.instancingColor&&a.enable(3),O.matcap&&a.enable(4),O.envMap&&a.enable(5),O.normalMapObjectSpace&&a.enable(6),O.normalMapTangentSpace&&a.enable(7),O.clearcoat&&a.enable(8),O.iridescence&&a.enable(9),O.alphaTest&&a.enable(10),O.vertexColors&&a.enable(11),O.vertexAlphas&&a.enable(12),O.vertexUv1s&&a.enable(13),O.vertexUv2s&&a.enable(14),O.vertexUv3s&&a.enable(15),O.vertexTangents&&a.enable(16),O.anisotropy&&a.enable(17),O.alphaHash&&a.enable(18),O.batching&&a.enable(19),x.push(a.mask),a.disableAll(),O.fog&&a.enable(0),O.useFog&&a.enable(1),O.flatShading&&a.enable(2),O.logarithmicDepthBuffer&&a.enable(3),O.skinning&&a.enable(4),O.morphTargets&&a.enable(5),O.morphNormals&&a.enable(6),O.morphColors&&a.enable(7),O.premultipliedAlpha&&a.enable(8),O.shadowMapEnabled&&a.enable(9),O.useLegacyLights&&a.enable(10),O.doubleSided&&a.enable(11),O.flipSided&&a.enable(12),O.useDepthPacking&&a.enable(13),O.dithering&&a.enable(14),O.transmission&&a.enable(15),O.sheen&&a.enable(16),O.opaque&&a.enable(17),O.pointsUvs&&a.enable(18),O.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const O=_[x.type];let B;if(O){const H=Xs[O];B=qAt.clone(H.uniforms)}else B=x.uniforms;return B}function R(x,O){let B;for(let H=0,te=d.length;H0?s.push(E):m.transparent===!0?i.push(E):n.push(E)}function c(h,f,m,_,g,b){const E=o(h,f,m,_,g,b);m.transmission>0?s.unshift(E):m.transparent===!0?i.unshift(E):n.unshift(E)}function d(h,f){n.length>1&&n.sort(h||cIt),s.length>1&&s.sort(f||WC),i.length>1&&i.sort(f||WC)}function u(){for(let h=e,f=t.length;h=r.length?(o=new KC,r.push(o)):o=r[i],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function uIt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new oe,color:new _t};break;case"SpotLight":n={position:new oe,direction:new oe,color:new _t,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new oe,color:new _t,distance:0,decay:0};break;case"HemisphereLight":n={direction:new oe,skyColor:new _t,groundColor:new _t};break;case"RectAreaLight":n={color:new _t,position:new oe,halfWidth:new oe,halfHeight:new oe};break}return t[e.id]=n,n}}}function pIt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let _It=0;function hIt(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function fIt(t,e){const n=new uIt,s=pIt(),i={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++)i.probe.push(new oe);const r=new oe,o=new xt,a=new xt;function c(u,h){let f=0,m=0,_=0;for(let H=0;H<9;H++)i.probe[H].set(0,0,0);let g=0,b=0,E=0,y=0,v=0,S=0,R=0,C=0,A=0,I=0,x=0;u.sort(hIt);const O=h===!0?Math.PI:1;for(let H=0,te=u.length;H0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=We.LTC_FLOAT_1,i.rectAreaLTC2=We.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=We.LTC_HALF_1,i.rectAreaLTC2=We.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=m,i.ambient[2]=_;const B=i.hash;(B.directionalLength!==g||B.pointLength!==b||B.spotLength!==E||B.rectAreaLength!==y||B.hemiLength!==v||B.numDirectionalShadows!==S||B.numPointShadows!==R||B.numSpotShadows!==C||B.numSpotMaps!==A||B.numLightProbes!==x)&&(i.directional.length=g,i.spot.length=E,i.rectArea.length=y,i.point.length=b,i.hemi.length=v,i.directionalShadow.length=S,i.directionalShadowMap.length=S,i.pointShadow.length=R,i.pointShadowMap.length=R,i.spotShadow.length=C,i.spotShadowMap.length=C,i.directionalShadowMatrix.length=S,i.pointShadowMatrix.length=R,i.spotLightMatrix.length=C+A-I,i.spotLightMap.length=A,i.numSpotLightShadowsWithMaps=I,i.numLightProbes=x,B.directionalLength=g,B.pointLength=b,B.spotLength=E,B.rectAreaLength=y,B.hemiLength=v,B.numDirectionalShadows=S,B.numPointShadows=R,B.numSpotShadows=C,B.numSpotMaps=A,B.numLightProbes=x,i.version=_It++)}function d(u,h){let f=0,m=0,_=0,g=0,b=0;const E=h.matrixWorldInverse;for(let y=0,v=u.length;y=a.length?(c=new jC(t,e),a.push(c)):c=a[o],c}function i(){n=new WeakMap}return{get:s,dispose:i}}class gIt extends Gs{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=tAt,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 bIt extends Gs{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 EIt=`void main() { +`+W)}else H!==""?console.warn("THREE.WebGLProgram: Program Info Log:",H):(te===""||k==="")&&(q=!1);q&&(B.diagnostics={runnable:$,programLog:H,vertexShader:{log:te,prefix:b},fragmentShader:{log:k,prefix:E}})}i.deleteShader(R),i.deleteShader(C),I=new Rd(i,g),x=HMt(i,g)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let x;this.getAttributes=function(){return x===void 0&&A(this),x};let O=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return O===!1&&(O=i.getProgramParameter(g,LMt)),O},this.destroy=function(){s.releaseStatesOfProgram(this),i.deleteProgram(g),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=PMt++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=R,this.fragmentShader=C,this}let tIt=0;class nIt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,s=e.fragmentShader,i=this._getShaderStage(n),r=this._getShaderStage(s),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const s of n)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 n=this.materialCache;let s=n.get(e);return s===void 0&&(s=new Set,n.set(e,s)),s}_getShaderStage(e){const n=this.shaderCache;let s=n.get(e);return s===void 0&&(s=new sIt(e),n.set(e,s)),s}}class sIt{constructor(e){this.id=tIt++,this.code=e,this.usedTimes=0}}function iIt(t,e,n,s,i,r,o){const a=new VN,c=new nIt,d=[],u=i.isWebGL2,h=i.logarithmicDepthBuffer,f=i.vertexTextures;let m=i.precision;const _={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 g(x){return x===0?"uv":`uv${x}`}function b(x,O,B,H,te){const k=H.fog,$=te.geometry,q=x.isMeshStandardMaterial?H.environment:null,U=(x.isMeshStandardMaterial?n:e).get(x.envMap||q),W=U&&U.mapping===ep?U.image.height:null,ne=_[x.type];x.precision!==null&&(m=i.getMaxPrecision(x.precision),m!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",m,"instead."));const le=$.morphAttributes.position||$.morphAttributes.normal||$.morphAttributes.color,me=le!==void 0?le.length:0;let Se=0;$.morphAttributes.position!==void 0&&(Se=1),$.morphAttributes.normal!==void 0&&(Se=2),$.morphAttributes.color!==void 0&&(Se=3);let de,Ee,Me,ke;if(ne){const En=Xs[ne];de=En.vertexShader,Ee=En.fragmentShader}else de=x.vertexShader,Ee=x.fragmentShader,c.update(x),Me=c.getVertexShaderID(x),ke=c.getFragmentShaderID(x);const Z=t.getRenderTarget(),he=te.isInstancedMesh===!0,_e=te.isBatchedMesh===!0,we=!!x.map,Ue=!!x.matcap,N=!!U,z=!!x.aoMap,Y=!!x.lightMap,ce=!!x.bumpMap,re=!!x.normalMap,xe=!!x.displacementMap,Ne=!!x.emissiveMap,ie=!!x.metalnessMap,Re=!!x.roughnessMap,ge=x.anisotropy>0,De=x.clearcoat>0,L=x.iridescence>0,M=x.sheen>0,Q=x.transmission>0,ye=ge&&!!x.anisotropyMap,X=De&&!!x.clearcoatMap,se=De&&!!x.clearcoatNormalMap,Ae=De&&!!x.clearcoatRoughnessMap,Ce=L&&!!x.iridescenceMap,Fe=L&&!!x.iridescenceThicknessMap,Ze=M&&!!x.sheenColorMap,ft=M&&!!x.sheenRoughnessMap,Be=!!x.specularMap,pt=!!x.specularColorMap,st=!!x.specularIntensityMap,Ye=Q&&!!x.transmissionMap,nt=Q&&!!x.thicknessMap,je=!!x.gradientMap,yt=!!x.alphaMap,ee=x.alphaTest>0,Qe=!!x.alphaHash,Ve=!!x.extensions,Oe=!!$.attributes.uv1,He=!!$.attributes.uv2,lt=!!$.attributes.uv3;let Nt=pr;return x.toneMapped&&(Z===null||Z.isXRRenderTarget===!0)&&(Nt=t.toneMapping),{isWebGL2:u,shaderID:ne,shaderType:x.type,shaderName:x.name,vertexShader:de,fragmentShader:Ee,defines:x.defines,customVertexShaderID:Me,customFragmentShaderID:ke,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:m,batching:_e,instancing:he,instancingColor:he&&te.instanceColor!==null,supportsVertexTextures:f,outputColorSpace:Z===null?t.outputColorSpace:Z.isXRRenderTarget===!0?Z.texture.colorSpace:wn,map:we,matcap:Ue,envMap:N,envMapMode:N&&U.mapping,envMapCubeUVHeight:W,aoMap:z,lightMap:Y,bumpMap:ce,normalMap:re,displacementMap:f&&xe,emissiveMap:Ne,normalMapObjectSpace:re&&x.normalMapType===eAt,normalMapTangentSpace:re&&x.normalMapType===YE,metalnessMap:ie,roughnessMap:Re,anisotropy:ge,anisotropyMap:ye,clearcoat:De,clearcoatMap:X,clearcoatNormalMap:se,clearcoatRoughnessMap:Ae,iridescence:L,iridescenceMap:Ce,iridescenceThicknessMap:Fe,sheen:M,sheenColorMap:Ze,sheenRoughnessMap:ft,specularMap:Be,specularColorMap:pt,specularIntensityMap:st,transmission:Q,transmissionMap:Ye,thicknessMap:nt,gradientMap:je,opaque:x.transparent===!1&&x.blending===jo,alphaMap:yt,alphaTest:ee,alphaHash:Qe,combine:x.combine,mapUv:we&&g(x.map.channel),aoMapUv:z&&g(x.aoMap.channel),lightMapUv:Y&&g(x.lightMap.channel),bumpMapUv:ce&&g(x.bumpMap.channel),normalMapUv:re&&g(x.normalMap.channel),displacementMapUv:xe&&g(x.displacementMap.channel),emissiveMapUv:Ne&&g(x.emissiveMap.channel),metalnessMapUv:ie&&g(x.metalnessMap.channel),roughnessMapUv:Re&&g(x.roughnessMap.channel),anisotropyMapUv:ye&&g(x.anisotropyMap.channel),clearcoatMapUv:X&&g(x.clearcoatMap.channel),clearcoatNormalMapUv:se&&g(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ae&&g(x.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&g(x.iridescenceMap.channel),iridescenceThicknessMapUv:Fe&&g(x.iridescenceThicknessMap.channel),sheenColorMapUv:Ze&&g(x.sheenColorMap.channel),sheenRoughnessMapUv:ft&&g(x.sheenRoughnessMap.channel),specularMapUv:Be&&g(x.specularMap.channel),specularColorMapUv:pt&&g(x.specularColorMap.channel),specularIntensityMapUv:st&&g(x.specularIntensityMap.channel),transmissionMapUv:Ye&&g(x.transmissionMap.channel),thicknessMapUv:nt&&g(x.thicknessMap.channel),alphaMapUv:yt&&g(x.alphaMap.channel),vertexTangents:!!$.attributes.tangent&&(re||ge),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!$.attributes.color&&$.attributes.color.itemSize===4,vertexUv1s:Oe,vertexUv2s:He,vertexUv3s:lt,pointsUvs:te.isPoints===!0&&!!$.attributes.uv&&(we||yt),fog:!!k,useFog:x.fog===!0,fogExp2:k&&k.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:te.isSkinnedMesh===!0,morphTargets:$.morphAttributes.position!==void 0,morphNormals:$.morphAttributes.normal!==void 0,morphColors:$.morphAttributes.color!==void 0,morphTargetsCount:me,morphTextureStride:Se,numDirLights:O.directional.length,numPointLights:O.point.length,numSpotLights:O.spot.length,numSpotLightMaps:O.spotLightMap.length,numRectAreaLights:O.rectArea.length,numHemiLights:O.hemi.length,numDirLightShadows:O.directionalShadowMap.length,numPointLightShadows:O.pointShadowMap.length,numSpotLightShadows:O.spotShadowMap.length,numSpotLightShadowsWithMaps:O.numSpotLightShadowsWithMaps,numLightProbes:O.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:t.shadowMap.enabled&&B.length>0,shadowMapType:t.shadowMap.type,toneMapping:Nt,useLegacyLights:t._useLegacyLights,decodeVideoTexture:we&&x.map.isVideoTexture===!0&&Ut.getTransfer(x.map.colorSpace)===Kt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===Js,flipSided:x.side===$n,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ve&&x.extensions.derivatives===!0,extensionFragDepth:Ve&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ve&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ve&&x.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:x.customProgramCacheKey()}}function E(x){const O=[];if(x.shaderID?O.push(x.shaderID):(O.push(x.customVertexShaderID),O.push(x.customFragmentShaderID)),x.defines!==void 0)for(const B in x.defines)O.push(B),O.push(x.defines[B]);return x.isRawShaderMaterial===!1&&(y(O,x),v(O,x),O.push(t.outputColorSpace)),O.push(x.customProgramCacheKey),O.join()}function y(x,O){x.push(O.precision),x.push(O.outputColorSpace),x.push(O.envMapMode),x.push(O.envMapCubeUVHeight),x.push(O.mapUv),x.push(O.alphaMapUv),x.push(O.lightMapUv),x.push(O.aoMapUv),x.push(O.bumpMapUv),x.push(O.normalMapUv),x.push(O.displacementMapUv),x.push(O.emissiveMapUv),x.push(O.metalnessMapUv),x.push(O.roughnessMapUv),x.push(O.anisotropyMapUv),x.push(O.clearcoatMapUv),x.push(O.clearcoatNormalMapUv),x.push(O.clearcoatRoughnessMapUv),x.push(O.iridescenceMapUv),x.push(O.iridescenceThicknessMapUv),x.push(O.sheenColorMapUv),x.push(O.sheenRoughnessMapUv),x.push(O.specularMapUv),x.push(O.specularColorMapUv),x.push(O.specularIntensityMapUv),x.push(O.transmissionMapUv),x.push(O.thicknessMapUv),x.push(O.combine),x.push(O.fogExp2),x.push(O.sizeAttenuation),x.push(O.morphTargetsCount),x.push(O.morphAttributeCount),x.push(O.numDirLights),x.push(O.numPointLights),x.push(O.numSpotLights),x.push(O.numSpotLightMaps),x.push(O.numHemiLights),x.push(O.numRectAreaLights),x.push(O.numDirLightShadows),x.push(O.numPointLightShadows),x.push(O.numSpotLightShadows),x.push(O.numSpotLightShadowsWithMaps),x.push(O.numLightProbes),x.push(O.shadowMapType),x.push(O.toneMapping),x.push(O.numClippingPlanes),x.push(O.numClipIntersection),x.push(O.depthPacking)}function v(x,O){a.disableAll(),O.isWebGL2&&a.enable(0),O.supportsVertexTextures&&a.enable(1),O.instancing&&a.enable(2),O.instancingColor&&a.enable(3),O.matcap&&a.enable(4),O.envMap&&a.enable(5),O.normalMapObjectSpace&&a.enable(6),O.normalMapTangentSpace&&a.enable(7),O.clearcoat&&a.enable(8),O.iridescence&&a.enable(9),O.alphaTest&&a.enable(10),O.vertexColors&&a.enable(11),O.vertexAlphas&&a.enable(12),O.vertexUv1s&&a.enable(13),O.vertexUv2s&&a.enable(14),O.vertexUv3s&&a.enable(15),O.vertexTangents&&a.enable(16),O.anisotropy&&a.enable(17),O.alphaHash&&a.enable(18),O.batching&&a.enable(19),x.push(a.mask),a.disableAll(),O.fog&&a.enable(0),O.useFog&&a.enable(1),O.flatShading&&a.enable(2),O.logarithmicDepthBuffer&&a.enable(3),O.skinning&&a.enable(4),O.morphTargets&&a.enable(5),O.morphNormals&&a.enable(6),O.morphColors&&a.enable(7),O.premultipliedAlpha&&a.enable(8),O.shadowMapEnabled&&a.enable(9),O.useLegacyLights&&a.enable(10),O.doubleSided&&a.enable(11),O.flipSided&&a.enable(12),O.useDepthPacking&&a.enable(13),O.dithering&&a.enable(14),O.transmission&&a.enable(15),O.sheen&&a.enable(16),O.opaque&&a.enable(17),O.pointsUvs&&a.enable(18),O.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const O=_[x.type];let B;if(O){const H=Xs[O];B=VAt.clone(H.uniforms)}else B=x.uniforms;return B}function R(x,O){let B;for(let H=0,te=d.length;H0?s.push(E):m.transparent===!0?i.push(E):n.push(E)}function c(h,f,m,_,g,b){const E=o(h,f,m,_,g,b);m.transmission>0?s.unshift(E):m.transparent===!0?i.unshift(E):n.unshift(E)}function d(h,f){n.length>1&&n.sort(h||oIt),s.length>1&&s.sort(f||WC),i.length>1&&i.sort(f||WC)}function u(){for(let h=e,f=t.length;h=r.length?(o=new KC,r.push(o)):o=r[i],o}function n(){t=new WeakMap}return{get:e,dispose:n}}function lIt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new oe,color:new _t};break;case"SpotLight":n={position:new oe,direction:new oe,color:new _t,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new oe,color:new _t,distance:0,decay:0};break;case"HemisphereLight":n={direction:new oe,skyColor:new _t,groundColor:new _t};break;case"RectAreaLight":n={color:new _t,position:new oe,halfWidth:new oe,halfHeight:new oe};break}return t[e.id]=n,n}}}function cIt(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let dIt=0;function uIt(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function pIt(t,e){const n=new lIt,s=cIt(),i={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++)i.probe.push(new oe);const r=new oe,o=new xt,a=new xt;function c(u,h){let f=0,m=0,_=0;for(let H=0;H<9;H++)i.probe[H].set(0,0,0);let g=0,b=0,E=0,y=0,v=0,S=0,R=0,C=0,A=0,I=0,x=0;u.sort(uIt);const O=h===!0?Math.PI:1;for(let H=0,te=u.length;H0&&(e.isWebGL2||t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=We.LTC_FLOAT_1,i.rectAreaLTC2=We.LTC_FLOAT_2):t.has("OES_texture_half_float_linear")===!0?(i.rectAreaLTC1=We.LTC_HALF_1,i.rectAreaLTC2=We.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=f,i.ambient[1]=m,i.ambient[2]=_;const B=i.hash;(B.directionalLength!==g||B.pointLength!==b||B.spotLength!==E||B.rectAreaLength!==y||B.hemiLength!==v||B.numDirectionalShadows!==S||B.numPointShadows!==R||B.numSpotShadows!==C||B.numSpotMaps!==A||B.numLightProbes!==x)&&(i.directional.length=g,i.spot.length=E,i.rectArea.length=y,i.point.length=b,i.hemi.length=v,i.directionalShadow.length=S,i.directionalShadowMap.length=S,i.pointShadow.length=R,i.pointShadowMap.length=R,i.spotShadow.length=C,i.spotShadowMap.length=C,i.directionalShadowMatrix.length=S,i.pointShadowMatrix.length=R,i.spotLightMatrix.length=C+A-I,i.spotLightMap.length=A,i.numSpotLightShadowsWithMaps=I,i.numLightProbes=x,B.directionalLength=g,B.pointLength=b,B.spotLength=E,B.rectAreaLength=y,B.hemiLength=v,B.numDirectionalShadows=S,B.numPointShadows=R,B.numSpotShadows=C,B.numSpotMaps=A,B.numLightProbes=x,i.version=dIt++)}function d(u,h){let f=0,m=0,_=0,g=0,b=0;const E=h.matrixWorldInverse;for(let y=0,v=u.length;y=a.length?(c=new jC(t,e),a.push(c)):c=a[o],c}function i(){n=new WeakMap}return{get:s,dispose:i}}class hIt extends Gs{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=ZRt,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 fIt extends Gs{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 mIt=`void main() { gl_Position = vec4( position, 1.0 ); -}`,yIt=`uniform sampler2D shadow_pass; +}`,gIt=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -3972,12 +3972,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function vIt(t,e,n){let s=new jE;const i=new At,r=new At,o=new $t,a=new gIt({depthPacking:nAt}),c=new bIt,d={},u=n.maxTextureSize,h={[Li]:$n,[$n]:Li,[Js]:Js},f=new ro({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new At},radius:{value:4}},vertexShader:EIt,fragmentShader:yIt}),m=f.clone();m.defines.HORIZONTAL_PASS=1;const _=new _i;_.setAttribute("position",new Bn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new Fn(_,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=xN;let E=this.type;this.render=function(R,C,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||R.length===0)return;const I=t.getRenderTarget(),x=t.getActiveCubeFace(),O=t.getActiveMipmapLevel(),B=t.state;B.setBlending(ur),B.buffers.color.setClear(1,1,1,1),B.buffers.depth.setTest(!0),B.setScissorTest(!1);const H=E!==Ci&&this.type===Ci,te=E===Ci&&this.type!==Ci;for(let k=0,$=R.length;k<$;k++){const q=R[k],U=q.shadow;if(U===void 0){console.warn("THREE.WebGLShadowMap:",q,"has no shadow.");continue}if(U.autoUpdate===!1&&U.needsUpdate===!1)continue;i.copy(U.mapSize);const W=U.getFrameExtents();if(i.multiply(W),r.copy(U.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(r.x=Math.floor(u/W.x),i.x=r.x*W.x,U.mapSize.x=r.x),i.y>u&&(r.y=Math.floor(u/W.y),i.y=r.y*W.y,U.mapSize.y=r.y)),U.map===null||H===!0||te===!0){const le=this.type!==Ci?{minFilter:gn,magFilter:gn}:{};U.map!==null&&U.map.dispose(),U.map=new io(i.x,i.y,le),U.map.texture.name=q.name+".shadowMap",U.camera.updateProjectionMatrix()}t.setRenderTarget(U.map),t.clear();const ne=U.getViewportCount();for(let le=0;le0||C.map&&C.alphaTest>0){const B=x.uuid,H=C.uuid;let te=d[B];te===void 0&&(te={},d[B]=te);let k=te[H];k===void 0&&(k=x.clone(),te[H]=k),x=k}if(x.visible=C.visible,x.wireframe=C.wireframe,I===Ci?x.side=C.shadowSide!==null?C.shadowSide:C.side:x.side=C.shadowSide!==null?C.shadowSide:h[C.side],x.alphaMap=C.alphaMap,x.alphaTest=C.alphaTest,x.map=C.map,x.clipShadows=C.clipShadows,x.clippingPlanes=C.clippingPlanes,x.clipIntersection=C.clipIntersection,x.displacementMap=C.displacementMap,x.displacementScale=C.displacementScale,x.displacementBias=C.displacementBias,x.wireframeLinewidth=C.wireframeLinewidth,x.linewidth=C.linewidth,A.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const B=t.properties.get(x);B.light=A}return x}function S(R,C,A,I,x){if(R.visible===!1)return;if(R.layers.test(C.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&x===Ci)&&(!R.frustumCulled||s.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const H=e.update(R),te=R.material;if(Array.isArray(te)){const k=H.groups;for(let $=0,q=k.length;$=1):le.indexOf("OpenGL ES")!==-1&&(ne=parseFloat(/^OpenGL ES (\d)/.exec(le)[1]),W=ne>=2);let me=null,Se={};const de=t.getParameter(t.SCISSOR_BOX),Ee=t.getParameter(t.VIEWPORT),Me=new $t().fromArray(de),ke=new $t().fromArray(Ee);function Z(ee,Qe,Ve,Oe){const He=new Uint8Array(4),lt=t.createTexture();t.bindTexture(ee,lt),t.texParameteri(ee,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(ee,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Nt=0;Nt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),_=new WeakMap;let g;const b=new WeakMap;let E=!1;try{E=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(L,M){return E?new OffscreenCanvas(L,M):Yl("canvas")}function v(L,M,Q,ye){let X=1;if((L.width>ye||L.height>ye)&&(X=ye/Math.max(L.width,L.height)),X<1||M===!0)if(typeof HTMLImageElement<"u"&&L instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&L instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&L instanceof ImageBitmap){const se=M?lu:Math.floor,Ae=se(X*L.width),Ce=se(X*L.height);g===void 0&&(g=y(Ae,Ce));const Fe=Q?y(Ae,Ce):g;return Fe.width=Ae,Fe.height=Ce,Fe.getContext("2d").drawImage(L,0,0,Ae,Ce),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+L.width+"x"+L.height+") to ("+Ae+"x"+Ce+")."),Fe}else return"data"in L&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+L.width+"x"+L.height+")."),L;return L}function S(L){return sb(L.width)&&sb(L.height)}function R(L){return a?!1:L.wrapS!==us||L.wrapT!==us||L.minFilter!==gn&&L.minFilter!==zn}function C(L,M){return L.generateMipmaps&&M&&L.minFilter!==gn&&L.minFilter!==zn}function A(L){t.generateMipmap(L)}function I(L,M,Q,ye,X=!1){if(a===!1)return M;if(L!==null){if(t[L]!==void 0)return t[L];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+L+"'")}let se=M;if(M===t.RED&&(Q===t.FLOAT&&(se=t.R32F),Q===t.HALF_FLOAT&&(se=t.R16F),Q===t.UNSIGNED_BYTE&&(se=t.R8)),M===t.RED_INTEGER&&(Q===t.UNSIGNED_BYTE&&(se=t.R8UI),Q===t.UNSIGNED_SHORT&&(se=t.R16UI),Q===t.UNSIGNED_INT&&(se=t.R32UI),Q===t.BYTE&&(se=t.R8I),Q===t.SHORT&&(se=t.R16I),Q===t.INT&&(se=t.R32I)),M===t.RG&&(Q===t.FLOAT&&(se=t.RG32F),Q===t.HALF_FLOAT&&(se=t.RG16F),Q===t.UNSIGNED_BYTE&&(se=t.RG8)),M===t.RGBA){const Ae=X?iu:Ut.getTransfer(ye);Q===t.FLOAT&&(se=t.RGBA32F),Q===t.HALF_FLOAT&&(se=t.RGBA16F),Q===t.UNSIGNED_BYTE&&(se=Ae===Kt?t.SRGB8_ALPHA8:t.RGBA8),Q===t.UNSIGNED_SHORT_4_4_4_4&&(se=t.RGBA4),Q===t.UNSIGNED_SHORT_5_5_5_1&&(se=t.RGB5_A1)}return(se===t.R16F||se===t.R32F||se===t.RG16F||se===t.RG32F||se===t.RGBA16F||se===t.RGBA32F)&&e.get("EXT_color_buffer_float"),se}function x(L,M,Q){return C(L,Q)===!0||L.isFramebufferTexture&&L.minFilter!==gn&&L.minFilter!==zn?Math.log2(Math.max(M.width,M.height))+1:L.mipmaps!==void 0&&L.mipmaps.length>0?L.mipmaps.length:L.isCompressedTexture&&Array.isArray(L.image)?M.mipmaps.length:1}function O(L){return L===gn||L===Jg||L===wd?t.NEAREST:t.LINEAR}function B(L){const M=L.target;M.removeEventListener("dispose",B),te(M),M.isVideoTexture&&_.delete(M)}function H(L){const M=L.target;M.removeEventListener("dispose",H),$(M)}function te(L){const M=s.get(L);if(M.__webglInit===void 0)return;const Q=L.source,ye=b.get(Q);if(ye){const X=ye[M.__cacheKey];X.usedTimes--,X.usedTimes===0&&k(L),Object.keys(ye).length===0&&b.delete(Q)}s.remove(L)}function k(L){const M=s.get(L);t.deleteTexture(M.__webglTexture);const Q=L.source,ye=b.get(Q);delete ye[M.__cacheKey],o.memory.textures--}function $(L){const M=L.texture,Q=s.get(L),ye=s.get(M);if(ye.__webglTexture!==void 0&&(t.deleteTexture(ye.__webglTexture),o.memory.textures--),L.depthTexture&&L.depthTexture.dispose(),L.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(Q.__webglFramebuffer[X]))for(let se=0;se=c&&console.warn("THREE.WebGLTextures: Trying to use "+L+" texture units while this GPU supports only "+c),q+=1,L}function ne(L){const M=[];return M.push(L.wrapS),M.push(L.wrapT),M.push(L.wrapR||0),M.push(L.magFilter),M.push(L.minFilter),M.push(L.anisotropy),M.push(L.internalFormat),M.push(L.format),M.push(L.type),M.push(L.generateMipmaps),M.push(L.premultiplyAlpha),M.push(L.flipY),M.push(L.unpackAlignment),M.push(L.colorSpace),M.join()}function le(L,M){const Q=s.get(L);if(L.isVideoTexture&&ge(L),L.isRenderTargetTexture===!1&&L.version>0&&Q.__version!==L.version){const ye=L.image;if(ye===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ye.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(Q,L,M);return}}n.bindTexture(t.TEXTURE_2D,Q.__webglTexture,t.TEXTURE0+M)}function me(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){_e(Q,L,M);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Q.__webglTexture,t.TEXTURE0+M)}function Se(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){_e(Q,L,M);return}n.bindTexture(t.TEXTURE_3D,Q.__webglTexture,t.TEXTURE0+M)}function de(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){we(Q,L,M);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Q.__webglTexture,t.TEXTURE0+M)}const Ee={[pa]:t.REPEAT,[us]:t.CLAMP_TO_EDGE,[su]:t.MIRRORED_REPEAT},Me={[gn]:t.NEAREST,[Jg]:t.NEAREST_MIPMAP_NEAREST,[wd]:t.NEAREST_MIPMAP_LINEAR,[zn]:t.LINEAR,[wN]:t.LINEAR_MIPMAP_NEAREST,[so]:t.LINEAR_MIPMAP_LINEAR},ke={[iAt]:t.NEVER,[dAt]:t.ALWAYS,[rAt]:t.LESS,[PN]:t.LEQUAL,[oAt]:t.EQUAL,[cAt]:t.GEQUAL,[aAt]:t.GREATER,[lAt]:t.NOTEQUAL};function Z(L,M,Q){if(Q?(t.texParameteri(L,t.TEXTURE_WRAP_S,Ee[M.wrapS]),t.texParameteri(L,t.TEXTURE_WRAP_T,Ee[M.wrapT]),(L===t.TEXTURE_3D||L===t.TEXTURE_2D_ARRAY)&&t.texParameteri(L,t.TEXTURE_WRAP_R,Ee[M.wrapR]),t.texParameteri(L,t.TEXTURE_MAG_FILTER,Me[M.magFilter]),t.texParameteri(L,t.TEXTURE_MIN_FILTER,Me[M.minFilter])):(t.texParameteri(L,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(L,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(L===t.TEXTURE_3D||L===t.TEXTURE_2D_ARRAY)&&t.texParameteri(L,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(M.wrapS!==us||M.wrapT!==us)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(L,t.TEXTURE_MAG_FILTER,O(M.magFilter)),t.texParameteri(L,t.TEXTURE_MIN_FILTER,O(M.minFilter)),M.minFilter!==gn&&M.minFilter!==zn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),M.compareFunction&&(t.texParameteri(L,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(L,t.TEXTURE_COMPARE_FUNC,ke[M.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ye=e.get("EXT_texture_filter_anisotropic");if(M.magFilter===gn||M.minFilter!==wd&&M.minFilter!==so||M.type===Ai&&e.has("OES_texture_float_linear")===!1||a===!1&&M.type===ql&&e.has("OES_texture_half_float_linear")===!1)return;(M.anisotropy>1||s.get(M).__currentAnisotropy)&&(t.texParameterf(L,ye.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(M.anisotropy,i.getMaxAnisotropy())),s.get(M).__currentAnisotropy=M.anisotropy)}}function he(L,M){let Q=!1;L.__webglInit===void 0&&(L.__webglInit=!0,M.addEventListener("dispose",B));const ye=M.source;let X=b.get(ye);X===void 0&&(X={},b.set(ye,X));const se=ne(M);if(se!==L.__cacheKey){X[se]===void 0&&(X[se]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,Q=!0),X[se].usedTimes++;const Ae=X[L.__cacheKey];Ae!==void 0&&(X[L.__cacheKey].usedTimes--,Ae.usedTimes===0&&k(M)),L.__cacheKey=se,L.__webglTexture=X[se].texture}return Q}function _e(L,M,Q){let ye=t.TEXTURE_2D;(M.isDataArrayTexture||M.isCompressedArrayTexture)&&(ye=t.TEXTURE_2D_ARRAY),M.isData3DTexture&&(ye=t.TEXTURE_3D);const X=he(L,M),se=M.source;n.bindTexture(ye,L.__webglTexture,t.TEXTURE0+Q);const Ae=s.get(se);if(se.version!==Ae.__version||X===!0){n.activeTexture(t.TEXTURE0+Q);const Ce=Ut.getPrimaries(Ut.workingColorSpace),Fe=M.colorSpace===_s?null:Ut.getPrimaries(M.colorSpace),Ze=M.colorSpace===_s||Ce===Fe?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,M.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,M.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,M.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ze);const ft=R(M)&&S(M.image)===!1;let Be=v(M.image,ft,!1,u);Be=De(M,Be);const pt=S(Be)||a,st=r.convert(M.format,M.colorSpace);let Ye=r.convert(M.type),nt=I(M.internalFormat,st,Ye,M.colorSpace,M.isVideoTexture);Z(ye,M,pt);let je;const yt=M.mipmaps,ee=a&&M.isVideoTexture!==!0&&nt!==kN,Qe=Ae.__version===void 0||X===!0,Ve=x(M,Be,pt);if(M.isDepthTexture)nt=t.DEPTH_COMPONENT,a?M.type===Ai?nt=t.DEPTH_COMPONENT32F:M.type===ar?nt=t.DEPTH_COMPONENT24:M.type===Kr?nt=t.DEPTH24_STENCIL8:nt=t.DEPTH_COMPONENT16:M.type===Ai&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),M.format===jr&&nt===t.DEPTH_COMPONENT&&M.type!==$E&&M.type!==ar&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),M.type=ar,Ye=r.convert(M.type)),M.format===_a&&nt===t.DEPTH_COMPONENT&&(nt=t.DEPTH_STENCIL,M.type!==Kr&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),M.type=Kr,Ye=r.convert(M.type))),Qe&&(ee?n.texStorage2D(t.TEXTURE_2D,1,nt,Be.width,Be.height):n.texImage2D(t.TEXTURE_2D,0,nt,Be.width,Be.height,0,st,Ye,null));else if(M.isDataTexture)if(yt.length>0&&pt){ee&&Qe&&n.texStorage2D(t.TEXTURE_2D,Ve,nt,yt[0].width,yt[0].height);for(let Oe=0,He=yt.length;Oe>=1,He>>=1}}else if(yt.length>0&&pt){ee&&Qe&&n.texStorage2D(t.TEXTURE_2D,Ve,nt,yt[0].width,yt[0].height);for(let Oe=0,He=yt.length;Oe0&&Qe++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Qe,je,Be[0].width,Be[0].height));for(let Oe=0;Oe<6;Oe++)if(ft){yt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,Be[Oe].width,Be[Oe].height,Ye,nt,Be[Oe].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,je,Be[Oe].width,Be[Oe].height,0,Ye,nt,Be[Oe].data);for(let He=0;He>se),Be=Math.max(1,M.height>>se);X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY?n.texImage3D(X,se,Fe,ft,Be,M.depth,0,Ae,Ce,null):n.texImage2D(X,se,Fe,ft,Be,0,Ae,Ce,null)}n.bindFramebuffer(t.FRAMEBUFFER,L),Re(M)?f.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,ye,X,s.get(Q).__webglTexture,0,ie(M)):(X===t.TEXTURE_2D||X>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&X<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,ye,X,s.get(Q).__webglTexture,se),n.bindFramebuffer(t.FRAMEBUFFER,null)}function N(L,M,Q){if(t.bindRenderbuffer(t.RENDERBUFFER,L),M.depthBuffer&&!M.stencilBuffer){let ye=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Q||Re(M)){const X=M.depthTexture;X&&X.isDepthTexture&&(X.type===Ai?ye=t.DEPTH_COMPONENT32F:X.type===ar&&(ye=t.DEPTH_COMPONENT24));const se=ie(M);Re(M)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,se,ye,M.width,M.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,se,ye,M.width,M.height)}else t.renderbufferStorage(t.RENDERBUFFER,ye,M.width,M.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,L)}else if(M.depthBuffer&&M.stencilBuffer){const ye=ie(M);Q&&Re(M)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ye,t.DEPTH24_STENCIL8,M.width,M.height):Re(M)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ye,t.DEPTH24_STENCIL8,M.width,M.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,M.width,M.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,L)}else{const ye=M.isWebGLMultipleRenderTargets===!0?M.texture:[M.texture];for(let X=0;X0){Q.__webglFramebuffer[Ce]=[];for(let Fe=0;Fe0){Q.__webglFramebuffer=[];for(let Ce=0;Ce0&&Re(L)===!1){const Ce=se?M:[M];Q.__webglMultisampledFramebuffer=t.createFramebuffer(),Q.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Q.__webglMultisampledFramebuffer);for(let Fe=0;Fe0)for(let Fe=0;Fe0)for(let Fe=0;Fe0&&Re(L)===!1){const M=L.isWebGLMultipleRenderTargets?L.texture:[L.texture],Q=L.width,ye=L.height;let X=t.COLOR_BUFFER_BIT;const se=[],Ae=L.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Ce=s.get(L),Fe=L.isWebGLMultipleRenderTargets===!0;if(Fe)for(let Ze=0;Ze0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&M.__useRenderToTexture!==!1}function ge(L){const M=o.render.frame;_.get(L)!==M&&(_.set(L,M),L.update())}function De(L,M){const Q=L.colorSpace,ye=L.format,X=L.type;return L.isCompressedTexture===!0||L.isVideoTexture===!0||L.format===nb||Q!==wn&&Q!==_s&&(Ut.getTransfer(Q)===Kt?a===!1?e.has("EXT_sRGB")===!0&&ye===ps?(L.format=nb,L.minFilter=zn,L.generateMipmaps=!1):M=FN.sRGBToLinear(M):(ye!==ps||X!==_r)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Q)),M}this.allocateTextureUnit=W,this.resetTextureUnits=U,this.setTexture2D=le,this.setTexture2DArray=me,this.setTexture3D=Se,this.setTextureCube=de,this.rebindTextures=ce,this.setupRenderTarget=re,this.updateRenderTargetMipmap=xe,this.updateMultisampleRenderTarget=Ne,this.setupDepthRenderbuffer=Y,this.setupFrameBufferTexture=Ue,this.useMultisampledRTT=Re}function xIt(t,e,n){const s=n.isWebGL2;function i(r,o=_s){let a;const c=Ut.getTransfer(o);if(r===_r)return t.UNSIGNED_BYTE;if(r===AN)return t.UNSIGNED_SHORT_4_4_4_4;if(r===NN)return t.UNSIGNED_SHORT_5_5_5_1;if(r===$Rt)return t.BYTE;if(r===YRt)return t.SHORT;if(r===$E)return t.UNSIGNED_SHORT;if(r===RN)return t.INT;if(r===ar)return t.UNSIGNED_INT;if(r===Ai)return t.FLOAT;if(r===ql)return s?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===WRt)return t.ALPHA;if(r===ps)return t.RGBA;if(r===KRt)return t.LUMINANCE;if(r===jRt)return t.LUMINANCE_ALPHA;if(r===jr)return t.DEPTH_COMPONENT;if(r===_a)return t.DEPTH_STENCIL;if(r===nb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===QRt)return t.RED;if(r===ON)return t.RED_INTEGER;if(r===XRt)return t.RG;if(r===MN)return t.RG_INTEGER;if(r===IN)return t.RGBA_INTEGER;if(r===Cm||r===wm||r===Rm||r===Am)if(c===Kt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Cm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===wm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Rm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Am)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Cm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===wm)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Rm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Am)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===L1||r===P1||r===U1||r===F1)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===L1)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===P1)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===U1)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===F1)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===kN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===B1||r===G1)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===B1)return c===Kt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===G1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===V1||r===z1||r===H1||r===q1||r===$1||r===Y1||r===W1||r===K1||r===j1||r===Q1||r===X1||r===Z1||r===J1||r===eC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===V1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===z1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===H1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===q1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===$1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===Y1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===W1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===K1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===j1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===Q1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===X1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===Z1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===J1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===eC)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Nm||r===tC||r===nC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Nm)return c===Kt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===tC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===nC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===ZRt||r===sC||r===iC||r===rC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Nm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===sC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===iC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===rC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===Kr?s?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[r]!==void 0?t[r]:null}return{convert:i}}class CIt extends Un{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Hr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const wIt={type:"move"};class Jm{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Hr,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 Hr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new oe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new oe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Hr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new oe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new oe),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 n=this._hand;if(n)for(const s of e.hand.values())this._getHandJoint(n,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,n,s){let i=null,r=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const g of e.hand.values()){const b=n.getJointPose(g,s),E=this._getHandJoint(d,g);b!==null&&(E.matrix.fromArray(b.transform.matrix),E.matrix.decompose(E.position,E.rotation,E.scale),E.matrixWorldNeedsUpdate=!0,E.jointRadius=b.radius),E.visible=b!==null}const u=d.joints["index-finger-tip"],h=d.joints["thumb-tip"],f=u.position.distanceTo(h.position),m=.02,_=.005;d.inputState.pinching&&f>m+_?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&f<=m-_&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(r=n.getPose(e.gripSpace,s),r!==null&&(c.matrix.fromArray(r.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,r.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(r.linearVelocity)):c.hasLinearVelocity=!1,r.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(r.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,s),i===null&&r!==null&&(i=r),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(wIt)))}return a!==null&&(a.visible=i!==null),c!==null&&(c.visible=r!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const s=new Hr;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[n.jointName]=s,e.add(s)}return e.joints[n.jointName]}}class RIt extends Ua{constructor(e,n){super();const s=this;let i=null,r=1,o=null,a="local-floor",c=1,d=null,u=null,h=null,f=null,m=null,_=null;const g=n.getContextAttributes();let b=null,E=null;const y=[],v=[],S=new At;let R=null;const C=new Un;C.layers.enable(1),C.viewport=new $t;const A=new Un;A.layers.enable(2),A.viewport=new $t;const I=[C,A],x=new CIt;x.layers.enable(1),x.layers.enable(2);let O=null,B=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getGripSpace()},this.getHand=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getHandSpace()};function H(de){const Ee=v.indexOf(de.inputSource);if(Ee===-1)return;const Me=y[Ee];Me!==void 0&&(Me.update(de.inputSource,de.frame,d||o),Me.dispatchEvent({type:de.type,data:de.inputSource}))}function te(){i.removeEventListener("select",H),i.removeEventListener("selectstart",H),i.removeEventListener("selectend",H),i.removeEventListener("squeeze",H),i.removeEventListener("squeezestart",H),i.removeEventListener("squeezeend",H),i.removeEventListener("end",te),i.removeEventListener("inputsourceschange",k);for(let de=0;de=0&&(v[ke]=null,y[ke].disconnect(Me))}for(let Ee=0;Ee=v.length){v.push(Me),ke=he;break}else if(v[he]===null){v[he]=Me,ke=he;break}if(ke===-1)break}const Z=y[ke];Z&&Z.connect(Me)}}const $=new oe,q=new oe;function U(de,Ee,Me){$.setFromMatrixPosition(Ee.matrixWorld),q.setFromMatrixPosition(Me.matrixWorld);const ke=$.distanceTo(q),Z=Ee.projectionMatrix.elements,he=Me.projectionMatrix.elements,_e=Z[14]/(Z[10]-1),we=Z[14]/(Z[10]+1),Ue=(Z[9]+1)/Z[5],N=(Z[9]-1)/Z[5],z=(Z[8]-1)/Z[0],Y=(he[8]+1)/he[0],ce=_e*z,re=_e*Y,xe=ke/(-z+Y),Ne=xe*-z;Ee.matrixWorld.decompose(de.position,de.quaternion,de.scale),de.translateX(Ne),de.translateZ(xe),de.matrixWorld.compose(de.position,de.quaternion,de.scale),de.matrixWorldInverse.copy(de.matrixWorld).invert();const ie=_e+xe,Re=we+xe,ge=ce-Ne,De=re+(ke-Ne),L=Ue*we/Re*ie,M=N*we/Re*ie;de.projectionMatrix.makePerspective(ge,De,L,M,ie,Re),de.projectionMatrixInverse.copy(de.projectionMatrix).invert()}function W(de,Ee){Ee===null?de.matrixWorld.copy(de.matrix):de.matrixWorld.multiplyMatrices(Ee.matrixWorld,de.matrix),de.matrixWorldInverse.copy(de.matrixWorld).invert()}this.updateCamera=function(de){if(i===null)return;x.near=A.near=C.near=de.near,x.far=A.far=C.far=de.far,(O!==x.near||B!==x.far)&&(i.updateRenderState({depthNear:x.near,depthFar:x.far}),O=x.near,B=x.far);const Ee=de.parent,Me=x.cameras;W(x,Ee);for(let ke=0;ke0&&(b.alphaTest.value=E.alphaTest);const y=e.get(E).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=E.reflectivity,b.ior.value=E.ior,b.refractionRatio.value=E.refractionRatio),E.lightMap){b.lightMap.value=E.lightMap;const v=t._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=E.lightMapIntensity*v,n(E.lightMap,b.lightMapTransform)}E.aoMap&&(b.aoMap.value=E.aoMap,b.aoMapIntensity.value=E.aoMapIntensity,n(E.aoMap,b.aoMapTransform))}function o(b,E){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,E.map&&(b.map.value=E.map,n(E.map,b.mapTransform))}function a(b,E){b.dashSize.value=E.dashSize,b.totalSize.value=E.dashSize+E.gapSize,b.scale.value=E.scale}function c(b,E,y,v){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,b.size.value=E.size*y,b.scale.value=v*.5,E.map&&(b.map.value=E.map,n(E.map,b.uvTransform)),E.alphaMap&&(b.alphaMap.value=E.alphaMap,n(E.alphaMap,b.alphaMapTransform)),E.alphaTest>0&&(b.alphaTest.value=E.alphaTest)}function d(b,E){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,b.rotation.value=E.rotation,E.map&&(b.map.value=E.map,n(E.map,b.mapTransform)),E.alphaMap&&(b.alphaMap.value=E.alphaMap,n(E.alphaMap,b.alphaMapTransform)),E.alphaTest>0&&(b.alphaTest.value=E.alphaTest)}function u(b,E){b.specular.value.copy(E.specular),b.shininess.value=Math.max(E.shininess,1e-4)}function h(b,E){E.gradientMap&&(b.gradientMap.value=E.gradientMap)}function f(b,E){b.metalness.value=E.metalness,E.metalnessMap&&(b.metalnessMap.value=E.metalnessMap,n(E.metalnessMap,b.metalnessMapTransform)),b.roughness.value=E.roughness,E.roughnessMap&&(b.roughnessMap.value=E.roughnessMap,n(E.roughnessMap,b.roughnessMapTransform)),e.get(E).envMap&&(b.envMapIntensity.value=E.envMapIntensity)}function m(b,E,y){b.ior.value=E.ior,E.sheen>0&&(b.sheenColor.value.copy(E.sheenColor).multiplyScalar(E.sheen),b.sheenRoughness.value=E.sheenRoughness,E.sheenColorMap&&(b.sheenColorMap.value=E.sheenColorMap,n(E.sheenColorMap,b.sheenColorMapTransform)),E.sheenRoughnessMap&&(b.sheenRoughnessMap.value=E.sheenRoughnessMap,n(E.sheenRoughnessMap,b.sheenRoughnessMapTransform))),E.clearcoat>0&&(b.clearcoat.value=E.clearcoat,b.clearcoatRoughness.value=E.clearcoatRoughness,E.clearcoatMap&&(b.clearcoatMap.value=E.clearcoatMap,n(E.clearcoatMap,b.clearcoatMapTransform)),E.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=E.clearcoatRoughnessMap,n(E.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),E.clearcoatNormalMap&&(b.clearcoatNormalMap.value=E.clearcoatNormalMap,n(E.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(E.clearcoatNormalScale),E.side===$n&&b.clearcoatNormalScale.value.negate())),E.iridescence>0&&(b.iridescence.value=E.iridescence,b.iridescenceIOR.value=E.iridescenceIOR,b.iridescenceThicknessMinimum.value=E.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=E.iridescenceThicknessRange[1],E.iridescenceMap&&(b.iridescenceMap.value=E.iridescenceMap,n(E.iridescenceMap,b.iridescenceMapTransform)),E.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=E.iridescenceThicknessMap,n(E.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),E.transmission>0&&(b.transmission.value=E.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),E.transmissionMap&&(b.transmissionMap.value=E.transmissionMap,n(E.transmissionMap,b.transmissionMapTransform)),b.thickness.value=E.thickness,E.thicknessMap&&(b.thicknessMap.value=E.thicknessMap,n(E.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=E.attenuationDistance,b.attenuationColor.value.copy(E.attenuationColor)),E.anisotropy>0&&(b.anisotropyVector.value.set(E.anisotropy*Math.cos(E.anisotropyRotation),E.anisotropy*Math.sin(E.anisotropyRotation)),E.anisotropyMap&&(b.anisotropyMap.value=E.anisotropyMap,n(E.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=E.specularIntensity,b.specularColor.value.copy(E.specularColor),E.specularColorMap&&(b.specularColorMap.value=E.specularColorMap,n(E.specularColorMap,b.specularColorMapTransform)),E.specularIntensityMap&&(b.specularIntensityMap.value=E.specularIntensityMap,n(E.specularIntensityMap,b.specularIntensityMapTransform))}function _(b,E){E.matcap&&(b.matcap.value=E.matcap)}function g(b,E){const y=e.get(E).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:i}}function NIt(t,e,n,s){let i={},r={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(y,v){const S=v.program;s.uniformBlockBinding(y,S)}function d(y,v){let S=i[y.id];S===void 0&&(_(y),S=u(y),i[y.id]=S,y.addEventListener("dispose",b));const R=v.program;s.updateUBOMapping(y,R);const C=e.render.frame;r[y.id]!==C&&(f(y),r[y.id]=C)}function u(y){const v=h();y.__bindingPointIndex=v;const S=t.createBuffer(),R=y.__size,C=y.usage;return t.bindBuffer(t.UNIFORM_BUFFER,S),t.bufferData(t.UNIFORM_BUFFER,R,C),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y0){C=S%R;const H=R-C;C!==0&&H-O.boundary<0&&(S+=R-C,x.__offset=S)}S+=O.storage}return C=S%R,C>0&&(S+=R-C),y.__size=S,y.__cache={},this}function g(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),t.deleteBuffer(i[v.id]),delete i[v.id],delete r[v.id]}function E(){for(const y in i)t.deleteBuffer(i[y]);o=[],i={},r={}}return{bind:c,update:d,dispose:E}}class tO{constructor(e={}){const{canvas:n=wAt(),context:s=null,depth:i=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;s!==null?f=s.getContextAttributes().alpha:f=o;const m=new Uint32Array(4),_=new Int32Array(4);let g=null,b=null;const E=[],y=[];this.domElement=n,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=tn,this._useLegacyLights=!1,this.toneMapping=pr,this.toneMappingExposure=1;const v=this;let S=!1,R=0,C=0,A=null,I=-1,x=null;const O=new $t,B=new $t;let H=null;const te=new _t(0);let k=0,$=n.width,q=n.height,U=1,W=null,ne=null;const le=new $t(0,0,$,q),me=new $t(0,0,$,q);let Se=!1;const de=new jE;let Ee=!1,Me=!1,ke=null;const Z=new xt,he=new At,_e=new oe,we={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ue(){return A===null?U:1}let N=s;function z(F,ue){for(let be=0;be{function Xe(){if(ve.forEach(function(it){Ne.get(it).currentProgram.isReady()&&ve.delete(it)}),ve.size===0){fe(F);return}setTimeout(Xe,10)}Y.get("KHR_parallel_shader_compile")!==null?Xe():setTimeout(Xe,10)})};let Nt=null;function sn(F){Nt&&Nt(F)}function En(){yn.stop()}function Gt(){yn.start()}const yn=new KN;yn.setAnimationLoop(sn),typeof self<"u"&&yn.setContext(self),this.setAnimationLoop=function(F){Nt=F,je.setAnimationLoop(F),F===null?yn.stop():yn.start()},je.addEventListener("sessionstart",En),je.addEventListener("sessionend",Gt),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(v,F,ue,A),b=se.get(F,y.length),b.init(),y.push(b),Z.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),de.setFromProjectionMatrix(Z),Me=this.localClippingEnabled,Ee=Ae.init(this.clippingPlanes,Me),g=X.get(F,E.length),g.init(),E.push(g),rs(F,ue,0,v.sortObjects),g.finish(),v.sortObjects===!0&&g.sort(W,ne),this.info.render.frame++,Ee===!0&&Ae.beginShadows();const be=b.state.shadowsArray;if(Ce.render(be,F,ue),Ee===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset(),Fe.render(g,F),b.setupLights(v._useLegacyLights),ue.isArrayCamera){const ve=ue.cameras;for(let fe=0,Xe=ve.length;fe0?b=y[y.length-1]:b=null,E.pop(),E.length>0?g=E[E.length-1]:g=null};function rs(F,ue,be,ve){if(F.visible===!1)return;if(F.layers.test(ue.layers)){if(F.isGroup)be=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ue);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||de.intersectsSprite(F)){ve&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Z);const it=M.update(F),at=F.material;at.visible&&g.push(F,it,at,be,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||de.intersectsObject(F))){const it=M.update(F),at=F.material;if(ve&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(it.boundingSphere===null&&it.computeBoundingSphere(),_e.copy(it.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Z)),Array.isArray(at)){const ut=it.groups;for(let Et=0,ht=ut.length;Et0&&lp(fe,Xe,ue,be),ve&&re.viewport(O.copy(ve)),fe.length>0&&uo(fe,ue,be),Xe.length>0&&uo(Xe,ue,be),it.length>0&&uo(it,ue,be),re.buffers.depth.setTest(!0),re.buffers.depth.setMask(!0),re.buffers.color.setMask(!0),re.setPolygonOffset(!1)}function lp(F,ue,be,ve){if((be.isScene===!0?be.overrideMaterial:null)!==null)return;const Xe=ce.isWebGL2;ke===null&&(ke=new io(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")?ql:_r,minFilter:so,samples:Xe?4:0})),v.getDrawingBufferSize(he),Xe?ke.setSize(he.x,he.y):ke.setSize(lu(he.x),lu(he.y));const it=v.getRenderTarget();v.setRenderTarget(ke),v.getClearColor(te),k=v.getClearAlpha(),k<1&&v.setClearColor(16777215,.5),v.clear();const at=v.toneMapping;v.toneMapping=pr,uo(F,be,ve),ie.updateMultisampleRenderTarget(ke),ie.updateRenderTargetMipmap(ke);let ut=!1;for(let Et=0,ht=ue.length;Et0),mt=!!be.morphAttributes.position,Zt=!!be.morphAttributes.normal,kn=!!be.morphAttributes.color;let rn=pr;ve.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(rn=v.toneMapping);const ws=be.morphAttributes.position||be.morphAttributes.normal||be.morphAttributes.color,Wt=ws!==void 0?ws.length:0,vt=Ne.get(ve),Ha=b.state.lights;if(Ee===!0&&(Me===!0||F!==x)){const Gn=F===x&&ve.id===I;Ae.setState(ve,F,Gn)}let Qt=!1;ve.version===vt.__version?(vt.needsLights&&vt.lightsStateVersion!==Ha.state.version||vt.outputColorSpace!==at||fe.isBatchedMesh&&vt.batching===!1||!fe.isBatchedMesh&&vt.batching===!0||fe.isInstancedMesh&&vt.instancing===!1||!fe.isInstancedMesh&&vt.instancing===!0||fe.isSkinnedMesh&&vt.skinning===!1||!fe.isSkinnedMesh&&vt.skinning===!0||fe.isInstancedMesh&&vt.instancingColor===!0&&fe.instanceColor===null||fe.isInstancedMesh&&vt.instancingColor===!1&&fe.instanceColor!==null||vt.envMap!==ut||ve.fog===!0&&vt.fog!==Xe||vt.numClippingPlanes!==void 0&&(vt.numClippingPlanes!==Ae.numPlanes||vt.numIntersection!==Ae.numIntersection)||vt.vertexAlphas!==Et||vt.vertexTangents!==ht||vt.morphTargets!==mt||vt.morphNormals!==Zt||vt.morphColors!==kn||vt.toneMapping!==rn||ce.isWebGL2===!0&&vt.morphTargetsCount!==Wt)&&(Qt=!0):(Qt=!0,vt.__version=ve.version);let fi=vt.currentProgram;Qt===!0&&(fi=po(ve,ue,fe));let pc=!1,vr=!1,qa=!1;const fn=fi.getUniforms(),mi=vt.uniforms;if(re.useProgram(fi.program)&&(pc=!0,vr=!0,qa=!0),ve.id!==I&&(I=ve.id,vr=!0),pc||x!==F){fn.setValue(N,"projectionMatrix",F.projectionMatrix),fn.setValue(N,"viewMatrix",F.matrixWorldInverse);const Gn=fn.map.cameraPosition;Gn!==void 0&&Gn.setValue(N,_e.setFromMatrixPosition(F.matrixWorld)),ce.logarithmicDepthBuffer&&fn.setValue(N,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(ve.isMeshPhongMaterial||ve.isMeshToonMaterial||ve.isMeshLambertMaterial||ve.isMeshBasicMaterial||ve.isMeshStandardMaterial||ve.isShaderMaterial)&&fn.setValue(N,"isOrthographic",F.isOrthographicCamera===!0),x!==F&&(x=F,vr=!0,qa=!0)}if(fe.isSkinnedMesh){fn.setOptional(N,fe,"bindMatrix"),fn.setOptional(N,fe,"bindMatrixInverse");const Gn=fe.skeleton;Gn&&(ce.floatVertexTextures?(Gn.boneTexture===null&&Gn.computeBoneTexture(),fn.setValue(N,"boneTexture",Gn.boneTexture,ie)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}fe.isBatchedMesh&&(fn.setOptional(N,fe,"batchingTexture"),fn.setValue(N,"batchingTexture",fe._matricesTexture,ie));const $a=be.morphAttributes;if(($a.position!==void 0||$a.normal!==void 0||$a.color!==void 0&&ce.isWebGL2===!0)&&Ze.update(fe,be,fi),(vr||vt.receiveShadow!==fe.receiveShadow)&&(vt.receiveShadow=fe.receiveShadow,fn.setValue(N,"receiveShadow",fe.receiveShadow)),ve.isMeshGouraudMaterial&&ve.envMap!==null&&(mi.envMap.value=ut,mi.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),vr&&(fn.setValue(N,"toneMappingExposure",v.toneMappingExposure),vt.needsLights&&dp(mi,qa),Xe&&ve.fog===!0&&ye.refreshFogUniforms(mi,Xe),ye.refreshMaterialUniforms(mi,ve,U,q,ke),Rd.upload(N,dc(vt),mi,ie)),ve.isShaderMaterial&&ve.uniformsNeedUpdate===!0&&(Rd.upload(N,dc(vt),mi,ie),ve.uniformsNeedUpdate=!1),ve.isSpriteMaterial&&fn.setValue(N,"center",fe.center),fn.setValue(N,"modelViewMatrix",fe.modelViewMatrix),fn.setValue(N,"normalMatrix",fe.normalMatrix),fn.setValue(N,"modelMatrix",fe.matrixWorld),ve.isShaderMaterial||ve.isRawShaderMaterial){const Gn=ve.uniformsGroups;for(let Ya=0,pp=Gn.length;Ya0&&ie.useMultisampledRTT(F)===!1?fe=Ne.get(F).__webglMultisampledFramebuffer:Array.isArray(ht)?fe=ht[be]:fe=ht,O.copy(F.viewport),B.copy(F.scissor),H=F.scissorTest}else O.copy(le).multiplyScalar(U).floor(),B.copy(me).multiplyScalar(U).floor(),H=Se;if(re.bindFramebuffer(N.FRAMEBUFFER,fe)&&ce.drawBuffers&&ve&&re.drawBuffers(F,fe),re.viewport(O),re.scissor(B),re.setScissorTest(H),Xe){const ut=Ne.get(F.texture);N.framebufferTexture2D(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,N.TEXTURE_CUBE_MAP_POSITIVE_X+ue,ut.__webglTexture,be)}else if(it){const ut=Ne.get(F.texture),Et=ue||0;N.framebufferTextureLayer(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,ut.__webglTexture,be||0,Et)}I=-1},this.readRenderTargetPixels=function(F,ue,be,ve,fe,Xe,it){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let at=Ne.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&it!==void 0&&(at=at[it]),at){re.bindFramebuffer(N.FRAMEBUFFER,at);try{const ut=F.texture,Et=ut.format,ht=ut.type;if(Et!==ps&&pt.convert(Et)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const mt=ht===ql&&(Y.has("EXT_color_buffer_half_float")||ce.isWebGL2&&Y.has("EXT_color_buffer_float"));if(ht!==_r&&pt.convert(ht)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ht===Ai&&(ce.isWebGL2||Y.has("OES_texture_float")||Y.has("WEBGL_color_buffer_float")))&&!mt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ue>=0&&ue<=F.width-ve&&be>=0&&be<=F.height-fe&&N.readPixels(ue,be,ve,fe,pt.convert(Et),pt.convert(ht),Xe)}finally{const ut=A!==null?Ne.get(A).__webglFramebuffer:null;re.bindFramebuffer(N.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,ue,be=0){const ve=Math.pow(2,-be),fe=Math.floor(ue.image.width*ve),Xe=Math.floor(ue.image.height*ve);ie.setTexture2D(ue,0),N.copyTexSubImage2D(N.TEXTURE_2D,be,0,0,F.x,F.y,fe,Xe),re.unbindTexture()},this.copyTextureToTexture=function(F,ue,be,ve=0){const fe=ue.image.width,Xe=ue.image.height,it=pt.convert(be.format),at=pt.convert(be.type);ie.setTexture2D(be,0),N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,be.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,be.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,be.unpackAlignment),ue.isDataTexture?N.texSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,fe,Xe,it,at,ue.image.data):ue.isCompressedTexture?N.compressedTexSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,ue.mipmaps[0].width,ue.mipmaps[0].height,it,ue.mipmaps[0].data):N.texSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,it,at,ue.image),ve===0&&be.generateMipmaps&&N.generateMipmap(N.TEXTURE_2D),re.unbindTexture()},this.copyTextureToTexture3D=function(F,ue,be,ve,fe=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Xe=F.max.x-F.min.x+1,it=F.max.y-F.min.y+1,at=F.max.z-F.min.z+1,ut=pt.convert(ve.format),Et=pt.convert(ve.type);let ht;if(ve.isData3DTexture)ie.setTexture3D(ve,0),ht=N.TEXTURE_3D;else if(ve.isDataArrayTexture)ie.setTexture2DArray(ve,0),ht=N.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,ve.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ve.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,ve.unpackAlignment);const mt=N.getParameter(N.UNPACK_ROW_LENGTH),Zt=N.getParameter(N.UNPACK_IMAGE_HEIGHT),kn=N.getParameter(N.UNPACK_SKIP_PIXELS),rn=N.getParameter(N.UNPACK_SKIP_ROWS),ws=N.getParameter(N.UNPACK_SKIP_IMAGES),Wt=be.isCompressedTexture?be.mipmaps[0]:be.image;N.pixelStorei(N.UNPACK_ROW_LENGTH,Wt.width),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,Wt.height),N.pixelStorei(N.UNPACK_SKIP_PIXELS,F.min.x),N.pixelStorei(N.UNPACK_SKIP_ROWS,F.min.y),N.pixelStorei(N.UNPACK_SKIP_IMAGES,F.min.z),be.isDataTexture||be.isData3DTexture?N.texSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Et,Wt.data):be.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),N.compressedTexSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Wt.data)):N.texSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Et,Wt),N.pixelStorei(N.UNPACK_ROW_LENGTH,mt),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,Zt),N.pixelStorei(N.UNPACK_SKIP_PIXELS,kn),N.pixelStorei(N.UNPACK_SKIP_ROWS,rn),N.pixelStorei(N.UNPACK_SKIP_IMAGES,ws),fe===0&&ve.generateMipmaps&&N.generateMipmap(ht),re.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?ie.setTextureCube(F,0):F.isData3DTexture?ie.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?ie.setTexture2DArray(F,0):ie.setTexture2D(F,0),re.unbindTexture()},this.resetState=function(){R=0,C=0,A=null,re.reset(),st.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ni}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===WE?"display-p3":"srgb",n.unpackColorSpace=Ut.workingColorSpace===tp?"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===tn?Qr:LN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Qr?tn:wn}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 OIt extends tO{}OIt.prototype.isWebGL1Renderer=!0;class MIt 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,n){return super.copy(e,n),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 n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class IIt{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=tb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Bs()}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,n){this.updateRanges.push({start:e,count:n})}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,n,s){e*=this.stride,s*=n.stride;for(let i=0,r=this.stride;ic)continue;f.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(f);Ie.far||n.push({distance:I,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const E=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=E,S=y-1;vc)continue;f.applyMatrix4(this.matrixWorld);const C=e.ray.origin.distanceTo(f);Ce.far||n.push({distance:C,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,s=Object.keys(n);if(s.length>0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;ri.far)return;r.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class ny extends Gs{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new _t(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 _t(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=YE,this.normalScale=new At(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 Bi extends ny{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 At(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Nn(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new _t(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 _t(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new _t(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 uw extends Gs{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new _t(16777215),this.specular=new _t(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new _t(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=YE,this.normalScale=new At(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=qE,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 cd(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function zIt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function HIt(t){function e(i,r){return t[i]-t[r]}const n=t.length,s=new Array(n);for(let i=0;i!==n;++i)s[i]=i;return s.sort(e),s}function pw(t,e,n){const s=t.length,i=new t.constructor(s);for(let r=0,o=0;o!==s;++r){const a=n[r]*e;for(let c=0;c!==e;++c)i[o++]=t[a+c]}return i}function rO(t,e,n,s){let i=1,r=t[0];for(;r!==void 0&&r[s]===void 0;)r=t[i++];if(r===void 0)return;let o=r[s];if(o!==void 0)if(Array.isArray(o))do o=r[s],o!==void 0&&(e.push(r.time),n.push.apply(n,o)),r=t[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[s],o!==void 0&&(e.push(r.time),o.toArray(n,n.length)),r=t[i++];while(r!==void 0);else do o=r[s],o!==void 0&&(e.push(r.time),n.push(o)),r=t[i++];while(r!==void 0)}class rc{constructor(e,n,s,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new n.constructor(s),this.sampleValues=n,this.valueSize=s,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let s=this._cachedIndex,i=n[s],r=n[s-1];e:{t:{let o;n:{s:if(!(e=r)){const a=n[1];e=r)break t}o=s,s=0;break n}break e}for(;s>>1;en;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=s.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const s=this.times,i=this.values,r=s.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;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(i!==void 0&&zIt(i))for(let a=0,c=i.length;a!==c;++a){const d=i[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(),n=this.values.slice(),s=this.getValueSize(),i=this.getInterpolation()===Om,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*s,c=o*s,d=0;d!==s;++d)n[c+d]=n[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*s)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),s=this.constructor,i=new s(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}hi.prototype.TimeBufferType=Float32Array;hi.prototype.ValueBufferType=Float32Array;hi.prototype.DefaultInterpolation=ha;class Ba extends hi{}Ba.prototype.ValueTypeName="bool";Ba.prototype.ValueBufferType=Array;Ba.prototype.DefaultInterpolation=$l;Ba.prototype.InterpolantFactoryMethodLinear=void 0;Ba.prototype.InterpolantFactoryMethodSmooth=void 0;class oO extends hi{}oO.prototype.ValueTypeName="color";class ga extends hi{}ga.prototype.ValueTypeName="number";class WIt extends rc{constructor(e,n,s,i){super(e,n,s,i)}interpolate_(e,n,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(s-n)/(i-n);let d=e*a;for(let u=d+a;d!==u;d+=4)yr.slerpFlat(r,0,o,d-a,o,d,c);return r}}class oo extends hi{InterpolantFactoryMethodLinear(e){return new WIt(this.times,this.values,this.getValueSize(),e)}}oo.prototype.ValueTypeName="quaternion";oo.prototype.DefaultInterpolation=ha;oo.prototype.InterpolantFactoryMethodSmooth=void 0;class Ga extends hi{}Ga.prototype.ValueTypeName="string";Ga.prototype.ValueBufferType=Array;Ga.prototype.DefaultInterpolation=$l;Ga.prototype.InterpolantFactoryMethodLinear=void 0;Ga.prototype.InterpolantFactoryMethodSmooth=void 0;class ba extends hi{}ba.prototype.ValueTypeName="vector";class KIt{constructor(e,n=-1,s,i=JRt){this.name=e,this.tracks=s,this.duration=n,this.blendMode=i,this.uuid=Bs(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],s=e.tracks,i=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)n.push(QIt(s[o]).scale(i));const r=new this(e.name,e.duration,n,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const n=[],s=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=s.length;r!==o;++r)n.push(hi.toJSON(s[r]));return i}static CreateFromMorphTargetSequence(e,n,s,i){const r=n.length,o=[];for(let a=0;a1){const h=u[1];let f=i[h];f||(i[h]=f=[]),f.push(d)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],n,s));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const s=function(h,f,m,_,g){if(m.length!==0){const b=[],E=[];rO(m,b,E,_),b.length!==0&&g.push(new h(f,b,E))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let h=0;h{n&&n(r),this.manager.itemEnd(e)},0),r;if(Ti[e]!==void 0){Ti[e].push({onLoad:n,onProgress:s,onError:i});return}Ti[e]=[],Ti[e].push({onLoad:n,onProgress:s,onError:i});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=Ti[e],h=d.body.getReader(),f=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),m=f?parseInt(f):0,_=m!==0;let g=0;const b=new ReadableStream({start(E){y();function y(){h.read().then(({done:v,value:S})=>{if(v)E.close();else{g+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:_,loaded:g,total:m});for(let C=0,A=u.length;C{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 h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,m=new TextDecoder(f);return d.arrayBuffer().then(_=>m.decode(_))}}}).then(d=>{Ea.add(e,d);const u=Ti[e];delete Ti[e];for(let h=0,f=u.length;h{const u=Ti[e];if(u===void 0)throw this.manager.itemError(e),d;delete Ti[e];for(let h=0,f=u.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class ekt extends Va{constructor(e){super(e)}load(e,n,s,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ea.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.manager.itemEnd(e)},0),o;const a=Yl("img");function c(){u(),Ea.add(e,this),n&&n(this),r.manager.itemEnd(e)}function d(h){u(),i&&i(h),r.manager.itemError(e),r.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),r.manager.itemStart(e),a.src=e,a}}class lO extends Va{constructor(e){super(e)}load(e,n,s,i){const r=new Cn,o=new ekt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,n!==void 0&&n(r)},s,i),r}}class rp extends Jt{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new _t(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const sg=new xt,_w=new oe,hw=new oe;class sy{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new At(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new jE,this._frameExtents=new At(1,1),this._viewportCount=1,this._viewports=[new $t(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,s=this.matrix;_w.setFromMatrixPosition(e.matrixWorld),n.position.copy(_w),hw.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(hw),n.updateMatrixWorld(),sg.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(sg),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply(sg)}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 tkt extends sy{constructor(){super(new Un(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,s=fa*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||n.far;(s!==n.fov||i!==n.aspect||r!==n.far)&&(n.fov=s,n.aspect=i,n.far=r,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class nkt extends rp{constructor(e,n,s=0,i=Math.PI/3,r=0,o=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=s,this.angle=i,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new tkt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),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 fw=new xt,rl=new oe,ig=new oe;class skt extends sy{constructor(){super(new Un(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new At(4,2),this._viewportCount=6,this._viewports=[new $t(2,1,1,1),new $t(0,1,1,1),new $t(3,1,1,1),new $t(1,1,1,1),new $t(3,0,1,1),new $t(1,0,1,1)],this._cubeDirections=[new oe(1,0,0),new oe(-1,0,0),new oe(0,0,1),new oe(0,0,-1),new oe(0,1,0),new oe(0,-1,0)],this._cubeUps=[new oe(0,1,0),new oe(0,1,0),new oe(0,1,0),new oe(0,1,0),new oe(0,0,1),new oe(0,0,-1)]}updateMatrices(e,n=0){const s=this.camera,i=this.matrix,r=e.distance||s.far;r!==s.far&&(s.far=r,s.updateProjectionMatrix()),rl.setFromMatrixPosition(e.matrixWorld),s.position.copy(rl),ig.copy(s.position),ig.add(this._cubeDirections[n]),s.up.copy(this._cubeUps[n]),s.lookAt(ig),s.updateMatrixWorld(),i.makeTranslation(-rl.x,-rl.y,-rl.z),fw.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix(fw)}}class ikt extends rp{constructor(e,n,s=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=i,this.shadow=new skt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class rkt extends sy{constructor(){super(new XE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class cO extends rp{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new rkt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class okt extends rp{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class wl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let s=0,i=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,n,s,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ea.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.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(r.options,{colorSpaceConversion:"none"}))}).then(function(c){Ea.add(e,c),n&&n(c),r.manager.itemEnd(e)}).catch(function(c){i&&i(c),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const iy="\\[\\]\\.:\\/",lkt=new RegExp("["+iy+"]","g"),ry="[^"+iy+"]",ckt="[^"+iy.replace("\\.","")+"]",dkt=/((?:WC+[\/:])*)/.source.replace("WC",ry),ukt=/(WCOD+)?/.source.replace("WCOD",ckt),pkt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ry),_kt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ry),hkt=new RegExp("^"+dkt+ukt+pkt+_kt+"$"),fkt=["material","materials","bones","map"];class mkt{constructor(e,n,s){const i=s||Bt.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const s=this._targetGroup.nCachedObjects_,i=this._bindings[s];i!==void 0&&i.getValue(e,n)}setValue(e,n){const s=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=s.length;i!==r;++i)s[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,s=e.length;n!==s;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,s=e.length;n!==s;++n)e[n].unbind()}}class Bt{constructor(e,n,s){this.path=n,this.parsedPath=s||Bt.parseTrackName(n),this.node=Bt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,s){return e&&e.isAnimationObjectGroup?new Bt.Composite(e,n,s):new Bt(e,n,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(lkt,"")}static parseTrackName(e){const n=hkt.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const s={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=s.nodeName&&s.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=s.nodeName.substring(i+1);fkt.indexOf(r)!==-1&&(s.nodeName=s.nodeName.substring(0,i),s.objectName=r)}if(s.propertyName===null||s.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return s}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const s=e.skeleton.getBoneByName(n);if(s!==void 0)return s}if(e.children){const s=function(r){for(let o=0;o=2.0 are supported."));return}const d=new jkt(r,{path:n||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[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(s,i)}parseAsync(e,n){const s=this;return new Promise(function(i,r){s.parse(e,n,i,r)})}}function bkt(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const Rt={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 Ekt{constructor(e){this.parser=e,this.name=Rt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,n=this.parser.json.nodes||[];for(let s=0,i=n.length;s=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return n.loadTextureImage(e,r.source,o)}}class Ikt{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const n=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=i.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(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class kkt{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const n=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=i.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(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class Dkt{constructor(e){this.name=Rt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const n=this.parser.json,s=n.bufferViews[e];if(s.extensions&&s.extensions[this.name]){const i=s.extensions[this.name],r=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const c=i.byteOffset||0,d=i.byteLength||0,u=i.count,h=i.byteStride,f=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,h,f,i.mode,i.filter).then(function(m){return m.buffer}):o.ready.then(function(){const m=new ArrayBuffer(u*h);return o.decodeGltfBuffer(new Uint8Array(m),u,h,f,i.mode,i.filter),m})})}else return null}}class Lkt{constructor(e){this.name=Rt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const n=this.parser.json,s=n.nodes[e];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const i=n.meshes[s.mesh];for(const d of i.primitives)if(d.mode!==cs.TRIANGLES&&d.mode!==cs.TRIANGLE_STRIP&&d.mode!==cs.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(),h=u.isGroup?u.children:[u],f=d[0].count,m=[];for(const _ of h){const g=new xt,b=new oe,E=new yr,y=new oe(1,1,1),v=new FIt(_.geometry,_.material,f);for(let S=0;S0||t.search(/^data\:image\/jpeg/)===0?"image/jpeg":t.search(/\.webp($|\?)/i)>0||t.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const Kkt=new xt;class jkt{constructor(e={},n={}){this.json=e,this.extensions={},this.plugins={},this.options=n,this.cache=new bkt,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,i=!1,r=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,r=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||i&&r<98?this.textureLoader=new lO(this.options.manager):this.textureLoader=new akt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new aO(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,n){const s=this,i=this.json,r=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][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:s,userData:{}};return Or(r,a,i),ir(a,i),Promise.all(s._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(n)}_markDefs(){const e=this.json.nodes||[],n=this.json.skins||[],s=this.json.meshes||[];for(let i=0,r=n.length;i{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())r(u,a.children[d])};return r(s,i),i.name+="_instance_"+e.uses[n]++,i}_invokeOne(e){const n=Object.values(this.plugins);n.push(this);for(let s=0;s=2&&b.setY(x,C[A*c+1]),c>=3&&b.setZ(x,C[A*c+2]),c>=4&&b.setW(x,C[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const n=this.json,s=this.options,r=n.textures[e].source,o=n.images[r];let a=this.textureLoader;if(o.uri){const c=s.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,n,s){const i=this,r=this.json,o=r.textures[e],a=r.images[n],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(n,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 f=(r.samplers||{})[o.sampler]||{};return u.magFilter=bw[f.magFilter]||zn,u.minFilter=bw[f.minFilter]||so,u.wrapS=Ew[f.wrapS]||pa,u.wrapT=Ew[f.wrapT]||pa,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,n){const s=this,i=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=i.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(h){d=!0;const f=new Blob([h],{type:o.mimeType});return c=a.createObjectURL(f),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(h){return new Promise(function(f,m){let _=f;n.isImageBitmapLoader===!0&&(_=function(g){const b=new Cn(g);b.needsUpdate=!0,f(b)}),n.load(wl.resolveURL(h,r.path),_,void 0,m)})}).then(function(h){return d===!0&&a.revokeObjectURL(c),h.userData.mimeType=o.mimeType||Wkt(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),h});return this.sourceCache[e]=u,u}assignTexture(e,n,s,i){const r=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),r.extensions[Rt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[Rt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=r.associations.get(o);o=r.extensions[Rt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,c)}}return i!==void 0&&(o.colorSpace=i),e[n]=o,o})}assignFinalMaterial(e){const n=e.geometry;let s=e.material;const i=n.attributes.tangent===void 0,r=n.attributes.color!==void 0,o=n.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new iO,Gs.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 sO,Gs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,this.cache.add(a,c)),s=c}if(i||r||o){let a="ClonedMaterial:"+s.uuid+":";i&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=s.clone(),r&&(c.vertexColors=!0),o&&(c.flatShading=!0),i&&(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 ny}loadMaterial(e){const n=this,s=this.json,i=this.extensions,r=s.materials[e];let o;const a={},c=r.extensions||{},d=[];if(c[Rt.KHR_MATERIALS_UNLIT]){const h=i[Rt.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),d.push(h.extendParams(a,r,n))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new _t(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],wn),a.opacity=f[3]}h.baseColorTexture!==void 0&&d.push(n.assignTexture(a,"map",h.baseColorTexture,tn)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(d.push(n.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),d.push(n.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=Js);const u=r.alphaMode||og.OPAQUE;if(u===og.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===og.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==lr&&(d.push(n.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new At(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==lr&&(d.push(n.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==lr){const h=r.emissiveFactor;a.emissive=new _t().setRGB(h[0],h[1],h[2],wn)}return r.emissiveTexture!==void 0&&o!==lr&&d.push(n.assignTexture(a,"emissiveMap",r.emissiveTexture,tn)),Promise.all(d).then(function(){const h=new o(a);return r.name&&(h.name=r.name),ir(h,r),n.associations.set(h,{materials:e}),r.extensions&&Or(i,h,r),h})}createUniqueName(e){const n=Bt.sanitizeNodeName(e||"");return n in this.nodeNamesUsed?n+"_"+ ++this.nodeNamesUsed[n]:(this.nodeNamesUsed[n]=0,n)}loadGeometries(e){const n=this,s=this.extensions,i=this.primitiveCache;function r(a){return s[Rt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,n).then(function(c){return yw(c,a,n)})}const o=[];for(let a=0,c=e.length;a0&&$kt(E,r),E.name=n.createUniqueName(r.name||"mesh_"+e),ir(E,r),b.extensions&&Or(i,E,b),n.assignFinalMaterial(E),h.push(E)}for(let m=0,_=h.length;m<_;m++)n.associations.set(h[m],{meshes:e,primitives:m});if(h.length===1)return r.extensions&&Or(i,h[0],r),h[0];const f=new Hr;r.extensions&&Or(i,f,r),n.associations.set(f,{meshes:e});for(let m=0,_=h.length;m<_;m++)f.add(h[m]);return f})}loadCamera(e){let n;const s=this.json.cameras[e],i=s[s.type];if(!i){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?n=new Un(CAt.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):s.type==="orthographic"&&(n=new XE(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),s.name&&(n.name=this.createUniqueName(s.name)),ir(n,s),Promise.resolve(n)}loadSkin(e){const n=this.json.skins[e],s=[];for(let i=0,r=n.joints.length;i1?u=new Hr:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let h=0,f=d.length;h{const h=new Map;for(const[f,m]of i.associations)(f instanceof Gs||f instanceof Cn)&&h.set(f,m);return u.traverse(f=>{const m=i.associations.get(f);m!=null&&h.set(f,m)}),h};return i.associations=d(r),r})}_createAnimationTracks(e,n,s,i,r){const o=[],a=e.name?e.name:e.uuid,c=[];ji[r.path]===ji.weights?e.traverse(function(f){f.morphTargetInfluences&&c.push(f.name?f.name:f.uuid)}):c.push(a);let d;switch(ji[r.path]){case ji.weights:d=ga;break;case ji.rotation:d=oo;break;case ji.position:case ji.scale:d=ba;break;default:switch(s.itemSize){case 1:d=ga;break;case 2:case 3:default:d=ba;break}break}const u=i.interpolation!==void 0?zkt[i.interpolation]:ha,h=this._getArrayFromAccessor(s);for(let f=0,m=c.length;f{ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,qe.emit("stop_webcam_video_stream"),Le(()=>{ze.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),qe.on("video_stream_image",t=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},Zkt=["src"],Jkt=["src"],eDt={class:"controls"},tDt=l("i",{"data-feather":"video"},null,-1),nDt=[tDt],sDt=l("i",{"data-feather":"video"},null,-1),iDt=[sDt],rDt={key:2};function oDt(t,e,n,s,i,r){return T(),w("div",{class:"floating-frame bg-white",style:Ht({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(T(),w("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,Zkt)):G("",!0),i.isVideoActive&&i.imageDataUrl==null?(T(),w("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,Jkt)):G("",!0),l("div",eDt,[i.isVideoActive?G("",!0):(T(),w("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)=>r.startVideoStream&&r.startVideoStream(...o))},nDt)),i.isVideoActive?(T(),w("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)=>r.stopVideoStream&&r.stopVideoStream(...o))},iDt)):G("",!0),i.isVideoActive?(T(),w("span",rDt,"FPS: "+K(i.frameRate),1)):G("",!0)])],36)}const aDt=ot(Xkt,[["render",oDt]]);const lDt={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(){qe.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Le(()=>{ze.replace()})},stopAudioStream(){qe.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Le(()=>{ze.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),qe.on("update_spectrogram",t=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},cDt=["src"],dDt={class:"controls"},uDt=l("i",{"data-feather":"mic"},null,-1),pDt=[uDt],_Dt=l("i",{"data-feather":"mic"},null,-1),hDt=[_Dt];function fDt(t,e,n,s,i,r){return T(),w("div",{class:"floating-frame bg-white",style:Ht({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(T(),w("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,cDt)):G("",!0),l("div",dDt,[i.isAudioActive?G("",!0):(T(),w("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)=>r.startAudioStream&&r.startAudioStream(...o))},pDt)),i.isAudioActive?(T(),w("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)=>r.stopAudioStream&&r.stopAudioStream(...o))},hDt)):G("",!0)])],36)}const mDt=ot(lDt,[["render",fDt]]);const gDt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:aDt,AudioFrame:mDt},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(t=>setTimeout(t,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Le(()=>{ze.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 MIt,this.camera=new Un(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new tO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const t=new hr,e=new uw({color:65280});this.cube=new Fn(t,e),this.scene.add(this.cube);const n=new okt(4210752),s=new cO(16777215,.5);s.position.set(0,1,0),this.scene.add(n),this.scene.add(s),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:t,config:e}=this.$store.state;this.activePersonality=t[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(t){new gkt().load(t,n=>{this.scene.remove(this.cube),this.cube=n.scene,this.scene.add(this.cube)})},showBoxWithAvatar(t){this.cube&&this.scene.remove(this.cube);const e=new hr,n=new lO().load(t),s=new lr({map:n});this.cube=new Fn(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const t=new hr,e=new uw({color:65280});this.cube=new Fn(t,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)}}},bDt={ref:"webglContainer"},EDt={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"},yDt={key:0,class:"text-center"},vDt={key:1,class:"text-center"},SDt={class:"floating-frame2"},TDt=["innerHTML"];function xDt(t,e,n,s,i,r){const o=tt("VideoFrame"),a=tt("AudioFrame");return T(),w(Pe,null,[l("div",bDt,null,512),l("div",EDt,[!i.activePersonality||!i.activePersonality.scene_path?(T(),w("div",yDt," Personality does not have a 3d avatar. ")):G("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(T(),w("div",vDt," Personality does not have an avatar. ")):G("",!0),l("div",SDt,[l("div",{innerHTML:t.htmlContent},null,8,TDt)])]),V(o,{ref:"video_frame"},null,512),V(a,{ref:"audio_frame"},null,512)],64)}const CDt=ot(gDt,[["render",xDt]]);let dd;const wDt=new Uint8Array(16);function RDt(){if(!dd&&(dd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!dd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dd(wDt)}const vn=[];for(let t=0;t<256;++t)vn.push((t+256).toString(16).slice(1));function ADt(t,e=0){return vn[t[e+0]]+vn[t[e+1]]+vn[t[e+2]]+vn[t[e+3]]+"-"+vn[t[e+4]]+vn[t[e+5]]+"-"+vn[t[e+6]]+vn[t[e+7]]+"-"+vn[t[e+8]]+vn[t[e+9]]+"-"+vn[t[e+10]]+vn[t[e+11]]+vn[t[e+12]]+vn[t[e+13]]+vn[t[e+14]]+vn[t[e+15]]}const NDt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vw={randomUUID:NDt};function Mi(t,e,n){if(vw.randomUUID&&!e&&!t)return vw.randomUUID();t=t||{};const s=t.random||(t.rng||RDt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=s[i];return e}return ADt(s)}class Xr{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,n){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function bIt(t,e,n){let s=new jE;const i=new At,r=new At,o=new $t,a=new hIt({depthPacking:JRt}),c=new fIt,d={},u=n.maxTextureSize,h={[Li]:$n,[$n]:Li,[Js]:Js},f=new ro({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new At},radius:{value:4}},vertexShader:mIt,fragmentShader:gIt}),m=f.clone();m.defines.HORIZONTAL_PASS=1;const _=new _i;_.setAttribute("position",new Bn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new Fn(_,f),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=xN;let E=this.type;this.render=function(R,C,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||R.length===0)return;const I=t.getRenderTarget(),x=t.getActiveCubeFace(),O=t.getActiveMipmapLevel(),B=t.state;B.setBlending(ur),B.buffers.color.setClear(1,1,1,1),B.buffers.depth.setTest(!0),B.setScissorTest(!1);const H=E!==Ci&&this.type===Ci,te=E===Ci&&this.type!==Ci;for(let k=0,$=R.length;k<$;k++){const q=R[k],U=q.shadow;if(U===void 0){console.warn("THREE.WebGLShadowMap:",q,"has no shadow.");continue}if(U.autoUpdate===!1&&U.needsUpdate===!1)continue;i.copy(U.mapSize);const W=U.getFrameExtents();if(i.multiply(W),r.copy(U.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(r.x=Math.floor(u/W.x),i.x=r.x*W.x,U.mapSize.x=r.x),i.y>u&&(r.y=Math.floor(u/W.y),i.y=r.y*W.y,U.mapSize.y=r.y)),U.map===null||H===!0||te===!0){const le=this.type!==Ci?{minFilter:gn,magFilter:gn}:{};U.map!==null&&U.map.dispose(),U.map=new io(i.x,i.y,le),U.map.texture.name=q.name+".shadowMap",U.camera.updateProjectionMatrix()}t.setRenderTarget(U.map),t.clear();const ne=U.getViewportCount();for(let le=0;le0||C.map&&C.alphaTest>0){const B=x.uuid,H=C.uuid;let te=d[B];te===void 0&&(te={},d[B]=te);let k=te[H];k===void 0&&(k=x.clone(),te[H]=k),x=k}if(x.visible=C.visible,x.wireframe=C.wireframe,I===Ci?x.side=C.shadowSide!==null?C.shadowSide:C.side:x.side=C.shadowSide!==null?C.shadowSide:h[C.side],x.alphaMap=C.alphaMap,x.alphaTest=C.alphaTest,x.map=C.map,x.clipShadows=C.clipShadows,x.clippingPlanes=C.clippingPlanes,x.clipIntersection=C.clipIntersection,x.displacementMap=C.displacementMap,x.displacementScale=C.displacementScale,x.displacementBias=C.displacementBias,x.wireframeLinewidth=C.wireframeLinewidth,x.linewidth=C.linewidth,A.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const B=t.properties.get(x);B.light=A}return x}function S(R,C,A,I,x){if(R.visible===!1)return;if(R.layers.test(C.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&x===Ci)&&(!R.frustumCulled||s.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const H=e.update(R),te=R.material;if(Array.isArray(te)){const k=H.groups;for(let $=0,q=k.length;$=1):le.indexOf("OpenGL ES")!==-1&&(ne=parseFloat(/^OpenGL ES (\d)/.exec(le)[1]),W=ne>=2);let me=null,Se={};const de=t.getParameter(t.SCISSOR_BOX),Ee=t.getParameter(t.VIEWPORT),Me=new $t().fromArray(de),ke=new $t().fromArray(Ee);function Z(ee,Qe,Ve,Oe){const He=new Uint8Array(4),lt=t.createTexture();t.bindTexture(ee,lt),t.texParameteri(ee,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(ee,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Nt=0;Nt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),_=new WeakMap;let g;const b=new WeakMap;let E=!1;try{E=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function y(L,M){return E?new OffscreenCanvas(L,M):Yl("canvas")}function v(L,M,Q,ye){let X=1;if((L.width>ye||L.height>ye)&&(X=ye/Math.max(L.width,L.height)),X<1||M===!0)if(typeof HTMLImageElement<"u"&&L instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&L instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&L instanceof ImageBitmap){const se=M?lu:Math.floor,Ae=se(X*L.width),Ce=se(X*L.height);g===void 0&&(g=y(Ae,Ce));const Fe=Q?y(Ae,Ce):g;return Fe.width=Ae,Fe.height=Ce,Fe.getContext("2d").drawImage(L,0,0,Ae,Ce),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+L.width+"x"+L.height+") to ("+Ae+"x"+Ce+")."),Fe}else return"data"in L&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+L.width+"x"+L.height+")."),L;return L}function S(L){return sb(L.width)&&sb(L.height)}function R(L){return a?!1:L.wrapS!==us||L.wrapT!==us||L.minFilter!==gn&&L.minFilter!==zn}function C(L,M){return L.generateMipmaps&&M&&L.minFilter!==gn&&L.minFilter!==zn}function A(L){t.generateMipmap(L)}function I(L,M,Q,ye,X=!1){if(a===!1)return M;if(L!==null){if(t[L]!==void 0)return t[L];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+L+"'")}let se=M;if(M===t.RED&&(Q===t.FLOAT&&(se=t.R32F),Q===t.HALF_FLOAT&&(se=t.R16F),Q===t.UNSIGNED_BYTE&&(se=t.R8)),M===t.RED_INTEGER&&(Q===t.UNSIGNED_BYTE&&(se=t.R8UI),Q===t.UNSIGNED_SHORT&&(se=t.R16UI),Q===t.UNSIGNED_INT&&(se=t.R32UI),Q===t.BYTE&&(se=t.R8I),Q===t.SHORT&&(se=t.R16I),Q===t.INT&&(se=t.R32I)),M===t.RG&&(Q===t.FLOAT&&(se=t.RG32F),Q===t.HALF_FLOAT&&(se=t.RG16F),Q===t.UNSIGNED_BYTE&&(se=t.RG8)),M===t.RGBA){const Ae=X?iu:Ut.getTransfer(ye);Q===t.FLOAT&&(se=t.RGBA32F),Q===t.HALF_FLOAT&&(se=t.RGBA16F),Q===t.UNSIGNED_BYTE&&(se=Ae===Kt?t.SRGB8_ALPHA8:t.RGBA8),Q===t.UNSIGNED_SHORT_4_4_4_4&&(se=t.RGBA4),Q===t.UNSIGNED_SHORT_5_5_5_1&&(se=t.RGB5_A1)}return(se===t.R16F||se===t.R32F||se===t.RG16F||se===t.RG32F||se===t.RGBA16F||se===t.RGBA32F)&&e.get("EXT_color_buffer_float"),se}function x(L,M,Q){return C(L,Q)===!0||L.isFramebufferTexture&&L.minFilter!==gn&&L.minFilter!==zn?Math.log2(Math.max(M.width,M.height))+1:L.mipmaps!==void 0&&L.mipmaps.length>0?L.mipmaps.length:L.isCompressedTexture&&Array.isArray(L.image)?M.mipmaps.length:1}function O(L){return L===gn||L===Jg||L===wd?t.NEAREST:t.LINEAR}function B(L){const M=L.target;M.removeEventListener("dispose",B),te(M),M.isVideoTexture&&_.delete(M)}function H(L){const M=L.target;M.removeEventListener("dispose",H),$(M)}function te(L){const M=s.get(L);if(M.__webglInit===void 0)return;const Q=L.source,ye=b.get(Q);if(ye){const X=ye[M.__cacheKey];X.usedTimes--,X.usedTimes===0&&k(L),Object.keys(ye).length===0&&b.delete(Q)}s.remove(L)}function k(L){const M=s.get(L);t.deleteTexture(M.__webglTexture);const Q=L.source,ye=b.get(Q);delete ye[M.__cacheKey],o.memory.textures--}function $(L){const M=L.texture,Q=s.get(L),ye=s.get(M);if(ye.__webglTexture!==void 0&&(t.deleteTexture(ye.__webglTexture),o.memory.textures--),L.depthTexture&&L.depthTexture.dispose(),L.isWebGLCubeRenderTarget)for(let X=0;X<6;X++){if(Array.isArray(Q.__webglFramebuffer[X]))for(let se=0;se=c&&console.warn("THREE.WebGLTextures: Trying to use "+L+" texture units while this GPU supports only "+c),q+=1,L}function ne(L){const M=[];return M.push(L.wrapS),M.push(L.wrapT),M.push(L.wrapR||0),M.push(L.magFilter),M.push(L.minFilter),M.push(L.anisotropy),M.push(L.internalFormat),M.push(L.format),M.push(L.type),M.push(L.generateMipmaps),M.push(L.premultiplyAlpha),M.push(L.flipY),M.push(L.unpackAlignment),M.push(L.colorSpace),M.join()}function le(L,M){const Q=s.get(L);if(L.isVideoTexture&&ge(L),L.isRenderTargetTexture===!1&&L.version>0&&Q.__version!==L.version){const ye=L.image;if(ye===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(ye.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(Q,L,M);return}}n.bindTexture(t.TEXTURE_2D,Q.__webglTexture,t.TEXTURE0+M)}function me(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){_e(Q,L,M);return}n.bindTexture(t.TEXTURE_2D_ARRAY,Q.__webglTexture,t.TEXTURE0+M)}function Se(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){_e(Q,L,M);return}n.bindTexture(t.TEXTURE_3D,Q.__webglTexture,t.TEXTURE0+M)}function de(L,M){const Q=s.get(L);if(L.version>0&&Q.__version!==L.version){we(Q,L,M);return}n.bindTexture(t.TEXTURE_CUBE_MAP,Q.__webglTexture,t.TEXTURE0+M)}const Ee={[pa]:t.REPEAT,[us]:t.CLAMP_TO_EDGE,[su]:t.MIRRORED_REPEAT},Me={[gn]:t.NEAREST,[Jg]:t.NEAREST_MIPMAP_NEAREST,[wd]:t.NEAREST_MIPMAP_LINEAR,[zn]:t.LINEAR,[wN]:t.LINEAR_MIPMAP_NEAREST,[so]:t.LINEAR_MIPMAP_LINEAR},ke={[tAt]:t.NEVER,[aAt]:t.ALWAYS,[nAt]:t.LESS,[PN]:t.LEQUAL,[sAt]:t.EQUAL,[oAt]:t.GEQUAL,[iAt]:t.GREATER,[rAt]:t.NOTEQUAL};function Z(L,M,Q){if(Q?(t.texParameteri(L,t.TEXTURE_WRAP_S,Ee[M.wrapS]),t.texParameteri(L,t.TEXTURE_WRAP_T,Ee[M.wrapT]),(L===t.TEXTURE_3D||L===t.TEXTURE_2D_ARRAY)&&t.texParameteri(L,t.TEXTURE_WRAP_R,Ee[M.wrapR]),t.texParameteri(L,t.TEXTURE_MAG_FILTER,Me[M.magFilter]),t.texParameteri(L,t.TEXTURE_MIN_FILTER,Me[M.minFilter])):(t.texParameteri(L,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(L,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),(L===t.TEXTURE_3D||L===t.TEXTURE_2D_ARRAY)&&t.texParameteri(L,t.TEXTURE_WRAP_R,t.CLAMP_TO_EDGE),(M.wrapS!==us||M.wrapT!==us)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(L,t.TEXTURE_MAG_FILTER,O(M.magFilter)),t.texParameteri(L,t.TEXTURE_MIN_FILTER,O(M.minFilter)),M.minFilter!==gn&&M.minFilter!==zn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),M.compareFunction&&(t.texParameteri(L,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(L,t.TEXTURE_COMPARE_FUNC,ke[M.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const ye=e.get("EXT_texture_filter_anisotropic");if(M.magFilter===gn||M.minFilter!==wd&&M.minFilter!==so||M.type===Ai&&e.has("OES_texture_float_linear")===!1||a===!1&&M.type===ql&&e.has("OES_texture_half_float_linear")===!1)return;(M.anisotropy>1||s.get(M).__currentAnisotropy)&&(t.texParameterf(L,ye.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(M.anisotropy,i.getMaxAnisotropy())),s.get(M).__currentAnisotropy=M.anisotropy)}}function he(L,M){let Q=!1;L.__webglInit===void 0&&(L.__webglInit=!0,M.addEventListener("dispose",B));const ye=M.source;let X=b.get(ye);X===void 0&&(X={},b.set(ye,X));const se=ne(M);if(se!==L.__cacheKey){X[se]===void 0&&(X[se]={texture:t.createTexture(),usedTimes:0},o.memory.textures++,Q=!0),X[se].usedTimes++;const Ae=X[L.__cacheKey];Ae!==void 0&&(X[L.__cacheKey].usedTimes--,Ae.usedTimes===0&&k(M)),L.__cacheKey=se,L.__webglTexture=X[se].texture}return Q}function _e(L,M,Q){let ye=t.TEXTURE_2D;(M.isDataArrayTexture||M.isCompressedArrayTexture)&&(ye=t.TEXTURE_2D_ARRAY),M.isData3DTexture&&(ye=t.TEXTURE_3D);const X=he(L,M),se=M.source;n.bindTexture(ye,L.__webglTexture,t.TEXTURE0+Q);const Ae=s.get(se);if(se.version!==Ae.__version||X===!0){n.activeTexture(t.TEXTURE0+Q);const Ce=Ut.getPrimaries(Ut.workingColorSpace),Fe=M.colorSpace===_s?null:Ut.getPrimaries(M.colorSpace),Ze=M.colorSpace===_s||Ce===Fe?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,M.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,M.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,M.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ze);const ft=R(M)&&S(M.image)===!1;let Be=v(M.image,ft,!1,u);Be=De(M,Be);const pt=S(Be)||a,st=r.convert(M.format,M.colorSpace);let Ye=r.convert(M.type),nt=I(M.internalFormat,st,Ye,M.colorSpace,M.isVideoTexture);Z(ye,M,pt);let je;const yt=M.mipmaps,ee=a&&M.isVideoTexture!==!0&&nt!==kN,Qe=Ae.__version===void 0||X===!0,Ve=x(M,Be,pt);if(M.isDepthTexture)nt=t.DEPTH_COMPONENT,a?M.type===Ai?nt=t.DEPTH_COMPONENT32F:M.type===ar?nt=t.DEPTH_COMPONENT24:M.type===Kr?nt=t.DEPTH24_STENCIL8:nt=t.DEPTH_COMPONENT16:M.type===Ai&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),M.format===jr&&nt===t.DEPTH_COMPONENT&&M.type!==$E&&M.type!==ar&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),M.type=ar,Ye=r.convert(M.type)),M.format===_a&&nt===t.DEPTH_COMPONENT&&(nt=t.DEPTH_STENCIL,M.type!==Kr&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),M.type=Kr,Ye=r.convert(M.type))),Qe&&(ee?n.texStorage2D(t.TEXTURE_2D,1,nt,Be.width,Be.height):n.texImage2D(t.TEXTURE_2D,0,nt,Be.width,Be.height,0,st,Ye,null));else if(M.isDataTexture)if(yt.length>0&&pt){ee&&Qe&&n.texStorage2D(t.TEXTURE_2D,Ve,nt,yt[0].width,yt[0].height);for(let Oe=0,He=yt.length;Oe>=1,He>>=1}}else if(yt.length>0&&pt){ee&&Qe&&n.texStorage2D(t.TEXTURE_2D,Ve,nt,yt[0].width,yt[0].height);for(let Oe=0,He=yt.length;Oe0&&Qe++,n.texStorage2D(t.TEXTURE_CUBE_MAP,Qe,je,Be[0].width,Be[0].height));for(let Oe=0;Oe<6;Oe++)if(ft){yt?n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,0,0,Be[Oe].width,Be[Oe].height,Ye,nt,Be[Oe].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+Oe,0,je,Be[Oe].width,Be[Oe].height,0,Ye,nt,Be[Oe].data);for(let He=0;He>se),Be=Math.max(1,M.height>>se);X===t.TEXTURE_3D||X===t.TEXTURE_2D_ARRAY?n.texImage3D(X,se,Fe,ft,Be,M.depth,0,Ae,Ce,null):n.texImage2D(X,se,Fe,ft,Be,0,Ae,Ce,null)}n.bindFramebuffer(t.FRAMEBUFFER,L),Re(M)?f.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,ye,X,s.get(Q).__webglTexture,0,ie(M)):(X===t.TEXTURE_2D||X>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&X<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,ye,X,s.get(Q).__webglTexture,se),n.bindFramebuffer(t.FRAMEBUFFER,null)}function N(L,M,Q){if(t.bindRenderbuffer(t.RENDERBUFFER,L),M.depthBuffer&&!M.stencilBuffer){let ye=a===!0?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16;if(Q||Re(M)){const X=M.depthTexture;X&&X.isDepthTexture&&(X.type===Ai?ye=t.DEPTH_COMPONENT32F:X.type===ar&&(ye=t.DEPTH_COMPONENT24));const se=ie(M);Re(M)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,se,ye,M.width,M.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,se,ye,M.width,M.height)}else t.renderbufferStorage(t.RENDERBUFFER,ye,M.width,M.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,L)}else if(M.depthBuffer&&M.stencilBuffer){const ye=ie(M);Q&&Re(M)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,ye,t.DEPTH24_STENCIL8,M.width,M.height):Re(M)?f.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,ye,t.DEPTH24_STENCIL8,M.width,M.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,M.width,M.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,L)}else{const ye=M.isWebGLMultipleRenderTargets===!0?M.texture:[M.texture];for(let X=0;X0){Q.__webglFramebuffer[Ce]=[];for(let Fe=0;Fe0){Q.__webglFramebuffer=[];for(let Ce=0;Ce0&&Re(L)===!1){const Ce=se?M:[M];Q.__webglMultisampledFramebuffer=t.createFramebuffer(),Q.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,Q.__webglMultisampledFramebuffer);for(let Fe=0;Fe0)for(let Fe=0;Fe0)for(let Fe=0;Fe0&&Re(L)===!1){const M=L.isWebGLMultipleRenderTargets?L.texture:[L.texture],Q=L.width,ye=L.height;let X=t.COLOR_BUFFER_BIT;const se=[],Ae=L.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,Ce=s.get(L),Fe=L.isWebGLMultipleRenderTargets===!0;if(Fe)for(let Ze=0;Ze0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&M.__useRenderToTexture!==!1}function ge(L){const M=o.render.frame;_.get(L)!==M&&(_.set(L,M),L.update())}function De(L,M){const Q=L.colorSpace,ye=L.format,X=L.type;return L.isCompressedTexture===!0||L.isVideoTexture===!0||L.format===nb||Q!==wn&&Q!==_s&&(Ut.getTransfer(Q)===Kt?a===!1?e.has("EXT_sRGB")===!0&&ye===ps?(L.format=nb,L.minFilter=zn,L.generateMipmaps=!1):M=FN.sRGBToLinear(M):(ye!==ps||X!==_r)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Q)),M}this.allocateTextureUnit=W,this.resetTextureUnits=U,this.setTexture2D=le,this.setTexture2DArray=me,this.setTexture3D=Se,this.setTextureCube=de,this.rebindTextures=ce,this.setupRenderTarget=re,this.updateRenderTargetMipmap=xe,this.updateMultisampleRenderTarget=Ne,this.setupDepthRenderbuffer=Y,this.setupFrameBufferTexture=Ue,this.useMultisampledRTT=Re}function vIt(t,e,n){const s=n.isWebGL2;function i(r,o=_s){let a;const c=Ut.getTransfer(o);if(r===_r)return t.UNSIGNED_BYTE;if(r===AN)return t.UNSIGNED_SHORT_4_4_4_4;if(r===NN)return t.UNSIGNED_SHORT_5_5_5_1;if(r===zRt)return t.BYTE;if(r===HRt)return t.SHORT;if(r===$E)return t.UNSIGNED_SHORT;if(r===RN)return t.INT;if(r===ar)return t.UNSIGNED_INT;if(r===Ai)return t.FLOAT;if(r===ql)return s?t.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===qRt)return t.ALPHA;if(r===ps)return t.RGBA;if(r===$Rt)return t.LUMINANCE;if(r===YRt)return t.LUMINANCE_ALPHA;if(r===jr)return t.DEPTH_COMPONENT;if(r===_a)return t.DEPTH_STENCIL;if(r===nb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===WRt)return t.RED;if(r===ON)return t.RED_INTEGER;if(r===KRt)return t.RG;if(r===MN)return t.RG_INTEGER;if(r===IN)return t.RGBA_INTEGER;if(r===Cm||r===wm||r===Rm||r===Am)if(c===Kt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Cm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===wm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===Rm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Am)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Cm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===wm)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===Rm)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Am)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===L1||r===P1||r===U1||r===F1)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===L1)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===P1)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===U1)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===F1)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===kN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===B1||r===G1)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===B1)return c===Kt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===G1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===V1||r===z1||r===H1||r===q1||r===$1||r===Y1||r===W1||r===K1||r===j1||r===Q1||r===X1||r===Z1||r===J1||r===eC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===V1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===z1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===H1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===q1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===$1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===Y1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===W1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===K1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===j1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===Q1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===X1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===Z1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===J1)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===eC)return c===Kt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Nm||r===tC||r===nC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Nm)return c===Kt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===tC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===nC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===jRt||r===sC||r===iC||r===rC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Nm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===sC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===iC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===rC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===Kr?s?t.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):t[r]!==void 0?t[r]:null}return{convert:i}}class SIt extends Un{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Hr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const TIt={type:"move"};class Jm{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Hr,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 Hr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new oe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new oe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Hr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new oe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new oe),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 n=this._hand;if(n)for(const s of e.hand.values())this._getHandJoint(n,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,n,s){let i=null,r=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const g of e.hand.values()){const b=n.getJointPose(g,s),E=this._getHandJoint(d,g);b!==null&&(E.matrix.fromArray(b.transform.matrix),E.matrix.decompose(E.position,E.rotation,E.scale),E.matrixWorldNeedsUpdate=!0,E.jointRadius=b.radius),E.visible=b!==null}const u=d.joints["index-finger-tip"],h=d.joints["thumb-tip"],f=u.position.distanceTo(h.position),m=.02,_=.005;d.inputState.pinching&&f>m+_?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&f<=m-_&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(r=n.getPose(e.gripSpace,s),r!==null&&(c.matrix.fromArray(r.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,r.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(r.linearVelocity)):c.hasLinearVelocity=!1,r.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(r.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(i=n.getPose(e.targetRaySpace,s),i===null&&r!==null&&(i=r),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(TIt)))}return a!==null&&(a.visible=i!==null),c!==null&&(c.visible=r!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const s=new Hr;s.matrixAutoUpdate=!1,s.visible=!1,e.joints[n.jointName]=s,e.add(s)}return e.joints[n.jointName]}}class xIt extends Ua{constructor(e,n){super();const s=this;let i=null,r=1,o=null,a="local-floor",c=1,d=null,u=null,h=null,f=null,m=null,_=null;const g=n.getContextAttributes();let b=null,E=null;const y=[],v=[],S=new At;let R=null;const C=new Un;C.layers.enable(1),C.viewport=new $t;const A=new Un;A.layers.enable(2),A.viewport=new $t;const I=[C,A],x=new SIt;x.layers.enable(1),x.layers.enable(2);let O=null,B=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getTargetRaySpace()},this.getControllerGrip=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getGripSpace()},this.getHand=function(de){let Ee=y[de];return Ee===void 0&&(Ee=new Jm,y[de]=Ee),Ee.getHandSpace()};function H(de){const Ee=v.indexOf(de.inputSource);if(Ee===-1)return;const Me=y[Ee];Me!==void 0&&(Me.update(de.inputSource,de.frame,d||o),Me.dispatchEvent({type:de.type,data:de.inputSource}))}function te(){i.removeEventListener("select",H),i.removeEventListener("selectstart",H),i.removeEventListener("selectend",H),i.removeEventListener("squeeze",H),i.removeEventListener("squeezestart",H),i.removeEventListener("squeezeend",H),i.removeEventListener("end",te),i.removeEventListener("inputsourceschange",k);for(let de=0;de=0&&(v[ke]=null,y[ke].disconnect(Me))}for(let Ee=0;Ee=v.length){v.push(Me),ke=he;break}else if(v[he]===null){v[he]=Me,ke=he;break}if(ke===-1)break}const Z=y[ke];Z&&Z.connect(Me)}}const $=new oe,q=new oe;function U(de,Ee,Me){$.setFromMatrixPosition(Ee.matrixWorld),q.setFromMatrixPosition(Me.matrixWorld);const ke=$.distanceTo(q),Z=Ee.projectionMatrix.elements,he=Me.projectionMatrix.elements,_e=Z[14]/(Z[10]-1),we=Z[14]/(Z[10]+1),Ue=(Z[9]+1)/Z[5],N=(Z[9]-1)/Z[5],z=(Z[8]-1)/Z[0],Y=(he[8]+1)/he[0],ce=_e*z,re=_e*Y,xe=ke/(-z+Y),Ne=xe*-z;Ee.matrixWorld.decompose(de.position,de.quaternion,de.scale),de.translateX(Ne),de.translateZ(xe),de.matrixWorld.compose(de.position,de.quaternion,de.scale),de.matrixWorldInverse.copy(de.matrixWorld).invert();const ie=_e+xe,Re=we+xe,ge=ce-Ne,De=re+(ke-Ne),L=Ue*we/Re*ie,M=N*we/Re*ie;de.projectionMatrix.makePerspective(ge,De,L,M,ie,Re),de.projectionMatrixInverse.copy(de.projectionMatrix).invert()}function W(de,Ee){Ee===null?de.matrixWorld.copy(de.matrix):de.matrixWorld.multiplyMatrices(Ee.matrixWorld,de.matrix),de.matrixWorldInverse.copy(de.matrixWorld).invert()}this.updateCamera=function(de){if(i===null)return;x.near=A.near=C.near=de.near,x.far=A.far=C.far=de.far,(O!==x.near||B!==x.far)&&(i.updateRenderState({depthNear:x.near,depthFar:x.far}),O=x.near,B=x.far);const Ee=de.parent,Me=x.cameras;W(x,Ee);for(let ke=0;ke0&&(b.alphaTest.value=E.alphaTest);const y=e.get(E).envMap;if(y&&(b.envMap.value=y,b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=E.reflectivity,b.ior.value=E.ior,b.refractionRatio.value=E.refractionRatio),E.lightMap){b.lightMap.value=E.lightMap;const v=t._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=E.lightMapIntensity*v,n(E.lightMap,b.lightMapTransform)}E.aoMap&&(b.aoMap.value=E.aoMap,b.aoMapIntensity.value=E.aoMapIntensity,n(E.aoMap,b.aoMapTransform))}function o(b,E){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,E.map&&(b.map.value=E.map,n(E.map,b.mapTransform))}function a(b,E){b.dashSize.value=E.dashSize,b.totalSize.value=E.dashSize+E.gapSize,b.scale.value=E.scale}function c(b,E,y,v){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,b.size.value=E.size*y,b.scale.value=v*.5,E.map&&(b.map.value=E.map,n(E.map,b.uvTransform)),E.alphaMap&&(b.alphaMap.value=E.alphaMap,n(E.alphaMap,b.alphaMapTransform)),E.alphaTest>0&&(b.alphaTest.value=E.alphaTest)}function d(b,E){b.diffuse.value.copy(E.color),b.opacity.value=E.opacity,b.rotation.value=E.rotation,E.map&&(b.map.value=E.map,n(E.map,b.mapTransform)),E.alphaMap&&(b.alphaMap.value=E.alphaMap,n(E.alphaMap,b.alphaMapTransform)),E.alphaTest>0&&(b.alphaTest.value=E.alphaTest)}function u(b,E){b.specular.value.copy(E.specular),b.shininess.value=Math.max(E.shininess,1e-4)}function h(b,E){E.gradientMap&&(b.gradientMap.value=E.gradientMap)}function f(b,E){b.metalness.value=E.metalness,E.metalnessMap&&(b.metalnessMap.value=E.metalnessMap,n(E.metalnessMap,b.metalnessMapTransform)),b.roughness.value=E.roughness,E.roughnessMap&&(b.roughnessMap.value=E.roughnessMap,n(E.roughnessMap,b.roughnessMapTransform)),e.get(E).envMap&&(b.envMapIntensity.value=E.envMapIntensity)}function m(b,E,y){b.ior.value=E.ior,E.sheen>0&&(b.sheenColor.value.copy(E.sheenColor).multiplyScalar(E.sheen),b.sheenRoughness.value=E.sheenRoughness,E.sheenColorMap&&(b.sheenColorMap.value=E.sheenColorMap,n(E.sheenColorMap,b.sheenColorMapTransform)),E.sheenRoughnessMap&&(b.sheenRoughnessMap.value=E.sheenRoughnessMap,n(E.sheenRoughnessMap,b.sheenRoughnessMapTransform))),E.clearcoat>0&&(b.clearcoat.value=E.clearcoat,b.clearcoatRoughness.value=E.clearcoatRoughness,E.clearcoatMap&&(b.clearcoatMap.value=E.clearcoatMap,n(E.clearcoatMap,b.clearcoatMapTransform)),E.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=E.clearcoatRoughnessMap,n(E.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),E.clearcoatNormalMap&&(b.clearcoatNormalMap.value=E.clearcoatNormalMap,n(E.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(E.clearcoatNormalScale),E.side===$n&&b.clearcoatNormalScale.value.negate())),E.iridescence>0&&(b.iridescence.value=E.iridescence,b.iridescenceIOR.value=E.iridescenceIOR,b.iridescenceThicknessMinimum.value=E.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=E.iridescenceThicknessRange[1],E.iridescenceMap&&(b.iridescenceMap.value=E.iridescenceMap,n(E.iridescenceMap,b.iridescenceMapTransform)),E.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=E.iridescenceThicknessMap,n(E.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),E.transmission>0&&(b.transmission.value=E.transmission,b.transmissionSamplerMap.value=y.texture,b.transmissionSamplerSize.value.set(y.width,y.height),E.transmissionMap&&(b.transmissionMap.value=E.transmissionMap,n(E.transmissionMap,b.transmissionMapTransform)),b.thickness.value=E.thickness,E.thicknessMap&&(b.thicknessMap.value=E.thicknessMap,n(E.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=E.attenuationDistance,b.attenuationColor.value.copy(E.attenuationColor)),E.anisotropy>0&&(b.anisotropyVector.value.set(E.anisotropy*Math.cos(E.anisotropyRotation),E.anisotropy*Math.sin(E.anisotropyRotation)),E.anisotropyMap&&(b.anisotropyMap.value=E.anisotropyMap,n(E.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=E.specularIntensity,b.specularColor.value.copy(E.specularColor),E.specularColorMap&&(b.specularColorMap.value=E.specularColorMap,n(E.specularColorMap,b.specularColorMapTransform)),E.specularIntensityMap&&(b.specularIntensityMap.value=E.specularIntensityMap,n(E.specularIntensityMap,b.specularIntensityMapTransform))}function _(b,E){E.matcap&&(b.matcap.value=E.matcap)}function g(b,E){const y=e.get(E).light;b.referencePosition.value.setFromMatrixPosition(y.matrixWorld),b.nearDistance.value=y.shadow.camera.near,b.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:s,refreshMaterialUniforms:i}}function wIt(t,e,n,s){let i={},r={},o=[];const a=n.isWebGL2?t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(y,v){const S=v.program;s.uniformBlockBinding(y,S)}function d(y,v){let S=i[y.id];S===void 0&&(_(y),S=u(y),i[y.id]=S,y.addEventListener("dispose",b));const R=v.program;s.updateUBOMapping(y,R);const C=e.render.frame;r[y.id]!==C&&(f(y),r[y.id]=C)}function u(y){const v=h();y.__bindingPointIndex=v;const S=t.createBuffer(),R=y.__size,C=y.usage;return t.bindBuffer(t.UNIFORM_BUFFER,S),t.bufferData(t.UNIFORM_BUFFER,R,C),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,v,S),S}function h(){for(let y=0;y0){C=S%R;const H=R-C;C!==0&&H-O.boundary<0&&(S+=R-C,x.__offset=S)}S+=O.storage}return C=S%R,C>0&&(S+=R-C),y.__size=S,y.__cache={},this}function g(y){const v={boundary:0,storage:0};return typeof y=="number"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function b(y){const v=y.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),t.deleteBuffer(i[v.id]),delete i[v.id],delete r[v.id]}function E(){for(const y in i)t.deleteBuffer(i[y]);o=[],i={},r={}}return{bind:c,update:d,dispose:E}}class tO{constructor(e={}){const{canvas:n=TAt(),context:s=null,depth:i=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let f;s!==null?f=s.getContextAttributes().alpha:f=o;const m=new Uint32Array(4),_=new Int32Array(4);let g=null,b=null;const E=[],y=[];this.domElement=n,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=tn,this._useLegacyLights=!1,this.toneMapping=pr,this.toneMappingExposure=1;const v=this;let S=!1,R=0,C=0,A=null,I=-1,x=null;const O=new $t,B=new $t;let H=null;const te=new _t(0);let k=0,$=n.width,q=n.height,U=1,W=null,ne=null;const le=new $t(0,0,$,q),me=new $t(0,0,$,q);let Se=!1;const de=new jE;let Ee=!1,Me=!1,ke=null;const Z=new xt,he=new At,_e=new oe,we={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Ue(){return A===null?U:1}let N=s;function z(F,ue){for(let be=0;be{function Xe(){if(ve.forEach(function(it){Ne.get(it).currentProgram.isReady()&&ve.delete(it)}),ve.size===0){fe(F);return}setTimeout(Xe,10)}Y.get("KHR_parallel_shader_compile")!==null?Xe():setTimeout(Xe,10)})};let Nt=null;function sn(F){Nt&&Nt(F)}function En(){yn.stop()}function Gt(){yn.start()}const yn=new KN;yn.setAnimationLoop(sn),typeof self<"u"&&yn.setContext(self),this.setAnimationLoop=function(F){Nt=F,je.setAnimationLoop(F),F===null?yn.stop():yn.start()},je.addEventListener("sessionstart",En),je.addEventListener("sessionend",Gt),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(v,F,ue,A),b=se.get(F,y.length),b.init(),y.push(b),Z.multiplyMatrices(ue.projectionMatrix,ue.matrixWorldInverse),de.setFromProjectionMatrix(Z),Me=this.localClippingEnabled,Ee=Ae.init(this.clippingPlanes,Me),g=X.get(F,E.length),g.init(),E.push(g),rs(F,ue,0,v.sortObjects),g.finish(),v.sortObjects===!0&&g.sort(W,ne),this.info.render.frame++,Ee===!0&&Ae.beginShadows();const be=b.state.shadowsArray;if(Ce.render(be,F,ue),Ee===!0&&Ae.endShadows(),this.info.autoReset===!0&&this.info.reset(),Fe.render(g,F),b.setupLights(v._useLegacyLights),ue.isArrayCamera){const ve=ue.cameras;for(let fe=0,Xe=ve.length;fe0?b=y[y.length-1]:b=null,E.pop(),E.length>0?g=E[E.length-1]:g=null};function rs(F,ue,be,ve){if(F.visible===!1)return;if(F.layers.test(ue.layers)){if(F.isGroup)be=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(ue);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||de.intersectsSprite(F)){ve&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Z);const it=M.update(F),at=F.material;at.visible&&g.push(F,it,at,be,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||de.intersectsObject(F))){const it=M.update(F),at=F.material;if(ve&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(it.boundingSphere===null&&it.computeBoundingSphere(),_e.copy(it.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Z)),Array.isArray(at)){const ut=it.groups;for(let Et=0,ht=ut.length;Et0&&lp(fe,Xe,ue,be),ve&&re.viewport(O.copy(ve)),fe.length>0&&uo(fe,ue,be),Xe.length>0&&uo(Xe,ue,be),it.length>0&&uo(it,ue,be),re.buffers.depth.setTest(!0),re.buffers.depth.setMask(!0),re.buffers.color.setMask(!0),re.setPolygonOffset(!1)}function lp(F,ue,be,ve){if((be.isScene===!0?be.overrideMaterial:null)!==null)return;const Xe=ce.isWebGL2;ke===null&&(ke=new io(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")?ql:_r,minFilter:so,samples:Xe?4:0})),v.getDrawingBufferSize(he),Xe?ke.setSize(he.x,he.y):ke.setSize(lu(he.x),lu(he.y));const it=v.getRenderTarget();v.setRenderTarget(ke),v.getClearColor(te),k=v.getClearAlpha(),k<1&&v.setClearColor(16777215,.5),v.clear();const at=v.toneMapping;v.toneMapping=pr,uo(F,be,ve),ie.updateMultisampleRenderTarget(ke),ie.updateRenderTargetMipmap(ke);let ut=!1;for(let Et=0,ht=ue.length;Et0),mt=!!be.morphAttributes.position,Zt=!!be.morphAttributes.normal,kn=!!be.morphAttributes.color;let rn=pr;ve.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(rn=v.toneMapping);const ws=be.morphAttributes.position||be.morphAttributes.normal||be.morphAttributes.color,Wt=ws!==void 0?ws.length:0,vt=Ne.get(ve),Ha=b.state.lights;if(Ee===!0&&(Me===!0||F!==x)){const Gn=F===x&&ve.id===I;Ae.setState(ve,F,Gn)}let Qt=!1;ve.version===vt.__version?(vt.needsLights&&vt.lightsStateVersion!==Ha.state.version||vt.outputColorSpace!==at||fe.isBatchedMesh&&vt.batching===!1||!fe.isBatchedMesh&&vt.batching===!0||fe.isInstancedMesh&&vt.instancing===!1||!fe.isInstancedMesh&&vt.instancing===!0||fe.isSkinnedMesh&&vt.skinning===!1||!fe.isSkinnedMesh&&vt.skinning===!0||fe.isInstancedMesh&&vt.instancingColor===!0&&fe.instanceColor===null||fe.isInstancedMesh&&vt.instancingColor===!1&&fe.instanceColor!==null||vt.envMap!==ut||ve.fog===!0&&vt.fog!==Xe||vt.numClippingPlanes!==void 0&&(vt.numClippingPlanes!==Ae.numPlanes||vt.numIntersection!==Ae.numIntersection)||vt.vertexAlphas!==Et||vt.vertexTangents!==ht||vt.morphTargets!==mt||vt.morphNormals!==Zt||vt.morphColors!==kn||vt.toneMapping!==rn||ce.isWebGL2===!0&&vt.morphTargetsCount!==Wt)&&(Qt=!0):(Qt=!0,vt.__version=ve.version);let fi=vt.currentProgram;Qt===!0&&(fi=po(ve,ue,fe));let pc=!1,vr=!1,qa=!1;const fn=fi.getUniforms(),mi=vt.uniforms;if(re.useProgram(fi.program)&&(pc=!0,vr=!0,qa=!0),ve.id!==I&&(I=ve.id,vr=!0),pc||x!==F){fn.setValue(N,"projectionMatrix",F.projectionMatrix),fn.setValue(N,"viewMatrix",F.matrixWorldInverse);const Gn=fn.map.cameraPosition;Gn!==void 0&&Gn.setValue(N,_e.setFromMatrixPosition(F.matrixWorld)),ce.logarithmicDepthBuffer&&fn.setValue(N,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(ve.isMeshPhongMaterial||ve.isMeshToonMaterial||ve.isMeshLambertMaterial||ve.isMeshBasicMaterial||ve.isMeshStandardMaterial||ve.isShaderMaterial)&&fn.setValue(N,"isOrthographic",F.isOrthographicCamera===!0),x!==F&&(x=F,vr=!0,qa=!0)}if(fe.isSkinnedMesh){fn.setOptional(N,fe,"bindMatrix"),fn.setOptional(N,fe,"bindMatrixInverse");const Gn=fe.skeleton;Gn&&(ce.floatVertexTextures?(Gn.boneTexture===null&&Gn.computeBoneTexture(),fn.setValue(N,"boneTexture",Gn.boneTexture,ie)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}fe.isBatchedMesh&&(fn.setOptional(N,fe,"batchingTexture"),fn.setValue(N,"batchingTexture",fe._matricesTexture,ie));const $a=be.morphAttributes;if(($a.position!==void 0||$a.normal!==void 0||$a.color!==void 0&&ce.isWebGL2===!0)&&Ze.update(fe,be,fi),(vr||vt.receiveShadow!==fe.receiveShadow)&&(vt.receiveShadow=fe.receiveShadow,fn.setValue(N,"receiveShadow",fe.receiveShadow)),ve.isMeshGouraudMaterial&&ve.envMap!==null&&(mi.envMap.value=ut,mi.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),vr&&(fn.setValue(N,"toneMappingExposure",v.toneMappingExposure),vt.needsLights&&dp(mi,qa),Xe&&ve.fog===!0&&ye.refreshFogUniforms(mi,Xe),ye.refreshMaterialUniforms(mi,ve,U,q,ke),Rd.upload(N,dc(vt),mi,ie)),ve.isShaderMaterial&&ve.uniformsNeedUpdate===!0&&(Rd.upload(N,dc(vt),mi,ie),ve.uniformsNeedUpdate=!1),ve.isSpriteMaterial&&fn.setValue(N,"center",fe.center),fn.setValue(N,"modelViewMatrix",fe.modelViewMatrix),fn.setValue(N,"normalMatrix",fe.normalMatrix),fn.setValue(N,"modelMatrix",fe.matrixWorld),ve.isShaderMaterial||ve.isRawShaderMaterial){const Gn=ve.uniformsGroups;for(let Ya=0,pp=Gn.length;Ya0&&ie.useMultisampledRTT(F)===!1?fe=Ne.get(F).__webglMultisampledFramebuffer:Array.isArray(ht)?fe=ht[be]:fe=ht,O.copy(F.viewport),B.copy(F.scissor),H=F.scissorTest}else O.copy(le).multiplyScalar(U).floor(),B.copy(me).multiplyScalar(U).floor(),H=Se;if(re.bindFramebuffer(N.FRAMEBUFFER,fe)&&ce.drawBuffers&&ve&&re.drawBuffers(F,fe),re.viewport(O),re.scissor(B),re.setScissorTest(H),Xe){const ut=Ne.get(F.texture);N.framebufferTexture2D(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,N.TEXTURE_CUBE_MAP_POSITIVE_X+ue,ut.__webglTexture,be)}else if(it){const ut=Ne.get(F.texture),Et=ue||0;N.framebufferTextureLayer(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,ut.__webglTexture,be||0,Et)}I=-1},this.readRenderTargetPixels=function(F,ue,be,ve,fe,Xe,it){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let at=Ne.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&it!==void 0&&(at=at[it]),at){re.bindFramebuffer(N.FRAMEBUFFER,at);try{const ut=F.texture,Et=ut.format,ht=ut.type;if(Et!==ps&&pt.convert(Et)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const mt=ht===ql&&(Y.has("EXT_color_buffer_half_float")||ce.isWebGL2&&Y.has("EXT_color_buffer_float"));if(ht!==_r&&pt.convert(ht)!==N.getParameter(N.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ht===Ai&&(ce.isWebGL2||Y.has("OES_texture_float")||Y.has("WEBGL_color_buffer_float")))&&!mt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ue>=0&&ue<=F.width-ve&&be>=0&&be<=F.height-fe&&N.readPixels(ue,be,ve,fe,pt.convert(Et),pt.convert(ht),Xe)}finally{const ut=A!==null?Ne.get(A).__webglFramebuffer:null;re.bindFramebuffer(N.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,ue,be=0){const ve=Math.pow(2,-be),fe=Math.floor(ue.image.width*ve),Xe=Math.floor(ue.image.height*ve);ie.setTexture2D(ue,0),N.copyTexSubImage2D(N.TEXTURE_2D,be,0,0,F.x,F.y,fe,Xe),re.unbindTexture()},this.copyTextureToTexture=function(F,ue,be,ve=0){const fe=ue.image.width,Xe=ue.image.height,it=pt.convert(be.format),at=pt.convert(be.type);ie.setTexture2D(be,0),N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,be.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,be.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,be.unpackAlignment),ue.isDataTexture?N.texSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,fe,Xe,it,at,ue.image.data):ue.isCompressedTexture?N.compressedTexSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,ue.mipmaps[0].width,ue.mipmaps[0].height,it,ue.mipmaps[0].data):N.texSubImage2D(N.TEXTURE_2D,ve,F.x,F.y,it,at,ue.image),ve===0&&be.generateMipmaps&&N.generateMipmap(N.TEXTURE_2D),re.unbindTexture()},this.copyTextureToTexture3D=function(F,ue,be,ve,fe=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Xe=F.max.x-F.min.x+1,it=F.max.y-F.min.y+1,at=F.max.z-F.min.z+1,ut=pt.convert(ve.format),Et=pt.convert(ve.type);let ht;if(ve.isData3DTexture)ie.setTexture3D(ve,0),ht=N.TEXTURE_3D;else if(ve.isDataArrayTexture)ie.setTexture2DArray(ve,0),ht=N.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}N.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,ve.flipY),N.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ve.premultiplyAlpha),N.pixelStorei(N.UNPACK_ALIGNMENT,ve.unpackAlignment);const mt=N.getParameter(N.UNPACK_ROW_LENGTH),Zt=N.getParameter(N.UNPACK_IMAGE_HEIGHT),kn=N.getParameter(N.UNPACK_SKIP_PIXELS),rn=N.getParameter(N.UNPACK_SKIP_ROWS),ws=N.getParameter(N.UNPACK_SKIP_IMAGES),Wt=be.isCompressedTexture?be.mipmaps[0]:be.image;N.pixelStorei(N.UNPACK_ROW_LENGTH,Wt.width),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,Wt.height),N.pixelStorei(N.UNPACK_SKIP_PIXELS,F.min.x),N.pixelStorei(N.UNPACK_SKIP_ROWS,F.min.y),N.pixelStorei(N.UNPACK_SKIP_IMAGES,F.min.z),be.isDataTexture||be.isData3DTexture?N.texSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Et,Wt.data):be.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),N.compressedTexSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Wt.data)):N.texSubImage3D(ht,fe,ue.x,ue.y,ue.z,Xe,it,at,ut,Et,Wt),N.pixelStorei(N.UNPACK_ROW_LENGTH,mt),N.pixelStorei(N.UNPACK_IMAGE_HEIGHT,Zt),N.pixelStorei(N.UNPACK_SKIP_PIXELS,kn),N.pixelStorei(N.UNPACK_SKIP_ROWS,rn),N.pixelStorei(N.UNPACK_SKIP_IMAGES,ws),fe===0&&ve.generateMipmaps&&N.generateMipmap(ht),re.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?ie.setTextureCube(F,0):F.isData3DTexture?ie.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?ie.setTexture2DArray(F,0):ie.setTexture2D(F,0),re.unbindTexture()},this.resetState=function(){R=0,C=0,A=null,re.reset(),st.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ni}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===WE?"display-p3":"srgb",n.unpackColorSpace=Ut.workingColorSpace===tp?"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===tn?Qr:LN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Qr?tn:wn}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 RIt extends tO{}RIt.prototype.isWebGL1Renderer=!0;class AIt 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,n){return super.copy(e,n),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 n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n}}class NIt{constructor(e,n){this.isInterleavedBuffer=!0,this.array=e,this.stride=n,this.count=e!==void 0?e.length/n:0,this.usage=tb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Bs()}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,n){this.updateRanges.push({start:e,count:n})}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,n,s){e*=this.stride,s*=n.stride;for(let i=0,r=this.stride;ic)continue;f.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(f);Ie.far||n.push({distance:I,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const E=Math.max(0,o.start),y=Math.min(b.count,o.start+o.count);for(let v=E,S=y-1;vc)continue;f.applyMatrix4(this.matrixWorld);const C=e.ray.origin.distanceTo(f);Ce.far||n.push({distance:C,point:h.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,s=Object.keys(n);if(s.length>0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r0){const i=n[s[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;ri.far)return;r.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class ny extends Gs{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new _t(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 _t(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=YE,this.normalScale=new At(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 Bi extends ny{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 At(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Nn(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(n){this.ior=(1+.4*n)/(1-.4*n)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new _t(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 _t(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new _t(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 uw extends Gs{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new _t(16777215),this.specular=new _t(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new _t(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=YE,this.normalScale=new At(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=qE,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 cd(t,e,n){return!t||!n&&t.constructor===e?t:typeof e.BYTES_PER_ELEMENT=="number"?new e(t):Array.prototype.slice.call(t)}function BIt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function GIt(t){function e(i,r){return t[i]-t[r]}const n=t.length,s=new Array(n);for(let i=0;i!==n;++i)s[i]=i;return s.sort(e),s}function pw(t,e,n){const s=t.length,i=new t.constructor(s);for(let r=0,o=0;o!==s;++r){const a=n[r]*e;for(let c=0;c!==e;++c)i[o++]=t[a+c]}return i}function rO(t,e,n,s){let i=1,r=t[0];for(;r!==void 0&&r[s]===void 0;)r=t[i++];if(r===void 0)return;let o=r[s];if(o!==void 0)if(Array.isArray(o))do o=r[s],o!==void 0&&(e.push(r.time),n.push.apply(n,o)),r=t[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[s],o!==void 0&&(e.push(r.time),o.toArray(n,n.length)),r=t[i++];while(r!==void 0);else do o=r[s],o!==void 0&&(e.push(r.time),n.push(o)),r=t[i++];while(r!==void 0)}class rc{constructor(e,n,s,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new n.constructor(s),this.sampleValues=n,this.valueSize=s,this.settings=null,this.DefaultSettings_={}}evaluate(e){const n=this.parameterPositions;let s=this._cachedIndex,i=n[s],r=n[s-1];e:{t:{let o;n:{s:if(!(e=r)){const a=n[1];e=r)break t}o=s,s=0;break n}break e}for(;s>>1;en;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=s.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const s=this.times,i=this.values,r=s.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;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(i!==void 0&&BIt(i))for(let a=0,c=i.length;a!==c;++a){const d=i[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(),n=this.values.slice(),s=this.getValueSize(),i=this.getInterpolation()===Om,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*s,c=o*s,d=0;d!==s;++d)n[c+d]=n[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=n.slice(0,o*s)):(this.times=e,this.values=n),this}clone(){const e=this.times.slice(),n=this.values.slice(),s=this.constructor,i=new s(this.name,e,n);return i.createInterpolant=this.createInterpolant,i}}hi.prototype.TimeBufferType=Float32Array;hi.prototype.ValueBufferType=Float32Array;hi.prototype.DefaultInterpolation=ha;class Ba extends hi{}Ba.prototype.ValueTypeName="bool";Ba.prototype.ValueBufferType=Array;Ba.prototype.DefaultInterpolation=$l;Ba.prototype.InterpolantFactoryMethodLinear=void 0;Ba.prototype.InterpolantFactoryMethodSmooth=void 0;class oO extends hi{}oO.prototype.ValueTypeName="color";class ga extends hi{}ga.prototype.ValueTypeName="number";class qIt extends rc{constructor(e,n,s,i){super(e,n,s,i)}interpolate_(e,n,s,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(s-n)/(i-n);let d=e*a;for(let u=d+a;d!==u;d+=4)yr.slerpFlat(r,0,o,d-a,o,d,c);return r}}class oo extends hi{InterpolantFactoryMethodLinear(e){return new qIt(this.times,this.values,this.getValueSize(),e)}}oo.prototype.ValueTypeName="quaternion";oo.prototype.DefaultInterpolation=ha;oo.prototype.InterpolantFactoryMethodSmooth=void 0;class Ga extends hi{}Ga.prototype.ValueTypeName="string";Ga.prototype.ValueBufferType=Array;Ga.prototype.DefaultInterpolation=$l;Ga.prototype.InterpolantFactoryMethodLinear=void 0;Ga.prototype.InterpolantFactoryMethodSmooth=void 0;class ba extends hi{}ba.prototype.ValueTypeName="vector";class $It{constructor(e,n=-1,s,i=QRt){this.name=e,this.tracks=s,this.duration=n,this.blendMode=i,this.uuid=Bs(),this.duration<0&&this.resetDuration()}static parse(e){const n=[],s=e.tracks,i=1/(e.fps||1);for(let o=0,a=s.length;o!==a;++o)n.push(WIt(s[o]).scale(i));const r=new this(e.name,e.duration,n,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const n=[],s=e.tracks,i={name:e.name,duration:e.duration,tracks:n,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=s.length;r!==o;++r)n.push(hi.toJSON(s[r]));return i}static CreateFromMorphTargetSequence(e,n,s,i){const r=n.length,o=[];for(let a=0;a1){const h=u[1];let f=i[h];f||(i[h]=f=[]),f.push(d)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],n,s));return o}static parseAnimation(e,n){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const s=function(h,f,m,_,g){if(m.length!==0){const b=[],E=[];rO(m,b,E,_),b.length!==0&&g.push(new h(f,b,E))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let h=0;h{n&&n(r),this.manager.itemEnd(e)},0),r;if(Ti[e]!==void 0){Ti[e].push({onLoad:n,onProgress:s,onError:i});return}Ti[e]=[],Ti[e].push({onLoad:n,onProgress:s,onError:i});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=Ti[e],h=d.body.getReader(),f=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),m=f?parseInt(f):0,_=m!==0;let g=0;const b=new ReadableStream({start(E){y();function y(){h.read().then(({done:v,value:S})=>{if(v)E.close();else{g+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:_,loaded:g,total:m});for(let C=0,A=u.length;C{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 h=/charset="?([^;"\s]*)"?/i.exec(a),f=h&&h[1]?h[1].toLowerCase():void 0,m=new TextDecoder(f);return d.arrayBuffer().then(_=>m.decode(_))}}}).then(d=>{Ea.add(e,d);const u=Ti[e];delete Ti[e];for(let h=0,f=u.length;h{const u=Ti[e];if(u===void 0)throw this.manager.itemError(e),d;delete Ti[e];for(let h=0,f=u.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class XIt extends Va{constructor(e){super(e)}load(e,n,s,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ea.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.manager.itemEnd(e)},0),o;const a=Yl("img");function c(){u(),Ea.add(e,this),n&&n(this),r.manager.itemEnd(e)}function d(h){u(),i&&i(h),r.manager.itemError(e),r.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),r.manager.itemStart(e),a.src=e,a}}class lO extends Va{constructor(e){super(e)}load(e,n,s,i){const r=new Cn,o=new XIt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,n!==void 0&&n(r)},s,i),r}}class rp extends Jt{constructor(e,n=1){super(),this.isLight=!0,this.type="Light",this.color=new _t(e),this.intensity=n}dispose(){}copy(e,n){return super.copy(e,n),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const n=super.toJSON(e);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),n}}const sg=new xt,_w=new oe,hw=new oe;class sy{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new At(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new jE,this._frameExtents=new At(1,1),this._viewportCount=1,this._viewports=[new $t(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const n=this.camera,s=this.matrix;_w.setFromMatrixPosition(e.matrixWorld),n.position.copy(_w),hw.setFromMatrixPosition(e.target.matrixWorld),n.lookAt(hw),n.updateMatrixWorld(),sg.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(sg),s.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),s.multiply(sg)}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 ZIt extends sy{constructor(){super(new Un(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const n=this.camera,s=fa*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||n.far;(s!==n.fov||i!==n.aspect||r!==n.far)&&(n.fov=s,n.aspect=i,n.far=r,n.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class JIt extends rp{constructor(e,n,s=0,i=Math.PI/3,r=0,o=2){super(e,n),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=s,this.angle=i,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new ZIt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),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 fw=new xt,rl=new oe,ig=new oe;class ekt extends sy{constructor(){super(new Un(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new At(4,2),this._viewportCount=6,this._viewports=[new $t(2,1,1,1),new $t(0,1,1,1),new $t(3,1,1,1),new $t(1,1,1,1),new $t(3,0,1,1),new $t(1,0,1,1)],this._cubeDirections=[new oe(1,0,0),new oe(-1,0,0),new oe(0,0,1),new oe(0,0,-1),new oe(0,1,0),new oe(0,-1,0)],this._cubeUps=[new oe(0,1,0),new oe(0,1,0),new oe(0,1,0),new oe(0,1,0),new oe(0,0,1),new oe(0,0,-1)]}updateMatrices(e,n=0){const s=this.camera,i=this.matrix,r=e.distance||s.far;r!==s.far&&(s.far=r,s.updateProjectionMatrix()),rl.setFromMatrixPosition(e.matrixWorld),s.position.copy(rl),ig.copy(s.position),ig.add(this._cubeDirections[n]),s.up.copy(this._cubeUps[n]),s.lookAt(ig),s.updateMatrixWorld(),i.makeTranslation(-rl.x,-rl.y,-rl.z),fw.multiplyMatrices(s.projectionMatrix,s.matrixWorldInverse),this._frustum.setFromProjectionMatrix(fw)}}class tkt extends rp{constructor(e,n,s=0,i=2){super(e,n),this.isPointLight=!0,this.type="PointLight",this.distance=s,this.decay=i,this.shadow=new ekt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,n){return super.copy(e,n),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class nkt extends sy{constructor(){super(new XE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class cO extends rp{constructor(e,n){super(e,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new nkt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class skt extends rp{constructor(e,n){super(e,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class wl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let n="";for(let s=0,i=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,n,s,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ea.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){n&&n(o),r.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(r.options,{colorSpaceConversion:"none"}))}).then(function(c){Ea.add(e,c),n&&n(c),r.manager.itemEnd(e)}).catch(function(c){i&&i(c),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const iy="\\[\\]\\.:\\/",rkt=new RegExp("["+iy+"]","g"),ry="[^"+iy+"]",okt="[^"+iy.replace("\\.","")+"]",akt=/((?:WC+[\/:])*)/.source.replace("WC",ry),lkt=/(WCOD+)?/.source.replace("WCOD",okt),ckt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ry),dkt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ry),ukt=new RegExp("^"+akt+lkt+ckt+dkt+"$"),pkt=["material","materials","bones","map"];class _kt{constructor(e,n,s){const i=s||Bt.parseTrackName(n);this._targetGroup=e,this._bindings=e.subscribe_(n,i)}getValue(e,n){this.bind();const s=this._targetGroup.nCachedObjects_,i=this._bindings[s];i!==void 0&&i.getValue(e,n)}setValue(e,n){const s=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=s.length;i!==r;++i)s[i].setValue(e,n)}bind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,s=e.length;n!==s;++n)e[n].bind()}unbind(){const e=this._bindings;for(let n=this._targetGroup.nCachedObjects_,s=e.length;n!==s;++n)e[n].unbind()}}class Bt{constructor(e,n,s){this.path=n,this.parsedPath=s||Bt.parseTrackName(n),this.node=Bt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,n,s){return e&&e.isAnimationObjectGroup?new Bt.Composite(e,n,s):new Bt(e,n,s)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(rkt,"")}static parseTrackName(e){const n=ukt.exec(e);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const s={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},i=s.nodeName&&s.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=s.nodeName.substring(i+1);pkt.indexOf(r)!==-1&&(s.nodeName=s.nodeName.substring(0,i),s.objectName=r)}if(s.propertyName===null||s.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return s}static findNode(e,n){if(n===void 0||n===""||n==="."||n===-1||n===e.name||n===e.uuid)return e;if(e.skeleton){const s=e.skeleton.getBoneByName(n);if(s!==void 0)return s}if(e.children){const s=function(r){for(let o=0;o=2.0 are supported."));return}const d=new Ykt(r,{path:n||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[h]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+h+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(s,i)}parseAsync(e,n){const s=this;return new Promise(function(i,r){s.parse(e,n,i,r)})}}function fkt(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const Rt={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 mkt{constructor(e){this.parser=e,this.name=Rt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,n=this.parser.json.nodes||[];for(let s=0,i=n.length;s=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return n.loadTextureImage(e,r.source,o)}}class Nkt{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const n=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=i.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(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class Okt{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const n=this.name,s=this.parser,i=s.json,r=i.textures[e];if(!r.extensions||!r.extensions[n])return null;const o=r.extensions[n],a=i.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(i.extensionsRequired&&i.extensionsRequired.indexOf(n)>=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 n=new Image;n.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",n.onload=n.onerror=function(){e(n.height===1)}})),this.isSupported}}class Mkt{constructor(e){this.name=Rt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const n=this.parser.json,s=n.bufferViews[e];if(s.extensions&&s.extensions[this.name]){const i=s.extensions[this.name],r=this.parser.getDependency("buffer",i.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const c=i.byteOffset||0,d=i.byteLength||0,u=i.count,h=i.byteStride,f=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,h,f,i.mode,i.filter).then(function(m){return m.buffer}):o.ready.then(function(){const m=new ArrayBuffer(u*h);return o.decodeGltfBuffer(new Uint8Array(m),u,h,f,i.mode,i.filter),m})})}else return null}}class Ikt{constructor(e){this.name=Rt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const n=this.parser.json,s=n.nodes[e];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const i=n.meshes[s.mesh];for(const d of i.primitives)if(d.mode!==cs.TRIANGLES&&d.mode!==cs.TRIANGLE_STRIP&&d.mode!==cs.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(),h=u.isGroup?u.children:[u],f=d[0].count,m=[];for(const _ of h){const g=new xt,b=new oe,E=new yr,y=new oe(1,1,1),v=new LIt(_.geometry,_.material,f);for(let S=0;S0||t.search(/^data\:image\/jpeg/)===0?"image/jpeg":t.search(/\.webp($|\?)/i)>0||t.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const $kt=new xt;class Ykt{constructor(e={},n={}){this.json=e,this.extensions={},this.plugins={},this.options=n,this.cache=new fkt,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,i=!1,r=-1;typeof navigator<"u"&&(s=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,i=navigator.userAgent.indexOf("Firefox")>-1,r=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||s||i&&r<98?this.textureLoader=new lO(this.options.manager):this.textureLoader=new ikt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new aO(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,n){const s=this,i=this.json,r=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][i.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:i.asset,parser:s,userData:{}};return Or(r,a,i),ir(a,i),Promise.all(s._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(n)}_markDefs(){const e=this.json.nodes||[],n=this.json.skins||[],s=this.json.meshes||[];for(let i=0,r=n.length;i{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())r(u,a.children[d])};return r(s,i),i.name+="_instance_"+e.uses[n]++,i}_invokeOne(e){const n=Object.values(this.plugins);n.push(this);for(let s=0;s=2&&b.setY(x,C[A*c+1]),c>=3&&b.setZ(x,C[A*c+2]),c>=4&&b.setW(x,C[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const n=this.json,s=this.options,r=n.textures[e].source,o=n.images[r];let a=this.textureLoader;if(o.uri){const c=s.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,n,s){const i=this,r=this.json,o=r.textures[e],a=r.images[n],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(n,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 f=(r.samplers||{})[o.sampler]||{};return u.magFilter=bw[f.magFilter]||zn,u.minFilter=bw[f.minFilter]||so,u.wrapS=Ew[f.wrapS]||pa,u.wrapT=Ew[f.wrapT]||pa,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,n){const s=this,i=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(h=>h.clone());const o=i.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(h){d=!0;const f=new Blob([h],{type:o.mimeType});return c=a.createObjectURL(f),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(h){return new Promise(function(f,m){let _=f;n.isImageBitmapLoader===!0&&(_=function(g){const b=new Cn(g);b.needsUpdate=!0,f(b)}),n.load(wl.resolveURL(h,r.path),_,void 0,m)})}).then(function(h){return d===!0&&a.revokeObjectURL(c),h.userData.mimeType=o.mimeType||qkt(o.uri),h}).catch(function(h){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),h});return this.sourceCache[e]=u,u}assignTexture(e,n,s,i){const r=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),r.extensions[Rt.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[Rt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=r.associations.get(o);o=r.extensions[Rt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,c)}}return i!==void 0&&(o.colorSpace=i),e[n]=o,o})}assignFinalMaterial(e){const n=e.geometry;let s=e.material;const i=n.attributes.tangent===void 0,r=n.attributes.color!==void 0,o=n.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+s.uuid;let c=this.cache.get(a);c||(c=new iO,Gs.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 sO,Gs.prototype.copy.call(c,s),c.color.copy(s.color),c.map=s.map,this.cache.add(a,c)),s=c}if(i||r||o){let a="ClonedMaterial:"+s.uuid+":";i&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=s.clone(),r&&(c.vertexColors=!0),o&&(c.flatShading=!0),i&&(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 ny}loadMaterial(e){const n=this,s=this.json,i=this.extensions,r=s.materials[e];let o;const a={},c=r.extensions||{},d=[];if(c[Rt.KHR_MATERIALS_UNLIT]){const h=i[Rt.KHR_MATERIALS_UNLIT];o=h.getMaterialType(),d.push(h.extendParams(a,r,n))}else{const h=r.pbrMetallicRoughness||{};if(a.color=new _t(1,1,1),a.opacity=1,Array.isArray(h.baseColorFactor)){const f=h.baseColorFactor;a.color.setRGB(f[0],f[1],f[2],wn),a.opacity=f[3]}h.baseColorTexture!==void 0&&d.push(n.assignTexture(a,"map",h.baseColorTexture,tn)),a.metalness=h.metallicFactor!==void 0?h.metallicFactor:1,a.roughness=h.roughnessFactor!==void 0?h.roughnessFactor:1,h.metallicRoughnessTexture!==void 0&&(d.push(n.assignTexture(a,"metalnessMap",h.metallicRoughnessTexture)),d.push(n.assignTexture(a,"roughnessMap",h.metallicRoughnessTexture))),o=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=Js);const u=r.alphaMode||og.OPAQUE;if(u===og.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===og.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==lr&&(d.push(n.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new At(1,1),r.normalTexture.scale!==void 0)){const h=r.normalTexture.scale;a.normalScale.set(h,h)}if(r.occlusionTexture!==void 0&&o!==lr&&(d.push(n.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==lr){const h=r.emissiveFactor;a.emissive=new _t().setRGB(h[0],h[1],h[2],wn)}return r.emissiveTexture!==void 0&&o!==lr&&d.push(n.assignTexture(a,"emissiveMap",r.emissiveTexture,tn)),Promise.all(d).then(function(){const h=new o(a);return r.name&&(h.name=r.name),ir(h,r),n.associations.set(h,{materials:e}),r.extensions&&Or(i,h,r),h})}createUniqueName(e){const n=Bt.sanitizeNodeName(e||"");return n in this.nodeNamesUsed?n+"_"+ ++this.nodeNamesUsed[n]:(this.nodeNamesUsed[n]=0,n)}loadGeometries(e){const n=this,s=this.extensions,i=this.primitiveCache;function r(a){return s[Rt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,n).then(function(c){return yw(c,a,n)})}const o=[];for(let a=0,c=e.length;a0&&zkt(E,r),E.name=n.createUniqueName(r.name||"mesh_"+e),ir(E,r),b.extensions&&Or(i,E,b),n.assignFinalMaterial(E),h.push(E)}for(let m=0,_=h.length;m<_;m++)n.associations.set(h[m],{meshes:e,primitives:m});if(h.length===1)return r.extensions&&Or(i,h[0],r),h[0];const f=new Hr;r.extensions&&Or(i,f,r),n.associations.set(f,{meshes:e});for(let m=0,_=h.length;m<_;m++)f.add(h[m]);return f})}loadCamera(e){let n;const s=this.json.cameras[e],i=s[s.type];if(!i){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?n=new Un(SAt.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):s.type==="orthographic"&&(n=new XE(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),s.name&&(n.name=this.createUniqueName(s.name)),ir(n,s),Promise.resolve(n)}loadSkin(e){const n=this.json.skins[e],s=[];for(let i=0,r=n.joints.length;i1?u=new Hr:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let h=0,f=d.length;h{const h=new Map;for(const[f,m]of i.associations)(f instanceof Gs||f instanceof Cn)&&h.set(f,m);return u.traverse(f=>{const m=i.associations.get(f);m!=null&&h.set(f,m)}),h};return i.associations=d(r),r})}_createAnimationTracks(e,n,s,i,r){const o=[],a=e.name?e.name:e.uuid,c=[];ji[r.path]===ji.weights?e.traverse(function(f){f.morphTargetInfluences&&c.push(f.name?f.name:f.uuid)}):c.push(a);let d;switch(ji[r.path]){case ji.weights:d=ga;break;case ji.rotation:d=oo;break;case ji.position:case ji.scale:d=ba;break;default:switch(s.itemSize){case 1:d=ga;break;case 2:case 3:default:d=ba;break}break}const u=i.interpolation!==void 0?Bkt[i.interpolation]:ha,h=this._getArrayFromAccessor(s);for(let f=0,m=c.length;f{ze.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,qe.emit("stop_webcam_video_stream"),Le(()=>{ze.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),qe.on("video_stream_image",t=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},jkt=["src"],Qkt=["src"],Xkt={class:"controls"},Zkt=l("i",{"data-feather":"video"},null,-1),Jkt=[Zkt],eDt=l("i",{"data-feather":"video"},null,-1),tDt=[eDt],nDt={key:2};function sDt(t,e,n,s,i,r){return T(),w("div",{class:"floating-frame bg-white",style:Ht({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isVideoActive&&i.imageDataUrl!=null?(T(),w("img",{key:0,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,jkt)):G("",!0),i.isVideoActive&&i.imageDataUrl==null?(T(),w("p",{key:1,src:i.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,Qkt)):G("",!0),l("div",Xkt,[i.isVideoActive?G("",!0):(T(),w("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)=>r.startVideoStream&&r.startVideoStream(...o))},Jkt)),i.isVideoActive?(T(),w("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)=>r.stopVideoStream&&r.stopVideoStream(...o))},tDt)):G("",!0),i.isVideoActive?(T(),w("span",nDt,"FPS: "+K(i.frameRate),1)):G("",!0)])],36)}const iDt=ot(Kkt,[["render",sDt]]);const rDt={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(){qe.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Le(()=>{ze.replace()})},stopAudioStream(){qe.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Le(()=>{ze.replace()})},startDrag(t){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(t){if(this.isDragging){const e=t.clientX-this.dragStart.x,n=t.clientY-this.dragStart.y;this.position.bottom-=n,this.position.right-=e,this.dragStart.x=t.clientX,this.dragStart.y=t.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){ze.replace(),qe.on("update_spectrogram",t=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+t,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},oDt=["src"],aDt={class:"controls"},lDt=l("i",{"data-feather":"mic"},null,-1),cDt=[lDt],dDt=l("i",{"data-feather":"mic"},null,-1),uDt=[dDt];function pDt(t,e,n,s,i,r){return T(),w("div",{class:"floating-frame bg-white",style:Ht({bottom:i.position.bottom+"px",right:i.position.right+"px","z-index":i.zIndex}),onMousedown:e[4]||(e[4]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=j((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=j((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),i.isAudioActive&&i.imageDataUrl!=null?(T(),w("img",{key:0,src:i.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,oDt)):G("",!0),l("div",aDt,[i.isAudioActive?G("",!0):(T(),w("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)=>r.startAudioStream&&r.startAudioStream(...o))},cDt)),i.isAudioActive?(T(),w("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)=>r.stopAudioStream&&r.stopAudioStream(...o))},uDt)):G("",!0)])],36)}const _Dt=ot(rDt,[["render",pDt]]);const hDt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:iDt,AudioFrame:_Dt},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(t=>setTimeout(t,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Le(()=>{ze.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 AIt,this.camera=new Un(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new tO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const t=new hr,e=new uw({color:65280});this.cube=new Fn(t,e),this.scene.add(this.cube);const n=new skt(4210752),s=new cO(16777215,.5);s.position.set(0,1,0),this.scene.add(n),this.scene.add(s),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:t,config:e}=this.$store.state;this.activePersonality=t[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(t){new hkt().load(t,n=>{this.scene.remove(this.cube),this.cube=n.scene,this.scene.add(this.cube)})},showBoxWithAvatar(t){this.cube&&this.scene.remove(this.cube);const e=new hr,n=new lO().load(t),s=new lr({map:n});this.cube=new Fn(e,s),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const t=new hr,e=new uw({color:65280});this.cube=new Fn(t,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)}}},fDt={ref:"webglContainer"},mDt={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"},gDt={key:0,class:"text-center"},bDt={key:1,class:"text-center"},EDt={class:"floating-frame2"},yDt=["innerHTML"];function vDt(t,e,n,s,i,r){const o=tt("VideoFrame"),a=tt("AudioFrame");return T(),w(Pe,null,[l("div",fDt,null,512),l("div",mDt,[!i.activePersonality||!i.activePersonality.scene_path?(T(),w("div",gDt," Personality does not have a 3d avatar. ")):G("",!0),!i.activePersonality||!i.activePersonality.avatar||i.activePersonality.avatar===""?(T(),w("div",bDt," Personality does not have an avatar. ")):G("",!0),l("div",EDt,[l("div",{innerHTML:t.htmlContent},null,8,yDt)])]),V(o,{ref:"video_frame"},null,512),V(a,{ref:"audio_frame"},null,512)],64)}const SDt=ot(hDt,[["render",vDt]]);let dd;const TDt=new Uint8Array(16);function xDt(){if(!dd&&(dd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!dd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dd(TDt)}const vn=[];for(let t=0;t<256;++t)vn.push((t+256).toString(16).slice(1));function CDt(t,e=0){return vn[t[e+0]]+vn[t[e+1]]+vn[t[e+2]]+vn[t[e+3]]+"-"+vn[t[e+4]]+vn[t[e+5]]+"-"+vn[t[e+6]]+vn[t[e+7]]+"-"+vn[t[e+8]]+vn[t[e+9]]+"-"+vn[t[e+10]]+vn[t[e+11]]+vn[t[e+12]]+vn[t[e+13]]+vn[t[e+14]]+vn[t[e+15]]}const wDt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vw={randomUUID:wDt};function Mi(t,e,n){if(vw.randomUUID&&!e&&!t)return vw.randomUUID();t=t||{};const s=t.random||(t.rng||xDt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=s[i];return e}return CDt(s)}class Xr{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,n){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,n),this._listeners.push(n)}unsubscribe(e){if(this.listenerMap.has(e)){const n=this.listenerMap.get(e);this.listenerMap.delete(e);const s=this._listeners.indexOf(n);s>=0&&this._listeners.splice(s,1)}}registerProxy(e,n){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,n),this.proxies.push(n)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const n=this.proxyMap.get(e);this.proxyMap.delete(e);const s=this.proxies.indexOf(n);s>=0&&this.proxies.splice(s,1)}}class zt extends Xr{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(n=>n(e,this.entity))}}class Mn extends Xr{constructor(e){super(),this.entity=e}emit(e){let n=!1;const s=()=>[n=!0];for(const i of Array.from(this.listeners.values()))if(i(e,s,this.entity),n)return{prevented:!0};return{prevented:!1}}}class pO extends Xr{execute(e,n){let s=e;for(const i of this.listeners)s=i(s,n);return s}}class ss extends pO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class ODt extends Xr{constructor(e){super(),this.entity=e}execute(e){const n=[];for(const s of this.listeners)n.push(s(e,this.entity));return n}}function js(){const t=Symbol(),e=new Map,n=new Set,s=(c,d)=>{d instanceof Xr&&d.registerProxy(t,()=>{var u,h;return(h=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&h!==void 0?h:[]})},i=c=>{const d=new Xr;e.set(c,d),n.forEach(u=>s(c,u[c]))},r=c=>{n.add(c);for(const d of e.keys())s(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof Xr&&c[d].unregisterProxy(t);n.delete(c)},a=()=>{n.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?r:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||i(d),e.get(d))}})}class Sw{constructor(e,n){if(this.destructed=!1,this.events={destruct:new zt(this)},!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Mi(),this.from=e,this.to=n,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class _O{constructor(e,n){if(!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Mi(),this.from=e,this.to=n}}function cb(t,e){return Object.fromEntries(Object.entries(t).map(([n,s])=>[n,e(s)]))}class hO{constructor(){this._title="",this.id=Mi(),this.events={loaded:new zt(this),beforeAddInput:new Mn(this),addInput:new zt(this),beforeRemoveInput:new Mn(this),removeInput:new zt(this),beforeAddOutput:new Mn(this),addOutput:new zt(this),beforeRemoveOutput:new Mn(this),removeOutput:new zt(this),beforeTitleChanged:new Mn(this),titleChanged:new zt(this),update:new zt(this)},this.hooks={beforeLoad:new ss(this),afterSave:new ss(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,n){return this.addInterface("input",e,n)}addOutput(e,n){return this.addInterface("output",e,n)}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(([n,s])=>{this.inputs[n]&&(this.inputs[n].load(s),this.inputs[n].nodeId=this.id)}),Object.entries(e.outputs).forEach(([n,s])=>{this.outputs[n]&&(this.outputs[n].load(s),this.outputs[n].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=cb(this.inputs,i=>i.save()),n=cb(this.outputs,i=>i.save()),s={type:this.type,id:this.id,title:this.title,inputs:e,outputs:n};return this.hooks.afterSave.execute(s)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,n])=>this.initializeIntf("input",e,n)),Object.entries(this.outputs).forEach(([e,n])=>this.initializeIntf("output",e,n))}initializeIntf(e,n,s){s.isInput=e==="input",s.nodeId=this.id,s.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:n,intf:s}))}addInterface(e,n,s){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return i.emit(s).prevented?!1:(o[n]=s,this.initializeIntf(e,n,s),r.emit(s),!0)}removeInterface(e,n){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[n]:this.outputs[n];if(!r||s.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[n]:delete this.outputs[n],i.emit(r),!0}}let fO=class extends hO{load(e){super.load(e)}save(){return super.save()}};function za(t){return class extends fO{constructor(){var e,n;super(),this.type=t.type,this.inputs={},this.outputs={},this.calculate=t.calculate?(s,i)=>t.calculate.call(this,s,i):void 0,this._title=(e=t.title)!==null&&e!==void 0?e:t.type,this.executeFactory("input",t.inputs),this.executeFactory("output",t.outputs),(n=t.onCreate)===null||n===void 0||n.call(this)}onPlaced(){var e;(e=t.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=t.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,n){Object.keys(n||{}).forEach(s=>{const i=n[s]();e==="input"?this.addInput(s,i):this.addOutput(s,i)})}}}class Xt{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,n){this.id=Mi(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new zt(this),beforeSetValue:new Mn(this),setValue:new zt(this),updated:new zt(this)},this.hooks={load:new ss(this),save:new ss(this)},this._connectionCount=0,this.name=e,this._value=n}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,...n){return e(this,...n),this}}const ya="__baklava_SubgraphInputNode",va="__baklava_SubgraphOutputNode";class mO extends fO{constructor(){super(),this.graphInterfaceId=Mi()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class gO extends mO{constructor(){super(...arguments),this.type=ya,this.inputs={name:new Xt("Name","Input")},this.outputs={placeholder:new Xt("Value",void 0)}}static isGraphInputNode(e){return e.type===ya}}class bO extends mO{constructor(){super(...arguments),this.type=va,this.inputs={name:new Xt("Name","Output"),placeholder:new Xt("Value",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===va}}class oc{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(n=>n.type===ya).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===va).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Mi(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Mn(this),addNode:new zt(this),beforeRemoveNode:new Mn(this),removeNode:new zt(this),beforeAddConnection:new Mn(this),addConnection:new zt(this),checkConnection:new Mn(this),beforeRemoveConnection:new Mn(this),removeConnection:new zt(this)},this.hooks={save:new ss(this),load:new ss(this),checkConnection:new ODt(this)},this.nodeEvents=js(),this.nodeHooks=js(),this.connectionEvents=js(),this.editor=e,this.template=n,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(n=>n.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 n=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(s=>n.includes(s.from)||n.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,n){const s=this.checkConnection(e,n);if(!s.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:n}).prevented)return;for(const r of s.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const i=new Sw(s.dummyConnection.from,s.dummyConnection.to);return this.internalAddConnection(i),i}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,n){if(!e||!n)return{connectionAllowed:!1};const s=this.findNodeById(e.nodeId),i=this.findNodeById(n.nodeId);if(s&&i&&s===i)return{connectionAllowed:!1};if(e.isInput&&!n.isInput){const a=e;e=n,n=a}if(e.isInput||!n.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===n))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:n}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:n});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new _O(e,n),connectionsInDanger:o}}findNodeInterface(e){for(const n of this.nodes){for(const s in n.inputs){const i=n.inputs[s];if(i.id===e)return i}for(const s in n.outputs){const i=n.outputs[s];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(n=>n.id===e)}load(e){try{this._loading=!0;const n=[];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 i=this.editor.nodeTypes.get(s.type);if(!i){n.push(`Node type ${s.type} is not registered`);continue}const r=new i.type;this.addNode(r),r.load(s)}for(const s of e.connections){const i=this.findNodeInterface(s.from),r=this.findNodeInterface(s.to);if(i)if(r){const o=new Sw(i,r);o.id=s.id,this.internalAddConnection(o)}else{n.push(`Could not find interface with id ${s.to}`);continue}else{n.push(`Could not find interface with id ${s.from}`);continue}}return this.hooks.load.execute(e),n}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(n=>n.save()),connections:this.connections.map(n=>({id:n.id,from:n.from.id,to:n.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 Wl="__baklava_GraphNode-";function Sa(t){return Wl+t.id}function MDt(t){return class extends hO{constructor(){super(...arguments),this.type=Sa(t),this.inputs={},this.outputs={},this.template=t,this.calculate=async(n,s)=>{var i;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 r=s.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)r.set(c.nodeInterfaceId,n[c.id]);const o=await s.engine.runGraph(this.subgraph,r,s.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(i=o.get(c.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(n){this.template.name=n}load(n){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(n.graphState),super.load(n)}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,n=>{this._title=n}),this.initialize()}onDestroy(){var n;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(n=this.subgraph)===null||n===void 0||n.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 n of this.subgraph.inputs)n.id in this.inputs?this.inputs[n.id].name=n.name:this.addInput(n.id,new Xt(n.name,void 0));for(const n of Object.keys(this.inputs))this.subgraph.inputs.some(s=>s.id===n)||this.removeInput(n);for(const n of this.subgraph.outputs)n.id in this.outputs?this.outputs[n.id].name=n.name:this.addOutput(n.id,new Xt(n.name,void 0));for(const n of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===n)||this.removeOutput(n);this.addOutput("_calculationResults",new Xt("_calculationResults",void 0).setHidden(!0))}}}class op{static fromGraph(e,n){return new op(e.save(),n)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const n=this.editor.nodeTypes.get(Sa(this));n&&(n.title=e)}get inputs(){return this.nodes.filter(n=>n.type===ya).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===va).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Mi(),this._name="Subgraph",this.events={nameChanged:new zt(this),updated:new zt(this)},this.hooks={beforeLoad:new ss(this),afterSave:new ss(this)},this.editor=n,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 n=new Map,s=f=>{const m=Mi();return n.set(f,m),m},i=f=>{const m=n.get(f);if(!m)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return m},r=f=>cb(f,m=>({id:s(m.id),templateId:m.id,value:m.value})),o=this.nodes.map(f=>({...f,id:s(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:s(f.id),from:i(f.from),to:i(f.to)})),c=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),d=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),u={id:Mi(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new oc(this.editor)),e.load(u).forEach(f=>console.warn(f)),e.template=this,e}}class IDt{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 zt(this),beforeRegisterNodeType:new Mn(this),registerNodeType:new zt(this),beforeUnregisterNodeType:new Mn(this),unregisterNodeType:new zt(this),beforeAddGraphTemplate:new Mn(this),addGraphTemplate:new zt(this),beforeRemoveGraphTemplate:new Mn(this),removeGraphTemplate:new zt(this),registerGraph:new zt(this),unregisterGraph:new zt(this)},this.hooks={save:new ss(this),load:new ss(this)},this.graphTemplateEvents=js(),this.graphTemplateHooks=js(),this.graphEvents=js(),this.graphHooks=js(),this.nodeEvents=js(),this.nodeHooks=js(),this.connectionEvents=js(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new oc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(gO),this.registerNodeType(bO)}registerNodeType(e,n){var s,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:n}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(s=n==null?void 0:n.category)!==null&&s!==void 0?s:"default",title:(i=n==null?void 0:n.title)!==null&&i!==void 0?i:r.title}),this.events.registerNodeType.emit({type:e,options:n})}unregisterNodeType(e){const n=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(n)){if(this.events.beforeUnregisterNodeType.emit(n).prevented)return;this._nodeTypes.delete(n),this.events.unregisterNodeType.emit(n)}}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 n=MDt(e);this.registerNodeType(n,{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 n=Sa(e);for(const s of[this.graph,...this.graphs.values()]){const i=s.nodes.filter(r=>r.type===n);for(const r of i)s.removeNode(r)}this.unregisterNodeType(n),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{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(s=>{const i=new op(s,this);this.addGraphTemplate(i)});const n=this._graph.load(e.graph);return this.events.loaded.emit(),n.forEach(s=>console.warn(s)),n}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(n=>n.save())};return this.hooks.save.execute(e)}}function kDt(t,e){const n=new Map;e.graphs.forEach(s=>{s.nodes.forEach(i=>n.set(i.id,i))}),t.forEach((s,i)=>{const r=n.get(i);r&&s.forEach((o,a)=>{const c=r.outputs[a];c&&(c.value=o)})})}class EO extends Error{constructor(){super("Cycle detected")}}function DDt(t){return typeof t=="string"}function yO(t,e){const n=new Map,s=new Map,i=new Map;let r,o;if(t instanceof oc)r=t.nodes,o=t.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=t,o=e}r.forEach(d=>{Object.values(d.inputs).forEach(u=>n.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>n.set(u.id,d.id))}),r.forEach(d=>{const u=o.filter(f=>f.from&&n.get(f.from.id)===d.id),h=new Set(u.map(f=>n.get(f.to.id)).filter(DDt));s.set(d.id,h),i.set(d,u)});const a=r.slice();o.forEach(d=>{const u=a.findIndex(h=>n.get(d.to.id)===h.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 h=u.values().next().value;if(u.delete(h),Array.from(s.values()).every(f=>!f.has(h))){const f=r.find(m=>m.id===h);a.push(f)}}}if(Array.from(s.values()).some(d=>d.size>0))throw new EO;return{calculationOrder:c,connectionsFromNode:i,interfaceIdToNodeId:n}}function LDt(t,e){try{return yO(t,e),!1}catch(n){if(n instanceof EO)return!0;throw n}}var Vn;(function(t){t.Running="Running",t.Idle="Idle",t.Paused="Paused",t.Stopped="Stopped"})(Vn||(Vn={}));class PDt{get status(){return this.isRunning?Vn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Mn(this),afterRun:new zt(this),statusChange:new zt(this),beforeNodeCalculation:new zt(this),afterNodeCalculation:new zt(this)},this.hooks={gatherCalculationData:new ss(this),transferData:new pO},this.recalculateOrder=!0,this.internalStatus=Vn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(n,s)=>{s.graph&&!s.graph.loading&&s.graph.activeTransactions===0&&this.internalOnChange(s,n??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,n=>this.checkConnection(n.from,n.to))}start(){this.internalStatus===Vn.Stopped&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Vn.Idle&&(this.internalStatus=Vn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Vn.Paused&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Vn.Idle||this.internalStatus===Vn.Paused)&&(this.internalStatus=Vn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...n){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,...n);return this.events.afterRun.emit(s),s}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,n){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(n.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,n.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};n=r}const s=new _O(e,n);let i=this.editor.graph.connections.slice();return n.allowMultipleConnections||(i=i.filter(r=>r.to!==n)),i.push(s),LDt(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:n.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===n)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const n=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(n,...e)}validateNodeCalculationOutput(e,n){if(typeof n!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(s=>{if(!(s in n))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${s}"`)})}internalOnChange(e,n){this.internalStatus===Vn.Idle&&this.onChange(this.recalculateOrder,e,n)}findInterfaceByTemplateId(e,n){for(const s of e)for(const i of[...Object.values(s.inputs),...Object.values(s.outputs)])if(i.templateId===n)return i;return null}}class UDt extends PDt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,n,s){this.order.has(e.id)||this.order.set(e.id,yO(e));const{calculationOrder:i,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of i){const c={};Object.entries(a.inputs).forEach(([u,h])=>{c[u]=this.getInterfaceValue(n,h.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,h]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(n,h.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),r.has(a)&&r.get(a).forEach(u=>{var h;const f=(h=Object.entries(a.outputs).find(([,_])=>_.id===u.from.id))===null||h===void 0?void 0:h[0];if(!f)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,n),this.proxies.push(n)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const n=this.proxyMap.get(e);this.proxyMap.delete(e);const s=this.proxies.indexOf(n);s>=0&&this.proxies.splice(s,1)}}class zt extends Xr{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(n=>n(e,this.entity))}}class Mn extends Xr{constructor(e){super(),this.entity=e}emit(e){let n=!1;const s=()=>[n=!0];for(const i of Array.from(this.listeners.values()))if(i(e,s,this.entity),n)return{prevented:!0};return{prevented:!1}}}class pO extends Xr{execute(e,n){let s=e;for(const i of this.listeners)s=i(s,n);return s}}class ss extends pO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class RDt extends Xr{constructor(e){super(),this.entity=e}execute(e){const n=[];for(const s of this.listeners)n.push(s(e,this.entity));return n}}function js(){const t=Symbol(),e=new Map,n=new Set,s=(c,d)=>{d instanceof Xr&&d.registerProxy(t,()=>{var u,h;return(h=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&h!==void 0?h:[]})},i=c=>{const d=new Xr;e.set(c,d),n.forEach(u=>s(c,u[c]))},r=c=>{n.add(c);for(const d of e.keys())s(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof Xr&&c[d].unregisterProxy(t);n.delete(c)},a=()=>{n.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?r:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||i(d),e.get(d))}})}class Sw{constructor(e,n){if(this.destructed=!1,this.events={destruct:new zt(this)},!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Mi(),this.from=e,this.to=n,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class _O{constructor(e,n){if(!e||!n)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Mi(),this.from=e,this.to=n}}function cb(t,e){return Object.fromEntries(Object.entries(t).map(([n,s])=>[n,e(s)]))}class hO{constructor(){this._title="",this.id=Mi(),this.events={loaded:new zt(this),beforeAddInput:new Mn(this),addInput:new zt(this),beforeRemoveInput:new Mn(this),removeInput:new zt(this),beforeAddOutput:new Mn(this),addOutput:new zt(this),beforeRemoveOutput:new Mn(this),removeOutput:new zt(this),beforeTitleChanged:new Mn(this),titleChanged:new zt(this),update:new zt(this)},this.hooks={beforeLoad:new ss(this),afterSave:new ss(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,n){return this.addInterface("input",e,n)}addOutput(e,n){return this.addInterface("output",e,n)}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(([n,s])=>{this.inputs[n]&&(this.inputs[n].load(s),this.inputs[n].nodeId=this.id)}),Object.entries(e.outputs).forEach(([n,s])=>{this.outputs[n]&&(this.outputs[n].load(s),this.outputs[n].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=cb(this.inputs,i=>i.save()),n=cb(this.outputs,i=>i.save()),s={type:this.type,id:this.id,title:this.title,inputs:e,outputs:n};return this.hooks.afterSave.execute(s)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,n])=>this.initializeIntf("input",e,n)),Object.entries(this.outputs).forEach(([e,n])=>this.initializeIntf("output",e,n))}initializeIntf(e,n,s){s.isInput=e==="input",s.nodeId=this.id,s.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:n,intf:s}))}addInterface(e,n,s){const i=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return i.emit(s).prevented?!1:(o[n]=s,this.initializeIntf(e,n,s),r.emit(s),!0)}removeInterface(e,n){const s=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,i=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[n]:this.outputs[n];if(!r||s.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[n]:delete this.outputs[n],i.emit(r),!0}}let fO=class extends hO{load(e){super.load(e)}save(){return super.save()}};function za(t){return class extends fO{constructor(){var e,n;super(),this.type=t.type,this.inputs={},this.outputs={},this.calculate=t.calculate?(s,i)=>t.calculate.call(this,s,i):void 0,this._title=(e=t.title)!==null&&e!==void 0?e:t.type,this.executeFactory("input",t.inputs),this.executeFactory("output",t.outputs),(n=t.onCreate)===null||n===void 0||n.call(this)}onPlaced(){var e;(e=t.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=t.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,n){Object.keys(n||{}).forEach(s=>{const i=n[s]();e==="input"?this.addInput(s,i):this.addOutput(s,i)})}}}class Xt{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,n){this.id=Mi(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new zt(this),beforeSetValue:new Mn(this),setValue:new zt(this),updated:new zt(this)},this.hooks={load:new ss(this),save:new ss(this)},this._connectionCount=0,this.name=e,this._value=n}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,...n){return e(this,...n),this}}const ya="__baklava_SubgraphInputNode",va="__baklava_SubgraphOutputNode";class mO extends fO{constructor(){super(),this.graphInterfaceId=Mi()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class gO extends mO{constructor(){super(...arguments),this.type=ya,this.inputs={name:new Xt("Name","Input")},this.outputs={placeholder:new Xt("Value",void 0)}}static isGraphInputNode(e){return e.type===ya}}class bO extends mO{constructor(){super(...arguments),this.type=va,this.inputs={name:new Xt("Name","Output"),placeholder:new Xt("Value",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===va}}class oc{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(n=>n.type===ya).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===va).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Mi(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Mn(this),addNode:new zt(this),beforeRemoveNode:new Mn(this),removeNode:new zt(this),beforeAddConnection:new Mn(this),addConnection:new zt(this),checkConnection:new Mn(this),beforeRemoveConnection:new Mn(this),removeConnection:new zt(this)},this.hooks={save:new ss(this),load:new ss(this),checkConnection:new RDt(this)},this.nodeEvents=js(),this.nodeHooks=js(),this.connectionEvents=js(),this.editor=e,this.template=n,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(n=>n.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 n=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(s=>n.includes(s.from)||n.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,n){const s=this.checkConnection(e,n);if(!s.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:n}).prevented)return;for(const r of s.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const i=new Sw(s.dummyConnection.from,s.dummyConnection.to);return this.internalAddConnection(i),i}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,n){if(!e||!n)return{connectionAllowed:!1};const s=this.findNodeById(e.nodeId),i=this.findNodeById(n.nodeId);if(s&&i&&s===i)return{connectionAllowed:!1};if(e.isInput&&!n.isInput){const a=e;e=n,n=a}if(e.isInput||!n.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===n))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:n}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:n});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new _O(e,n),connectionsInDanger:o}}findNodeInterface(e){for(const n of this.nodes){for(const s in n.inputs){const i=n.inputs[s];if(i.id===e)return i}for(const s in n.outputs){const i=n.outputs[s];if(i.id===e)return i}}}findNodeById(e){return this.nodes.find(n=>n.id===e)}load(e){try{this._loading=!0;const n=[];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 i=this.editor.nodeTypes.get(s.type);if(!i){n.push(`Node type ${s.type} is not registered`);continue}const r=new i.type;this.addNode(r),r.load(s)}for(const s of e.connections){const i=this.findNodeInterface(s.from),r=this.findNodeInterface(s.to);if(i)if(r){const o=new Sw(i,r);o.id=s.id,this.internalAddConnection(o)}else{n.push(`Could not find interface with id ${s.to}`);continue}else{n.push(`Could not find interface with id ${s.from}`);continue}}return this.hooks.load.execute(e),n}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(n=>n.save()),connections:this.connections.map(n=>({id:n.id,from:n.from.id,to:n.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 Wl="__baklava_GraphNode-";function Sa(t){return Wl+t.id}function ADt(t){return class extends hO{constructor(){super(...arguments),this.type=Sa(t),this.inputs={},this.outputs={},this.template=t,this.calculate=async(n,s)=>{var i;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 r=s.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)r.set(c.nodeInterfaceId,n[c.id]);const o=await s.engine.runGraph(this.subgraph,r,s.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(i=o.get(c.nodeId))===null||i===void 0?void 0:i.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(n){this.template.name=n}load(n){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(n.graphState),super.load(n)}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,n=>{this._title=n}),this.initialize()}onDestroy(){var n;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(n=this.subgraph)===null||n===void 0||n.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 n of this.subgraph.inputs)n.id in this.inputs?this.inputs[n.id].name=n.name:this.addInput(n.id,new Xt(n.name,void 0));for(const n of Object.keys(this.inputs))this.subgraph.inputs.some(s=>s.id===n)||this.removeInput(n);for(const n of this.subgraph.outputs)n.id in this.outputs?this.outputs[n.id].name=n.name:this.addOutput(n.id,new Xt(n.name,void 0));for(const n of Object.keys(this.outputs))this.subgraph.outputs.some(s=>s.id===n)||this.removeOutput(n);this.addOutput("_calculationResults",new Xt("_calculationResults",void 0).setHidden(!0))}}}class op{static fromGraph(e,n){return new op(e.save(),n)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const n=this.editor.nodeTypes.get(Sa(this));n&&(n.title=e)}get inputs(){return this.nodes.filter(n=>n.type===ya).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(n=>n.type===va).map(n=>({id:n.graphInterfaceId,name:n.inputs.name.value,nodeId:n.id,nodeInterfaceId:n.outputs.output.id}))}constructor(e,n){this.id=Mi(),this._name="Subgraph",this.events={nameChanged:new zt(this),updated:new zt(this)},this.hooks={beforeLoad:new ss(this),afterSave:new ss(this)},this.editor=n,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 n=new Map,s=f=>{const m=Mi();return n.set(f,m),m},i=f=>{const m=n.get(f);if(!m)throw new Error(`Unable to create graph from template: Could not map old id ${f} to new id`);return m},r=f=>cb(f,m=>({id:s(m.id),templateId:m.id,value:m.value})),o=this.nodes.map(f=>({...f,id:s(f.id),inputs:r(f.inputs),outputs:r(f.outputs)})),a=this.connections.map(f=>({id:s(f.id),from:i(f.from),to:i(f.to)})),c=this.inputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),d=this.outputs.map(f=>({id:f.id,name:f.name,nodeId:i(f.nodeId),nodeInterfaceId:i(f.nodeInterfaceId)})),u={id:Mi(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new oc(this.editor)),e.load(u).forEach(f=>console.warn(f)),e.template=this,e}}class NDt{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 zt(this),beforeRegisterNodeType:new Mn(this),registerNodeType:new zt(this),beforeUnregisterNodeType:new Mn(this),unregisterNodeType:new zt(this),beforeAddGraphTemplate:new Mn(this),addGraphTemplate:new zt(this),beforeRemoveGraphTemplate:new Mn(this),removeGraphTemplate:new zt(this),registerGraph:new zt(this),unregisterGraph:new zt(this)},this.hooks={save:new ss(this),load:new ss(this)},this.graphTemplateEvents=js(),this.graphTemplateHooks=js(),this.graphEvents=js(),this.graphHooks=js(),this.nodeEvents=js(),this.nodeHooks=js(),this.connectionEvents=js(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new oc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(gO),this.registerNodeType(bO)}registerNodeType(e,n){var s,i;if(this.events.beforeRegisterNodeType.emit({type:e,options:n}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(s=n==null?void 0:n.category)!==null&&s!==void 0?s:"default",title:(i=n==null?void 0:n.title)!==null&&i!==void 0?i:r.title}),this.events.registerNodeType.emit({type:e,options:n})}unregisterNodeType(e){const n=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(n)){if(this.events.beforeUnregisterNodeType.emit(n).prevented)return;this._nodeTypes.delete(n),this.events.unregisterNodeType.emit(n)}}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 n=ADt(e);this.registerNodeType(n,{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 n=Sa(e);for(const s of[this.graph,...this.graphs.values()]){const i=s.nodes.filter(r=>r.type===n);for(const r of i)s.removeNode(r)}this.unregisterNodeType(n),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{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(s=>{const i=new op(s,this);this.addGraphTemplate(i)});const n=this._graph.load(e.graph);return this.events.loaded.emit(),n.forEach(s=>console.warn(s)),n}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(n=>n.save())};return this.hooks.save.execute(e)}}function ODt(t,e){const n=new Map;e.graphs.forEach(s=>{s.nodes.forEach(i=>n.set(i.id,i))}),t.forEach((s,i)=>{const r=n.get(i);r&&s.forEach((o,a)=>{const c=r.outputs[a];c&&(c.value=o)})})}class EO extends Error{constructor(){super("Cycle detected")}}function MDt(t){return typeof t=="string"}function yO(t,e){const n=new Map,s=new Map,i=new Map;let r,o;if(t instanceof oc)r=t.nodes,o=t.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=t,o=e}r.forEach(d=>{Object.values(d.inputs).forEach(u=>n.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>n.set(u.id,d.id))}),r.forEach(d=>{const u=o.filter(f=>f.from&&n.get(f.from.id)===d.id),h=new Set(u.map(f=>n.get(f.to.id)).filter(MDt));s.set(d.id,h),i.set(d,u)});const a=r.slice();o.forEach(d=>{const u=a.findIndex(h=>n.get(d.to.id)===h.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 h=u.values().next().value;if(u.delete(h),Array.from(s.values()).every(f=>!f.has(h))){const f=r.find(m=>m.id===h);a.push(f)}}}if(Array.from(s.values()).some(d=>d.size>0))throw new EO;return{calculationOrder:c,connectionsFromNode:i,interfaceIdToNodeId:n}}function IDt(t,e){try{return yO(t,e),!1}catch(n){if(n instanceof EO)return!0;throw n}}var Vn;(function(t){t.Running="Running",t.Idle="Idle",t.Paused="Paused",t.Stopped="Stopped"})(Vn||(Vn={}));class kDt{get status(){return this.isRunning?Vn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Mn(this),afterRun:new zt(this),statusChange:new zt(this),beforeNodeCalculation:new zt(this),afterNodeCalculation:new zt(this)},this.hooks={gatherCalculationData:new ss(this),transferData:new pO},this.recalculateOrder=!0,this.internalStatus=Vn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(n,s)=>{s.graph&&!s.graph.loading&&s.graph.activeTransactions===0&&this.internalOnChange(s,n??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(n,s)=>{this.recalculateOrder=!0,!s.loading&&s.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,n=>this.checkConnection(n.from,n.to))}start(){this.internalStatus===Vn.Stopped&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Vn.Idle&&(this.internalStatus=Vn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Vn.Paused&&(this.internalStatus=Vn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Vn.Idle||this.internalStatus===Vn.Paused)&&(this.internalStatus=Vn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...n){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,...n);return this.events.afterRun.emit(s),s}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,n){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(n.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,n.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};n=r}const s=new _O(e,n);let i=this.editor.graph.connections.slice();return n.allowMultipleConnections||(i=i.filter(r=>r.to!==n)),i.push(s),IDt(this.editor.graph.nodes,i)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:n.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===n)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const n=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(n,...e)}validateNodeCalculationOutput(e,n){if(typeof n!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(s=>{if(!(s in n))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${s}"`)})}internalOnChange(e,n){this.internalStatus===Vn.Idle&&this.onChange(this.recalculateOrder,e,n)}findInterfaceByTemplateId(e,n){for(const s of e)for(const i of[...Object.values(s.inputs),...Object.values(s.outputs)])if(i.templateId===n)return i;return null}}class DDt extends kDt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,n,s){this.order.has(e.id)||this.order.set(e.id,yO(e));const{calculationOrder:i,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of i){const c={};Object.entries(a.inputs).forEach(([u,h])=>{c[u]=this.getInterfaceValue(n,h.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,h]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(n,h.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),r.has(a)&&r.get(a).forEach(u=>{var h;const f=(h=Object.entries(a.outputs).find(([,_])=>_.id===u.from.id))===null||h===void 0?void 0:h[0];if(!f)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 m=this.hooks.transferData.execute(d[f],u);u.to.allowMultipleConnections?n.has(u.to.id)?n.get(u.to.id).push(m):n.set(u.to.id,[m]):n.set(u.to.id,m)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const n=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,n,e)}getInputValues(e){const n=new Map;for(const s of e.nodes)Object.values(s.inputs).forEach(i=>{i.connectionCount===0&&n.set(i.id,i.value)}),s.calculate||Object.values(s.outputs).forEach(i=>{n.set(i.id,i.value)});return n}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,n){if(!e.has(n))throw new Error(`Could not find value for interface ${n} -This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(n)}}let db=null;function FDt(t){db=t}function Cs(){if(!db)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:db}}function Ys(){const{viewModel:t}=Cs();return{graph:kd(t.value,"displayedGraph"),switchGraph:t.value.switchGraph}}function vO(t){const{graph:e}=Ys(),n=ct(null),s=ct(null);return{dragging:Je(()=>!!n.value),onPointerDown:c=>{n.value={x:c.pageX,y:c.pageY},s.value={x:t.value.x,y:t.value.y}},onPointerMove:c=>{if(n.value){const d=c.pageX-n.value.x,u=c.pageY-n.value.y;t.value.x=s.value.x+d/e.value.scaling,t.value.y=s.value.y+u/e.value.scaling}},onPointerUp:()=>{n.value=null,s.value=null}}}function SO(t,e,n){if(!e.template)return!1;if(Sa(e.template)===n)return!0;const s=t.graphTemplates.find(r=>Sa(r)===n);return s?s.nodes.filter(r=>r.type.startsWith(Wl)).some(r=>SO(t,e,r.type)):!1}function TO(t){return Je(()=>{const e=Array.from(t.value.editor.nodeTypes.entries()),n=new Set(e.map(([,i])=>i.category)),s=[];for(const i of n.values()){let r=e.filter(([,o])=>o.category===i);t.value.displayedGraph.template?r=r.filter(([o])=>!SO(t.value.editor,t.value.displayedGraph,o)):r=r.filter(([o])=>![ya,va].includes(o)),r.length>0&&s.push({name:i,nodeTypes:Object.fromEntries(r)})}return s.sort((i,r)=>i.name==="default"?-1:r.name==="default"||i.name>r.name?1:-1),s})}function xO(){const{graph:t}=Ys();return{transform:(n,s)=>{const i=n/t.value.scaling-t.value.panning.x,r=s/t.value.scaling-t.value.panning.y;return[i,r]}}}function BDt(){const{graph:t}=Ys();let e=[],n=-1,s={x:0,y:0};const i=Je(()=>t.value.panning),r=vO(i),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${t.value.scaling}) translate(${t.value.panning.x}px, ${t.value.panning.y}px)`})),a=(m,_,g)=>{const b=[m/t.value.scaling-t.value.panning.x,_/t.value.scaling-t.value.panning.y],E=[m/g-t.value.panning.x,_/g-t.value.panning.y],y=[E[0]-b[0],E[1]-b[1]];t.value.panning.x+=y[0],t.value.panning.y+=y[1],t.value.scaling=g},c=m=>{m.preventDefault();let _=m.deltaY;m.deltaMode===1&&(_*=32);const g=t.value.scaling*(1-_/3e3);a(m.offsetX,m.offsetY,g)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:m=>{if(e.push(m),r.onPointerDown(m),e.length===2){const{ax:_,ay:g,bx:b,by:E}=d();s={x:_+(b-_)/2,y:g+(E-g)/2}}},onPointerMove:m=>{for(let _=0;_0){const R=t.value.scaling*(1+(S-n)/500);a(s.x,s.y,R)}n=S}else r.onPointerMove(m)},onPointerUp:m=>{e=e.filter(_=>_.pointerId!==m.pointerId),n=-1,r.onPointerUp()},onMouseWheel:c}}var hs=(t=>(t[t.NONE=0]="NONE",t[t.ALLOWED=1]="ALLOWED",t[t.FORBIDDEN=2]="FORBIDDEN",t))(hs||{});const CO=Symbol();function GDt(){const{graph:t}=Ys(),e=ct(null),n=ct(null),s=a=>{e.value&&(e.value.mx=a.offsetX/t.value.scaling-t.value.panning.x,e.value.my=a.offsetY/t.value.scaling-t.value.panning.y)},i=()=>{if(n.value){if(e.value)return;const a=t.value.connections.find(c=>c.to===n.value);n.value.isInput&&a?(e.value={status:hs.NONE,from:a.from},t.value.removeConnection(a)):e.value={status:hs.NONE,from:n.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&n.value){if(e.value.from===n.value)return;t.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(n.value=a??null,a&&e.value){e.value.to=a;const c=t.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?hs.ALLOWED:hs.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);t.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=hs.NONE,t.value.connections.forEach(c=>{c.isInDanger=!1}))};return Yo(CO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:i,onMouseUp:r,hoveredOver:o}}function VDt(t){const e=ct(!1),n=ct(0),s=ct(0),i=TO(t),{transform:r}=xO(),o=Je(()=>{let u=[];const h={};for(const m of i.value){const _=Object.entries(m.nodeTypes).map(([g,b])=>({label:b.title,value:"addNode:"+g}));m.name==="default"?u=_:h[m.name]=_}const f=[...Object.entries(h).map(([m,_])=>({label:m,submenu:_}))];return f.length>0&&u.length>0&&f.push({isDivider:!0}),f.push(...u),f}),a=Je(()=>t.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...t.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!t.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){e.value=!0,n.value=u.offsetX,s.value=u.offsetY}function d(u){if(u.startsWith("addNode:")){const h=u.substring(8),f=t.value.editor.nodeTypes.get(h);if(!f)return;const m=Wn(new f.type);t.value.displayedGraph.addNode(m);const[_,g]=r(n.value,s.value);m.position.x=_,m.position.y=g}else if(u.startsWith("command:")){const h=u.substring(8);t.value.commandHandler.canExecuteCommand(h)&&t.value.commandHandler.executeCommand(h)}}return{show:e,x:n,y:s,items:a,open:c,onClick:d}}const zDt=cn({setup(){const{viewModel:t}=Cs(),{graph:e}=Ys();return{styles:Je(()=>{const s=t.value.settings.background,i=e.value.panning.x*e.value.scaling,r=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 ${i}px top ${r}px`,backgroundSize:`${c} ${d}`}})}}}),dn=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n};function HDt(t,e,n,s,i,r){return T(),w("div",{class:"background",style:Ht(t.styles)},null,4)}const qDt=dn(zDt,[["render",HDt]]);function $Dt(t){return Gw()?(uM(t),!0):!1}function oy(t){return typeof t=="function"?t():Lt(t)}const wO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const YDt=Object.prototype.toString,WDt=t=>YDt.call(t)==="[object Object]",Ad=()=>{},KDt=jDt();function jDt(){var t,e;return wO&&((t=window==null?void 0:window.navigator)==null?void 0:t.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 QDt(t,e,n=!1){return e.reduce((s,i)=>(i in t&&(!n||t[i]!==void 0)&&(s[i]=t[i]),s),{})}function XDt(t,e={}){if(!pn(t))return YM(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const s in t.value)n[s]=$M(()=>({get(){return t.value[s]},set(i){var r;if((r=oy(e.replaceRef))!=null?r:!0)if(Array.isArray(t.value)){const a=[...t.value];a[s]=i,t.value=a}else{const a={...t.value,[s]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[s]=i}}));return n}function _l(t){var e;const n=oy(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ay=wO?window:void 0;function Rl(...t){let e,n,s,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,s,i]=t,e=ay):[e,n,s,i]=t,!e)return Ad;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,h,f,m)=>(u.addEventListener(h,f,m),()=>u.removeEventListener(h,f,m)),c=In(()=>[_l(e),oy(i)],([u,h])=>{if(o(),!u)return;const f=WDt(h)?{...h}:h;r.push(...n.flatMap(m=>s.map(_=>a(u,m,_,f))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return $Dt(d),d}let Tw=!1;function RO(t,e,n={}){const{window:s=ay,ignore:i=[],capture:r=!0,detectIframe:o=!1}=n;if(!s)return Ad;KDt&&!Tw&&(Tw=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",Ad)),s.document.documentElement.addEventListener("click",Ad));let a=!0;const c=f=>i.some(m=>{if(typeof m=="string")return Array.from(s.document.querySelectorAll(m)).some(_=>_===f.target||f.composedPath().includes(_));{const _=_l(m);return _&&(f.target===_||f.composedPath().includes(_))}}),u=[Rl(s,"click",f=>{const m=_l(t);if(!(!m||m===f.target||f.composedPath().includes(m))){if(f.detail===0&&(a=!c(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Rl(s,"pointerdown",f=>{const m=_l(t);a=!c(f)&&!!(m&&!f.composedPath().includes(m))},{passive:!0}),o&&Rl(s,"blur",f=>{setTimeout(()=>{var m;const _=_l(t);((m=s.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(_!=null&&_.contains(s.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const AO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},ZDt=Object.keys(AO);function JDt(t={}){const{target:e=ay}=t,n=ct(!1),s=ct(t.initialValue||{});Object.assign(s.value,AO,s.value);const i=r=>{n.value=!0,!(t.pointerTypes&&!t.pointerTypes.includes(r.pointerType))&&(s.value=QDt(r,ZDt,!1))};if(e){const r={passive:!0};Rl(e,["pointerdown","pointermove","pointerup"],i,r),Rl(e,"pointerleave",()=>n.value=!1,r)}return{...XDt(s),isInside:n}}const eLt=["onMouseenter","onMouseleave","onClick"],tLt={class:"flex-fill"},nLt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},sLt=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),iLt=[sLt],ly=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(t,{emit:e}){const n=t,s=e;let i=null;const r=ct(null),o=ct(-1),a=ct(0),c=ct({x:!1,y:!1}),d=Je(()=>n.flippable&&(c.value.x||n.isFlipped.x)),u=Je(()=>n.flippable&&(c.value.y||n.isFlipped.y)),h=Je(()=>{const y={};return n.isNested||(y.top=(u.value?n.y-a.value:n.y)+"px",y.left=n.x+"px"),y}),f=Je(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":n.isNested})),m=Je(()=>n.items.map(y=>({...y,hover:!1})));In([()=>n.y,()=>n.items],()=>{var y,v,S,R;a.value=n.items.length*30;const C=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,A=((R=(S=r.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!n.isNested&&n.x>C*.75,c.value.y=!n.isNested&&n.y+a.value>A-20}),RO(r,()=>{n.modelValue&&s("update:modelValue",!1)});const _=y=>{!y.submenu&&y.value&&(s("click",y.value),s("update:modelValue",!1))},g=y=>{s("click",y),o.value=-1,n.isNested||s("update:modelValue",!1)},b=(y,v)=>{n.items[v].submenu&&(o.value=v,i!==null&&(clearTimeout(i),i=null))},E=(y,v)=>{n.items[v].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,v)=>{const S=tt("ContextMenu",!0);return T(),dt(Us,{name:"slide-fade"},{default:Ie(()=>[P(l("div",{ref_key:"el",ref:r,class:Ge(["baklava-context-menu",f.value]),style:Ht(h.value)},[(T(!0),w(Pe,null,Ke(m.value,(R,C)=>(T(),w(Pe,null,[R.isDivider?(T(),w("div",{key:`d-${C}`,class:"divider"})):(T(),w("div",{key:`i-${C}`,class:Ge(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>b(A,C),onMouseleave:A=>E(A,C),onClick:j(A=>_(R),["stop","prevent"])},[l("div",tLt,K(R.label),1),R.submenu?(T(),w("div",nLt,iLt)):G("",!0),R.submenu?(T(),dt(S,{key:1,"model-value":o.value===C,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:y.flippable,onClick:g},null,8,["model-value","items","is-flipped","flippable"])):G("",!0)],42,eLt))],64))),256))],6),[[wt,y.modelValue]])]),_:1})}}}),rLt={},oLt={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"},aLt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),lLt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),cLt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),dLt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),uLt=[aLt,lLt,cLt,dLt];function pLt(t,e){return T(),w("svg",oLt,uLt)}const NO=dn(rLt,[["render",pLt]]),_Lt=["id"],hLt={key:0,class:"__tooltip"},fLt={key:2,class:"align-middle"},xw=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(t){const e=(b,E=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>E?y.slice(0,E)+"...":y},n=t,{viewModel:s}=Cs(),{hoveredOver:i,temporaryConnection:r}=Zn(CO),o=ct(null),a=Je(()=>n.intf.connectionCount>0),c=ct(!1),d=Je(()=>s.value.settings.displayValueOnHover&&c.value),u=Je(()=>({"--input":n.intf.isInput,"--output":!n.intf.isInput,"--connected":a.value})),h=Je(()=>n.intf.component&&(!n.intf.isInput||!n.intf.port||n.intf.connectionCount===0)),f=()=>{c.value=!0,i(n.intf)},m=()=>{c.value=!1,i(void 0)},_=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:n.intf,el:o.value})},g=()=>{const b=s.value.displayedGraph.sidebar;b.nodeId=n.node.id,b.optionName=n.intf.name,b.visible=!0};return ci(_),Ql(_),(b,E)=>{var y;return T(),w("div",{id:b.intf.id,ref_key:"el",ref:o,class:Ge(["baklava-node-interface",u.value])},[b.intf.port?(T(),w("div",{key:0,class:Ge(["__port",{"--selected":((y=Lt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:m},[un(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),w("span",hLt,K(e(b.intf.value)),1)):G("",!0)])],34)):G("",!0),h.value?(T(),dt(Tu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":E[0]||(E[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:g},null,40,["modelValue","node","intf"])):(T(),w("span",fLt,K(b.intf.name),1))],10,_Lt)}}}),mLt=["id","data-node-type"],gLt={class:"__title-label"},bLt={class:"__menu"},ELt={class:"__outputs"},yLt={class:"__inputs"},vLt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(t,{emit:e}){const n=t,s=e,{viewModel:i}=Cs(),{graph:r,switchGraph:o}=Ys(),a=ct(null),c=ct(!1),d=ct(""),u=ct(null),h=ct(!1),f=ct(!1),m=Je(()=>{const B=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return n.node.type.startsWith(Wl)&&B.push({value:"editSubgraph",label:"Edit Subgraph"}),B}),_=Je(()=>({"--selected":n.selected,"--dragging":n.dragging,"--two-column":!!n.node.twoColumn})),g=Je(()=>{var B,H;return{top:`${((B=n.node.position)==null?void 0:B.y)??0}px`,left:`${((H=n.node.position)==null?void 0:H.x)??0}px`,"--width":`${n.node.width??i.value.settings.nodes.defaultWidth}px`}}),b=Je(()=>Object.values(n.node.inputs).filter(B=>!B.hidden)),E=Je(()=>Object.values(n.node.outputs).filter(B=>!B.hidden)),y=()=>{s("select")},v=B=>{n.selected||y(),s("start-drag",B)},S=()=>{f.value=!0},R=async B=>{var H;switch(B){case"delete":r.value.removeNode(n.node);break;case"rename":d.value=n.node.title,c.value=!0,await Le(),(H=u.value)==null||H.focus();break;case"editSubgraph":o(n.node.template);break}},C=()=>{n.node.title=d.value,c.value=!1},A=()=>{a.value&&i.value.hooks.renderNode.execute({node:n.node,el:a.value})},I=B=>{h.value=!0,B.preventDefault()},x=B=>{if(!h.value)return;const H=n.node.width+B.movementX/r.value.scaling,te=i.value.settings.nodes.minWidth,k=i.value.settings.nodes.maxWidth;n.node.width=Math.max(te,Math.min(k,H))},O=()=>{h.value=!1};return ci(()=>{A(),window.addEventListener("mousemove",x),window.addEventListener("mouseup",O)}),Ql(A),Aa(()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",O)}),(B,H)=>(T(),w("div",{id:B.node.id,ref_key:"el",ref:a,class:Ge(["baklava-node",_.value]),style:Ht(g.value),"data-node-type":B.node.type,onPointerdown:y},[Lt(i).settings.nodes.resizable?(T(),w("div",{key:0,class:"__resize-handle",onMousedown:I},null,32)):G("",!0),un(B.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:j(v,["self","stop"])},[c.value?P((T(),w("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":H[1]||(H[1]=te=>d.value=te),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:C,onKeydown:Vs(C,["enter"])},null,544)),[[pe,d.value]]):(T(),w(Pe,{key:0},[l("div",gLt,K(B.node.title),1),l("div",bLt,[V(NO,{class:"--clickable",onClick:S}),V(ly,{modelValue:f.value,"onUpdate:modelValue":H[0]||(H[0]=te=>f.value=te),x:0,y:0,items:m.value,onClick:R},null,8,["modelValue","items"])])],64))],32)]),un(B.$slots,"content",{},()=>[l("div",{class:"__content",onKeydown:H[2]||(H[2]=Vs(j(()=>{},["stop"]),["delete"]))},[l("div",ELt,[(T(!0),w(Pe,null,Ke(E.value,te=>un(B.$slots,"nodeInterface",{key:te.id,type:"output",node:B.node,intf:te},()=>[V(xw,{node:B.node,intf:te},null,8,["node","intf"])])),128))]),l("div",yLt,[(T(!0),w(Pe,null,Ke(b.value,te=>un(B.$slots,"nodeInterface",{key:te.id,type:"input",node:B.node,intf:te},()=>[V(xw,{node:B.node,intf:te},null,8,["node","intf"])])),128))])],32)])],46,mLt))}}),SLt=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:hs.NONE},isTemporary:{type:Boolean,default:!1}},setup(t){const{viewModel:e}=Cs(),{graph:n}=Ys(),s=(o,a)=>{const c=(o+n.value.panning.x)*n.value.scaling,d=(a+n.value.panning.y)*n.value.scaling;return[c,d]},i=Je(()=>{const[o,a]=s(t.x1,t.y1),[c,d]=s(t.x2,t.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}`}}),r=Je(()=>({"--temporary":t.isTemporary,"--allowed":t.state===hs.ALLOWED,"--forbidden":t.state===hs.FORBIDDEN}));return{d:i,classes:r}}}),TLt=["d"];function xLt(t,e,n,s,i,r){return T(),w("path",{class:Ge(["baklava-connection",t.classes]),d:t.d},null,10,TLt)}const OO=dn(SLt,[["render",xLt]]);function CLt(t){return document.getElementById(t.id)}function Ta(t){const e=document.getElementById(t.id),n=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:n&&n.length>0?n[0]:null}}const wLt=cn({components:{"connection-view":OO},props:{connection:{type:Object,required:!0}},setup(t){const{graph:e}=Ys();let n;const s=ct({x1:0,y1:0,x2:0,y2:0}),i=Je(()=>t.connection.isInDanger?hs.FORBIDDEN:hs.NONE),r=Je(()=>{var d;return(d=e.value.findNodeById(t.connection.from.nodeId))==null?void 0:d.position}),o=Je(()=>{var d;return(d=e.value.findNodeById(t.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=Ta(t.connection.from),u=Ta(t.connection.to);d.node&&u.node&&(n||(n=new ResizeObserver(()=>{c()}),n.observe(d.node),n.observe(u.node)));const[h,f]=a(d),[m,_]=a(u);s.value={x1:h,y1:f,x2:m,y2:_}};return ci(async()=>{await Le(),c()}),Aa(()=>{n&&n.disconnect()}),In([r,o],()=>c(),{deep:!0}),{d:s,state:i}}});function RLt(t,e,n,s,i,r){const o=tt("connection-view");return T(),dt(o,{x1:t.d.x1,y1:t.d.y1,x2:t.d.x2,y2:t.d.y2,state:t.state},null,8,["x1","y1","x2","y2","state"])}const ALt=dn(wLt,[["render",RLt]]);function cu(t){return t.node&&t.interface&&t.port?[t.node.offsetLeft+t.interface.offsetLeft+t.port.offsetLeft+t.port.clientWidth/2,t.node.offsetTop+t.interface.offsetTop+t.port.offsetTop+t.port.clientHeight/2]:[0,0]}const NLt=cn({components:{"connection-view":OO},props:{connection:{type:Object,required:!0}},setup(t){const e=Je(()=>t.connection?t.connection.status:hs.NONE);return{d:Je(()=>{if(!t.connection)return{input:[0,0],output:[0,0]};const s=cu(Ta(t.connection.from)),i=t.connection.to?cu(Ta(t.connection.to)):[t.connection.mx||s[0],t.connection.my||s[1]];return t.connection.from.isInput?{input:i,output:s}:{input:s,output:i}}),status:e}}});function OLt(t,e,n,s,i,r){const o=tt("connection-view");return T(),dt(o,{x1:t.d.input[0],y1:t.d.input[1],x2:t.d.output[0],y2:t.d.output[1],state:t.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const MLt=dn(NLt,[["render",OLt]]),ILt=cn({setup(){const{viewModel:t}=Cs(),{graph:e}=Ys(),n=ct(null),s=kd(t.value.settings.sidebar,"width"),i=Je(()=>t.value.settings.sidebar.resizable),r=Je(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=Je(()=>({width:`${s.value}px`})),a=Je(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=h=>{var f,m;const _=((m=(f=n.value)==null?void 0:f.parentElement)==null?void 0:m.getBoundingClientRect().width)??500;let g=s.value-h.movementX;g<300?g=300:g>.9*_&&(g=.9*_),s.value=g};return{el:n,graph:e,resizable:i,node:r,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),kLt={class:"__header"},DLt={class:"__node-name"};function LLt(t,e,n,s,i,r){return T(),w("div",{ref:"el",class:Ge(["baklava-sidebar",{"--open":t.graph.sidebar.visible}]),style:Ht(t.styles)},[t.resizable?(T(),w("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>t.startResize&&t.startResize(...o))},null,32)):G("",!0),l("div",kLt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>t.close&&t.close(...o))},"×"),l("div",DLt,[l("b",null,K(t.node?t.node.title:""),1)])]),(T(!0),w(Pe,null,Ke(t.displayedInterfaces,o=>(T(),w("div",{key:o.id,class:"__interface"},[(T(),dt(Tu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:t.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const PLt=dn(ILt,[["render",LLt]]),ULt=cn({__name:"Minimap",setup(t){const{viewModel:e}=Cs(),{graph:n}=Ys(),s=ct(null),i=ct(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var C,A;if(!r)return;r.canvas.width=s.value.offsetWidth,r.canvas.height=s.value.offsetHeight;const I=new Map,x=new Map;for(const k of n.value.nodes){const $=CLt(k),q=($==null?void 0:$.offsetWidth)??0,U=($==null?void 0:$.offsetHeight)??0,W=((C=k.position)==null?void 0:C.x)??0,ne=((A=k.position)==null?void 0:A.y)??0;I.set(k,{x1:W,y1:ne,x2:W+q,y2:ne+U}),x.set(k,$)}const O={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const k of I.values())k.x1O.x2&&(O.x2=k.x2),k.y2>O.y2&&(O.y2=k.y2);const B=50;O.x1-=B,O.y1-=B,O.x2+=B,O.y2+=B,a=O;const H=r.canvas.width/r.canvas.height,te=(a.x2-a.x1)/(a.y2-a.y1);if(H>te){const k=(H-te)*(a.y2-a.y1)*.5;a.x1-=k,a.x2+=k}else{const k=a.x2-a.x1,$=a.y2-a.y1,q=(k-H*$)/H*.5;a.y1-=q,a.y2+=q}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const k of n.value.connections){const[$,q]=cu(Ta(k.from)),[U,W]=cu(Ta(k.to)),[ne,le]=u($,q),[me,Se]=u(U,W);if(r.beginPath(),r.moveTo(ne,le),e.value.settings.useStraightConnections)r.lineTo(me,Se);else{const de=.3*Math.abs(ne-me);r.bezierCurveTo(ne+de,le,me-de,Se,me,Se)}r.stroke()}r.strokeStyle="lightgray";for(const[k,$]of I.entries()){const[q,U]=u($.x1,$.y1),[W,ne]=u($.x2,$.y2);r.fillStyle=f(x.get(k)),r.beginPath(),r.rect(q,U,W-q,ne-U),r.fill(),r.stroke()}if(i.value){const k=_(),[$,q]=u(k.x1,k.y1),[U,W]=u(k.x2,k.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect($,q,U-$,W-q)}},u=(C,A)=>[(C-a.x1)/(a.x2-a.x1)*r.canvas.width,(A-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(C,A)=>[C*(a.x2-a.x1)/r.canvas.width+a.x1,A*(a.y2-a.y1)/r.canvas.height+a.y1],f=C=>{if(C){const A=C.querySelector(".__content");if(A){const x=m(A);if(x)return x}const I=m(C);if(I)return I}return"gray"},m=C=>{const A=getComputedStyle(C).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},_=()=>{const C=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,I=C/n.value.scaling-n.value.panning.x,x=A/n.value.scaling-n.value.panning.y;return{x1:-n.value.panning.x,y1:-n.value.panning.y,x2:I,y2:x}},g=C=>{C.button===0&&(o=!0,b(C))},b=C=>{if(o){const[A,I]=h(C.offsetX,C.offsetY),x=_(),O=(x.x2-x.x1)/2,B=(x.y2-x.y1)/2;n.value.panning.x=-(A-O),n.value.panning.y=-(I-B)}},E=()=>{o=!1},y=()=>{i.value=!0},v=()=>{i.value=!1,E()};In([i,n.value.panning,()=>n.value.scaling,()=>n.value.connections.length],()=>{d()});const S=Je(()=>n.value.nodes.map(C=>C.position)),R=Je(()=>n.value.nodes.map(C=>C.width));return In([S,R],()=>{d()},{deep:!0}),ci(()=>{r=s.value.getContext("2d"),r.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),Aa(()=>{clearInterval(c)}),(C,A)=>(T(),w("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:j(g,["self"]),onMousemove:j(b,["self"]),onMouseup:E},null,544))}}),FLt=cn({components:{ContextMenu:ly,VerticalDots:NO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(t){const{viewModel:e}=Cs(),{switchGraph:n}=Ys(),s=ct(!1),i=Je(()=>t.type.startsWith(Wl));return{showContextMenu:s,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:c=>{const d=t.type.substring(Wl.length),u=e.value.editor.graphTemplates.find(h=>h.id===d);if(u)switch(c){case"editSubgraph":n(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),BLt=["data-node-type"],GLt={class:"__title"},VLt={class:"__title-label"},zLt={key:0,class:"__menu"};function HLt(t,e,n,s,i,r){const o=tt("vertical-dots"),a=tt("context-menu");return T(),w("div",{class:"baklava-node --palette","data-node-type":t.type},[l("div",GLt,[l("div",VLt,K(t.title),1),t.hasContextMenu?(T(),w("div",zLt,[V(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=j(()=>{},["stop","prevent"])),onClick:j(t.openContextMenu,["stop","prevent"])},null,8,["onClick"]),V(a,{modelValue:t.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>t.showContextMenu=c),x:-100,y:0,items:t.contextMenuItems,onClick:t.onContextMenuClick,onPointerdown:e[2]||(e[2]=j(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):G("",!0)])],8,BLt)}const Cw=dn(FLt,[["render",HLt]]),qLt={class:"baklava-node-palette"},$Lt={key:0},YLt=cn({__name:"NodePalette",setup(t){const{viewModel:e}=Cs(),{x:n,y:s}=JDt(),{transform:i}=xO(),r=TO(e),o=Zn("editorEl"),a=ct(null),c=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:h}=o.value.getBoundingClientRect();return{top:`${s.value-h}px`,left:`${n.value-u}px`}}),d=(u,h)=>{a.value={type:u,nodeInformation:h};const f=()=>{const m=Wn(new h.type);e.value.displayedGraph.addNode(m);const _=o.value.getBoundingClientRect(),[g,b]=i(n.value-_.left,s.value-_.top);m.position.x=g,m.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(u,h)=>(T(),w(Pe,null,[l("div",qLt,[(T(!0),w(Pe,null,Ke(Lt(r),f=>(T(),w("section",{key:f.name},[f.name!=="default"?(T(),w("h1",$Lt,K(f.name),1)):G("",!0),(T(!0),w(Pe,null,Ke(f.nodeTypes,(m,_)=>(T(),dt(Cw,{key:_,type:_,title:m.title,onPointerdown:g=>d(_,m)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),V(Us,{name:"fade"},{default:Ie(()=>[a.value?(T(),w("div",{key:0,class:"baklava-dragged-node",style:Ht(c.value)},[V(Cw,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):G("",!0)]),_:1})],64))}});let ud;const WLt=new Uint8Array(16);function KLt(){if(!ud&&(ud=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ud))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ud(WLt)}const Sn=[];for(let t=0;t<256;++t)Sn.push((t+256).toString(16).slice(1));function jLt(t,e=0){return Sn[t[e+0]]+Sn[t[e+1]]+Sn[t[e+2]]+Sn[t[e+3]]+"-"+Sn[t[e+4]]+Sn[t[e+5]]+"-"+Sn[t[e+6]]+Sn[t[e+7]]+"-"+Sn[t[e+8]]+Sn[t[e+9]]+"-"+Sn[t[e+10]]+Sn[t[e+11]]+Sn[t[e+12]]+Sn[t[e+13]]+Sn[t[e+14]]+Sn[t[e+15]]}const QLt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ww={randomUUID:QLt};function du(t,e,n){if(ww.randomUUID&&!e&&!t)return ww.randomUUID();t=t||{};const s=t.random||(t.rng||KLt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=s[i];return e}return jLt(s)}const Kl="SAVE_SUBGRAPH";function XLt(t,e){const n=()=>{const s=t.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(Kl,{canExecute:()=>{var s;return t.value!==((s=t.value.editor)==null?void 0:s.graph)},execute:n})}const ZLt={},JLt={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"},ePt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),tPt=[ePt];function nPt(t,e){return T(),w("svg",JLt,tPt)}const sPt=dn(ZLt,[["render",nPt]]),iPt=cn({components:{"i-arrow":sPt},props:{intf:{type:Object,required:!0}},setup(t){const e=ct(null),n=ct(!1),s=Je(()=>t.intf.items.find(o=>typeof o=="string"?o===t.intf.value:o.value===t.intf.value)),i=Je(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),r=o=>{t.intf.value=typeof o=="string"?o:o.value};return RO(e,()=>{n.value=!1}),{el:e,open:n,selectedItem:s,selectedText:i,setSelected:r}}}),rPt=["title"],oPt={class:"__selected"},aPt={class:"__text"},lPt={class:"__icon"},cPt={class:"__dropdown"},dPt={class:"item --header"},uPt=["onClick"];function pPt(t,e,n,s,i,r){const o=tt("i-arrow");return T(),w("div",{ref:"el",class:Ge(["baklava-select",{"--open":t.open}]),title:t.intf.name,onClick:e[0]||(e[0]=a=>t.open=!t.open)},[l("div",oPt,[l("div",aPt,K(t.selectedText),1),l("div",lPt,[V(o)])]),V(Us,{name:"slide-fade"},{default:Ie(()=>[P(l("div",cPt,[l("div",dPt,K(t.intf.name),1),(T(!0),w(Pe,null,Ke(t.intf.items,(a,c)=>(T(),w("div",{key:c,class:Ge(["item",{"--active":a===t.selectedItem}]),onClick:d=>t.setSelected(a)},K(typeof a=="string"?a:a.text),11,uPt))),128))],512),[[wt,t.open]])]),_:1})],10,rPt)}const _Pt=dn(iPt,[["render",pPt]]);class hPt extends Xt{constructor(e,n,s){super(e,n),this.component=jl(_Pt),this.items=s}}const fPt=cn({props:{intf:{type:Object,required:!0}}});function mPt(t,e,n,s,i,r){return T(),w("div",null,K(t.intf.value),1)}const gPt=dn(fPt,[["render",mPt]]);class bPt extends Xt{constructor(e,n){super(e,n),this.component=jl(gPt),this.setPort(!1)}}const EPt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){return{v:Je({get:()=>t.modelValue,set:s=>{e("update:modelValue",s)}})}}}),yPt=["placeholder","title"];function vPt(t,e,n,s,i,r){return T(),w("div",null,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.v=o),type:"text",class:"baklava-input",placeholder:t.intf.name,title:t.intf.name},null,8,yPt),[[pe,t.v]])])}const SPt=dn(EPt,[["render",vPt]]);class ac extends Xt{constructor(){super(...arguments),this.component=jl(SPt)}}class MO extends gO{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new ac("Name","Input").setPort(!1)},this.outputs={placeholder:new Xt("Connection",void 0)}}}class IO extends bO{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new ac("Name","Output").setPort(!1),placeholder:new Xt("Connection",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)}}}const kO="CREATE_SUBGRAPH",Rw=[ya,va];function TPt(t,e,n){const s=()=>t.value.selectedNodes.filter(r=>!Rw.includes(r.type)).length>0,i=()=>{const{viewModel:r}=Cs(),o=t.value,a=t.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(x=>!Rw.includes(x.type)),d=c.flatMap(x=>Object.values(x.inputs)),u=c.flatMap(x=>Object.values(x.outputs)),h=o.connections.filter(x=>!u.includes(x.from)&&d.includes(x.to)),f=o.connections.filter(x=>u.includes(x.from)&&!d.includes(x.to)),m=o.connections.filter(x=>u.includes(x.from)&&d.includes(x.to)),_=c.map(x=>x.save()),g=m.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:E,xRight:y,yTop:v}=xPt(c);console.log(E,y,v);for(const[x,O]of h.entries()){const B=new MO;B.inputs.name.value=O.to.name,_.push({...B.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),g.push({id:du(),from:B.outputs.placeholder.id,to:O.to.id}),b.set(O.to.id,B.graphInterfaceId)}for(const[x,O]of f.entries()){const B=new IO;B.inputs.name.value=O.from.name,_.push({...B.save(),position:{x:E+100,y:v+x*200}}),g.push({id:du(),from:O.from.id,to:B.inputs.placeholder.id}),b.set(O.from.id,B.graphInterfaceId)}const S=Wn(new op({connections:g,nodes:_,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Sa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const C=Wn(new R.type);o.addNode(C);const A=Math.round(c.map(x=>x.position.x).reduce((x,O)=>x+O,0)/c.length),I=Math.round(c.map(x=>x.position.y).reduce((x,O)=>x+O,0)/c.length);C.position.x=A,C.position.y=I,h.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,C.inputs[b.get(x.to.id)])}),f.forEach(x=>{o.removeConnection(x),o.addConnection(C.outputs[b.get(x.from.id)],x.to)}),c.forEach(x=>o.removeNode(x)),e.canExecuteCommand(Kl)&&e.executeCommand(Kl),n(S),t.value.panning={...o.panning},t.value.scaling=o.scaling};e.registerCommand(kO,{canExecute:s,execute:i})}function xPt(t){const e=t.reduce((i,r)=>{const o=r.position.x;return o{const o=r.position.y;return o{const o=r.position.x+r.width;return o>i?o:i},-1/0),xRight:e,yTop:n}}const Aw="DELETE_NODES";function CPt(t,e){e.registerCommand(Aw,{canExecute:()=>t.value.selectedNodes.length>0,execute(){t.value.selectedNodes.forEach(n=>t.value.removeNode(n))}}),e.registerHotkey(["Delete"],Aw)}const DO="SWITCH_TO_MAIN_GRAPH";function wPt(t,e,n){e.registerCommand(DO,{canExecute:()=>t.value!==t.value.editor.graph,execute:()=>{e.executeCommand(Kl),n(t.value.editor.graph)}})}function RPt(t,e,n){CPt(t,e),TPt(t,e,n),XLt(t,e),wPt(t,e,n)}class Nw{constructor(e,n){this.type=e,e==="addNode"?this.nodeId=n:this.nodeState=n}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 n=e.editor.nodeTypes.get(this.nodeState.type);if(!n)return;const s=new n.type;e.addNode(s),s.load(this.nodeState),this.nodeId=s.id}removeNode(e){const n=e.nodes.find(s=>s.id===this.nodeId);n&&(this.nodeState=n.save(),e.removeNode(n))}}class Ow{constructor(e,n){if(this.type=e,e==="addConnection")this.connectionId=n;else{const s=n;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 n=e.findNodeInterface(this.connectionState.from),s=e.findNodeInterface(this.connectionState.to);!n||!s||e.addConnection(n,s)}removeConnection(e){const n=e.connections.find(s=>s.id===this.connectionId);n&&(this.connectionState={id:n.id,from:n.from.id,to:n.to.id},e.removeConnection(n))}}class APt{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 n=this.steps.length-1;n>=0;n--)this.steps[n].undo(e)}redo(e){for(let n=0;n{if(!r.value)if(a.value)c.value.push(b);else for(o.value!==i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),i.value.push(b),o.value++;i.value.length>s.value;)i.value.shift()},u=()=>{a.value=!0},h=()=>{a.value=!1,c.value.length>0&&(d(new APt(c.value)),c.value=[])},f=()=>i.value.length!==0&&o.value!==-1,m=()=>{f()&&(r.value=!0,i.value[o.value--].undo(t.value),r.value=!1)},_=()=>i.value.length!==0&&o.value{_()&&(r.value=!0,i.value[++o.value].redo(t.value),r.value=!1)};return In(t,(b,E)=>{E&&(E.events.addNode.unsubscribe(n),E.events.removeNode.unsubscribe(n),E.events.addConnection.unsubscribe(n),E.events.removeConnection.unsubscribe(n)),b&&(b.events.addNode.subscribe(n,y=>{d(new Nw("addNode",y.id))}),b.events.removeNode.subscribe(n,y=>{d(new Nw("removeNode",y.save()))}),b.events.addConnection.subscribe(n,y=>{d(new Ow("addConnection",y.id))}),b.events.removeConnection.subscribe(n,y=>{d(new Ow("removeConnection",y))}))},{immediate:!0}),e.registerCommand(ub,{canExecute:f,execute:m}),e.registerCommand(pb,{canExecute:_,execute:g}),e.registerCommand(LO,{canExecute:()=>!a.value,execute:u}),e.registerCommand(PO,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],ub),e.registerHotkey(["Control","y"],pb),Wn({maxSteps:s})}const _b="COPY",hb="PASTE",OPt="CLEAR_CLIPBOARD";function MPt(t,e,n){const s=Symbol("ClipboardToken"),i=ct(""),r=ct(""),o=Je(()=>!i.value),a=()=>{i.value="",r.value=""},c=()=>{const h=t.value.selectedNodes.flatMap(m=>[...Object.values(m.inputs),...Object.values(m.outputs)]),f=t.value.connections.filter(m=>h.includes(m.from)||h.includes(m.to)).map(m=>({from:m.from.id,to:m.to.id}));r.value=JSON.stringify(f),i.value=JSON.stringify(t.value.selectedNodes.map(m=>m.save()))},d=(h,f,m)=>{for(const _ of h){let g;if((!m||m==="input")&&(g=Object.values(_.inputs).find(b=>b.id===f)),!g&&(!m||m==="output")&&(g=Object.values(_.outputs).find(b=>b.id===f)),g)return g}},u=()=>{if(o.value)return;const h=new Map,f=JSON.parse(i.value),m=JSON.parse(r.value),_=[],g=[],b=t.value;n.executeCommand(LO);for(const E of f){const y=e.value.nodeTypes.get(E.type);if(!y){console.warn(`Node type ${E.type} not registered`);return}const v=new y.type,S=v.id;_.push(v),v.hooks.beforeLoad.subscribe(s,R=>{const C=R;return C.position&&(C.position.x+=100,C.position.y+=100),v.hooks.beforeLoad.unsubscribe(s),C}),b.addNode(v),v.load({...E,id:S}),v.id=S,h.set(E.id,S);for(const R of Object.values(v.inputs)){const C=du();h.set(R.id,C),R.id=C}for(const R of Object.values(v.outputs)){const C=du();h.set(R.id,C),R.id=C}}for(const E of m){const y=d(_,h.get(E.from),"output"),v=d(_,h.get(E.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&g.push(S)}return t.value.selectedNodes=_,n.executeCommand(PO),{newNodes:_,newConnections:g}};return n.registerCommand(_b,{canExecute:()=>t.value.selectedNodes.length>0,execute:c}),n.registerHotkey(["Control","c"],_b),n.registerCommand(hb,{canExecute:()=>!o.value,execute:u}),n.registerHotkey(["Control","v"],hb),n.registerCommand(OPt,{canExecute:()=>!0,execute:a}),Wn({isEmpty:o})}const IPt="OPEN_SIDEBAR";function kPt(t,e){e.registerCommand(IPt,{execute:n=>{t.value.sidebar.nodeId=n,t.value.sidebar.visible=!0},canExecute:()=>!0})}function DPt(t,e){kPt(t,e)}const LPt={},PPt={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"},UPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),FPt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),BPt=[UPt,FPt];function GPt(t,e){return T(),w("svg",PPt,BPt)}const VPt=dn(LPt,[["render",GPt]]),zPt={},HPt={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"},qPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),$Pt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),YPt=[qPt,$Pt];function WPt(t,e){return T(),w("svg",HPt,YPt)}const KPt=dn(zPt,[["render",WPt]]),jPt={},QPt={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"},XPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ZPt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),JPt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),e3t=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),t3t=[XPt,ZPt,JPt,e3t];function n3t(t,e){return T(),w("svg",QPt,t3t)}const s3t=dn(jPt,[["render",n3t]]),i3t={},r3t={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"},o3t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a3t=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),l3t=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),c3t=[o3t,a3t,l3t];function d3t(t,e){return T(),w("svg",r3t,c3t)}const u3t=dn(i3t,[["render",d3t]]),p3t={},_3t={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"},h3t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),f3t=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),m3t=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),g3t=[h3t,f3t,m3t];function b3t(t,e){return T(),w("svg",_3t,g3t)}const E3t=dn(p3t,[["render",b3t]]),y3t={},v3t={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"},S3t=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),T3t=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),x3t=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),C3t=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),w3t=[S3t,T3t,x3t,C3t];function R3t(t,e){return T(),w("svg",v3t,w3t)}const A3t=dn(y3t,[["render",R3t]]),N3t={},O3t={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"},M3t=Na('',6),I3t=[M3t];function k3t(t,e){return T(),w("svg",O3t,I3t)}const D3t=dn(N3t,[["render",k3t]]),L3t=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:t}=Cs();return{viewModel:t}}}),P3t=["disabled","title"];function U3t(t,e,n,s,i,r){return T(),w("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!t.viewModel.commandHandler.canExecuteCommand(t.command),title:t.title,onClick:e[0]||(e[0]=o=>t.viewModel.commandHandler.executeCommand(t.command))},[t.icon?(T(),dt(Tu(t.icon),{key:0})):(T(),w(Pe,{key:1},[et(K(t.title),1)],64))],8,P3t)}const F3t=dn(L3t,[["render",U3t]]),B3t=cn({components:{ToolbarButton:F3t},setup(){const{viewModel:t}=Cs();return{isSubgraph:Je(()=>t.value.displayedGraph!==t.value.editor.graph),commands:[{command:_b,title:"Copy",icon:E3t},{command:hb,title:"Paste",icon:u3t},{command:ub,title:"Undo",icon:VPt},{command:pb,title:"Redo",icon:KPt},{command:kO,title:"Create Subgraph",icon:D3t}],subgraphCommands:[{command:Kl,title:"Save Subgraph",icon:A3t},{command:DO,title:"Back to Main Graph",icon:s3t}]}}}),G3t={class:"baklava-toolbar"};function V3t(t,e,n,s,i,r){const o=tt("toolbar-button");return T(),w("div",G3t,[(T(!0),w(Pe,null,Ke(t.commands,a=>(T(),dt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),t.isSubgraph?(T(!0),w(Pe,{key:0},Ke(t.subgraphCommands,a=>(T(),dt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):G("",!0)])}const z3t=dn(B3t,[["render",V3t]]),H3t={class:"connections-container"},q3t=cn({__name:"Editor",props:{viewModel:{}},setup(t){const e=t,n=Symbol("EditorToken"),s=kd(e,"viewModel");FDt(s);const i=ct(null);Yo("editorEl",i);const r=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(A=>vO(kd(A,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),c=Je(()=>e.viewModel.displayedGraph.selectedNodes),d=BDt(),u=GDt(),h=VDt(s),f=Je(()=>({...d.styles.value})),m=ct(0);e.viewModel.editor.hooks.load.subscribe(n,A=>(m.value++,A));const _=A=>{d.onPointerMove(A),u.onMouseMove(A)},g=A=>{A.button===0&&(A.target===i.value&&(S(),d.onPointerDown(A)),u.onMouseDown())},b=A=>{d.onPointerUp(A),u.onMouseUp()},E=A=>{A.key==="Tab"&&A.preventDefault(),e.viewModel.commandHandler.handleKeyDown(A)},y=A=>{e.viewModel.commandHandler.handleKeyUp(A)},v=A=>{["Control","Shift"].some(I=>e.viewModel.commandHandler.pressedKeys.includes(I))||S(),e.viewModel.displayedGraph.selectedNodes.push(A)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},R=A=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(I),O=o.value[x];O.onPointerDown(A),document.addEventListener("pointermove",O.onPointerMove)}document.addEventListener("pointerup",C)},C=()=>{for(const A of e.viewModel.displayedGraph.selectedNodes){const I=r.value.indexOf(A),x=o.value[I];x.onPointerUp(),document.removeEventListener("pointermove",x.onPointerMove)}document.removeEventListener("pointerup",C)};return(A,I)=>(T(),w("div",{ref_key:"el",ref:i,tabindex:"-1",class:Ge(["baklava-editor",{"baklava-ignore-mouse":!!Lt(u).temporaryConnection.value||Lt(d).dragging.value,"--temporary-connection":!!Lt(u).temporaryConnection.value}]),onPointermove:j(_,["self"]),onPointerdown:g,onPointerup:b,onWheel:I[1]||(I[1]=j((...x)=>Lt(d).onMouseWheel&&Lt(d).onMouseWheel(...x),["self"])),onKeydown:E,onKeyup:y,onContextmenu:I[2]||(I[2]=j((...x)=>Lt(h).open&&Lt(h).open(...x),["self","prevent"]))},[un(A.$slots,"background",{},()=>[V(qDt)]),un(A.$slots,"toolbar",{},()=>[V(z3t)]),un(A.$slots,"palette",{},()=>[V(YLt)]),(T(),w("svg",H3t,[(T(!0),w(Pe,null,Ke(a.value,x=>(T(),w("g",{key:x.id+m.value.toString()},[un(A.$slots,"connection",{connection:x},()=>[V(ALt,{connection:x},null,8,["connection"])])]))),128)),un(A.$slots,"temporaryConnection",{temporaryConnection:Lt(u).temporaryConnection.value},()=>[Lt(u).temporaryConnection.value?(T(),dt(MLt,{key:0,connection:Lt(u).temporaryConnection.value},null,8,["connection"])):G("",!0)])])),l("div",{class:"node-container",style:Ht(f.value)},[V(ii,{name:"fade"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.value,(x,O)=>un(A.$slots,"node",{key:x.id+m.value.toString(),node:x,selected:c.value.includes(x),dragging:o.value[O].dragging.value,onSelect:B=>v(x),onStartDrag:R},()=>[V(vLt,{node:x,selected:c.value.includes(x),dragging:o.value[O].dragging.value,onSelect:B=>v(x),onStartDrag:R},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),un(A.$slots,"sidebar",{},()=>[V(PLt)]),un(A.$slots,"minimap",{},()=>[A.viewModel.settings.enableMinimap?(T(),dt(ULt,{key:0})):G("",!0)]),un(A.$slots,"contextMenu",{contextMenu:Lt(h)},()=>[A.viewModel.settings.contextMenu.enabled?(T(),dt(ly,{key:0,modelValue:Lt(h).show.value,"onUpdate:modelValue":I[0]||(I[0]=x=>Lt(h).show.value=x),items:Lt(h).items.value,x:Lt(h).x.value,y:Lt(h).y.value,onClick:Lt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):G("",!0)])],34))}}),$3t=["INPUT","TEXTAREA","SELECT"];function Y3t(t){const e=ct([]),n=ct([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!$3t.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&n.value.forEach(c=>{c.keys.every(d=>e.value.includes(d))&&t(c.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{n.value.push({keys:o,commandName:a})}}}const W3t=()=>{const t=ct(new Map),e=(r,o)=>{if(t.value.has(r))throw new Error(`Command "${r}" already exists`);t.value.set(r,o)},n=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return t.value.get(r).execute(...a)},s=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return t.value.get(r).canExecute(a)},i=Y3t(n);return Wn({registerCommand:e,executeCommand:n,canExecuteCommand:s,...i})},K3t=t=>!(t instanceof oc);function j3t(t,e){return{switchGraph:s=>{let i;if(K3t(s))i=new oc(t.value),s.createGraph(i);else{if(s!==t.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");i=s}e.value&&e.value!==t.value.graph&&e.value.destroy(),i.panning=i.panning??s.panning??{x:0,y:0},i.scaling=i.scaling??s.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function Q3t(t,e){t.position=t.position??{x:0,y:0},t.disablePointerEvents=!1,t.twoColumn=t.twoColumn??!1,t.width=t.width??e.defaultWidth}const X3t=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function Z3t(t){const e=ct(t??new IDt),n=Symbol("ViewModelToken"),s=ct(null),i=GM(s),{switchGraph:r}=j3t(e,s),o=Je(()=>i.value&&i.value!==e.value.graph),a=Wn(X3t()),c=W3t(),d=NPt(i,c),u=MPt(i,e,c),h={renderNode:new ss(null),renderInterface:new ss(null)};return RPt(i,c,r),DPt(i,c),In(e,(f,m)=>{m&&(m.events.registerGraph.unsubscribe(n),m.graphEvents.beforeAddNode.unsubscribe(n),f.nodeHooks.beforeLoad.unsubscribe(n),f.nodeHooks.afterSave.unsubscribe(n),f.graphTemplateHooks.beforeLoad.unsubscribe(n),f.graphTemplateHooks.afterSave.unsubscribe(n),f.graph.hooks.load.unsubscribe(n),f.graph.hooks.save.unsubscribe(n)),f&&(f.nodeHooks.beforeLoad.subscribe(n,(_,g)=>(g.position=_.position??{x:0,y:0},g.width=_.width??a.nodes.defaultWidth,g.twoColumn=_.twoColumn??!1,_)),f.nodeHooks.afterSave.subscribe(n,(_,g)=>(_.position=g.position,_.width=g.width,_.twoColumn=g.twoColumn,_)),f.graphTemplateHooks.beforeLoad.subscribe(n,(_,g)=>(g.panning=_.panning,g.scaling=_.scaling,_)),f.graphTemplateHooks.afterSave.subscribe(n,(_,g)=>(_.panning=g.panning,_.scaling=g.scaling,_)),f.graph.hooks.load.subscribe(n,(_,g)=>(g.panning=_.panning,g.scaling=_.scaling,_)),f.graph.hooks.save.subscribe(n,(_,g)=>(_.panning=g.panning,_.scaling=g.scaling,_)),f.graphEvents.beforeAddNode.subscribe(n,_=>Q3t(_,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(MO,{category:"Subgraphs"}),e.value.registerNodeType(IO,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),Wn({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:h,switchGraph:r})}const J3t=za({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Xt("Request",""),agent_name:()=>new hPt("Personality","",Ms.state.config.personalities).setPort(!1)},outputs:{response:()=>new Xt("Response","")},async calculate({request:t}){console.log(Ms.state.config.personalities);let e="";try{e=(await ae.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),eUt=za({type:"RAGNode",title:"RAG",inputs:{request:()=>new Xt("Prompt",""),document_path:()=>new ac("Document path","").setPort(!1)},outputs:{prompt:()=>new Xt("Prompt with Data","")},async calculate({request:t,document_path:e}){let n="";try{n=(await ae.get("/rag",{params:{text:t,doc_path:e}})).data}catch(s){console.error(s)}return{response:n}}}),Mw=za({type:"Task",title:"Task",inputs:{description:()=>new ac("Task description","").setPort(!1)},outputs:{prompt:()=>new Xt("Prompt")},calculate({description:t}){return{prompt:t}}}),Iw=za({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Xt("Input","")},outputs:{response:()=>new bPt("Text","")},async calculate({request:t}){}}),kw=za({type:"LLMNode",title:"LLM",inputs:{request:()=>new Xt("Request","")},outputs:{response:()=>new Xt("Response","")},async calculate({request:t}){console.log(Ms.state.config.personalities);let e="";try{e=(await ae.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),tUt=za({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Xt("Question",""),outputs:()=>new ac("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Xt("Response","")}}),nUt=cn({components:{"baklava-editor":q3t},setup(){const t=Z3t(),e=new UDt(t.editor);t.editor.registerNodeType(J3t),t.editor.registerNodeType(Mw),t.editor.registerNodeType(eUt),t.editor.registerNodeType(Iw),t.editor.registerNodeType(kw),t.editor.registerNodeType(tUt);const n=Symbol();e.events.afterRun.subscribe(n,a=>{e.pause(),kDt(a,t.editor),e.resume()}),e.start();function s(a,c,d){const u=new a;return t.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const i=s(Mw,300,140),r=s(kw,550,140),o=s(Iw,850,140);return t.displayedGraph.addConnection(i.outputs.prompt,r.inputs.request),t.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:t,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),sUt={style:{width:"100vw",height:"100vh"}};function iUt(t,e,n,s,i,r){const o=tt("baklava-editor");return T(),w("div",sUt,[V(o,{"view-model":t.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>t.saveGraph&&t.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>t.loadGraph&&t.loadGraph(...a))},"Load Graph")])}const rUt=ot(nUt,[["render",iUt]]),oUt={},aUt={style:{width:"100vw",height:"100vh"}},lUt=["src"];function cUt(t,e,n,s,i,r){return T(),w("div",aUt,[l("iframe",{src:t.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,lUt)])}const dUt=ot(oUt,[["render",cUt]]),uUt={},pUt={style:{width:"100vw",height:"100vh"}},_Ut=["src"];function hUt(t,e,n,s,i,r){return T(),w("div",pUt,[l("iframe",{src:t.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,_Ut)])}const fUt=ot(uUt,[["render",hUt]]);const mUt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)}}},is=t=>(Ss("data-v-192425d2"),t=t(),Ts(),t),gUt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},bUt={class:"flex-grow"},EUt={class:"flex items-center mb-4"},yUt=["src"],vUt={class:"font-bold text-xl text-gray-800"},SUt={class:"text-sm text-gray-600"},TUt={class:"text-sm text-gray-600"},xUt={class:"text-sm text-gray-600"},CUt={class:"text-sm text-gray-600"},wUt={class:"mb-4"},RUt=is(()=>l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),AUt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},NUt={class:"text-sm text-gray-600 mb-2"},OUt={key:0,class:"mb-4"},MUt=is(()=>l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),IUt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},kUt={class:"mt-auto pt-4 border-t"},DUt={class:"flex justify-between items-center flex-wrap"},LUt=["title"],PUt=["fill"],UUt=is(()=>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)),FUt=[UUt],BUt=is(()=>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)),GUt=[BUt],VUt=is(()=>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)),zUt=[VUt],HUt=is(()=>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)),qUt=[HUt],$Ut=is(()=>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)),YUt=[$Ut],WUt=is(()=>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)),KUt=[WUt],jUt=is(()=>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:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})],-1)),QUt=[jUt],XUt=is(()=>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)),ZUt=[XUt],JUt=is(()=>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)),eFt=[JUt],tFt=is(()=>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)),nFt=is(()=>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)),sFt=[tFt,nFt];function iFt(t,e,n,s,i,r){return T(),w("div",gUt,[l("div",bUt,[l("div",EUt,[l("img",{src:n.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,yUt),l("div",null,[l("h3",vUt,K(n.app.name),1),l("p",SUt,"Author: "+K(n.app.author),1),l("p",TUt,"Version: "+K(n.app.version),1),l("p",xUt,"Creation date: "+K(r.formatDate(n.app.creation_date)),1),l("p",CUt,"Last update: "+K(r.formatDate(n.app.last_update_date)),1),l("p",{class:Ge(["text-sm",n.app.is_public?"text-green-600":"text-orange-600"])},K(n.app.is_public?"Public App":"Local App"),3)])]),l("div",wUt,[RUt,l("p",AUt,K(n.app.description),1)]),l("p",NUt,"AI Model: "+K(n.app.model_name),1),n.app.disclaimer&&n.app.disclaimer.trim()!==""?(T(),w("div",OUt,[MUt,l("p",IUt,K(n.app.disclaimer),1)])):G("",!0)]),l("div",kUt,[l("div",DUt,[l("button",{onClick:e[0]||(e[0]=j(o=>t.$emit("toggle-favorite",n.app.uid),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("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"},FUt,8,PUt))],8,LUt),n.app.installed?(T(),w("button",{key:0,onClick:e[1]||(e[1]=j(o=>t.$emit("uninstall",n.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},GUt)):n.app.existsInFolder?(T(),w("button",{key:1,onClick:e[2]||(e[2]=j(o=>t.$emit("delete",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},zUt)):(T(),w("button",{key:2,onClick:e[3]||(e[3]=j(o=>t.$emit("install",n.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},qUt)),n.app.installed?(T(),w("button",{key:3,onClick:e[4]||(e[4]=j(o=>t.$emit("edit",n.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},YUt)):G("",!0),l("button",{onClick:e[5]||(e[5]=j(o=>t.$emit("download",n.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},KUt),l("button",{onClick:e[6]||(e[6]=j(o=>t.$emit("view",n.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"View"},QUt),n.app.installed?(T(),w("button",{key:4,onClick:e[7]||(e[7]=j(o=>t.$emit("open",n.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},ZUt)):G("",!0),n.app.has_server&&n.app.installed?(T(),w("button",{key:5,onClick:e[8]||(e[8]=j(o=>t.$emit("start-server",n.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},eFt)):G("",!0),n.app.has_update?(T(),w("button",{key:6,onClick:e[9]||(e[9]=j(o=>t.$emit("install",n.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},sFt)):G("",!0)])])])}const rFt=ot(mUt,[["render",iFt],["__scopeId","data-v-192425d2"]]),oFt={components:{AppCard:rFt},data(){return{apps:[],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 Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const t=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))]},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredApps(){return this.filteredApps.sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=new Date(t.creation_date)-new Date(e.creation_date);break;case"update":n=new Date(t.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(t){const e=this.favorites.indexOf(t);e===-1?this.favorites.push(t):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const t=localStorage.getItem("appZooFavorites");console.log("savedFavorites",t),t&&(this.favorites=JSON.parse(t))},startServer(t){const e={client_id:this.$store.state.client_id,app_name:t};this.$store.state.messageBox.showBlockingMessage(`Loading server. -This may take some time the first time as some libraries need to be installed.`),ae.post("/apps/start_server",e).then(n=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",n.data.message),this.$notify({type:"success",title:"Server Starting",text:n.data.message})}).catch(n=>{var s,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",n),this.$notify({type:"error",title:"Server Start Failed",text:((i=(s=n.response)==null?void 0:s.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(t){this.selectedFile=t.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,n;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const t=new FormData;t.append("file",this.selectedFile),t.append("client_id",this.$store.state.client_id);try{const s=await ae.post("/upload_app",t,{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=((n=(e=s.response)==null?void 0:e.data)==null?void 0:n.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const t=await ae.get("/apps");this.apps=t.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 t=await ae.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 t=await ae.get("/github/apps");this.githubApps=t.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(t){if(t.installed){this.selectedApp=t;const e=await ae.get(`/apps/${t.folder_name}/index.html`);this.appCode=e.data}else this.showMessage(`Please install ${t.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(t){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${t}`);try{await ae.post(`/install/${t}`,{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(t){this.loading=!0;try{await ae.post(`/uninstall/${t}`,{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(t){this.loading=!0;try{await ae.post(`/delete/${t}`,{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(t){this.loading=!0;try{const e=await ae.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:t.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(t){this.isLoading=!0,this.error=null;try{const e=await ae.post("/download_app",{client_id:this.$store.state.client_id,app_name:t},{responseType:"arraybuffer"}),n=e.headers["content-disposition"],s=n&&n.match(/filename="?(.+)"?/i),i=s?s[1]:"app.zip",r=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(r),a=document.createElement("a");a.style.display="none",a.href=o,a.download=i,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(t){t.installed?window.open(`/apps/${t.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${t.name} before opening.`,!1)},showMessage(t,e){this.message=t,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},aFt={class:"app-zoo background-color w-full p-6 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"},lFt={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-50 pb-50"},cFt={class:"flex flex-wrap items-center justify-between gap-4"},dFt={class:"flex items-center space-x-4"},uFt=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),pFt=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),_Ft=["disabled"],hFt={key:0},fFt={key:1,class:"error"},mFt={class:"relative flex-grow max-w-md"},gFt=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),bFt={class:"flex items-center space-x-4"},EFt=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1),yFt=l("option",{value:"all"},"All Categories",-1),vFt=["value"],SFt={class:"flex items-center space-x-4"},TFt=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1),xFt=l("option",{value:"name"},"Name",-1),CFt=l("option",{value:"author"},"Author",-1),wFt=l("option",{value:"date"},"Creation Date",-1),RFt=l("option",{value:"update"},"Last Update",-1),AFt=[xFt,CFt,wFt,RFt],NFt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},OFt=l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),MFt=l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1),IFt=[OFt,MFt],kFt={key:1},DFt=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1),LFt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},PFt={class:"text-2xl font-bold mb-4"},UFt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},FFt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},BFt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},GFt={class:"flex justify-between items-center mb-4"},VFt={class:"text-2xl font-bold"},zFt=["srcdoc"],HFt={key:1,class:"text-center text-red-500"};function qFt(t,e,n,s,i,r){const o=tt("app-card");return T(),w("div",aFt,[l("nav",lFt,[l("div",cFt,[l("div",dFt,[l("button",{onClick:e[0]||(e[0]=(...a)=>r.fetchGithubApps&&r.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},[uFt,et(" Refresh ")]),l("button",{onClick:e[1]||(e[1]=(...a)=>r.openAppsFolder&&r.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},[pFt,et(" Open Folder ")]),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>r.onFileSelected&&r.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>r.triggerFileInput&&r.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},K(i.isUploading?"Uploading...":"Upload App"),9,_Ft)]),i.message?(T(),w("p",hFt,K(i.message),1)):G("",!0),i.error?(T(),w("p",fFt,K(i.error),1)):G("",!0),l("div",mFt,[P(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>i.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),[[pe,i.searchQuery]]),gFt]),l("div",bFt,[EFt,P(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[yFt,(T(!0),w(Pe,null,Ke(r.categories,a=>(T(),w("option",{key:a,value:a},K(a),9,vFt))),128))],512),[[Dt,i.selectedCategory]])]),l("div",SFt,[TFt,P(l("select",{id:"sort-select","onUpdate:modelValue":e[6]||(e[6]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},AFt,512),[[Dt,i.sortBy]]),l("button",{onClick:e[7]||(e[7]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},K(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),w("div",NFt,IFt)):(T(),w("div",kFt,[DFt,l("div",LFt,[(T(!0),w(Pe,null,Ke(r.favoriteApps,a=>(T(),dt(o,{key:a.uid,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onView:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onView","onOpen","onStartServer"]))),128))]),l("h2",PFt,K(r.currentCategoryName),1),l("div",UFt,[(T(!0),w(Pe,null,Ke(r.sortedAndFilteredApps,a=>(T(),dt(o,{key:a.uid,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onView:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onView","onOpen","onStartServer"]))),128))])])),i.selectedApp?(T(),w("div",FFt,[l("div",BFt,[l("div",GFt,[l("h2",VFt,K(i.selectedApp.name),1),l("button",{onClick:e[8]||(e[8]=(...a)=>r.backToZoo&&r.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),w("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,zFt)):(T(),w("p",HFt,"Please install this app to view its code."))])])):G("",!0),i.message?(T(),w("div",{key:3,class:Ge(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},K(i.message),3)):G("",!0)])}const $Ft=ot(oFt,[["render",qFt]]);const YFt={components:{PersonalityEntry:RE},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(t){this.$store.commit("setConfig",t)}},combinedApps(){this.personalities.map(e=>e.name);const t=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))].sort((t,e)=>t.localeCompare(e))},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredApps(){return this.filteredApps.sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=new Date(t.creation_date)-new Date(e.creation_date);break;case"update":n=new Date(t.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=t.language==null?t.full_path:t.full_path+":"+t.language;if(console.log("pth",e),t.isMounted&&this.configFile.personalities.includes(e)){const n=await this.select_personality(t);console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: +This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(n)}}let db=null;function LDt(t){db=t}function Cs(){if(!db)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:db}}function Ys(){const{viewModel:t}=Cs();return{graph:kd(t.value,"displayedGraph"),switchGraph:t.value.switchGraph}}function vO(t){const{graph:e}=Ys(),n=ct(null),s=ct(null);return{dragging:Je(()=>!!n.value),onPointerDown:c=>{n.value={x:c.pageX,y:c.pageY},s.value={x:t.value.x,y:t.value.y}},onPointerMove:c=>{if(n.value){const d=c.pageX-n.value.x,u=c.pageY-n.value.y;t.value.x=s.value.x+d/e.value.scaling,t.value.y=s.value.y+u/e.value.scaling}},onPointerUp:()=>{n.value=null,s.value=null}}}function SO(t,e,n){if(!e.template)return!1;if(Sa(e.template)===n)return!0;const s=t.graphTemplates.find(r=>Sa(r)===n);return s?s.nodes.filter(r=>r.type.startsWith(Wl)).some(r=>SO(t,e,r.type)):!1}function TO(t){return Je(()=>{const e=Array.from(t.value.editor.nodeTypes.entries()),n=new Set(e.map(([,i])=>i.category)),s=[];for(const i of n.values()){let r=e.filter(([,o])=>o.category===i);t.value.displayedGraph.template?r=r.filter(([o])=>!SO(t.value.editor,t.value.displayedGraph,o)):r=r.filter(([o])=>![ya,va].includes(o)),r.length>0&&s.push({name:i,nodeTypes:Object.fromEntries(r)})}return s.sort((i,r)=>i.name==="default"?-1:r.name==="default"||i.name>r.name?1:-1),s})}function xO(){const{graph:t}=Ys();return{transform:(n,s)=>{const i=n/t.value.scaling-t.value.panning.x,r=s/t.value.scaling-t.value.panning.y;return[i,r]}}}function PDt(){const{graph:t}=Ys();let e=[],n=-1,s={x:0,y:0};const i=Je(()=>t.value.panning),r=vO(i),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${t.value.scaling}) translate(${t.value.panning.x}px, ${t.value.panning.y}px)`})),a=(m,_,g)=>{const b=[m/t.value.scaling-t.value.panning.x,_/t.value.scaling-t.value.panning.y],E=[m/g-t.value.panning.x,_/g-t.value.panning.y],y=[E[0]-b[0],E[1]-b[1]];t.value.panning.x+=y[0],t.value.panning.y+=y[1],t.value.scaling=g},c=m=>{m.preventDefault();let _=m.deltaY;m.deltaMode===1&&(_*=32);const g=t.value.scaling*(1-_/3e3);a(m.offsetX,m.offsetY,g)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:m=>{if(e.push(m),r.onPointerDown(m),e.length===2){const{ax:_,ay:g,bx:b,by:E}=d();s={x:_+(b-_)/2,y:g+(E-g)/2}}},onPointerMove:m=>{for(let _=0;_0){const R=t.value.scaling*(1+(S-n)/500);a(s.x,s.y,R)}n=S}else r.onPointerMove(m)},onPointerUp:m=>{e=e.filter(_=>_.pointerId!==m.pointerId),n=-1,r.onPointerUp()},onMouseWheel:c}}var hs=(t=>(t[t.NONE=0]="NONE",t[t.ALLOWED=1]="ALLOWED",t[t.FORBIDDEN=2]="FORBIDDEN",t))(hs||{});const CO=Symbol();function UDt(){const{graph:t}=Ys(),e=ct(null),n=ct(null),s=a=>{e.value&&(e.value.mx=a.offsetX/t.value.scaling-t.value.panning.x,e.value.my=a.offsetY/t.value.scaling-t.value.panning.y)},i=()=>{if(n.value){if(e.value)return;const a=t.value.connections.find(c=>c.to===n.value);n.value.isInput&&a?(e.value={status:hs.NONE,from:a.from},t.value.removeConnection(a)):e.value={status:hs.NONE,from:n.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&n.value){if(e.value.from===n.value)return;t.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(n.value=a??null,a&&e.value){e.value.to=a;const c=t.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?hs.ALLOWED:hs.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);t.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=hs.NONE,t.value.connections.forEach(c=>{c.isInDanger=!1}))};return Yo(CO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:s,onMouseDown:i,onMouseUp:r,hoveredOver:o}}function FDt(t){const e=ct(!1),n=ct(0),s=ct(0),i=TO(t),{transform:r}=xO(),o=Je(()=>{let u=[];const h={};for(const m of i.value){const _=Object.entries(m.nodeTypes).map(([g,b])=>({label:b.title,value:"addNode:"+g}));m.name==="default"?u=_:h[m.name]=_}const f=[...Object.entries(h).map(([m,_])=>({label:m,submenu:_}))];return f.length>0&&u.length>0&&f.push({isDivider:!0}),f.push(...u),f}),a=Je(()=>t.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...t.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!t.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){e.value=!0,n.value=u.offsetX,s.value=u.offsetY}function d(u){if(u.startsWith("addNode:")){const h=u.substring(8),f=t.value.editor.nodeTypes.get(h);if(!f)return;const m=Wn(new f.type);t.value.displayedGraph.addNode(m);const[_,g]=r(n.value,s.value);m.position.x=_,m.position.y=g}else if(u.startsWith("command:")){const h=u.substring(8);t.value.commandHandler.canExecuteCommand(h)&&t.value.commandHandler.executeCommand(h)}}return{show:e,x:n,y:s,items:a,open:c,onClick:d}}const BDt=cn({setup(){const{viewModel:t}=Cs(),{graph:e}=Ys();return{styles:Je(()=>{const s=t.value.settings.background,i=e.value.panning.x*e.value.scaling,r=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 ${i}px top ${r}px`,backgroundSize:`${c} ${d}`}})}}}),dn=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n};function GDt(t,e,n,s,i,r){return T(),w("div",{class:"background",style:Ht(t.styles)},null,4)}const VDt=dn(BDt,[["render",GDt]]);function zDt(t){return Gw()?(uM(t),!0):!1}function oy(t){return typeof t=="function"?t():Lt(t)}const wO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const HDt=Object.prototype.toString,qDt=t=>HDt.call(t)==="[object Object]",Ad=()=>{},$Dt=YDt();function YDt(){var t,e;return wO&&((t=window==null?void 0:window.navigator)==null?void 0:t.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 WDt(t,e,n=!1){return e.reduce((s,i)=>(i in t&&(!n||t[i]!==void 0)&&(s[i]=t[i]),s),{})}function KDt(t,e={}){if(!pn(t))return YM(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const s in t.value)n[s]=$M(()=>({get(){return t.value[s]},set(i){var r;if((r=oy(e.replaceRef))!=null?r:!0)if(Array.isArray(t.value)){const a=[...t.value];a[s]=i,t.value=a}else{const a={...t.value,[s]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[s]=i}}));return n}function _l(t){var e;const n=oy(t);return(e=n==null?void 0:n.$el)!=null?e:n}const ay=wO?window:void 0;function Rl(...t){let e,n,s,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,s,i]=t,e=ay):[e,n,s,i]=t,!e)return Ad;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,h,f,m)=>(u.addEventListener(h,f,m),()=>u.removeEventListener(h,f,m)),c=In(()=>[_l(e),oy(i)],([u,h])=>{if(o(),!u)return;const f=qDt(h)?{...h}:h;r.push(...n.flatMap(m=>s.map(_=>a(u,m,_,f))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return zDt(d),d}let Tw=!1;function RO(t,e,n={}){const{window:s=ay,ignore:i=[],capture:r=!0,detectIframe:o=!1}=n;if(!s)return Ad;$Dt&&!Tw&&(Tw=!0,Array.from(s.document.body.children).forEach(f=>f.addEventListener("click",Ad)),s.document.documentElement.addEventListener("click",Ad));let a=!0;const c=f=>i.some(m=>{if(typeof m=="string")return Array.from(s.document.querySelectorAll(m)).some(_=>_===f.target||f.composedPath().includes(_));{const _=_l(m);return _&&(f.target===_||f.composedPath().includes(_))}}),u=[Rl(s,"click",f=>{const m=_l(t);if(!(!m||m===f.target||f.composedPath().includes(m))){if(f.detail===0&&(a=!c(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:r}),Rl(s,"pointerdown",f=>{const m=_l(t);a=!c(f)&&!!(m&&!f.composedPath().includes(m))},{passive:!0}),o&&Rl(s,"blur",f=>{setTimeout(()=>{var m;const _=_l(t);((m=s.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(_!=null&&_.contains(s.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const AO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},jDt=Object.keys(AO);function QDt(t={}){const{target:e=ay}=t,n=ct(!1),s=ct(t.initialValue||{});Object.assign(s.value,AO,s.value);const i=r=>{n.value=!0,!(t.pointerTypes&&!t.pointerTypes.includes(r.pointerType))&&(s.value=WDt(r,jDt,!1))};if(e){const r={passive:!0};Rl(e,["pointerdown","pointermove","pointerup"],i,r),Rl(e,"pointerleave",()=>n.value=!1,r)}return{...KDt(s),isInside:n}}const XDt=["onMouseenter","onMouseleave","onClick"],ZDt={class:"flex-fill"},JDt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},eLt=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),tLt=[eLt],ly=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(t,{emit:e}){const n=t,s=e;let i=null;const r=ct(null),o=ct(-1),a=ct(0),c=ct({x:!1,y:!1}),d=Je(()=>n.flippable&&(c.value.x||n.isFlipped.x)),u=Je(()=>n.flippable&&(c.value.y||n.isFlipped.y)),h=Je(()=>{const y={};return n.isNested||(y.top=(u.value?n.y-a.value:n.y)+"px",y.left=n.x+"px"),y}),f=Je(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":n.isNested})),m=Je(()=>n.items.map(y=>({...y,hover:!1})));In([()=>n.y,()=>n.items],()=>{var y,v,S,R;a.value=n.items.length*30;const C=((v=(y=r.value)==null?void 0:y.parentElement)==null?void 0:v.offsetWidth)??0,A=((R=(S=r.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!n.isNested&&n.x>C*.75,c.value.y=!n.isNested&&n.y+a.value>A-20}),RO(r,()=>{n.modelValue&&s("update:modelValue",!1)});const _=y=>{!y.submenu&&y.value&&(s("click",y.value),s("update:modelValue",!1))},g=y=>{s("click",y),o.value=-1,n.isNested||s("update:modelValue",!1)},b=(y,v)=>{n.items[v].submenu&&(o.value=v,i!==null&&(clearTimeout(i),i=null))},E=(y,v)=>{n.items[v].submenu&&(i=window.setTimeout(()=>{o.value=-1,i=null},200))};return(y,v)=>{const S=tt("ContextMenu",!0);return T(),dt(Us,{name:"slide-fade"},{default:Ie(()=>[P(l("div",{ref_key:"el",ref:r,class:Ge(["baklava-context-menu",f.value]),style:Ht(h.value)},[(T(!0),w(Pe,null,Ke(m.value,(R,C)=>(T(),w(Pe,null,[R.isDivider?(T(),w("div",{key:`d-${C}`,class:"divider"})):(T(),w("div",{key:`i-${C}`,class:Ge(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>b(A,C),onMouseleave:A=>E(A,C),onClick:j(A=>_(R),["stop","prevent"])},[l("div",ZDt,K(R.label),1),R.submenu?(T(),w("div",JDt,tLt)):G("",!0),R.submenu?(T(),dt(S,{key:1,"model-value":o.value===C,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:y.flippable,onClick:g},null,8,["model-value","items","is-flipped","flippable"])):G("",!0)],42,XDt))],64))),256))],6),[[wt,y.modelValue]])]),_:1})}}}),nLt={},sLt={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"},iLt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),rLt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),oLt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),aLt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),lLt=[iLt,rLt,oLt,aLt];function cLt(t,e){return T(),w("svg",sLt,lLt)}const NO=dn(nLt,[["render",cLt]]),dLt=["id"],uLt={key:0,class:"__tooltip"},pLt={key:2,class:"align-middle"},xw=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(t){const e=(b,E=100)=>{const y=b!=null&&b.toString?b.toString():"";return y.length>E?y.slice(0,E)+"...":y},n=t,{viewModel:s}=Cs(),{hoveredOver:i,temporaryConnection:r}=Zn(CO),o=ct(null),a=Je(()=>n.intf.connectionCount>0),c=ct(!1),d=Je(()=>s.value.settings.displayValueOnHover&&c.value),u=Je(()=>({"--input":n.intf.isInput,"--output":!n.intf.isInput,"--connected":a.value})),h=Je(()=>n.intf.component&&(!n.intf.isInput||!n.intf.port||n.intf.connectionCount===0)),f=()=>{c.value=!0,i(n.intf)},m=()=>{c.value=!1,i(void 0)},_=()=>{o.value&&s.value.hooks.renderInterface.execute({intf:n.intf,el:o.value})},g=()=>{const b=s.value.displayedGraph.sidebar;b.nodeId=n.node.id,b.optionName=n.intf.name,b.visible=!0};return ci(_),Ql(_),(b,E)=>{var y;return T(),w("div",{id:b.intf.id,ref_key:"el",ref:o,class:Ge(["baklava-node-interface",u.value])},[b.intf.port?(T(),w("div",{key:0,class:Ge(["__port",{"--selected":((y=Lt(r))==null?void 0:y.from)===b.intf}]),onPointerover:f,onPointerout:m},[un(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),w("span",uLt,K(e(b.intf.value)),1)):G("",!0)])],34)):G("",!0),h.value?(T(),dt(Tu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":E[0]||(E[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:g},null,40,["modelValue","node","intf"])):(T(),w("span",pLt,K(b.intf.name),1))],10,dLt)}}}),_Lt=["id","data-node-type"],hLt={class:"__title-label"},fLt={class:"__menu"},mLt={class:"__outputs"},gLt={class:"__inputs"},bLt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(t,{emit:e}){const n=t,s=e,{viewModel:i}=Cs(),{graph:r,switchGraph:o}=Ys(),a=ct(null),c=ct(!1),d=ct(""),u=ct(null),h=ct(!1),f=ct(!1),m=Je(()=>{const B=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return n.node.type.startsWith(Wl)&&B.push({value:"editSubgraph",label:"Edit Subgraph"}),B}),_=Je(()=>({"--selected":n.selected,"--dragging":n.dragging,"--two-column":!!n.node.twoColumn})),g=Je(()=>{var B,H;return{top:`${((B=n.node.position)==null?void 0:B.y)??0}px`,left:`${((H=n.node.position)==null?void 0:H.x)??0}px`,"--width":`${n.node.width??i.value.settings.nodes.defaultWidth}px`}}),b=Je(()=>Object.values(n.node.inputs).filter(B=>!B.hidden)),E=Je(()=>Object.values(n.node.outputs).filter(B=>!B.hidden)),y=()=>{s("select")},v=B=>{n.selected||y(),s("start-drag",B)},S=()=>{f.value=!0},R=async B=>{var H;switch(B){case"delete":r.value.removeNode(n.node);break;case"rename":d.value=n.node.title,c.value=!0,await Le(),(H=u.value)==null||H.focus();break;case"editSubgraph":o(n.node.template);break}},C=()=>{n.node.title=d.value,c.value=!1},A=()=>{a.value&&i.value.hooks.renderNode.execute({node:n.node,el:a.value})},I=B=>{h.value=!0,B.preventDefault()},x=B=>{if(!h.value)return;const H=n.node.width+B.movementX/r.value.scaling,te=i.value.settings.nodes.minWidth,k=i.value.settings.nodes.maxWidth;n.node.width=Math.max(te,Math.min(k,H))},O=()=>{h.value=!1};return ci(()=>{A(),window.addEventListener("mousemove",x),window.addEventListener("mouseup",O)}),Ql(A),Aa(()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",O)}),(B,H)=>(T(),w("div",{id:B.node.id,ref_key:"el",ref:a,class:Ge(["baklava-node",_.value]),style:Ht(g.value),"data-node-type":B.node.type,onPointerdown:y},[Lt(i).settings.nodes.resizable?(T(),w("div",{key:0,class:"__resize-handle",onMousedown:I},null,32)):G("",!0),un(B.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:j(v,["self","stop"])},[c.value?P((T(),w("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":H[1]||(H[1]=te=>d.value=te),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:C,onKeydown:Vs(C,["enter"])},null,544)),[[pe,d.value]]):(T(),w(Pe,{key:0},[l("div",hLt,K(B.node.title),1),l("div",fLt,[V(NO,{class:"--clickable",onClick:S}),V(ly,{modelValue:f.value,"onUpdate:modelValue":H[0]||(H[0]=te=>f.value=te),x:0,y:0,items:m.value,onClick:R},null,8,["modelValue","items"])])],64))],32)]),un(B.$slots,"content",{},()=>[l("div",{class:"__content",onKeydown:H[2]||(H[2]=Vs(j(()=>{},["stop"]),["delete"]))},[l("div",mLt,[(T(!0),w(Pe,null,Ke(E.value,te=>un(B.$slots,"nodeInterface",{key:te.id,type:"output",node:B.node,intf:te},()=>[V(xw,{node:B.node,intf:te},null,8,["node","intf"])])),128))]),l("div",gLt,[(T(!0),w(Pe,null,Ke(b.value,te=>un(B.$slots,"nodeInterface",{key:te.id,type:"input",node:B.node,intf:te},()=>[V(xw,{node:B.node,intf:te},null,8,["node","intf"])])),128))])],32)])],46,_Lt))}}),ELt=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:hs.NONE},isTemporary:{type:Boolean,default:!1}},setup(t){const{viewModel:e}=Cs(),{graph:n}=Ys(),s=(o,a)=>{const c=(o+n.value.panning.x)*n.value.scaling,d=(a+n.value.panning.y)*n.value.scaling;return[c,d]},i=Je(()=>{const[o,a]=s(t.x1,t.y1),[c,d]=s(t.x2,t.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}`}}),r=Je(()=>({"--temporary":t.isTemporary,"--allowed":t.state===hs.ALLOWED,"--forbidden":t.state===hs.FORBIDDEN}));return{d:i,classes:r}}}),yLt=["d"];function vLt(t,e,n,s,i,r){return T(),w("path",{class:Ge(["baklava-connection",t.classes]),d:t.d},null,10,yLt)}const OO=dn(ELt,[["render",vLt]]);function SLt(t){return document.getElementById(t.id)}function Ta(t){const e=document.getElementById(t.id),n=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:n&&n.length>0?n[0]:null}}const TLt=cn({components:{"connection-view":OO},props:{connection:{type:Object,required:!0}},setup(t){const{graph:e}=Ys();let n;const s=ct({x1:0,y1:0,x2:0,y2:0}),i=Je(()=>t.connection.isInDanger?hs.FORBIDDEN:hs.NONE),r=Je(()=>{var d;return(d=e.value.findNodeById(t.connection.from.nodeId))==null?void 0:d.position}),o=Je(()=>{var d;return(d=e.value.findNodeById(t.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=Ta(t.connection.from),u=Ta(t.connection.to);d.node&&u.node&&(n||(n=new ResizeObserver(()=>{c()}),n.observe(d.node),n.observe(u.node)));const[h,f]=a(d),[m,_]=a(u);s.value={x1:h,y1:f,x2:m,y2:_}};return ci(async()=>{await Le(),c()}),Aa(()=>{n&&n.disconnect()}),In([r,o],()=>c(),{deep:!0}),{d:s,state:i}}});function xLt(t,e,n,s,i,r){const o=tt("connection-view");return T(),dt(o,{x1:t.d.x1,y1:t.d.y1,x2:t.d.x2,y2:t.d.y2,state:t.state},null,8,["x1","y1","x2","y2","state"])}const CLt=dn(TLt,[["render",xLt]]);function cu(t){return t.node&&t.interface&&t.port?[t.node.offsetLeft+t.interface.offsetLeft+t.port.offsetLeft+t.port.clientWidth/2,t.node.offsetTop+t.interface.offsetTop+t.port.offsetTop+t.port.clientHeight/2]:[0,0]}const wLt=cn({components:{"connection-view":OO},props:{connection:{type:Object,required:!0}},setup(t){const e=Je(()=>t.connection?t.connection.status:hs.NONE);return{d:Je(()=>{if(!t.connection)return{input:[0,0],output:[0,0]};const s=cu(Ta(t.connection.from)),i=t.connection.to?cu(Ta(t.connection.to)):[t.connection.mx||s[0],t.connection.my||s[1]];return t.connection.from.isInput?{input:i,output:s}:{input:s,output:i}}),status:e}}});function RLt(t,e,n,s,i,r){const o=tt("connection-view");return T(),dt(o,{x1:t.d.input[0],y1:t.d.input[1],x2:t.d.output[0],y2:t.d.output[1],state:t.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const ALt=dn(wLt,[["render",RLt]]),NLt=cn({setup(){const{viewModel:t}=Cs(),{graph:e}=Ys(),n=ct(null),s=kd(t.value.settings.sidebar,"width"),i=Je(()=>t.value.settings.sidebar.resizable),r=Je(()=>{const h=e.value.sidebar.nodeId;return e.value.nodes.find(f=>f.id===h)}),o=Je(()=>({width:`${s.value}px`})),a=Je(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(f=>f.displayInSidebar&&f.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=h=>{var f,m;const _=((m=(f=n.value)==null?void 0:f.parentElement)==null?void 0:m.getBoundingClientRect().width)??500;let g=s.value-h.movementX;g<300?g=300:g>.9*_&&(g=.9*_),s.value=g};return{el:n,graph:e,resizable:i,node:r,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),OLt={class:"__header"},MLt={class:"__node-name"};function ILt(t,e,n,s,i,r){return T(),w("div",{ref:"el",class:Ge(["baklava-sidebar",{"--open":t.graph.sidebar.visible}]),style:Ht(t.styles)},[t.resizable?(T(),w("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>t.startResize&&t.startResize(...o))},null,32)):G("",!0),l("div",OLt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>t.close&&t.close(...o))},"×"),l("div",MLt,[l("b",null,K(t.node?t.node.title:""),1)])]),(T(!0),w(Pe,null,Ke(t.displayedInterfaces,o=>(T(),w("div",{key:o.id,class:"__interface"},[(T(),dt(Tu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:t.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const kLt=dn(NLt,[["render",ILt]]),DLt=cn({__name:"Minimap",setup(t){const{viewModel:e}=Cs(),{graph:n}=Ys(),s=ct(null),i=ct(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var C,A;if(!r)return;r.canvas.width=s.value.offsetWidth,r.canvas.height=s.value.offsetHeight;const I=new Map,x=new Map;for(const k of n.value.nodes){const $=SLt(k),q=($==null?void 0:$.offsetWidth)??0,U=($==null?void 0:$.offsetHeight)??0,W=((C=k.position)==null?void 0:C.x)??0,ne=((A=k.position)==null?void 0:A.y)??0;I.set(k,{x1:W,y1:ne,x2:W+q,y2:ne+U}),x.set(k,$)}const O={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const k of I.values())k.x1O.x2&&(O.x2=k.x2),k.y2>O.y2&&(O.y2=k.y2);const B=50;O.x1-=B,O.y1-=B,O.x2+=B,O.y2+=B,a=O;const H=r.canvas.width/r.canvas.height,te=(a.x2-a.x1)/(a.y2-a.y1);if(H>te){const k=(H-te)*(a.y2-a.y1)*.5;a.x1-=k,a.x2+=k}else{const k=a.x2-a.x1,$=a.y2-a.y1,q=(k-H*$)/H*.5;a.y1-=q,a.y2+=q}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const k of n.value.connections){const[$,q]=cu(Ta(k.from)),[U,W]=cu(Ta(k.to)),[ne,le]=u($,q),[me,Se]=u(U,W);if(r.beginPath(),r.moveTo(ne,le),e.value.settings.useStraightConnections)r.lineTo(me,Se);else{const de=.3*Math.abs(ne-me);r.bezierCurveTo(ne+de,le,me-de,Se,me,Se)}r.stroke()}r.strokeStyle="lightgray";for(const[k,$]of I.entries()){const[q,U]=u($.x1,$.y1),[W,ne]=u($.x2,$.y2);r.fillStyle=f(x.get(k)),r.beginPath(),r.rect(q,U,W-q,ne-U),r.fill(),r.stroke()}if(i.value){const k=_(),[$,q]=u(k.x1,k.y1),[U,W]=u(k.x2,k.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect($,q,U-$,W-q)}},u=(C,A)=>[(C-a.x1)/(a.x2-a.x1)*r.canvas.width,(A-a.y1)/(a.y2-a.y1)*r.canvas.height],h=(C,A)=>[C*(a.x2-a.x1)/r.canvas.width+a.x1,A*(a.y2-a.y1)/r.canvas.height+a.y1],f=C=>{if(C){const A=C.querySelector(".__content");if(A){const x=m(A);if(x)return x}const I=m(C);if(I)return I}return"gray"},m=C=>{const A=getComputedStyle(C).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},_=()=>{const C=s.value.parentElement.offsetWidth,A=s.value.parentElement.offsetHeight,I=C/n.value.scaling-n.value.panning.x,x=A/n.value.scaling-n.value.panning.y;return{x1:-n.value.panning.x,y1:-n.value.panning.y,x2:I,y2:x}},g=C=>{C.button===0&&(o=!0,b(C))},b=C=>{if(o){const[A,I]=h(C.offsetX,C.offsetY),x=_(),O=(x.x2-x.x1)/2,B=(x.y2-x.y1)/2;n.value.panning.x=-(A-O),n.value.panning.y=-(I-B)}},E=()=>{o=!1},y=()=>{i.value=!0},v=()=>{i.value=!1,E()};In([i,n.value.panning,()=>n.value.scaling,()=>n.value.connections.length],()=>{d()});const S=Je(()=>n.value.nodes.map(C=>C.position)),R=Je(()=>n.value.nodes.map(C=>C.width));return In([S,R],()=>{d()},{deep:!0}),ci(()=>{r=s.value.getContext("2d"),r.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),Aa(()=>{clearInterval(c)}),(C,A)=>(T(),w("canvas",{ref_key:"canvas",ref:s,class:"baklava-minimap",onMouseenter:y,onMouseleave:v,onMousedown:j(g,["self"]),onMousemove:j(b,["self"]),onMouseup:E},null,544))}}),LLt=cn({components:{ContextMenu:ly,VerticalDots:NO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(t){const{viewModel:e}=Cs(),{switchGraph:n}=Ys(),s=ct(!1),i=Je(()=>t.type.startsWith(Wl));return{showContextMenu:s,hasContextMenu:i,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{s.value=!0},onContextMenuClick:c=>{const d=t.type.substring(Wl.length),u=e.value.editor.graphTemplates.find(h=>h.id===d);if(u)switch(c){case"editSubgraph":n(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),PLt=["data-node-type"],ULt={class:"__title"},FLt={class:"__title-label"},BLt={key:0,class:"__menu"};function GLt(t,e,n,s,i,r){const o=tt("vertical-dots"),a=tt("context-menu");return T(),w("div",{class:"baklava-node --palette","data-node-type":t.type},[l("div",ULt,[l("div",FLt,K(t.title),1),t.hasContextMenu?(T(),w("div",BLt,[V(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=j(()=>{},["stop","prevent"])),onClick:j(t.openContextMenu,["stop","prevent"])},null,8,["onClick"]),V(a,{modelValue:t.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>t.showContextMenu=c),x:-100,y:0,items:t.contextMenuItems,onClick:t.onContextMenuClick,onPointerdown:e[2]||(e[2]=j(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):G("",!0)])],8,PLt)}const Cw=dn(LLt,[["render",GLt]]),VLt={class:"baklava-node-palette"},zLt={key:0},HLt=cn({__name:"NodePalette",setup(t){const{viewModel:e}=Cs(),{x:n,y:s}=QDt(),{transform:i}=xO(),r=TO(e),o=Zn("editorEl"),a=ct(null),c=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:h}=o.value.getBoundingClientRect();return{top:`${s.value-h}px`,left:`${n.value-u}px`}}),d=(u,h)=>{a.value={type:u,nodeInformation:h};const f=()=>{const m=Wn(new h.type);e.value.displayedGraph.addNode(m);const _=o.value.getBoundingClientRect(),[g,b]=i(n.value-_.left,s.value-_.top);m.position.x=g,m.position.y=b,a.value=null,document.removeEventListener("pointerup",f)};document.addEventListener("pointerup",f)};return(u,h)=>(T(),w(Pe,null,[l("div",VLt,[(T(!0),w(Pe,null,Ke(Lt(r),f=>(T(),w("section",{key:f.name},[f.name!=="default"?(T(),w("h1",zLt,K(f.name),1)):G("",!0),(T(!0),w(Pe,null,Ke(f.nodeTypes,(m,_)=>(T(),dt(Cw,{key:_,type:_,title:m.title,onPointerdown:g=>d(_,m)},null,8,["type","title","onPointerdown"]))),128))]))),128))]),V(Us,{name:"fade"},{default:Ie(()=>[a.value?(T(),w("div",{key:0,class:"baklava-dragged-node",style:Ht(c.value)},[V(Cw,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):G("",!0)]),_:1})],64))}});let ud;const qLt=new Uint8Array(16);function $Lt(){if(!ud&&(ud=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ud))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ud(qLt)}const Sn=[];for(let t=0;t<256;++t)Sn.push((t+256).toString(16).slice(1));function YLt(t,e=0){return Sn[t[e+0]]+Sn[t[e+1]]+Sn[t[e+2]]+Sn[t[e+3]]+"-"+Sn[t[e+4]]+Sn[t[e+5]]+"-"+Sn[t[e+6]]+Sn[t[e+7]]+"-"+Sn[t[e+8]]+Sn[t[e+9]]+"-"+Sn[t[e+10]]+Sn[t[e+11]]+Sn[t[e+12]]+Sn[t[e+13]]+Sn[t[e+14]]+Sn[t[e+15]]}const WLt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ww={randomUUID:WLt};function du(t,e,n){if(ww.randomUUID&&!e&&!t)return ww.randomUUID();t=t||{};const s=t.random||(t.rng||$Lt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let i=0;i<16;++i)e[n+i]=s[i];return e}return YLt(s)}const Kl="SAVE_SUBGRAPH";function KLt(t,e){const n=()=>{const s=t.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(Kl,{canExecute:()=>{var s;return t.value!==((s=t.value.editor)==null?void 0:s.graph)},execute:n})}const jLt={},QLt={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"},XLt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),ZLt=[XLt];function JLt(t,e){return T(),w("svg",QLt,ZLt)}const ePt=dn(jLt,[["render",JLt]]),tPt=cn({components:{"i-arrow":ePt},props:{intf:{type:Object,required:!0}},setup(t){const e=ct(null),n=ct(!1),s=Je(()=>t.intf.items.find(o=>typeof o=="string"?o===t.intf.value:o.value===t.intf.value)),i=Je(()=>s.value?typeof s.value=="string"?s.value:s.value.text:""),r=o=>{t.intf.value=typeof o=="string"?o:o.value};return RO(e,()=>{n.value=!1}),{el:e,open:n,selectedItem:s,selectedText:i,setSelected:r}}}),nPt=["title"],sPt={class:"__selected"},iPt={class:"__text"},rPt={class:"__icon"},oPt={class:"__dropdown"},aPt={class:"item --header"},lPt=["onClick"];function cPt(t,e,n,s,i,r){const o=tt("i-arrow");return T(),w("div",{ref:"el",class:Ge(["baklava-select",{"--open":t.open}]),title:t.intf.name,onClick:e[0]||(e[0]=a=>t.open=!t.open)},[l("div",sPt,[l("div",iPt,K(t.selectedText),1),l("div",rPt,[V(o)])]),V(Us,{name:"slide-fade"},{default:Ie(()=>[P(l("div",oPt,[l("div",aPt,K(t.intf.name),1),(T(!0),w(Pe,null,Ke(t.intf.items,(a,c)=>(T(),w("div",{key:c,class:Ge(["item",{"--active":a===t.selectedItem}]),onClick:d=>t.setSelected(a)},K(typeof a=="string"?a:a.text),11,lPt))),128))],512),[[wt,t.open]])]),_:1})],10,nPt)}const dPt=dn(tPt,[["render",cPt]]);class uPt extends Xt{constructor(e,n,s){super(e,n),this.component=jl(dPt),this.items=s}}const pPt=cn({props:{intf:{type:Object,required:!0}}});function _Pt(t,e,n,s,i,r){return T(),w("div",null,K(t.intf.value),1)}const hPt=dn(pPt,[["render",_Pt]]);class fPt extends Xt{constructor(e,n){super(e,n),this.component=jl(hPt),this.setPort(!1)}}const mPt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){return{v:Je({get:()=>t.modelValue,set:s=>{e("update:modelValue",s)}})}}}),gPt=["placeholder","title"];function bPt(t,e,n,s,i,r){return T(),w("div",null,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>t.v=o),type:"text",class:"baklava-input",placeholder:t.intf.name,title:t.intf.name},null,8,gPt),[[pe,t.v]])])}const EPt=dn(mPt,[["render",bPt]]);class ac extends Xt{constructor(){super(...arguments),this.component=jl(EPt)}}class MO extends gO{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new ac("Name","Input").setPort(!1)},this.outputs={placeholder:new Xt("Connection",void 0)}}}class IO extends bO{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new ac("Name","Output").setPort(!1),placeholder:new Xt("Connection",void 0)},this.outputs={output:new Xt("Output",void 0).setHidden(!0)}}}const kO="CREATE_SUBGRAPH",Rw=[ya,va];function yPt(t,e,n){const s=()=>t.value.selectedNodes.filter(r=>!Rw.includes(r.type)).length>0,i=()=>{const{viewModel:r}=Cs(),o=t.value,a=t.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(x=>!Rw.includes(x.type)),d=c.flatMap(x=>Object.values(x.inputs)),u=c.flatMap(x=>Object.values(x.outputs)),h=o.connections.filter(x=>!u.includes(x.from)&&d.includes(x.to)),f=o.connections.filter(x=>u.includes(x.from)&&!d.includes(x.to)),m=o.connections.filter(x=>u.includes(x.from)&&d.includes(x.to)),_=c.map(x=>x.save()),g=m.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:E,xRight:y,yTop:v}=vPt(c);console.log(E,y,v);for(const[x,O]of h.entries()){const B=new MO;B.inputs.name.value=O.to.name,_.push({...B.save(),position:{x:y-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),g.push({id:du(),from:B.outputs.placeholder.id,to:O.to.id}),b.set(O.to.id,B.graphInterfaceId)}for(const[x,O]of f.entries()){const B=new IO;B.inputs.name.value=O.from.name,_.push({...B.save(),position:{x:E+100,y:v+x*200}}),g.push({id:du(),from:O.from.id,to:B.inputs.placeholder.id}),b.set(O.from.id,B.graphInterfaceId)}const S=Wn(new op({connections:g,nodes:_,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Sa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");const C=Wn(new R.type);o.addNode(C);const A=Math.round(c.map(x=>x.position.x).reduce((x,O)=>x+O,0)/c.length),I=Math.round(c.map(x=>x.position.y).reduce((x,O)=>x+O,0)/c.length);C.position.x=A,C.position.y=I,h.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,C.inputs[b.get(x.to.id)])}),f.forEach(x=>{o.removeConnection(x),o.addConnection(C.outputs[b.get(x.from.id)],x.to)}),c.forEach(x=>o.removeNode(x)),e.canExecuteCommand(Kl)&&e.executeCommand(Kl),n(S),t.value.panning={...o.panning},t.value.scaling=o.scaling};e.registerCommand(kO,{canExecute:s,execute:i})}function vPt(t){const e=t.reduce((i,r)=>{const o=r.position.x;return o{const o=r.position.y;return o{const o=r.position.x+r.width;return o>i?o:i},-1/0),xRight:e,yTop:n}}const Aw="DELETE_NODES";function SPt(t,e){e.registerCommand(Aw,{canExecute:()=>t.value.selectedNodes.length>0,execute(){t.value.selectedNodes.forEach(n=>t.value.removeNode(n))}}),e.registerHotkey(["Delete"],Aw)}const DO="SWITCH_TO_MAIN_GRAPH";function TPt(t,e,n){e.registerCommand(DO,{canExecute:()=>t.value!==t.value.editor.graph,execute:()=>{e.executeCommand(Kl),n(t.value.editor.graph)}})}function xPt(t,e,n){SPt(t,e),yPt(t,e,n),KLt(t,e),TPt(t,e,n)}class Nw{constructor(e,n){this.type=e,e==="addNode"?this.nodeId=n:this.nodeState=n}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 n=e.editor.nodeTypes.get(this.nodeState.type);if(!n)return;const s=new n.type;e.addNode(s),s.load(this.nodeState),this.nodeId=s.id}removeNode(e){const n=e.nodes.find(s=>s.id===this.nodeId);n&&(this.nodeState=n.save(),e.removeNode(n))}}class Ow{constructor(e,n){if(this.type=e,e==="addConnection")this.connectionId=n;else{const s=n;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 n=e.findNodeInterface(this.connectionState.from),s=e.findNodeInterface(this.connectionState.to);!n||!s||e.addConnection(n,s)}removeConnection(e){const n=e.connections.find(s=>s.id===this.connectionId);n&&(this.connectionState={id:n.id,from:n.from.id,to:n.to.id},e.removeConnection(n))}}class CPt{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 n=this.steps.length-1;n>=0;n--)this.steps[n].undo(e)}redo(e){for(let n=0;n{if(!r.value)if(a.value)c.value.push(b);else for(o.value!==i.value.length-1&&(i.value=i.value.slice(0,o.value+1)),i.value.push(b),o.value++;i.value.length>s.value;)i.value.shift()},u=()=>{a.value=!0},h=()=>{a.value=!1,c.value.length>0&&(d(new CPt(c.value)),c.value=[])},f=()=>i.value.length!==0&&o.value!==-1,m=()=>{f()&&(r.value=!0,i.value[o.value--].undo(t.value),r.value=!1)},_=()=>i.value.length!==0&&o.value{_()&&(r.value=!0,i.value[++o.value].redo(t.value),r.value=!1)};return In(t,(b,E)=>{E&&(E.events.addNode.unsubscribe(n),E.events.removeNode.unsubscribe(n),E.events.addConnection.unsubscribe(n),E.events.removeConnection.unsubscribe(n)),b&&(b.events.addNode.subscribe(n,y=>{d(new Nw("addNode",y.id))}),b.events.removeNode.subscribe(n,y=>{d(new Nw("removeNode",y.save()))}),b.events.addConnection.subscribe(n,y=>{d(new Ow("addConnection",y.id))}),b.events.removeConnection.subscribe(n,y=>{d(new Ow("removeConnection",y))}))},{immediate:!0}),e.registerCommand(ub,{canExecute:f,execute:m}),e.registerCommand(pb,{canExecute:_,execute:g}),e.registerCommand(LO,{canExecute:()=>!a.value,execute:u}),e.registerCommand(PO,{canExecute:()=>a.value,execute:h}),e.registerHotkey(["Control","z"],ub),e.registerHotkey(["Control","y"],pb),Wn({maxSteps:s})}const _b="COPY",hb="PASTE",RPt="CLEAR_CLIPBOARD";function APt(t,e,n){const s=Symbol("ClipboardToken"),i=ct(""),r=ct(""),o=Je(()=>!i.value),a=()=>{i.value="",r.value=""},c=()=>{const h=t.value.selectedNodes.flatMap(m=>[...Object.values(m.inputs),...Object.values(m.outputs)]),f=t.value.connections.filter(m=>h.includes(m.from)||h.includes(m.to)).map(m=>({from:m.from.id,to:m.to.id}));r.value=JSON.stringify(f),i.value=JSON.stringify(t.value.selectedNodes.map(m=>m.save()))},d=(h,f,m)=>{for(const _ of h){let g;if((!m||m==="input")&&(g=Object.values(_.inputs).find(b=>b.id===f)),!g&&(!m||m==="output")&&(g=Object.values(_.outputs).find(b=>b.id===f)),g)return g}},u=()=>{if(o.value)return;const h=new Map,f=JSON.parse(i.value),m=JSON.parse(r.value),_=[],g=[],b=t.value;n.executeCommand(LO);for(const E of f){const y=e.value.nodeTypes.get(E.type);if(!y){console.warn(`Node type ${E.type} not registered`);return}const v=new y.type,S=v.id;_.push(v),v.hooks.beforeLoad.subscribe(s,R=>{const C=R;return C.position&&(C.position.x+=100,C.position.y+=100),v.hooks.beforeLoad.unsubscribe(s),C}),b.addNode(v),v.load({...E,id:S}),v.id=S,h.set(E.id,S);for(const R of Object.values(v.inputs)){const C=du();h.set(R.id,C),R.id=C}for(const R of Object.values(v.outputs)){const C=du();h.set(R.id,C),R.id=C}}for(const E of m){const y=d(_,h.get(E.from),"output"),v=d(_,h.get(E.to),"input");if(!y||!v)continue;const S=b.addConnection(y,v);S&&g.push(S)}return t.value.selectedNodes=_,n.executeCommand(PO),{newNodes:_,newConnections:g}};return n.registerCommand(_b,{canExecute:()=>t.value.selectedNodes.length>0,execute:c}),n.registerHotkey(["Control","c"],_b),n.registerCommand(hb,{canExecute:()=>!o.value,execute:u}),n.registerHotkey(["Control","v"],hb),n.registerCommand(RPt,{canExecute:()=>!0,execute:a}),Wn({isEmpty:o})}const NPt="OPEN_SIDEBAR";function OPt(t,e){e.registerCommand(NPt,{execute:n=>{t.value.sidebar.nodeId=n,t.value.sidebar.visible=!0},canExecute:()=>!0})}function MPt(t,e){OPt(t,e)}const IPt={},kPt={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"},DPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),LPt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),PPt=[DPt,LPt];function UPt(t,e){return T(),w("svg",kPt,PPt)}const FPt=dn(IPt,[["render",UPt]]),BPt={},GPt={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"},VPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),zPt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),HPt=[VPt,zPt];function qPt(t,e){return T(),w("svg",GPt,HPt)}const $Pt=dn(BPt,[["render",qPt]]),YPt={},WPt={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"},KPt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),jPt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),QPt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),XPt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),ZPt=[KPt,jPt,QPt,XPt];function JPt(t,e){return T(),w("svg",WPt,ZPt)}const eUt=dn(YPt,[["render",JPt]]),tUt={},nUt={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"},sUt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),iUt=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),rUt=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),oUt=[sUt,iUt,rUt];function aUt(t,e){return T(),w("svg",nUt,oUt)}const lUt=dn(tUt,[["render",aUt]]),cUt={},dUt={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"},uUt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),pUt=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),_Ut=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),hUt=[uUt,pUt,_Ut];function fUt(t,e){return T(),w("svg",dUt,hUt)}const mUt=dn(cUt,[["render",fUt]]),gUt={},bUt={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"},EUt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),yUt=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),vUt=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),SUt=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),TUt=[EUt,yUt,vUt,SUt];function xUt(t,e){return T(),w("svg",bUt,TUt)}const CUt=dn(gUt,[["render",xUt]]),wUt={},RUt={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"},AUt=Na('',6),NUt=[AUt];function OUt(t,e){return T(),w("svg",RUt,NUt)}const MUt=dn(wUt,[["render",OUt]]),IUt=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:t}=Cs();return{viewModel:t}}}),kUt=["disabled","title"];function DUt(t,e,n,s,i,r){return T(),w("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!t.viewModel.commandHandler.canExecuteCommand(t.command),title:t.title,onClick:e[0]||(e[0]=o=>t.viewModel.commandHandler.executeCommand(t.command))},[t.icon?(T(),dt(Tu(t.icon),{key:0})):(T(),w(Pe,{key:1},[et(K(t.title),1)],64))],8,kUt)}const LUt=dn(IUt,[["render",DUt]]),PUt=cn({components:{ToolbarButton:LUt},setup(){const{viewModel:t}=Cs();return{isSubgraph:Je(()=>t.value.displayedGraph!==t.value.editor.graph),commands:[{command:_b,title:"Copy",icon:mUt},{command:hb,title:"Paste",icon:lUt},{command:ub,title:"Undo",icon:FPt},{command:pb,title:"Redo",icon:$Pt},{command:kO,title:"Create Subgraph",icon:MUt}],subgraphCommands:[{command:Kl,title:"Save Subgraph",icon:CUt},{command:DO,title:"Back to Main Graph",icon:eUt}]}}}),UUt={class:"baklava-toolbar"};function FUt(t,e,n,s,i,r){const o=tt("toolbar-button");return T(),w("div",UUt,[(T(!0),w(Pe,null,Ke(t.commands,a=>(T(),dt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),t.isSubgraph?(T(!0),w(Pe,{key:0},Ke(t.subgraphCommands,a=>(T(),dt(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):G("",!0)])}const BUt=dn(PUt,[["render",FUt]]),GUt={class:"connections-container"},VUt=cn({__name:"Editor",props:{viewModel:{}},setup(t){const e=t,n=Symbol("EditorToken"),s=kd(e,"viewModel");LDt(s);const i=ct(null);Yo("editorEl",i);const r=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(A=>vO(kd(A,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),c=Je(()=>e.viewModel.displayedGraph.selectedNodes),d=PDt(),u=UDt(),h=FDt(s),f=Je(()=>({...d.styles.value})),m=ct(0);e.viewModel.editor.hooks.load.subscribe(n,A=>(m.value++,A));const _=A=>{d.onPointerMove(A),u.onMouseMove(A)},g=A=>{A.button===0&&(A.target===i.value&&(S(),d.onPointerDown(A)),u.onMouseDown())},b=A=>{d.onPointerUp(A),u.onMouseUp()},E=A=>{A.key==="Tab"&&A.preventDefault(),e.viewModel.commandHandler.handleKeyDown(A)},y=A=>{e.viewModel.commandHandler.handleKeyUp(A)},v=A=>{["Control","Shift"].some(I=>e.viewModel.commandHandler.pressedKeys.includes(I))||S(),e.viewModel.displayedGraph.selectedNodes.push(A)},S=()=>{e.viewModel.displayedGraph.selectedNodes=[]},R=A=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(I),O=o.value[x];O.onPointerDown(A),document.addEventListener("pointermove",O.onPointerMove)}document.addEventListener("pointerup",C)},C=()=>{for(const A of e.viewModel.displayedGraph.selectedNodes){const I=r.value.indexOf(A),x=o.value[I];x.onPointerUp(),document.removeEventListener("pointermove",x.onPointerMove)}document.removeEventListener("pointerup",C)};return(A,I)=>(T(),w("div",{ref_key:"el",ref:i,tabindex:"-1",class:Ge(["baklava-editor",{"baklava-ignore-mouse":!!Lt(u).temporaryConnection.value||Lt(d).dragging.value,"--temporary-connection":!!Lt(u).temporaryConnection.value}]),onPointermove:j(_,["self"]),onPointerdown:g,onPointerup:b,onWheel:I[1]||(I[1]=j((...x)=>Lt(d).onMouseWheel&&Lt(d).onMouseWheel(...x),["self"])),onKeydown:E,onKeyup:y,onContextmenu:I[2]||(I[2]=j((...x)=>Lt(h).open&&Lt(h).open(...x),["self","prevent"]))},[un(A.$slots,"background",{},()=>[V(VDt)]),un(A.$slots,"toolbar",{},()=>[V(BUt)]),un(A.$slots,"palette",{},()=>[V(HLt)]),(T(),w("svg",GUt,[(T(!0),w(Pe,null,Ke(a.value,x=>(T(),w("g",{key:x.id+m.value.toString()},[un(A.$slots,"connection",{connection:x},()=>[V(CLt,{connection:x},null,8,["connection"])])]))),128)),un(A.$slots,"temporaryConnection",{temporaryConnection:Lt(u).temporaryConnection.value},()=>[Lt(u).temporaryConnection.value?(T(),dt(ALt,{key:0,connection:Lt(u).temporaryConnection.value},null,8,["connection"])):G("",!0)])])),l("div",{class:"node-container",style:Ht(f.value)},[V(ii,{name:"fade"},{default:Ie(()=>[(T(!0),w(Pe,null,Ke(r.value,(x,O)=>un(A.$slots,"node",{key:x.id+m.value.toString(),node:x,selected:c.value.includes(x),dragging:o.value[O].dragging.value,onSelect:B=>v(x),onStartDrag:R},()=>[V(bLt,{node:x,selected:c.value.includes(x),dragging:o.value[O].dragging.value,onSelect:B=>v(x),onStartDrag:R},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),un(A.$slots,"sidebar",{},()=>[V(kLt)]),un(A.$slots,"minimap",{},()=>[A.viewModel.settings.enableMinimap?(T(),dt(DLt,{key:0})):G("",!0)]),un(A.$slots,"contextMenu",{contextMenu:Lt(h)},()=>[A.viewModel.settings.contextMenu.enabled?(T(),dt(ly,{key:0,modelValue:Lt(h).show.value,"onUpdate:modelValue":I[0]||(I[0]=x=>Lt(h).show.value=x),items:Lt(h).items.value,x:Lt(h).x.value,y:Lt(h).y.value,onClick:Lt(h).onClick},null,8,["modelValue","items","x","y","onClick"])):G("",!0)])],34))}}),zUt=["INPUT","TEXTAREA","SELECT"];function HUt(t){const e=ct([]),n=ct([]);return{pressedKeys:e,handleKeyDown:o=>{var a;e.value.includes(o.key)||e.value.push(o.key),!zUt.includes(((a=document.activeElement)==null?void 0:a.tagName)??"")&&n.value.forEach(c=>{c.keys.every(d=>e.value.includes(d))&&t(c.commandName)})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a)=>{n.value.push({keys:o,commandName:a})}}}const qUt=()=>{const t=ct(new Map),e=(r,o)=>{if(t.value.has(r))throw new Error(`Command "${r}" already exists`);t.value.set(r,o)},n=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return}return t.value.get(r).execute(...a)},s=(r,o=!1,...a)=>{if(!t.value.has(r)){if(o)throw new Error(`[CommandHandler] Command ${r} not registered`);return!1}return t.value.get(r).canExecute(a)},i=HUt(n);return Wn({registerCommand:e,executeCommand:n,canExecuteCommand:s,...i})},$Ut=t=>!(t instanceof oc);function YUt(t,e){return{switchGraph:s=>{let i;if($Ut(s))i=new oc(t.value),s.createGraph(i);else{if(s!==t.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");i=s}e.value&&e.value!==t.value.graph&&e.value.destroy(),i.panning=i.panning??s.panning??{x:0,y:0},i.scaling=i.scaling??s.scaling??1,i.selectedNodes=i.selectedNodes??[],i.sidebar=i.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=i}}}function WUt(t,e){t.position=t.position??{x:0,y:0},t.disablePointerEvents=!1,t.twoColumn=t.twoColumn??!1,t.width=t.width??e.defaultWidth}const KUt=()=>({useStraightConnections:!1,enableMinimap:!1,background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1},contextMenu:{enabled:!0,additionalItems:[]}});function jUt(t){const e=ct(t??new NDt),n=Symbol("ViewModelToken"),s=ct(null),i=GM(s),{switchGraph:r}=YUt(e,s),o=Je(()=>i.value&&i.value!==e.value.graph),a=Wn(KUt()),c=qUt(),d=wPt(i,c),u=APt(i,e,c),h={renderNode:new ss(null),renderInterface:new ss(null)};return xPt(i,c,r),MPt(i,c),In(e,(f,m)=>{m&&(m.events.registerGraph.unsubscribe(n),m.graphEvents.beforeAddNode.unsubscribe(n),f.nodeHooks.beforeLoad.unsubscribe(n),f.nodeHooks.afterSave.unsubscribe(n),f.graphTemplateHooks.beforeLoad.unsubscribe(n),f.graphTemplateHooks.afterSave.unsubscribe(n),f.graph.hooks.load.unsubscribe(n),f.graph.hooks.save.unsubscribe(n)),f&&(f.nodeHooks.beforeLoad.subscribe(n,(_,g)=>(g.position=_.position??{x:0,y:0},g.width=_.width??a.nodes.defaultWidth,g.twoColumn=_.twoColumn??!1,_)),f.nodeHooks.afterSave.subscribe(n,(_,g)=>(_.position=g.position,_.width=g.width,_.twoColumn=g.twoColumn,_)),f.graphTemplateHooks.beforeLoad.subscribe(n,(_,g)=>(g.panning=_.panning,g.scaling=_.scaling,_)),f.graphTemplateHooks.afterSave.subscribe(n,(_,g)=>(_.panning=g.panning,_.scaling=g.scaling,_)),f.graph.hooks.load.subscribe(n,(_,g)=>(g.panning=_.panning,g.scaling=_.scaling,_)),f.graph.hooks.save.subscribe(n,(_,g)=>(_.panning=g.panning,_.scaling=g.scaling,_)),f.graphEvents.beforeAddNode.subscribe(n,_=>WUt(_,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(MO,{category:"Subgraphs"}),e.value.registerNodeType(IO,{category:"Subgraphs"}),r(f.graph))},{immediate:!0}),Wn({editor:e,displayedGraph:i,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:h,switchGraph:r})}const QUt=za({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new Xt("Request",""),agent_name:()=>new uPt("Personality","",Ms.state.config.personalities).setPort(!1)},outputs:{response:()=>new Xt("Response","")},async calculate({request:t}){console.log(Ms.state.config.personalities);let e="";try{e=(await ae.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),XUt=za({type:"RAGNode",title:"RAG",inputs:{request:()=>new Xt("Prompt",""),document_path:()=>new ac("Document path","").setPort(!1)},outputs:{prompt:()=>new Xt("Prompt with Data","")},async calculate({request:t,document_path:e}){let n="";try{n=(await ae.get("/rag",{params:{text:t,doc_path:e}})).data}catch(s){console.error(s)}return{response:n}}}),Mw=za({type:"Task",title:"Task",inputs:{description:()=>new ac("Task description","").setPort(!1)},outputs:{prompt:()=>new Xt("Prompt")},calculate({description:t}){return{prompt:t}}}),Iw=za({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new Xt("Input","")},outputs:{response:()=>new fPt("Text","")},async calculate({request:t}){}}),kw=za({type:"LLMNode",title:"LLM",inputs:{request:()=>new Xt("Request","")},outputs:{response:()=>new Xt("Response","")},async calculate({request:t}){console.log(Ms.state.config.personalities);let e="";try{e=(await ae.post("/generate",{params:{text:t}})).data}catch(n){console.error(n)}return{display:e,response:e}}}),ZUt=za({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new Xt("Question",""),outputs:()=>new ac("choices, one per line","","").setPort(!1)},outputs:{response:()=>new Xt("Response","")}}),JUt=cn({components:{"baklava-editor":VUt},setup(){const t=jUt(),e=new DDt(t.editor);t.editor.registerNodeType(QUt),t.editor.registerNodeType(Mw),t.editor.registerNodeType(XUt),t.editor.registerNodeType(Iw),t.editor.registerNodeType(kw),t.editor.registerNodeType(ZUt);const n=Symbol();e.events.afterRun.subscribe(n,a=>{e.pause(),ODt(a,t.editor),e.resume()}),e.start();function s(a,c,d){const u=new a;return t.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const i=s(Mw,300,140),r=s(kw,550,140),o=s(Iw,850,140);return t.displayedGraph.addConnection(i.outputs.prompt,r.inputs.request),t.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:t,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),eFt={style:{width:"100vw",height:"100vh"}};function tFt(t,e,n,s,i,r){const o=tt("baklava-editor");return T(),w("div",eFt,[V(o,{"view-model":t.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>t.saveGraph&&t.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>t.loadGraph&&t.loadGraph(...a))},"Load Graph")])}const nFt=ot(JUt,[["render",tFt]]),sFt={},iFt={style:{width:"100vw",height:"100vh"}},rFt=["src"];function oFt(t,e,n,s,i,r){return T(),w("div",iFt,[l("iframe",{src:t.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,rFt)])}const aFt=ot(sFt,[["render",oFt]]),lFt={},cFt={style:{width:"100vw",height:"100vh"}},dFt=["src"];function uFt(t,e,n,s,i,r){return T(),w("div",cFt,[l("iframe",{src:t.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,dFt)])}const pFt=ot(lFt,[["render",uFt]]);const _Ft={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)}}},is=t=>(Ss("data-v-192425d2"),t=t(),Ts(),t),hFt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},fFt={class:"flex-grow"},mFt={class:"flex items-center mb-4"},gFt=["src"],bFt={class:"font-bold text-xl text-gray-800"},EFt={class:"text-sm text-gray-600"},yFt={class:"text-sm text-gray-600"},vFt={class:"text-sm text-gray-600"},SFt={class:"text-sm text-gray-600"},TFt={class:"mb-4"},xFt=is(()=>l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),CFt={class:"text-sm text-gray-600 h-20 overflow-y-auto"},wFt={class:"text-sm text-gray-600 mb-2"},RFt={key:0,class:"mb-4"},AFt=is(()=>l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),NFt={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},OFt={class:"mt-auto pt-4 border-t"},MFt={class:"flex justify-between items-center flex-wrap"},IFt=["title"],kFt=["fill"],DFt=is(()=>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)),LFt=[DFt],PFt=is(()=>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)),UFt=[PFt],FFt=is(()=>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)),BFt=[FFt],GFt=is(()=>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)),VFt=[GFt],zFt=is(()=>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)),HFt=[zFt],qFt=is(()=>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)),$Ft=[qFt],YFt=is(()=>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:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})],-1)),WFt=[YFt],KFt=is(()=>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)),jFt=[KFt],QFt=is(()=>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)),XFt=[QFt],ZFt=is(()=>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)),JFt=is(()=>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)),e3t=[ZFt,JFt];function t3t(t,e,n,s,i,r){return T(),w("div",hFt,[l("div",fFt,[l("div",mFt,[l("img",{src:n.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,gFt),l("div",null,[l("h3",bFt,K(n.app.name),1),l("p",EFt,"Author: "+K(n.app.author),1),l("p",yFt,"Version: "+K(n.app.version),1),l("p",vFt,"Creation date: "+K(r.formatDate(n.app.creation_date)),1),l("p",SFt,"Last update: "+K(r.formatDate(n.app.last_update_date)),1),l("p",{class:Ge(["text-sm",n.app.is_public?"text-green-600":"text-orange-600"])},K(n.app.is_public?"Public App":"Local App"),3)])]),l("div",TFt,[xFt,l("p",CFt,K(n.app.description),1)]),l("p",wFt,"AI Model: "+K(n.app.model_name),1),n.app.disclaimer&&n.app.disclaimer.trim()!==""?(T(),w("div",RFt,[AFt,l("p",NFt,K(n.app.disclaimer),1)])):G("",!0)]),l("div",OFt,[l("div",MFt,[l("button",{onClick:e[0]||(e[0]=j(o=>t.$emit("toggle-favorite",n.app.uid),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("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"},LFt,8,kFt))],8,IFt),n.app.installed?(T(),w("button",{key:0,onClick:e[1]||(e[1]=j(o=>t.$emit("uninstall",n.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},UFt)):n.app.existsInFolder?(T(),w("button",{key:1,onClick:e[2]||(e[2]=j(o=>t.$emit("delete",n.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},BFt)):(T(),w("button",{key:2,onClick:e[3]||(e[3]=j(o=>t.$emit("install",n.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},VFt)),n.app.installed?(T(),w("button",{key:3,onClick:e[4]||(e[4]=j(o=>t.$emit("edit",n.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},HFt)):G("",!0),l("button",{onClick:e[5]||(e[5]=j(o=>t.$emit("download",n.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},$Ft),l("button",{onClick:e[6]||(e[6]=j(o=>t.$emit("view",n.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"View"},WFt),n.app.installed?(T(),w("button",{key:4,onClick:e[7]||(e[7]=j(o=>t.$emit("open",n.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},jFt)):G("",!0),n.app.has_server&&n.app.installed?(T(),w("button",{key:5,onClick:e[8]||(e[8]=j(o=>t.$emit("start-server",n.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},XFt)):G("",!0),n.app.has_update?(T(),w("button",{key:6,onClick:e[9]||(e[9]=j(o=>t.$emit("install",n.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e3t)):G("",!0)])])])}const n3t=ot(_Ft,[["render",t3t],["__scopeId","data-v-192425d2"]]),s3t={components:{AppCard:n3t},data(){return{apps:[],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 Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const t=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))]},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredApps(){return this.filteredApps.sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=new Date(t.creation_date)-new Date(e.creation_date);break;case"update":n=new Date(t.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(t){const e=this.favorites.indexOf(t);e===-1?this.favorites.push(t):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const t=localStorage.getItem("appZooFavorites");console.log("savedFavorites",t),t&&(this.favorites=JSON.parse(t))},startServer(t){const e={client_id:this.$store.state.client_id,app_name:t};this.$store.state.messageBox.showBlockingMessage(`Loading server. +This may take some time the first time as some libraries need to be installed.`),ae.post("/apps/start_server",e).then(n=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",n.data.message),this.$notify({type:"success",title:"Server Starting",text:n.data.message})}).catch(n=>{var s,i;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",n),this.$notify({type:"error",title:"Server Start Failed",text:((i=(s=n.response)==null?void 0:s.data)==null?void 0:i.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(t){this.selectedFile=t.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,n;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const t=new FormData;t.append("file",this.selectedFile),t.append("client_id",this.$store.state.client_id);try{const s=await ae.post("/upload_app",t,{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=((n=(e=s.response)==null?void 0:e.data)==null?void 0:n.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const t=await ae.get("/apps");this.apps=t.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 t=await ae.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 t=await ae.get("/github/apps");this.githubApps=t.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(t){if(t.installed){this.selectedApp=t;const e=await ae.get(`/apps/${t.folder_name}/index.html`);this.appCode=e.data}else this.showMessage(`Please install ${t.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(t){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${t}`);try{await ae.post(`/install/${t}`,{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(t){this.loading=!0;try{await ae.post(`/uninstall/${t}`,{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(t){this.loading=!0;try{await ae.post(`/delete/${t}`,{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(t){this.loading=!0;try{const e=await ae.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:t.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(t){this.isLoading=!0,this.error=null;try{const e=await ae.post("/download_app",{client_id:this.$store.state.client_id,app_name:t},{responseType:"arraybuffer"}),n=e.headers["content-disposition"],s=n&&n.match(/filename="?(.+)"?/i),i=s?s[1]:"app.zip",r=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(r),a=document.createElement("a");a.style.display="none",a.href=o,a.download=i,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(t){t.installed?window.open(`/apps/${t.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${t.name} before opening.`,!1)},showMessage(t,e){this.message=t,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},i3t={class:"app-zoo background-color w-full p-6 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"},r3t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-50 pb-50"},o3t={class:"flex flex-wrap items-center justify-between gap-4"},a3t={class:"flex items-center space-x-4"},l3t=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),c3t=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),d3t=["disabled"],u3t={key:0},p3t={key:1,class:"error"},_3t={class:"relative flex-grow max-w-md"},h3t=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),f3t={class:"flex items-center space-x-4"},m3t=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1),g3t=l("option",{value:"all"},"All Categories",-1),b3t=["value"],E3t={class:"flex items-center space-x-4"},y3t=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1),v3t=l("option",{value:"name"},"Name",-1),S3t=l("option",{value:"author"},"Author",-1),T3t=l("option",{value:"date"},"Creation Date",-1),x3t=l("option",{value:"update"},"Last Update",-1),C3t=[v3t,S3t,T3t,x3t],w3t={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},R3t=l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),A3t=l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1),N3t=[R3t,A3t],O3t={key:1},M3t=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1),I3t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},k3t={class:"text-2xl font-bold mb-4"},D3t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},L3t={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},P3t={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},U3t={class:"flex justify-between items-center mb-4"},F3t={class:"text-2xl font-bold"},B3t=["srcdoc"],G3t={key:1,class:"text-center text-red-500"};function V3t(t,e,n,s,i,r){const o=tt("app-card");return T(),w("div",i3t,[l("nav",r3t,[l("div",o3t,[l("div",a3t,[l("button",{onClick:e[0]||(e[0]=(...a)=>r.fetchGithubApps&&r.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},[l3t,et(" Refresh ")]),l("button",{onClick:e[1]||(e[1]=(...a)=>r.openAppsFolder&&r.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},[c3t,et(" Open Folder ")]),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>r.onFileSelected&&r.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>r.triggerFileInput&&r.triggerFileInput(...a)),disabled:i.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},K(i.isUploading?"Uploading...":"Upload App"),9,d3t)]),i.message?(T(),w("p",u3t,K(i.message),1)):G("",!0),i.error?(T(),w("p",p3t,K(i.error),1)):G("",!0),l("div",_3t,[P(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>i.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),[[pe,i.searchQuery]]),h3t]),l("div",f3t,[m3t,P(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[g3t,(T(!0),w(Pe,null,Ke(r.categories,a=>(T(),w("option",{key:a,value:a},K(a),9,b3t))),128))],512),[[kt,i.selectedCategory]])]),l("div",E3t,[y3t,P(l("select",{id:"sort-select","onUpdate:modelValue":e[6]||(e[6]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},C3t,512),[[kt,i.sortBy]]),l("button",{onClick:e[7]||(e[7]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},K(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),w("div",w3t,N3t)):(T(),w("div",O3t,[M3t,l("div",I3t,[(T(!0),w(Pe,null,Ke(r.favoriteApps,a=>(T(),dt(o,{key:a.uid,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onView:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onView","onOpen","onStartServer"]))),128))]),l("h2",k3t,K(r.currentCategoryName),1),l("div",D3t,[(T(!0),w(Pe,null,Ke(r.sortedAndFilteredApps,a=>(T(),dt(o,{key:a.uid,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onView:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onView","onOpen","onStartServer"]))),128))])])),i.selectedApp?(T(),w("div",L3t,[l("div",P3t,[l("div",U3t,[l("h2",F3t,K(i.selectedApp.name),1),l("button",{onClick:e[8]||(e[8]=(...a)=>r.backToZoo&&r.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),w("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,B3t)):(T(),w("p",G3t,"Please install this app to view its code."))])])):G("",!0),i.message?(T(),w("div",{key:3,class:Ge(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},K(i.message),3)):G("",!0)])}const z3t=ot(s3t,[["render",V3t]]);const H3t={components:{PersonalityEntry:RE},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(t){this.$store.commit("setConfig",t)}},combinedApps(){this.personalities.map(e=>e.name);const t=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{t.has(e.name)||t.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(t.values())},categories(){return[...new Set(this.combinedApps.map(t=>t.category))].sort((t,e)=>t.localeCompare(e))},filteredApps(){return this.combinedApps.filter(t=>{const e=t.name.toLowerCase().includes(this.searchQuery.toLowerCase())||t.author.toLowerCase().includes(this.searchQuery.toLowerCase())||t.description.toLowerCase().includes(this.searchQuery.toLowerCase()),n=this.selectedCategory==="all"||t.category===this.selectedCategory;return e&&n})},sortedAndFilteredApps(){return this.filteredApps.sort((t,e)=>{let n=0;switch(this.sortBy){case"name":n=t.name.localeCompare(e.name);break;case"author":n=t.author.localeCompare(e.author);break;case"date":n=new Date(t.creation_date)-new Date(e.creation_date);break;case"update":n=new Date(t.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?n:-n})},favoriteApps(){return this.combinedApps.filter(t=>this.favorites.includes(t.uid))}},methods:{async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=t.language==null?t.full_path:t.full_path+":"+t.language;if(console.log("pth",e),t.isMounted&&this.configFile.personalities.includes(e)){const n=await this.select_personality(t);console.log("pers is mounted",n),n&&n.status&&n.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality: `+t.name,4,!0):this.$store.state.toast.showToast(`Error on select personality: `+t.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(t);Le(()=>{feather.replace()})}},onModelSelected(t){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}t&&(t.isInstalled?this.update_model(t.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=t.model.name,e.status?(this.$store.state.toast.showToast(`Selected model: `+t.name,4,!0),Le(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(n=>{this.$store.commit("setIsModelOk",n)})):(this.$store.state.toast.showToast(`Couldn't select model: @@ -3997,4 +3997,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(t){await this.unmountPersonality(t),await this.mountPersonality(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,console.log("Personality path:",t.personality.path),ae.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:t.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(t){await ae.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:t.personality.folder})},showMessage(t,e){this.message=t,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)}},Ws=t=>(Ss("data-v-60cac3df"),t=t(),Ts(),t),WFt={class:"app-zoo mb-100 pb-100 background-color w-full p-6 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={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},jFt={class:"flex flex-wrap items-center justify-between gap-4"},QFt={key:0},XFt={key:1,class:"error"},ZFt={class:"relative flex-grow max-w-md"},JFt=Ws(()=>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)),e4t={class:"flex items-center space-x-4"},t4t=Ws(()=>l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),n4t=Ws(()=>l("option",{value:"all"},"All Categories",-1)),s4t=["value"],i4t={class:"flex items-center space-x-4"},r4t=Ws(()=>l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),o4t=Ws(()=>l("option",{value:"name"},"Name",-1)),a4t=Ws(()=>l("option",{value:"author"},"Author",-1)),l4t=Ws(()=>l("option",{value:"date"},"Creation Date",-1)),c4t=Ws(()=>l("option",{value:"update"},"Last Update",-1)),d4t=[o4t,a4t,l4t,c4t],u4t={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},p4t=Ws(()=>l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1)),_4t=Ws(()=>l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)),h4t=[p4t,_4t],f4t={key:1},m4t={class:"container mx-auto px-4 flex flex-column"},g4t=Ws(()=>l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),b4t={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},E4t={class:"text-2xl font-bold my-8"},y4t={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"},v4t={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},S4t={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},T4t={class:"flex justify-between items-center mb-4"},x4t={class:"text-2xl font-bold"},C4t=["srcdoc"],w4t={key:1,class:"text-center text-red-500"};function R4t(t,e,n,s,i,r){const o=tt("personality-entry");return T(),w("div",WFt,[l("nav",KFt,[l("div",jFt,[i.message?(T(),w("p",QFt,K(i.message),1)):G("",!0),i.error?(T(),w("p",XFt,K(i.error),1)):G("",!0),l("div",ZFt,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>i.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),[[pe,i.searchQuery]]),JFt]),l("div",e4t,[t4t,P(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[n4t,(T(!0),w(Pe,null,Ke(r.categories,a=>(T(),w("option",{key:a,value:a},K(a),9,s4t))),128))],512),[[Dt,i.selectedCategory]])]),l("div",i4t,[r4t,P(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},d4t,512),[[Dt,i.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},K(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),w("div",u4t,h4t)):(T(),w("div",f4t,[l("div",m4t,[g4t,l("div",b4t,[(T(!0),w(Pe,null,Ke(r.favoriteApps,a=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":r.handleOpenFolder,onToggleFavorite:r.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","onToggleFavorite"]))),128))]),l("h2",E4t,K(r.currentCategoryName),1),l("div",y4t,[(T(!0),w(Pe,null,Ke(r.sortedAndFilteredApps,a=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":r.handleOpenFolder,onToggleFavorite:r.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","onToggleFavorite"]))),128))])])])),i.selectedApp?(T(),w("div",v4t,[l("div",S4t,[l("div",T4t,[l("h2",x4t,K(i.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>t.backToZoo&&t.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),w("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,C4t)):(T(),w("p",w4t,"Please install this app to view its code."))])])):G("",!0),i.message?(T(),w("div",{key:3,class:Ge(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},K(i.message),3)):G("",!0)])}const A4t=ot(YFt,[["render",R4t],["__scopeId","data-v-60cac3df"]]),N4t=zP({history:oP("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:$Ft},{path:"/personalities_view/",name:"PersonalitiesZoo",component:A4t},{path:"/auto_sd_view/",name:"AutoSD",component:fUt},{path:"/comfyui_view/",name:"ComfyUI",component:dUt},{path:"/playground/",name:"playground",component:pnt},{path:"/extensions/",name:"extensions",component:Tnt},{path:"/help_view/",name:"help_view",component:Xnt},{path:"/settings/",name:"settings",component:svt},{path:"/training/",name:"training",component:xvt},{path:"/quantizing/",name:"quantizing",component:kvt},{path:"/",name:"discussions",component:dRt},{path:"/",name:"interactive",component:CDt},{path:"/",name:"nodes",component:rUt}]});const ap=Dk(_Ze);function O4t(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const Ms=oD({state(){return{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:"",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:{setisRTOn(t,e){t.is_rt_on=e},setLanguages(t,e){t.languages=e},setLanguage(t,e){t.language=e},setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setIsModelOk(t,e){t.isModelOk=e},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setbindingsZoo(t,e){t.bindingsZoo=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setCurrentBinding(t,e){t.currentBinding=e},setCurrentModel(t,e){t.currentModel=e},setDatabases(t,e){t.databases=e},setTheme(t){this.currentTheme=t}},getters:{getisRTOn(t){return t.is_rt_on},getLanguages(t){return t.languages},getLanguage(t){return t.language},getIsConnected(t){return t.isConnected},getIsModelOk(t){return t.isModelOk},getIsGenerating(t){return t.isGenerating},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsZoo(t){return t.bindingsZoo},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getCyrrentBinding(t){return t.currentBinding},getCurrentModel(t){return t.currentModel}},actions:{async getVersion(){try{let t=await ae.get("/get_lollms_webui_version",{});t&&(this.state.version=t.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:t}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await UO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Ks("list_databases");console.log("databases:",e),t("setDatabases",e)},async fetchisRTOn({commit:t}){const n=(await ae.get("/is_rt_on")).data.status;t("setisRTOn",n)},async fetchLanguages({commit:t}){console.log("get_personality_languages_list",this.state.client_id);const e=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("languages",n),t("setLanguages",n)},async fetchLanguage({commit:t}){console.log("get_personality_language",this.state.client_id);const e=await ae.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("language",n),t("setLanguage",n)},async changeLanguage({commit:t},e){console.log("Changing language to ",e);let n=await ae.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("languages",s),t("setLanguages",s),n=await ae.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),console.log("Language changed successfully:",n.data.message)},async deleteLanguage({commit:t},e){console.log("Deleting ",e);let n=await ae.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("languages",s),t("setLanguages",s),n=await ae.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),console.log("Language changed successfully:",n.data.message)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Ks("get_all_personalities"),s=Object.keys(n);console.log("Personalities recovered:"+this.state.config.personalities);for(let i=0;i{let d=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+c.folder))if(d=!0,h.includes(":")){const f=h.split(":");c.language=f[1]}else c.language=null;let u={};return u=c,u.category=r,u.full_path=r+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,r)=>i.name.localeCompare(r.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let s=0;sa.full_path==i||a.full_path==r[0]);if(o>=0){let a=O4t(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else n.push(s),console.log("Couldn't load personality : ",i)}for(let s=n.length-1;s>=0;s--)console.log("Removing personality : ",this.state.config.personalities[n[s]]),this.state.config.personalities.splice(n[s],1),this.state.config.active_personality_id>n[s]&&(this.state.config.active_personality_id-=1);t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(s=>s.full_path==this.state.config.personalities[this.state.config.active_personality_id]||s.full_path+":"+s.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){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),t("setbindingsZoo",e);const n=e.findIndex(s=>s.name==this.state.config.binding_name);n!=-1&&t("setCurrentBinding",e[n])},async refreshModelsZoo({commit:t}){console.log("Fetching models");const n=(await ae.get("/get_available_models")).data.filter(s=>s.variants&&s.variants.length>0);console.log(`get_available_models: ${n}`),t("setModelsZoo",n)},async refreshModelStatus({commit:t}){let e=await Ks("get_model_status");t("setIsModelOk",e.status)},async refreshModels({commit:t}){console.log("Fetching models");let e=await Ks("list_models");console.log(`Found ${e}`);let n=await Ks("get_active_model");console.log("Selected model ",n),n!=null&&t("setselectedModel",n.model),t("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(i=>{i.isInstalled=e.includes(i.name)}),this.state.installedModels=this.state.modelsZoo.filter(i=>i.isInstalled);const s=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);s!=-1&&t("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Ks("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Ks("ram_usage")},async refreshVramUsage({commit:t}){const e=await Ks("vram_usage"),n=[];if(e.nb_gpus>0){for(let i=0;i{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)}},Ws=t=>(Ss("data-v-60cac3df"),t=t(),Ts(),t),q3t={class:"app-zoo mb-100 pb-100 background-color w-full p-6 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"},$3t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},Y3t={class:"flex flex-wrap items-center justify-between gap-4"},W3t={key:0},K3t={key:1,class:"error"},j3t={class:"relative flex-grow max-w-md"},Q3t=Ws(()=>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)),X3t={class:"flex items-center space-x-4"},Z3t=Ws(()=>l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),J3t=Ws(()=>l("option",{value:"all"},"All Categories",-1)),e4t=["value"],t4t={class:"flex items-center space-x-4"},n4t=Ws(()=>l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),s4t=Ws(()=>l("option",{value:"name"},"Name",-1)),i4t=Ws(()=>l("option",{value:"author"},"Author",-1)),r4t=Ws(()=>l("option",{value:"date"},"Creation Date",-1)),o4t=Ws(()=>l("option",{value:"update"},"Last Update",-1)),a4t=[s4t,i4t,r4t,o4t],l4t={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},c4t=Ws(()=>l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1)),d4t=Ws(()=>l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)),u4t=[c4t,d4t],p4t={key:1},_4t={class:"container mx-auto px-4 flex flex-column"},h4t=Ws(()=>l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),f4t={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},m4t={class:"text-2xl font-bold my-8"},g4t={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"},b4t={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},E4t={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},y4t={class:"flex justify-between items-center mb-4"},v4t={class:"text-2xl font-bold"},S4t=["srcdoc"],T4t={key:1,class:"text-center text-red-500"};function x4t(t,e,n,s,i,r){const o=tt("personality-entry");return T(),w("div",q3t,[l("nav",$3t,[l("div",Y3t,[i.message?(T(),w("p",W3t,K(i.message),1)):G("",!0),i.error?(T(),w("p",K3t,K(i.error),1)):G("",!0),l("div",j3t,[P(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>i.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),[[pe,i.searchQuery]]),Q3t]),l("div",X3t,[Z3t,P(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>i.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[J3t,(T(!0),w(Pe,null,Ke(r.categories,a=>(T(),w("option",{key:a,value:a},K(a),9,e4t))),128))],512),[[kt,i.selectedCategory]])]),l("div",t4t,[n4t,P(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>i.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},a4t,512),[[kt,i.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},K(i.sortOrder==="asc"?"↑":"↓"),1)])])]),i.loading?(T(),w("div",l4t,u4t)):(T(),w("div",p4t,[l("div",_4t,[h4t,l("div",f4t,[(T(!0),w(Pe,null,Ke(r.favoriteApps,a=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":r.handleOpenFolder,onToggleFavorite:r.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","onToggleFavorite"]))),128))]),l("h2",m4t,K(r.currentCategoryName),1),l("div",g4t,[(T(!0),w(Pe,null,Ke(r.sortedAndFilteredApps,a=>(T(),dt(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":t.onSettingsPersonality,"on-copy-personality-name":t.onCopyPersonalityName,"on-copy-to_custom":t.onCopyToCustom,"on-open-folder":r.handleOpenFolder,onToggleFavorite:r.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","onToggleFavorite"]))),128))])])])),i.selectedApp?(T(),w("div",b4t,[l("div",E4t,[l("div",y4t,[l("h2",v4t,K(i.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>t.backToZoo&&t.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),i.appCode?(T(),w("iframe",{key:0,srcdoc:i.appCode,class:"flex-grow border-none"},null,8,S4t)):(T(),w("p",T4t,"Please install this app to view its code."))])])):G("",!0),i.message?(T(),w("div",{key:3,class:Ge(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":i.successMessage,"bg-red-100 text-red-800":!i.successMessage}])},K(i.message),3)):G("",!0)])}const C4t=ot(H3t,[["render",x4t],["__scopeId","data-v-60cac3df"]]),w4t=zP({history:oP("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:z3t},{path:"/personalities_view/",name:"PersonalitiesZoo",component:C4t},{path:"/auto_sd_view/",name:"AutoSD",component:pFt},{path:"/comfyui_view/",name:"ComfyUI",component:aFt},{path:"/playground/",name:"playground",component:pnt},{path:"/extensions/",name:"extensions",component:Tnt},{path:"/help_view/",name:"help_view",component:Xnt},{path:"/settings/",name:"settings",component:evt},{path:"/training/",name:"training",component:vvt},{path:"/quantizing/",name:"quantizing",component:Ovt},{path:"/",name:"discussions",component:aRt},{path:"/",name:"interactive",component:SDt},{path:"/",name:"nodes",component:nFt}]});const ap=Dk(_Ze);function R4t(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const Ms=oD({state(){return{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:"",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:{setisRTOn(t,e){t.is_rt_on=e},setLanguages(t,e){t.languages=e},setLanguage(t,e){t.language=e},setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setIsModelOk(t,e){t.isModelOk=e},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setbindingsZoo(t,e){t.bindingsZoo=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setCurrentBinding(t,e){t.currentBinding=e},setCurrentModel(t,e){t.currentModel=e},setDatabases(t,e){t.databases=e},setTheme(t){this.currentTheme=t}},getters:{getisRTOn(t){return t.is_rt_on},getLanguages(t){return t.languages},getLanguage(t){return t.language},getIsConnected(t){return t.isConnected},getIsModelOk(t){return t.isModelOk},getIsGenerating(t){return t.isGenerating},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getMountedPers(t){return t.mountedPers},getbindingsZoo(t){return t.bindingsZoo},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getCyrrentBinding(t){return t.currentBinding},getCurrentModel(t){return t.currentModel}},actions:{async getVersion(){try{let t=await ae.get("/get_lollms_webui_version",{});t&&(this.state.version=t.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:t}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await UO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Ks("list_databases");console.log("databases:",e),t("setDatabases",e)},async fetchisRTOn({commit:t}){const n=(await ae.get("/is_rt_on")).data.status;t("setisRTOn",n)},async fetchLanguages({commit:t}){console.log("get_personality_languages_list",this.state.client_id);const e=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("languages",n),t("setLanguages",n)},async fetchLanguage({commit:t}){console.log("get_personality_language",this.state.client_id);const e=await ae.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const n=e.data;console.log("language",n),t("setLanguage",n)},async changeLanguage({commit:t},e){console.log("Changing language to ",e);let n=await ae.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("languages",s),t("setLanguages",s),n=await ae.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),console.log("Language changed successfully:",n.data.message)},async deleteLanguage({commit:t},e){console.log("Deleting ",e);let n=await ae.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),n=await ae.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",n);const s=n.data;console.log("languages",s),t("setLanguages",s),n=await ae.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",n);const i=n.data;console.log("language",i),t("setLanguage",i),console.log("Language changed successfully:",n.data.message)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Ks("get_all_personalities"),s=Object.keys(n);console.log("Personalities recovered:"+this.state.config.personalities);for(let i=0;i{let d=!1;for(const h of this.state.config.personalities)if(h.includes(r+"/"+c.folder))if(d=!0,h.includes(":")){const f=h.split(":");c.language=f[1]}else c.language=null;let u={};return u=c,u.category=r,u.full_path=r+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((i,r)=>i.name.localeCompare(r.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let s=0;sa.full_path==i||a.full_path==r[0]);if(o>=0){let a=R4t(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else n.push(s),console.log("Couldn't load personality : ",i)}for(let s=n.length-1;s>=0;s--)console.log("Removing personality : ",this.state.config.personalities[n[s]]),this.state.config.personalities.splice(n[s],1),this.state.config.active_personality_id>n[s]&&(this.state.config.active_personality_id-=1);t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(s=>s.full_path==this.state.config.personalities[this.state.config.active_personality_id]||s.full_path+":"+s.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){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),t("setbindingsZoo",e);const n=e.findIndex(s=>s.name==this.state.config.binding_name);n!=-1&&t("setCurrentBinding",e[n])},async refreshModelsZoo({commit:t}){console.log("Fetching models");const n=(await ae.get("/get_available_models")).data.filter(s=>s.variants&&s.variants.length>0);console.log(`get_available_models: ${n}`),t("setModelsZoo",n)},async refreshModelStatus({commit:t}){let e=await Ks("get_model_status");t("setIsModelOk",e.status)},async refreshModels({commit:t}){console.log("Fetching models");let e=await Ks("list_models");console.log(`Found ${e}`);let n=await Ks("get_active_model");console.log("Selected model ",n),n!=null&&t("setselectedModel",n.model),t("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(i=>{i.isInstalled=e.includes(i.name)}),this.state.installedModels=this.state.modelsZoo.filter(i=>i.isInstalled);const s=this.state.modelsZoo.findIndex(i=>i.name==this.state.config.model_name);s!=-1&&t("setCurrentModel",this.state.modelsZoo[s])},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Ks("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Ks("ram_usage")},async refreshVramUsage({commit:t}){const e=await Ks("vram_usage"),n=[];if(e.nb_gpus>0){for(let i=0;i 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}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.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}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.logo-container{position:relative;width:48px;height:48px}.logo-image{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce{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)}}@keyframes roll-and-bounce{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{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}@keyframes glow{0%,to{text-shadow:0 0 5px rgba(59,130,246,.5),0 0 10px rgba(147,51,234,.5)}50%{text-shadow:0 0 20px rgba(59,130,246,.75),0 0 30px rgba(147,51,234,.75)}}.animate-glow{animation:glow 3s ease-in-out infinite}@keyframes fade-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fade-in 1s ease-out}@keyframes fall{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(360deg);opacity:0}}.animate-fall{animation:fall linear infinite}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#555}.dark ::-webkit-scrollbar-track{background:#2d3748}.dark ::-webkit-scrollbar-thumb{background:#4a5568}.dark ::-webkit-scrollbar-thumb:hover{background:#718096}body{font-family:Inter,sans-serif;line-height:1.6}h1,h2,h3,h4,h5,h6{font-family:Poppins,sans-serif;line-height:1.2}a{transition:all .3s ease}a:hover{transform:translateY(-2px)}main section{box-shadow:0 4px 6px #0000001a;border-radius:8px;transition:all .3s ease}main section:hover{box-shadow:0 8px 15px #0000001a;transform:translateY(-2px)}code{font-family:Fira Code,monospace;padding:2px 4px;border-radius:4px;font-size:.9em}.bg-gradient-to-br{background-size:400% 400%;animation:gradientBG 15s ease infinite}@keyframes gradientBG{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}a:focus,button:focus{outline:2px solid #3b82f6;outline-offset:2px}header h1{animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media (max-width: 640px){header h1{font-size:2rem}nav{position:static;max-height:none}}body{transition:background-color .3s ease,color .3s ease}ul,ol{padding-left:1.5rem}li{margin-bottom:.5rem}footer{animation:fadeInUp 1s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.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-631a8340]{font-size:24px;animation:pulsate-631a8340 1.5s infinite}@keyframes pulsate-631a8340{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-631a8340],.list-enter-active[data-v-631a8340],.list-leave-active[data-v-631a8340]{transition:all .5s ease}.list-enter-from[data-v-631a8340]{transform:translatey(-30px)}.list-leave-to[data-v-631a8340]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-631a8340]{position:absolute}.bounce-enter-active[data-v-631a8340]{animation:bounce-in-631a8340 .5s}.bounce-leave-active[data-v-631a8340]{animation:bounce-in-631a8340 .5s reverse}@keyframes bounce-in-631a8340{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-631a8340]{background-color:#0ff}.hover[data-v-631a8340]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-631a8340]{font-weight:700}.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))}[data-v-78f415f6]:is(.dark .step-description){--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}.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)}.chat-bar[data-v-edbefc1f]{transition:all .3s ease}.chat-bar[data-v-edbefc1f]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-edbefc1f],.list-enter-active[data-v-edbefc1f],.list-leave-active[data-v-edbefc1f]{transition:all .5s ease}.list-enter-from[data-v-edbefc1f]{transform:translatey(-30px)}.list-leave-to[data-v-edbefc1f]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-edbefc1f]{position:absolute}@keyframes rolling-ball-b052c8c7{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-b052c8c7{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-b052c8c7{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-b052c8c7]{animation:rolling-ball-b052c8c7 4s infinite ease-in-out,bounce-b052c8c7 1s infinite ease-in-out}.animate-fade-in-up[data-v-b052c8c7]{animation:fade-in-up-b052c8c7 1.5s ease-out}.custom-scrollbar[data-v-09e89fd8]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-09e89fd8{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-09e89fd8]{animation:custom-pulse-09e89fd8 2s infinite}.slide-right-enter-active[data-v-09e89fd8],.slide-right-leave-active[data-v-09e89fd8]{transition:transform .3s ease}.slide-right-enter[data-v-09e89fd8],.slide-right-leave-to[data-v-09e89fd8]{transform:translate(-100%)}.slide-left-enter-active[data-v-09e89fd8],.slide-left-leave-active[data-v-09e89fd8]{transition:transform .3s ease}.slide-left-enter[data-v-09e89fd8],.slide-left-leave-to[data-v-09e89fd8]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-09e89fd8]{animation:fade-and-fly-enter-09e89fd8 .5s ease}.fade-and-fly-leave-active[data-v-09e89fd8]{animation:fade-and-fly-leave-09e89fd8 .5s ease}@keyframes fade-and-fly-enter-09e89fd8{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-09e89fd8{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-09e89fd8],.list-enter-active[data-v-09e89fd8],.list-leave-active[data-v-09e89fd8]{transition:all .5s ease}.list-enter-from[data-v-09e89fd8]{transform:translatey(-30px)}.list-leave-to[data-v-09e89fd8]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-09e89fd8]{position:absolute}@keyframes float-09e89fd8{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-09e89fd8]{animation:float-09e89fd8 linear infinite}@keyframes star-move-09e89fd8{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-09e89fd8]{animation:star-move-09e89fd8 linear infinite}@keyframes fall-09e89fd8{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-09e89fd8]{animation:fall-09e89fd8 linear infinite}@keyframes glow-09e89fd8{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-09e89fd8]{animation:glow-09e89fd8 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-09e89fd8{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-09e89fd8{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-09e89fd8]{animation:roll-09e89fd8 4s linear infinite}.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-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 *: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:white;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>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-60cac3df]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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}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-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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:white;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)}:is(.dark body){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}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,: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: }::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: }.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-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-6{left:-1.5rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-6{right:-1.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.-top-6{top:-1.5rem}.-top-9{top:-2.25rem}.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-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.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-32{top:8rem}.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{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.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-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.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-8{margin-top:2rem}.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}.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-\[220px\]{height:220px}.h-\[600px\]{height:600px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[calc\(100vh-8rem\)\]{max-height:calc(100vh - 8rem)}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.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-4\/6{width:66.666667%}.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-\[1000px\]{width:1000px}.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-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.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-\[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-none{max-width:none}.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}.-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-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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-75{--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))}.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-decimal{list-style-type:decimal}.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-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}.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-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-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-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-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-90{--tw-bg-opacity: .9}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.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-100{--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)}.from-blue-200{--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)}.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-600{--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 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-100{--tw-gradient-from: #E5EDFF var(--tw-gradient-from-position);--tw-gradient-to: rgb(229 237 255 / 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-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 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-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent 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-100{--tw-gradient-to: #EDEBFE var(--tw-gradient-to-position)}.to-purple-200{--tw-gradient-to: #DCD7FE var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 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-white{--tw-gradient-to: #ffffff 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}.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}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.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-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.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-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}.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-300{--tw-text-opacity: 1;color:rgb(250 202 21 / 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-lg{--tw-backdrop-blur: blur(16px);-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-blur-md{--tw-backdrop-blur: blur(12px);-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-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-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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-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-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-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{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;font-size:3rem;line-height:1;font-weight:700;color:transparent}:is(.dark h1){--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);--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}@media (min-width: 768px){h1{font-size:3.75rem;line-height:1}}h2{font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark h2){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}h3{font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark h3){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}h4{font-size:1.25rem;line-height:1.75rem;font-weight:600;font-style:italic;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark h4){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark p){--tw-text-opacity: 1;color:rgb(209 213 219 / 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: #0e8ef0;--color-primary-light: #3dabff;--color-secondary: #0fd974;--color-accent: #f0700e;--color-light-text-panel: #ffffff;--color-dark-text-panel: #ffffff;--color-bg-light-panel: #7cb5ec;--color-bg-light: #e2edff;--color-bg-light-tone: #b9d2f7;--color-bg-light-code-block: #cad7ed;--color-bg-light-tone-panel: #8fb5ef;--color-bg-light-discussion: #c5d8f8;--color-bg-light-discussion-odd: #d6e7ff;--color-bg-dark: #132e59;--color-bg-dark-tone: #25477d;--color-bg-dark-tone-panel: #4367a3;--color-bg-dark-code-block: #2254a7;--color-bg-dark-discussion: #435E8A;--color-bg-dark-discussion-odd: #284471}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}:is(.dark textarea),:is(.dark input),:is(.dark select){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / 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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .background-color){--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: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:9999px;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .toolbar-color){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.panels-color{border-radius:.25rem;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .panels-color){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .unicolor-panels-color){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.chatbox-color{background-image:linear-gradient(to bottom 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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .chatbox-color){--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: #5521B5 var(--tw-gradient-to-position)}.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:2px;border-color:transparent;padding:1rem 1rem .5rem;--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:hover{border-style:solid;border-color:var(--color-primary)}.message:nth-child(2n){background-image:linear-gradient(to bottom 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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .message:nth-child(2n)){--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: #5521B5 var(--tw-gradient-to-position)}.message:nth-child(odd){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--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: #CABFFD var(--tw-gradient-to-position)}:is(.dark .message:nth-child(odd)){--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: #4A1D96 var(--tw-gradient-to-position)}.discussion{margin-right:.5rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--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: #CABFFD var(--tw-gradient-to-position)}.discussion:hover{--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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .discussion){--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: #4A1D96 var(--tw-gradient-to-position)}:is(.dark .discussion):hover{--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: #6C2BD9 var(--tw-gradient-to-position)}.discussion-hilighted{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: #DCD7FE var(--tw-gradient-to-position)}.discussion-hilighted:hover{--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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .discussion-hilighted){--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: #5521B5 var(--tw-gradient-to-position)}:is(.dark .discussion-hilighted):hover{--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: #6C2BD9 var(--tw-gradient-to-position)}body{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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark body){--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: #4A1D96 var(--tw-gradient-to-position)}.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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .bg-gradient-welcome){--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: #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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .bg-gradient-progress){--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: #5521B5 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}:is(.dark .text-gradient-title){--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);--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .text-subtitle){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .text-author){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .text-loading){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}:is(.dark .text-progress){--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(63 131 248 / 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(144 97 249 / 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(126 58 242 / 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)}:is(.dark .card){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / 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))}:is(.dark .input){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .input:focus){--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(55 65 81 / var(--tw-text-opacity))}:is(.dark .label){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}:is(.dark .link){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .link:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .navbar-container){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.menu-item{padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.dark .menu-item){--tw-text-opacity: 1;color:rgb(243 244 246 / 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(107 114 128 / var(--tw-text-opacity))}:is(.dark .menu-item):hover{--tw-text-opacity: 1;color:rgb(249 250 251 / 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));padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.dark .menu-item.active-link){--tw-text-opacity: 1;color:rgb(243 244 246 / 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(107 114 128 / var(--tw-text-opacity))}:is(.dark .menu-item.active-link):hover{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(255,255,255,.5)}.menu-item.active-link:after{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;z-index:10000;background:linear-gradient(to right,#00ff00,#00ff00,#00ff00);border-radius:10px;animation:lightsaber 2s infinite}.dark .menu-item.active-link:after{background:linear-gradient(to right,#ff0000,#ff0000,#ff0000)}@keyframes lightsaber{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.app-card{background-image:linear-gradient(to bottom 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: #CABFFD var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(31 41 55 / 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)}:is(.dark .app-card){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(243 244 246 / 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:#A4CAFE #E1EFFE}.dark .scrollbar-thin{scrollbar-color:#1A56DB #233876}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / 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(63 131 248 / 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(28 100 242 / 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))}:is(.dark .btn-primary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / 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(55 65 81 / 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))}:is(.dark .btn-secondary){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .btn-secondary:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .btn-secondary:focus){--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(195 221 253 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(31 41 55 / 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}:is(.dark .search-input){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .search-input:focus){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: var(--color-bg-light-tone);--scrollbar-thumb: var(--color-bg-light-tone-panel);scrollbar-width:thin;scrollbar-color:#A4CAFE #E1EFFE}.dark .scrollbar{scrollbar-color:#1A56DB #233876}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: var(--color-primary);--scrollbar-thumb-active: var(--color-secondary)}:is(.dark .scrollbar){--scrollbar-track: var(--color-bg-dark-tone);--scrollbar-thumb: var(--color-bg-dark-tone-panel);--scrollbar-thumb-hover: var(--color-primary)}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .card-title){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .card-content){--tw-text-opacity: 1;color:rgb(209 213 219 / 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(63 131 248 / 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(28 100 242 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / 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)}:is(.dark .subcard){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / 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(17 24 39 / var(--tw-text-opacity))}:is(.dark .subcard-title){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .subcard-content){--tw-text-opacity: 1;color:rgb(209 213 219 / 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(63 131 248 / 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(28 100 242 / 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}.odd\:bg-bg-light-tone:nth-child(odd){background-color:var(--color-bg-light-tone)}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.even\:bg-bg-light-tone-panel:nth-child(2n){background-color:var(--color-bg-light-tone-panel)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bottom-0{bottom:0}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-x-12{--tw-translate-x: -3rem;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\:-translate-x-8{--tw-translate-x: -2rem;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\:-translate-y-8{--tw-translate-y: -2rem;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\:translate-x-5{--tw-translate-x: 1.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))}.group:hover .group-hover\:translate-x-\[0px\]{--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))}.group:hover .group-hover\:translate-y-\[-50px\]{--tw-translate-y: -50px;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-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:hover .group-hover\:text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-0{opacity:0}.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\:z-50:hover{z-index:50}.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\:-translate-y-8:hover{--tw-translate-y: -2rem;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-150:hover{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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-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-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-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-opacity-20:hover{--tw-bg-opacity: .2}.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\: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\: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-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / 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-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-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-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-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}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){border-color:var(--color-bg-light)}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){background-color:var(--color-bg-dark)}:is(.dark .dark\:bg-bg-dark-tone){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:bg-bg-dark-tone-panel){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-900){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:bg-opacity-90){--tw-bg-opacity: .9}:is(.dark .dark\:from-bg-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)}:is(.dark .dark\:from-bg-dark-tone){--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)}:is(.dark .dark\: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)}:is(.dark .dark\:from-blue-800){--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)}:is(.dark .dark\:from-blue-900){--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)}:is(.dark .dark\:from-indigo-400){--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)}:is(.dark .dark\:from-indigo-900){--tw-gradient-from: #362F78 var(--tw-gradient-from-position);--tw-gradient-to: rgb(54 47 120 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-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)}:is(.dark .dark\:to-gray-800){--tw-gradient-to: #1F2937 var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-400){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-800){--tw-gradient-to: #5521B5 var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-900){--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-400){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-dark-text-panel){color:var(--color-dark-text-panel)}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-400){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary){color:var(--color-primary)}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-400){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-400){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\: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)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-white){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-opacity-20){--tw-ring-opacity: .2}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: var(--color-bg-dark) !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-track-gray-800){--scrollbar-track: #1F2937 !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}:is(.dark .dark\:scrollbar-thumb-gray-600){--scrollbar-thumb: #4B5563 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){background-color:var(--color-bg-dark-discussion-odd)}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){border-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){background-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{background-color:var(--color-bg-dark-tone)}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:hover\:text-blue-200:hover){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-blue-300:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-green-300:hover){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary:hover){color:var(--color-primary)}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: var(--color-primary) !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){border-color:var(--color-secondary)}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-color: var(--color-secondary)}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}:is(.dark .dark\:active\:bg-gray-600:active){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.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\:grid-cols-3{grid-template-columns:repeat(3,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-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))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--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\:grid-cols-4{grid-template-columns:repeat(4,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}} +*/.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}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.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}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.logo-container{position:relative;width:48px;height:48px}.logo-image{width:100%;height:100%;border-radius:50%;-o-object-fit:cover;object-fit:cover}@keyframes bounce{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)}}@keyframes roll-and-bounce{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{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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}@keyframes glow{0%,to{text-shadow:0 0 5px rgba(59,130,246,.5),0 0 10px rgba(147,51,234,.5)}50%{text-shadow:0 0 20px rgba(59,130,246,.75),0 0 30px rgba(147,51,234,.75)}}.animate-glow{animation:glow 3s ease-in-out infinite}@keyframes fade-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fade-in 1s ease-out}@keyframes fall{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(360deg);opacity:0}}.animate-fall{animation:fall linear infinite}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#555}.dark ::-webkit-scrollbar-track{background:#2d3748}.dark ::-webkit-scrollbar-thumb{background:#4a5568}.dark ::-webkit-scrollbar-thumb:hover{background:#718096}body{font-family:Inter,sans-serif;line-height:1.6}h1,h2,h3,h4,h5,h6{font-family:Poppins,sans-serif;line-height:1.2}a{transition:all .3s ease}a:hover{transform:translateY(-2px)}main section{box-shadow:0 4px 6px #0000001a;border-radius:8px;transition:all .3s ease}main section:hover{box-shadow:0 8px 15px #0000001a;transform:translateY(-2px)}code{font-family:Fira Code,monospace;padding:2px 4px;border-radius:4px;font-size:.9em}.bg-gradient-to-br{background-size:400% 400%;animation:gradientBG 15s ease infinite}@keyframes gradientBG{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}a:focus,button:focus{outline:2px solid #3b82f6;outline-offset:2px}header h1{animation:pulse 2s infinite}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@media (max-width: 640px){header h1{font-size:2rem}nav{position:static;max-height:none}}body{transition:background-color .3s ease,color .3s ease}ul,ol{padding-left:1.5rem}li{margin-bottom:.5rem}footer{animation:fadeInUp 1s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.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-3d5c8be5]{font-size:24px;animation:pulsate-3d5c8be5 1.5s infinite}@keyframes pulsate-3d5c8be5{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-3d5c8be5],.list-enter-active[data-v-3d5c8be5],.list-leave-active[data-v-3d5c8be5]{transition:all .5s ease}.list-enter-from[data-v-3d5c8be5]{transform:translatey(-30px)}.list-leave-to[data-v-3d5c8be5]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-3d5c8be5]{position:absolute}.bounce-enter-active[data-v-3d5c8be5]{animation:bounce-in-3d5c8be5 .5s}.bounce-leave-active[data-v-3d5c8be5]{animation:bounce-in-3d5c8be5 .5s reverse}@keyframes bounce-in-3d5c8be5{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-3d5c8be5]{background-color:#0ff}.hover[data-v-3d5c8be5]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-3d5c8be5]{font-weight:700}.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))}[data-v-78f415f6]:is(.dark .step-description){--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}.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)}.chat-bar[data-v-edbefc1f]{transition:all .3s ease}.chat-bar[data-v-edbefc1f]:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.list-move[data-v-edbefc1f],.list-enter-active[data-v-edbefc1f],.list-leave-active[data-v-edbefc1f]{transition:all .5s ease}.list-enter-from[data-v-edbefc1f]{transform:translatey(-30px)}.list-leave-to[data-v-edbefc1f]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-edbefc1f]{position:absolute}@keyframes rolling-ball-b052c8c7{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-b052c8c7{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes fade-in-up-b052c8c7{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-rolling-ball[data-v-b052c8c7]{animation:rolling-ball-b052c8c7 4s infinite ease-in-out,bounce-b052c8c7 1s infinite ease-in-out}.animate-fade-in-up[data-v-b052c8c7]{animation:fade-in-up-b052c8c7 1.5s ease-out}.custom-scrollbar[data-v-09e89fd8]{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-09e89fd8]::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:20px;border:transparent}@keyframes custom-pulse-09e89fd8{0%,to{box-shadow:0 0 #3b82f680}50%{box-shadow:0 0 0 15px #3b82f600}}.animate-pulse[data-v-09e89fd8]{animation:custom-pulse-09e89fd8 2s infinite}.slide-right-enter-active[data-v-09e89fd8],.slide-right-leave-active[data-v-09e89fd8]{transition:transform .3s ease}.slide-right-enter[data-v-09e89fd8],.slide-right-leave-to[data-v-09e89fd8]{transform:translate(-100%)}.slide-left-enter-active[data-v-09e89fd8],.slide-left-leave-active[data-v-09e89fd8]{transition:transform .3s ease}.slide-left-enter[data-v-09e89fd8],.slide-left-leave-to[data-v-09e89fd8]{transform:translate(100%)}.fade-and-fly-enter-active[data-v-09e89fd8]{animation:fade-and-fly-enter-09e89fd8 .5s ease}.fade-and-fly-leave-active[data-v-09e89fd8]{animation:fade-and-fly-leave-09e89fd8 .5s ease}@keyframes fade-and-fly-enter-09e89fd8{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-09e89fd8{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-09e89fd8],.list-enter-active[data-v-09e89fd8],.list-leave-active[data-v-09e89fd8]{transition:all .5s ease}.list-enter-from[data-v-09e89fd8]{transform:translatey(-30px)}.list-leave-to[data-v-09e89fd8]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-09e89fd8]{position:absolute}@keyframes float-09e89fd8{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.animate-float[data-v-09e89fd8]{animation:float-09e89fd8 linear infinite}@keyframes star-move-09e89fd8{0%{transform:translate(0) rotate(0)}50%{transform:translate(20px,20px) rotate(180deg)}to{transform:translate(0) rotate(360deg)}}.animate-star[data-v-09e89fd8]{animation:star-move-09e89fd8 linear infinite}@keyframes fall-09e89fd8{0%{transform:translateY(-20px) rotate(0);opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(360deg);opacity:0}}.animate-fall[data-v-09e89fd8]{animation:fall-09e89fd8 linear infinite}@keyframes glow-09e89fd8{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-09e89fd8]{animation:glow-09e89fd8 2s ease-in-out infinite}@media (prefers-color-scheme: dark){@keyframes glow-09e89fd8{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-09e89fd8{0%{transform:translate(-50%) rotate(0)}to{transform:translate(50%) rotate(360deg)}}.animate-roll[data-v-09e89fd8]{animation:roll-09e89fd8 4s linear infinite}.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-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 *: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:white;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>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-60cac3df]{display:flex;justify-content:center;align-items:center;height:100px;font-size:1.2em;color:#666}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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}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-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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:white;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)}:is(.dark body){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}@font-face{font-family:Roboto;src:url(/assets/Roboto-Regular-7277cfb8.ttf) format("truetype")}@font-face{font-family:PTSans;src:url(/assets/PTSans-Regular-23b91352.ttf) format("truetype")}*,: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: }::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: }.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-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-left-6{left:-1.5rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-6{right:-1.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.-top-6{top:-1.5rem}.-top-9{top:-2.25rem}.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-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.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-32{top:8rem}.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{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.-my-1{margin-top:-.25rem;margin-bottom:-.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-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.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-8{margin-top:2rem}.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}.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-\[220px\]{height:220px}.h-\[600px\]{height:600px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-6{max-height:1.5rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[400px\]{max-height:400px}.max-h-\[calc\(100vh-8rem\)\]{max-height:calc(100vh - 8rem)}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.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-4\/6{width:66.666667%}.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-\[1000px\]{width:1000px}.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-\[23rem\]{min-width:23rem}.min-w-\[24rem\]{min-width:24rem}.min-w-\[300px\]{min-width:300px}.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-\[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-none{max-width:none}.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}.-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-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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-75{--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))}.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-decimal{list-style-type:decimal}.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-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}.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-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-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-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-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-90{--tw-bg-opacity: .9}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.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-100{--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)}.from-blue-200{--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)}.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-600{--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 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-100{--tw-gradient-from: #E5EDFF var(--tw-gradient-from-position);--tw-gradient-to: rgb(229 237 255 / 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-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 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-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent 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-100{--tw-gradient-to: #EDEBFE var(--tw-gradient-to-position)}.to-purple-200{--tw-gradient-to: #DCD7FE var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #9061F9 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-white{--tw-gradient-to: #ffffff 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}.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}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.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-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.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-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}.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-300{--tw-text-opacity: 1;color:rgb(250 202 21 / 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-lg{--tw-backdrop-blur: blur(16px);-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-blur-md{--tw-backdrop-blur: blur(12px);-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-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-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-width:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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-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-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-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{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;font-size:3rem;line-height:1;font-weight:700;color:transparent}:is(.dark h1){--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);--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}@media (min-width: 768px){h1{font-size:3.75rem;line-height:1}}h2{font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark h2){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}h3{font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark h3){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}h4{font-size:1.25rem;line-height:1.75rem;font-weight:600;font-style:italic;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark h4){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}p{overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark p){--tw-text-opacity: 1;color:rgb(209 213 219 / 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: #0e8ef0;--color-primary-light: #3dabff;--color-secondary: #0fd974;--color-accent: #f0700e;--color-light-text-panel: #ffffff;--color-dark-text-panel: #ffffff;--color-bg-light-panel: #7cb5ec;--color-bg-light: #e2edff;--color-bg-light-tone: #b9d2f7;--color-bg-light-code-block: #cad7ed;--color-bg-light-tone-panel: #8fb5ef;--color-bg-light-discussion: #c5d8f8;--color-bg-light-discussion-odd: #d6e7ff;--color-bg-dark: #132e59;--color-bg-dark-tone: #25477d;--color-bg-dark-tone-panel: #4367a3;--color-bg-dark-code-block: #2254a7;--color-bg-dark-discussion: #435E8A;--color-bg-dark-discussion-odd: #284471}textarea,input,select{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}:is(.dark textarea),:is(.dark input),:is(.dark select){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / 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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .background-color){--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: #4A1D96 var(--tw-gradient-to-position)}.toolbar-color{border-radius:9999px;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .toolbar-color){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.panels-color{border-radius:.25rem;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .panels-color){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.unicolor-panels-color{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .unicolor-panels-color){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.chatbox-color{background-image:linear-gradient(to bottom 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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .chatbox-color){--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: #5521B5 var(--tw-gradient-to-position)}.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:2px;border-color:transparent;padding:1rem 1rem .5rem;--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:hover{border-style:solid;border-color:var(--color-primary)}.message:nth-child(2n){background-image:linear-gradient(to bottom 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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .message:nth-child(2n)){--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: #5521B5 var(--tw-gradient-to-position)}.message:nth-child(odd){background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--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: #CABFFD var(--tw-gradient-to-position)}:is(.dark .message:nth-child(odd)){--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: #4A1D96 var(--tw-gradient-to-position)}.discussion{margin-right:.5rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--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: #CABFFD var(--tw-gradient-to-position)}.discussion:hover{--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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .discussion){--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: #4A1D96 var(--tw-gradient-to-position)}:is(.dark .discussion):hover{--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: #6C2BD9 var(--tw-gradient-to-position)}.discussion-hilighted{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: #DCD7FE var(--tw-gradient-to-position)}.discussion-hilighted:hover{--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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .discussion-hilighted){--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: #5521B5 var(--tw-gradient-to-position)}:is(.dark .discussion-hilighted):hover{--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: #6C2BD9 var(--tw-gradient-to-position)}body{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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark body){--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: #4A1D96 var(--tw-gradient-to-position)}.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: #EDEBFE var(--tw-gradient-to-position)}:is(.dark .bg-gradient-welcome){--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: #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: #DCD7FE var(--tw-gradient-to-position)}:is(.dark .bg-gradient-progress){--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: #5521B5 var(--tw-gradient-to-position)}.text-gradient-title{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #1C64F2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #7E3AF2 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}:is(.dark .text-gradient-title){--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);--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}.text-subtitle{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .text-subtitle){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-author{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .text-author){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-loading{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .text-loading){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-progress{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}:is(.dark .text-progress){--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(63 131 248 / 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(144 97 249 / 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(126 58 242 / 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)}:is(.dark .card){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.input{border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(243 244 246 / 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))}:is(.dark .input){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .input:focus){--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(55 65 81 / var(--tw-text-opacity))}:is(.dark .label){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.link{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.link:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}:is(.dark .link){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .link:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.navbar-container{border-radius:.25rem;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: #DCD7FE var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(55 65 81 / 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)}:is(.dark .navbar-container){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.game-menu{position:relative;display:flex;align-items:center;justify-content:center}.menu-item{padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.dark .menu-item){--tw-text-opacity: 1;color:rgb(243 244 246 / 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(107 114 128 / var(--tw-text-opacity))}:is(.dark .menu-item):hover{--tw-text-opacity: 1;color:rgb(249 250 251 / 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));padding:.5rem 1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity));transition-property:all;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:is(.dark .menu-item.active-link){--tw-text-opacity: 1;color:rgb(243 244 246 / 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(107 114 128 / var(--tw-text-opacity))}:is(.dark .menu-item.active-link):hover{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.menu-item.active-link{text-shadow:0 0 10px rgba(255,255,255,.5)}.menu-item.active-link:after{content:"";position:absolute;bottom:-5px;left:0;width:100%;height:5px;z-index:10000;background:linear-gradient(to right,#00ff00,#00ff00,#00ff00);border-radius:10px;animation:lightsaber 2s infinite}.dark .menu-item.active-link:after{background:linear-gradient(to right,#ff0000,#ff0000,#ff0000)}@keyframes lightsaber{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.app-card{background-image:linear-gradient(to bottom 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: #CABFFD var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(31 41 55 / 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)}:is(.dark .app-card){--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: #5521B5 var(--tw-gradient-to-position);--tw-text-opacity: 1;color:rgb(243 244 246 / 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:#A4CAFE #E1EFFE}.dark .scrollbar-thin{scrollbar-color:#1A56DB #233876}.scrollbar-thin::-webkit-scrollbar{width:.5rem}.scrollbar-thin::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.scrollbar-thin::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .scrollbar-thin)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / 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(63 131 248 / 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(28 100 242 / 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))}:is(.dark .btn-primary:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / 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(55 65 81 / 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))}:is(.dark .btn-secondary){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .btn-secondary:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .btn-secondary:focus){--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(195 221 253 / var(--tw-border-opacity));background-color:transparent;padding:.5rem 1rem .5rem 2.5rem;--tw-text-opacity: 1;color:rgb(31 41 55 / 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}:is(.dark .search-input){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity))}:is(.dark .search-input:focus){--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.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::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar{--scrollbar-track: var(--color-bg-light-tone);--scrollbar-thumb: var(--color-bg-light-tone-panel);scrollbar-width:thin;scrollbar-color:#A4CAFE #E1EFFE}.dark .scrollbar{scrollbar-color:#1A56DB #233876}.scrollbar::-webkit-scrollbar{width:.5rem}.scrollbar::-webkit-scrollbar-track{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.scrollbar::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}:is(.dark .scrollbar)::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.scrollbar{--scrollbar-thumb-hover: var(--color-primary);--scrollbar-thumb-active: var(--color-secondary)}:is(.dark .scrollbar){--scrollbar-track: var(--color-bg-dark-tone);--scrollbar-thumb: var(--color-bg-dark-tone-panel);--scrollbar-thumb-hover: var(--color-primary)}.card-title{margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .card-title){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.card-content{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .card-content){--tw-text-opacity: 1;color:rgb(209 213 219 / 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(63 131 248 / 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(28 100 242 / var(--tw-bg-opacity))}.subcard{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / 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)}:is(.dark .subcard){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / 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(17 24 39 / var(--tw-text-opacity))}:is(.dark .subcard-title){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.subcard-content{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}:is(.dark .subcard-content){--tw-text-opacity: 1;color:rgb(209 213 219 / 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(63 131 248 / 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(28 100 242 / 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}.odd\:bg-bg-light-tone:nth-child(odd){background-color:var(--color-bg-light-tone)}.even\:bg-bg-light-discussion-odd:nth-child(2n){background-color:var(--color-bg-light-discussion-odd)}.even\:bg-bg-light-tone-panel:nth-child(2n){background-color:var(--color-bg-light-tone-panel)}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:bottom-0{bottom:0}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-x-12{--tw-translate-x: -3rem;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\:-translate-x-8{--tw-translate-x: -2rem;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\:-translate-y-8{--tw-translate-y: -2rem;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\:translate-x-5{--tw-translate-x: 1.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))}.group:hover .group-hover\:translate-x-\[0px\]{--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))}.group:hover .group-hover\:translate-y-\[-50px\]{--tw-translate-y: -50px;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-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:hover .group-hover\:text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-0{opacity:0}.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\:z-50:hover{z-index:50}.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\:-translate-y-8:hover{--tw-translate-y: -2rem;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-150:hover{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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-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-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-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-opacity-20:hover{--tw-bg-opacity: .2}.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\: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\: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-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / 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-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-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-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-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}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){border-color:var(--color-bg-light)}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){background-color:var(--color-bg-dark)}:is(.dark .dark\:bg-bg-dark-tone){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:bg-bg-dark-tone-panel){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-900){--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-800){--tw-bg-opacity: 1;background-color:rgb(138 44 13 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-70){--tw-bg-opacity: .7}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:bg-opacity-90){--tw-bg-opacity: .9}:is(.dark .dark\:from-bg-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)}:is(.dark .dark\:from-bg-dark-tone){--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)}:is(.dark .dark\: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)}:is(.dark .dark\:from-blue-800){--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)}:is(.dark .dark\:from-blue-900){--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)}:is(.dark .dark\:from-indigo-400){--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)}:is(.dark .dark\:from-indigo-900){--tw-gradient-from: #362F78 var(--tw-gradient-from-position);--tw-gradient-to: rgb(54 47 120 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}:is(.dark .dark\:via-bg-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)}:is(.dark .dark\:to-gray-800){--tw-gradient-to: #1F2937 var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-400){--tw-gradient-to: #AC94FA var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-800){--tw-gradient-to: #5521B5 var(--tw-gradient-to-position)}:is(.dark .dark\:to-purple-900){--tw-gradient-to: #4A1D96 var(--tw-gradient-to-position)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-400){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-dark-text-panel){color:var(--color-dark-text-panel)}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-400){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-primary){color:var(--color-primary)}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-400){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-slate-50){--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-400){--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\: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)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-white){--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}:is(.dark .dark\:ring-opacity-20){--tw-ring-opacity: .2}:is(.dark .dark\:ring-offset-gray-700){--tw-ring-offset-color: #374151}:is(.dark .dark\:ring-offset-gray-800){--tw-ring-offset-color: #1F2937}:is(.dark .dark\:scrollbar-track-bg-dark){--scrollbar-track: var(--color-bg-dark) !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-track-gray-800){--scrollbar-track: #1F2937 !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: var(--color-bg-dark-tone) !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: var(--color-bg-dark-tone-panel) !important}:is(.dark .dark\:scrollbar-thumb-gray-600){--scrollbar-thumb: #4B5563 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){background-color:var(--color-bg-dark-tone)}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){background-color:var(--color-bg-dark-discussion-odd)}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){background-color:var(--color-bg-dark-tone-panel)}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:border-primary:hover){border-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-primary:hover){background-color:var(--color-primary)}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone):hover{background-color:var(--color-bg-dark-tone)}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{background-color:var(--color-bg-dark-tone-panel)}:is(.dark .dark\:hover\:text-blue-200:hover){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-blue-300:hover){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-green-300:hover){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-primary:hover){color:var(--color-primary)}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:scrollbar-thumb-primary){--scrollbar-thumb-hover: var(--color-primary) !important}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:border-secondary:focus){border-color:var(--color-secondary)}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-secondary:focus){--tw-ring-color: var(--color-secondary)}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-offset-gray-700:focus){--tw-ring-offset-color: #374151}:is(.dark .dark\:active\:bg-gray-600:active){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 640px){.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\:grid-cols-3{grid-template-columns:repeat(3,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-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))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--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\:grid-cols-4{grid-template-columns:repeat(4,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 534bf96c..d5d0459d 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - - + +
    diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index 26a2a702..5047aeda 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -1722,6 +1722,7 @@ + @@ -1785,6 +1786,23 @@ + + + + + + + + @@ -3406,60 +3424,6 @@ - - - - - - - - - - - - - - - -
    - - -
    - -
    -
    -
    - -
    -
    - - -
    - -
    -
    - - -
    - -
    -
    -
    - @@ -4672,15 +4636,6 @@ export default { console.error(error); }); }, - reinstallMotionCtrlService(){ - axios.post('install_motion_ctrl', {client_id:this.$store.state.client_id}) - .then(response => { - - }) - .catch(error => { - console.error(error); - }); - }, reinstallvLLMService(){ axios.post('install_vllm', {client_id:this.$store.state.client_id}) .then(response => { diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 7d86b3e5..a2467c5f 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 7d86b3e5f5c16ce3834e2791f8e619801fe7463f +Subproject commit a2467c5f384df45bc7367b2a2dd3c53e11b1f904