From 4914f20190adda8ad88d792ee86bf6657af22253 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 4 Feb 2024 12:06:13 +0100 Subject: [PATCH] fixed ui --- configs/config.yaml | 6 ++++- lollms_core | 2 +- .../{index-4c104035.js => index-14ee3a3f.js} | 22 +++++++++---------- ...{index-b2ee99e7.css => index-d55ae77e.css} | 2 +- web/dist/index.html | 4 ++-- web/src/views/SettingsView.vue | 11 +--------- zoos/personalities_zoo | 2 +- 7 files changed, 22 insertions(+), 27 deletions(-) rename web/dist/assets/{index-4c104035.js => index-14ee3a3f.js} (99%) rename web/dist/assets/{index-b2ee99e7.css => index-d55ae77e.css} (99%) diff --git a/configs/config.yaml b/configs/config.yaml index 46ca32b3..db8b412c 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -1,5 +1,5 @@ # =================== Lord Of Large Language Multimodal Systems Configuration file =========================== -version: 50 +version: 51 binding_name: null model_name: null @@ -130,3 +130,7 @@ fun_mode: False # webui configurations show_code_of_conduct: true activate_audio_infos: true + + +# whisper configuration +whisper_model: base \ No newline at end of file diff --git a/lollms_core b/lollms_core index f08d7207..82fee480 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit f08d7207423885d485824c7d74bf3718683230c9 +Subproject commit 82fee4807e8d07016984af9cfd07a060c53a9804 diff --git a/web/dist/assets/index-4c104035.js b/web/dist/assets/index-14ee3a3f.js similarity index 99% rename from web/dist/assets/index-4c104035.js rename to web/dist/assets/index-14ee3a3f.js index 7c181ee2..94b02de6 100644 --- a/web/dist/assets/index-4c104035.js +++ b/web/dist/assets/index-14ee3a3f.js @@ -1,4 +1,4 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();function ob(n,e){const t=Object.create(null),i=n.split(",");for(let s=0;s!!t[s.toLowerCase()]:s=>!!t[s]}const Wt={},qo=[],Ii=()=>{},wI=()=>!1,NI=/^on[^a-z]/,hu=n=>NI.test(n),ab=n=>n.startsWith("onUpdate:"),sn=Object.assign,lb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},OI=Object.prototype.hasOwnProperty,Dt=(n,e)=>OI.call(n,e),tt=Array.isArray,Yo=n=>Ia(n)==="[object Map]",Oa=n=>Ia(n)==="[object Set]",eS=n=>Ia(n)==="[object Date]",II=n=>Ia(n)==="[object RegExp]",mt=n=>typeof n=="function",rn=n=>typeof n=="string",Ll=n=>typeof n=="symbol",Ht=n=>n!==null&&typeof n=="object",TR=n=>Ht(n)&&mt(n.then)&&mt(n.catch),xR=Object.prototype.toString,Ia=n=>xR.call(n),MI=n=>Ia(n).slice(8,-1),CR=n=>Ia(n)==="[object Object]",cb=n=>rn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,bd=ob(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fu=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},DI=/-(\w)/g,Qi=fu(n=>n.replace(DI,(e,t)=>t?t.toUpperCase():"")),LI=/\B([A-Z])/g,ao=fu(n=>n.replace(LI,"-$1").toLowerCase()),mu=fu(n=>n.charAt(0).toUpperCase()+n.slice(1)),ap=fu(n=>n?`on${mu(n)}`:""),kl=(n,e)=>!Object.is(n,e),$o=(n,e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},Ld=n=>{const e=parseFloat(n);return isNaN(e)?n:e},kI=n=>{const e=rn(n)?Number(n):NaN;return isNaN(e)?n:e};let tS;const ig=()=>tS||(tS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(n){if(tt(n)){const e={};for(let t=0;t{if(t){const i=t.split(UI);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function ze(n){let e="";if(rn(n))e=n;else if(tt(n))for(let t=0;tJr(t,e))}const fe=n=>rn(n)?n:n==null?"":tt(n)||Ht(n)&&(n.toString===xR||!mt(n.toString))?JSON.stringify(n,AR,2):String(n),AR=(n,e)=>e&&e.__v_isRef?AR(n,e.value):Yo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[i,s])=>(t[`${i} =>`]=s,t),{})}:Oa(e)?{[`Set(${e.size})`]:[...e.values()]}:Ht(e)&&!tt(e)&&!CR(e)?String(e):e;let ei;class wR{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ei,!e&&ei&&(this.index=(ei.scopes||(ei.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ei;try{return ei=this,e()}finally{ei=t}}}on(){ei=this}off(){ei=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t{const e=new Set(n);return e.w=0,e.n=0,e},OR=n=>(n.w&_r)>0,IR=n=>(n.n&_r)>0,$I=({deps:n})=>{if(n.length)for(let e=0;e{const{deps:e}=n;if(e.length){let t=0;for(let i=0;i{(d==="length"||d>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":tt(n)?cb(t)&&a.push(o.get("length")):(a.push(o.get(Yr)),Yo(n)&&a.push(o.get(rg)));break;case"delete":tt(n)||(a.push(o.get(Yr)),Yo(n)&&a.push(o.get(rg)));break;case"set":Yo(n)&&a.push(o.get(Yr));break}if(a.length===1)a[0]&&og(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);og(ub(l))}}function og(n,e){const t=tt(n)?n:[...n];for(const i of t)i.computed&&iS(i);for(const i of t)i.computed||iS(i)}function iS(n,e){(n!==Ni||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}function KI(n,e){var t;return(t=kd.get(n))==null?void 0:t.get(e)}const jI=ob("__proto__,__v_isRef,__isVue"),LR=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Ll)),QI=gu(),XI=gu(!1,!0),ZI=gu(!0),JI=gu(!0,!0),sS=eM();function eM(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const i=It(this);for(let r=0,o=this.length;r{n[e]=function(...t){Ma();const i=It(this)[e].apply(this,t);return Da(),i}}),n}function tM(n){const e=It(this);return jn(e,"has",n),e.hasOwnProperty(n)}function gu(n=!1,e=!1){return function(i,s,r){if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&r===(n?e?VR:GR:e?BR:FR).get(i))return i;const o=tt(i);if(!n){if(o&&Dt(sS,s))return Reflect.get(sS,s,r);if(s==="hasOwnProperty")return tM}const a=Reflect.get(i,s,r);return(Ll(s)?LR.has(s):jI(s))||(n||jn(i,"get",s),e)?a:pn(a)?o&&cb(s)?a:a.value:Ht(a)?n?zR(a):Qn(a):a}}const nM=kR(),iM=kR(!0);function kR(n=!1){return function(t,i,s,r){let o=t[i];if(na(o)&&pn(o)&&!pn(s))return!1;if(!n&&(!Pd(s)&&!na(s)&&(o=It(o),s=It(s)),!tt(t)&&pn(o)&&!pn(s)))return o.value=s,!0;const a=tt(t)&&cb(i)?Number(i)n,bu=n=>Reflect.getPrototypeOf(n);function yc(n,e,t=!1,i=!1){n=n.__v_raw;const s=It(n),r=It(e);t||(e!==r&&jn(s,"get",e),jn(s,"get",r));const{has:o}=bu(s),a=i?_b:t?hb:Pl;if(o.call(s,e))return a(n.get(e));if(o.call(s,r))return a(n.get(r));n!==s&&n.get(e)}function Tc(n,e=!1){const t=this.__v_raw,i=It(t),s=It(n);return e||(n!==s&&jn(i,"has",n),jn(i,"has",s)),n===s?t.has(n):t.has(n)||t.has(s)}function xc(n,e=!1){return n=n.__v_raw,!e&&jn(It(n),"iterate",Yr),Reflect.get(n,"size",n)}function rS(n){n=It(n);const e=It(this);return bu(e).has.call(e,n)||(e.add(n),Rs(e,"add",n,n)),this}function oS(n,e){e=It(e);const t=It(this),{has:i,get:s}=bu(t);let r=i.call(t,n);r||(n=It(n),r=i.call(t,n));const o=s.call(t,n);return t.set(n,e),r?kl(e,o)&&Rs(t,"set",n,e):Rs(t,"add",n,e),this}function aS(n){const e=It(this),{has:t,get:i}=bu(e);let s=t.call(e,n);s||(n=It(n),s=t.call(e,n)),i&&i.call(e,n);const r=e.delete(n);return s&&Rs(e,"delete",n,void 0),r}function lS(){const n=It(this),e=n.size!==0,t=n.clear();return e&&Rs(n,"clear",void 0,void 0),t}function Cc(n,e){return function(i,s){const r=this,o=r.__v_raw,a=It(o),l=e?_b:n?hb:Pl;return!n&&jn(a,"iterate",Yr),o.forEach((c,d)=>i.call(s,l(c),l(d),r))}}function Rc(n,e,t){return function(...i){const s=this.__v_raw,r=It(s),o=Yo(r),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,c=s[n](...i),d=t?_b:e?hb:Pl;return!e&&jn(r,"iterate",l?rg:Yr),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Fs(n){return function(...e){return n==="delete"?!1:this}}function cM(){const n={get(r){return yc(this,r)},get size(){return xc(this)},has:Tc,add:rS,set:oS,delete:aS,clear:lS,forEach:Cc(!1,!1)},e={get(r){return yc(this,r,!1,!0)},get size(){return xc(this)},has:Tc,add:rS,set:oS,delete:aS,clear:lS,forEach:Cc(!1,!0)},t={get(r){return yc(this,r,!0)},get size(){return xc(this,!0)},has(r){return Tc.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Cc(!0,!1)},i={get(r){return yc(this,r,!0,!0)},get size(){return xc(this,!0)},has(r){return Tc.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Cc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Rc(r,!1,!1),t[r]=Rc(r,!0,!1),e[r]=Rc(r,!1,!0),i[r]=Rc(r,!0,!0)}),[n,t,e,i]}const[dM,uM,pM,_M]=cM();function Eu(n,e){const t=e?n?_M:pM:n?uM:dM;return(i,s,r)=>s==="__v_isReactive"?!n:s==="__v_isReadonly"?n:s==="__v_raw"?i:Reflect.get(Dt(t,s)&&s in i?t:i,s,r)}const hM={get:Eu(!1,!1)},fM={get:Eu(!1,!0)},mM={get:Eu(!0,!1)},gM={get:Eu(!0,!0)},FR=new WeakMap,BR=new WeakMap,GR=new WeakMap,VR=new WeakMap;function bM(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EM(n){return n.__v_skip||!Object.isExtensible(n)?0:bM(MI(n))}function Qn(n){return na(n)?n:Su(n,!1,PR,hM,FR)}function HR(n){return Su(n,!1,aM,fM,BR)}function zR(n){return Su(n,!0,UR,mM,GR)}function SM(n){return Su(n,!0,lM,gM,VR)}function Su(n,e,t,i,s){if(!Ht(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const r=s.get(n);if(r)return r;const o=EM(n);if(o===0)return n;const a=new Proxy(n,o===2?i:t);return s.set(n,a),a}function Wo(n){return na(n)?Wo(n.__v_raw):!!(n&&n.__v_isReactive)}function na(n){return!!(n&&n.__v_isReadonly)}function Pd(n){return!!(n&&n.__v_isShallow)}function qR(n){return Wo(n)||na(n)}function It(n){const e=n&&n.__v_raw;return e?It(e):n}function nc(n){return Dd(n,"__v_skip",!0),n}const Pl=n=>Ht(n)?Qn(n):n,hb=n=>Ht(n)?zR(n):n;function fb(n){ar&&Ni&&(n=It(n),DR(n.dep||(n.dep=ub())))}function mb(n,e){n=It(n);const t=n.dep;t&&og(t)}function pn(n){return!!(n&&n.__v_isRef===!0)}function dt(n){return YR(n,!1)}function vM(n){return YR(n,!0)}function YR(n,e){return pn(n)?n:new yM(n,e)}class yM{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:It(e),this._value=t?e:Pl(e)}get value(){return fb(this),this._value}set value(e){const t=this.__v_isShallow||Pd(e)||na(e);e=t?e:It(e),kl(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Pl(e),mb(this))}}function vt(n){return pn(n)?n.value:n}const TM={get:(n,e,t)=>vt(Reflect.get(n,e,t)),set:(n,e,t,i)=>{const s=n[e];return pn(s)&&!pn(t)?(s.value=t,!0):Reflect.set(n,e,t,i)}};function $R(n){return Wo(n)?n:new Proxy(n,TM)}class xM{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:i}=e(()=>fb(this),()=>mb(this));this._get=t,this._set=i}get value(){return this._get()}set value(e){this._set(e)}}function CM(n){return new xM(n)}function RM(n){const e=tt(n)?new Array(n.length):{};for(const t in n)e[t]=WR(n,t);return e}class AM{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,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 KI(It(this._object),this._key)}}class wM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ud(n,e,t){return pn(n)?n:mt(n)?new wM(n):Ht(n)&&arguments.length>1?WR(n,e,t):dt(n)}function WR(n,e,t){const i=n[e];return pn(i)?i:new AM(n,e,t)}class NM{constructor(e,t,i,s){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new pb(e,()=>{this._dirty||(this._dirty=!0,mb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=It(this);return fb(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function OM(n,e,t=!1){let i,s;const r=mt(n);return r?(i=n,s=Ii):(i=n.get,s=n.set),new NM(i,s,r||!s,t)}function lr(n,e,t,i){let s;try{s=i?n(...i):n()}catch(r){vu(r,e,t)}return s}function hi(n,e,t,i){if(mt(n)){const r=lr(n,e,t,i);return r&&TR(r)&&r.catch(o=>{vu(o,e,t)}),r}const s=[];for(let r=0;r>>1;Fl(In[i])Hi&&In.splice(e,1)}function LM(n){tt(n)?Ko.push(...n):(!bs||!bs.includes(n,n.allowRecurse?kr+1:kr))&&Ko.push(n),jR()}function cS(n,e=Ul?Hi+1:0){for(;eFl(t)-Fl(i)),kr=0;krn.id==null?1/0:n.id,kM=(n,e)=>{const t=Fl(n)-Fl(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function XR(n){ag=!1,Ul=!0,In.sort(kM);const e=Ii;try{for(Hi=0;Hirn(m)?m.trim():m)),u&&(s=t.map(Ld))}let a,l=i[a=ap(e)]||i[a=ap(Qi(e))];!l&&r&&(l=i[a=ap(ao(e))]),l&&hi(l,n,6,s);const c=i[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,hi(c,n,6,s)}}function ZR(n,e,t=!1){const i=e.emitsCache,s=i.get(n);if(s!==void 0)return s;const r=n.emits;let o={},a=!1;if(!mt(n)){const l=c=>{const d=ZR(c,e,!0);d&&(a=!0,sn(o,d))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!r&&!a?(Ht(n)&&i.set(n,null),null):(tt(r)?r.forEach(l=>o[l]=null):sn(o,r),Ht(n)&&i.set(n,o),o)}function yu(n,e){return!n||!hu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Dt(n,e[0].toLowerCase()+e.slice(1))||Dt(n,ao(e))||Dt(n,e))}let Tn=null,Tu=null;function Fd(n){const e=Tn;return Tn=n,Tu=n&&n.type.__scopeId||null,e}function lo(n){Tu=n}function co(){Tu=null}function nt(n,e=Tn,t){if(!e||n._n)return n;const i=(...s)=>{i._d&&vS(-1);const r=Fd(e);let o;try{o=n(...s)}finally{Fd(r),i._d&&vS(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function lp(n){const{type:e,vnode:t,proxy:i,withProxy:s,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:h,setupState:m,ctx:f,inheritAttrs:E}=n;let b,g;const S=Fd(n);try{if(t.shapeFlag&4){const T=s||i;b=Gi(d.call(T,T,u,r,m,h,f)),g=l}else{const T=e;b=Gi(T.length>1?T(r,{attrs:l,slots:a,emit:c}):T(r,null)),g=e.props?l:UM(l)}}catch(T){yl.length=0,vu(T,n,1),b=Ie(fi)}let y=b;if(g&&E!==!1){const T=Object.keys(g),{shapeFlag:C}=y;T.length&&C&7&&(o&&T.some(ab)&&(g=FM(g,o)),y=As(y,g))}return t.dirs&&(y=As(y),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&(y.transition=t.transition),b=y,Fd(S),b}const UM=n=>{let e;for(const t in n)(t==="class"||t==="style"||hu(t))&&((e||(e={}))[t]=n[t]);return e},FM=(n,e)=>{const t={};for(const i in n)(!ab(i)||!(i.slice(9)in e))&&(t[i]=n[i]);return t};function BM(n,e,t){const{props:i,children:s,component:r}=n,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return i?dS(i,o,c):!!o;if(l&8){const d=e.dynamicProps;for(let u=0;un.__isSuspense;function VM(n,e){e&&e.pendingBranch?tt(n)?e.effects.push(...n):e.effects.push(n):LM(n)}const Ac={};function Bn(n,e,t){return eA(n,e,t)}function eA(n,e,{immediate:t,deep:i,flush:s,onTrack:r,onTrigger:o}=Wt){var a;const l=NR()===((a=bn)==null?void 0:a.scope)?bn:null;let c,d=!1,u=!1;if(pn(n)?(c=()=>n.value,d=Pd(n)):Wo(n)?(c=()=>n,i=!0):tt(n)?(u=!0,d=n.some(T=>Wo(T)||Pd(T)),c=()=>n.map(T=>{if(pn(T))return T.value;if(Wo(T))return Hr(T);if(mt(T))return lr(T,l,2)})):mt(n)?e?c=()=>lr(n,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),hi(n,l,3,[m])}:c=Ii,e&&i){const T=c;c=()=>Hr(T())}let h,m=T=>{h=S.onStop=()=>{lr(T,l,4)}},f;if(Hl)if(m=Ii,e?t&&hi(e,l,3,[c(),u?[]:void 0,m]):c(),s==="sync"){const T=M2();f=T.__watcherHandles||(T.__watcherHandles=[])}else return Ii;let E=u?new Array(n.length).fill(Ac):Ac;const b=()=>{if(S.active)if(e){const T=S.run();(i||d||(u?T.some((C,x)=>kl(C,E[x])):kl(T,E)))&&(h&&h(),hi(e,l,3,[T,E===Ac?void 0:u&&E[0]===Ac?[]:E,m]),E=T)}else S.run()};b.allowRecurse=!!e;let g;s==="sync"?g=b:s==="post"?g=()=>yn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>bb(b));const S=new pb(c,g);e?t?b():E=S.run():s==="post"?yn(S.run.bind(S),l&&l.suspense):S.run();const y=()=>{S.stop(),l&&l.scope&&lb(l.scope.effects,S)};return f&&f.push(y),y}function HM(n,e,t){const i=this.proxy,s=rn(n)?n.includes(".")?tA(i,n):()=>i[n]:n.bind(i,i);let r;mt(e)?r=e:(r=e.handler,t=e);const o=bn;sa(this);const a=eA(s,r.bind(i),t);return o?sa(o):$r(),a}function tA(n,e){const t=e.split(".");return()=>{let i=n;for(let s=0;s{Hr(t,e)});else if(CR(n))for(const t in n)Hr(n[t],e);return n}function Ee(n,e){const t=Tn;if(t===null)return n;const i=Ou(t)||t.proxy,s=n.dirs||(n.dirs=[]);for(let r=0;r{n.isMounted=!0}),La(()=>{n.isUnmounting=!0}),n}const si=[Function,Array],iA={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:si,onEnter:si,onAfterEnter:si,onEnterCancelled:si,onBeforeLeave:si,onLeave:si,onAfterLeave:si,onLeaveCancelled:si,onBeforeAppear:si,onAppear:si,onAfterAppear:si,onAppearCancelled:si},zM={name:"BaseTransition",props:iA,setup(n,{slots:e}){const t=xb(),i=nA();let s;return()=>{const r=e.default&&Eb(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const E of r)if(E.type!==fi){o=E;break}}const a=It(n),{mode:l}=a;if(i.isLeaving)return cp(o);const c=uS(o);if(!c)return cp(o);const d=Bl(c,a,i,t);ia(c,d);const u=t.subTree,h=u&&uS(u);let m=!1;const{getTransitionKey:f}=c.type;if(f){const E=f();s===void 0?s=E:E!==s&&(s=E,m=!0)}if(h&&h.type!==fi&&(!ir(c,h)||m)){const E=Bl(h,a,i,t);if(ia(h,E),l==="out-in")return i.isLeaving=!0,E.afterLeave=()=>{i.isLeaving=!1,t.update.active!==!1&&t.update()},cp(o);l==="in-out"&&c.type!==fi&&(E.delayLeave=(b,g,S)=>{const y=sA(i,h);y[String(h.key)]=h,b._leaveCb=()=>{g(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=S})}return o}}},qM=zM;function sA(n,e){const{leavingVNodes:t}=n;let i=t.get(e.type);return i||(i=Object.create(null),t.set(e.type,i)),i}function Bl(n,e,t,i){const{appear:s,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:m,onLeaveCancelled:f,onBeforeAppear:E,onAppear:b,onAfterAppear:g,onAppearCancelled:S}=e,y=String(n.key),T=sA(t,n),C=(R,v)=>{R&&hi(R,i,9,v)},x=(R,v)=>{const A=v[1];C(R,v),tt(R)?R.every(P=>P.length<=1)&&A():R.length<=1&&A()},w={mode:r,persisted:o,beforeEnter(R){let v=a;if(!t.isMounted)if(s)v=E||a;else return;R._leaveCb&&R._leaveCb(!0);const A=T[y];A&&ir(n,A)&&A.el._leaveCb&&A.el._leaveCb(),C(v,[R])},enter(R){let v=l,A=c,P=d;if(!t.isMounted)if(s)v=b||l,A=g||c,P=S||d;else return;let U=!1;const Y=R._enterCb=L=>{U||(U=!0,L?C(P,[R]):C(A,[R]),w.delayedLeave&&w.delayedLeave(),R._enterCb=void 0)};v?x(v,[R,Y]):Y()},leave(R,v){const A=String(n.key);if(R._enterCb&&R._enterCb(!0),t.isUnmounting)return v();C(u,[R]);let P=!1;const U=R._leaveCb=Y=>{P||(P=!0,v(),Y?C(f,[R]):C(m,[R]),R._leaveCb=void 0,T[A]===n&&delete T[A])};T[A]=n,h?x(h,[R,U]):U()},clone(R){return Bl(R,e,t,i)}};return w}function cp(n){if(xu(n))return n=As(n),n.children=null,n}function uS(n){return xu(n)?n.children?n.children[0]:void 0:n}function ia(n,e){n.shapeFlag&6&&n.component?ia(n.component.subTree,e):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function Eb(n,e=!1,t){let i=[],s=0;for(let r=0;r1)for(let r=0;rsn({name:n.name},e,{setup:n}))():n}const jo=n=>!!n.type.__asyncLoader,xu=n=>n.type.__isKeepAlive,YM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=xb(),i=t.ctx;if(!i.renderer)return()=>{const S=e.default&&e.default();return S&&S.length===1?S[0]:S};const s=new Map,r=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=i,h=u("div");i.activate=(S,y,T,C,x)=>{const w=S.component;c(S,y,T,0,a),l(w.vnode,S,y,T,w,a,C,S.slotScopeIds,x),yn(()=>{w.isDeactivated=!1,w.a&&$o(w.a);const R=S.props&&S.props.onVnodeMounted;R&&ai(R,w.parent,S)},a)},i.deactivate=S=>{const y=S.component;c(S,h,null,1,a),yn(()=>{y.da&&$o(y.da);const T=S.props&&S.props.onVnodeUnmounted;T&&ai(T,y.parent,S),y.isDeactivated=!0},a)};function m(S){dp(S),d(S,t,a,!0)}function f(S){s.forEach((y,T)=>{const C=_g(y.type);C&&(!S||!S(C))&&E(T)})}function E(S){const y=s.get(S);!o||!ir(y,o)?m(y):o&&dp(o),s.delete(S),r.delete(S)}Bn(()=>[n.include,n.exclude],([S,y])=>{S&&f(T=>ml(S,T)),y&&f(T=>!ml(y,T))},{flush:"post",deep:!0});let b=null;const g=()=>{b!=null&&s.set(b,up(t.subTree))};return Ms(g),ic(g),La(()=>{s.forEach(S=>{const{subTree:y,suspense:T}=t,C=up(y);if(S.type===C.type&&S.key===C.key){dp(C);const x=C.component.da;x&&yn(x,T);return}m(S)})}),()=>{if(b=null,!e.default)return null;const S=e.default(),y=S[0];if(S.length>1)return o=null,S;if(!Vl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let T=up(y);const C=T.type,x=_g(jo(T)?T.type.__asyncResolved||{}:C),{include:w,exclude:R,max:v}=n;if(w&&(!x||!ml(w,x))||R&&x&&ml(R,x))return o=T,y;const A=T.key==null?C:T.key,P=s.get(A);return T.el&&(T=As(T),y.shapeFlag&128&&(y.ssContent=T)),b=A,P?(T.el=P.el,T.component=P.component,T.transition&&ia(T,T.transition),T.shapeFlag|=512,r.delete(A),r.add(A)):(r.add(A),v&&r.size>parseInt(v,10)&&E(r.values().next().value)),T.shapeFlag|=256,o=T,JR(y.type)?y:T}}},$M=YM;function ml(n,e){return tt(n)?n.some(t=>ml(t,e)):rn(n)?n.split(",").includes(e):II(n)?n.test(e):!1}function WM(n,e){rA(n,"a",e)}function KM(n,e){rA(n,"da",e)}function rA(n,e,t=bn){const i=n.__wdc||(n.__wdc=()=>{let s=t;for(;s;){if(s.isDeactivated)return;s=s.parent}return n()});if(Cu(e,i,t),t){let s=t.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&jM(i,e,t,s),s=s.parent}}function jM(n,e,t,i){const s=Cu(e,n,i,!0);oA(()=>{lb(i[e],s)},t)}function dp(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function up(n){return n.shapeFlag&128?n.ssContent:n}function Cu(n,e,t=bn,i=!1){if(t){const s=t[n]||(t[n]=[]),r=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Ma(),sa(t);const a=hi(e,t,n,o);return $r(),Da(),a});return i?s.unshift(r):s.push(r),r}}const Is=n=>(e,t=bn)=>(!Hl||n==="sp")&&Cu(n,(...i)=>e(...i),t),QM=Is("bm"),Ms=Is("m"),XM=Is("bu"),ic=Is("u"),La=Is("bum"),oA=Is("um"),ZM=Is("sp"),JM=Is("rtg"),e2=Is("rtc");function t2(n,e=bn){Cu("ec",n,e)}const Sb="components";function ut(n,e){return lA(Sb,n,!0,e)||n}const aA=Symbol.for("v-ndc");function Ru(n){return rn(n)?lA(Sb,n,!1)||n:n||aA}function lA(n,e,t=!0,i=!1){const s=Tn||bn;if(s){const r=s.type;if(n===Sb){const a=_g(r,!1);if(a&&(a===e||a===Qi(e)||a===mu(Qi(e))))return r}const o=pS(s[n]||r[n],e)||pS(s.appContext[n],e);return!o&&i?r:o}}function pS(n,e){return n&&(n[e]||n[Qi(e)]||n[mu(Qi(e))])}function lt(n,e,t,i){let s;const r=t&&t[i];if(tt(n)||rn(n)){s=new Array(n.length);for(let o=0,a=n.length;oe(o,a,void 0,r&&r[a]));else{const o=Object.keys(n);s=new Array(o.length);for(let a=0,l=o.length;aVl(e)?!(e.type===fi||e.type===qe&&!cA(e.children)):!0)?n:null}const lg=n=>n?SA(n)?Ou(n)||n.proxy:lg(n.parent):null,vl=sn(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>lg(n.parent),$root:n=>lg(n.root),$emit:n=>n.emit,$options:n=>vb(n),$forceUpdate:n=>n.f||(n.f=()=>bb(n.update)),$nextTick:n=>n.n||(n.n=Fe.bind(n.proxy)),$watch:n=>HM.bind(n)}),pp=(n,e)=>n!==Wt&&!n.__isScriptSetup&&Dt(n,e),n2={get({_:n},e){const{ctx:t,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=n;let c;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return i[e];case 2:return s[e];case 4:return t[e];case 3:return r[e]}else{if(pp(i,e))return o[e]=1,i[e];if(s!==Wt&&Dt(s,e))return o[e]=2,s[e];if((c=n.propsOptions[0])&&Dt(c,e))return o[e]=3,r[e];if(t!==Wt&&Dt(t,e))return o[e]=4,t[e];cg&&(o[e]=0)}}const d=vl[e];let u,h;if(d)return e==="$attrs"&&jn(n,"get",e),d(n);if((u=a.__cssModules)&&(u=u[e]))return u;if(t!==Wt&&Dt(t,e))return o[e]=4,t[e];if(h=l.config.globalProperties,Dt(h,e))return h[e]},set({_:n},e,t){const{data:i,setupState:s,ctx:r}=n;return pp(s,e)?(s[e]=t,!0):i!==Wt&&Dt(i,e)?(i[e]=t,!0):Dt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(r[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:i,appContext:s,propsOptions:r}},o){let a;return!!t[o]||n!==Wt&&Dt(n,o)||pp(e,o)||(a=r[0])&&Dt(a,o)||Dt(i,o)||Dt(vl,o)||Dt(s.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Dt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function _S(n){return tt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let cg=!0;function i2(n){const e=vb(n),t=n.proxy,i=n.ctx;cg=!1,e.beforeCreate&&hS(e.beforeCreate,n,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:m,updated:f,activated:E,deactivated:b,beforeDestroy:g,beforeUnmount:S,destroyed:y,unmounted:T,render:C,renderTracked:x,renderTriggered:w,errorCaptured:R,serverPrefetch:v,expose:A,inheritAttrs:P,components:U,directives:Y,filters:L}=e;if(c&&s2(c,i,null),o)for(const k in o){const $=o[k];mt($)&&(i[k]=$.bind(t))}if(s){const k=s.call(t,t);Ht(k)&&(n.data=Qn(k))}if(cg=!0,r)for(const k in r){const $=r[k],K=mt($)?$.bind(t,t):mt($.get)?$.get.bind(t,t):Ii,W=!mt($)&&mt($.set)?$.set.bind(t):Ii,le=et({get:K,set:W});Object.defineProperty(i,k,{enumerable:!0,configurable:!0,get:()=>le.value,set:J=>le.value=J})}if(a)for(const k in a)dA(a[k],i,t,k);if(l){const k=mt(l)?l.call(t):l;Reflect.ownKeys(k).forEach($=>{Qo($,k[$])})}d&&hS(d,n,"c");function B(k,$){tt($)?$.forEach(K=>k(K.bind(t))):$&&k($.bind(t))}if(B(QM,u),B(Ms,h),B(XM,m),B(ic,f),B(WM,E),B(KM,b),B(t2,R),B(e2,x),B(JM,w),B(La,S),B(oA,T),B(ZM,v),tt(A))if(A.length){const k=n.exposed||(n.exposed={});A.forEach($=>{Object.defineProperty(k,$,{get:()=>t[$],set:K=>t[$]=K})})}else n.exposed||(n.exposed={});C&&n.render===Ii&&(n.render=C),P!=null&&(n.inheritAttrs=P),U&&(n.components=U),Y&&(n.directives=Y)}function s2(n,e,t=Ii){tt(n)&&(n=dg(n));for(const i in n){const s=n[i];let r;Ht(s)?"default"in s?r=Mi(s.from||i,s.default,!0):r=Mi(s.from||i):r=Mi(s),pn(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function hS(n,e,t){hi(tt(n)?n.map(i=>i.bind(e.proxy)):n.bind(e.proxy),e,t)}function dA(n,e,t,i){const s=i.includes(".")?tA(t,i):()=>t[i];if(rn(n)){const r=e[n];mt(r)&&Bn(s,r)}else if(mt(n))Bn(s,n.bind(t));else if(Ht(n))if(tt(n))n.forEach(r=>dA(r,e,t,i));else{const r=mt(n.handler)?n.handler.bind(t):e[n.handler];mt(r)&&Bn(s,r,n)}}function vb(n){const e=n.type,{mixins:t,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=n.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!t&&!i?l=e:(l={},s.length&&s.forEach(c=>Bd(l,c,o,!0)),Bd(l,e,o)),Ht(e)&&r.set(e,l),l}function Bd(n,e,t,i=!1){const{mixins:s,extends:r}=e;r&&Bd(n,r,t,!0),s&&s.forEach(o=>Bd(n,o,t,!0));for(const o in e)if(!(i&&o==="expose")){const a=r2[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const r2={data:fS,props:mS,emits:mS,methods:gl,computed:gl,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,beforeUnmount:kn,destroyed:kn,unmounted:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:gl,directives:gl,watch:a2,provide:fS,inject:o2};function fS(n,e){return e?n?function(){return sn(mt(n)?n.call(this,this):n,mt(e)?e.call(this,this):e)}:e:n}function o2(n,e){return gl(dg(n),dg(e))}function dg(n){if(tt(n)){const e={};for(let t=0;t1)return t&&mt(e)?e.call(i&&i.proxy):e}}function d2(n,e,t,i=!1){const s={},r={};Dd(r,wu,1),n.propsDefaults=Object.create(null),pA(n,e,s,r);for(const o in n.propsOptions[0])o in s||(s[o]=void 0);t?n.props=i?s:HR(s):n.type.props?n.props=s:n.props=r,n.attrs=r}function u2(n,e,t,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=n,a=It(s),[l]=n.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const d=n.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,m]=_A(u,e,!0);sn(o,h),m&&a.push(...m)};!t&&e.mixins.length&&e.mixins.forEach(d),n.extends&&d(n.extends),n.mixins&&n.mixins.forEach(d)}if(!r&&!l)return Ht(n)&&i.set(n,qo),qo;if(tt(r))for(let d=0;d-1,m[1]=E<0||f-1||Dt(m,"default"))&&a.push(u)}}}const c=[o,a];return Ht(n)&&i.set(n,c),c}function gS(n){return n[0]!=="$"}function bS(n){const e=n&&n.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:n===null?"null":""}function ES(n,e){return bS(n)===bS(e)}function SS(n,e){return tt(e)?e.findIndex(t=>ES(t,n)):mt(e)&&ES(e,n)?0:-1}const hA=n=>n[0]==="_"||n==="$stable",yb=n=>tt(n)?n.map(Gi):[Gi(n)],p2=(n,e,t)=>{if(e._n)return e;const i=nt((...s)=>yb(e(...s)),t);return i._c=!1,i},fA=(n,e,t)=>{const i=n._ctx;for(const s in n){if(hA(s))continue;const r=n[s];if(mt(r))e[s]=p2(s,r,i);else if(r!=null){const o=yb(r);e[s]=()=>o}}},mA=(n,e)=>{const t=yb(e);n.slots.default=()=>t},_2=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=It(e),Dd(e,"_",t)):fA(e,n.slots={})}else n.slots={},e&&mA(n,e);Dd(n.slots,wu,1)},h2=(n,e,t)=>{const{vnode:i,slots:s}=n;let r=!0,o=Wt;if(i.shapeFlag&32){const a=e._;a?t&&a===1?r=!1:(sn(s,e),!t&&a===1&&delete s._):(r=!e.$stable,fA(e,s)),o=e}else e&&(mA(n,e),o={default:1});if(r)for(const a in s)!hA(a)&&!(a in o)&&delete s[a]};function pg(n,e,t,i,s=!1){if(tt(n)){n.forEach((h,m)=>pg(h,e&&(tt(e)?e[m]:e),t,i,s));return}if(jo(i)&&!s)return;const r=i.shapeFlag&4?Ou(i.component)||i.component.proxy:i.el,o=s?null:r,{i:a,r:l}=n,c=e&&e.r,d=a.refs===Wt?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(rn(c)?(d[c]=null,Dt(u,c)&&(u[c]=null)):pn(c)&&(c.value=null)),mt(l))lr(l,a,12,[o,d]);else{const h=rn(l),m=pn(l);if(h||m){const f=()=>{if(n.f){const E=h?Dt(u,l)?u[l]:d[l]:l.value;s?tt(E)&&lb(E,r):tt(E)?E.includes(r)||E.push(r):h?(d[l]=[r],Dt(u,l)&&(u[l]=d[l])):(l.value=[r],n.k&&(d[n.k]=l.value))}else h?(d[l]=o,Dt(u,l)&&(u[l]=o)):m&&(l.value=o,n.k&&(d[n.k]=o))};o?(f.id=-1,yn(f,t)):f()}}}const yn=VM;function f2(n){return m2(n)}function m2(n,e){const t=ig();t.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:m=Ii,insertStaticContent:f}=n,E=(M,G,q,oe=null,ne=null,ye=null,we=!1,V=null,ce=!!G.dynamicChildren)=>{if(M===G)return;M&&!ir(M,G)&&(oe=X(M),J(M,ne,ye,!0),M=null),G.patchFlag===-2&&(ce=!1,G.dynamicChildren=null);const{type:ie,ref:re,shapeFlag:I}=G;switch(ie){case Au:b(M,G,q,oe);break;case fi:g(M,G,q,oe);break;case Ed:M==null&&S(G,q,oe,we);break;case qe:U(M,G,q,oe,ne,ye,we,V,ce);break;default:I&1?C(M,G,q,oe,ne,ye,we,V,ce):I&6?Y(M,G,q,oe,ne,ye,we,V,ce):(I&64||I&128)&&ie.process(M,G,q,oe,ne,ye,we,V,ce,Z)}re!=null&&ne&&pg(re,M&&M.ref,ye,G||M,!G)},b=(M,G,q,oe)=>{if(M==null)i(G.el=a(G.children),q,oe);else{const ne=G.el=M.el;G.children!==M.children&&c(ne,G.children)}},g=(M,G,q,oe)=>{M==null?i(G.el=l(G.children||""),q,oe):G.el=M.el},S=(M,G,q,oe)=>{[M.el,M.anchor]=f(M.children,G,q,oe,M.el,M.anchor)},y=({el:M,anchor:G},q,oe)=>{let ne;for(;M&&M!==G;)ne=h(M),i(M,q,oe),M=ne;i(G,q,oe)},T=({el:M,anchor:G})=>{let q;for(;M&&M!==G;)q=h(M),s(M),M=q;s(G)},C=(M,G,q,oe,ne,ye,we,V,ce)=>{we=we||G.type==="svg",M==null?x(G,q,oe,ne,ye,we,V,ce):v(M,G,ne,ye,we,V,ce)},x=(M,G,q,oe,ne,ye,we,V)=>{let ce,ie;const{type:re,props:I,shapeFlag:N,transition:H,dirs:de}=M;if(ce=M.el=o(M.type,ye,I&&I.is,I),N&8?d(ce,M.children):N&16&&R(M.children,ce,null,oe,ne,ye&&re!=="foreignObject",we,V),de&&Tr(M,null,oe,"created"),w(ce,M,M.scopeId,we,oe),I){for(const te in I)te!=="value"&&!bd(te)&&r(ce,te,null,I[te],ye,M.children,oe,ne,Ce);"value"in I&&r(ce,"value",null,I.value),(ie=I.onVnodeBeforeMount)&&ai(ie,oe,M)}de&&Tr(M,null,oe,"beforeMount");const Q=(!ne||ne&&!ne.pendingBranch)&&H&&!H.persisted;Q&&H.beforeEnter(ce),i(ce,G,q),((ie=I&&I.onVnodeMounted)||Q||de)&&yn(()=>{ie&&ai(ie,oe,M),Q&&H.enter(ce),de&&Tr(M,null,oe,"mounted")},ne)},w=(M,G,q,oe,ne)=>{if(q&&m(M,q),oe)for(let ye=0;ye{for(let ie=ce;ie{const V=G.el=M.el;let{patchFlag:ce,dynamicChildren:ie,dirs:re}=G;ce|=M.patchFlag&16;const I=M.props||Wt,N=G.props||Wt;let H;q&&xr(q,!1),(H=N.onVnodeBeforeUpdate)&&ai(H,q,G,M),re&&Tr(G,M,q,"beforeUpdate"),q&&xr(q,!0);const de=ne&&G.type!=="foreignObject";if(ie?A(M.dynamicChildren,ie,V,q,oe,de,ye):we||$(M,G,V,null,q,oe,de,ye,!1),ce>0){if(ce&16)P(V,G,I,N,q,oe,ne);else if(ce&2&&I.class!==N.class&&r(V,"class",null,N.class,ne),ce&4&&r(V,"style",I.style,N.style,ne),ce&8){const Q=G.dynamicProps;for(let te=0;te{H&&ai(H,q,G,M),re&&Tr(G,M,q,"updated")},oe)},A=(M,G,q,oe,ne,ye,we)=>{for(let V=0;V{if(q!==oe){if(q!==Wt)for(const V in q)!bd(V)&&!(V in oe)&&r(M,V,q[V],null,we,G.children,ne,ye,Ce);for(const V in oe){if(bd(V))continue;const ce=oe[V],ie=q[V];ce!==ie&&V!=="value"&&r(M,V,ie,ce,we,G.children,ne,ye,Ce)}"value"in oe&&r(M,"value",q.value,oe.value)}},U=(M,G,q,oe,ne,ye,we,V,ce)=>{const ie=G.el=M?M.el:a(""),re=G.anchor=M?M.anchor:a("");let{patchFlag:I,dynamicChildren:N,slotScopeIds:H}=G;H&&(V=V?V.concat(H):H),M==null?(i(ie,q,oe),i(re,q,oe),R(G.children,q,re,ne,ye,we,V,ce)):I>0&&I&64&&N&&M.dynamicChildren?(A(M.dynamicChildren,N,q,ne,ye,we,V),(G.key!=null||ne&&G===ne.subTree)&&gA(M,G,!0)):$(M,G,q,re,ne,ye,we,V,ce)},Y=(M,G,q,oe,ne,ye,we,V,ce)=>{G.slotScopeIds=V,M==null?G.shapeFlag&512?ne.ctx.activate(G,q,oe,we,ce):L(G,q,oe,ne,ye,we,ce):z(M,G,ce)},L=(M,G,q,oe,ne,ye,we)=>{const V=M.component=C2(M,oe,ne);if(xu(M)&&(V.ctx.renderer=Z),R2(V),V.asyncDep){if(ne&&ne.registerDep(V,B),!M.el){const ce=V.subTree=Ie(fi);g(null,ce,G,q)}return}B(V,M,G,q,ne,ye,we)},z=(M,G,q)=>{const oe=G.component=M.component;if(BM(M,G,q))if(oe.asyncDep&&!oe.asyncResolved){k(oe,G,q);return}else oe.next=G,DM(oe.update),oe.update();else G.el=M.el,oe.vnode=G},B=(M,G,q,oe,ne,ye,we)=>{const V=()=>{if(M.isMounted){let{next:re,bu:I,u:N,parent:H,vnode:de}=M,Q=re,te;xr(M,!1),re?(re.el=de.el,k(M,re,we)):re=de,I&&$o(I),(te=re.props&&re.props.onVnodeBeforeUpdate)&&ai(te,H,re,de),xr(M,!0);const Re=lp(M),ve=M.subTree;M.subTree=Re,E(ve,Re,u(ve.el),X(ve),M,ne,ye),re.el=Re.el,Q===null&&GM(M,Re.el),N&&yn(N,ne),(te=re.props&&re.props.onVnodeUpdated)&&yn(()=>ai(te,H,re,de),ne)}else{let re;const{el:I,props:N}=G,{bm:H,m:de,parent:Q}=M,te=jo(G);if(xr(M,!1),H&&$o(H),!te&&(re=N&&N.onVnodeBeforeMount)&&ai(re,Q,G),xr(M,!0),I&&Oe){const Re=()=>{M.subTree=lp(M),Oe(I,M.subTree,M,ne,null)};te?G.type.__asyncLoader().then(()=>!M.isUnmounted&&Re()):Re()}else{const Re=M.subTree=lp(M);E(null,Re,q,oe,M,ne,ye),G.el=Re.el}if(de&&yn(de,ne),!te&&(re=N&&N.onVnodeMounted)){const Re=G;yn(()=>ai(re,Q,Re),ne)}(G.shapeFlag&256||Q&&jo(Q.vnode)&&Q.vnode.shapeFlag&256)&&M.a&&yn(M.a,ne),M.isMounted=!0,G=q=oe=null}},ce=M.effect=new pb(V,()=>bb(ie),M.scope),ie=M.update=()=>ce.run();ie.id=M.uid,xr(M,!0),ie()},k=(M,G,q)=>{G.component=M;const oe=M.vnode.props;M.vnode=G,M.next=null,u2(M,G.props,oe,q),h2(M,G.children,q),Ma(),cS(),Da()},$=(M,G,q,oe,ne,ye,we,V,ce=!1)=>{const ie=M&&M.children,re=M?M.shapeFlag:0,I=G.children,{patchFlag:N,shapeFlag:H}=G;if(N>0){if(N&128){W(ie,I,q,oe,ne,ye,we,V,ce);return}else if(N&256){K(ie,I,q,oe,ne,ye,we,V,ce);return}}H&8?(re&16&&Ce(ie,ne,ye),I!==ie&&d(q,I)):re&16?H&16?W(ie,I,q,oe,ne,ye,we,V,ce):Ce(ie,ne,ye,!0):(re&8&&d(q,""),H&16&&R(I,q,oe,ne,ye,we,V,ce))},K=(M,G,q,oe,ne,ye,we,V,ce)=>{M=M||qo,G=G||qo;const ie=M.length,re=G.length,I=Math.min(ie,re);let N;for(N=0;Nre?Ce(M,ne,ye,!0,!1,I):R(G,q,oe,ne,ye,we,V,ce,I)},W=(M,G,q,oe,ne,ye,we,V,ce)=>{let ie=0;const re=G.length;let I=M.length-1,N=re-1;for(;ie<=I&&ie<=N;){const H=M[ie],de=G[ie]=ce?js(G[ie]):Gi(G[ie]);if(ir(H,de))E(H,de,q,null,ne,ye,we,V,ce);else break;ie++}for(;ie<=I&&ie<=N;){const H=M[I],de=G[N]=ce?js(G[N]):Gi(G[N]);if(ir(H,de))E(H,de,q,null,ne,ye,we,V,ce);else break;I--,N--}if(ie>I){if(ie<=N){const H=N+1,de=HN)for(;ie<=I;)J(M[ie],ne,ye,!0),ie++;else{const H=ie,de=ie,Q=new Map;for(ie=de;ie<=N;ie++){const st=G[ie]=ce?js(G[ie]):Gi(G[ie]);st.key!=null&&Q.set(st.key,ie)}let te,Re=0;const ve=N-de+1;let Le=!1,Ve=0;const it=new Array(ve);for(ie=0;ie=ve){J(st,ne,ye,!0);continue}let Xe;if(st.key!=null)Xe=Q.get(st.key);else for(te=de;te<=N;te++)if(it[te-de]===0&&ir(st,G[te])){Xe=te;break}Xe===void 0?J(st,ne,ye,!0):(it[Xe-de]=ie+1,Xe>=Ve?Ve=Xe:Le=!0,E(st,G[Xe],q,null,ne,ye,we,V,ce),Re++)}const De=Le?g2(it):qo;for(te=De.length-1,ie=ve-1;ie>=0;ie--){const st=de+ie,Xe=G[st],Ge=st+1{const{el:ye,type:we,transition:V,children:ce,shapeFlag:ie}=M;if(ie&6){le(M.component.subTree,G,q,oe);return}if(ie&128){M.suspense.move(G,q,oe);return}if(ie&64){we.move(M,G,q,Z);return}if(we===qe){i(ye,G,q);for(let I=0;IV.enter(ye),ne);else{const{leave:I,delayLeave:N,afterLeave:H}=V,de=()=>i(ye,G,q),Q=()=>{I(ye,()=>{de(),H&&H()})};N?N(ye,de,Q):Q()}else i(ye,G,q)},J=(M,G,q,oe=!1,ne=!1)=>{const{type:ye,props:we,ref:V,children:ce,dynamicChildren:ie,shapeFlag:re,patchFlag:I,dirs:N}=M;if(V!=null&&pg(V,null,q,M,!0),re&256){G.ctx.deactivate(M);return}const H=re&1&&N,de=!jo(M);let Q;if(de&&(Q=we&&we.onVnodeBeforeUnmount)&&ai(Q,G,M),re&6)ge(M.component,q,oe);else{if(re&128){M.suspense.unmount(q,oe);return}H&&Tr(M,null,G,"beforeUnmount"),re&64?M.type.remove(M,G,q,ne,Z,oe):ie&&(ye!==qe||I>0&&I&64)?Ce(ie,G,q,!1,!0):(ye===qe&&I&384||!ne&&re&16)&&Ce(ce,G,q),oe&&ee(M)}(de&&(Q=we&&we.onVnodeUnmounted)||H)&&yn(()=>{Q&&ai(Q,G,M),H&&Tr(M,null,G,"unmounted")},q)},ee=M=>{const{type:G,el:q,anchor:oe,transition:ne}=M;if(G===qe){_e(q,oe);return}if(G===Ed){T(M);return}const ye=()=>{s(q),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(M.shapeFlag&1&&ne&&!ne.persisted){const{leave:we,delayLeave:V}=ne,ce=()=>we(q,ye);V?V(M.el,ye,ce):ce()}else ye()},_e=(M,G)=>{let q;for(;M!==G;)q=h(M),s(M),M=q;s(G)},ge=(M,G,q)=>{const{bum:oe,scope:ne,update:ye,subTree:we,um:V}=M;oe&&$o(oe),ne.stop(),ye&&(ye.active=!1,J(we,M,G,q)),V&&yn(V,G),yn(()=>{M.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},Ce=(M,G,q,oe=!1,ne=!1,ye=0)=>{for(let we=ye;weM.shapeFlag&6?X(M.component.subTree):M.shapeFlag&128?M.suspense.next():h(M.anchor||M.el),ue=(M,G,q)=>{M==null?G._vnode&&J(G._vnode,null,null,!0):E(G._vnode||null,M,G,null,null,null,q),cS(),QR(),G._vnode=M},Z={p:E,um:J,m:le,r:ee,mt:L,mc:R,pc:$,pbc:A,n:X,o:n};let be,Oe;return e&&([be,Oe]=e(Z)),{render:ue,hydrate:be,createApp:c2(ue,be)}}function xr({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function gA(n,e,t=!1){const i=n.children,s=e.children;if(tt(i)&&tt(s))for(let r=0;r>1,n[t[a]]0&&(e[i]=t[r-1]),t[r]=i)}}for(r=t.length,o=t[r-1];r-- >0;)t[r]=o,o=e[o];return t}const b2=n=>n.__isTeleport,qe=Symbol.for("v-fgt"),Au=Symbol.for("v-txt"),fi=Symbol.for("v-cmt"),Ed=Symbol.for("v-stc"),yl=[];let Oi=null;function O(n=!1){yl.push(Oi=n?null:[])}function E2(){yl.pop(),Oi=yl[yl.length-1]||null}let Gl=1;function vS(n){Gl+=n}function bA(n){return n.dynamicChildren=Gl>0?Oi||qo:null,E2(),Gl>0&&Oi&&Oi.push(n),n}function D(n,e,t,i,s,r){return bA(_(n,e,t,i,s,r,!0))}function Nt(n,e,t,i,s){return bA(Ie(n,e,t,i,s,!0))}function Vl(n){return n?n.__v_isVNode===!0:!1}function ir(n,e){return n.type===e.type&&n.key===e.key}const wu="__vInternal",EA=({key:n})=>n??null,Sd=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?rn(n)||pn(n)||mt(n)?{i:Tn,r:n,k:e,f:!!t}:n:null);function _(n,e=null,t=null,i=0,s=null,r=n===qe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&EA(e),ref:e&&Sd(e),scopeId:Tu,slotScopeIds:null,children:t,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:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Tn};return a?(Tb(l,t),r&128&&n.normalize(l)):t&&(l.shapeFlag|=rn(t)?8:16),Gl>0&&!o&&Oi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Oi.push(l),l}const Ie=S2;function S2(n,e=null,t=null,i=0,s=null,r=!1){if((!n||n===aA)&&(n=fi),Vl(n)){const a=As(n,e,!0);return t&&Tb(a,t),Gl>0&&!r&&Oi&&(a.shapeFlag&6?Oi[Oi.indexOf(n)]=a:Oi.push(a)),a.patchFlag|=-2,a}if(O2(n)&&(n=n.__vccOpts),e){e=v2(e);let{class:a,style:l}=e;a&&!rn(a)&&(e.class=ze(a)),Ht(l)&&(qR(l)&&!tt(l)&&(l=sn({},l)),e.style=Zt(l))}const o=rn(n)?1:JR(n)?128:b2(n)?64:Ht(n)?4:mt(n)?2:0;return _(n,e,t,i,s,o,r,!0)}function v2(n){return n?qR(n)||wu in n?sn({},n):n:null}function As(n,e,t=!1){const{props:i,ref:s,patchFlag:r,children:o}=n,a=e?y2(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&EA(a),ref:e&&e.ref?t&&s?tt(s)?s.concat(Sd(e)):[s,Sd(e)]:Sd(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==qe?r===-1?16:r|16:r,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&As(n.ssContent),ssFallback:n.ssFallback&&As(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function je(n=" ",e=0){return Ie(Au,null,n,e)}function Nu(n,e){const t=Ie(Ed,null,n);return t.staticCount=e,t}function j(n="",e=!1){return e?(O(),Nt(fi,null,n)):Ie(fi,null,n)}function Gi(n){return n==null||typeof n=="boolean"?Ie(fi):tt(n)?Ie(qe,null,n.slice()):typeof n=="object"?js(n):Ie(Au,null,String(n))}function js(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:As(n)}function Tb(n,e){let t=0;const{shapeFlag:i}=n;if(e==null)e=null;else if(tt(e))t=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),Tb(n,s()),s._c&&(s._d=!0));return}else{t=32;const s=e._;!s&&!(wu in e)?e._ctx=Tn:s===3&&Tn&&(Tn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else mt(e)?(e={default:e,_ctx:Tn},t=32):(e=String(e),i&64?(t=16,e=[je(e)]):t=8);n.children=e,n.shapeFlag|=t}function y2(...n){const e={};for(let t=0;tbn||Tn;let Cb,mo,yS="__VUE_INSTANCE_SETTERS__";(mo=ig()[yS])||(mo=ig()[yS]=[]),mo.push(n=>bn=n),Cb=n=>{mo.length>1?mo.forEach(e=>e(n)):mo[0](n)};const sa=n=>{Cb(n),n.scope.on()},$r=()=>{bn&&bn.scope.off(),Cb(null)};function SA(n){return n.vnode.shapeFlag&4}let Hl=!1;function R2(n,e=!1){Hl=e;const{props:t,children:i}=n.vnode,s=SA(n);d2(n,t,s,e),_2(n,i);const r=s?A2(n,e):void 0;return Hl=!1,r}function A2(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=nc(new Proxy(n.ctx,n2));const{setup:i}=t;if(i){const s=n.setupContext=i.length>1?N2(n):null;sa(n),Ma();const r=lr(i,n,0,[n.props,s]);if(Da(),$r(),TR(r)){if(r.then($r,$r),e)return r.then(o=>{TS(n,o,e)}).catch(o=>{vu(o,n,0)});n.asyncDep=r}else TS(n,r,e)}else vA(n,e)}function TS(n,e,t){mt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Ht(e)&&(n.setupState=$R(e)),vA(n,t)}let xS;function vA(n,e,t){const i=n.type;if(!n.render){if(!e&&xS&&!i.render){const s=i.template||vb(n).template;if(s){const{isCustomElement:r,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=i,c=sn(sn({isCustomElement:r,delimiters:a},o),l);i.render=xS(s,c)}}n.render=i.render||Ii}sa(n),Ma(),i2(n),Da(),$r()}function w2(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return jn(n,"get","$attrs"),e[t]}}))}function N2(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return w2(n)},slots:n.slots,emit:n.emit,expose:e}}function Ou(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy($R(nc(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in vl)return vl[t](n)},has(e,t){return t in e||t in vl}}))}function _g(n,e=!0){return mt(n)?n.displayName||n.name:n.name||e&&n.__name}function O2(n){return mt(n)&&"__vccOpts"in n}const et=(n,e)=>OM(n,e,Hl);function Rb(n,e,t){const i=arguments.length;return i===2?Ht(e)&&!tt(e)?Vl(e)?Ie(n,null,[e]):Ie(n,e):Ie(n,null,e):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&Vl(t)&&(t=[t]),Ie(n,e,t))}const I2=Symbol.for("v-scx"),M2=()=>Mi(I2),D2="3.3.4",L2="http://www.w3.org/2000/svg",Pr=typeof document<"u"?document:null,CS=Pr&&Pr.createElement("template"),k2={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,i)=>{const s=e?Pr.createElementNS(L2,n):Pr.createElement(n,t?{is:t}:void 0);return n==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:n=>Pr.createTextNode(n),createComment:n=>Pr.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Pr.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,i,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{CS.innerHTML=i?`${n}`:n;const a=CS.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function P2(n,e,t){const i=n._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}function U2(n,e,t){const i=n.style,s=rn(t);if(t&&!s){if(e&&!rn(e))for(const r in e)t[r]==null&&hg(i,r,"");for(const r in t)hg(i,r,t[r])}else{const r=i.display;s?e!==t&&(i.cssText=t):e&&n.removeAttribute("style"),"_vod"in n&&(i.display=r)}}const RS=/\s*!important$/;function hg(n,e,t){if(tt(t))t.forEach(i=>hg(n,e,i));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const i=F2(n,e);RS.test(t)?n.setProperty(ao(i),t.replace(RS,""),"important"):n[i]=t}}const AS=["Webkit","Moz","ms"],_p={};function F2(n,e){const t=_p[e];if(t)return t;let i=Qi(e);if(i!=="filter"&&i in n)return _p[e]=i;i=mu(i);for(let s=0;shp||(q2.then(()=>hp=0),hp=Date.now());function $2(n,e){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;hi(W2(i,t.value),e,5,[i])};return t.value=n,t.attached=Y2(),t}function W2(n,e){if(tt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const OS=/^on[a-z]/,K2=(n,e,t,i,s=!1,r,o,a,l)=>{e==="class"?P2(n,i,s):e==="style"?U2(n,t,i):hu(e)?ab(e)||H2(n,e,t,i,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):j2(n,e,i,s))?G2(n,e,i,r,o,a,l):(e==="true-value"?n._trueValue=i:e==="false-value"&&(n._falseValue=i),B2(n,e,i,s))};function j2(n,e,t,i){return i?!!(e==="innerHTML"||e==="textContent"||e in n&&OS.test(e)&&mt(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA"||OS.test(e)&&rn(t)?!1:e in n}const Bs="transition",Ja="animation",ws=(n,{slots:e})=>Rb(qM,TA(n),e);ws.displayName="Transition";const yA={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},Q2=ws.props=sn({},iA,yA),Cr=(n,e=[])=>{tt(n)?n.forEach(t=>t(...e)):n&&n(...e)},IS=n=>n?tt(n)?n.some(e=>e.length>1):n.length>1:!1;function TA(n){const e={};for(const U in n)U in yA||(e[U]=n[U]);if(n.css===!1)return e;const{name:t="v",type:i,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:m=`${t}-leave-to`}=n,f=X2(s),E=f&&f[0],b=f&&f[1],{onBeforeEnter:g,onEnter:S,onEnterCancelled:y,onLeave:T,onLeaveCancelled:C,onBeforeAppear:x=g,onAppear:w=S,onAppearCancelled:R=y}=e,v=(U,Y,L)=>{Ks(U,Y?d:a),Ks(U,Y?c:o),L&&L()},A=(U,Y)=>{U._isLeaving=!1,Ks(U,u),Ks(U,m),Ks(U,h),Y&&Y()},P=U=>(Y,L)=>{const z=U?w:S,B=()=>v(Y,U,L);Cr(z,[Y,B]),MS(()=>{Ks(Y,U?l:r),ms(Y,U?d:a),IS(z)||DS(Y,i,E,B)})};return sn(e,{onBeforeEnter(U){Cr(g,[U]),ms(U,r),ms(U,o)},onBeforeAppear(U){Cr(x,[U]),ms(U,l),ms(U,c)},onEnter:P(!1),onAppear:P(!0),onLeave(U,Y){U._isLeaving=!0;const L=()=>A(U,Y);ms(U,u),CA(),ms(U,h),MS(()=>{U._isLeaving&&(Ks(U,u),ms(U,m),IS(T)||DS(U,i,b,L))}),Cr(T,[U,L])},onEnterCancelled(U){v(U,!1),Cr(y,[U])},onAppearCancelled(U){v(U,!0),Cr(R,[U])},onLeaveCancelled(U){A(U),Cr(C,[U])}})}function X2(n){if(n==null)return null;if(Ht(n))return[fp(n.enter),fp(n.leave)];{const e=fp(n);return[e,e]}}function fp(n){return kI(n)}function ms(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n._vtc||(n._vtc=new Set)).add(e)}function Ks(n,e){e.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const{_vtc:t}=n;t&&(t.delete(e),t.size||(n._vtc=void 0))}function MS(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let Z2=0;function DS(n,e,t,i){const s=n._endId=++Z2,r=()=>{s===n._endId&&i()};if(t)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=xA(n,e);if(!o)return i();const c=o+"end";let d=0;const u=()=>{n.removeEventListener(c,h),r()},h=m=>{m.target===n&&++d>=l&&u()};setTimeout(()=>{d(t[f]||"").split(", "),s=i(`${Bs}Delay`),r=i(`${Bs}Duration`),o=LS(s,r),a=i(`${Ja}Delay`),l=i(`${Ja}Duration`),c=LS(a,l);let d=null,u=0,h=0;e===Bs?o>0&&(d=Bs,u=o,h=r.length):e===Ja?c>0&&(d=Ja,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?Bs:Ja:null,h=d?d===Bs?r.length:l.length:0);const m=d===Bs&&/\b(transform|all)(,|$)/.test(i(`${Bs}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:m}}function LS(n,e){for(;n.lengthkS(t)+kS(n[i])))}function kS(n){return Number(n.slice(0,-1).replace(",","."))*1e3}function CA(){return document.body.offsetHeight}const RA=new WeakMap,AA=new WeakMap,wA={name:"TransitionGroup",props:sn({},Q2,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=xb(),i=nA();let s,r;return ic(()=>{if(!s.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!iD(s[0].el,t.vnode.el,o))return;s.forEach(eD),s.forEach(tD);const a=s.filter(nD);CA(),a.forEach(l=>{const c=l.el,d=c.style;ms(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c._moveCb=null,Ks(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=It(n),a=TA(o);let l=o.tag||qe;s=r,r=e.default?Eb(e.default()):[];for(let c=0;cdelete n.mode;wA.props;const ys=wA;function eD(n){const e=n.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function tD(n){AA.set(n,n.el.getBoundingClientRect())}function nD(n){const e=RA.get(n),t=AA.get(n),i=e.left-t.left,s=e.top-t.top;if(i||s){const r=n.el.style;return r.transform=r.webkitTransform=`translate(${i}px,${s}px)`,r.transitionDuration="0s",n}}function iD(n,e,t){const i=n.cloneNode();n._vtc&&n._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),t.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(i);const{hasTransform:r}=xA(i);return s.removeChild(i),r}const hr=n=>{const e=n.props["onUpdate:modelValue"]||!1;return tt(e)?t=>$o(e,t):e};function sD(n){n.target.composing=!0}function PS(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Qe={created(n,{modifiers:{lazy:e,trim:t,number:i}},s){n._assign=hr(s);const r=i||s.props&&s.props.type==="number";Es(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),r&&(a=Ld(a)),n._assign(a)}),t&&Es(n,"change",()=>{n.value=n.value.trim()}),e||(Es(n,"compositionstart",sD),Es(n,"compositionend",PS),Es(n,"change",PS))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,modifiers:{lazy:t,trim:i,number:s}},r){if(n._assign=hr(r),n.composing||document.activeElement===n&&n.type!=="range"&&(t||i&&n.value.trim()===e||(s||n.type==="number")&&Ld(n.value)===e))return;const o=e??"";n.value!==o&&(n.value=o)}},Ct={deep:!0,created(n,e,t){n._assign=hr(t),Es(n,"change",()=>{const i=n._modelValue,s=ra(n),r=n.checked,o=n._assign;if(tt(i)){const a=db(i,s),l=a!==-1;if(r&&!l)o(i.concat(s));else if(!r&&l){const c=[...i];c.splice(a,1),o(c)}}else if(Oa(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(NA(n,r))})},mounted:US,beforeUpdate(n,e,t){n._assign=hr(t),US(n,e,t)}};function US(n,{value:e,oldValue:t},i){n._modelValue=e,tt(e)?n.checked=db(e,i.props.value)>-1:Oa(e)?n.checked=e.has(i.props.value):e!==t&&(n.checked=Jr(e,NA(n,!0)))}const rD={created(n,{value:e},t){n.checked=Jr(e,t.props.value),n._assign=hr(t),Es(n,"change",()=>{n._assign(ra(n))})},beforeUpdate(n,{value:e,oldValue:t},i){n._assign=hr(i),e!==t&&(n.checked=Jr(e,i.props.value))}},qn={deep:!0,created(n,{value:e,modifiers:{number:t}},i){const s=Oa(e);Es(n,"change",()=>{const r=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Ld(ra(o)):ra(o));n._assign(n.multiple?s?new Set(r):r:r[0])}),n._assign=hr(i)},mounted(n,{value:e}){FS(n,e)},beforeUpdate(n,e,t){n._assign=hr(t)},updated(n,{value:e}){FS(n,e)}};function FS(n,e){const t=n.multiple;if(!(t&&!tt(e)&&!Oa(e))){for(let i=0,s=n.options.length;i-1:r.selected=e.has(o);else if(Jr(ra(r),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function ra(n){return"_value"in n?n._value:n.value}function NA(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const oD=["ctrl","shift","alt","meta"],aD={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>oD.some(t=>n[`${t}Key`]&&!e.includes(t))},xe=(n,e)=>(t,...i)=>{for(let s=0;st=>{if(!("key"in t))return;const i=ao(t.key);if(e.some(s=>s===i||lD[s]===i))return n(t)},Mt={beforeMount(n,{value:e},{transition:t}){n._vod=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):el(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:i}){!e!=!t&&(i?e?(i.beforeEnter(n),el(n,!0),i.enter(n)):i.leave(n,()=>{el(n,!1)}):el(n,e))},beforeUnmount(n,{value:e}){el(n,e)}};function el(n,e){n.style.display=e?n._vod:"none"}const cD=sn({patchProp:K2},k2);let BS;function dD(){return BS||(BS=f2(cD))}const uD=(...n)=>{const e=dD().createApp(...n),{mount:t}=e;return e.mount=i=>{const s=pD(i);if(!s)return;const r=e._component;!mt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const o=t(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function pD(n){return rn(n)?document.querySelector(n):n}function _D(){return OA().__VUE_DEVTOOLS_GLOBAL_HOOK__}function OA(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const hD=typeof Proxy=="function",fD="devtools-plugin:setup",mD="plugin:settings:set";let go,fg;function gD(){var n;return go!==void 0||(typeof window<"u"&&window.performance?(go=!0,fg=window.performance):typeof global<"u"&&(!((n=global.perf_hooks)===null||n===void 0)&&n.performance)?(go=!0,fg=global.perf_hooks.performance):go=!1),go}function bD(){return gD()?fg.now():Date.now()}class ED{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const i={};if(e.settings)for(const o in e.settings){const a=e.settings[o];i[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return bD()}},t&&t.on(mD,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function SD(n,e){const t=n,i=OA(),s=_D(),r=hD&&t.enableEarlyProxy;if(s&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(fD,n,e);else{const o=r?new ED(t,s):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,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 s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();function ob(n,e){const t=Object.create(null),i=n.split(",");for(let s=0;s!!t[s.toLowerCase()]:s=>!!t[s]}const Wt={},qo=[],Ii=()=>{},wI=()=>!1,NI=/^on[^a-z]/,hu=n=>NI.test(n),ab=n=>n.startsWith("onUpdate:"),sn=Object.assign,lb=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},OI=Object.prototype.hasOwnProperty,Dt=(n,e)=>OI.call(n,e),tt=Array.isArray,Yo=n=>Ia(n)==="[object Map]",Oa=n=>Ia(n)==="[object Set]",eS=n=>Ia(n)==="[object Date]",II=n=>Ia(n)==="[object RegExp]",mt=n=>typeof n=="function",rn=n=>typeof n=="string",Ll=n=>typeof n=="symbol",Ht=n=>n!==null&&typeof n=="object",TR=n=>Ht(n)&&mt(n.then)&&mt(n.catch),xR=Object.prototype.toString,Ia=n=>xR.call(n),MI=n=>Ia(n).slice(8,-1),CR=n=>Ia(n)==="[object Object]",cb=n=>rn(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,bd=ob(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fu=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},DI=/-(\w)/g,Qi=fu(n=>n.replace(DI,(e,t)=>t?t.toUpperCase():"")),LI=/\B([A-Z])/g,ao=fu(n=>n.replace(LI,"-$1").toLowerCase()),mu=fu(n=>n.charAt(0).toUpperCase()+n.slice(1)),ap=fu(n=>n?`on${mu(n)}`:""),kl=(n,e)=>!Object.is(n,e),$o=(n,e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},Ld=n=>{const e=parseFloat(n);return isNaN(e)?n:e},kI=n=>{const e=rn(n)?Number(n):NaN;return isNaN(e)?n:e};let tS;const ig=()=>tS||(tS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(n){if(tt(n)){const e={};for(let t=0;t{if(t){const i=t.split(UI);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function ze(n){let e="";if(rn(n))e=n;else if(tt(n))for(let t=0;tJr(t,e))}const fe=n=>rn(n)?n:n==null?"":tt(n)||Ht(n)&&(n.toString===xR||!mt(n.toString))?JSON.stringify(n,AR,2):String(n),AR=(n,e)=>e&&e.__v_isRef?AR(n,e.value):Yo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[i,s])=>(t[`${i} =>`]=s,t),{})}:Oa(e)?{[`Set(${e.size})`]:[...e.values()]}:Ht(e)&&!tt(e)&&!CR(e)?String(e):e;let ei;class wR{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ei,!e&&ei&&(this.index=(ei.scopes||(ei.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=ei;try{return ei=this,e()}finally{ei=t}}}on(){ei=this}off(){ei=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t{const e=new Set(n);return e.w=0,e.n=0,e},OR=n=>(n.w&_r)>0,IR=n=>(n.n&_r)>0,$I=({deps:n})=>{if(n.length)for(let e=0;e{const{deps:e}=n;if(e.length){let t=0;for(let i=0;i{(d==="length"||d>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":tt(n)?cb(t)&&a.push(o.get("length")):(a.push(o.get(Yr)),Yo(n)&&a.push(o.get(rg)));break;case"delete":tt(n)||(a.push(o.get(Yr)),Yo(n)&&a.push(o.get(rg)));break;case"set":Yo(n)&&a.push(o.get(Yr));break}if(a.length===1)a[0]&&og(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);og(ub(l))}}function og(n,e){const t=tt(n)?n:[...n];for(const i of t)i.computed&&iS(i);for(const i of t)i.computed||iS(i)}function iS(n,e){(n!==Ni||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}function KI(n,e){var t;return(t=kd.get(n))==null?void 0:t.get(e)}const jI=ob("__proto__,__v_isRef,__isVue"),LR=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Ll)),QI=gu(),XI=gu(!1,!0),ZI=gu(!0),JI=gu(!0,!0),sS=eM();function eM(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const i=It(this);for(let r=0,o=this.length;r{n[e]=function(...t){Ma();const i=It(this)[e].apply(this,t);return Da(),i}}),n}function tM(n){const e=It(this);return jn(e,"has",n),e.hasOwnProperty(n)}function gu(n=!1,e=!1){return function(i,s,r){if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&r===(n?e?VR:GR:e?BR:FR).get(i))return i;const o=tt(i);if(!n){if(o&&Dt(sS,s))return Reflect.get(sS,s,r);if(s==="hasOwnProperty")return tM}const a=Reflect.get(i,s,r);return(Ll(s)?LR.has(s):jI(s))||(n||jn(i,"get",s),e)?a:pn(a)?o&&cb(s)?a:a.value:Ht(a)?n?zR(a):Qn(a):a}}const nM=kR(),iM=kR(!0);function kR(n=!1){return function(t,i,s,r){let o=t[i];if(na(o)&&pn(o)&&!pn(s))return!1;if(!n&&(!Pd(s)&&!na(s)&&(o=It(o),s=It(s)),!tt(t)&&pn(o)&&!pn(s)))return o.value=s,!0;const a=tt(t)&&cb(i)?Number(i)n,bu=n=>Reflect.getPrototypeOf(n);function yc(n,e,t=!1,i=!1){n=n.__v_raw;const s=It(n),r=It(e);t||(e!==r&&jn(s,"get",e),jn(s,"get",r));const{has:o}=bu(s),a=i?_b:t?hb:Pl;if(o.call(s,e))return a(n.get(e));if(o.call(s,r))return a(n.get(r));n!==s&&n.get(e)}function Tc(n,e=!1){const t=this.__v_raw,i=It(t),s=It(n);return e||(n!==s&&jn(i,"has",n),jn(i,"has",s)),n===s?t.has(n):t.has(n)||t.has(s)}function xc(n,e=!1){return n=n.__v_raw,!e&&jn(It(n),"iterate",Yr),Reflect.get(n,"size",n)}function rS(n){n=It(n);const e=It(this);return bu(e).has.call(e,n)||(e.add(n),Rs(e,"add",n,n)),this}function oS(n,e){e=It(e);const t=It(this),{has:i,get:s}=bu(t);let r=i.call(t,n);r||(n=It(n),r=i.call(t,n));const o=s.call(t,n);return t.set(n,e),r?kl(e,o)&&Rs(t,"set",n,e):Rs(t,"add",n,e),this}function aS(n){const e=It(this),{has:t,get:i}=bu(e);let s=t.call(e,n);s||(n=It(n),s=t.call(e,n)),i&&i.call(e,n);const r=e.delete(n);return s&&Rs(e,"delete",n,void 0),r}function lS(){const n=It(this),e=n.size!==0,t=n.clear();return e&&Rs(n,"clear",void 0,void 0),t}function Cc(n,e){return function(i,s){const r=this,o=r.__v_raw,a=It(o),l=e?_b:n?hb:Pl;return!n&&jn(a,"iterate",Yr),o.forEach((c,d)=>i.call(s,l(c),l(d),r))}}function Rc(n,e,t){return function(...i){const s=this.__v_raw,r=It(s),o=Yo(r),a=n==="entries"||n===Symbol.iterator&&o,l=n==="keys"&&o,c=s[n](...i),d=t?_b:e?hb:Pl;return!e&&jn(r,"iterate",l?rg:Yr),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Fs(n){return function(...e){return n==="delete"?!1:this}}function cM(){const n={get(r){return yc(this,r)},get size(){return xc(this)},has:Tc,add:rS,set:oS,delete:aS,clear:lS,forEach:Cc(!1,!1)},e={get(r){return yc(this,r,!1,!0)},get size(){return xc(this)},has:Tc,add:rS,set:oS,delete:aS,clear:lS,forEach:Cc(!1,!0)},t={get(r){return yc(this,r,!0)},get size(){return xc(this,!0)},has(r){return Tc.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Cc(!0,!1)},i={get(r){return yc(this,r,!0,!0)},get size(){return xc(this,!0)},has(r){return Tc.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Cc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Rc(r,!1,!1),t[r]=Rc(r,!0,!1),e[r]=Rc(r,!1,!0),i[r]=Rc(r,!0,!0)}),[n,t,e,i]}const[dM,uM,pM,_M]=cM();function Eu(n,e){const t=e?n?_M:pM:n?uM:dM;return(i,s,r)=>s==="__v_isReactive"?!n:s==="__v_isReadonly"?n:s==="__v_raw"?i:Reflect.get(Dt(t,s)&&s in i?t:i,s,r)}const hM={get:Eu(!1,!1)},fM={get:Eu(!1,!0)},mM={get:Eu(!0,!1)},gM={get:Eu(!0,!0)},FR=new WeakMap,BR=new WeakMap,GR=new WeakMap,VR=new WeakMap;function bM(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EM(n){return n.__v_skip||!Object.isExtensible(n)?0:bM(MI(n))}function Qn(n){return na(n)?n:Su(n,!1,PR,hM,FR)}function HR(n){return Su(n,!1,aM,fM,BR)}function zR(n){return Su(n,!0,UR,mM,GR)}function SM(n){return Su(n,!0,lM,gM,VR)}function Su(n,e,t,i,s){if(!Ht(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const r=s.get(n);if(r)return r;const o=EM(n);if(o===0)return n;const a=new Proxy(n,o===2?i:t);return s.set(n,a),a}function Wo(n){return na(n)?Wo(n.__v_raw):!!(n&&n.__v_isReactive)}function na(n){return!!(n&&n.__v_isReadonly)}function Pd(n){return!!(n&&n.__v_isShallow)}function qR(n){return Wo(n)||na(n)}function It(n){const e=n&&n.__v_raw;return e?It(e):n}function nc(n){return Dd(n,"__v_skip",!0),n}const Pl=n=>Ht(n)?Qn(n):n,hb=n=>Ht(n)?zR(n):n;function fb(n){ar&&Ni&&(n=It(n),DR(n.dep||(n.dep=ub())))}function mb(n,e){n=It(n);const t=n.dep;t&&og(t)}function pn(n){return!!(n&&n.__v_isRef===!0)}function dt(n){return YR(n,!1)}function vM(n){return YR(n,!0)}function YR(n,e){return pn(n)?n:new yM(n,e)}class yM{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:It(e),this._value=t?e:Pl(e)}get value(){return fb(this),this._value}set value(e){const t=this.__v_isShallow||Pd(e)||na(e);e=t?e:It(e),kl(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Pl(e),mb(this))}}function vt(n){return pn(n)?n.value:n}const TM={get:(n,e,t)=>vt(Reflect.get(n,e,t)),set:(n,e,t,i)=>{const s=n[e];return pn(s)&&!pn(t)?(s.value=t,!0):Reflect.set(n,e,t,i)}};function $R(n){return Wo(n)?n:new Proxy(n,TM)}class xM{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:i}=e(()=>fb(this),()=>mb(this));this._get=t,this._set=i}get value(){return this._get()}set value(e){this._set(e)}}function CM(n){return new xM(n)}function RM(n){const e=tt(n)?new Array(n.length):{};for(const t in n)e[t]=WR(n,t);return e}class AM{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,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 KI(It(this._object),this._key)}}class wM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ud(n,e,t){return pn(n)?n:mt(n)?new wM(n):Ht(n)&&arguments.length>1?WR(n,e,t):dt(n)}function WR(n,e,t){const i=n[e];return pn(i)?i:new AM(n,e,t)}class NM{constructor(e,t,i,s){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new pb(e,()=>{this._dirty||(this._dirty=!0,mb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=It(this);return fb(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function OM(n,e,t=!1){let i,s;const r=mt(n);return r?(i=n,s=Ii):(i=n.get,s=n.set),new NM(i,s,r||!s,t)}function lr(n,e,t,i){let s;try{s=i?n(...i):n()}catch(r){vu(r,e,t)}return s}function hi(n,e,t,i){if(mt(n)){const r=lr(n,e,t,i);return r&&TR(r)&&r.catch(o=>{vu(o,e,t)}),r}const s=[];for(let r=0;r>>1;Fl(In[i])Hi&&In.splice(e,1)}function LM(n){tt(n)?Ko.push(...n):(!bs||!bs.includes(n,n.allowRecurse?kr+1:kr))&&Ko.push(n),jR()}function cS(n,e=Ul?Hi+1:0){for(;eFl(t)-Fl(i)),kr=0;krn.id==null?1/0:n.id,kM=(n,e)=>{const t=Fl(n)-Fl(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function XR(n){ag=!1,Ul=!0,In.sort(kM);const e=Ii;try{for(Hi=0;Hirn(m)?m.trim():m)),u&&(s=t.map(Ld))}let a,l=i[a=ap(e)]||i[a=ap(Qi(e))];!l&&r&&(l=i[a=ap(ao(e))]),l&&hi(l,n,6,s);const c=i[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,hi(c,n,6,s)}}function ZR(n,e,t=!1){const i=e.emitsCache,s=i.get(n);if(s!==void 0)return s;const r=n.emits;let o={},a=!1;if(!mt(n)){const l=c=>{const d=ZR(c,e,!0);d&&(a=!0,sn(o,d))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!r&&!a?(Ht(n)&&i.set(n,null),null):(tt(r)?r.forEach(l=>o[l]=null):sn(o,r),Ht(n)&&i.set(n,o),o)}function yu(n,e){return!n||!hu(e)?!1:(e=e.slice(2).replace(/Once$/,""),Dt(n,e[0].toLowerCase()+e.slice(1))||Dt(n,ao(e))||Dt(n,e))}let Tn=null,Tu=null;function Fd(n){const e=Tn;return Tn=n,Tu=n&&n.type.__scopeId||null,e}function lo(n){Tu=n}function co(){Tu=null}function nt(n,e=Tn,t){if(!e||n._n)return n;const i=(...s)=>{i._d&&vS(-1);const r=Fd(e);let o;try{o=n(...s)}finally{Fd(r),i._d&&vS(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function lp(n){const{type:e,vnode:t,proxy:i,withProxy:s,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:h,setupState:m,ctx:f,inheritAttrs:E}=n;let b,g;const S=Fd(n);try{if(t.shapeFlag&4){const T=s||i;b=Gi(d.call(T,T,u,r,m,h,f)),g=l}else{const T=e;b=Gi(T.length>1?T(r,{attrs:l,slots:a,emit:c}):T(r,null)),g=e.props?l:UM(l)}}catch(T){yl.length=0,vu(T,n,1),b=Ie(fi)}let y=b;if(g&&E!==!1){const T=Object.keys(g),{shapeFlag:C}=y;T.length&&C&7&&(o&&T.some(ab)&&(g=FM(g,o)),y=As(y,g))}return t.dirs&&(y=As(y),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&(y.transition=t.transition),b=y,Fd(S),b}const UM=n=>{let e;for(const t in n)(t==="class"||t==="style"||hu(t))&&((e||(e={}))[t]=n[t]);return e},FM=(n,e)=>{const t={};for(const i in n)(!ab(i)||!(i.slice(9)in e))&&(t[i]=n[i]);return t};function BM(n,e,t){const{props:i,children:s,component:r}=n,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return i?dS(i,o,c):!!o;if(l&8){const d=e.dynamicProps;for(let u=0;un.__isSuspense;function VM(n,e){e&&e.pendingBranch?tt(n)?e.effects.push(...n):e.effects.push(n):LM(n)}const Ac={};function Bn(n,e,t){return eA(n,e,t)}function eA(n,e,{immediate:t,deep:i,flush:s,onTrack:r,onTrigger:o}=Wt){var a;const l=NR()===((a=bn)==null?void 0:a.scope)?bn:null;let c,d=!1,u=!1;if(pn(n)?(c=()=>n.value,d=Pd(n)):Wo(n)?(c=()=>n,i=!0):tt(n)?(u=!0,d=n.some(T=>Wo(T)||Pd(T)),c=()=>n.map(T=>{if(pn(T))return T.value;if(Wo(T))return Hr(T);if(mt(T))return lr(T,l,2)})):mt(n)?e?c=()=>lr(n,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),hi(n,l,3,[m])}:c=Ii,e&&i){const T=c;c=()=>Hr(T())}let h,m=T=>{h=S.onStop=()=>{lr(T,l,4)}},f;if(Hl)if(m=Ii,e?t&&hi(e,l,3,[c(),u?[]:void 0,m]):c(),s==="sync"){const T=M2();f=T.__watcherHandles||(T.__watcherHandles=[])}else return Ii;let E=u?new Array(n.length).fill(Ac):Ac;const b=()=>{if(S.active)if(e){const T=S.run();(i||d||(u?T.some((C,x)=>kl(C,E[x])):kl(T,E)))&&(h&&h(),hi(e,l,3,[T,E===Ac?void 0:u&&E[0]===Ac?[]:E,m]),E=T)}else S.run()};b.allowRecurse=!!e;let g;s==="sync"?g=b:s==="post"?g=()=>yn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>bb(b));const S=new pb(c,g);e?t?b():E=S.run():s==="post"?yn(S.run.bind(S),l&&l.suspense):S.run();const y=()=>{S.stop(),l&&l.scope&&lb(l.scope.effects,S)};return f&&f.push(y),y}function HM(n,e,t){const i=this.proxy,s=rn(n)?n.includes(".")?tA(i,n):()=>i[n]:n.bind(i,i);let r;mt(e)?r=e:(r=e.handler,t=e);const o=bn;sa(this);const a=eA(s,r.bind(i),t);return o?sa(o):$r(),a}function tA(n,e){const t=e.split(".");return()=>{let i=n;for(let s=0;s{Hr(t,e)});else if(CR(n))for(const t in n)Hr(n[t],e);return n}function Ee(n,e){const t=Tn;if(t===null)return n;const i=Ou(t)||t.proxy,s=n.dirs||(n.dirs=[]);for(let r=0;r{n.isMounted=!0}),La(()=>{n.isUnmounting=!0}),n}const si=[Function,Array],iA={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:si,onEnter:si,onAfterEnter:si,onEnterCancelled:si,onBeforeLeave:si,onLeave:si,onAfterLeave:si,onLeaveCancelled:si,onBeforeAppear:si,onAppear:si,onAfterAppear:si,onAppearCancelled:si},zM={name:"BaseTransition",props:iA,setup(n,{slots:e}){const t=xb(),i=nA();let s;return()=>{const r=e.default&&Eb(e.default(),!0);if(!r||!r.length)return;let o=r[0];if(r.length>1){for(const E of r)if(E.type!==fi){o=E;break}}const a=It(n),{mode:l}=a;if(i.isLeaving)return cp(o);const c=uS(o);if(!c)return cp(o);const d=Bl(c,a,i,t);ia(c,d);const u=t.subTree,h=u&&uS(u);let m=!1;const{getTransitionKey:f}=c.type;if(f){const E=f();s===void 0?s=E:E!==s&&(s=E,m=!0)}if(h&&h.type!==fi&&(!ir(c,h)||m)){const E=Bl(h,a,i,t);if(ia(h,E),l==="out-in")return i.isLeaving=!0,E.afterLeave=()=>{i.isLeaving=!1,t.update.active!==!1&&t.update()},cp(o);l==="in-out"&&c.type!==fi&&(E.delayLeave=(b,g,S)=>{const y=sA(i,h);y[String(h.key)]=h,b._leaveCb=()=>{g(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=S})}return o}}},qM=zM;function sA(n,e){const{leavingVNodes:t}=n;let i=t.get(e.type);return i||(i=Object.create(null),t.set(e.type,i)),i}function Bl(n,e,t,i){const{appear:s,mode:r,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:m,onLeaveCancelled:f,onBeforeAppear:E,onAppear:b,onAfterAppear:g,onAppearCancelled:S}=e,y=String(n.key),T=sA(t,n),C=(R,v)=>{R&&hi(R,i,9,v)},x=(R,v)=>{const A=v[1];C(R,v),tt(R)?R.every(P=>P.length<=1)&&A():R.length<=1&&A()},w={mode:r,persisted:o,beforeEnter(R){let v=a;if(!t.isMounted)if(s)v=E||a;else return;R._leaveCb&&R._leaveCb(!0);const A=T[y];A&&ir(n,A)&&A.el._leaveCb&&A.el._leaveCb(),C(v,[R])},enter(R){let v=l,A=c,P=d;if(!t.isMounted)if(s)v=b||l,A=g||c,P=S||d;else return;let U=!1;const Y=R._enterCb=L=>{U||(U=!0,L?C(P,[R]):C(A,[R]),w.delayedLeave&&w.delayedLeave(),R._enterCb=void 0)};v?x(v,[R,Y]):Y()},leave(R,v){const A=String(n.key);if(R._enterCb&&R._enterCb(!0),t.isUnmounting)return v();C(u,[R]);let P=!1;const U=R._leaveCb=Y=>{P||(P=!0,v(),Y?C(f,[R]):C(m,[R]),R._leaveCb=void 0,T[A]===n&&delete T[A])};T[A]=n,h?x(h,[R,U]):U()},clone(R){return Bl(R,e,t,i)}};return w}function cp(n){if(xu(n))return n=As(n),n.children=null,n}function uS(n){return xu(n)?n.children?n.children[0]:void 0:n}function ia(n,e){n.shapeFlag&6&&n.component?ia(n.component.subTree,e):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function Eb(n,e=!1,t){let i=[],s=0;for(let r=0;r1)for(let r=0;rsn({name:n.name},e,{setup:n}))():n}const jo=n=>!!n.type.__asyncLoader,xu=n=>n.type.__isKeepAlive,YM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:e}){const t=xb(),i=t.ctx;if(!i.renderer)return()=>{const S=e.default&&e.default();return S&&S.length===1?S[0]:S};const s=new Map,r=new Set;let o=null;const a=t.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=i,h=u("div");i.activate=(S,y,T,C,x)=>{const w=S.component;c(S,y,T,0,a),l(w.vnode,S,y,T,w,a,C,S.slotScopeIds,x),yn(()=>{w.isDeactivated=!1,w.a&&$o(w.a);const R=S.props&&S.props.onVnodeMounted;R&&ai(R,w.parent,S)},a)},i.deactivate=S=>{const y=S.component;c(S,h,null,1,a),yn(()=>{y.da&&$o(y.da);const T=S.props&&S.props.onVnodeUnmounted;T&&ai(T,y.parent,S),y.isDeactivated=!0},a)};function m(S){dp(S),d(S,t,a,!0)}function f(S){s.forEach((y,T)=>{const C=_g(y.type);C&&(!S||!S(C))&&E(T)})}function E(S){const y=s.get(S);!o||!ir(y,o)?m(y):o&&dp(o),s.delete(S),r.delete(S)}Bn(()=>[n.include,n.exclude],([S,y])=>{S&&f(T=>ml(S,T)),y&&f(T=>!ml(y,T))},{flush:"post",deep:!0});let b=null;const g=()=>{b!=null&&s.set(b,up(t.subTree))};return Ms(g),ic(g),La(()=>{s.forEach(S=>{const{subTree:y,suspense:T}=t,C=up(y);if(S.type===C.type&&S.key===C.key){dp(C);const x=C.component.da;x&&yn(x,T);return}m(S)})}),()=>{if(b=null,!e.default)return null;const S=e.default(),y=S[0];if(S.length>1)return o=null,S;if(!Vl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let T=up(y);const C=T.type,x=_g(jo(T)?T.type.__asyncResolved||{}:C),{include:w,exclude:R,max:v}=n;if(w&&(!x||!ml(w,x))||R&&x&&ml(R,x))return o=T,y;const A=T.key==null?C:T.key,P=s.get(A);return T.el&&(T=As(T),y.shapeFlag&128&&(y.ssContent=T)),b=A,P?(T.el=P.el,T.component=P.component,T.transition&&ia(T,T.transition),T.shapeFlag|=512,r.delete(A),r.add(A)):(r.add(A),v&&r.size>parseInt(v,10)&&E(r.values().next().value)),T.shapeFlag|=256,o=T,JR(y.type)?y:T}}},$M=YM;function ml(n,e){return tt(n)?n.some(t=>ml(t,e)):rn(n)?n.split(",").includes(e):II(n)?n.test(e):!1}function WM(n,e){rA(n,"a",e)}function KM(n,e){rA(n,"da",e)}function rA(n,e,t=bn){const i=n.__wdc||(n.__wdc=()=>{let s=t;for(;s;){if(s.isDeactivated)return;s=s.parent}return n()});if(Cu(e,i,t),t){let s=t.parent;for(;s&&s.parent;)xu(s.parent.vnode)&&jM(i,e,t,s),s=s.parent}}function jM(n,e,t,i){const s=Cu(e,n,i,!0);oA(()=>{lb(i[e],s)},t)}function dp(n){n.shapeFlag&=-257,n.shapeFlag&=-513}function up(n){return n.shapeFlag&128?n.ssContent:n}function Cu(n,e,t=bn,i=!1){if(t){const s=t[n]||(t[n]=[]),r=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Ma(),sa(t);const a=hi(e,t,n,o);return $r(),Da(),a});return i?s.unshift(r):s.push(r),r}}const Is=n=>(e,t=bn)=>(!Hl||n==="sp")&&Cu(n,(...i)=>e(...i),t),QM=Is("bm"),Ms=Is("m"),XM=Is("bu"),ic=Is("u"),La=Is("bum"),oA=Is("um"),ZM=Is("sp"),JM=Is("rtg"),e2=Is("rtc");function t2(n,e=bn){Cu("ec",n,e)}const Sb="components";function ut(n,e){return lA(Sb,n,!0,e)||n}const aA=Symbol.for("v-ndc");function Ru(n){return rn(n)?lA(Sb,n,!1)||n:n||aA}function lA(n,e,t=!0,i=!1){const s=Tn||bn;if(s){const r=s.type;if(n===Sb){const a=_g(r,!1);if(a&&(a===e||a===Qi(e)||a===mu(Qi(e))))return r}const o=pS(s[n]||r[n],e)||pS(s.appContext[n],e);return!o&&i?r:o}}function pS(n,e){return n&&(n[e]||n[Qi(e)]||n[mu(Qi(e))])}function lt(n,e,t,i){let s;const r=t&&t[i];if(tt(n)||rn(n)){s=new Array(n.length);for(let o=0,a=n.length;oe(o,a,void 0,r&&r[a]));else{const o=Object.keys(n);s=new Array(o.length);for(let a=0,l=o.length;aVl(e)?!(e.type===fi||e.type===qe&&!cA(e.children)):!0)?n:null}const lg=n=>n?SA(n)?Ou(n)||n.proxy:lg(n.parent):null,vl=sn(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>lg(n.parent),$root:n=>lg(n.root),$emit:n=>n.emit,$options:n=>vb(n),$forceUpdate:n=>n.f||(n.f=()=>bb(n.update)),$nextTick:n=>n.n||(n.n=Fe.bind(n.proxy)),$watch:n=>HM.bind(n)}),pp=(n,e)=>n!==Wt&&!n.__isScriptSetup&&Dt(n,e),n2={get({_:n},e){const{ctx:t,setupState:i,data:s,props:r,accessCache:o,type:a,appContext:l}=n;let c;if(e[0]!=="$"){const m=o[e];if(m!==void 0)switch(m){case 1:return i[e];case 2:return s[e];case 4:return t[e];case 3:return r[e]}else{if(pp(i,e))return o[e]=1,i[e];if(s!==Wt&&Dt(s,e))return o[e]=2,s[e];if((c=n.propsOptions[0])&&Dt(c,e))return o[e]=3,r[e];if(t!==Wt&&Dt(t,e))return o[e]=4,t[e];cg&&(o[e]=0)}}const d=vl[e];let u,h;if(d)return e==="$attrs"&&jn(n,"get",e),d(n);if((u=a.__cssModules)&&(u=u[e]))return u;if(t!==Wt&&Dt(t,e))return o[e]=4,t[e];if(h=l.config.globalProperties,Dt(h,e))return h[e]},set({_:n},e,t){const{data:i,setupState:s,ctx:r}=n;return pp(s,e)?(s[e]=t,!0):i!==Wt&&Dt(i,e)?(i[e]=t,!0):Dt(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(r[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:i,appContext:s,propsOptions:r}},o){let a;return!!t[o]||n!==Wt&&Dt(n,o)||pp(e,o)||(a=r[0])&&Dt(a,o)||Dt(i,o)||Dt(vl,o)||Dt(s.config.globalProperties,o)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Dt(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function _S(n){return tt(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let cg=!0;function i2(n){const e=vb(n),t=n.proxy,i=n.ctx;cg=!1,e.beforeCreate&&hS(e.beforeCreate,n,"bc");const{data:s,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:m,updated:f,activated:E,deactivated:b,beforeDestroy:g,beforeUnmount:S,destroyed:y,unmounted:T,render:C,renderTracked:x,renderTriggered:w,errorCaptured:R,serverPrefetch:v,expose:A,inheritAttrs:P,components:U,directives:Y,filters:L}=e;if(c&&s2(c,i,null),o)for(const k in o){const $=o[k];mt($)&&(i[k]=$.bind(t))}if(s){const k=s.call(t,t);Ht(k)&&(n.data=Qn(k))}if(cg=!0,r)for(const k in r){const $=r[k],K=mt($)?$.bind(t,t):mt($.get)?$.get.bind(t,t):Ii,W=!mt($)&&mt($.set)?$.set.bind(t):Ii,le=et({get:K,set:W});Object.defineProperty(i,k,{enumerable:!0,configurable:!0,get:()=>le.value,set:J=>le.value=J})}if(a)for(const k in a)dA(a[k],i,t,k);if(l){const k=mt(l)?l.call(t):l;Reflect.ownKeys(k).forEach($=>{Qo($,k[$])})}d&&hS(d,n,"c");function B(k,$){tt($)?$.forEach(K=>k(K.bind(t))):$&&k($.bind(t))}if(B(QM,u),B(Ms,h),B(XM,m),B(ic,f),B(WM,E),B(KM,b),B(t2,R),B(e2,x),B(JM,w),B(La,S),B(oA,T),B(ZM,v),tt(A))if(A.length){const k=n.exposed||(n.exposed={});A.forEach($=>{Object.defineProperty(k,$,{get:()=>t[$],set:K=>t[$]=K})})}else n.exposed||(n.exposed={});C&&n.render===Ii&&(n.render=C),P!=null&&(n.inheritAttrs=P),U&&(n.components=U),Y&&(n.directives=Y)}function s2(n,e,t=Ii){tt(n)&&(n=dg(n));for(const i in n){const s=n[i];let r;Ht(s)?"default"in s?r=Mi(s.from||i,s.default,!0):r=Mi(s.from||i):r=Mi(s),pn(r)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[i]=r}}function hS(n,e,t){hi(tt(n)?n.map(i=>i.bind(e.proxy)):n.bind(e.proxy),e,t)}function dA(n,e,t,i){const s=i.includes(".")?tA(t,i):()=>t[i];if(rn(n)){const r=e[n];mt(r)&&Bn(s,r)}else if(mt(n))Bn(s,n.bind(t));else if(Ht(n))if(tt(n))n.forEach(r=>dA(r,e,t,i));else{const r=mt(n.handler)?n.handler.bind(t):e[n.handler];mt(r)&&Bn(s,r,n)}}function vb(n){const e=n.type,{mixins:t,extends:i}=e,{mixins:s,optionsCache:r,config:{optionMergeStrategies:o}}=n.appContext,a=r.get(e);let l;return a?l=a:!s.length&&!t&&!i?l=e:(l={},s.length&&s.forEach(c=>Bd(l,c,o,!0)),Bd(l,e,o)),Ht(e)&&r.set(e,l),l}function Bd(n,e,t,i=!1){const{mixins:s,extends:r}=e;r&&Bd(n,r,t,!0),s&&s.forEach(o=>Bd(n,o,t,!0));for(const o in e)if(!(i&&o==="expose")){const a=r2[o]||t&&t[o];n[o]=a?a(n[o],e[o]):e[o]}return n}const r2={data:fS,props:mS,emits:mS,methods:gl,computed:gl,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,beforeUnmount:kn,destroyed:kn,unmounted:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:gl,directives:gl,watch:a2,provide:fS,inject:o2};function fS(n,e){return e?n?function(){return sn(mt(n)?n.call(this,this):n,mt(e)?e.call(this,this):e)}:e:n}function o2(n,e){return gl(dg(n),dg(e))}function dg(n){if(tt(n)){const e={};for(let t=0;t1)return t&&mt(e)?e.call(i&&i.proxy):e}}function d2(n,e,t,i=!1){const s={},r={};Dd(r,wu,1),n.propsDefaults=Object.create(null),pA(n,e,s,r);for(const o in n.propsOptions[0])o in s||(s[o]=void 0);t?n.props=i?s:HR(s):n.type.props?n.props=s:n.props=r,n.attrs=r}function u2(n,e,t,i){const{props:s,attrs:r,vnode:{patchFlag:o}}=n,a=It(s),[l]=n.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const d=n.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,m]=_A(u,e,!0);sn(o,h),m&&a.push(...m)};!t&&e.mixins.length&&e.mixins.forEach(d),n.extends&&d(n.extends),n.mixins&&n.mixins.forEach(d)}if(!r&&!l)return Ht(n)&&i.set(n,qo),qo;if(tt(r))for(let d=0;d-1,m[1]=E<0||f-1||Dt(m,"default"))&&a.push(u)}}}const c=[o,a];return Ht(n)&&i.set(n,c),c}function gS(n){return n[0]!=="$"}function bS(n){const e=n&&n.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:n===null?"null":""}function ES(n,e){return bS(n)===bS(e)}function SS(n,e){return tt(e)?e.findIndex(t=>ES(t,n)):mt(e)&&ES(e,n)?0:-1}const hA=n=>n[0]==="_"||n==="$stable",yb=n=>tt(n)?n.map(Gi):[Gi(n)],p2=(n,e,t)=>{if(e._n)return e;const i=nt((...s)=>yb(e(...s)),t);return i._c=!1,i},fA=(n,e,t)=>{const i=n._ctx;for(const s in n){if(hA(s))continue;const r=n[s];if(mt(r))e[s]=p2(s,r,i);else if(r!=null){const o=yb(r);e[s]=()=>o}}},mA=(n,e)=>{const t=yb(e);n.slots.default=()=>t},_2=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=It(e),Dd(e,"_",t)):fA(e,n.slots={})}else n.slots={},e&&mA(n,e);Dd(n.slots,wu,1)},h2=(n,e,t)=>{const{vnode:i,slots:s}=n;let r=!0,o=Wt;if(i.shapeFlag&32){const a=e._;a?t&&a===1?r=!1:(sn(s,e),!t&&a===1&&delete s._):(r=!e.$stable,fA(e,s)),o=e}else e&&(mA(n,e),o={default:1});if(r)for(const a in s)!hA(a)&&!(a in o)&&delete s[a]};function pg(n,e,t,i,s=!1){if(tt(n)){n.forEach((h,m)=>pg(h,e&&(tt(e)?e[m]:e),t,i,s));return}if(jo(i)&&!s)return;const r=i.shapeFlag&4?Ou(i.component)||i.component.proxy:i.el,o=s?null:r,{i:a,r:l}=n,c=e&&e.r,d=a.refs===Wt?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(rn(c)?(d[c]=null,Dt(u,c)&&(u[c]=null)):pn(c)&&(c.value=null)),mt(l))lr(l,a,12,[o,d]);else{const h=rn(l),m=pn(l);if(h||m){const f=()=>{if(n.f){const E=h?Dt(u,l)?u[l]:d[l]:l.value;s?tt(E)&&lb(E,r):tt(E)?E.includes(r)||E.push(r):h?(d[l]=[r],Dt(u,l)&&(u[l]=d[l])):(l.value=[r],n.k&&(d[n.k]=l.value))}else h?(d[l]=o,Dt(u,l)&&(u[l]=o)):m&&(l.value=o,n.k&&(d[n.k]=o))};o?(f.id=-1,yn(f,t)):f()}}}const yn=VM;function f2(n){return m2(n)}function m2(n,e){const t=ig();t.__VUE__=!0;const{insert:i,remove:s,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:m=Ii,insertStaticContent:f}=n,E=(M,G,q,oe=null,ne=null,ye=null,we=!1,V=null,ce=!!G.dynamicChildren)=>{if(M===G)return;M&&!ir(M,G)&&(oe=X(M),J(M,ne,ye,!0),M=null),G.patchFlag===-2&&(ce=!1,G.dynamicChildren=null);const{type:ie,ref:re,shapeFlag:I}=G;switch(ie){case Au:b(M,G,q,oe);break;case fi:g(M,G,q,oe);break;case Ed:M==null&&S(G,q,oe,we);break;case qe:U(M,G,q,oe,ne,ye,we,V,ce);break;default:I&1?C(M,G,q,oe,ne,ye,we,V,ce):I&6?Y(M,G,q,oe,ne,ye,we,V,ce):(I&64||I&128)&&ie.process(M,G,q,oe,ne,ye,we,V,ce,Z)}re!=null&&ne&&pg(re,M&&M.ref,ye,G||M,!G)},b=(M,G,q,oe)=>{if(M==null)i(G.el=a(G.children),q,oe);else{const ne=G.el=M.el;G.children!==M.children&&c(ne,G.children)}},g=(M,G,q,oe)=>{M==null?i(G.el=l(G.children||""),q,oe):G.el=M.el},S=(M,G,q,oe)=>{[M.el,M.anchor]=f(M.children,G,q,oe,M.el,M.anchor)},y=({el:M,anchor:G},q,oe)=>{let ne;for(;M&&M!==G;)ne=h(M),i(M,q,oe),M=ne;i(G,q,oe)},T=({el:M,anchor:G})=>{let q;for(;M&&M!==G;)q=h(M),s(M),M=q;s(G)},C=(M,G,q,oe,ne,ye,we,V,ce)=>{we=we||G.type==="svg",M==null?x(G,q,oe,ne,ye,we,V,ce):v(M,G,ne,ye,we,V,ce)},x=(M,G,q,oe,ne,ye,we,V)=>{let ce,ie;const{type:re,props:I,shapeFlag:N,transition:H,dirs:de}=M;if(ce=M.el=o(M.type,ye,I&&I.is,I),N&8?d(ce,M.children):N&16&&R(M.children,ce,null,oe,ne,ye&&re!=="foreignObject",we,V),de&&Tr(M,null,oe,"created"),w(ce,M,M.scopeId,we,oe),I){for(const te in I)te!=="value"&&!bd(te)&&r(ce,te,null,I[te],ye,M.children,oe,ne,Ce);"value"in I&&r(ce,"value",null,I.value),(ie=I.onVnodeBeforeMount)&&ai(ie,oe,M)}de&&Tr(M,null,oe,"beforeMount");const Q=(!ne||ne&&!ne.pendingBranch)&&H&&!H.persisted;Q&&H.beforeEnter(ce),i(ce,G,q),((ie=I&&I.onVnodeMounted)||Q||de)&&yn(()=>{ie&&ai(ie,oe,M),Q&&H.enter(ce),de&&Tr(M,null,oe,"mounted")},ne)},w=(M,G,q,oe,ne)=>{if(q&&m(M,q),oe)for(let ye=0;ye{for(let ie=ce;ie{const V=G.el=M.el;let{patchFlag:ce,dynamicChildren:ie,dirs:re}=G;ce|=M.patchFlag&16;const I=M.props||Wt,N=G.props||Wt;let H;q&&xr(q,!1),(H=N.onVnodeBeforeUpdate)&&ai(H,q,G,M),re&&Tr(G,M,q,"beforeUpdate"),q&&xr(q,!0);const de=ne&&G.type!=="foreignObject";if(ie?A(M.dynamicChildren,ie,V,q,oe,de,ye):we||$(M,G,V,null,q,oe,de,ye,!1),ce>0){if(ce&16)P(V,G,I,N,q,oe,ne);else if(ce&2&&I.class!==N.class&&r(V,"class",null,N.class,ne),ce&4&&r(V,"style",I.style,N.style,ne),ce&8){const Q=G.dynamicProps;for(let te=0;te{H&&ai(H,q,G,M),re&&Tr(G,M,q,"updated")},oe)},A=(M,G,q,oe,ne,ye,we)=>{for(let V=0;V{if(q!==oe){if(q!==Wt)for(const V in q)!bd(V)&&!(V in oe)&&r(M,V,q[V],null,we,G.children,ne,ye,Ce);for(const V in oe){if(bd(V))continue;const ce=oe[V],ie=q[V];ce!==ie&&V!=="value"&&r(M,V,ie,ce,we,G.children,ne,ye,Ce)}"value"in oe&&r(M,"value",q.value,oe.value)}},U=(M,G,q,oe,ne,ye,we,V,ce)=>{const ie=G.el=M?M.el:a(""),re=G.anchor=M?M.anchor:a("");let{patchFlag:I,dynamicChildren:N,slotScopeIds:H}=G;H&&(V=V?V.concat(H):H),M==null?(i(ie,q,oe),i(re,q,oe),R(G.children,q,re,ne,ye,we,V,ce)):I>0&&I&64&&N&&M.dynamicChildren?(A(M.dynamicChildren,N,q,ne,ye,we,V),(G.key!=null||ne&&G===ne.subTree)&&gA(M,G,!0)):$(M,G,q,re,ne,ye,we,V,ce)},Y=(M,G,q,oe,ne,ye,we,V,ce)=>{G.slotScopeIds=V,M==null?G.shapeFlag&512?ne.ctx.activate(G,q,oe,we,ce):L(G,q,oe,ne,ye,we,ce):z(M,G,ce)},L=(M,G,q,oe,ne,ye,we)=>{const V=M.component=C2(M,oe,ne);if(xu(M)&&(V.ctx.renderer=Z),R2(V),V.asyncDep){if(ne&&ne.registerDep(V,B),!M.el){const ce=V.subTree=Ie(fi);g(null,ce,G,q)}return}B(V,M,G,q,ne,ye,we)},z=(M,G,q)=>{const oe=G.component=M.component;if(BM(M,G,q))if(oe.asyncDep&&!oe.asyncResolved){k(oe,G,q);return}else oe.next=G,DM(oe.update),oe.update();else G.el=M.el,oe.vnode=G},B=(M,G,q,oe,ne,ye,we)=>{const V=()=>{if(M.isMounted){let{next:re,bu:I,u:N,parent:H,vnode:de}=M,Q=re,te;xr(M,!1),re?(re.el=de.el,k(M,re,we)):re=de,I&&$o(I),(te=re.props&&re.props.onVnodeBeforeUpdate)&&ai(te,H,re,de),xr(M,!0);const Re=lp(M),ve=M.subTree;M.subTree=Re,E(ve,Re,u(ve.el),X(ve),M,ne,ye),re.el=Re.el,Q===null&&GM(M,Re.el),N&&yn(N,ne),(te=re.props&&re.props.onVnodeUpdated)&&yn(()=>ai(te,H,re,de),ne)}else{let re;const{el:I,props:N}=G,{bm:H,m:de,parent:Q}=M,te=jo(G);if(xr(M,!1),H&&$o(H),!te&&(re=N&&N.onVnodeBeforeMount)&&ai(re,Q,G),xr(M,!0),I&&Oe){const Re=()=>{M.subTree=lp(M),Oe(I,M.subTree,M,ne,null)};te?G.type.__asyncLoader().then(()=>!M.isUnmounted&&Re()):Re()}else{const Re=M.subTree=lp(M);E(null,Re,q,oe,M,ne,ye),G.el=Re.el}if(de&&yn(de,ne),!te&&(re=N&&N.onVnodeMounted)){const Re=G;yn(()=>ai(re,Q,Re),ne)}(G.shapeFlag&256||Q&&jo(Q.vnode)&&Q.vnode.shapeFlag&256)&&M.a&&yn(M.a,ne),M.isMounted=!0,G=q=oe=null}},ce=M.effect=new pb(V,()=>bb(ie),M.scope),ie=M.update=()=>ce.run();ie.id=M.uid,xr(M,!0),ie()},k=(M,G,q)=>{G.component=M;const oe=M.vnode.props;M.vnode=G,M.next=null,u2(M,G.props,oe,q),h2(M,G.children,q),Ma(),cS(),Da()},$=(M,G,q,oe,ne,ye,we,V,ce=!1)=>{const ie=M&&M.children,re=M?M.shapeFlag:0,I=G.children,{patchFlag:N,shapeFlag:H}=G;if(N>0){if(N&128){W(ie,I,q,oe,ne,ye,we,V,ce);return}else if(N&256){K(ie,I,q,oe,ne,ye,we,V,ce);return}}H&8?(re&16&&Ce(ie,ne,ye),I!==ie&&d(q,I)):re&16?H&16?W(ie,I,q,oe,ne,ye,we,V,ce):Ce(ie,ne,ye,!0):(re&8&&d(q,""),H&16&&R(I,q,oe,ne,ye,we,V,ce))},K=(M,G,q,oe,ne,ye,we,V,ce)=>{M=M||qo,G=G||qo;const ie=M.length,re=G.length,I=Math.min(ie,re);let N;for(N=0;Nre?Ce(M,ne,ye,!0,!1,I):R(G,q,oe,ne,ye,we,V,ce,I)},W=(M,G,q,oe,ne,ye,we,V,ce)=>{let ie=0;const re=G.length;let I=M.length-1,N=re-1;for(;ie<=I&&ie<=N;){const H=M[ie],de=G[ie]=ce?js(G[ie]):Gi(G[ie]);if(ir(H,de))E(H,de,q,null,ne,ye,we,V,ce);else break;ie++}for(;ie<=I&&ie<=N;){const H=M[I],de=G[N]=ce?js(G[N]):Gi(G[N]);if(ir(H,de))E(H,de,q,null,ne,ye,we,V,ce);else break;I--,N--}if(ie>I){if(ie<=N){const H=N+1,de=HN)for(;ie<=I;)J(M[ie],ne,ye,!0),ie++;else{const H=ie,de=ie,Q=new Map;for(ie=de;ie<=N;ie++){const st=G[ie]=ce?js(G[ie]):Gi(G[ie]);st.key!=null&&Q.set(st.key,ie)}let te,Re=0;const ve=N-de+1;let Le=!1,Ve=0;const it=new Array(ve);for(ie=0;ie=ve){J(st,ne,ye,!0);continue}let Xe;if(st.key!=null)Xe=Q.get(st.key);else for(te=de;te<=N;te++)if(it[te-de]===0&&ir(st,G[te])){Xe=te;break}Xe===void 0?J(st,ne,ye,!0):(it[Xe-de]=ie+1,Xe>=Ve?Ve=Xe:Le=!0,E(st,G[Xe],q,null,ne,ye,we,V,ce),Re++)}const De=Le?g2(it):qo;for(te=De.length-1,ie=ve-1;ie>=0;ie--){const st=de+ie,Xe=G[st],Ge=st+1{const{el:ye,type:we,transition:V,children:ce,shapeFlag:ie}=M;if(ie&6){le(M.component.subTree,G,q,oe);return}if(ie&128){M.suspense.move(G,q,oe);return}if(ie&64){we.move(M,G,q,Z);return}if(we===qe){i(ye,G,q);for(let I=0;IV.enter(ye),ne);else{const{leave:I,delayLeave:N,afterLeave:H}=V,de=()=>i(ye,G,q),Q=()=>{I(ye,()=>{de(),H&&H()})};N?N(ye,de,Q):Q()}else i(ye,G,q)},J=(M,G,q,oe=!1,ne=!1)=>{const{type:ye,props:we,ref:V,children:ce,dynamicChildren:ie,shapeFlag:re,patchFlag:I,dirs:N}=M;if(V!=null&&pg(V,null,q,M,!0),re&256){G.ctx.deactivate(M);return}const H=re&1&&N,de=!jo(M);let Q;if(de&&(Q=we&&we.onVnodeBeforeUnmount)&&ai(Q,G,M),re&6)ge(M.component,q,oe);else{if(re&128){M.suspense.unmount(q,oe);return}H&&Tr(M,null,G,"beforeUnmount"),re&64?M.type.remove(M,G,q,ne,Z,oe):ie&&(ye!==qe||I>0&&I&64)?Ce(ie,G,q,!1,!0):(ye===qe&&I&384||!ne&&re&16)&&Ce(ce,G,q),oe&&ee(M)}(de&&(Q=we&&we.onVnodeUnmounted)||H)&&yn(()=>{Q&&ai(Q,G,M),H&&Tr(M,null,G,"unmounted")},q)},ee=M=>{const{type:G,el:q,anchor:oe,transition:ne}=M;if(G===qe){_e(q,oe);return}if(G===Ed){T(M);return}const ye=()=>{s(q),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(M.shapeFlag&1&&ne&&!ne.persisted){const{leave:we,delayLeave:V}=ne,ce=()=>we(q,ye);V?V(M.el,ye,ce):ce()}else ye()},_e=(M,G)=>{let q;for(;M!==G;)q=h(M),s(M),M=q;s(G)},ge=(M,G,q)=>{const{bum:oe,scope:ne,update:ye,subTree:we,um:V}=M;oe&&$o(oe),ne.stop(),ye&&(ye.active=!1,J(we,M,G,q)),V&&yn(V,G),yn(()=>{M.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},Ce=(M,G,q,oe=!1,ne=!1,ye=0)=>{for(let we=ye;weM.shapeFlag&6?X(M.component.subTree):M.shapeFlag&128?M.suspense.next():h(M.anchor||M.el),ue=(M,G,q)=>{M==null?G._vnode&&J(G._vnode,null,null,!0):E(G._vnode||null,M,G,null,null,null,q),cS(),QR(),G._vnode=M},Z={p:E,um:J,m:le,r:ee,mt:L,mc:R,pc:$,pbc:A,n:X,o:n};let be,Oe;return e&&([be,Oe]=e(Z)),{render:ue,hydrate:be,createApp:c2(ue,be)}}function xr({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function gA(n,e,t=!1){const i=n.children,s=e.children;if(tt(i)&&tt(s))for(let r=0;r>1,n[t[a]]0&&(e[i]=t[r-1]),t[r]=i)}}for(r=t.length,o=t[r-1];r-- >0;)t[r]=o,o=e[o];return t}const b2=n=>n.__isTeleport,qe=Symbol.for("v-fgt"),Au=Symbol.for("v-txt"),fi=Symbol.for("v-cmt"),Ed=Symbol.for("v-stc"),yl=[];let Oi=null;function O(n=!1){yl.push(Oi=n?null:[])}function E2(){yl.pop(),Oi=yl[yl.length-1]||null}let Gl=1;function vS(n){Gl+=n}function bA(n){return n.dynamicChildren=Gl>0?Oi||qo:null,E2(),Gl>0&&Oi&&Oi.push(n),n}function D(n,e,t,i,s,r){return bA(_(n,e,t,i,s,r,!0))}function Nt(n,e,t,i,s){return bA(Ie(n,e,t,i,s,!0))}function Vl(n){return n?n.__v_isVNode===!0:!1}function ir(n,e){return n.type===e.type&&n.key===e.key}const wu="__vInternal",EA=({key:n})=>n??null,Sd=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?rn(n)||pn(n)||mt(n)?{i:Tn,r:n,k:e,f:!!t}:n:null);function _(n,e=null,t=null,i=0,s=null,r=n===qe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&EA(e),ref:e&&Sd(e),scopeId:Tu,slotScopeIds:null,children:t,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:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Tn};return a?(Tb(l,t),r&128&&n.normalize(l)):t&&(l.shapeFlag|=rn(t)?8:16),Gl>0&&!o&&Oi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Oi.push(l),l}const Ie=S2;function S2(n,e=null,t=null,i=0,s=null,r=!1){if((!n||n===aA)&&(n=fi),Vl(n)){const a=As(n,e,!0);return t&&Tb(a,t),Gl>0&&!r&&Oi&&(a.shapeFlag&6?Oi[Oi.indexOf(n)]=a:Oi.push(a)),a.patchFlag|=-2,a}if(O2(n)&&(n=n.__vccOpts),e){e=v2(e);let{class:a,style:l}=e;a&&!rn(a)&&(e.class=ze(a)),Ht(l)&&(qR(l)&&!tt(l)&&(l=sn({},l)),e.style=Zt(l))}const o=rn(n)?1:JR(n)?128:b2(n)?64:Ht(n)?4:mt(n)?2:0;return _(n,e,t,i,s,o,r,!0)}function v2(n){return n?qR(n)||wu in n?sn({},n):n:null}function As(n,e,t=!1){const{props:i,ref:s,patchFlag:r,children:o}=n,a=e?y2(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&EA(a),ref:e&&e.ref?t&&s?tt(s)?s.concat(Sd(e)):[s,Sd(e)]:Sd(e):s,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==qe?r===-1?16:r|16:r,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&As(n.ssContent),ssFallback:n.ssFallback&&As(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function je(n=" ",e=0){return Ie(Au,null,n,e)}function Nu(n,e){const t=Ie(Ed,null,n);return t.staticCount=e,t}function j(n="",e=!1){return e?(O(),Nt(fi,null,n)):Ie(fi,null,n)}function Gi(n){return n==null||typeof n=="boolean"?Ie(fi):tt(n)?Ie(qe,null,n.slice()):typeof n=="object"?js(n):Ie(Au,null,String(n))}function js(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:As(n)}function Tb(n,e){let t=0;const{shapeFlag:i}=n;if(e==null)e=null;else if(tt(e))t=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),Tb(n,s()),s._c&&(s._d=!0));return}else{t=32;const s=e._;!s&&!(wu in e)?e._ctx=Tn:s===3&&Tn&&(Tn.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else mt(e)?(e={default:e,_ctx:Tn},t=32):(e=String(e),i&64?(t=16,e=[je(e)]):t=8);n.children=e,n.shapeFlag|=t}function y2(...n){const e={};for(let t=0;tbn||Tn;let Cb,mo,yS="__VUE_INSTANCE_SETTERS__";(mo=ig()[yS])||(mo=ig()[yS]=[]),mo.push(n=>bn=n),Cb=n=>{mo.length>1?mo.forEach(e=>e(n)):mo[0](n)};const sa=n=>{Cb(n),n.scope.on()},$r=()=>{bn&&bn.scope.off(),Cb(null)};function SA(n){return n.vnode.shapeFlag&4}let Hl=!1;function R2(n,e=!1){Hl=e;const{props:t,children:i}=n.vnode,s=SA(n);d2(n,t,s,e),_2(n,i);const r=s?A2(n,e):void 0;return Hl=!1,r}function A2(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=nc(new Proxy(n.ctx,n2));const{setup:i}=t;if(i){const s=n.setupContext=i.length>1?N2(n):null;sa(n),Ma();const r=lr(i,n,0,[n.props,s]);if(Da(),$r(),TR(r)){if(r.then($r,$r),e)return r.then(o=>{TS(n,o,e)}).catch(o=>{vu(o,n,0)});n.asyncDep=r}else TS(n,r,e)}else vA(n,e)}function TS(n,e,t){mt(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:Ht(e)&&(n.setupState=$R(e)),vA(n,t)}let xS;function vA(n,e,t){const i=n.type;if(!n.render){if(!e&&xS&&!i.render){const s=i.template||vb(n).template;if(s){const{isCustomElement:r,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:l}=i,c=sn(sn({isCustomElement:r,delimiters:a},o),l);i.render=xS(s,c)}}n.render=i.render||Ii}sa(n),Ma(),i2(n),Da(),$r()}function w2(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return jn(n,"get","$attrs"),e[t]}}))}function N2(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return w2(n)},slots:n.slots,emit:n.emit,expose:e}}function Ou(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy($R(nc(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in vl)return vl[t](n)},has(e,t){return t in e||t in vl}}))}function _g(n,e=!0){return mt(n)?n.displayName||n.name:n.name||e&&n.__name}function O2(n){return mt(n)&&"__vccOpts"in n}const et=(n,e)=>OM(n,e,Hl);function Rb(n,e,t){const i=arguments.length;return i===2?Ht(e)&&!tt(e)?Vl(e)?Ie(n,null,[e]):Ie(n,e):Ie(n,null,e):(i>3?t=Array.prototype.slice.call(arguments,2):i===3&&Vl(t)&&(t=[t]),Ie(n,e,t))}const I2=Symbol.for("v-scx"),M2=()=>Mi(I2),D2="3.3.4",L2="http://www.w3.org/2000/svg",Pr=typeof document<"u"?document:null,CS=Pr&&Pr.createElement("template"),k2={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,i)=>{const s=e?Pr.createElementNS(L2,n):Pr.createElement(n,t?{is:t}:void 0);return n==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:n=>Pr.createTextNode(n),createComment:n=>Pr.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Pr.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,i,s,r){const o=t?t.previousSibling:e.lastChild;if(s&&(s===r||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),t),!(s===r||!(s=s.nextSibling)););else{CS.innerHTML=i?`${n}`:n;const a=CS.content;if(i){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function P2(n,e,t){const i=n._vtc;i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}function U2(n,e,t){const i=n.style,s=rn(t);if(t&&!s){if(e&&!rn(e))for(const r in e)t[r]==null&&hg(i,r,"");for(const r in t)hg(i,r,t[r])}else{const r=i.display;s?e!==t&&(i.cssText=t):e&&n.removeAttribute("style"),"_vod"in n&&(i.display=r)}}const RS=/\s*!important$/;function hg(n,e,t){if(tt(t))t.forEach(i=>hg(n,e,i));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const i=F2(n,e);RS.test(t)?n.setProperty(ao(i),t.replace(RS,""),"important"):n[i]=t}}const AS=["Webkit","Moz","ms"],_p={};function F2(n,e){const t=_p[e];if(t)return t;let i=Qi(e);if(i!=="filter"&&i in n)return _p[e]=i;i=mu(i);for(let s=0;shp||(q2.then(()=>hp=0),hp=Date.now());function $2(n,e){const t=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=t.attached)return;hi(W2(i,t.value),e,5,[i])};return t.value=n,t.attached=Y2(),t}function W2(n,e){if(tt(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const OS=/^on[a-z]/,K2=(n,e,t,i,s=!1,r,o,a,l)=>{e==="class"?P2(n,i,s):e==="style"?U2(n,t,i):hu(e)?ab(e)||H2(n,e,t,i,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):j2(n,e,i,s))?G2(n,e,i,r,o,a,l):(e==="true-value"?n._trueValue=i:e==="false-value"&&(n._falseValue=i),B2(n,e,i,s))};function j2(n,e,t,i){return i?!!(e==="innerHTML"||e==="textContent"||e in n&&OS.test(e)&&mt(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA"||OS.test(e)&&rn(t)?!1:e in n}const Bs="transition",Ja="animation",ws=(n,{slots:e})=>Rb(qM,TA(n),e);ws.displayName="Transition";const yA={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},Q2=ws.props=sn({},iA,yA),Cr=(n,e=[])=>{tt(n)?n.forEach(t=>t(...e)):n&&n(...e)},IS=n=>n?tt(n)?n.some(e=>e.length>1):n.length>1:!1;function TA(n){const e={};for(const U in n)U in yA||(e[U]=n[U]);if(n.css===!1)return e;const{name:t="v",type:i,duration:s,enterFromClass:r=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:a=`${t}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:m=`${t}-leave-to`}=n,f=X2(s),E=f&&f[0],b=f&&f[1],{onBeforeEnter:g,onEnter:S,onEnterCancelled:y,onLeave:T,onLeaveCancelled:C,onBeforeAppear:x=g,onAppear:w=S,onAppearCancelled:R=y}=e,v=(U,Y,L)=>{Ks(U,Y?d:a),Ks(U,Y?c:o),L&&L()},A=(U,Y)=>{U._isLeaving=!1,Ks(U,u),Ks(U,m),Ks(U,h),Y&&Y()},P=U=>(Y,L)=>{const z=U?w:S,B=()=>v(Y,U,L);Cr(z,[Y,B]),MS(()=>{Ks(Y,U?l:r),ms(Y,U?d:a),IS(z)||DS(Y,i,E,B)})};return sn(e,{onBeforeEnter(U){Cr(g,[U]),ms(U,r),ms(U,o)},onBeforeAppear(U){Cr(x,[U]),ms(U,l),ms(U,c)},onEnter:P(!1),onAppear:P(!0),onLeave(U,Y){U._isLeaving=!0;const L=()=>A(U,Y);ms(U,u),CA(),ms(U,h),MS(()=>{U._isLeaving&&(Ks(U,u),ms(U,m),IS(T)||DS(U,i,b,L))}),Cr(T,[U,L])},onEnterCancelled(U){v(U,!1),Cr(y,[U])},onAppearCancelled(U){v(U,!0),Cr(R,[U])},onLeaveCancelled(U){A(U),Cr(C,[U])}})}function X2(n){if(n==null)return null;if(Ht(n))return[fp(n.enter),fp(n.leave)];{const e=fp(n);return[e,e]}}function fp(n){return kI(n)}function ms(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n._vtc||(n._vtc=new Set)).add(e)}function Ks(n,e){e.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const{_vtc:t}=n;t&&(t.delete(e),t.size||(n._vtc=void 0))}function MS(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let Z2=0;function DS(n,e,t,i){const s=n._endId=++Z2,r=()=>{s===n._endId&&i()};if(t)return setTimeout(r,t);const{type:o,timeout:a,propCount:l}=xA(n,e);if(!o)return i();const c=o+"end";let d=0;const u=()=>{n.removeEventListener(c,h),r()},h=m=>{m.target===n&&++d>=l&&u()};setTimeout(()=>{d(t[f]||"").split(", "),s=i(`${Bs}Delay`),r=i(`${Bs}Duration`),o=LS(s,r),a=i(`${Ja}Delay`),l=i(`${Ja}Duration`),c=LS(a,l);let d=null,u=0,h=0;e===Bs?o>0&&(d=Bs,u=o,h=r.length):e===Ja?c>0&&(d=Ja,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?Bs:Ja:null,h=d?d===Bs?r.length:l.length:0);const m=d===Bs&&/\b(transform|all)(,|$)/.test(i(`${Bs}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:m}}function LS(n,e){for(;n.lengthkS(t)+kS(n[i])))}function kS(n){return Number(n.slice(0,-1).replace(",","."))*1e3}function CA(){return document.body.offsetHeight}const RA=new WeakMap,AA=new WeakMap,wA={name:"TransitionGroup",props:sn({},Q2,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=xb(),i=nA();let s,r;return ic(()=>{if(!s.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!iD(s[0].el,t.vnode.el,o))return;s.forEach(eD),s.forEach(tD);const a=s.filter(nD);CA(),a.forEach(l=>{const c=l.el,d=c.style;ms(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",u),c._moveCb=null,Ks(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=It(n),a=TA(o);let l=o.tag||qe;s=r,r=e.default?Eb(e.default()):[];for(let c=0;cdelete n.mode;wA.props;const ys=wA;function eD(n){const e=n.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function tD(n){AA.set(n,n.el.getBoundingClientRect())}function nD(n){const e=RA.get(n),t=AA.get(n),i=e.left-t.left,s=e.top-t.top;if(i||s){const r=n.el.style;return r.transform=r.webkitTransform=`translate(${i}px,${s}px)`,r.transitionDuration="0s",n}}function iD(n,e,t){const i=n.cloneNode();n._vtc&&n._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),t.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(i);const{hasTransform:r}=xA(i);return s.removeChild(i),r}const hr=n=>{const e=n.props["onUpdate:modelValue"]||!1;return tt(e)?t=>$o(e,t):e};function sD(n){n.target.composing=!0}function PS(n){const e=n.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Qe={created(n,{modifiers:{lazy:e,trim:t,number:i}},s){n._assign=hr(s);const r=i||s.props&&s.props.type==="number";Es(n,e?"change":"input",o=>{if(o.target.composing)return;let a=n.value;t&&(a=a.trim()),r&&(a=Ld(a)),n._assign(a)}),t&&Es(n,"change",()=>{n.value=n.value.trim()}),e||(Es(n,"compositionstart",sD),Es(n,"compositionend",PS),Es(n,"change",PS))},mounted(n,{value:e}){n.value=e??""},beforeUpdate(n,{value:e,modifiers:{lazy:t,trim:i,number:s}},r){if(n._assign=hr(r),n.composing||document.activeElement===n&&n.type!=="range"&&(t||i&&n.value.trim()===e||(s||n.type==="number")&&Ld(n.value)===e))return;const o=e??"";n.value!==o&&(n.value=o)}},At={deep:!0,created(n,e,t){n._assign=hr(t),Es(n,"change",()=>{const i=n._modelValue,s=ra(n),r=n.checked,o=n._assign;if(tt(i)){const a=db(i,s),l=a!==-1;if(r&&!l)o(i.concat(s));else if(!r&&l){const c=[...i];c.splice(a,1),o(c)}}else if(Oa(i)){const a=new Set(i);r?a.add(s):a.delete(s),o(a)}else o(NA(n,r))})},mounted:US,beforeUpdate(n,e,t){n._assign=hr(t),US(n,e,t)}};function US(n,{value:e,oldValue:t},i){n._modelValue=e,tt(e)?n.checked=db(e,i.props.value)>-1:Oa(e)?n.checked=e.has(i.props.value):e!==t&&(n.checked=Jr(e,NA(n,!0)))}const rD={created(n,{value:e},t){n.checked=Jr(e,t.props.value),n._assign=hr(t),Es(n,"change",()=>{n._assign(ra(n))})},beforeUpdate(n,{value:e,oldValue:t},i){n._assign=hr(i),e!==t&&(n.checked=Jr(e,i.props.value))}},qn={deep:!0,created(n,{value:e,modifiers:{number:t}},i){const s=Oa(e);Es(n,"change",()=>{const r=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>t?Ld(ra(o)):ra(o));n._assign(n.multiple?s?new Set(r):r:r[0])}),n._assign=hr(i)},mounted(n,{value:e}){FS(n,e)},beforeUpdate(n,e,t){n._assign=hr(t)},updated(n,{value:e}){FS(n,e)}};function FS(n,e){const t=n.multiple;if(!(t&&!tt(e)&&!Oa(e))){for(let i=0,s=n.options.length;i-1:r.selected=e.has(o);else if(Jr(ra(r),e)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!t&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function ra(n){return"_value"in n?n._value:n.value}function NA(n,e){const t=e?"_trueValue":"_falseValue";return t in n?n[t]:e}const oD=["ctrl","shift","alt","meta"],aD={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>oD.some(t=>n[`${t}Key`]&&!e.includes(t))},xe=(n,e)=>(t,...i)=>{for(let s=0;st=>{if(!("key"in t))return;const i=ao(t.key);if(e.some(s=>s===i||lD[s]===i))return n(t)},Mt={beforeMount(n,{value:e},{transition:t}){n._vod=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):el(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:i}){!e!=!t&&(i?e?(i.beforeEnter(n),el(n,!0),i.enter(n)):i.leave(n,()=>{el(n,!1)}):el(n,e))},beforeUnmount(n,{value:e}){el(n,e)}};function el(n,e){n.style.display=e?n._vod:"none"}const cD=sn({patchProp:K2},k2);let BS;function dD(){return BS||(BS=f2(cD))}const uD=(...n)=>{const e=dD().createApp(...n),{mount:t}=e;return e.mount=i=>{const s=pD(i);if(!s)return;const r=e._component;!mt(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const o=t(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},e};function pD(n){return rn(n)?document.querySelector(n):n}function _D(){return OA().__VUE_DEVTOOLS_GLOBAL_HOOK__}function OA(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const hD=typeof Proxy=="function",fD="devtools-plugin:setup",mD="plugin:settings:set";let go,fg;function gD(){var n;return go!==void 0||(typeof window<"u"&&window.performance?(go=!0,fg=window.performance):typeof global<"u"&&(!((n=global.perf_hooks)===null||n===void 0)&&n.performance)?(go=!0,fg=global.perf_hooks.performance):go=!1),go}function bD(){return gD()?fg.now():Date.now()}class ED{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const i={};if(e.settings)for(const o in e.settings){const a=e.settings[o];i[o]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(s),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return bD()}},t&&t.on(mD,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function SD(n,e){const t=n,i=OA(),s=_D(),r=hD&&t.enableEarlyProxy;if(s&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(fD,n,e);else{const o=r?new ED(t,s):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT @@ -55,7 +55,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),le=k,W=$),K===void 0&& `),_("div",{ref:"execution_output",innerHTML:s.executionOutput},null,8,mWe),je(` `)]),je(` `)])):j("",!0)])}const bWe=gt(Q$e,[["render",gWe]]);function EWe(n){return n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const SWe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},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:bWe},setup(n){const e=new $ge({html:!0,highlight:(s,r)=>{const o=r&&to.getLanguage(r)?r:"plaintext";return to.highlight(o,s).value},renderInline:!0,breaks:!0}).use(QHe).use(Vo).use(dze,{figcaption:!0}).use(Tze).use(sze,{inlineOpen:"$",inlineClose:"$",blockOpen:"$$",blockClose:"$$"}).use(lze,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}),t=dt([]),i=()=>{if(n.markdownText){let s=e.parse(n.markdownText,{}),r=[];t.value=[];for(let o=0;o0&&(t.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[]),t.value.push({type:"code",language:EWe(s[o].info),code:s[o].content}));r.length>0&&(t.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[])}else t.value=[];Fe(()=>{Be.replace()})};return Bn(()=>n.markdownText,i),Ms(i),{markdownItems:t}}},vWe={class:"break-all"},yWe={ref:"mdRender",class:"markdown-content"},TWe=["innerHTML"];function xWe(n,e,t,i,s,r){const o=ut("code-block");return O(),D("div",vWe,[_("div",yWe,[(O(!0),D(qe,null,lt(i.markdownItems,(a,l)=>(O(),D("div",{key:l},[a.type==="code"?(O(),Nt(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id},null,8,["host","language","code","discussion_id","message_id"])):(O(),D("div",{key:1,innerHTML:a.html},null,8,TWe))]))),128))],512)])}const Zb=gt(SWe,[["render",xWe]]),CWe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Zb},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},RWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},AWe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},wWe={class:"container max-h-500 overflow-y-auto"},NWe={class:"text-lg font-medium"},OWe={class:"mt-4 flex justify-center"},IWe={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"},MWe=_("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),DWe=_("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),LWe=[MWe,DWe];function kWe(n,e,t,i,s,r){const o=ut("MarkdownRenderer");return s.show?(O(),D("div",RWe,[_("div",AWe,[_("div",wWe,[_("div",NWe,[Ie(o,{ref:"mdRender",host:"","markdown-text":s.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),_("div",OWe,[s.has_button?(O(),D("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 ")):j("",!0),s.has_button?j("",!0):(O(),D("svg",IWe,LWe))])])])):j("",!0)}const sN=gt(CWe,[["render",kWe]]);const PWe={props:{progress:{type:Number,required:!0}}},UWe={class:"progress-bar-container"};function FWe(n,e,t,i,s,r){return O(),D("div",UWe,[_("div",{class:"progress-bar",style:Zt({width:`${t.progress}%`})},null,4)])}const Kl=gt(PWe,[["render",FWe]]),BWe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Fe(()=>{Be.replace()})},methods:{hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,i){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=i||this.DenyButtonText;for(let s=0;s{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show form",this.controls_array)})}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Fe(()=>{Be.replace()})}}},GWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},VWe={class:"relative w-full max-w-md"},HWe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},zWe={class:"flex flex-row flex-grow items-center m-2 p-1"},qWe={class:"grow flex items-center"},YWe=_("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),$We={class:"text-lg font-semibold select-none mr-2"},WWe={class:"items-end"},KWe=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),jWe=_("span",{class:"sr-only"},"Close form modal",-1),QWe=[KWe,jWe],XWe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},ZWe={class:"px-2"},JWe={key:0},eKe={key:0},tKe={class:"text-base font-semibold"},nKe={key:0,class:"relative inline-flex"},iKe=["onUpdate:modelValue"],sKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),rKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},oKe=["onUpdate:modelValue"],aKe={key:1},lKe={class:"text-base font-semibold"},cKe={key:0,class:"relative inline-flex"},dKe=["onUpdate:modelValue"],uKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),pKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},_Ke=["onUpdate:modelValue"],hKe=["value","selected"],fKe={key:1},mKe={class:"text-base font-semibold"},gKe={key:0,class:"relative inline-flex"},bKe=["onUpdate:modelValue"],EKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),SKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},vKe=["onUpdate:modelValue"],yKe=["onUpdate:modelValue","min","max"],TKe={key:2},xKe={class:"text-base font-semibold"},CKe={key:0,class:"relative inline-flex"},RKe=["onUpdate:modelValue"],AKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),wKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},NKe=["onUpdate:modelValue"],OKe=["onUpdate:modelValue","min","max"],IKe={key:3},MKe={class:"mb-2 relative flex items-center gap-2"},DKe={for:"default-checkbox",class:"text-base font-semibold"},LKe=["onUpdate:modelValue"],kKe={key:0,class:"relative inline-flex"},PKe=["onUpdate:modelValue"],UKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),FKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},BKe={key:4},GKe={class:"text-base font-semibold"},VKe={key:0,class:"relative inline-flex"},HKe=["onUpdate:modelValue"],zKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),qKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},YKe=["onUpdate:modelValue"],$Ke=_("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),WKe={class:"flex flex-row flex-grow gap-3"},KKe={class:"p-2 text-center grow"};function jKe(n,e,t,i,s,r){return s.show?(O(),D("div",GWe,[_("div",VWe,[_("div",HWe,[_("div",zWe,[_("div",qWe,[YWe,_("h3",$We,fe(s.title),1)]),_("div",WWe,[_("button",{type:"button",onClick:e[0]||(e[0]=xe(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"},QWe)])]),_("div",XWe,[(O(!0),D(qe,null,lt(s.controls_array,(o,a)=>(O(),D("div",ZWe,[o.type=="str"?(O(),D("div",JWe,[o.options?j("",!0):(O(),D("div",eKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",tKe,fe(o.name)+": ",1),o.help?(O(),D("label",nKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,iKe),[[Ct,o.isHelp]]),sKe])):j("",!0)],2),o.isHelp?(O(),D("p",rKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"text","onUpdate:modelValue":l=>o.value=l,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,oKe),[[Qe,o.value]])])),o.options?(O(),D("div",aKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",lKe,fe(o.name)+": ",1),o.help?(O(),D("label",cKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,dKe),[[Ct,o.isHelp]]),uKe])):j("",!0)],2),o.isHelp?(O(),D("p",pKe,fe(o.help),1)):j("",!0),Ee(_("select",{"onUpdate:modelValue":l=>o.value=l,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"},[(O(!0),D(qe,null,lt(o.options,l=>(O(),D("option",{value:l,selected:o.value===l},fe(l),9,hKe))),256))],8,_Ke),[[qn,o.value]])])):j("",!0)])):j("",!0),o.type=="int"?(O(),D("div",fKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",mKe,fe(o.name)+": ",1),o.help?(O(),D("label",gKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,bKe),[[Ct,o.isHelp]]),EKe])):j("",!0)],2),o.isHelp?(O(),D("p",SKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"number","onUpdate:modelValue":l=>o.value=l,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,vKe),[[Qe,o.value]]),o.min!=null&&o.max!=null?Ee((O(),D("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,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,yKe)),[[Qe,o.value]]):j("",!0)])):j("",!0),o.type=="float"?(O(),D("div",TKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",xKe,fe(o.name)+": ",1),o.help?(O(),D("label",CKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,RKe),[[Ct,o.isHelp]]),AKe])):j("",!0)],2),o.isHelp?(O(),D("p",wKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"number","onUpdate:modelValue":l=>o.value=l,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,NKe),[[Qe,o.value]]),o.min!=null&&o.max!=null?Ee((O(),D("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,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,OKe)),[[Qe,o.value]]):j("",!0)])):j("",!0),o.type=="bool"?(O(),D("div",IKe,[_("div",MKe,[_("label",DKe,fe(o.name)+": ",1),Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.value=l,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,LKe),[[Ct,o.value]]),o.help?(O(),D("label",kKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,PKe),[[Ct,o.isHelp]]),UKe])):j("",!0)]),o.isHelp?(O(),D("p",FKe,fe(o.help),1)):j("",!0)])):j("",!0),o.type=="list"?(O(),D("div",BKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",GKe,fe(o.name)+": ",1),o.help?(O(),D("label",VKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,HKe),[[Ct,o.isHelp]]),zKe])):j("",!0)],2),o.isHelp?(O(),D("p",qKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"text","onUpdate:modelValue":l=>o.value=l,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,YKe),[[Qe,o.value]])])):j("",!0),$Ke]))),256)),_("div",WKe,[_("div",KKe,[_("button",{onClick:e[1]||(e[1]=xe(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"},fe(s.ConfirmButtonText),1),_("button",{onClick:e[2]||(e[2]=xe(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"},fe(s.DenyButtonText),1)])])])])])])):j("",!0)}const dc=gt(BWe,[["render",jKe]]),QKe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(i=>{this.message=n,this.show=!0,this.resolve=i})}}},XKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},ZKe={class:"relative w-full max-w-md max-h-full"},JKe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},eje=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),tje=_("span",{class:"sr-only"},"Close modal",-1),nje=[eje,tje],ije={class:"p-4 text-center"},sje=_("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"},[_("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),rje={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function oje(n,e,t,i,s,r){return s.show?(O(),D("div",XKe,[_("div",ZKe,[_("div",JKe,[_("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"},nje),_("div",ije,[sje,_("h3",rje,fe(s.message),1),_("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"},fe(s.ConfirmButtonText),1),_("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"},fe(s.DenyButtonText),1)])])])])):j("",!0)}const rN=gt(QKe,[["render",oje]]),oN="/assets/fastapi-4a6542d0.png",aN="/assets/discord-6817c341.svg";const aje={key:0,class:"container flex flex-col sm:flex-row items-center"},lje={class:"w-full"},cje={class:"flex flex-row font-medium nav-ul"},lN={__name:"Navigation",setup(n){return(e,t)=>e.$store.state.ready?(O(),D("div",aje,[_("div",lje,[_("div",cje,[Ie(vt(Ur),{to:{name:"discussions"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Discussions ")]),_:1}),Ie(vt(Ur),{to:{name:"playground"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Playground ")]),_:1}),e.$store.state.config.enable_voice_service?(O(),Nt(vt(Ur),{key:0,to:{name:"interactive"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" interactive ")]),_:1})):j("",!0),Ie(vt(Ur),{to:{name:"settings"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Settings ")]),_:1}),Ie(vt(Ur),{to:{name:"help"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Help ")]),_:1})])])])):j("",!0)}};const dje={class:"top-0 shadow-lg"},uje={class:"container flex flex-col lg:flex-row item-center gap-2 pb-0"},pje=_("div",{class:"flex items-center gap-3 flex-1"},[_("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:ca,alt:"Logo"}),_("div",{class:"flex flex-col"},[_("p",{class:"text-2xl"},"LoLLMS"),_("p",{class:"text-gray-400"},"One tool to rule them all")])],-1),_je={class:"flex gap-3 flex-1 items-center justify-end"},hje={key:0,title:"Model is ok",class:"text-green-500 cursor-pointer"},fje=_("b",{class:"text-2xl"},"M",-1),mje=[fje],gje={key:1,title:"Model is not ok",class:"text-red-500 cursor-pointer"},bje=_("b",{class:"text-2xl"},"M",-1),Eje=[bje],Sje={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 cursor-pointer"},vje=_("i",{"data-feather":"flag"},null,-1),yje=[vje],Tje={key:3,title:"Generation in progress...",class:"text-red-500 cursor-pointer"},xje=_("i",{"data-feather":"flag"},null,-1),Cje=[xje],Rje={key:4,title:"Connection status: Connected",class:"text-green-500 cursor-pointer"},Aje=_("i",{"data-feather":"zap"},null,-1),wje=[Aje],Nje={key:5,title:"Connection status: Not connected",class:"text-red-500 cursor-pointer"},Oje=_("i",{"data-feather":"zap-off"},null,-1),Ije=[Oje],Mje=_("div",{class:"text-2xl hover:text-primary duration-150",title:"restart program"},[_("i",{"data-feather":"power"})],-1),Dje=[Mje],Lje=_("div",{class:"text-2xl hover:text-primary duration-150",title:"refresh page"},[_("i",{"data-feather":"refresh-ccw"})],-1),kje=[Lje],Pje={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},Uje={class:"text-2xl hover:text-primary duration-150",title:"Fast API doc"},Fje={href:"/docs",target:"_blank"},Bje=["src"],Gje=Nu('
',2),Vje={href:"https://twitter.com/SpaceNerduino",target:"_blank"},Hje={class:"text-2xl hover:fill-primary dark:fill-white dark:hover:fill-primary duration-150",title:"Follow me on my twitter acount"},zje={class:"w-10 h-10 rounded-lg object-fill dark:text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",style:{"enable-background":"new 0 0 1668.56 1221.19"},"xml:space":"preserve"},qje=_("g",{id:"layer1",transform:"translate(52.390088,-25.058597)"},[_("path",{id:"path1009",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99\r +`}),t=dt([]),i=()=>{if(n.markdownText){let s=e.parse(n.markdownText,{}),r=[];t.value=[];for(let o=0;o0&&(t.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[]),t.value.push({type:"code",language:EWe(s[o].info),code:s[o].content}));r.length>0&&(t.value.push({type:"html",html:e.renderer.render(r,e.options,{})}),r=[])}else t.value=[];Fe(()=>{Be.replace()})};return Bn(()=>n.markdownText,i),Ms(i),{markdownItems:t}}},vWe={class:"break-all"},yWe={ref:"mdRender",class:"markdown-content"},TWe=["innerHTML"];function xWe(n,e,t,i,s,r){const o=ut("code-block");return O(),D("div",vWe,[_("div",yWe,[(O(!0),D(qe,null,lt(i.markdownItems,(a,l)=>(O(),D("div",{key:l},[a.type==="code"?(O(),Nt(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id},null,8,["host","language","code","discussion_id","message_id"])):(O(),D("div",{key:1,innerHTML:a.html},null,8,TWe))]))),128))],512)])}const Zb=gt(SWe,[["render",xWe]]),CWe={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:Zb},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},RWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},AWe={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},wWe={class:"container max-h-500 overflow-y-auto"},NWe={class:"text-lg font-medium"},OWe={class:"mt-4 flex justify-center"},IWe={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"},MWe=_("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),DWe=_("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),LWe=[MWe,DWe];function kWe(n,e,t,i,s,r){const o=ut("MarkdownRenderer");return s.show?(O(),D("div",RWe,[_("div",AWe,[_("div",wWe,[_("div",NWe,[Ie(o,{ref:"mdRender",host:"","markdown-text":s.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),_("div",OWe,[s.has_button?(O(),D("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 ")):j("",!0),s.has_button?j("",!0):(O(),D("svg",IWe,LWe))])])])):j("",!0)}const sN=gt(CWe,[["render",kWe]]);const PWe={props:{progress:{type:Number,required:!0}}},UWe={class:"progress-bar-container"};function FWe(n,e,t,i,s,r){return O(),D("div",UWe,[_("div",{class:"progress-bar",style:Zt({width:`${t.progress}%`})},null,4)])}const Kl=gt(PWe,[["render",FWe]]),BWe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Fe(()=>{Be.replace()})},methods:{hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,i){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=i||this.DenyButtonText;for(let s=0;s{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show form",this.controls_array)})}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Fe(()=>{Be.replace()})}}},GWe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},VWe={class:"relative w-full max-w-md"},HWe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},zWe={class:"flex flex-row flex-grow items-center m-2 p-1"},qWe={class:"grow flex items-center"},YWe=_("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),$We={class:"text-lg font-semibold select-none mr-2"},WWe={class:"items-end"},KWe=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),jWe=_("span",{class:"sr-only"},"Close form modal",-1),QWe=[KWe,jWe],XWe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},ZWe={class:"px-2"},JWe={key:0},eKe={key:0},tKe={class:"text-base font-semibold"},nKe={key:0,class:"relative inline-flex"},iKe=["onUpdate:modelValue"],sKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),rKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},oKe=["onUpdate:modelValue"],aKe={key:1},lKe={class:"text-base font-semibold"},cKe={key:0,class:"relative inline-flex"},dKe=["onUpdate:modelValue"],uKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),pKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},_Ke=["onUpdate:modelValue"],hKe=["value","selected"],fKe={key:1},mKe={class:"text-base font-semibold"},gKe={key:0,class:"relative inline-flex"},bKe=["onUpdate:modelValue"],EKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),SKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},vKe=["onUpdate:modelValue"],yKe=["onUpdate:modelValue","min","max"],TKe={key:2},xKe={class:"text-base font-semibold"},CKe={key:0,class:"relative inline-flex"},RKe=["onUpdate:modelValue"],AKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),wKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},NKe=["onUpdate:modelValue"],OKe=["onUpdate:modelValue","min","max"],IKe={key:3},MKe={class:"mb-2 relative flex items-center gap-2"},DKe={for:"default-checkbox",class:"text-base font-semibold"},LKe=["onUpdate:modelValue"],kKe={key:0,class:"relative inline-flex"},PKe=["onUpdate:modelValue"],UKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),FKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},BKe={key:4},GKe={class:"text-base font-semibold"},VKe={key:0,class:"relative inline-flex"},HKe=["onUpdate:modelValue"],zKe=_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[_("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),qKe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},YKe=["onUpdate:modelValue"],$Ke=_("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),WKe={class:"flex flex-row flex-grow gap-3"},KKe={class:"p-2 text-center grow"};function jKe(n,e,t,i,s,r){return s.show?(O(),D("div",GWe,[_("div",VWe,[_("div",HWe,[_("div",zWe,[_("div",qWe,[YWe,_("h3",$We,fe(s.title),1)]),_("div",WWe,[_("button",{type:"button",onClick:e[0]||(e[0]=xe(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"},QWe)])]),_("div",XWe,[(O(!0),D(qe,null,lt(s.controls_array,(o,a)=>(O(),D("div",ZWe,[o.type=="str"?(O(),D("div",JWe,[o.options?j("",!0):(O(),D("div",eKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",tKe,fe(o.name)+": ",1),o.help?(O(),D("label",nKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,iKe),[[At,o.isHelp]]),sKe])):j("",!0)],2),o.isHelp?(O(),D("p",rKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"text","onUpdate:modelValue":l=>o.value=l,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,oKe),[[Qe,o.value]])])),o.options?(O(),D("div",aKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",lKe,fe(o.name)+": ",1),o.help?(O(),D("label",cKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,dKe),[[At,o.isHelp]]),uKe])):j("",!0)],2),o.isHelp?(O(),D("p",pKe,fe(o.help),1)):j("",!0),Ee(_("select",{"onUpdate:modelValue":l=>o.value=l,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"},[(O(!0),D(qe,null,lt(o.options,l=>(O(),D("option",{value:l,selected:o.value===l},fe(l),9,hKe))),256))],8,_Ke),[[qn,o.value]])])):j("",!0)])):j("",!0),o.type=="int"?(O(),D("div",fKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",mKe,fe(o.name)+": ",1),o.help?(O(),D("label",gKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,bKe),[[At,o.isHelp]]),EKe])):j("",!0)],2),o.isHelp?(O(),D("p",SKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"number","onUpdate:modelValue":l=>o.value=l,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,vKe),[[Qe,o.value]]),o.min!=null&&o.max!=null?Ee((O(),D("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,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,yKe)),[[Qe,o.value]]):j("",!0)])):j("",!0),o.type=="float"?(O(),D("div",TKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",xKe,fe(o.name)+": ",1),o.help?(O(),D("label",CKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,RKe),[[At,o.isHelp]]),AKe])):j("",!0)],2),o.isHelp?(O(),D("p",wKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"number","onUpdate:modelValue":l=>o.value=l,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,NKe),[[Qe,o.value]]),o.min!=null&&o.max!=null?Ee((O(),D("input",{key:1,type:"range","onUpdate:modelValue":l=>o.value=l,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,OKe)),[[Qe,o.value]]):j("",!0)])):j("",!0),o.type=="bool"?(O(),D("div",IKe,[_("div",MKe,[_("label",DKe,fe(o.name)+": ",1),Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.value=l,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,LKe),[[At,o.value]]),o.help?(O(),D("label",kKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,PKe),[[At,o.isHelp]]),UKe])):j("",!0)]),o.isHelp?(O(),D("p",FKe,fe(o.help),1)):j("",!0)])):j("",!0),o.type=="list"?(O(),D("div",BKe,[_("label",{class:ze(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[_("div",GKe,fe(o.name)+": ",1),o.help?(O(),D("label",VKe,[Ee(_("input",{type:"checkbox","onUpdate:modelValue":l=>o.isHelp=l,class:"sr-only peer"},null,8,HKe),[[At,o.isHelp]]),zKe])):j("",!0)],2),o.isHelp?(O(),D("p",qKe,fe(o.help),1)):j("",!0),Ee(_("input",{type:"text","onUpdate:modelValue":l=>o.value=l,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,YKe),[[Qe,o.value]])])):j("",!0),$Ke]))),256)),_("div",WKe,[_("div",KKe,[_("button",{onClick:e[1]||(e[1]=xe(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"},fe(s.ConfirmButtonText),1),_("button",{onClick:e[2]||(e[2]=xe(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"},fe(s.DenyButtonText),1)])])])])])])):j("",!0)}const dc=gt(BWe,[["render",jKe]]),QKe={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(i=>{this.message=n,this.show=!0,this.resolve=i})}}},XKe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},ZKe={class:"relative w-full max-w-md max-h-full"},JKe={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},eje=_("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),tje=_("span",{class:"sr-only"},"Close modal",-1),nje=[eje,tje],ije={class:"p-4 text-center"},sje=_("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"},[_("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),rje={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function oje(n,e,t,i,s,r){return s.show?(O(),D("div",XKe,[_("div",ZKe,[_("div",JKe,[_("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"},nje),_("div",ije,[sje,_("h3",rje,fe(s.message),1),_("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"},fe(s.ConfirmButtonText),1),_("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"},fe(s.DenyButtonText),1)])])])])):j("",!0)}const rN=gt(QKe,[["render",oje]]),oN="/assets/fastapi-4a6542d0.png",aN="/assets/discord-6817c341.svg";const aje={key:0,class:"container flex flex-col sm:flex-row items-center"},lje={class:"w-full"},cje={class:"flex flex-row font-medium nav-ul"},lN={__name:"Navigation",setup(n){return(e,t)=>e.$store.state.ready?(O(),D("div",aje,[_("div",lje,[_("div",cje,[Ie(vt(Ur),{to:{name:"discussions"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Discussions ")]),_:1}),Ie(vt(Ur),{to:{name:"playground"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Playground ")]),_:1}),e.$store.state.config.enable_voice_service?(O(),Nt(vt(Ur),{key:0,to:{name:"interactive"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" interactive ")]),_:1})):j("",!0),Ie(vt(Ur),{to:{name:"settings"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Settings ")]),_:1}),Ie(vt(Ur),{to:{name:"help"},class:"link-item dark:link-item-dark"},{default:nt(()=>[je(" Help ")]),_:1})])])])):j("",!0)}};const dje={class:"top-0 shadow-lg"},uje={class:"container flex flex-col lg:flex-row item-center gap-2 pb-0"},pje=_("div",{class:"flex items-center gap-3 flex-1"},[_("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:ca,alt:"Logo"}),_("div",{class:"flex flex-col"},[_("p",{class:"text-2xl"},"LoLLMS"),_("p",{class:"text-gray-400"},"One tool to rule them all")])],-1),_je={class:"flex gap-3 flex-1 items-center justify-end"},hje={key:0,title:"Model is ok",class:"text-green-500 cursor-pointer"},fje=_("b",{class:"text-2xl"},"M",-1),mje=[fje],gje={key:1,title:"Model is not ok",class:"text-red-500 cursor-pointer"},bje=_("b",{class:"text-2xl"},"M",-1),Eje=[bje],Sje={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 cursor-pointer"},vje=_("i",{"data-feather":"flag"},null,-1),yje=[vje],Tje={key:3,title:"Generation in progress...",class:"text-red-500 cursor-pointer"},xje=_("i",{"data-feather":"flag"},null,-1),Cje=[xje],Rje={key:4,title:"Connection status: Connected",class:"text-green-500 cursor-pointer"},Aje=_("i",{"data-feather":"zap"},null,-1),wje=[Aje],Nje={key:5,title:"Connection status: Not connected",class:"text-red-500 cursor-pointer"},Oje=_("i",{"data-feather":"zap-off"},null,-1),Ije=[Oje],Mje=_("div",{class:"text-2xl hover:text-primary duration-150",title:"restart program"},[_("i",{"data-feather":"power"})],-1),Dje=[Mje],Lje=_("div",{class:"text-2xl hover:text-primary duration-150",title:"refresh page"},[_("i",{"data-feather":"refresh-ccw"})],-1),kje=[Lje],Pje={href:"https://github.com/ParisNeo/lollms-webui",target:"_blank"},Uje={class:"text-2xl hover:text-primary duration-150",title:"Fast API doc"},Fje={href:"/docs",target:"_blank"},Bje=["src"],Gje=Nu('
',2),Vje={href:"https://twitter.com/SpaceNerduino",target:"_blank"},Hje={class:"text-2xl hover:fill-primary dark:fill-white dark:hover:fill-primary duration-150",title:"Follow me on my twitter acount"},zje={class:"w-10 h-10 rounded-lg object-fill dark:text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",style:{"enable-background":"new 0 0 1668.56 1221.19"},"xml:space":"preserve"},qje=_("g",{id:"layer1",transform:"translate(52.390088,-25.058597)"},[_("path",{id:"path1009",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99\r h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})],-1),Yje=[qje],$je={href:"https://discord.com/channels/1092918764925882418",target:"_blank"},Wje={class:"text-2xl hover:text-primary duration-150",title:"Visit my discord channel"},Kje=["src"],jje=_("i",{"data-feather":"sun"},null,-1),Qje=[jje],Xje=_("i",{"data-feather":"moon"},null,-1),Zje=[Xje],Jje={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"},eQe={class:"text-2xl animate-pulse mt-2 text-white"},tQe=_("body",null,null,-1),nQe={name:"TopBar",computed:{loading_infos(){return this.$store.state.loading_infos},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},components:{Toast:oc,MessageBox:sN,ProgressBar:Kl,UniversalForm:dc,YesNoDialog:rN,Navigation:lN},watch:{isConnected(){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()),Fe(()=>{Be.replace()})}},data(){return{is_first_connection:!0,discord:aN,FastAPI:oN,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}},mounted(){this.$store.state.toast=this.$refs.toast,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,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(),Fe(()=>{Be.replace()})},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:{restartProgram(n){n.preventDefault(),this.$store.state.api_get_req("restart_program"),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="/"},handleOk(n){console.log("Input text:",n)},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),Fe(()=>{xp(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}Fe(()=>{xp(()=>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}xp(()=>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")}}},iQe=Object.assign(nQe,{setup(n){return(e,t)=>(O(),D(qe,null,[_("header",dje,[_("nav",uje,[Ie(vt(Ur),{to:{name:"discussions"}},{default:nt(()=>[pje]),_:1}),_("div",_je,[e.isModelOK?(O(),D("div",hje,mje)):j("",!0),e.isModelOK?j("",!0):(O(),D("div",gje,Eje)),e.isGenerating?j("",!0):(O(),D("div",Sje,yje)),e.isGenerating?(O(),D("div",Tje,Cje)):j("",!0),e.isConnected?(O(),D("div",Rje,wje)):j("",!0),e.isConnected?j("",!0):(O(),D("div",Nje,Ije)),_("a",{href:"#",onClick:t[0]||(t[0]=(...i)=>e.restartProgram&&e.restartProgram(...i))},Dje),_("a",{href:"#",onClick:t[1]||(t[1]=(...i)=>e.refreshPage&&e.refreshPage(...i))},kje),_("a",Pje,[_("div",Uje,[_("a",Fje,[_("img",{src:vt(oN),width:"75",height:"25"},null,8,Bje)])])]),Gje,_("a",Vje,[_("div",Hje,[(O(),D("svg",zje,Yje))])]),_("a",$je,[_("div",Wje,[_("img",{src:vt(aN),width:"25",height:"25"},null,8,Kje)])]),_("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:t[2]||(t[2]=i=>e.themeSwitch())},Qje),_("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:t[3]||(t[3]=i=>e.themeSwitch())},Zje)])]),Ie(lN),Ie(oc,{ref:"toast"},null,512),Ie(sN,{ref:"messageBox"},null,512),Ee(_("div",Jje,[Ie(Kl,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),_("p",eQe,fe(e.loading_infos)+" ...",1)],512),[[Mt,e.progress_visibility]]),Ie(dc,{ref:"universalForm",class:"z-20"},null,512),Ie(rN,{ref:"yesNoDialog",class:"z-20"},null,512)]),tQe],64))}}),sQe={class:"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full dark:bg-bg-dark overflow-hidden"},rQe={class:"flex overflow-hidden flex-grow w-full"},oQe={__name:"App",setup(n){return(e,t)=>(O(),D("div",sQe,[Ie(iQe),_("div",rQe,[Ie(vt(bw),null,{default:nt(({Component:i})=>[(O(),Nt($M,null,[(O(),Nt(Ru(i)))],1024))]),_:1})])]))}},Xi=Object.create(null);Xi.open="0";Xi.close="1";Xi.ping="2";Xi.pong="3";Xi.message="4";Xi.upgrade="5";Xi.noop="6";const xd=Object.create(null);Object.keys(Xi).forEach(n=>{xd[Xi[n]]=n});const Og={type:"error",data:"parser error"},cN=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",dN=typeof ArrayBuffer=="function",uN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Jb=({type:n,data:e},t,i)=>cN&&e instanceof Blob?t?i(e):Yx(e,i):dN&&(e instanceof ArrayBuffer||uN(e))?t?i(e):Yx(new Blob([e]),i):i(Xi[n]+(e||"")),Yx=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+(i||""))},t.readAsDataURL(n)};function $x(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let bm;function aQe(n,e){if(cN&&n.data instanceof Blob)return n.data.arrayBuffer().then($x).then(e);if(dN&&(n.data instanceof ArrayBuffer||uN(n.data)))return e($x(n.data));Jb(n,!1,t=>{bm||(bm=new TextEncoder),e(bm.encode(t))})}const Wx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,i,s=0,r,o,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const c=new ArrayBuffer(e),d=new Uint8Array(c);for(i=0;i>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|l&63;return c},cQe=typeof ArrayBuffer=="function",eE=(n,e)=>{if(typeof n!="string")return{type:"message",data:pN(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:dQe(n.substring(1),e)}:xd[t]?n.length>1?{type:xd[t],data:n.substring(1)}:{type:xd[t]}:Og},dQe=(n,e)=>{if(cQe){const t=lQe(n);return pN(t,e)}else return{base64:!0,data:n}},pN=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},_N=String.fromCharCode(30),uQe=(n,e)=>{const t=n.length,i=new Array(t);let s=0;n.forEach((r,o)=>{Jb(r,!1,a=>{i[o]=a,++s===t&&e(i.join(_N))})})},pQe=(n,e)=>{const t=n.split(_N),i=[];for(let s=0;s{const i=t.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const r=new DataView(s.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{s=new Uint8Array(9);const r=new DataView(s.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}n.data&&typeof n.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(t)})}})}let Em;function Mc(n){return n.reduce((e,t)=>e+t.length,0)}function Dc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let i=0;for(let s=0;sMath.pow(2,53-32)-1){a.enqueue(Og);break}s=d*Math.pow(2,32)+c.getUint32(4),i=3}else{if(Mc(t)n){a.enqueue(Og);break}}}})}const hN=4;function an(n){if(n)return fQe(n)}function fQe(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function fN(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const mQe=ci.setTimeout,gQe=ci.clearTimeout;function ju(n,e){e.useNativeTimers?(n.setTimeoutFn=mQe.bind(ci),n.clearTimeoutFn=gQe.bind(ci)):(n.setTimeoutFn=ci.setTimeout.bind(ci),n.clearTimeoutFn=ci.clearTimeout.bind(ci))}const bQe=1.33;function EQe(n){return typeof n=="string"?SQe(n):Math.ceil((n.byteLength||n.size)*bQe)}function SQe(n){let e=0,t=0;for(let i=0,s=n.length;i=57344?t+=3:(i++,t+=4);return t}function vQe(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function yQe(n){let e={},t=n.split("&");for(let i=0,s=t.length;i0);return e}function gN(){const n=Qx(+new Date);return n!==jx?(Kx=0,jx=n):n+"."+Qx(Kx++)}for(;Lc{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};pQe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,uQe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=gN()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Zo(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",(s,r)=>{this.onError("xhr post error",s,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,i)=>{this.onError("xhr poll error",t,i)}),this.pollXhr=e}}let Zo=class Cd extends an{constructor(e,t){super(),ju(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=fN(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const i=this.xhr=new EN(t);try{i.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(i.timeout=this.opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(i)),i.readyState===4&&(i.status===200||i.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof i.status=="number"?i.status:0)},0))},i.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Cd.requestsCount++,Cd.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=RQe,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Cd.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()}};Zo.requestsCount=0;Zo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xx);else if(typeof addEventListener=="function"){const n="onpagehide"in ci?"pagehide":"unload";addEventListener(n,Xx,!1)}}function Xx(){for(let n in Zo.requests)Zo.requests.hasOwnProperty(n)&&Zo.requests[n].abort()}const nE=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),kc=ci.WebSocket||ci.MozWebSocket,Zx=!0,NQe="arraybuffer",Jx=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class OQe extends tE{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=Jx?{}:fN(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Zx&&!Jx?t?new kc(e,t):new kc(e):new kc(e,t,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const o={};try{Zx&&this.ws.send(r)}catch{}s&&nE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=gN()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!kc}}class IQe extends tE{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 t=hQe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(t).getReader(),s=_Qe();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const r=()=>{i.read().then(({done:a,value:l})=>{a||(this.onPacket(l),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 t=0;t{s&&nE(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const MQe={websocket:OQe,webtransport:IQe,polling:wQe},DQe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,LQe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Mg(n){const e=n,t=n.indexOf("["),i=n.indexOf("]");t!=-1&&i!=-1&&(n=n.substring(0,t)+n.substring(t,i).replace(/:/g,";")+n.substring(i,n.length));let s=DQe.exec(n||""),r={},o=14;for(;o--;)r[LQe[o]]=s[o]||"";return t!=-1&&i!=-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=kQe(r,r.path),r.queryKey=PQe(r,r.query),r}function kQe(n,e){const t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function PQe(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,r){s&&(t[s]=r)}),t}let SN=class Go extends an{constructor(e,t={}){super(),this.binaryType=NQe,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=Mg(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Mg(t.host).host),ju(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.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},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yQe(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 t=Object.assign({},this.opts.query);t.EIO=hN,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new MQe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Go.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",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),i=!1;Go.priorWebsocketSuccess=!1;const s=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!i)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Go.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(d(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=t.name,this.emitReserved("upgradeError",h)}}))};function r(){i||(i=!0,d(),t.close(),t=null)}const o=u=>{const h=new Error("probe error: "+u);h.transport=t.name,r(),this.emitReserved("upgradeError",h)};function a(){o("transport closed")}function l(){o("socket closed")}function c(u){t&&u.name!==t.name&&r()}const d=()=>{t.removeListener("open",s),t.removeListener("error",o),t.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};t.once("open",s),t.once("error",o),t.once("close",a),this.once("close",l),this.once("upgrading",c),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Go.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=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 t=1;for(let i=0;i0&&t>this.maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,s){if(typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:e,data:t,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){Go.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(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,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const s=e.length;for(;itypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,vN=Object.prototype.toString,GQe=typeof Blob=="function"||typeof Blob<"u"&&vN.call(Blob)==="[object BlobConstructor]",VQe=typeof File=="function"||typeof File<"u"&&vN.call(File)==="[object FileConstructor]";function iE(n){return FQe&&(n instanceof ArrayBuffer||BQe(n))||GQe&&n instanceof Blob||VQe&&n instanceof File}function Rd(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t=0&&n.num{delete this.acks[e];for(let o=0;o{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}emitWithAck(e,...t){const i=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,r)=>{t.push((o,a)=>i?o?r(o):s(a):s(o)),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...r)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(s)):(this._queue.shift(),t&&t(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:wt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case wt.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 wt.EVENT:case wt.BINARY_EVENT:this.onevent(e);break;case wt.ACK:case wt.BINARY_ACK:this.onack(e);break;case wt.DISCONNECT:this.ondisconnect();break;case wt.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let i=!1;return function(...s){i||(i=!0,t.packet({type:wt.ACK,id:e,data:s}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:wt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ga.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};Ga.prototype.reset=function(){this.attempts=0};Ga.prototype.setMin=function(n){this.ms=n};Ga.prototype.setMax=function(n){this.max=n};Ga.prototype.setJitter=function(n){this.jitter=n};class kg extends an{constructor(e,t){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ju(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ga({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const s=t.parser||KQe;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=t.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 t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new SN(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Ri(t,"open",function(){i.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Ri(t,"error",r);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),r(new Error("timeout")),t.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),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(Ri(e,"ping",this.onping.bind(this)),Ri(e,"data",this.ondata.bind(this)),Ri(e,"error",this.onerror.bind(this)),Ri(e,"close",this.onclose.bind(this)),Ri(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){nE(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new yN(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;ie()),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,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",s)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const rl={};function Ad(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=UQe(n,e.path||"/socket.io"),i=t.source,s=t.id,r=t.path,o=rl[s]&&r in rl[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let l;return a?l=new kg(i,e):(rl[s]||(rl[s]=new kg(i,e)),l=rl[s]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(Ad,{Manager:kg,Socket:yN,io:Ad,connect:Ad});const TN="/";console.log(TN);const $e=new Ad(TN,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const QQe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Fe(()=>{Be.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},XQe={class:"flex items-center space-x-2"},ZQe=["value","type","placeholder"],JQe=["value","min","max"],eXe=_("i",{"data-feather":"clipboard"},null,-1),tXe=[eXe],nXe=_("i",{"data-feather":"upload"},null,-1),iXe=[nXe],sXe=["accept"];function rXe(n,e,t,i,s,r){return O(),D("div",XQe,[n.useSlider?(O(),D("input",{key:1,type:"range",value:parseInt(s.inputValue),min:n.minSliderValue,max:n.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,JQe)):(O(),D("input",{key:0,value:s.inputValue,type:t.inputType,placeholder:s.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,ZQe)),_("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"},tXe),t.inputType==="file"?(O(),D("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"},iXe)):j("",!0),t.inputType==="file"?(O(),D("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,sXe)):j("",!0)])}const rE=gt(QQe,[["render",rXe]]);const oXe={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)}}},aXe={key:1,class:"flex flex-wrap"},lXe={key:2,class:"mb-2"};function cXe(n,e,t,i,s,r){return O(),D(qe,null,[s.isActive?(O(),D("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):j("",!0),Ee(_("div",{class:ze(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{"bg-white dark:bg-gray-800":t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=o=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>s.isHovered=!1),onClick:e[4]||(e[4]=xe((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:Zt({cursor:this.disableFocus?"":"pointer"})},[t.title?(O(),D("div",{key:0,onClick:e[1]||(e[1]=o=>s.shrink=!0),class:ze([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},fe(t.title),3)):j("",!0),t.isHorizontal?(O(),D("div",aXe,[Nn(n.$slots,"default")])):(O(),D("div",lXe,[Nn(n.$slots,"default")]))],38),[[Mt,s.shrink===!1]]),t.is_subcard?Ee((O(),D("div",{key:1,onClick:e[5]||(e[5]=o=>s.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"},fe(t.title),513)),[[Mt,s.shrink===!0]]):Ee((O(),D("div",{key:2,onClick:e[6]||(e[6]=o=>s.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)),[[Mt,s.shrink===!0]])],64)}const uc=gt(oXe,[["render",cXe]]),xN="/assets/python_block-4008a934.png",CN="/assets/javascript_block-5e59df30.svg",RN="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==",AN="/assets/cpp_block-109b2fbe.png",wN="/assets/html5_block-205d2852.png",NN="/assets/LaTeX_block-06b165c0.png",ON="/assets/bash_block-7ca80e4e.png",dXe="/assets/rec_on-78d31957.svg",uXe="/assets/rec_off-fb27b641.svg";const pXe="/";async function tC(n,e="",t=[]){return new Promise((i,s)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?r.innerHTML=`

${n}

@@ -161,15 +161,15 @@ Response: Error: `+e.error,4,!1);this.isLoading=!1},async remountExtension(n){await this.unmountExtension(n),await this.mountExtension(n)},onExtensionReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log(n),ke.post("/reinstall_extension",{name:n.extension.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_extension",e),e.data.status?this.$store.state.toast.showToast("Extension reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall extension",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}))},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,ke.post("/reinstall_personality",{name:n.personality.path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(n){n.target.src=ca},extensionImgPlacehodler(n){n.target.src=Dnt},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()},activated(){},computed:{rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return Ai;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Ai}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?this.$store.state.modelsZoo[n].avatar:Ai}catch{console.log("error")}if(!this.isMounted)return Ai;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return Ai}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},whisperModels(){return["base","base.en","base.fr","base.es","small","small.en","small.fr","small.es","medium","medium.en","medium.fr","medium.es","large","large.en","large.fr","large.es"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return"/user_infos/"+this.$store.state.config.user_avatar},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},enable_voice_service:{get(){return this.$store.state.config.enable_voice_service},set(n){this.$store.state.config.enable_voice_service=n}},current_language:{get(){return this.$store.state.config.current_language},set(n){console.log("Current voice set to ",n),this.$store.state.config.current_language=n}},current_voice:{get(){return this.$store.state.config.current_voice===null||this.$store.state.config.current_voice===void 0?(console.log("current voice",this.$store.state.config.current_voice),"main_voice"):this.$store.state.config.current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},db_path:{get(){return this.$store.state.config.db_path},set(n){this.$store.state.config.db_path=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},mountedExtensions:{get(){return console.log("this.$store.state.mountedExtensions:",this.$store.state.mountedExtensions),this.$store.state.mountedExtensions},set(n){this.$store.commit("setActiveExtensions",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);if(n>-1)return this.bindingsZoo[n].name},active_pesonality(){if(!this.isMounted)return;const n=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(n>-1)return this.personalities[n].name},speed_computed(){return Ki(this.addModel.speed)},total_size_computed(){return Ki(this.addModel.total_size)},downloaded_size_computed(){return Ki(this.addModel.downloaded_size)}},watch:{enable_voice_service(n){n||(this.configFile.auto_read=!1)},bec_collapsed(){Fe(()=>{Be.replace()})},pc_collapsed(){Fe(()=>{Be.replace()})},mc_collapsed(){Fe(()=>{Be.replace()})},sc_collapsed(){Fe(()=>{Be.replace()})},showConfirmation(){Fe(()=>{Be.replace()})},mzl_collapsed(){Fe(()=>{Be.replace()})},pzl_collapsed(){Fe(()=>{Be.replace()})},ezl_collapsed(){Fe(()=>{Be.replace()})},bzl_collapsed(){Fe(()=>{Be.replace()})},all_collapsed(n){this.collapseAll(n),Fe(()=>{Be.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Fe(()=>{Be.replace()})},isLoading(){Fe(()=>{Be.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Fe(()=>{Be.replace()})}},async beforeRouteLeave(n){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}},he=n=>(lo("data-v-2cbc8507"),n=n(),co(),n),Qit={class:"container overflow-y-scroll flex flex-row 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"},Xit={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Zit={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Jit=he(()=>_("i",{"data-feather":"x"},null,-1)),est=[Jit],tst=he(()=>_("i",{"data-feather":"check"},null,-1)),nst=[tst],ist={key:1,class:"flex gap-3 flex-1 items-center"},sst=he(()=>_("i",{"data-feather":"save"},null,-1)),rst=[sst],ost=he(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),ast=[ost],lst=he(()=>_("i",{"data-feather":"list"},null,-1)),cst=[lst],dst={class:"flex gap-3 flex-1 items-center justify-end"},ust=he(()=>_("i",{"data-feather":"trash-2"},null,-1)),pst=[ust],_st=he(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),hst=[_st],fst=he(()=>_("i",{"data-feather":"arrow-up-circle"},null,-1)),mst={key:0},gst=he(()=>_("i",{"data-feather":"alert-circle"},null,-1)),bst=[gst],Est={class:"flex gap-3 items-center"},Sst={key:0,class:"flex gap-3 items-center"},vst=he(()=>_("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),yst=he(()=>_("i",{"data-feather":"check"},null,-1)),Tst=[yst],xst={key:1,role:"status"},Cst=he(()=>_("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"},[_("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"}),_("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)),Rst=he(()=>_("span",{class:"sr-only"},"Loading...",-1)),Ast={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},wst={class:"flex flex-row p-3"},Nst=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Ost=[Nst],Ist=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Mst=[Ist],Dst=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Lst=he(()=>_("div",{class:"mr-2"},"|",-1)),kst={class:"text-base font-semibold cursor-pointer select-none items-center"},Pst={class:"flex gap-2 items-center"},Ust={key:0},Fst={class:"flex gap-2 items-center"},Bst=["src"],Gst={class:"font-bold font-large text-lg"},Vst={key:1},Hst={class:"flex gap-2 items-center"},zst=["src"],qst={class:"font-bold font-large text-lg"},Yst=he(()=>_("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),$st={class:"font-bold font-large text-lg"},Wst=he(()=>_("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Kst={class:"font-bold font-large text-lg"},jst={class:"mb-2"},Qst=he(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[_("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"})]),je(" CPU Ram usage: ")],-1)),Xst={class:"flex flex-col mx-2"},Zst=he(()=>_("b",null,"Avaliable ram: ",-1)),Jst=he(()=>_("b",null,"Ram usage: ",-1)),ert={class:"p-2"},trt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},nrt={class:"mb-2"},irt=he(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),je(" Disk usage: ")],-1)),srt={class:"flex flex-col mx-2"},rrt=he(()=>_("b",null,"Avaliable disk space: ",-1)),ort=he(()=>_("b",null,"Disk usage: ",-1)),art={class:"p-2"},lrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},crt={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},drt=["src"],urt={class:"flex flex-col mx-2"},prt=he(()=>_("b",null,"Model: ",-1)),_rt=he(()=>_("b",null,"Avaliable vram: ",-1)),hrt=he(()=>_("b",null,"GPU usage: ",-1)),frt={class:"p-2"},mrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},grt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},brt={class:"flex flex-row p-3"},Ert=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Srt=[Ert],vrt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),yrt=[vrt],Trt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),xrt={class:"flex flex-col mb-2 px-3 pb-2"},Crt={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"},Rrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),Art={class:"text-center items-center"},wrt={class:"flex flex-row"},Nrt=he(()=>_("option",{value:"cpu"},"CPU",-1)),Ort=he(()=>_("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),Irt=he(()=>_("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Mrt=he(()=>_("option",{value:"nvidia"},"NVIDIA",-1)),Drt=he(()=>_("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Lrt=he(()=>_("option",{value:"amd"},"AMD",-1)),krt=he(()=>_("option",{value:"apple-intel"},"Apple Intel",-1)),Prt=he(()=>_("option",{value:"apple-silicon"},"Apple Silicon",-1)),Urt=[Nrt,Ort,Irt,Mrt,Drt,Lrt,krt,Prt],Frt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Brt={style:{width:"100%"}},Grt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),Vrt={class:"flex flex-row"},Hrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),zrt={class:"flex flex-row"},qrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),Yrt={class:"flex flex-row"},$rt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Wrt={class:"flex flex-row"},Krt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),jrt={class:"flex flex-row"},Qrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),Xrt={class:"flex flex-row"},Zrt={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"},Jrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),eot={style:{width:"100%"}},tot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),not={style:{width:"100%"}},iot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),sot={style:{width:"100%"}},rot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),oot={style:{width:"100%"}},aot={for:"avatar-upload"},lot=["src"],cot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),dot={class:"flex flex-row"},uot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"min_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)),pot={style:{width:"100%"}},_ot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},hot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),fot={class:"flex flex-row"},mot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),got={class:"flex flex-row"},bot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"summerize_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Continuous Learning from discussions:")],-1)),Eot={class:"flex flex-row"},Sot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),vot={class:"flex flex-row"},yot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),Tot={class:"flex flex-row"},xot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),Cot={class:"flex flex-row"},Rot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),Aot=he(()=>_("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),wot=he(()=>_("option",{value:"model_embedding"},"Model Embedding",-1)),Not=[Aot,wot],Oot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),Iot=he(()=>_("option",{value:"PCA"},"PCA",-1)),Mot=he(()=>_("option",{value:"TSNE"},"TSNE",-1)),Dot=[Iot,Mot],Lot=he(()=>_("td",{style:{"min-width":"200px"}},[_("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)),kot={class:"flex flex-row"},Pot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),Uot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),Fot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),Bot={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"},Got=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),Vot={class:"flex flex-row"},Hot={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"},zot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),qot={class:"flex flex-row"},Yot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),$ot={class:"flex flex-row"},Wot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"force_output_language_to_be",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force AI to answer in this language:")],-1)),Kot={class:"flex flex-row"},jot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),Qot={class:"flex flex-row"},Xot={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"},Zot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Jot={class:"flex flex-row"},eat=["value"],tat={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"},nat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),iat={class:"flex flex-row"},sat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),rat={class:"flex flex-row"},oat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),aat={class:"flex flex-row"},lat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),cat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),dat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),uat=["value"],pat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),_at=["value"],hat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},fat={class:"flex flex-row p-3"},mat=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),gat=[mat],bat=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Eat=[bat],Sat=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Servers configurations",-1)),vat={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"},yat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),Tat={style:{width:"100%"}},xat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),Cat={style:{width:"100%"}},Rat={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"},Aat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),wat={class:"flex flex-row"},Nat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Oat=[Nat],Iat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),Mat={class:"flex flex-row"},Dat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),Lat={class:"flex flex-row"},kat={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"},Pat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),Uat={class:"flex flex-row"},Fat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Bat=[Fat],Gat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),Vat={class:"flex flex-row"},Hat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),zat={class:"flex flex-row"},qat={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"},Yat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),$at={class:"flex flex-row"},Wat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Kat=[Wat],jat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),Qat={class:"flex flex-row"},Xat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),Zat={class:"flex flex-row"},Jat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),elt={class:"flex flex-row"},tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),ilt={class:"flex flex-row"},slt=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),rlt=[slt],olt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),alt={class:"flex flex-row"},llt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),clt={class:"flex flex-row"},dlt={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"},ult=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),plt={class:"flex flex-row"},_lt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),hlt={class:"flex flex-row"},flt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),mlt={class:"flex flex-row"},glt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},blt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),Elt={class:"flex flex-row"},Slt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall xTTS service:")],-1)),vlt={class:"flex flex-row"},ylt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),Tlt={class:"flex flex-row"},xlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),Clt={class:"flex flex-row"},Rlt=["disabled"],Alt=["value"],wlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),Nlt={class:"flex flex-row"},Olt=["disabled"],Ilt=["value"],Mlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),Dlt={class:"flex flex-row"},Llt=["disabled"],klt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone 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=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],Vlt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Hlt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},zlt=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),qlt={key:1,class:"mr-2"},Ylt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},$lt={class:"flex gap-1 items-center"},Wlt=["src"],Klt={class:"font-bold font-large text-lg line-clamp-1"},jlt={key:0,class:"mb-2"},Qlt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Xlt=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Zlt=[Xlt],Jlt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),ect=[Jlt],tct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},nct={class:"flex flex-row p-3"},ict=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),sct=[ict],rct=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),oct=[rct],act=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),lct={class:"flex flex-row items-center"},cct={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},dct=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),uct={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},pct=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),_ct={key:2,class:"mr-2"},hct={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},fct={class:"flex gap-1 items-center"},mct=["src"],gct={class:"font-bold font-large text-lg line-clamp-1"},bct={class:"mx-2 mb-4"},Ect={class:"relative"},Sct={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},vct={key:0},yct=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Tct=[yct],xct={key:1},Cct=he(()=>_("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"},[_("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)),Rct=[Cct],Act=he(()=>_("label",{for:"only_installed"},"Show only installed models",-1)),wct=he(()=>_("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)),Nct={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Oct=he(()=>_("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"},[_("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"}),_("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)),Ict=he(()=>_("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Mct=[Oct,Ict],Dct={key:1,class:"mb-2"},Lct={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},kct=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Pct=[kct],Uct=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Fct=[Uct],Bct={class:"mb-2"},Gct={class:"p-2"},Vct={class:"mb-3"},Hct=he(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),zct={key:0},qct={class:"mb-3"},Yct=he(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),$ct={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},Wct=he(()=>_("div",{role:"status",class:"justify-center"},null,-1)),Kct={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},jct={class:"w-full p-2"},Qct={class:"flex justify-between mb-1"},Xct=Nu(' Downloading Loading...',1),Zct={class:"text-sm font-medium text-blue-700 dark:text-white"},Jct=["title"],edt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tdt={class:"flex justify-between mb-1"},ndt={class:"text-base font-medium text-blue-700 dark:text-white"},idt={class:"text-sm font-medium text-blue-700 dark:text-white"},sdt={class:"flex flex-grow"},rdt={class:"flex flex-row flex-grow gap-3"},odt={class:"p-2 text-center grow"},adt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ldt={class:"flex flex-row p-3 items-center"},cdt=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),ddt=[cdt],udt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),pdt=[udt],_dt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),hdt={key:0,class:"mr-2"},fdt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},mdt={key:1,class:"mr-2"},gdt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},bdt={key:0,class:"flex -space-x-4 items-center"},Edt={class:"group items-center flex flex-row"},Sdt=["onClick"],vdt=["src","title"],ydt=["onClick"],Tdt=he(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),xdt=[Tdt],Cdt=he(()=>_("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"},[_("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)),Rdt=[Cdt],Adt={class:"mx-2 mb-4"},wdt=he(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Ndt={class:"relative"},Odt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Idt={key:0},Mdt=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Ddt=[Mdt],Ldt={key:1},kdt=he(()=>_("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"},[_("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)),Pdt=[kdt],Udt={key:0,class:"mx-2 mb-4"},Fdt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Bdt=["selected"],Gdt={key:0,class:"mb-2"},Vdt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Hdt=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),zdt=[Hdt],qdt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Ydt=[qdt],$dt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wdt={class:"flex flex-row p-3 items-center"},Kdt=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),jdt=[Kdt],Qdt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Xdt=[Qdt],Zdt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),Jdt={key:0,class:"mr-2"},eut={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},tut={key:0,class:"flex -space-x-4 items-center"},nut={class:"group items-center flex flex-row"},iut=["src","title"],sut=["onClick"],rut=he(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),out=[rut],aut={class:"mx-2 mb-4"},lut=he(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),cut={class:"relative"},dut={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},uut={key:0},put=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),_ut=[put],hut={key:1},fut=he(()=>_("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"},[_("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)),mut=[fut],gut={key:0,class:"mx-2 mb-4"},but={for:"extCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Eut=["selected"],Sut={key:0,class:"mb-2"},vut={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},yut=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Tut=[yut],xut=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Cut=[xut],Rut={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Aut={class:"flex flex-row p-3 items-center"},wut=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Nut=[wut],Out=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Iut=[Out],Mut=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),Dut={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Lut={class:"flex flex-row"},kut=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Put=[kut],Uut=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Fut=[Uut],But=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),Gut={class:"m-2"},Vut={class:"flex flex-row gap-2 items-center"},Hut=he(()=>_("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),zut={class:"m-2"},qut=he(()=>_("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),Yut={class:"m-2"},$ut={class:"flex flex-col align-bottom"},Wut={class:"relative"},Kut=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),jut={class:"absolute right-0"},Qut={class:"m-2"},Xut={class:"flex flex-col align-bottom"},Zut={class:"relative"},Jut=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),ept={class:"absolute right-0"},tpt={class:"m-2"},npt={class:"flex flex-col align-bottom"},ipt={class:"relative"},spt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),rpt={class:"absolute right-0"},opt={class:"m-2"},apt={class:"flex flex-col align-bottom"},lpt={class:"relative"},cpt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),dpt={class:"absolute right-0"},upt={class:"m-2"},ppt={class:"flex flex-col align-bottom"},_pt={class:"relative"},hpt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),fpt={class:"absolute right-0"},mpt={class:"m-2"},gpt={class:"flex flex-col align-bottom"},bpt={class:"relative"},Ept=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Spt={class:"absolute right-0"};function vpt(n,e,t,i,s,r){const o=ut("Card"),a=ut("BindingEntry"),l=ut("RadioOptions"),c=ut("model-entry"),d=ut("personality-entry"),u=ut("ExtensionEntry"),h=ut("AddModelDialog"),m=ut("ChoiceDialog");return O(),D(qe,null,[_("div",Qit,[_("div",Xit,[s.showConfirmation?(O(),D("div",Zit,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=xe(f=>s.showConfirmation=!1,["stop"]))},est),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=xe(f=>r.save_configuration(),["stop"]))},nst)])):j("",!0),s.showConfirmation?j("",!0):(O(),D("div",ist,[_("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>s.showConfirmation=!0)},rst),_("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=f=>r.reset_configuration())},ast),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=xe(f=>s.all_collapsed=!s.all_collapsed,["stop"]))},cst)])),_("div",dst,[_("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>r.api_get_req("clear_uploads").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},pst),_("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>r.api_get_req("restart_program").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},hst),_("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=f=>r.api_get_req("update_software").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[fst,s.has_updates?(O(),D("div",mst,bst)):j("",!0)]),_("div",Est,[s.settingsChanged?(O(),D("div",Sst,[vst,s.isLoading?j("",!0):(O(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=xe(f=>r.applyConfiguration(),["stop"]))},Tst))])):j("",!0),s.isLoading?(O(),D("div",xst,[_("p",null,fe(s.loading_text),1),Cst,Rst])):j("",!0)])])]),_("div",{class:ze(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[_("div",Ast,[_("div",wst,[_("button",{onClick:e[9]||(e[9]=xe(f=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Ost,512),[[Mt,s.sc_collapsed]]),Ee(_("div",null,Mst,512),[[Mt,!s.sc_collapsed]]),Dst,Lst,_("div",kst,[_("div",Pst,[_("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(O(),D("div",Ust,[(O(!0),D(qe,null,lt(r.vramUsage.gpus,f=>(O(),D("div",Fst,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Bst),_("h3",Gst,[_("div",null,fe(r.computedFileSize(f.used_vram))+" / "+fe(r.computedFileSize(f.total_vram))+" ("+fe(f.percentage)+"%) ",1)])]))),256))])):j("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(O(),D("div",Vst,[_("div",Hst,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,zst),_("h3",qst,[_("div",null,fe(r.vramUsage.gpus.length)+"x ",1)])])])):j("",!0)]),Yst,_("h3",$st,[_("div",null,fe(r.ram_usage)+" / "+fe(r.ram_total_space)+" ("+fe(r.ram_percent_usage)+"%)",1)]),Wst,_("h3",Kst,[_("div",null,fe(r.disk_binding_models_usage)+" / "+fe(r.disk_total_space)+" ("+fe(r.disk_percent_usage)+"%)",1)])])])])]),_("div",{class:ze([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",jst,[Qst,_("div",Xst,[_("div",null,[Zst,je(fe(r.ram_available_space),1)]),_("div",null,[Jst,je(" "+fe(r.ram_usage)+" / "+fe(r.ram_total_space)+" ("+fe(r.ram_percent_usage)+")% ",1)])]),_("div",ert,[_("div",trt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),_("div",nrt,[irt,_("div",srt,[_("div",null,[rrt,je(fe(r.disk_available_space),1)]),_("div",null,[ort,je(" "+fe(r.disk_binding_models_usage)+" / "+fe(r.disk_total_space)+" ("+fe(r.disk_percent_usage)+"%)",1)])]),_("div",art,[_("div",lrt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(O(!0),D(qe,null,lt(r.vramUsage.gpus,f=>(O(),D("div",{class:"mb-2",key:f},[_("label",crt,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,drt),je(" GPU usage: ")]),_("div",urt,[_("div",null,[prt,je(fe(f.gpu_model),1)]),_("div",null,[_rt,je(fe(this.computedFileSize(f.available_space)),1)]),_("div",null,[hrt,je(" "+fe(this.computedFileSize(f.used_vram))+" / "+fe(this.computedFileSize(f.total_vram))+" ("+fe(f.percentage)+"%)",1)])]),_("div",frt,[_("div",mrt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),_("div",grt,[_("div",brt,[_("button",{onClick:e[10]||(e[10]=xe(f=>s.minconf_collapsed=!s.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Srt,512),[[Mt,s.minconf_collapsed]]),Ee(_("div",null,yrt,512),[[Mt,!s.minconf_collapsed]]),Trt])]),_("div",{class:ze([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",xrt,[Ie(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Crt,[_("tr",null,[Rrt,_("td",Art,[_("div",wrt,[Ee(_("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[11]||(e[11]=f=>r.configFile.hardware_mode=f),onChange:e[12]||(e[12]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Urt,544),[[qn,r.configFile.hardware_mode]])])])]),_("tr",null,[Frt,_("td",Brt,[Ee(_("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[13]||(e[13]=f=>r.configFile.db_path=f),onChange:e[14]||(e[14]=f=>s.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),[[Qe,r.configFile.db_path]])])]),_("tr",null,[Grt,_("td",null,[_("div",Vrt,[Ee(_("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[15]||(e[15]=f=>r.configFile.auto_show_browser=f),onChange:e[16]||(e[16]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.auto_show_browser]])])])]),_("tr",null,[Hrt,_("td",null,[_("div",zrt,[Ee(_("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[17]||(e[17]=f=>r.configFile.debug=f),onChange:e[18]||(e[18]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.debug]])])])]),_("tr",null,[qrt,_("td",null,[_("div",Yrt,[Ee(_("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[19]||(e[19]=f=>r.configFile.debug_log_file_path=f),onChange:e[20]||(e[20]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.debug_log_file_path]])])])]),_("tr",null,[$rt,_("td",null,[_("div",Wrt,[Ee(_("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[21]||(e[21]=f=>r.configFile.auto_save=f),onChange:e[22]||(e[22]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.auto_save]])])])]),_("tr",null,[Krt,_("td",null,[_("div",jrt,[Ee(_("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[23]||(e[23]=f=>r.configFile.auto_update=f),onChange:e[24]||(e[24]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.auto_update]])])])]),_("tr",null,[Qrt,_("td",null,[_("div",Xrt,[Ee(_("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[25]||(e[25]=f=>r.configFile.auto_title=f),onChange:e[26]||(e[26]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.auto_title]])])])])])]),_:1}),Ie(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Zrt,[_("tr",null,[Jrt,_("td",eot,[Ee(_("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[27]||(e[27]=f=>r.configFile.user_name=f),onChange:e[28]||(e[28]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.user_name]])])]),_("tr",null,[tot,_("td",not,[Ee(_("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[29]||(e[29]=f=>r.configFile.user_description=f),onChange:e[30]||(e[30]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.user_description]])])]),_("tr",null,[iot,_("td",sot,[Ee(_("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[31]||(e[31]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[32]||(e[32]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.override_personality_model_parameters]])])]),_("tr",null,[rot,_("td",oot,[_("label",aot,[_("img",{src:"/user_infos/"+r.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,lot)]),_("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[33]||(e[33]=(...f)=>r.uploadAvatar&&r.uploadAvatar(...f))},null,32)])]),_("tr",null,[cot,_("td",null,[_("div",dot,[Ee(_("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>r.configFile.use_user_name_in_discussions=f),onChange:e[35]||(e[35]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.use_user_name_in_discussions]])])])]),_("tr",null,[uot,_("td",pot,[Ee(_("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>r.configFile.min_n_predict=f),onChange:e[37]||(e[37]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.min_n_predict]])])])])]),_:1}),Ie(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",_ot,[_("tr",null,[hot,_("td",null,[_("div",fot,[Ee(_("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>r.configFile.use_files=f),onChange:e[39]||(e[39]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.use_files]])])])]),_("tr",null,[mot,_("td",null,[_("div",got,[Ee(_("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>r.configFile.use_discussions_history=f),onChange:e[41]||(e[41]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.use_discussions_history]])])])]),_("tr",null,[bot,_("td",null,[_("div",Eot,[Ee(_("input",{type:"checkbox",id:"summerize_discussion",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>r.configFile.summerize_discussion=f),onChange:e[43]||(e[43]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.summerize_discussion]])])])]),_("tr",null,[Sot,_("td",null,[_("div",vot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>r.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[45]||(e[45]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),_("tr",null,[yot,_("td",null,[_("div",Tot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>r.configFile.data_vectorization_activate=f),onChange:e[47]||(e[47]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.data_vectorization_activate]])])])]),_("tr",null,[xot,_("td",null,[_("div",Cot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[48]||(e[48]=f=>r.configFile.data_vectorization_build_keys_words=f),onChange:e[49]||(e[49]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.data_vectorization_build_keys_words]])])])]),_("tr",null,[Rot,_("td",null,[Ee(_("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[50]||(e[50]=f=>r.configFile.data_vectorization_method=f),onChange:e[51]||(e[51]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Not,544),[[qn,r.configFile.data_vectorization_method]])])]),_("tr",null,[Oot,_("td",null,[Ee(_("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[52]||(e[52]=f=>r.configFile.data_visualization_method=f),onChange:e[53]||(e[53]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Dot,544),[[qn,r.configFile.data_visualization_method]])])]),_("tr",null,[Lot,_("td",null,[_("div",kot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[54]||(e[54]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[55]||(e[55]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.data_vectorization_save_db]])])])]),_("tr",null,[Pot,_("td",null,[Ee(_("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[56]||(e[56]=f=>r.configFile.data_vectorization_chunk_size=f),onChange:e[57]||(e[57]=f=>s.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),[[Qe,r.configFile.data_vectorization_chunk_size]]),Ee(_("input",{"onUpdate:modelValue":e[58]||(e[58]=f=>r.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[59]||(e[59]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_chunk_size]])])]),_("tr",null,[Uot,_("td",null,[Ee(_("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[60]||(e[60]=f=>r.configFile.data_vectorization_overlap_size=f),onChange:e[61]||(e[61]=f=>s.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),[[Qe,r.configFile.data_vectorization_overlap_size]]),Ee(_("input",{"onUpdate:modelValue":e[62]||(e[62]=f=>r.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[63]||(e[63]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_overlap_size]])])]),_("tr",null,[Fot,_("td",null,[Ee(_("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[64]||(e[64]=f=>r.configFile.data_vectorization_nb_chunks=f),onChange:e[65]||(e[65]=f=>s.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),[[Qe,r.configFile.data_vectorization_nb_chunks]]),Ee(_("input",{"onUpdate:modelValue":e[66]||(e[66]=f=>r.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[67]||(e[67]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),Ie(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Bot,[_("tr",null,[Got,_("td",null,[_("div",Vot,[Ee(_("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[68]||(e[68]=f=>r.configFile.pdf_latex_path=f),onChange:e[69]||(e[69]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.pdf_latex_path]])])])])])]),_:1}),Ie(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Hot,[_("tr",null,[zot,_("td",null,[_("div",qot,[Ee(_("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[70]||(e[70]=f=>r.configFile.positive_boost=f),onChange:e[71]||(e[71]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.positive_boost]])])])]),_("tr",null,[Yot,_("td",null,[_("div",$ot,[Ee(_("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[72]||(e[72]=f=>r.configFile.negative_boost=f),onChange:e[73]||(e[73]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.negative_boost]])])])]),_("tr",null,[Wot,_("td",null,[_("div",Kot,[Ee(_("input",{type:"text",id:"force_output_language_to_be",required:"","onUpdate:modelValue":e[74]||(e[74]=f=>r.configFile.force_output_language_to_be=f),onChange:e[75]||(e[75]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.force_output_language_to_be]])])])]),_("tr",null,[jot,_("td",null,[_("div",Qot,[Ee(_("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[76]||(e[76]=f=>r.configFile.fun_mode=f),onChange:e[77]||(e[77]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.fun_mode]])])])])])]),_:1}),Ie(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Xot,[_("tr",null,[Zot,_("td",null,[_("div",Jot,[Ee(_("select",{id:"whisper_model","onUpdate:modelValue":e[78]||(e[78]=f=>r.configFile.audio_in_language=f),onChange:e[79]||(e[79]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(r.whisperModels,f=>(O(),D("option",{key:f,value:f},fe(f),9,eat))),128))],544),[[qn,r.configFile.audio_in_language]]),Ee(_("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[80]||(e[80]=f=>r.configFile.whisper_model=f),onChange:e[81]||(e[81]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.whisper_model]])])])])])]),_:1}),Ie(o,{title:"Browser Audio",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",tat,[_("tr",null,[nat,_("td",null,[_("div",iat,[Ee(_("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[82]||(e[82]=f=>r.configFile.activate_audio_infos=f),onChange:e[83]||(e[83]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.activate_audio_infos]])])])]),_("tr",null,[sat,_("td",null,[_("div",rat,[Ee(_("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[84]||(e[84]=f=>r.configFile.audio_auto_send_input=f),onChange:e[85]||(e[85]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.audio_auto_send_input]])])])]),_("tr",null,[oat,_("td",null,[_("div",aat,[Ee(_("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[86]||(e[86]=f=>r.configFile.auto_speak=f),onChange:e[87]||(e[87]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.auto_speak]])])])]),_("tr",null,[lat,_("td",null,[Ee(_("input",{id:"audio_pitch","onUpdate:modelValue":e[88]||(e[88]=f=>r.configFile.audio_pitch=f),onChange:e[89]||(e[89]=f=>s.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),[[Qe,r.configFile.audio_pitch]]),Ee(_("input",{"onUpdate:modelValue":e[90]||(e[90]=f=>r.configFile.audio_pitch=f),onChange:e[91]||(e[91]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.audio_pitch]])])]),_("tr",null,[cat,_("td",null,[Ee(_("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[92]||(e[92]=f=>r.configFile.audio_silenceTimer=f),onChange:e[93]||(e[93]=f=>s.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),[[Qe,r.configFile.audio_silenceTimer]]),Ee(_("input",{"onUpdate:modelValue":e[94]||(e[94]=f=>r.configFile.audio_silenceTimer=f),onChange:e[95]||(e[95]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.audio_silenceTimer]])])]),_("tr",null,[dat,_("td",null,[Ee(_("select",{id:"audio_in_language","onUpdate:modelValue":e[96]||(e[96]=f=>r.configFile.audio_in_language=f),onChange:e[97]||(e[97]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(r.audioLanguages,f=>(O(),D("option",{key:f.code,value:f.code},fe(f.name),9,uat))),128))],544),[[qn,r.configFile.audio_in_language]])])]),_("tr",null,[pat,_("td",null,[Ee(_("select",{id:"audio_out_voice","onUpdate:modelValue":e[98]||(e[98]=f=>r.configFile.audio_out_voice=f),onChange:e[99]||(e[99]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(s.audioVoices,f=>(O(),D("option",{key:f.name,value:f.name},fe(f.name),9,_at))),128))],544),[[qn,r.configFile.audio_out_voice]])])])])]),_:1})])],2)]),_("div",hat,[_("div",fat,[_("button",{onClick:e[100]||(e[100]=xe(f=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,gat,512),[[Mt,s.servers_conf_collapsed]]),Ee(_("div",null,Eat,512),[[Mt,!s.servers_conf_collapsed]]),Sat])]),_("div",{class:ze([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Ie(o,{title:"Lollms service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",vat,[_("tr",null,[yat,_("td",Tat,[Ee(_("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>r.configFile.host=f),onChange:e[102]||(e[102]=f=>s.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),[[Qe,r.configFile.host]])])]),_("tr",null,[xat,_("td",Cat,[Ee(_("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>r.configFile.port=f),onChange:e[104]||(e[104]=f=>s.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),[[Qe,r.configFile.port]])])])])]),_:1}),Ie(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Rat,[_("tr",null,[Aat,_("td",null,[_("div",wat,[Ee(_("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>r.configFile.enable_sd_service=f),onChange:e[106]||(e[106]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.enable_sd_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[107]||(e[107]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Oat)])]),_("tr",null,[Iat,_("td",null,[_("div",Mat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[108]||(e[108]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service")])])]),_("tr",null,[Dat,_("td",null,[_("div",Lat,[Ee(_("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[109]||(e[109]=f=>r.configFile.sd_base_url=f),onChange:e[110]||(e[110]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.sd_base_url]])])])])])]),_:1}),Ie(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",kat,[_("tr",null,[Pat,_("td",null,[_("div",Uat,[Ee(_("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[111]||(e[111]=f=>r.configFile.enable_ollama_service=f),onChange:e[112]||(e[112]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.enable_ollama_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[113]||(e[113]=f=>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}},he=n=>(lo("data-v-f83b5f82"),n=n(),co(),n),Qit={class:"container overflow-y-scroll flex flex-row 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"},Xit={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Zit={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Jit=he(()=>_("i",{"data-feather":"x"},null,-1)),est=[Jit],tst=he(()=>_("i",{"data-feather":"check"},null,-1)),nst=[tst],ist={key:1,class:"flex gap-3 flex-1 items-center"},sst=he(()=>_("i",{"data-feather":"save"},null,-1)),rst=[sst],ost=he(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),ast=[ost],lst=he(()=>_("i",{"data-feather":"list"},null,-1)),cst=[lst],dst={class:"flex gap-3 flex-1 items-center justify-end"},ust=he(()=>_("i",{"data-feather":"trash-2"},null,-1)),pst=[ust],_st=he(()=>_("i",{"data-feather":"refresh-ccw"},null,-1)),hst=[_st],fst=he(()=>_("i",{"data-feather":"arrow-up-circle"},null,-1)),mst={key:0},gst=he(()=>_("i",{"data-feather":"alert-circle"},null,-1)),bst=[gst],Est={class:"flex gap-3 items-center"},Sst={key:0,class:"flex gap-3 items-center"},vst=he(()=>_("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),yst=he(()=>_("i",{"data-feather":"check"},null,-1)),Tst=[yst],xst={key:1,role:"status"},Cst=he(()=>_("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"},[_("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"}),_("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)),Rst=he(()=>_("span",{class:"sr-only"},"Loading...",-1)),Ast={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},wst={class:"flex flex-row p-3"},Nst=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Ost=[Nst],Ist=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Mst=[Ist],Dst=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),Lst=he(()=>_("div",{class:"mr-2"},"|",-1)),kst={class:"text-base font-semibold cursor-pointer select-none items-center"},Pst={class:"flex gap-2 items-center"},Ust={key:0},Fst={class:"flex gap-2 items-center"},Bst=["src"],Gst={class:"font-bold font-large text-lg"},Vst={key:1},Hst={class:"flex gap-2 items-center"},zst=["src"],qst={class:"font-bold font-large text-lg"},Yst=he(()=>_("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),$st={class:"font-bold font-large text-lg"},Wst=he(()=>_("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),Kst={class:"font-bold font-large text-lg"},jst={class:"mb-2"},Qst=he(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[_("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"})]),je(" CPU Ram usage: ")],-1)),Xst={class:"flex flex-col mx-2"},Zst=he(()=>_("b",null,"Avaliable ram: ",-1)),Jst=he(()=>_("b",null,"Ram usage: ",-1)),ert={class:"p-2"},trt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},nrt={class:"mb-2"},irt=he(()=>_("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[_("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),je(" Disk usage: ")],-1)),srt={class:"flex flex-col mx-2"},rrt=he(()=>_("b",null,"Avaliable disk space: ",-1)),ort=he(()=>_("b",null,"Disk usage: ",-1)),art={class:"p-2"},lrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},crt={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},drt=["src"],urt={class:"flex flex-col mx-2"},prt=he(()=>_("b",null,"Model: ",-1)),_rt=he(()=>_("b",null,"Avaliable vram: ",-1)),hrt=he(()=>_("b",null,"GPU usage: ",-1)),frt={class:"p-2"},mrt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},grt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},brt={class:"flex flex-row p-3"},Ert=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Srt=[Ert],vrt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),yrt=[vrt],Trt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),xrt={class:"flex flex-col mb-2 px-3 pb-2"},Crt={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"},Rrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),Art={class:"text-center items-center"},wrt={class:"flex flex-row"},Nrt=he(()=>_("option",{value:"cpu"},"CPU",-1)),Ort=he(()=>_("option",{value:"cpu-noavx"},"CPU (No AVX)",-1)),Irt=he(()=>_("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1)),Mrt=he(()=>_("option",{value:"nvidia"},"NVIDIA",-1)),Drt=he(()=>_("option",{value:"amd-noavx"},"AMD (No AVX)",-1)),Lrt=he(()=>_("option",{value:"amd"},"AMD",-1)),krt=he(()=>_("option",{value:"apple-intel"},"Apple Intel",-1)),Prt=he(()=>_("option",{value:"apple-silicon"},"Apple Silicon",-1)),Urt=[Nrt,Ort,Irt,Mrt,Drt,Lrt,krt,Prt],Frt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),Brt={style:{width:"100%"}},Grt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),Vrt={class:"flex flex-row"},Hrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),zrt={class:"flex flex-row"},qrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),Yrt={class:"flex flex-row"},$rt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),Wrt={class:"flex flex-row"},Krt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),jrt={class:"flex flex-row"},Qrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),Xrt={class:"flex flex-row"},Zrt={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"},Jrt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),eot={style:{width:"100%"}},tot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),not={style:{width:"100%"}},iot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),sot={style:{width:"100%"}},rot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),oot={style:{width:"100%"}},aot={for:"avatar-upload"},lot=["src"],cot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),dot={class:"flex flex-row"},uot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"min_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)),pot={style:{width:"100%"}},_ot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},hot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),fot={class:"flex flex-row"},mot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),got={class:"flex flex-row"},bot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"summerize_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Continuous Learning from discussions:")],-1)),Eot={class:"flex flex-row"},Sot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),vot={class:"flex flex-row"},yot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),Tot={class:"flex flex-row"},xot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),Cot={class:"flex flex-row"},Rot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),Aot=he(()=>_("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),wot=he(()=>_("option",{value:"model_embedding"},"Model Embedding",-1)),Not=[Aot,wot],Oot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),Iot=he(()=>_("option",{value:"PCA"},"PCA",-1)),Mot=he(()=>_("option",{value:"TSNE"},"TSNE",-1)),Dot=[Iot,Mot],Lot=he(()=>_("td",{style:{"min-width":"200px"}},[_("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)),kot={class:"flex flex-row"},Pot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),Uot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),Fot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),Bot={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"},Got=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),Vot={class:"flex flex-row"},Hot={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"},zot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),qot={class:"flex flex-row"},Yot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),$ot={class:"flex flex-row"},Wot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"force_output_language_to_be",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force AI to answer in this language:")],-1)),Kot={class:"flex flex-row"},jot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),Qot={class:"flex flex-row"},Xot={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"},Zot=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),Jot={class:"flex flex-row"},eat=["value"],tat={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"},nat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),iat={class:"flex flex-row"},sat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),rat={class:"flex flex-row"},oat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),aat={class:"flex flex-row"},lat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),cat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),dat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),uat=["value"],pat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),_at=["value"],hat={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},fat={class:"flex flex-row p-3"},mat=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),gat=[mat],bat=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Eat=[bat],Sat=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Servers configurations",-1)),vat={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"},yat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),Tat={style:{width:"100%"}},xat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),Cat={style:{width:"100%"}},Rat={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"},Aat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),wat={class:"flex flex-row"},Nat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Oat=[Nat],Iat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),Mat={class:"flex flex-row"},Dat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),Lat={class:"flex flex-row"},kat={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"},Pat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),Uat={class:"flex flex-row"},Fat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Bat=[Fat],Gat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),Vat={class:"flex flex-row"},Hat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),zat={class:"flex flex-row"},qat={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"},Yat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),$at={class:"flex flex-row"},Wat=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),Kat=[Wat],jat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),Qat={class:"flex flex-row"},Xat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),Zat={class:"flex flex-row"},Jat=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),elt={class:"flex flex-row"},tlt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),ilt={class:"flex flex-row"},slt=he(()=>_("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)),rlt=[slt],olt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),alt={class:"flex flex-row"},llt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),clt={class:"flex flex-row"},dlt={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"},ult=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),plt={class:"flex flex-row"},_lt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),hlt={class:"flex flex-row"},flt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),mlt={class:"flex flex-row"},glt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},blt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"enable_voice_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable voice service:")],-1)),Elt={class:"flex flex-row"},Slt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"install_xtts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall xTTS service:")],-1)),vlt={class:"flex flex-row"},ylt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"xtts_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts base url:")],-1)),Tlt={class:"flex flex-row"},xlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),Clt={class:"flex flex-row"},Rlt=["disabled"],Alt=["value"],wlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),Nlt={class:"flex flex-row"},Olt=["disabled"],Ilt=["value"],Mlt=he(()=>_("td",{style:{"min-width":"200px"}},[_("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),Dlt={class:"flex flex-row"},Llt=["disabled"],klt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone 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=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Flt=[Ult],Blt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Glt=[Blt],Vlt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),Hlt={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},zlt=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),qlt={key:1,class:"mr-2"},Ylt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},$lt={class:"flex gap-1 items-center"},Wlt=["src"],Klt={class:"font-bold font-large text-lg line-clamp-1"},jlt={key:0,class:"mb-2"},Qlt={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Xlt=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Zlt=[Xlt],Jlt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),ect=[Jlt],tct={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},nct={class:"flex flex-row p-3"},ict=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),sct=[ict],rct=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),oct=[rct],act=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),lct={class:"flex flex-row items-center"},cct={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},dct=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),uct={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},pct=he(()=>_("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),_ct={key:2,class:"mr-2"},hct={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},fct={class:"flex gap-1 items-center"},mct=["src"],gct={class:"font-bold font-large text-lg line-clamp-1"},bct={class:"mx-2 mb-4"},Ect={class:"relative"},Sct={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},vct={key:0},yct=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Tct=[yct],xct={key:1},Cct=he(()=>_("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"},[_("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)),Rct=[Cct],Act=he(()=>_("label",{for:"only_installed"},"Show only installed models",-1)),wct=he(()=>_("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)),Nct={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Oct=he(()=>_("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"},[_("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"}),_("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)),Ict=he(()=>_("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),Mct=[Oct,Ict],Dct={key:1,class:"mb-2"},Lct={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},kct=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Pct=[kct],Uct=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Fct=[Uct],Bct={class:"mb-2"},Gct={class:"p-2"},Vct={class:"mb-3"},Hct=he(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),zct={key:0},qct={class:"mb-3"},Yct=he(()=>_("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),$ct={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},Wct=he(()=>_("div",{role:"status",class:"justify-center"},null,-1)),Kct={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},jct={class:"w-full p-2"},Qct={class:"flex justify-between mb-1"},Xct=Nu(' Downloading Loading...',1),Zct={class:"text-sm font-medium text-blue-700 dark:text-white"},Jct=["title"],edt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tdt={class:"flex justify-between mb-1"},ndt={class:"text-base font-medium text-blue-700 dark:text-white"},idt={class:"text-sm font-medium text-blue-700 dark:text-white"},sdt={class:"flex flex-grow"},rdt={class:"flex flex-row flex-grow gap-3"},odt={class:"p-2 text-center grow"},adt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ldt={class:"flex flex-row p-3 items-center"},cdt=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),ddt=[cdt],udt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),pdt=[udt],_dt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),hdt={key:0,class:"mr-2"},fdt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},mdt={key:1,class:"mr-2"},gdt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},bdt={key:0,class:"flex -space-x-4 items-center"},Edt={class:"group items-center flex flex-row"},Sdt=["onClick"],vdt=["src","title"],ydt=["onClick"],Tdt=he(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),xdt=[Tdt],Cdt=he(()=>_("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"},[_("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)),Rdt=[Cdt],Adt={class:"mx-2 mb-4"},wdt=he(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),Ndt={class:"relative"},Odt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Idt={key:0},Mdt=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),Ddt=[Mdt],Ldt={key:1},kdt=he(()=>_("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"},[_("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)),Pdt=[kdt],Udt={key:0,class:"mx-2 mb-4"},Fdt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Bdt=["selected"],Gdt={key:0,class:"mb-2"},Vdt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Hdt=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),zdt=[Hdt],qdt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Ydt=[qdt],$dt={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wdt={class:"flex flex-row p-3 items-center"},Kdt=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),jdt=[Kdt],Qdt=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Xdt=[Qdt],Zdt=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),Jdt={key:0,class:"mr-2"},eut={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},tut={key:0,class:"flex -space-x-4 items-center"},nut={class:"group items-center flex flex-row"},iut=["src","title"],sut=["onClick"],rut=he(()=>_("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[_("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"},[_("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)),out=[rut],aut={class:"mx-2 mb-4"},lut=he(()=>_("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),cut={class:"relative"},dut={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},uut={key:0},put=he(()=>_("div",{role:"status"},[_("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"},[_("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"}),_("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"})]),_("span",{class:"sr-only"},"Loading...")],-1)),_ut=[put],hut={key:1},fut=he(()=>_("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"},[_("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)),mut=[fut],gut={key:0,class:"mx-2 mb-4"},but={for:"extCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Eut=["selected"],Sut={key:0,class:"mb-2"},vut={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},yut=he(()=>_("i",{"data-feather":"chevron-up"},null,-1)),Tut=[yut],xut=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Cut=[xut],Rut={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Aut={class:"flex flex-row p-3 items-center"},wut=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Nut=[wut],Out=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Iut=[Out],Mut=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),Dut={class:"flex flex-col mb-2 p-3 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Lut={class:"flex flex-row"},kut=he(()=>_("i",{"data-feather":"chevron-right"},null,-1)),Put=[kut],Uut=he(()=>_("i",{"data-feather":"chevron-down"},null,-1)),Fut=[Uut],But=he(()=>_("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),Gut={class:"m-2"},Vut={class:"flex flex-row gap-2 items-center"},Hut=he(()=>_("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),zut={class:"m-2"},qut=he(()=>_("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),Yut={class:"m-2"},$ut={class:"flex flex-col align-bottom"},Wut={class:"relative"},Kut=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),jut={class:"absolute right-0"},Qut={class:"m-2"},Xut={class:"flex flex-col align-bottom"},Zut={class:"relative"},Jut=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),ept={class:"absolute right-0"},tpt={class:"m-2"},npt={class:"flex flex-col align-bottom"},ipt={class:"relative"},spt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),rpt={class:"absolute right-0"},opt={class:"m-2"},apt={class:"flex flex-col align-bottom"},lpt={class:"relative"},cpt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),dpt={class:"absolute right-0"},upt={class:"m-2"},ppt={class:"flex flex-col align-bottom"},_pt={class:"relative"},hpt=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),fpt={class:"absolute right-0"},mpt={class:"m-2"},gpt={class:"flex flex-col align-bottom"},bpt={class:"relative"},Ept=he(()=>_("p",{class:"absolute left-0 mt-6"},[_("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),Spt={class:"absolute right-0"};function vpt(n,e,t,i,s,r){const o=ut("Card"),a=ut("BindingEntry"),l=ut("RadioOptions"),c=ut("model-entry"),d=ut("personality-entry"),u=ut("ExtensionEntry"),h=ut("AddModelDialog"),m=ut("ChoiceDialog");return O(),D(qe,null,[_("div",Qit,[_("div",Xit,[s.showConfirmation?(O(),D("div",Zit,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=xe(f=>s.showConfirmation=!1,["stop"]))},est),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=xe(f=>r.save_configuration(),["stop"]))},nst)])):j("",!0),s.showConfirmation?j("",!0):(O(),D("div",ist,[_("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>s.showConfirmation=!0)},rst),_("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=f=>r.reset_configuration())},ast),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=xe(f=>s.all_collapsed=!s.all_collapsed,["stop"]))},cst)])),_("div",dst,[_("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>r.api_get_req("clear_uploads").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},pst),_("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>r.api_get_req("restart_program").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},hst),_("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=f=>r.api_get_req("update_software").then(E=>{E.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},[fst,s.has_updates?(O(),D("div",mst,bst)):j("",!0)]),_("div",Est,[s.settingsChanged?(O(),D("div",Sst,[vst,s.isLoading?j("",!0):(O(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=xe(f=>r.applyConfiguration(),["stop"]))},Tst))])):j("",!0),s.isLoading?(O(),D("div",xst,[_("p",null,fe(s.loading_text),1),Cst,Rst])):j("",!0)])])]),_("div",{class:ze(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[_("div",Ast,[_("div",wst,[_("button",{onClick:e[9]||(e[9]=xe(f=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Ost,512),[[Mt,s.sc_collapsed]]),Ee(_("div",null,Mst,512),[[Mt,!s.sc_collapsed]]),Dst,Lst,_("div",kst,[_("div",Pst,[_("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(O(),D("div",Ust,[(O(!0),D(qe,null,lt(r.vramUsage.gpus,f=>(O(),D("div",Fst,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Bst),_("h3",Gst,[_("div",null,fe(r.computedFileSize(f.used_vram))+" / "+fe(r.computedFileSize(f.total_vram))+" ("+fe(f.percentage)+"%) ",1)])]))),256))])):j("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(O(),D("div",Vst,[_("div",Hst,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,zst),_("h3",qst,[_("div",null,fe(r.vramUsage.gpus.length)+"x ",1)])])])):j("",!0)]),Yst,_("h3",$st,[_("div",null,fe(r.ram_usage)+" / "+fe(r.ram_total_space)+" ("+fe(r.ram_percent_usage)+"%)",1)]),Wst,_("h3",Kst,[_("div",null,fe(r.disk_binding_models_usage)+" / "+fe(r.disk_total_space)+" ("+fe(r.disk_percent_usage)+"%)",1)])])])])]),_("div",{class:ze([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",jst,[Qst,_("div",Xst,[_("div",null,[Zst,je(fe(r.ram_available_space),1)]),_("div",null,[Jst,je(" "+fe(r.ram_usage)+" / "+fe(r.ram_total_space)+" ("+fe(r.ram_percent_usage)+")% ",1)])]),_("div",ert,[_("div",trt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),_("div",nrt,[irt,_("div",srt,[_("div",null,[rrt,je(fe(r.disk_available_space),1)]),_("div",null,[ort,je(" "+fe(r.disk_binding_models_usage)+" / "+fe(r.disk_total_space)+" ("+fe(r.disk_percent_usage)+"%)",1)])]),_("div",art,[_("div",lrt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(O(!0),D(qe,null,lt(r.vramUsage.gpus,f=>(O(),D("div",{class:"mb-2",key:f},[_("label",crt,[_("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,drt),je(" GPU usage: ")]),_("div",urt,[_("div",null,[prt,je(fe(f.gpu_model),1)]),_("div",null,[_rt,je(fe(this.computedFileSize(f.available_space)),1)]),_("div",null,[hrt,je(" "+fe(this.computedFileSize(f.used_vram))+" / "+fe(this.computedFileSize(f.total_vram))+" ("+fe(f.percentage)+"%)",1)])]),_("div",frt,[_("div",mrt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),_("div",grt,[_("div",brt,[_("button",{onClick:e[10]||(e[10]=xe(f=>s.minconf_collapsed=!s.minconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Srt,512),[[Mt,s.minconf_collapsed]]),Ee(_("div",null,yrt,512),[[Mt,!s.minconf_collapsed]]),Trt])]),_("div",{class:ze([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",xrt,[Ie(o,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Crt,[_("tr",null,[Rrt,_("td",Art,[_("div",wrt,[Ee(_("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[11]||(e[11]=f=>r.configFile.hardware_mode=f),onChange:e[12]||(e[12]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},Urt,544),[[qn,r.configFile.hardware_mode]])])])]),_("tr",null,[Frt,_("td",Brt,[Ee(_("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[13]||(e[13]=f=>r.configFile.db_path=f),onChange:e[14]||(e[14]=f=>s.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),[[Qe,r.configFile.db_path]])])]),_("tr",null,[Grt,_("td",null,[_("div",Vrt,[Ee(_("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[15]||(e[15]=f=>r.configFile.auto_show_browser=f),onChange:e[16]||(e[16]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.auto_show_browser]])])])]),_("tr",null,[Hrt,_("td",null,[_("div",zrt,[Ee(_("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[17]||(e[17]=f=>r.configFile.debug=f),onChange:e[18]||(e[18]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.debug]])])])]),_("tr",null,[qrt,_("td",null,[_("div",Yrt,[Ee(_("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[19]||(e[19]=f=>r.configFile.debug_log_file_path=f),onChange:e[20]||(e[20]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.debug_log_file_path]])])])]),_("tr",null,[$rt,_("td",null,[_("div",Wrt,[Ee(_("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[21]||(e[21]=f=>r.configFile.auto_save=f),onChange:e[22]||(e[22]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.auto_save]])])])]),_("tr",null,[Krt,_("td",null,[_("div",jrt,[Ee(_("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[23]||(e[23]=f=>r.configFile.auto_update=f),onChange:e[24]||(e[24]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.auto_update]])])])]),_("tr",null,[Qrt,_("td",null,[_("div",Xrt,[Ee(_("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[25]||(e[25]=f=>r.configFile.auto_title=f),onChange:e[26]||(e[26]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.auto_title]])])])])])]),_:1}),Ie(o,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Zrt,[_("tr",null,[Jrt,_("td",eot,[Ee(_("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[27]||(e[27]=f=>r.configFile.user_name=f),onChange:e[28]||(e[28]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.user_name]])])]),_("tr",null,[tot,_("td",not,[Ee(_("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[29]||(e[29]=f=>r.configFile.user_description=f),onChange:e[30]||(e[30]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.user_description]])])]),_("tr",null,[iot,_("td",sot,[Ee(_("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[31]||(e[31]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[32]||(e[32]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.override_personality_model_parameters]])])]),_("tr",null,[rot,_("td",oot,[_("label",aot,[_("img",{src:"/user_infos/"+r.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,lot)]),_("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[33]||(e[33]=(...f)=>r.uploadAvatar&&r.uploadAvatar(...f))},null,32)])]),_("tr",null,[cot,_("td",null,[_("div",dot,[Ee(_("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>r.configFile.use_user_name_in_discussions=f),onChange:e[35]||(e[35]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.use_user_name_in_discussions]])])])]),_("tr",null,[uot,_("td",pot,[Ee(_("input",{type:"number",id:"min_n_predict",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>r.configFile.min_n_predict=f),onChange:e[37]||(e[37]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.min_n_predict]])])])])]),_:1}),Ie(o,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",_ot,[_("tr",null,[hot,_("td",null,[_("div",fot,[Ee(_("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>r.configFile.use_files=f),onChange:e[39]||(e[39]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.use_files]])])])]),_("tr",null,[mot,_("td",null,[_("div",got,[Ee(_("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>r.configFile.use_discussions_history=f),onChange:e[41]||(e[41]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.use_discussions_history]])])])]),_("tr",null,[bot,_("td",null,[_("div",Eot,[Ee(_("input",{type:"checkbox",id:"summerize_discussion",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>r.configFile.summerize_discussion=f),onChange:e[43]||(e[43]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.summerize_discussion]])])])]),_("tr",null,[Sot,_("td",null,[_("div",vot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>r.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[45]||(e[45]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),_("tr",null,[yot,_("td",null,[_("div",Tot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>r.configFile.data_vectorization_activate=f),onChange:e[47]||(e[47]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.data_vectorization_activate]])])])]),_("tr",null,[xot,_("td",null,[_("div",Cot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[48]||(e[48]=f=>r.configFile.data_vectorization_build_keys_words=f),onChange:e[49]||(e[49]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.data_vectorization_build_keys_words]])])])]),_("tr",null,[Rot,_("td",null,[Ee(_("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[50]||(e[50]=f=>r.configFile.data_vectorization_method=f),onChange:e[51]||(e[51]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Not,544),[[qn,r.configFile.data_vectorization_method]])])]),_("tr",null,[Oot,_("td",null,[Ee(_("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[52]||(e[52]=f=>r.configFile.data_visualization_method=f),onChange:e[53]||(e[53]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},Dot,544),[[qn,r.configFile.data_visualization_method]])])]),_("tr",null,[Lot,_("td",null,[_("div",kot,[Ee(_("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[54]||(e[54]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[55]||(e[55]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.data_vectorization_save_db]])])])]),_("tr",null,[Pot,_("td",null,[Ee(_("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[56]||(e[56]=f=>r.configFile.data_vectorization_chunk_size=f),onChange:e[57]||(e[57]=f=>s.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),[[Qe,r.configFile.data_vectorization_chunk_size]]),Ee(_("input",{"onUpdate:modelValue":e[58]||(e[58]=f=>r.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[59]||(e[59]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_chunk_size]])])]),_("tr",null,[Uot,_("td",null,[Ee(_("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[60]||(e[60]=f=>r.configFile.data_vectorization_overlap_size=f),onChange:e[61]||(e[61]=f=>s.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),[[Qe,r.configFile.data_vectorization_overlap_size]]),Ee(_("input",{"onUpdate:modelValue":e[62]||(e[62]=f=>r.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[63]||(e[63]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_overlap_size]])])]),_("tr",null,[Fot,_("td",null,[Ee(_("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[64]||(e[64]=f=>r.configFile.data_vectorization_nb_chunks=f),onChange:e[65]||(e[65]=f=>s.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),[[Qe,r.configFile.data_vectorization_nb_chunks]]),Ee(_("input",{"onUpdate:modelValue":e[66]||(e[66]=f=>r.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[67]||(e[67]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),Ie(o,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Bot,[_("tr",null,[Got,_("td",null,[_("div",Vot,[Ee(_("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[68]||(e[68]=f=>r.configFile.pdf_latex_path=f),onChange:e[69]||(e[69]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.pdf_latex_path]])])])])])]),_:1}),Ie(o,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Hot,[_("tr",null,[zot,_("td",null,[_("div",qot,[Ee(_("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[70]||(e[70]=f=>r.configFile.positive_boost=f),onChange:e[71]||(e[71]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.positive_boost]])])])]),_("tr",null,[Yot,_("td",null,[_("div",$ot,[Ee(_("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[72]||(e[72]=f=>r.configFile.negative_boost=f),onChange:e[73]||(e[73]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.negative_boost]])])])]),_("tr",null,[Wot,_("td",null,[_("div",Kot,[Ee(_("input",{type:"text",id:"force_output_language_to_be",required:"","onUpdate:modelValue":e[74]||(e[74]=f=>r.configFile.force_output_language_to_be=f),onChange:e[75]||(e[75]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.force_output_language_to_be]])])])]),_("tr",null,[jot,_("td",null,[_("div",Qot,[Ee(_("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[76]||(e[76]=f=>r.configFile.fun_mode=f),onChange:e[77]||(e[77]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.fun_mode]])])])])])]),_:1}),Ie(o,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Xot,[_("tr",null,[Zot,_("td",null,[_("div",Jot,[Ee(_("select",{id:"whisper_model","onUpdate:modelValue":e[78]||(e[78]=f=>r.configFile.whisper_model=f),onChange:e[79]||(e[79]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(r.whisperModels,f=>(O(),D("option",{key:f,value:f},fe(f),9,eat))),128))],544),[[qn,r.configFile.whisper_model]])])])])])]),_:1}),Ie(o,{title:"Browser Audio",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",tat,[_("tr",null,[nat,_("td",null,[_("div",iat,[Ee(_("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[80]||(e[80]=f=>r.configFile.activate_audio_infos=f),onChange:e[81]||(e[81]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.activate_audio_infos]])])])]),_("tr",null,[sat,_("td",null,[_("div",rat,[Ee(_("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[82]||(e[82]=f=>r.configFile.audio_auto_send_input=f),onChange:e[83]||(e[83]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.audio_auto_send_input]])])])]),_("tr",null,[oat,_("td",null,[_("div",aat,[Ee(_("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[84]||(e[84]=f=>r.configFile.auto_speak=f),onChange:e[85]||(e[85]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.auto_speak]])])])]),_("tr",null,[lat,_("td",null,[Ee(_("input",{id:"audio_pitch","onUpdate:modelValue":e[86]||(e[86]=f=>r.configFile.audio_pitch=f),onChange:e[87]||(e[87]=f=>s.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),[[Qe,r.configFile.audio_pitch]]),Ee(_("input",{"onUpdate:modelValue":e[88]||(e[88]=f=>r.configFile.audio_pitch=f),onChange:e[89]||(e[89]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.audio_pitch]])])]),_("tr",null,[cat,_("td",null,[Ee(_("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[90]||(e[90]=f=>r.configFile.audio_silenceTimer=f),onChange:e[91]||(e[91]=f=>s.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),[[Qe,r.configFile.audio_silenceTimer]]),Ee(_("input",{"onUpdate:modelValue":e[92]||(e[92]=f=>r.configFile.audio_silenceTimer=f),onChange:e[93]||(e[93]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.audio_silenceTimer]])])]),_("tr",null,[dat,_("td",null,[Ee(_("select",{id:"audio_in_language","onUpdate:modelValue":e[94]||(e[94]=f=>r.configFile.audio_in_language=f),onChange:e[95]||(e[95]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(r.audioLanguages,f=>(O(),D("option",{key:f.code,value:f.code},fe(f.name),9,uat))),128))],544),[[qn,r.configFile.audio_in_language]])])]),_("tr",null,[pat,_("td",null,[Ee(_("select",{id:"audio_out_voice","onUpdate:modelValue":e[96]||(e[96]=f=>r.configFile.audio_out_voice=f),onChange:e[97]||(e[97]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(O(!0),D(qe,null,lt(s.audioVoices,f=>(O(),D("option",{key:f.name,value:f.name},fe(f.name),9,_at))),128))],544),[[qn,r.configFile.audio_out_voice]])])])])]),_:1})])],2)]),_("div",hat,[_("div",fat,[_("button",{onClick:e[98]||(e[98]=xe(f=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,gat,512),[[Mt,s.servers_conf_collapsed]]),Ee(_("div",null,Eat,512),[[Mt,!s.servers_conf_collapsed]]),Sat])]),_("div",{class:ze([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[Ie(o,{title:"Lollms service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",vat,[_("tr",null,[yat,_("td",Tat,[Ee(_("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>r.configFile.host=f),onChange:e[100]||(e[100]=f=>s.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),[[Qe,r.configFile.host]])])]),_("tr",null,[xat,_("td",Cat,[Ee(_("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>r.configFile.port=f),onChange:e[102]||(e[102]=f=>s.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),[[Qe,r.configFile.port]])])])])]),_:1}),Ie(o,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",Rat,[_("tr",null,[Aat,_("td",null,[_("div",wat,[Ee(_("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>r.configFile.enable_sd_service=f),onChange:e[104]||(e[104]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.enable_sd_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[105]||(e[105]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},Oat)])]),_("tr",null,[Iat,_("td",null,[_("div",Mat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[106]||(e[106]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service")])])]),_("tr",null,[Dat,_("td",null,[_("div",Lat,[Ee(_("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>r.configFile.sd_base_url=f),onChange:e[108]||(e[108]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.sd_base_url]])])])])])]),_:1}),Ie(o,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",kat,[_("tr",null,[Pat,_("td",null,[_("div",Uat,[Ee(_("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[109]||(e[109]=f=>r.configFile.enable_ollama_service=f),onChange:e[110]||(e[110]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.enable_ollama_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[111]||(e[111]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},Bat)])]),_("tr",null,[Gat,_("td",null,[_("div",Vat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[114]||(e[114]=(...f)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(...f))},"install olama service")])])]),_("tr",null,[Hat,_("td",null,[_("div",zat,[Ee(_("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[115]||(e[115]=f=>r.configFile.ollama_base_url=f),onChange:e[116]||(e[116]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.ollama_base_url]])])])])])]),_:1}),Ie(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",qat,[_("tr",null,[Yat,_("td",null,[_("div",$at,[Ee(_("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[117]||(e[117]=f=>r.configFile.enable_vllm_service=f),onChange:e[118]||(e[118]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.enable_vllm_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[119]||(e[119]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. +Here is how you can do that`))},Bat)])]),_("tr",null,[Gat,_("td",null,[_("div",Vat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[112]||(e[112]=(...f)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(...f))},"install olama service")])])]),_("tr",null,[Hat,_("td",null,[_("div",zat,[Ee(_("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[113]||(e[113]=f=>r.configFile.ollama_base_url=f),onChange:e[114]||(e[114]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.ollama_base_url]])])])])])]),_:1}),Ie(o,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",qat,[_("tr",null,[Yat,_("td",null,[_("div",$at,[Ee(_("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[115]||(e[115]=f=>r.configFile.enable_vllm_service=f),onChange:e[116]||(e[116]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.enable_vllm_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[117]||(e[117]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding. If you are using windows, this uses wsl which requires you to have it installed or at least activated. If You are using windows, this will install wsl so you need to activate it. -Here is how you can do that`))},Kat)])]),_("tr",null,[jat,_("td",null,[_("div",Qat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[120]||(e[120]=(...f)=>r.reinstallvLLMService&&r.reinstallvLLMService(...f))},"install vLLM service"),_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[121]||(e[121]=(...f)=>r.startvLLMService&&r.startvLLMService(...f))},"start vLLM service")])])]),_("tr",null,[Xat,_("td",null,[_("div",Zat,[Ee(_("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[122]||(e[122]=f=>r.configFile.vllm_url=f),onChange:e[123]||(e[123]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.vllm_url]])])])]),_("tr",null,[Jat,_("td",null,[_("div",elt,[Ee(_("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[124]||(e[124]=f=>r.configFile.vllm_model_path=f),onChange:e[125]||(e[125]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.vllm_model_path]])])])])])]),_:1}),Ie(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",tlt,[_("tr",null,[nlt,_("td",null,[_("div",ilt,[Ee(_("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[126]||(e[126]=f=>r.configFile.enable_petals_service=f),onChange:e[127]||(e[127]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.enable_petals_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[128]||(e[128]=f=>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`))},Kat)])]),_("tr",null,[jat,_("td",null,[_("div",Qat,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[118]||(e[118]=(...f)=>r.reinstallvLLMService&&r.reinstallvLLMService(...f))},"install vLLM service"),_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[119]||(e[119]=(...f)=>r.startvLLMService&&r.startvLLMService(...f))},"start vLLM service")])])]),_("tr",null,[Xat,_("td",null,[_("div",Zat,[Ee(_("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[120]||(e[120]=f=>r.configFile.vllm_url=f),onChange:e[121]||(e[121]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.vllm_url]])])])]),_("tr",null,[Jat,_("td",null,[_("div",elt,[Ee(_("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[122]||(e[122]=f=>r.configFile.vllm_model_path=f),onChange:e[123]||(e[123]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.vllm_model_path]])])])])])]),_:1}),Ie(o,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",tlt,[_("tr",null,[nlt,_("td",null,[_("div",ilt,[Ee(_("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[124]||(e[124]=f=>r.configFile.enable_petals_service=f),onChange:e[125]||(e[125]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.enable_petals_service]])])]),_("td",null,[_("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[126]||(e[126]=f=>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`))},rlt)])]),_("tr",null,[olt,_("td",null,[_("div",alt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[129]||(e[129]=(...f)=>r.reinstallPetalsService&&r.reinstallPetalsService(...f))},"install petals service")])])]),_("tr",null,[llt,_("td",null,[_("div",clt,[Ee(_("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[130]||(e[130]=f=>r.configFile.petals_base_url=f),onChange:e[131]||(e[131]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.petals_base_url]])])])])])]),_:1}),Ie(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",dlt,[_("tr",null,[ult,_("td",null,[_("div",plt,[Ee(_("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[132]||(e[132]=f=>r.configFile.elastic_search_service=f),onChange:e[133]||(e[133]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.elastic_search_service]])])])]),_("tr",null,[_lt,_("td",null,[_("div",hlt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[134]||(e[134]=(...f)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(...f))},"install ElasticSearch service")])])]),_("tr",null,[flt,_("td",null,[_("div",mlt,[Ee(_("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[135]||(e[135]=f=>r.configFile.elastic_search_url=f),onChange:e[136]||(e[136]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.elastic_search_url]])])])])])]),_:1}),Ie(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",glt,[_("tr",null,[blt,_("td",null,[_("div",Elt,[Ee(_("input",{type:"checkbox",id:"enable_voice_service",required:"","onUpdate:modelValue":e[137]||(e[137]=f=>r.configFile.enable_voice_service=f),onChange:e[138]||(e[138]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Ct,r.configFile.enable_voice_service]])])])]),_("tr",null,[Slt,_("td",null,[_("div",vlt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[139]||(e[139]=(...f)=>r.reinstallAudioService&&r.reinstallAudioService(...f))},"install xtts service")])])]),_("tr",null,[ylt,_("td",null,[_("div",Tlt,[Ee(_("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[140]||(e[140]=f=>r.configFile.xtts_base_url=f),onChange:e[141]||(e[141]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.xtts_base_url]])])])]),_("tr",null,[xlt,_("td",null,[_("div",Clt,[Ee(_("select",{"onUpdate:modelValue":e[142]||(e[142]=f=>r.current_language=f),onChange:e[143]||(e[143]=f=>s.settingsChanged=!0),disabled:!r.enable_voice_service},[(O(!0),D(qe,null,lt(s.voice_languages,(f,E)=>(O(),D("option",{key:E,value:f},fe(E),9,Alt))),128))],40,Rlt),[[qn,r.current_language]])])])]),_("tr",null,[wlt,_("td",null,[_("div",Nlt,[Ee(_("select",{"onUpdate:modelValue":e[144]||(e[144]=f=>r.current_voice=f),onChange:e[145]||(e[145]=f=>s.settingsChanged=!0),disabled:!r.enable_voice_service},[(O(!0),D(qe,null,lt(s.voices,f=>(O(),D("option",{key:f,value:f},fe(f),9,Ilt))),128))],40,Olt),[[qn,r.current_voice]])])])]),_("tr",null,[Mlt,_("td",null,[_("div",Dlt,[Ee(_("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>r.configFile.auto_read=f),onChange:e[147]||(e[147]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.enable_voice_service},null,40,Llt),[[Ct,r.configFile.auto_read]])])])])])]),_:1})],2)]),_("div",klt,[_("div",Plt,[_("button",{onClick:e[148]||(e[148]=xe(f=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Flt,512),[[Mt,s.bzc_collapsed]]),Ee(_("div",null,Glt,512),[[Mt,!s.bzc_collapsed]]),Vlt,r.configFile.binding_name?j("",!0):(O(),D("div",Hlt,[zlt,je(" No binding selected! ")])),r.configFile.binding_name?(O(),D("div",qlt,"|")):j("",!0),r.configFile.binding_name?(O(),D("div",Ylt,[_("div",$lt,[_("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Wlt),_("h3",Klt,fe(r.binding_name),1)])])):j("",!0)])]),_("div",{class:ze([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(O(),D("div",jlt,[_("label",Qlt," Bindings: ("+fe(r.bindingsZoo.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"list"},{default:nt(()=>[(O(!0),D(qe,null,lt(r.bindingsZoo,(f,E)=>(O(),Nt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+E+"-"+f.folder,binding:f,"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:f.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)])):j("",!0),s.bzl_collapsed?(O(),D("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[149]||(e[149]=f=>s.bzl_collapsed=!s.bzl_collapsed)},Zlt)):(O(),D("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[150]||(e[150]=f=>s.bzl_collapsed=!s.bzl_collapsed)},ect))],2)]),_("div",tct,[_("div",nct,[_("button",{onClick:e[151]||(e[151]=xe(f=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Ee(_("div",null,sct,512),[[Mt,s.mzc_collapsed]]),Ee(_("div",null,oct,512),[[Mt,!s.mzc_collapsed]]),act,_("div",lct,[r.configFile.binding_name?j("",!0):(O(),D("div",cct,[dct,je(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(O(),D("div",uct,[pct,je(" No model selected! ")])):j("",!0),r.configFile.model_name?(O(),D("div",_ct,"|")):j("",!0),r.configFile.model_name?(O(),D("div",hct,[_("div",fct,[_("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,mct),_("h3",gct,fe(r.configFile.model_name),1)])])):j("",!0)])])]),_("div",{class:ze([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",bct,[_("div",Ect,[_("div",Sct,[s.searchModelInProgress?(O(),D("div",vct,Tct)):j("",!0),s.searchModelInProgress?j("",!0):(O(),D("div",xct,Rct))]),Ee(_("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[152]||(e[152]=f=>s.searchModel=f),onKeyup:e[153]||(e[153]=fr((...f)=>r.searchModel_func&&r.searchModel_func(...f),["enter"]))},null,544),[[Qe,s.searchModel]]),s.searchModel?(O(),D("button",{key:0,onClick:e[154]||(e[154]=xe(f=>s.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")):j("",!0)])]),_("div",null,[Ee(_("input",{"onUpdate:modelValue":e[155]||(e[155]=f=>s.show_only_installed_models=f),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[Ct,s.show_only_installed_models]]),Act]),_("div",null,[Ie(l,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),wct,s.is_loading_zoo?(O(),D("div",Nct,Mct)):j("",!0),s.models_zoo&&s.models_zoo.length>0?(O(),D("div",Dct,[_("label",Lct," Models: ("+fe(s.models_zoo.length)+") ",1),_("div",{class:ze(["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",s.mzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"list"},{default:nt(()=>[(O(!0),D(qe,null,lt(r.rendered_models_zoo,(f,E)=>(O(),Nt(c,{ref_for:!0,ref:"modelZoo",key:"index-"+E+"-"+f.name,model:f,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:f.name===r.configFile.model_name,model_type:f.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)),_("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[156]||(e[156]=(...f)=>r.load_more_models&&r.load_more_models(...f))},"Load more models",512)]),_:1})],2)])):j("",!0),s.mzl_collapsed?(O(),D("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[157]||(e[157]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Pct)):(O(),D("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[158]||(e[158]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Fct)),_("div",Bct,[_("div",Gct,[_("div",null,[_("div",Vct,[Hct,Ee(_("input",{type:"text","onUpdate:modelValue":e[159]||(e[159]=f=>s.reference_path=f),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),[[Qe,s.reference_path]])]),_("button",{type:"button",onClick:e[160]||(e[160]=xe(f=>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")]),s.modelDownlaodInProgress?j("",!0):(O(),D("div",zct,[_("div",qct,[Yct,Ee(_("input",{type:"text","onUpdate:modelValue":e[161]||(e[161]=f=>s.addModel.url=f),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),[[Qe,s.addModel.url]])]),_("button",{type:"button",onClick:e[162]||(e[162]=xe(f=>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")])),s.modelDownlaodInProgress?(O(),D("div",$ct,[Wct,_("div",Kct,[_("div",jct,[_("div",Qct,[Xct,_("span",Zct,fe(Math.floor(s.addModel.progress))+"%",1)]),_("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},fe(s.addModel.url),9,Jct),_("div",edt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt({width:s.addModel.progress+"%"})},null,4)]),_("div",tdt,[_("span",ndt,"Download speed: "+fe(r.speed_computed)+"/s",1),_("span",idt,fe(r.downloaded_size_computed)+"/"+fe(r.total_size_computed),1)])])]),_("div",sdt,[_("div",rdt,[_("div",odt,[_("button",{onClick:e[163]||(e[163]=xe((...f)=>r.onCancelInstall&&r.onCancelInstall(...f),["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 ")])])])])):j("",!0)])])],2)]),_("div",adt,[_("div",ldt,[_("button",{onClick:e[166]||(e[166]=xe(f=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,ddt,512),[[Mt,s.pzc_collapsed]]),Ee(_("div",null,pdt,512),[[Mt,!s.pzc_collapsed]]),_dt,r.configFile.personalities?(O(),D("div",hdt,"|")):j("",!0),_("div",fdt,fe(r.active_pesonality),1),r.configFile.personalities?(O(),D("div",mdt,"|")):j("",!0),r.configFile.personalities?(O(),D("div",gdt,[r.mountedPersArr.length>0?(O(),D("div",bdt,[(O(!0),D(qe,null,lt(r.mountedPersArr,(f,E)=>(O(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[_("div",Edt,[_("button",{onClick:xe(b=>r.onPersonalitySelected(f),["stop"])},[_("img",{src:s.bUrl+f.avatar,onError:e[164]||(e[164]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:ze(["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(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,vdt)],8,Sdt),_("button",{onClick:xe(b=>r.unmountPersonality(f),["stop"])},xdt,8,ydt)])]))),128))])):j("",!0)])):j("",!0),_("button",{onClick:e[165]||(e[165]=xe(f=>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"},Rdt)])]),_("div",{class:ze([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Adt,[wdt,_("div",Ndt,[_("div",Odt,[s.searchPersonalityInProgress?(O(),D("div",Idt,Ddt)):j("",!0),s.searchPersonalityInProgress?j("",!0):(O(),D("div",Ldt,Pdt))]),Ee(_("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[167]||(e[167]=f=>s.searchPersonality=f),onKeyup:e[168]||(e[168]=xe((...f)=>r.searchPersonality_func&&r.searchPersonality_func(...f),["stop"]))},null,544),[[Qe,s.searchPersonality]]),s.searchPersonality?(O(),D("button",{key:0,onClick:e[169]||(e[169]=xe(f=>s.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")):j("",!0)])]),s.searchPersonality?j("",!0):(O(),D("div",Udt,[_("label",Fdt," Personalities Category: ("+fe(s.persCatgArr.length)+") ",1),_("select",{id:"persCat",onChange:e[170]||(e[170]=f=>r.update_personality_category(f.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"},[(O(!0),D(qe,null,lt(s.persCatgArr,(f,E)=>(O(),D("option",{key:E,selected:f==this.configFile.personality_category},fe(f),9,Bdt))),128))],32)])),_("div",null,[s.personalitiesFiltered.length>0?(O(),D("div",Gdt,[_("label",Vdt,fe(s.searchPersonality?"Search results":"Personalities")+": ("+fe(s.personalitiesFiltered.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"bounce"},{default:nt(()=>[(O(!0),D(qe,null,lt(s.personalitiesFiltered,(f,E)=>(O(),Nt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+E+"-"+f.name,personality:f,select_language:!0,full_path:f.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===f.full_path||b===f.full_path+":"+f.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings","on-copy-personality-name"]))),128))]),_:1})],2)])):j("",!0)]),s.pzl_collapsed?(O(),D("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[171]||(e[171]=f=>s.pzl_collapsed=!s.pzl_collapsed)},zdt)):(O(),D("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[172]||(e[172]=f=>s.pzl_collapsed=!s.pzl_collapsed)},Ydt))],2)]),_("div",$dt,[_("div",Wdt,[_("button",{onClick:e[174]||(e[174]=xe(f=>s.ezc_collapsed=!s.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,jdt,512),[[Mt,s.ezc_collapsed]]),Ee(_("div",null,Xdt,512),[[Mt,!s.ezc_collapsed]]),Zdt,r.configFile.extensions?(O(),D("div",Jdt,"|")):j("",!0),r.configFile.extensions?(O(),D("div",eut,[r.mountedExtensions.length>0?(O(),D("div",tut,[(O(!0),D(qe,null,lt(r.mountedExtensions,(f,E)=>(O(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+f.name,ref_for:!0,ref:"mountedExtensions"},[_("div",nut,[_("button",null,[_("img",{src:s.bUrl+f.avatar,onError:e[173]||(e[173]=(...b)=>r.extensionImgPlacehodler&&r.extensionImgPlacehodler(...b)),class:ze(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary","border-transparent z-0"]),title:f.name},null,40,iut)]),_("button",{onClick:xe(b=>r.unmountExtension(f),["stop"])},out,8,sut)])]))),128))])):j("",!0)])):j("",!0)])]),_("div",{class:ze([{hidden:s.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",aut,[lut,_("div",cut,[_("div",dut,[s.searchExtensionInProgress?(O(),D("div",uut,_ut)):j("",!0),s.searchExtensionInProgress?j("",!0):(O(),D("div",hut,mut))]),Ee(_("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 extension...",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>s.searchExtension=f),onKeyup:e[176]||(e[176]=xe((...f)=>n.searchExtension_func&&n.searchExtension_func(...f),["stop"]))},null,544),[[Qe,s.searchExtension]]),s.searchExtension?(O(),D("button",{key:0,onClick:e[177]||(e[177]=xe(f=>s.searchExtension="",["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")):j("",!0)])]),s.searchExtension?j("",!0):(O(),D("div",gut,[_("label",but," Extensions Category: ("+fe(s.extCatgArr.length)+") ",1),_("select",{id:"extCat",onChange:e[178]||(e[178]=f=>r.update_extension_category(f.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"},[(O(!0),D(qe,null,lt(s.extCatgArr,(f,E)=>(O(),D("option",{key:E,selected:f==this.extension_category},fe(f),9,Eut))),128))],32)])),_("div",null,[s.extensionsFiltered.length>0?(O(),D("div",Sut,[_("label",vut,fe(s.searchExtension?"Search results":"Personalities")+": ("+fe(s.extensionsFiltered.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.ezl_collapsed?"":"max-h-96"])},[(O(!0),D(qe,null,lt(s.extensionsFiltered,(f,E)=>(O(),Nt(u,{ref_for:!0,ref:"extensionsZoo",key:"index-"+E+"-"+f.name,extension:f,select_language:!0,full_path:f.full_path,"on-mount":r.mountExtension,"on-un-mount":r.unmountExtension,"on-remount":r.remountExtension,"on-reinstall":r.onExtensionReinstall,"on-settings":r.onSettingsExtension},null,8,["extension","full_path","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))],2)])):j("",!0)]),s.ezc_collapsed?(O(),D("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[179]||(e[179]=f=>s.ezl_collapsed=!s.ezl_collapsed)},Tut)):(O(),D("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[180]||(e[180]=f=>s.ezl_collapsed=!s.ezl_collapsed)},Cut))],2)]),_("div",Rut,[_("div",Aut,[_("button",{onClick:e[181]||(e[181]=xe(f=>s.mep_collapsed=!s.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,Nut,512),[[Mt,s.mep_collapsed]]),Ee(_("div",null,Iut,512),[[Mt,!s.mep_collapsed]]),Mut])]),_("div",{class:ze([{hidden:s.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),_("div",Dut,[_("div",Lut,[_("button",{onClick:e[182]||(e[182]=xe(f=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Ee(_("div",null,Put,512),[[Mt,s.mc_collapsed]]),Ee(_("div",null,Fut,512),[[Mt,!s.mc_collapsed]]),But])]),_("div",{class:ze([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[_("div",Gut,[_("div",Vut,[Ee(_("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[183]||(e[183]=xe(()=>{},["stop"])),"onUpdate:modelValue":e[184]||(e[184]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[185]||(e[185]=f=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[Ct,r.configFile.override_personality_model_parameters]]),Hut])]),_("div",{class:ze(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[_("div",zut,[qut,Ee(_("input",{type:"text",id:"seed","onUpdate:modelValue":e[186]||(e[186]=f=>r.configFile.seed=f),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),[[Qe,r.configFile.seed]])]),_("div",Yut,[_("div",$ut,[_("div",Wut,[Kut,_("p",jut,[Ee(_("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[187]||(e[187]=f=>r.configFile.temperature=f),onChange:e[188]||(e[188]=f=>s.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),[[Qe,r.configFile.temperature]])])]),Ee(_("input",{id:"temperature",onChange:e[189]||(e[189]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[190]||(e[190]=f=>r.configFile.temperature=f),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),[[Qe,r.configFile.temperature]])])]),_("div",Qut,[_("div",Xut,[_("div",Zut,[Jut,_("p",ept,[Ee(_("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[191]||(e[191]=f=>r.configFile.n_predict=f),onChange:e[192]||(e[192]=f=>s.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),[[Qe,r.configFile.n_predict]])])]),Ee(_("input",{id:"predict",type:"range",onChange:e[193]||(e[193]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[194]||(e[194]=f=>r.configFile.n_predict=f),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),[[Qe,r.configFile.n_predict]])])]),_("div",tpt,[_("div",npt,[_("div",ipt,[spt,_("p",rpt,[Ee(_("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[195]||(e[195]=f=>r.configFile.top_k=f),onChange:e[196]||(e[196]=f=>s.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),[[Qe,r.configFile.top_k]])])]),Ee(_("input",{id:"top_k",type:"range",onChange:e[197]||(e[197]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[198]||(e[198]=f=>r.configFile.top_k=f),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),[[Qe,r.configFile.top_k]])])]),_("div",opt,[_("div",apt,[_("div",lpt,[cpt,_("p",dpt,[Ee(_("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[199]||(e[199]=f=>r.configFile.top_p=f),onChange:e[200]||(e[200]=f=>s.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),[[Qe,r.configFile.top_p]])])]),Ee(_("input",{id:"top_p",type:"range","onUpdate:modelValue":e[201]||(e[201]=f=>r.configFile.top_p=f),min:"0",max:"1",step:"0.01",onChange:e[202]||(e[202]=f=>s.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),[[Qe,r.configFile.top_p]])])]),_("div",upt,[_("div",ppt,[_("div",_pt,[hpt,_("p",fpt,[Ee(_("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[203]||(e[203]=f=>r.configFile.repeat_penalty=f),onChange:e[204]||(e[204]=f=>s.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),[[Qe,r.configFile.repeat_penalty]])])]),Ee(_("input",{id:"repeat_penalty",onChange:e[205]||(e[205]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[206]||(e[206]=f=>r.configFile.repeat_penalty=f),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),[[Qe,r.configFile.repeat_penalty]])])]),_("div",mpt,[_("div",gpt,[_("div",bpt,[Ept,_("p",Spt,[Ee(_("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[207]||(e[207]=f=>r.configFile.repeat_last_n=f),onChange:e[208]||(e[208]=f=>s.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),[[Qe,r.configFile.repeat_last_n]])])]),Ee(_("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[209]||(e[209]=f=>r.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",onChange:e[210]||(e[210]=f=>s.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),[[Qe,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Ie(h,{ref:"addmodeldialog"},null,512),Ie(m,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const ypt=gt(jit,[["render",vpt],["__scopeId","data-v-2cbc8507"]]),Tpt={components:{ClipBoardTextInput:rE,Card:uc},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={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};ke.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.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(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},xpt={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"},Cpt={class:"mb-4"},Rpt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Apt=["value"],wpt={class:"mb-4"},Npt=_("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Opt={class:"mb-4"},Ipt=_("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Mpt={class:"mb-4"},Dpt=_("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Lpt={class:"mb-4"},kpt=_("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Ppt={class:"mb-4"},Upt=_("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Fpt={class:"mb-4"},Bpt=_("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Gpt=_("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Vpt={key:1};function Hpt(n,e,t,i,s,r){const o=ut("Card"),a=ut("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(O(),D("div",xpt,[_("form",{onSubmit:e[2]||(e[2]=xe((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[Ie(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Ie(o,{title:"Model",class:"",isHorizontal:!1},{default:nt(()=>[_("div",Cpt,[Rpt,Ee(_("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(O(!0),D(qe,null,lt(r.models,l=>(O(),D("option",{key:l,value:l},fe(l),9,Apt))),128))],544),[[qn,r.selectedModel]])])]),_:1}),Ie(o,{title:"Data",isHorizontal:!1},{default:nt(()=>[_("div",wpt,[Npt,Ie(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Ie(o,{title:"Training",isHorizontal:!1},{default:nt(()=>[_("div",Opt,[Ipt,Ie(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),_("div",Mpt,[Dpt,Ie(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),_("div",Lpt,[kpt,Ie(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),_("div",Ppt,[Upt,Ie(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),Ie(o,{title:"Output",isHorizontal:!1},{default:nt(()=>[_("div",Fpt,[Bpt,Ie(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Ie(o,{disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Gpt]),_:1})],32)])):(O(),D("div",Vpt,[Ie(o,{title:"Info",class:"",isHorizontal:!1},{default:nt(()=>[je(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const zpt=gt(Tpt,[["render",Hpt]]),qpt={components:{ClipBoardTextInput:rE,Card:uc},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(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Ypt={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"},$pt={class:"mb-4"},Wpt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Kpt={class:"mb-4"},jpt=_("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Qpt=_("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Xpt(n,e,t,i,s,r){const o=ut("ClipBoardTextInput"),a=ut("Card");return O(),D("div",Ypt,[_("form",{onSubmit:e[0]||(e[0]=xe((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Ie(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Ie(a,{title:"Model",class:"",isHorizontal:!1},{default:nt(()=>[_("div",$pt,[Wpt,Ie(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),_("div",Kpt,[jpt,Ie(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Ie(a,{disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Qpt]),_:1})],32)])}const Zpt=gt(qpt,[["render",Xpt]]),Jpt={name:"Discussion",emits:["delete","select","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,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")},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(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Fe(()=>{Be.replace()})},watch:{showConfirmation(){Fe(()=>{Be.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Fe(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Fe(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},e_t=["id"],t_t={class:"flex flex-row items-center gap-2"},n_t={key:0},i_t=["title"],s_t=["value"],r_t={class:"flex items-center flex-1 max-h-6"},o_t={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},a_t=_("i",{"data-feather":"x"},null,-1),l_t=[a_t],c_t=_("i",{"data-feather":"check"},null,-1),d_t=[c_t],u_t={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},p_t=_("i",{"data-feather":"type"},null,-1),__t=[p_t],h_t=_("i",{"data-feather":"edit-2"},null,-1),f_t=[h_t],m_t=_("i",{"data-feather":"trash"},null,-1),g_t=[m_t];function b_t(n,e,t,i,s,r){return O(),D("div",{class:ze([t.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm 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"]),id:"dis-"+t.id,onClick:e[12]||(e[12]=xe(o=>r.selectEvent(),["stop"]))},[_("div",t_t,[t.isCheckbox?(O(),D("div",n_t,[Ee(_("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]=xe(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[Ct,s.checkBoxValue_local]])])):j("",!0),t.selected?(O(),D("div",{key:1,class:ze(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):j("",!0),t.selected?j("",!0):(O(),D("div",{key:2,class:ze(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?j("",!0):(O(),D("p",{key:0,title:t.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},fe(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,i_t)),s.editTitle?(O(),D("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:t.title,required:"",onKeydown:[e[3]||(e[3]=fr(xe(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=fr(xe(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=xe(()=>{},["stop"]))},null,40,s_t)):j("",!0),_("div",r_t,[s.showConfirmation?(O(),D("div",o_t,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=xe(o=>r.cancel(),["stop"]))},l_t),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=xe(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},d_t)])):j("",!0),s.showConfirmation?j("",!0):(O(),D("div",u_t,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[9]||(e[9]=xe(o=>s.makeTitleMode=!0,["stop"]))},__t),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[10]||(e[10]=xe(o=>s.editTitleMode=!0,["stop"]))},f_t),_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[11]||(e[11]=xe(o=>s.deleteMode=!0,["stop"]))},g_t)]))])],10,e_t)}const LN=gt(Jpt,[["render",b_t]]),E_t={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(n){this.prompt=n}}},S_t={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},v_t={class:"bg-white p-8 rounded"},y_t={class:"text-xl font-bold mb-4"};function T_t(n,e,t,i,s,r){return O(),D("div",null,[s.show?(O(),D("div",S_t,[_("div",v_t,[_("h2",y_t,fe(t.promptText),1),Ee(_("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Qe,s.inputText]]),_("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"),_("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):j("",!0)])}const kN=gt(E_t,[["render",T_t]]),x_t={props:{htmlContent:{type:String,required:!0}}},C_t=["innerHTML"];function R_t(n,e,t,i,s,r){return O(),D("div",null,[_("div",{innerHTML:t.htmlContent},null,8,C_t)])}const A_t=gt(x_t,[["render",R_t]]);const w_t={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},N_t={key:0},O_t={class:"toggle-icon mr-1"},I_t={key:0,class:"fas fa-plus-circle text-gray-600"},M_t={key:1,class:"fas fa-minus-circle text-gray-600"},D_t={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},L_t={key:0,class:"fas fa-plus-circle text-gray-600"},k_t={key:1,class:"fas fa-minus-circle text-gray-600"},P_t=["innerHTML"];function U_t(n,e,t,i,s,r){return r.isContentPresent?(O(),D("div",N_t,[_("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[_("span",O_t,[s.collapsed?(O(),D("i",I_t)):(O(),D("i",M_t))]),je(" "+fe(t.jsonFormText),1)]),Ee(_("div",null,[_("div",D_t,[r.isObject?(O(),D("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(O(),D("i",L_t)):(O(),D("i",k_t))])):j("",!0),_("pre",{innerHTML:r.formattedJson},null,8,P_t)])],512),[[Mt,!s.collapsed]])])):j("",!0)}const F_t=gt(w_t,[["render",U_t]]),B_t={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},G_t={class:"step flex items-center mb-4"},V_t={class:"flex items-center justify-center w-6 h-6 mr-2"},H_t={key:0},z_t=_("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),q_t=[z_t],Y_t={key:1},$_t=_("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),W_t=[$_t],K_t={key:2},j_t=_("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Q_t=[j_t],X_t={key:0,role:"status"},Z_t=_("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"},[_("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"}),_("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),J_t=[Z_t];function eht(n,e,t,i,s,r){return O(),D("div",G_t,[_("div",V_t,[t.done?j("",!0):(O(),D("div",H_t,q_t)),t.done&&t.status?(O(),D("div",Y_t,W_t)):j("",!0),t.done&&!t.status?(O(),D("div",K_t,Q_t)):j("",!0)]),t.done?j("",!0):(O(),D("div",X_t,J_t)),_("div",{class:ze(["content flex-1 px-2",{"text-green-500":t.done,"text-yellow-500":!t.done}])},fe(t.message),3)])}const tht=gt(B_t,[["render",eht]]);const nC="/",nht={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:Zb,Step:tht,RenderHTMLJS:A_t,JsonViewer:F_t,DynamicUIRenderer:DN},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:""},data(){return{isSynthesizingVoice:!1,cpp_block:AN,html5_block:wN,LaTeX_block:NN,json_block:RN,javascript_block:CN,python_block:xN,bash_block:ON,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser."),Fe(()=>{Be.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),this.message.hasOwnProperty("metadata")&&this.message.metadata!=null&&(this.audio_url=this.message.metadata.hasOwnProperty("audio_url")?this.message.metadata.audio_url:null)},methods:{insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)==" "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(` +Here is how you can do that`))},rlt)])]),_("tr",null,[olt,_("td",null,[_("div",alt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[127]||(e[127]=(...f)=>r.reinstallPetalsService&&r.reinstallPetalsService(...f))},"install petals service")])])]),_("tr",null,[llt,_("td",null,[_("div",clt,[Ee(_("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[128]||(e[128]=f=>r.configFile.petals_base_url=f),onChange:e[129]||(e[129]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.petals_base_url]])])])])])]),_:1}),Ie(o,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",dlt,[_("tr",null,[ult,_("td",null,[_("div",plt,[Ee(_("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[130]||(e[130]=f=>r.configFile.elastic_search_service=f),onChange:e[131]||(e[131]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.elastic_search_service]])])])]),_("tr",null,[_lt,_("td",null,[_("div",hlt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[132]||(e[132]=(...f)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(...f))},"install ElasticSearch service")])])]),_("tr",null,[flt,_("td",null,[_("div",mlt,[Ee(_("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[133]||(e[133]=f=>r.configFile.elastic_search_url=f),onChange:e[134]||(e[134]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.elastic_search_url]])])])])])]),_:1}),Ie(o,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:nt(()=>[_("table",glt,[_("tr",null,[blt,_("td",null,[_("div",Elt,[Ee(_("input",{type:"checkbox",id:"enable_voice_service",required:"","onUpdate:modelValue":e[135]||(e[135]=f=>r.configFile.enable_voice_service=f),onChange:e[136]||(e[136]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[At,r.configFile.enable_voice_service]])])])]),_("tr",null,[Slt,_("td",null,[_("div",vlt,[_("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[137]||(e[137]=(...f)=>r.reinstallAudioService&&r.reinstallAudioService(...f))},"install xtts service")])])]),_("tr",null,[ylt,_("td",null,[_("div",Tlt,[Ee(_("input",{type:"text",id:"xtts_base_url",required:"","onUpdate:modelValue":e[138]||(e[138]=f=>r.configFile.xtts_base_url=f),onChange:e[139]||(e[139]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[Qe,r.configFile.xtts_base_url]])])])]),_("tr",null,[xlt,_("td",null,[_("div",Clt,[Ee(_("select",{"onUpdate:modelValue":e[140]||(e[140]=f=>r.current_language=f),onChange:e[141]||(e[141]=f=>s.settingsChanged=!0),disabled:!r.enable_voice_service},[(O(!0),D(qe,null,lt(s.voice_languages,(f,E)=>(O(),D("option",{key:E,value:f},fe(E),9,Alt))),128))],40,Rlt),[[qn,r.current_language]])])])]),_("tr",null,[wlt,_("td",null,[_("div",Nlt,[Ee(_("select",{"onUpdate:modelValue":e[142]||(e[142]=f=>r.current_voice=f),onChange:e[143]||(e[143]=f=>s.settingsChanged=!0),disabled:!r.enable_voice_service},[(O(!0),D(qe,null,lt(s.voices,f=>(O(),D("option",{key:f,value:f},fe(f),9,Ilt))),128))],40,Olt),[[qn,r.current_voice]])])])]),_("tr",null,[Mlt,_("td",null,[_("div",Dlt,[Ee(_("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>r.configFile.auto_read=f),onChange:e[145]||(e[145]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:!r.enable_voice_service},null,40,Llt),[[At,r.configFile.auto_read]])])])])])]),_:1})],2)]),_("div",klt,[_("div",Plt,[_("button",{onClick:e[146]||(e[146]=xe(f=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[Ee(_("div",null,Flt,512),[[Mt,s.bzc_collapsed]]),Ee(_("div",null,Glt,512),[[Mt,!s.bzc_collapsed]]),Vlt,r.configFile.binding_name?j("",!0):(O(),D("div",Hlt,[zlt,je(" No binding selected! ")])),r.configFile.binding_name?(O(),D("div",qlt,"|")):j("",!0),r.configFile.binding_name?(O(),D("div",Ylt,[_("div",$lt,[_("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Wlt),_("h3",Klt,fe(r.binding_name),1)])])):j("",!0)])]),_("div",{class:ze([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(O(),D("div",jlt,[_("label",Qlt," Bindings: ("+fe(r.bindingsZoo.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"list"},{default:nt(()=>[(O(!0),D(qe,null,lt(r.bindingsZoo,(f,E)=>(O(),Nt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+E+"-"+f.folder,binding:f,"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:f.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)])):j("",!0),s.bzl_collapsed?(O(),D("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[147]||(e[147]=f=>s.bzl_collapsed=!s.bzl_collapsed)},Zlt)):(O(),D("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[148]||(e[148]=f=>s.bzl_collapsed=!s.bzl_collapsed)},ect))],2)]),_("div",tct,[_("div",nct,[_("button",{onClick:e[149]||(e[149]=xe(f=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Ee(_("div",null,sct,512),[[Mt,s.mzc_collapsed]]),Ee(_("div",null,oct,512),[[Mt,!s.mzc_collapsed]]),act,_("div",lct,[r.configFile.binding_name?j("",!0):(O(),D("div",cct,[dct,je(" Select binding first! ")])),!r.configFile.model_name&&r.configFile.binding_name?(O(),D("div",uct,[pct,je(" No model selected! ")])):j("",!0),r.configFile.model_name?(O(),D("div",_ct,"|")):j("",!0),r.configFile.model_name?(O(),D("div",hct,[_("div",fct,[_("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,mct),_("h3",gct,fe(r.configFile.model_name),1)])])):j("",!0)])])]),_("div",{class:ze([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",bct,[_("div",Ect,[_("div",Sct,[s.searchModelInProgress?(O(),D("div",vct,Tct)):j("",!0),s.searchModelInProgress?j("",!0):(O(),D("div",xct,Rct))]),Ee(_("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[150]||(e[150]=f=>s.searchModel=f),onKeyup:e[151]||(e[151]=fr((...f)=>r.searchModel_func&&r.searchModel_func(...f),["enter"]))},null,544),[[Qe,s.searchModel]]),s.searchModel?(O(),D("button",{key:0,onClick:e[152]||(e[152]=xe(f=>s.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")):j("",!0)])]),_("div",null,[Ee(_("input",{"onUpdate:modelValue":e[153]||(e[153]=f=>s.show_only_installed_models=f),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[At,s.show_only_installed_models]]),Act]),_("div",null,[Ie(l,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),wct,s.is_loading_zoo?(O(),D("div",Nct,Mct)):j("",!0),s.models_zoo&&s.models_zoo.length>0?(O(),D("div",Dct,[_("label",Lct," Models: ("+fe(s.models_zoo.length)+") ",1),_("div",{class:ze(["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",s.mzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"list"},{default:nt(()=>[(O(!0),D(qe,null,lt(r.rendered_models_zoo,(f,E)=>(O(),Nt(c,{ref_for:!0,ref:"modelZoo",key:"index-"+E+"-"+f.name,model:f,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:f.name===r.configFile.model_name,model_type:f.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)),_("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[154]||(e[154]=(...f)=>r.load_more_models&&r.load_more_models(...f))},"Load more models",512)]),_:1})],2)])):j("",!0),s.mzl_collapsed?(O(),D("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[155]||(e[155]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Pct)):(O(),D("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[156]||(e[156]=(...f)=>r.open_mzl&&r.open_mzl(...f))},Fct)),_("div",Bct,[_("div",Gct,[_("div",null,[_("div",Vct,[Hct,Ee(_("input",{type:"text","onUpdate:modelValue":e[157]||(e[157]=f=>s.reference_path=f),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),[[Qe,s.reference_path]])]),_("button",{type:"button",onClick:e[158]||(e[158]=xe(f=>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")]),s.modelDownlaodInProgress?j("",!0):(O(),D("div",zct,[_("div",qct,[Yct,Ee(_("input",{type:"text","onUpdate:modelValue":e[159]||(e[159]=f=>s.addModel.url=f),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),[[Qe,s.addModel.url]])]),_("button",{type:"button",onClick:e[160]||(e[160]=xe(f=>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")])),s.modelDownlaodInProgress?(O(),D("div",$ct,[Wct,_("div",Kct,[_("div",jct,[_("div",Qct,[Xct,_("span",Zct,fe(Math.floor(s.addModel.progress))+"%",1)]),_("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},fe(s.addModel.url),9,Jct),_("div",edt,[_("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Zt({width:s.addModel.progress+"%"})},null,4)]),_("div",tdt,[_("span",ndt,"Download speed: "+fe(r.speed_computed)+"/s",1),_("span",idt,fe(r.downloaded_size_computed)+"/"+fe(r.total_size_computed),1)])])]),_("div",sdt,[_("div",rdt,[_("div",odt,[_("button",{onClick:e[161]||(e[161]=xe((...f)=>r.onCancelInstall&&r.onCancelInstall(...f),["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 ")])])])])):j("",!0)])])],2)]),_("div",adt,[_("div",ldt,[_("button",{onClick:e[164]||(e[164]=xe(f=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,ddt,512),[[Mt,s.pzc_collapsed]]),Ee(_("div",null,pdt,512),[[Mt,!s.pzc_collapsed]]),_dt,r.configFile.personalities?(O(),D("div",hdt,"|")):j("",!0),_("div",fdt,fe(r.active_pesonality),1),r.configFile.personalities?(O(),D("div",mdt,"|")):j("",!0),r.configFile.personalities?(O(),D("div",gdt,[r.mountedPersArr.length>0?(O(),D("div",bdt,[(O(!0),D(qe,null,lt(r.mountedPersArr,(f,E)=>(O(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[_("div",Edt,[_("button",{onClick:xe(b=>r.onPersonalitySelected(f),["stop"])},[_("img",{src:s.bUrl+f.avatar,onError:e[162]||(e[162]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:ze(["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(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,vdt)],8,Sdt),_("button",{onClick:xe(b=>r.unmountPersonality(f),["stop"])},xdt,8,ydt)])]))),128))])):j("",!0)])):j("",!0),_("button",{onClick:e[163]||(e[163]=xe(f=>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"},Rdt)])]),_("div",{class:ze([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",Adt,[wdt,_("div",Ndt,[_("div",Odt,[s.searchPersonalityInProgress?(O(),D("div",Idt,Ddt)):j("",!0),s.searchPersonalityInProgress?j("",!0):(O(),D("div",Ldt,Pdt))]),Ee(_("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[165]||(e[165]=f=>s.searchPersonality=f),onKeyup:e[166]||(e[166]=xe((...f)=>r.searchPersonality_func&&r.searchPersonality_func(...f),["stop"]))},null,544),[[Qe,s.searchPersonality]]),s.searchPersonality?(O(),D("button",{key:0,onClick:e[167]||(e[167]=xe(f=>s.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")):j("",!0)])]),s.searchPersonality?j("",!0):(O(),D("div",Udt,[_("label",Fdt," Personalities Category: ("+fe(s.persCatgArr.length)+") ",1),_("select",{id:"persCat",onChange:e[168]||(e[168]=f=>r.update_personality_category(f.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"},[(O(!0),D(qe,null,lt(s.persCatgArr,(f,E)=>(O(),D("option",{key:E,selected:f==this.configFile.personality_category},fe(f),9,Bdt))),128))],32)])),_("div",null,[s.personalitiesFiltered.length>0?(O(),D("div",Gdt,[_("label",Vdt,fe(s.searchPersonality?"Search results":"Personalities")+": ("+fe(s.personalitiesFiltered.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[Ie(ys,{name:"bounce"},{default:nt(()=>[(O(!0),D(qe,null,lt(s.personalitiesFiltered,(f,E)=>(O(),Nt(d,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+E+"-"+f.name,personality:f,select_language:!0,full_path:f.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===f.full_path||b===f.full_path+":"+f.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings","on-copy-personality-name"]))),128))]),_:1})],2)])):j("",!0)]),s.pzl_collapsed?(O(),D("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[169]||(e[169]=f=>s.pzl_collapsed=!s.pzl_collapsed)},zdt)):(O(),D("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[170]||(e[170]=f=>s.pzl_collapsed=!s.pzl_collapsed)},Ydt))],2)]),_("div",$dt,[_("div",Wdt,[_("button",{onClick:e[172]||(e[172]=xe(f=>s.ezc_collapsed=!s.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,jdt,512),[[Mt,s.ezc_collapsed]]),Ee(_("div",null,Xdt,512),[[Mt,!s.ezc_collapsed]]),Zdt,r.configFile.extensions?(O(),D("div",Jdt,"|")):j("",!0),r.configFile.extensions?(O(),D("div",eut,[r.mountedExtensions.length>0?(O(),D("div",tut,[(O(!0),D(qe,null,lt(r.mountedExtensions,(f,E)=>(O(),D("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:E+"-"+f.name,ref_for:!0,ref:"mountedExtensions"},[_("div",nut,[_("button",null,[_("img",{src:s.bUrl+f.avatar,onError:e[171]||(e[171]=(...b)=>r.extensionImgPlacehodler&&r.extensionImgPlacehodler(...b)),class:ze(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary","border-transparent z-0"]),title:f.name},null,40,iut)]),_("button",{onClick:xe(b=>r.unmountExtension(f),["stop"])},out,8,sut)])]))),128))])):j("",!0)])):j("",!0)])]),_("div",{class:ze([{hidden:s.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[_("div",aut,[lut,_("div",cut,[_("div",dut,[s.searchExtensionInProgress?(O(),D("div",uut,_ut)):j("",!0),s.searchExtensionInProgress?j("",!0):(O(),D("div",hut,mut))]),Ee(_("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 extension...",required:"","onUpdate:modelValue":e[173]||(e[173]=f=>s.searchExtension=f),onKeyup:e[174]||(e[174]=xe((...f)=>n.searchExtension_func&&n.searchExtension_func(...f),["stop"]))},null,544),[[Qe,s.searchExtension]]),s.searchExtension?(O(),D("button",{key:0,onClick:e[175]||(e[175]=xe(f=>s.searchExtension="",["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")):j("",!0)])]),s.searchExtension?j("",!0):(O(),D("div",gut,[_("label",but," Extensions Category: ("+fe(s.extCatgArr.length)+") ",1),_("select",{id:"extCat",onChange:e[176]||(e[176]=f=>r.update_extension_category(f.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"},[(O(!0),D(qe,null,lt(s.extCatgArr,(f,E)=>(O(),D("option",{key:E,selected:f==this.extension_category},fe(f),9,Eut))),128))],32)])),_("div",null,[s.extensionsFiltered.length>0?(O(),D("div",Sut,[_("label",vut,fe(s.searchExtension?"Search results":"Personalities")+": ("+fe(s.extensionsFiltered.length)+") ",1),_("div",{class:ze(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.ezl_collapsed?"":"max-h-96"])},[(O(!0),D(qe,null,lt(s.extensionsFiltered,(f,E)=>(O(),Nt(u,{ref_for:!0,ref:"extensionsZoo",key:"index-"+E+"-"+f.name,extension:f,select_language:!0,full_path:f.full_path,"on-mount":r.mountExtension,"on-un-mount":r.unmountExtension,"on-remount":r.remountExtension,"on-reinstall":r.onExtensionReinstall,"on-settings":r.onSettingsExtension},null,8,["extension","full_path","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))],2)])):j("",!0)]),s.ezc_collapsed?(O(),D("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[177]||(e[177]=f=>s.ezl_collapsed=!s.ezl_collapsed)},Tut)):(O(),D("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[178]||(e[178]=f=>s.ezl_collapsed=!s.ezl_collapsed)},Cut))],2)]),_("div",Rut,[_("div",Aut,[_("button",{onClick:e[179]||(e[179]=xe(f=>s.mep_collapsed=!s.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[Ee(_("div",null,Nut,512),[[Mt,s.mep_collapsed]]),Ee(_("div",null,Iut,512),[[Mt,!s.mep_collapsed]]),Mut])]),_("div",{class:ze([{hidden:s.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),_("div",Dut,[_("div",Lut,[_("button",{onClick:e[180]||(e[180]=xe(f=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[Ee(_("div",null,Put,512),[[Mt,s.mc_collapsed]]),Ee(_("div",null,Fut,512),[[Mt,!s.mc_collapsed]]),But])]),_("div",{class:ze([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[_("div",Gut,[_("div",Vut,[Ee(_("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[181]||(e[181]=xe(()=>{},["stop"])),"onUpdate:modelValue":e[182]||(e[182]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[183]||(e[183]=f=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[At,r.configFile.override_personality_model_parameters]]),Hut])]),_("div",{class:ze(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[_("div",zut,[qut,Ee(_("input",{type:"text",id:"seed","onUpdate:modelValue":e[184]||(e[184]=f=>r.configFile.seed=f),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),[[Qe,r.configFile.seed]])]),_("div",Yut,[_("div",$ut,[_("div",Wut,[Kut,_("p",jut,[Ee(_("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[185]||(e[185]=f=>r.configFile.temperature=f),onChange:e[186]||(e[186]=f=>s.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),[[Qe,r.configFile.temperature]])])]),Ee(_("input",{id:"temperature",onChange:e[187]||(e[187]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[188]||(e[188]=f=>r.configFile.temperature=f),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),[[Qe,r.configFile.temperature]])])]),_("div",Qut,[_("div",Xut,[_("div",Zut,[Jut,_("p",ept,[Ee(_("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[189]||(e[189]=f=>r.configFile.n_predict=f),onChange:e[190]||(e[190]=f=>s.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),[[Qe,r.configFile.n_predict]])])]),Ee(_("input",{id:"predict",type:"range",onChange:e[191]||(e[191]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[192]||(e[192]=f=>r.configFile.n_predict=f),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),[[Qe,r.configFile.n_predict]])])]),_("div",tpt,[_("div",npt,[_("div",ipt,[spt,_("p",rpt,[Ee(_("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[193]||(e[193]=f=>r.configFile.top_k=f),onChange:e[194]||(e[194]=f=>s.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),[[Qe,r.configFile.top_k]])])]),Ee(_("input",{id:"top_k",type:"range",onChange:e[195]||(e[195]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[196]||(e[196]=f=>r.configFile.top_k=f),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),[[Qe,r.configFile.top_k]])])]),_("div",opt,[_("div",apt,[_("div",lpt,[cpt,_("p",dpt,[Ee(_("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[197]||(e[197]=f=>r.configFile.top_p=f),onChange:e[198]||(e[198]=f=>s.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),[[Qe,r.configFile.top_p]])])]),Ee(_("input",{id:"top_p",type:"range","onUpdate:modelValue":e[199]||(e[199]=f=>r.configFile.top_p=f),min:"0",max:"1",step:"0.01",onChange:e[200]||(e[200]=f=>s.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),[[Qe,r.configFile.top_p]])])]),_("div",upt,[_("div",ppt,[_("div",_pt,[hpt,_("p",fpt,[Ee(_("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[201]||(e[201]=f=>r.configFile.repeat_penalty=f),onChange:e[202]||(e[202]=f=>s.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),[[Qe,r.configFile.repeat_penalty]])])]),Ee(_("input",{id:"repeat_penalty",onChange:e[203]||(e[203]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[204]||(e[204]=f=>r.configFile.repeat_penalty=f),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),[[Qe,r.configFile.repeat_penalty]])])]),_("div",mpt,[_("div",gpt,[_("div",bpt,[Ept,_("p",Spt,[Ee(_("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[205]||(e[205]=f=>r.configFile.repeat_last_n=f),onChange:e[206]||(e[206]=f=>s.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),[[Qe,r.configFile.repeat_last_n]])])]),Ee(_("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[207]||(e[207]=f=>r.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",onChange:e[208]||(e[208]=f=>s.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),[[Qe,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),Ie(h,{ref:"addmodeldialog"},null,512),Ie(m,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const ypt=gt(jit,[["render",vpt],["__scopeId","data-v-f83b5f82"]]),Tpt={components:{ClipBoardTextInput:rE,Card:uc},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={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};ke.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.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(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},xpt={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"},Cpt={class:"mb-4"},Rpt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Apt=["value"],wpt={class:"mb-4"},Npt=_("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Opt={class:"mb-4"},Ipt=_("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Mpt={class:"mb-4"},Dpt=_("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Lpt={class:"mb-4"},kpt=_("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Ppt={class:"mb-4"},Upt=_("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Fpt={class:"mb-4"},Bpt=_("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Gpt=_("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Vpt={key:1};function Hpt(n,e,t,i,s,r){const o=ut("Card"),a=ut("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(O(),D("div",xpt,[_("form",{onSubmit:e[2]||(e[2]=xe((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:""},[Ie(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Ie(o,{title:"Model",class:"",isHorizontal:!1},{default:nt(()=>[_("div",Cpt,[Rpt,Ee(_("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>r.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>n.setModel&&n.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(O(!0),D(qe,null,lt(r.models,l=>(O(),D("option",{key:l,value:l},fe(l),9,Apt))),128))],544),[[qn,r.selectedModel]])])]),_:1}),Ie(o,{title:"Data",isHorizontal:!1},{default:nt(()=>[_("div",wpt,[Npt,Ie(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),Ie(o,{title:"Training",isHorizontal:!1},{default:nt(()=>[_("div",Opt,[Ipt,Ie(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),_("div",Mpt,[Dpt,Ie(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),_("div",Lpt,[kpt,Ie(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),_("div",Ppt,[Upt,Ie(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),Ie(o,{title:"Output",isHorizontal:!1},{default:nt(()=>[_("div",Fpt,[Bpt,Ie(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),Ie(o,{disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Gpt]),_:1})],32)])):(O(),D("div",Vpt,[Ie(o,{title:"Info",class:"",isHorizontal:!1},{default:nt(()=>[je(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const zpt=gt(Tpt,[["render",Hpt]]),qpt={components:{ClipBoardTextInput:rE,Card:uc},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(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Ypt={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"},$pt={class:"mb-4"},Wpt=_("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Kpt={class:"mb-4"},jpt=_("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Qpt=_("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Xpt(n,e,t,i,s,r){const o=ut("ClipBoardTextInput"),a=ut("Card");return O(),D("div",Ypt,[_("form",{onSubmit:e[0]||(e[0]=xe((...l)=>r.submitForm&&r.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[Ie(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Ie(a,{title:"Model",class:"",isHorizontal:!1},{default:nt(()=>[_("div",$pt,[Wpt,Ie(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),_("div",Kpt,[jpt,Ie(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),Ie(a,{disableHoverAnimation:!0,disableFocus:!0},{default:nt(()=>[Qpt]),_:1})],32)])}const Zpt=gt(qpt,[["render",Xpt]]),Jpt={name:"Discussion",emits:["delete","select","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,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")},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(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Fe(()=>{Be.replace()})},watch:{showConfirmation(){Fe(()=>{Be.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Fe(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Fe(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},e_t=["id"],t_t={class:"flex flex-row items-center gap-2"},n_t={key:0},i_t=["title"],s_t=["value"],r_t={class:"flex items-center flex-1 max-h-6"},o_t={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},a_t=_("i",{"data-feather":"x"},null,-1),l_t=[a_t],c_t=_("i",{"data-feather":"check"},null,-1),d_t=[c_t],u_t={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},p_t=_("i",{"data-feather":"type"},null,-1),__t=[p_t],h_t=_("i",{"data-feather":"edit-2"},null,-1),f_t=[h_t],m_t=_("i",{"data-feather":"trash"},null,-1),g_t=[m_t];function b_t(n,e,t,i,s,r){return O(),D("div",{class:ze([t.selected?"bg-bg-light-discussion dark:bg-bg-dark-discussion shadow-md min-w-[23rem] max-w-[23rem]":" min-w-[23rem] max-w-[23rem]","flex flex-row sm:flex-row flex-wrap flex-shrink: 0 item-center shadow-sm 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"]),id:"dis-"+t.id,onClick:e[12]||(e[12]=xe(o=>r.selectEvent(),["stop"]))},[_("div",t_t,[t.isCheckbox?(O(),D("div",n_t,[Ee(_("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]=xe(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[At,s.checkBoxValue_local]])])):j("",!0),t.selected?(O(),D("div",{key:1,class:ze(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):j("",!0),t.selected?j("",!0):(O(),D("div",{key:2,class:ze(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?j("",!0):(O(),D("p",{key:0,title:t.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},fe(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,i_t)),s.editTitle?(O(),D("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:t.title,required:"",onKeydown:[e[3]||(e[3]=fr(xe(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=fr(xe(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=xe(()=>{},["stop"]))},null,40,s_t)):j("",!0),_("div",r_t,[s.showConfirmation?(O(),D("div",o_t,[_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=xe(o=>r.cancel(),["stop"]))},l_t),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=xe(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},d_t)])):j("",!0),s.showConfirmation?j("",!0):(O(),D("div",u_t,[_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[9]||(e[9]=xe(o=>s.makeTitleMode=!0,["stop"]))},__t),_("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[10]||(e[10]=xe(o=>s.editTitleMode=!0,["stop"]))},f_t),_("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[11]||(e[11]=xe(o=>s.deleteMode=!0,["stop"]))},g_t)]))])],10,e_t)}const LN=gt(Jpt,[["render",b_t]]),E_t={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(n){this.prompt=n}}},S_t={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},v_t={class:"bg-white p-8 rounded"},y_t={class:"text-xl font-bold mb-4"};function T_t(n,e,t,i,s,r){return O(),D("div",null,[s.show?(O(),D("div",S_t,[_("div",v_t,[_("h2",y_t,fe(t.promptText),1),Ee(_("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[Qe,s.inputText]]),_("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"),_("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):j("",!0)])}const kN=gt(E_t,[["render",T_t]]),x_t={props:{htmlContent:{type:String,required:!0}}},C_t=["innerHTML"];function R_t(n,e,t,i,s,r){return O(),D("div",null,[_("div",{innerHTML:t.htmlContent},null,8,C_t)])}const A_t=gt(x_t,[["render",R_t]]);const w_t={props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Form"}},data(){return{collapsed:!0}},computed:{formattedJson(){return typeof this.jsonData=="string"?JSON.stringify(JSON.parse(this.jsonData),null," ").replace(/\n/g,"
"):JSON.stringify(this.jsonData,null," ").replace(/\n/g,"
")},isObject(){return typeof this.jsonData=="object"&&this.jsonData!==null},isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")}},methods:{toggleCollapsed(){this.collapsed=!this.collapsed},toggleCollapsible(){this.collapsed=!this.collapsed}}},N_t={key:0},O_t={class:"toggle-icon mr-1"},I_t={key:0,class:"fas fa-plus-circle text-gray-600"},M_t={key:1,class:"fas fa-minus-circle text-gray-600"},D_t={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},L_t={key:0,class:"fas fa-plus-circle text-gray-600"},k_t={key:1,class:"fas fa-minus-circle text-gray-600"},P_t=["innerHTML"];function U_t(n,e,t,i,s,r){return r.isContentPresent?(O(),D("div",N_t,[_("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...o)=>r.toggleCollapsible&&r.toggleCollapsible(...o))},[_("span",O_t,[s.collapsed?(O(),D("i",I_t)):(O(),D("i",M_t))]),je(" "+fe(t.jsonFormText),1)]),Ee(_("div",null,[_("div",D_t,[r.isObject?(O(),D("span",{key:0,onClick:e[1]||(e[1]=(...o)=>r.toggleCollapsed&&r.toggleCollapsed(...o)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(O(),D("i",L_t)):(O(),D("i",k_t))])):j("",!0),_("pre",{innerHTML:r.formattedJson},null,8,P_t)])],512),[[Mt,!s.collapsed]])])):j("",!0)}const F_t=gt(w_t,[["render",U_t]]),B_t={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},G_t={class:"step flex items-center mb-4"},V_t={class:"flex items-center justify-center w-6 h-6 mr-2"},H_t={key:0},z_t=_("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),q_t=[z_t],Y_t={key:1},$_t=_("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),W_t=[$_t],K_t={key:2},j_t=_("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Q_t=[j_t],X_t={key:0,role:"status"},Z_t=_("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"},[_("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"}),_("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),J_t=[Z_t];function eht(n,e,t,i,s,r){return O(),D("div",G_t,[_("div",V_t,[t.done?j("",!0):(O(),D("div",H_t,q_t)),t.done&&t.status?(O(),D("div",Y_t,W_t)):j("",!0),t.done&&!t.status?(O(),D("div",K_t,Q_t)):j("",!0)]),t.done?j("",!0):(O(),D("div",X_t,J_t)),_("div",{class:ze(["content flex-1 px-2",{"text-green-500":t.done,"text-yellow-500":!t.done}])},fe(t.message),3)])}const tht=gt(B_t,[["render",eht]]);const nC="/",nht={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:Zb,Step:tht,RenderHTMLJS:A_t,JsonViewer:F_t,DynamicUIRenderer:DN},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:""},data(){return{isSynthesizingVoice:!1,cpp_block:AN,html5_block:wN,LaTeX_block:NN,json_block:RN,javascript_block:CN,python_block:xN,bash_block:ON,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser."),Fe(()=>{Be.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),this.message.hasOwnProperty("metadata")&&this.message.metadata!=null&&(this.audio_url=this.message.metadata.hasOwnProperty("audio_url")?this.message.metadata.audio_url:null)},methods:{insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)==" "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+" "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(` `).map(d=>d.trim()===""?d:s?d.startsWith(" ")?d.substring(4):d:" "+d),a=e.value.substring(0,t),l=e.value.substring(i),c=a+o.join(` `)+l;this.message.content=c,this.$nextTick(()=>{e.selectionStart=t,e.selectionEnd=i+o.length*4})}n.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,ke.post("./text2Audio",{text:this.message.content}).then(n=>{let e=n.data.url;console.log(e),this.audio_url=e,this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSynthesizingVoice=!1}))},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=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(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const t=s=>{let r=this.message.content.substring(s,s+e);const o=[".","!","?",` `];let a=-1;return o.forEach(l=>{const c=r.lastIndexOf(l);c>a&&(a=c)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{if(this.message.content.includes(".")){const s=t(n),r=this.message.content.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{i()},1)};i()},toggleModel(){this.expanded=!this.expanded},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.message.content[e-1]==` @@ -214,7 +214,7 @@ ${l}`;navigator.clipboard.writeText(c),Fe(()=>{Be.replace()})},closeToast(){this * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT - */const AE="159",bSt=0,fC=1,ESt=2,rO=1,SSt=2,gs=3,Os=0,Kn=1,zi=2,cr=0,Jo=1,mC=2,gC=3,bC=4,vSt=5,Gr=100,ySt=101,TSt=102,EC=103,SC=104,xSt=200,CSt=201,RSt=202,ASt=203,Gg=204,Vg=205,wSt=206,NSt=207,OSt=208,ISt=209,MSt=210,DSt=211,LSt=212,kSt=213,PSt=214,USt=0,FSt=1,BSt=2,su=3,GSt=4,VSt=5,HSt=6,zSt=7,wE=0,qSt=1,YSt=2,dr=0,$St=1,WSt=2,KSt=3,jSt=4,QSt=5,vC="attached",XSt="detached",oO=300,ma=301,ga=302,Hg=303,zg=304,Xu=306,ba=1e3,di=1001,ru=1002,gn=1003,qg=1004,Od=1005,Yn=1006,aO=1007,io=1008,ur=1009,ZSt=1010,JSt=1011,NE=1012,lO=1013,rr=1014,Ss=1015,Xl=1016,cO=1017,dO=1018,jr=1020,evt=1021,ui=1023,tvt=1024,nvt=1025,Qr=1026,Ea=1027,ivt=1028,uO=1029,svt=1030,pO=1031,_O=1033,Sm=33776,vm=33777,ym=33778,Tm=33779,yC=35840,TC=35841,xC=35842,CC=35843,hO=36196,RC=37492,AC=37496,wC=37808,NC=37809,OC=37810,IC=37811,MC=37812,DC=37813,LC=37814,kC=37815,PC=37816,UC=37817,FC=37818,BC=37819,GC=37820,VC=37821,xm=36492,HC=36494,zC=36495,rvt=36283,qC=36284,YC=36285,$C=36286,Zl=2300,Sa=2301,Cm=2302,WC=2400,KC=2401,jC=2402,ovt=2500,avt=0,fO=1,Yg=2,mO=3e3,Xr=3001,lvt=3200,cvt=3201,OE=0,dvt=1,pi="",nn="srgb",Cn="srgb-linear",IE="display-p3",Zu="display-p3-linear",ou="linear",$t="srgb",au="rec709",lu="p3",yo=7680,QC=519,uvt=512,pvt=513,_vt=514,gO=515,hvt=516,fvt=517,mvt=518,gvt=519,$g=35044,XC="300 es",Wg=1035,vs=2e3,cu=2001;class Va{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let r=0,o=s.length;r>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[i&255]+An[i>>8&255]+An[i>>16&255]+An[i>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function ME(n,e){return(n%e+e)%e}function bvt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function Evt(n,e,t){return n!==e?(t-n)/(e-n):0}function Ol(n,e,t){return(1-t)*n+t*e}function Svt(n,e,t,i){return Ol(n,e,1-Math.exp(-t*i))}function vvt(n,e=1){return e-Math.abs(ME(n,e*2)-e)}function yvt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function Tvt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function xvt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function Cvt(n,e){return n+Math.random()*(e-n)}function Rvt(n){return n*(.5-Math.random())}function Avt(n){n!==void 0&&(ZC=n);let e=ZC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function wvt(n){return n*Nl}function Nvt(n){return n*va}function Kg(n){return(n&n-1)===0&&n!==0}function Ovt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function du(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Ivt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),c=r((e+i)/2),d=o((e+i)/2),u=r((e-i)/2),h=o((e-i)/2),m=r((i-e)/2),f=o((i-e)/2);switch(s){case"XYX":n.set(a*d,l*u,l*h,a*c);break;case"YZY":n.set(l*h,a*d,l*u,a*c);break;case"ZXZ":n.set(l*u,l*h,a*d,a*c);break;case"XZX":n.set(a*d,l*f,l*m,a*c);break;case"YXY":n.set(l*m,a*d,l*f,a*c);break;case"ZYZ":n.set(l*f,l*m,a*d,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function qi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Gt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const Mvt={DEG2RAD:Nl,RAD2DEG:va,generateUUID:Di,clamp:On,euclideanModulo:ME,mapLinear:bvt,inverseLerp:Evt,lerp:Ol,damp:Svt,pingpong:vvt,smoothstep:yvt,smootherstep:Tvt,randInt:xvt,randFloat:Cvt,randFloatSpread:Rvt,seededRandom:Avt,degToRad:wvt,radToDeg:Nvt,isPowerOfTwo:Kg,ceilPowerOfTwo:Ovt,floorPowerOfTwo:du,setQuaternionFromProperEuler:Ivt,normalize:Gt,denormalize:qi};class At{constructor(e=0,t=0){At.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class yt{constructor(e,t,i,s,r,o,a,l,c){yt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,c)}set(e,t,i,s,r,o,a,l,c){const d=this.elements;return d[0]=e,d[1]=s,d[2]=a,d[3]=t,d[4]=r,d[5]=l,d[6]=i,d[7]=o,d[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],l=i[6],c=i[1],d=i[4],u=i[7],h=i[2],m=i[5],f=i[8],E=s[0],b=s[3],g=s[6],S=s[1],y=s[4],T=s[7],C=s[2],x=s[5],w=s[8];return r[0]=o*E+a*S+l*C,r[3]=o*b+a*y+l*x,r[6]=o*g+a*T+l*w,r[1]=c*E+d*S+u*C,r[4]=c*b+d*y+u*x,r[7]=c*g+d*T+u*w,r[2]=h*E+m*S+f*C,r[5]=h*b+m*y+f*x,r[8]=h*g+m*T+f*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8];return t*o*d-t*a*c-i*r*d+i*a*l+s*r*c-s*o*l}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8],u=d*o-a*c,h=a*l-d*r,m=c*r-o*l,f=t*u+i*h+s*m;if(f===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/f;return e[0]=u*E,e[1]=(s*c-d*i)*E,e[2]=(a*i-s*o)*E,e[3]=h*E,e[4]=(d*t-s*l)*E,e[5]=(s*r-a*t)*E,e[6]=m*E,e[7]=(i*l-c*t)*E,e[8]=(o*t-i*r)*E,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const l=Math.cos(r),c=Math.sin(r);return this.set(i*l,i*c,-i*(l*o+c*a)+o+e,-s*c,s*l,-s*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Rm.makeScale(e,t)),this}rotate(e){return this.premultiply(Rm.makeRotation(-e)),this}translate(e,t){return this.premultiply(Rm.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Rm=new yt;function bO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Jl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function Dvt(){const n=Jl("canvas");return n.style.display="block",n}const JC={};function Il(n){n in JC||(JC[n]=!0,console.warn(n))}const e1=new yt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),t1=new yt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:ou,primaries:au,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:$t,primaries:au,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[Zu]:{transfer:ou,primaries:lu,toReference:n=>n.applyMatrix3(t1),fromReference:n=>n.applyMatrix3(e1)},[IE]:{transfer:$t,primaries:lu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(t1),fromReference:n=>n.applyMatrix3(e1).convertLinearToSRGB()}},Lvt=new Set([Cn,Zu]),Pt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!Lvt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Hc[e].toReference,s=Hc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===pi?ou:Hc[n].transfer}};function ea(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Am(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let To;class EO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{To===void 0&&(To=Jl("canvas")),To.width=e.width,To.height=e.height;const i=To.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=To}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Jl("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==oO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ba:e.x=e.x-Math.floor(e.x);break;case di:e.x=e.x<0?0:1;break;case ru: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 ba:e.y=e.y-Math.floor(e.y);break;case di:e.y=e.y<0?0:1;break;case ru: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 Il("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?Xr:mO}set encoding(e){Il("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Xr?nn:pi}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=oO;xn.DEFAULT_ANISOTROPY=1;class zt{constructor(e=0,t=0,i=0,s=1){zt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const l=e.elements,c=l[0],d=l[4],u=l[8],h=l[1],m=l[5],f=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-h)<.01&&Math.abs(u-E)<.01&&Math.abs(f-b)<.01){if(Math.abs(d+h)<.1&&Math.abs(u+E)<.1&&Math.abs(f+b)<.1&&Math.abs(c+m+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const y=(c+1)/2,T=(m+1)/2,C=(g+1)/2,x=(d+h)/4,w=(u+E)/4,R=(f+b)/4;return y>T&&y>C?y<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(y),s=x/i,r=w/i):T>C?T<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(T),i=x/s,r=R/s):C<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),i=w/r,s=R/r),this.set(i,s,r,t),this}let S=Math.sqrt((b-f)*(b-f)+(u-E)*(u-E)+(h-d)*(h-d));return Math.abs(S)<.001&&(S=1),this.x=(b-f)/S,this.y=(u-E)/S,this.z=(h-d)/S,this.w=Math.acos((c+m+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Uvt extends Va{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new zt(0,0,e,t),this.scissorTest=!1,this.viewport=new zt(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(Il("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===Xr?nn:pi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Yn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new xn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new SO(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class so extends Uvt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class vO extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=di,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Fvt extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=di,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class br{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let l=i[s+0],c=i[s+1],d=i[s+2],u=i[s+3];const h=r[o+0],m=r[o+1],f=r[o+2],E=r[o+3];if(a===0){e[t+0]=l,e[t+1]=c,e[t+2]=d,e[t+3]=u;return}if(a===1){e[t+0]=h,e[t+1]=m,e[t+2]=f,e[t+3]=E;return}if(u!==E||l!==h||c!==m||d!==f){let b=1-a;const g=l*h+c*m+d*f+u*E,S=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){const C=Math.sqrt(y),x=Math.atan2(C,g*S);b=Math.sin(b*x)/C,a=Math.sin(a*x)/C}const T=a*S;if(l=l*b+h*T,c=c*b+m*T,d=d*b+f*T,u=u*b+E*T,b===1-a){const C=1/Math.sqrt(l*l+c*c+d*d+u*u);l*=C,c*=C,d*=C,u*=C}}e[t]=l,e[t+1]=c,e[t+2]=d,e[t+3]=u}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],l=i[s+1],c=i[s+2],d=i[s+3],u=r[o],h=r[o+1],m=r[o+2],f=r[o+3];return e[t]=a*f+d*u+l*m-c*h,e[t+1]=l*f+d*h+c*u-a*m,e[t+2]=c*f+d*m+a*h-l*u,e[t+3]=d*f-a*u-l*h-c*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,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(i/2),d=a(s/2),u=a(r/2),h=l(i/2),m=l(s/2),f=l(r/2);switch(o){case"XYZ":this._x=h*d*u+c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u-h*m*f;break;case"YXZ":this._x=h*d*u+c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u+h*m*f;break;case"ZXY":this._x=h*d*u-c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u-h*m*f;break;case"ZYX":this._x=h*d*u-c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u+h*m*f;break;case"YZX":this._x=h*d*u+c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u-h*m*f;break;case"XZY":this._x=h*d*u-c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u+h*m*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],l=t[9],c=t[2],d=t[6],u=t[10],h=i+a+u;if(h>0){const m=.5/Math.sqrt(h+1);this._w=.25/m,this._x=(d-l)*m,this._y=(r-c)*m,this._z=(o-s)*m}else if(i>a&&i>u){const m=2*Math.sqrt(1+i-a-u);this._w=(d-l)/m,this._x=.25*m,this._y=(s+o)/m,this._z=(r+c)/m}else if(a>u){const m=2*Math.sqrt(1+a-i-u);this._w=(r-c)/m,this._x=(s+o)/m,this._y=.25*m,this._z=(l+d)/m}else{const m=2*Math.sqrt(1+u-i-a);this._w=(o-s)/m,this._x=(r+c)/m,this._y=(l+d)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,l=t._y,c=t._z,d=t._w;return this._x=i*d+o*a+s*c-r*l,this._y=s*d+o*l+r*a-i*c,this._z=r*d+o*c+i*l-s*a,this._w=o*d-i*a-s*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*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=i,this._y=s,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const m=1-t;return this._w=m*o+t*this._w,this._x=m*i+t*this._x,this._y=m*s+t*this._y,this._z=m*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(l),d=Math.atan2(c,a),u=Math.sin((1-t)*d)/c,h=Math.sin(t*d)/c;return this._w=o*u+this._w*h,this._x=i*u+this._x*h,this._y=s*u+this._y*h,this._z=r*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class pe{constructor(e=0,t=0,i=0){pe.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(n1.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(n1.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*s-a*i),d=2*(a*t-r*s),u=2*(r*i-o*t);return this.x=t+l*c+o*u-a*d,this.y=i+l*d+a*c-r*u,this.z=s+l*u+r*d-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=s*l-r*a,this.y=r*o-i*l,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Nm.copy(this).projectOnVector(e),this.sub(Nm)}reflect(e){return this.sub(Nm.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Nm=new pe,n1=new br;class Ps{constructor(e=new pe(1/0,1/0,1/0),t=new pe(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ti),Ti.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(al),qc.subVectors(this.max,al),xo.subVectors(e.a,al),Co.subVectors(e.b,al),Ro.subVectors(e.c,al),Hs.subVectors(Co,xo),zs.subVectors(Ro,Co),Ar.subVectors(xo,Ro);let t=[0,-Hs.z,Hs.y,0,-zs.z,zs.y,0,-Ar.z,Ar.y,Hs.z,0,-Hs.x,zs.z,0,-zs.x,Ar.z,0,-Ar.x,-Hs.y,Hs.x,0,-zs.y,zs.x,0,-Ar.y,Ar.x,0];return!Om(t,xo,Co,Ro,qc)||(t=[1,0,0,0,1,0,0,0,1],!Om(t,xo,Co,Ro,qc))?!1:(Yc.crossVectors(Hs,zs),t=[Yc.x,Yc.y,Yc.z],Om(t,xo,Co,Ro,qc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ti).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ti).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:(ds[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ds[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ds[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ds[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ds[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ds[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ds[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ds[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ds),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 ds=[new pe,new pe,new pe,new pe,new pe,new pe,new pe,new pe],Ti=new pe,zc=new Ps,xo=new pe,Co=new pe,Ro=new pe,Hs=new pe,zs=new pe,Ar=new pe,al=new pe,qc=new pe,Yc=new pe,wr=new pe;function Om(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){wr.fromArray(n,r);const a=s.x*Math.abs(wr.x)+s.y*Math.abs(wr.y)+s.z*Math.abs(wr.z),l=e.dot(wr),c=t.dot(wr),d=i.dot(wr);if(Math.max(-Math.max(l,c,d),Math.min(l,c,d))>a)return!1}return!0}const Bvt=new Ps,ll=new pe,Im=new pe;class ns{constructor(e=new pe,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):Bvt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ll.subVectors(e,this.center);const t=ll.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(ll,s/i),this.radius+=s}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):(Im.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ll.copy(e.center).add(Im)),this.expandByPoint(ll.copy(e.center).sub(Im))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const us=new pe,Mm=new pe,$c=new pe,qs=new pe,Dm=new pe,Wc=new pe,Lm=new pe;class Ju{constructor(e=new pe,t=new pe(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,us)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=us.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(us.copy(this.origin).addScaledVector(this.direction,t),us.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){Mm.copy(e).add(t).multiplyScalar(.5),$c.copy(t).sub(e).normalize(),qs.copy(this.origin).sub(Mm);const r=e.distanceTo(t)*.5,o=-this.direction.dot($c),a=qs.dot(this.direction),l=-qs.dot($c),c=qs.lengthSq(),d=Math.abs(1-o*o);let u,h,m,f;if(d>0)if(u=o*l-a,h=o*a-l,f=r*d,u>=0)if(h>=-f)if(h<=f){const E=1/d;u*=E,h*=E,m=u*(u+o*h+2*a)+h*(o*u+h+2*l)+c}else h=r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;else h=-r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;else h<=-f?(u=Math.max(0,-(-o*r+a)),h=u>0?-r:Math.min(Math.max(-r,-l),r),m=-u*u+h*(h+2*l)+c):h<=f?(u=0,h=Math.min(Math.max(-r,-l),r),m=h*(h+2*l)+c):(u=Math.max(0,-(o*r+a)),h=u>0?r:Math.min(Math.max(-r,-l),r),m=-u*u+h*(h+2*l)+c);else h=o>0?-r:r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;return i&&i.copy(this.origin).addScaledVector(this.direction,u),s&&s.copy(Mm).addScaledVector($c,h),m}intersectSphere(e,t){us.subVectors(e.center,this.origin);const i=us.dot(this.direction),s=us.dot(us)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,l=i+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,l;const c=1/this.direction.x,d=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(i=(e.min.x-h.x)*c,s=(e.max.x-h.x)*c):(i=(e.max.x-h.x)*c,s=(e.min.x-h.x)*c),d>=0?(r=(e.min.y-h.y)*d,o=(e.max.y-h.y)*d):(r=(e.max.y-h.y)*d,o=(e.min.y-h.y)*d),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o=0?(a=(e.min.z-h.z)*u,l=(e.max.z-h.z)*u):(a=(e.max.z-h.z)*u,l=(e.min.z-h.z)*u),i>l||a>s)||((a>i||i!==i)&&(i=a),(l=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,us)!==null}intersectTriangle(e,t,i,s,r){Dm.subVectors(t,e),Wc.subVectors(i,e),Lm.crossVectors(Dm,Wc);let o=this.direction.dot(Lm),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;qs.subVectors(this.origin,e);const l=a*this.direction.dot(Wc.crossVectors(qs,Wc));if(l<0)return null;const c=a*this.direction.dot(Dm.cross(qs));if(c<0||l+c>o)return null;const d=-a*qs.dot(Lm);return d<0?null:this.at(d/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 Tt{constructor(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b){Tt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b)}set(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=c,g[6]=d,g[10]=u,g[14]=h,g[3]=m,g[7]=f,g[11]=E,g[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 Tt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Ao.setFromMatrixColumn(e,0).length(),r=1/Ao.setFromMatrixColumn(e,1).length(),o=1/Ao.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),l=Math.cos(s),c=Math.sin(s),d=Math.cos(r),u=Math.sin(r);if(e.order==="XYZ"){const h=o*d,m=o*u,f=a*d,E=a*u;t[0]=l*d,t[4]=-l*u,t[8]=c,t[1]=m+f*c,t[5]=h-E*c,t[9]=-a*l,t[2]=E-h*c,t[6]=f+m*c,t[10]=o*l}else if(e.order==="YXZ"){const h=l*d,m=l*u,f=c*d,E=c*u;t[0]=h+E*a,t[4]=f*a-m,t[8]=o*c,t[1]=o*u,t[5]=o*d,t[9]=-a,t[2]=m*a-f,t[6]=E+h*a,t[10]=o*l}else if(e.order==="ZXY"){const h=l*d,m=l*u,f=c*d,E=c*u;t[0]=h-E*a,t[4]=-o*u,t[8]=f+m*a,t[1]=m+f*a,t[5]=o*d,t[9]=E-h*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const h=o*d,m=o*u,f=a*d,E=a*u;t[0]=l*d,t[4]=f*c-m,t[8]=h*c+E,t[1]=l*u,t[5]=E*c+h,t[9]=m*c-f,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const h=o*l,m=o*c,f=a*l,E=a*c;t[0]=l*d,t[4]=E-h*u,t[8]=f*u+m,t[1]=u,t[5]=o*d,t[9]=-a*d,t[2]=-c*d,t[6]=m*u+f,t[10]=h-E*u}else if(e.order==="XZY"){const h=o*l,m=o*c,f=a*l,E=a*c;t[0]=l*d,t[4]=-u,t[8]=c*d,t[1]=h*u+E,t[5]=o*d,t[9]=m*u-f,t[2]=f*u-m,t[6]=a*d,t[10]=E*u+h}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Gvt,e,Vvt)}lookAt(e,t,i){const s=this.elements;return Zn.subVectors(e,t),Zn.lengthSq()===0&&(Zn.z=1),Zn.normalize(),Ys.crossVectors(i,Zn),Ys.lengthSq()===0&&(Math.abs(i.z)===1?Zn.x+=1e-4:Zn.z+=1e-4,Zn.normalize(),Ys.crossVectors(i,Zn)),Ys.normalize(),Kc.crossVectors(Zn,Ys),s[0]=Ys.x,s[4]=Kc.x,s[8]=Zn.x,s[1]=Ys.y,s[5]=Kc.y,s[9]=Zn.y,s[2]=Ys.z,s[6]=Kc.z,s[10]=Zn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],l=i[8],c=i[12],d=i[1],u=i[5],h=i[9],m=i[13],f=i[2],E=i[6],b=i[10],g=i[14],S=i[3],y=i[7],T=i[11],C=i[15],x=s[0],w=s[4],R=s[8],v=s[12],A=s[1],P=s[5],U=s[9],Y=s[13],L=s[2],z=s[6],B=s[10],k=s[14],$=s[3],K=s[7],W=s[11],le=s[15];return r[0]=o*x+a*A+l*L+c*$,r[4]=o*w+a*P+l*z+c*K,r[8]=o*R+a*U+l*B+c*W,r[12]=o*v+a*Y+l*k+c*le,r[1]=d*x+u*A+h*L+m*$,r[5]=d*w+u*P+h*z+m*K,r[9]=d*R+u*U+h*B+m*W,r[13]=d*v+u*Y+h*k+m*le,r[2]=f*x+E*A+b*L+g*$,r[6]=f*w+E*P+b*z+g*K,r[10]=f*R+E*U+b*B+g*W,r[14]=f*v+E*Y+b*k+g*le,r[3]=S*x+y*A+T*L+C*$,r[7]=S*w+y*P+T*z+C*K,r[11]=S*R+y*U+T*B+C*W,r[15]=S*v+y*Y+T*k+C*le,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],l=e[9],c=e[13],d=e[2],u=e[6],h=e[10],m=e[14],f=e[3],E=e[7],b=e[11],g=e[15];return f*(+r*l*u-s*c*u-r*a*h+i*c*h+s*a*m-i*l*m)+E*(+t*l*m-t*c*h+r*o*h-s*o*m+s*c*d-r*l*d)+b*(+t*c*u-t*a*m-r*o*u+i*o*m+r*a*d-i*c*d)+g*(-s*a*d-t*l*u+t*a*h+s*o*u-i*o*h+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8],u=e[9],h=e[10],m=e[11],f=e[12],E=e[13],b=e[14],g=e[15],S=u*b*c-E*h*c+E*l*m-a*b*m-u*l*g+a*h*g,y=f*h*c-d*b*c-f*l*m+o*b*m+d*l*g-o*h*g,T=d*E*c-f*u*c+f*a*m-o*E*m-d*a*g+o*u*g,C=f*u*l-d*E*l-f*a*h+o*E*h+d*a*b-o*u*b,x=t*S+i*y+s*T+r*C;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/x;return e[0]=S*w,e[1]=(E*h*r-u*b*r-E*s*m+i*b*m+u*s*g-i*h*g)*w,e[2]=(a*b*r-E*l*r+E*s*c-i*b*c-a*s*g+i*l*g)*w,e[3]=(u*l*r-a*h*r-u*s*c+i*h*c+a*s*m-i*l*m)*w,e[4]=y*w,e[5]=(d*b*r-f*h*r+f*s*m-t*b*m-d*s*g+t*h*g)*w,e[6]=(f*l*r-o*b*r-f*s*c+t*b*c+o*s*g-t*l*g)*w,e[7]=(o*h*r-d*l*r+d*s*c-t*h*c-o*s*m+t*l*m)*w,e[8]=T*w,e[9]=(f*u*r-d*E*r-f*i*m+t*E*m+d*i*g-t*u*g)*w,e[10]=(o*E*r-f*a*r+f*i*c-t*E*c-o*i*g+t*a*g)*w,e[11]=(d*a*r-o*u*r-d*i*c+t*u*c+o*i*m-t*a*m)*w,e[12]=C*w,e[13]=(d*E*s-f*u*s+f*i*h-t*E*h-d*i*b+t*u*b)*w,e[14]=(f*a*s-o*E*s-f*i*l+t*E*l+o*i*b-t*a*b)*w,e[15]=(o*u*s-d*a*s+d*i*l-t*u*l-o*i*h+t*a*h)*w,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,l=e.z,c=r*o,d=r*a;return this.set(c*o+i,c*a-s*l,c*l+s*a,0,c*a+s*l,d*a+i,d*l-s*o,0,c*l-s*a,d*l+s*o,r*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,c=r+r,d=o+o,u=a+a,h=r*c,m=r*d,f=r*u,E=o*d,b=o*u,g=a*u,S=l*c,y=l*d,T=l*u,C=i.x,x=i.y,w=i.z;return s[0]=(1-(E+g))*C,s[1]=(m+T)*C,s[2]=(f-y)*C,s[3]=0,s[4]=(m-T)*x,s[5]=(1-(h+g))*x,s[6]=(b+S)*x,s[7]=0,s[8]=(f+y)*w,s[9]=(b-S)*w,s[10]=(1-(h+E))*w,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Ao.set(s[0],s[1],s[2]).length();const o=Ao.set(s[4],s[5],s[6]).length(),a=Ao.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],xi.copy(this);const c=1/r,d=1/o,u=1/a;return xi.elements[0]*=c,xi.elements[1]*=c,xi.elements[2]*=c,xi.elements[4]*=d,xi.elements[5]*=d,xi.elements[6]*=d,xi.elements[8]*=u,xi.elements[9]*=u,xi.elements[10]*=u,t.setFromRotationMatrix(xi),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=vs){const l=this.elements,c=2*r/(t-e),d=2*r/(i-s),u=(t+e)/(t-e),h=(i+s)/(i-s);let m,f;if(a===vs)m=-(o+r)/(o-r),f=-2*o*r/(o-r);else if(a===cu)m=-o/(o-r),f=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=d,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=f,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=vs){const l=this.elements,c=1/(t-e),d=1/(i-s),u=1/(o-r),h=(t+e)*c,m=(i+s)*d;let f,E;if(a===vs)f=(o+r)*u,E=-2*u;else if(a===cu)f=r*u,E=-1*u;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=E,l[14]=-f,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Ao=new pe,xi=new Tt,Gvt=new pe(0,0,0),Vvt=new pe(1,1,1),Ys=new pe,Kc=new pe,Zn=new pe,i1=new Tt,s1=new br;class ep{constructor(e=0,t=0,i=0,s=ep.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],l=s[1],c=s[5],d=s[9],u=s[2],h=s[6],m=s[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,m),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-On(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(On(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,m),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,m),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(On(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,c),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return i1.makeRotationFromQuaternion(e),this.setFromRotationMatrix(i1,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return s1.setFromEuler(this),this.setFromQuaternion(s1,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ep.DEFAULT_ORDER="XYZ";class yO{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.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()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,d=l.length;c0){s.children=[];for(let a=0;a0){s.animations=[];for(let a=0;a0&&(i.geometries=a),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),d.length>0&&(i.images=d),u.length>0&&(i.shapes=u),h.length>0&&(i.skeletons=h),m.length>0&&(i.animations=m),f.length>0&&(i.nodes=f)}return i.object=s,i;function o(a){const l=[];for(const c in a){const d=a[c];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Ci.subVectors(s,t),_s.subVectors(i,t),km.subVectors(e,t);const o=Ci.dot(Ci),a=Ci.dot(_s),l=Ci.dot(km),c=_s.dot(_s),d=_s.dot(km),u=o*c-a*a;if(u===0)return r.set(-2,-1,-1);const h=1/u,m=(c*l-a*d)*h,f=(o*d-a*l)*h;return r.set(1-m-f,f,m)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,hs),hs.x>=0&&hs.y>=0&&hs.x+hs.y<=1}static getUV(e,t,i,s,r,o,a,l){return Qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Qc=!0),this.getInterpolation(e,t,i,s,r,o,a,l)}static getInterpolation(e,t,i,s,r,o,a,l){return this.getBarycoord(e,t,i,s,hs),l.setScalar(0),l.addScaledVector(r,hs.x),l.addScaledVector(o,hs.y),l.addScaledVector(a,hs.z),l}static isFrontFacing(e,t,i,s){return Ci.subVectors(i,t),_s.subVectors(e,t),Ci.cross(_s).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),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 Ci.subVectors(this.c,this.b),_s.subVectors(this.a,this.b),Ci.cross(_s).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return wi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return Qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Qc=!0),wi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return wi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;No.subVectors(s,i),Oo.subVectors(r,i),Pm.subVectors(e,i);const l=No.dot(Pm),c=Oo.dot(Pm);if(l<=0&&c<=0)return t.copy(i);Um.subVectors(e,s);const d=No.dot(Um),u=Oo.dot(Um);if(d>=0&&u<=d)return t.copy(s);const h=l*u-d*c;if(h<=0&&l>=0&&d<=0)return o=l/(l-d),t.copy(i).addScaledVector(No,o);Fm.subVectors(e,r);const m=No.dot(Fm),f=Oo.dot(Fm);if(f>=0&&m<=f)return t.copy(r);const E=m*c-l*f;if(E<=0&&c>=0&&f<=0)return a=c/(c-f),t.copy(i).addScaledVector(Oo,a);const b=d*f-m*u;if(b<=0&&u-d>=0&&m-f>=0)return c1.subVectors(r,s),a=(u-d)/(u-d+(m-f)),t.copy(s).addScaledVector(c1,a);const g=1/(b+E+h);return o=E*g,a=h*g,t.copy(i).addScaledVector(No,o).addScaledVector(Oo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const TO={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},$s={h:0,s:0,l:0},Xc={h:0,s:0,l:0};function Bm(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Pt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Pt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Pt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Pt.workingColorSpace){if(e=ME(e,1),t=On(t,0,1),i=On(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=Bm(o,r,e+1/3),this.g=Bm(o,r,e),this.b=Bm(o,r,e-1/3)}return Pt.toWorkingColorSpace(this,s),this}setStyle(e,t=nn){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[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 i(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,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(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,t);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 i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[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,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const i=TO[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ea(e.r),this.g=ea(e.g),this.b=ea(e.b),this}copyLinearToSRGB(e){return this.r=Am(e.r),this.g=Am(e.g),this.b=Am(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Pt.fromWorkingColorSpace(wn.copy(this),e),Math.round(On(wn.r*255,0,255))*65536+Math.round(On(wn.g*255,0,255))*256+Math.round(On(wn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Pt.workingColorSpace){Pt.fromWorkingColorSpace(wn.copy(this),t);const i=wn.r,s=wn.g,r=wn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let l,c;const d=(a+o)/2;if(a===o)l=0,c=0;else{const u=o-a;switch(c=d<=.5?u/(o+a):u/(2-o-a),o){case i:l=(s-r)/u+(s0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==Jo&&(i.blending=this.blending),this.side!==Os&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==Gg&&(i.blendSrc=this.blendSrc),this.blendDst!==Vg&&(i.blendDst=this.blendDst),this.blendEquation!==Gr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==su&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==QC&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==yo&&(i.stencilFail=this.stencilFail),this.stencilZFail!==yo&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==yo&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,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 or extends Li{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=wE,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 pe,Zc=new At;class Gn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=$g,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ss,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const c=i[l];e.data.attributes[l]=c.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],d=[];for(let u=0,h=c.length;u0&&(s[l]=d,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const c in s){const d=s[c];this.setAttribute(c,d.clone(t))}const r=e.morphAttributes;for(const c in r){const d=[],u=r[c];for(let h=0,m=u.length;h0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r(e.far-e.near)**2))&&(d1.copy(r).invert(),Nr.copy(e.ray).applyMatrix4(d1),!(i.boundingBox!==null&&Nr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Nr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,c=r.attributes.uv,d=r.attributes.uv1,u=r.attributes.normal,h=r.groups,m=r.drawRange;if(a!==null)if(Array.isArray(o))for(let f=0,E=h.length;ft.far?null:{distance:c,point:rd.clone(),object:n}}function od(n,e,t,i,s,r,o,a,l,c){n.getVertexPosition(a,Mo),n.getVertexPosition(l,Do),n.getVertexPosition(c,Lo);const d=jvt(n,e,t,i,Mo,Do,Lo,sd);if(d){s&&(td.fromBufferAttribute(s,a),nd.fromBufferAttribute(s,l),id.fromBufferAttribute(s,c),d.uv=wi.getInterpolation(sd,Mo,Do,Lo,td,nd,id,new At)),r&&(td.fromBufferAttribute(r,a),nd.fromBufferAttribute(r,l),id.fromBufferAttribute(r,c),d.uv1=wi.getInterpolation(sd,Mo,Do,Lo,td,nd,id,new At),d.uv2=d.uv1),o&&(p1.fromBufferAttribute(o,a),_1.fromBufferAttribute(o,l),h1.fromBufferAttribute(o,c),d.normal=wi.getInterpolation(sd,Mo,Do,Lo,p1,_1,h1,new pe),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const u={a,b:l,c,normal:new pe,materialIndex:0};wi.getNormal(Mo,Do,Lo,u.normal),d.face=u}return d}class pr extends is{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const l=[],c=[],d=[],u=[];let h=0,m=0;f("z","y","x",-1,-1,i,t,e,o,r,0),f("z","y","x",1,-1,i,t,-e,o,r,1),f("x","z","y",1,1,e,i,t,s,o,2),f("x","z","y",1,-1,e,i,-t,s,o,3),f("x","y","z",1,-1,e,t,i,s,r,4),f("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(l),this.setAttribute("position",new xs(c,3)),this.setAttribute("normal",new xs(d,3)),this.setAttribute("uv",new xs(u,2));function f(E,b,g,S,y,T,C,x,w,R,v){const A=T/w,P=C/R,U=T/2,Y=C/2,L=x/2,z=w+1,B=R+1;let k=0,$=0;const K=new pe;for(let W=0;W0?1:-1,d.push(K.x,K.y,K.z),u.push(J/w),u.push(1-W/R),k+=1}}for(let W=0;W>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[i&255]+An[i>>8&255]+An[i>>16&255]+An[i>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function ME(n,e){return(n%e+e)%e}function bvt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function Evt(n,e,t){return n!==e?(t-n)/(e-n):0}function Ol(n,e,t){return(1-t)*n+t*e}function Svt(n,e,t,i){return Ol(n,e,1-Math.exp(-t*i))}function vvt(n,e=1){return e-Math.abs(ME(n,e*2)-e)}function yvt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function Tvt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function xvt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function Cvt(n,e){return n+Math.random()*(e-n)}function Rvt(n){return n*(.5-Math.random())}function Avt(n){n!==void 0&&(ZC=n);let e=ZC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function wvt(n){return n*Nl}function Nvt(n){return n*va}function Kg(n){return(n&n-1)===0&&n!==0}function Ovt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function du(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Ivt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),c=r((e+i)/2),d=o((e+i)/2),u=r((e-i)/2),h=o((e-i)/2),m=r((i-e)/2),f=o((i-e)/2);switch(s){case"XYX":n.set(a*d,l*u,l*h,a*c);break;case"YZY":n.set(l*h,a*d,l*u,a*c);break;case"ZXZ":n.set(l*u,l*h,a*d,a*c);break;case"XZX":n.set(a*d,l*f,l*m,a*c);break;case"YXY":n.set(l*m,a*d,l*f,a*c);break;case"ZYZ":n.set(l*f,l*m,a*d,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function qi(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Gt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const Mvt={DEG2RAD:Nl,RAD2DEG:va,generateUUID:Di,clamp:On,euclideanModulo:ME,mapLinear:bvt,inverseLerp:Evt,lerp:Ol,damp:Svt,pingpong:vvt,smoothstep:yvt,smootherstep:Tvt,randInt:xvt,randFloat:Cvt,randFloatSpread:Rvt,seededRandom:Avt,degToRad:wvt,radToDeg:Nvt,isPowerOfTwo:Kg,ceilPowerOfTwo:Ovt,floorPowerOfTwo:du,setQuaternionFromProperEuler:Ivt,normalize:Gt,denormalize:qi};class Rt{constructor(e=0,t=0){Rt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class yt{constructor(e,t,i,s,r,o,a,l,c){yt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,c)}set(e,t,i,s,r,o,a,l,c){const d=this.elements;return d[0]=e,d[1]=s,d[2]=a,d[3]=t,d[4]=r,d[5]=l,d[6]=i,d[7]=o,d[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],l=i[6],c=i[1],d=i[4],u=i[7],h=i[2],m=i[5],f=i[8],E=s[0],b=s[3],g=s[6],S=s[1],y=s[4],T=s[7],C=s[2],x=s[5],w=s[8];return r[0]=o*E+a*S+l*C,r[3]=o*b+a*y+l*x,r[6]=o*g+a*T+l*w,r[1]=c*E+d*S+u*C,r[4]=c*b+d*y+u*x,r[7]=c*g+d*T+u*w,r[2]=h*E+m*S+f*C,r[5]=h*b+m*y+f*x,r[8]=h*g+m*T+f*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8];return t*o*d-t*a*c-i*r*d+i*a*l+s*r*c-s*o*l}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8],u=d*o-a*c,h=a*l-d*r,m=c*r-o*l,f=t*u+i*h+s*m;if(f===0)return this.set(0,0,0,0,0,0,0,0,0);const E=1/f;return e[0]=u*E,e[1]=(s*c-d*i)*E,e[2]=(a*i-s*o)*E,e[3]=h*E,e[4]=(d*t-s*l)*E,e[5]=(s*r-a*t)*E,e[6]=m*E,e[7]=(i*l-c*t)*E,e[8]=(o*t-i*r)*E,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const l=Math.cos(r),c=Math.sin(r);return this.set(i*l,i*c,-i*(l*o+c*a)+o+e,-s*c,s*l,-s*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Rm.makeScale(e,t)),this}rotate(e){return this.premultiply(Rm.makeRotation(-e)),this}translate(e,t){return this.premultiply(Rm.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Rm=new yt;function bO(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Jl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function Dvt(){const n=Jl("canvas");return n.style.display="block",n}const JC={};function Il(n){n in JC||(JC[n]=!0,console.warn(n))}const e1=new yt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),t1=new yt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:ou,primaries:au,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:$t,primaries:au,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[Zu]:{transfer:ou,primaries:lu,toReference:n=>n.applyMatrix3(t1),fromReference:n=>n.applyMatrix3(e1)},[IE]:{transfer:$t,primaries:lu,toReference:n=>n.convertSRGBToLinear().applyMatrix3(t1),fromReference:n=>n.applyMatrix3(e1).convertLinearToSRGB()}},Lvt=new Set([Cn,Zu]),Pt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!Lvt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Hc[e].toReference,s=Hc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===pi?ou:Hc[n].transfer}};function ea(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Am(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let To;class EO{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{To===void 0&&(To=Jl("canvas")),To.width=e.width,To.height=e.height;const i=To.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=To}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Jl("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==oO)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ba:e.x=e.x-Math.floor(e.x);break;case di:e.x=e.x<0?0:1;break;case ru: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 ba:e.y=e.y-Math.floor(e.y);break;case di:e.y=e.y<0?0:1;break;case ru: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 Il("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?Xr:mO}set encoding(e){Il("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Xr?nn:pi}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=oO;xn.DEFAULT_ANISOTROPY=1;class zt{constructor(e=0,t=0,i=0,s=1){zt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const l=e.elements,c=l[0],d=l[4],u=l[8],h=l[1],m=l[5],f=l[9],E=l[2],b=l[6],g=l[10];if(Math.abs(d-h)<.01&&Math.abs(u-E)<.01&&Math.abs(f-b)<.01){if(Math.abs(d+h)<.1&&Math.abs(u+E)<.1&&Math.abs(f+b)<.1&&Math.abs(c+m+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const y=(c+1)/2,T=(m+1)/2,C=(g+1)/2,x=(d+h)/4,w=(u+E)/4,R=(f+b)/4;return y>T&&y>C?y<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(y),s=x/i,r=w/i):T>C?T<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(T),i=x/s,r=R/s):C<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(C),i=w/r,s=R/r),this.set(i,s,r,t),this}let S=Math.sqrt((b-f)*(b-f)+(u-E)*(u-E)+(h-d)*(h-d));return Math.abs(S)<.001&&(S=1),this.x=(b-f)/S,this.y=(u-E)/S,this.z=(h-d)/S,this.w=Math.acos((c+m+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Uvt extends Va{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new zt(0,0,e,t),this.scissorTest=!1,this.viewport=new zt(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(Il("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===Xr?nn:pi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Yn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new xn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new SO(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class so extends Uvt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class vO extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=di,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Fvt extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=di,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class br{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let l=i[s+0],c=i[s+1],d=i[s+2],u=i[s+3];const h=r[o+0],m=r[o+1],f=r[o+2],E=r[o+3];if(a===0){e[t+0]=l,e[t+1]=c,e[t+2]=d,e[t+3]=u;return}if(a===1){e[t+0]=h,e[t+1]=m,e[t+2]=f,e[t+3]=E;return}if(u!==E||l!==h||c!==m||d!==f){let b=1-a;const g=l*h+c*m+d*f+u*E,S=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){const C=Math.sqrt(y),x=Math.atan2(C,g*S);b=Math.sin(b*x)/C,a=Math.sin(a*x)/C}const T=a*S;if(l=l*b+h*T,c=c*b+m*T,d=d*b+f*T,u=u*b+E*T,b===1-a){const C=1/Math.sqrt(l*l+c*c+d*d+u*u);l*=C,c*=C,d*=C,u*=C}}e[t]=l,e[t+1]=c,e[t+2]=d,e[t+3]=u}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],l=i[s+1],c=i[s+2],d=i[s+3],u=r[o],h=r[o+1],m=r[o+2],f=r[o+3];return e[t]=a*f+d*u+l*m-c*h,e[t+1]=l*f+d*h+c*u-a*m,e[t+2]=c*f+d*m+a*h-l*u,e[t+3]=d*f-a*u-l*h-c*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,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(i/2),d=a(s/2),u=a(r/2),h=l(i/2),m=l(s/2),f=l(r/2);switch(o){case"XYZ":this._x=h*d*u+c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u-h*m*f;break;case"YXZ":this._x=h*d*u+c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u+h*m*f;break;case"ZXY":this._x=h*d*u-c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u-h*m*f;break;case"ZYX":this._x=h*d*u-c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u+h*m*f;break;case"YZX":this._x=h*d*u+c*m*f,this._y=c*m*u+h*d*f,this._z=c*d*f-h*m*u,this._w=c*d*u-h*m*f;break;case"XZY":this._x=h*d*u-c*m*f,this._y=c*m*u-h*d*f,this._z=c*d*f+h*m*u,this._w=c*d*u+h*m*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],l=t[9],c=t[2],d=t[6],u=t[10],h=i+a+u;if(h>0){const m=.5/Math.sqrt(h+1);this._w=.25/m,this._x=(d-l)*m,this._y=(r-c)*m,this._z=(o-s)*m}else if(i>a&&i>u){const m=2*Math.sqrt(1+i-a-u);this._w=(d-l)/m,this._x=.25*m,this._y=(s+o)/m,this._z=(r+c)/m}else if(a>u){const m=2*Math.sqrt(1+a-i-u);this._w=(r-c)/m,this._x=(s+o)/m,this._y=.25*m,this._z=(l+d)/m}else{const m=2*Math.sqrt(1+u-i-a);this._w=(o-s)/m,this._x=(r+c)/m,this._y=(l+d)/m,this._z=.25*m}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return iMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,l=t._y,c=t._z,d=t._w;return this._x=i*d+o*a+s*c-r*l,this._y=s*d+o*l+r*a-i*c,this._z=r*d+o*c+i*l-s*a,this._w=o*d-i*a-s*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*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=i,this._y=s,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const m=1-t;return this._w=m*o+t*this._w,this._x=m*i+t*this._x,this._y=m*s+t*this._y,this._z=m*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const c=Math.sqrt(l),d=Math.atan2(c,a),u=Math.sin((1-t)*d)/c,h=Math.sin(t*d)/c;return this._w=o*u+this._w*h,this._x=i*u+this._x*h,this._y=s*u+this._y*h,this._z=r*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class pe{constructor(e=0,t=0,i=0){pe.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(n1.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(n1.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*s-a*i),d=2*(a*t-r*s),u=2*(r*i-o*t);return this.x=t+l*c+o*u-a*d,this.y=i+l*d+a*c-r*u,this.z=s+l*u+r*d-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=s*l-r*a,this.y=r*o-i*l,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Nm.copy(this).projectOnVector(e),this.sub(Nm)}reflect(e){return this.sub(Nm.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Nm=new pe,n1=new br;class Ps{constructor(e=new pe(1/0,1/0,1/0),t=new pe(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ti),Ti.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(al),qc.subVectors(this.max,al),xo.subVectors(e.a,al),Co.subVectors(e.b,al),Ro.subVectors(e.c,al),Hs.subVectors(Co,xo),zs.subVectors(Ro,Co),Ar.subVectors(xo,Ro);let t=[0,-Hs.z,Hs.y,0,-zs.z,zs.y,0,-Ar.z,Ar.y,Hs.z,0,-Hs.x,zs.z,0,-zs.x,Ar.z,0,-Ar.x,-Hs.y,Hs.x,0,-zs.y,zs.x,0,-Ar.y,Ar.x,0];return!Om(t,xo,Co,Ro,qc)||(t=[1,0,0,0,1,0,0,0,1],!Om(t,xo,Co,Ro,qc))?!1:(Yc.crossVectors(Hs,zs),t=[Yc.x,Yc.y,Yc.z],Om(t,xo,Co,Ro,qc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ti).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ti).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:(ds[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ds[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ds[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ds[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ds[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ds[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ds[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ds[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ds),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 ds=[new pe,new pe,new pe,new pe,new pe,new pe,new pe,new pe],Ti=new pe,zc=new Ps,xo=new pe,Co=new pe,Ro=new pe,Hs=new pe,zs=new pe,Ar=new pe,al=new pe,qc=new pe,Yc=new pe,wr=new pe;function Om(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){wr.fromArray(n,r);const a=s.x*Math.abs(wr.x)+s.y*Math.abs(wr.y)+s.z*Math.abs(wr.z),l=e.dot(wr),c=t.dot(wr),d=i.dot(wr);if(Math.max(-Math.max(l,c,d),Math.min(l,c,d))>a)return!1}return!0}const Bvt=new Ps,ll=new pe,Im=new pe;class ns{constructor(e=new pe,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):Bvt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ll.subVectors(e,this.center);const t=ll.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(ll,s/i),this.radius+=s}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):(Im.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ll.copy(e.center).add(Im)),this.expandByPoint(ll.copy(e.center).sub(Im))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const us=new pe,Mm=new pe,$c=new pe,qs=new pe,Dm=new pe,Wc=new pe,Lm=new pe;class Ju{constructor(e=new pe,t=new pe(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,us)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=us.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(us.copy(this.origin).addScaledVector(this.direction,t),us.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){Mm.copy(e).add(t).multiplyScalar(.5),$c.copy(t).sub(e).normalize(),qs.copy(this.origin).sub(Mm);const r=e.distanceTo(t)*.5,o=-this.direction.dot($c),a=qs.dot(this.direction),l=-qs.dot($c),c=qs.lengthSq(),d=Math.abs(1-o*o);let u,h,m,f;if(d>0)if(u=o*l-a,h=o*a-l,f=r*d,u>=0)if(h>=-f)if(h<=f){const E=1/d;u*=E,h*=E,m=u*(u+o*h+2*a)+h*(o*u+h+2*l)+c}else h=r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;else h=-r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;else h<=-f?(u=Math.max(0,-(-o*r+a)),h=u>0?-r:Math.min(Math.max(-r,-l),r),m=-u*u+h*(h+2*l)+c):h<=f?(u=0,h=Math.min(Math.max(-r,-l),r),m=h*(h+2*l)+c):(u=Math.max(0,-(o*r+a)),h=u>0?r:Math.min(Math.max(-r,-l),r),m=-u*u+h*(h+2*l)+c);else h=o>0?-r:r,u=Math.max(0,-(o*h+a)),m=-u*u+h*(h+2*l)+c;return i&&i.copy(this.origin).addScaledVector(this.direction,u),s&&s.copy(Mm).addScaledVector($c,h),m}intersectSphere(e,t){us.subVectors(e.center,this.origin);const i=us.dot(this.direction),s=us.dot(us)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,l=i+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,l;const c=1/this.direction.x,d=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(i=(e.min.x-h.x)*c,s=(e.max.x-h.x)*c):(i=(e.max.x-h.x)*c,s=(e.min.x-h.x)*c),d>=0?(r=(e.min.y-h.y)*d,o=(e.max.y-h.y)*d):(r=(e.max.y-h.y)*d,o=(e.min.y-h.y)*d),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o=0?(a=(e.min.z-h.z)*u,l=(e.max.z-h.z)*u):(a=(e.max.z-h.z)*u,l=(e.min.z-h.z)*u),i>l||a>s)||((a>i||i!==i)&&(i=a),(l=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,us)!==null}intersectTriangle(e,t,i,s,r){Dm.subVectors(t,e),Wc.subVectors(i,e),Lm.crossVectors(Dm,Wc);let o=this.direction.dot(Lm),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;qs.subVectors(this.origin,e);const l=a*this.direction.dot(Wc.crossVectors(qs,Wc));if(l<0)return null;const c=a*this.direction.dot(Dm.cross(qs));if(c<0||l+c>o)return null;const d=-a*qs.dot(Lm);return d<0?null:this.at(d/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 Tt{constructor(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b){Tt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b)}set(e,t,i,s,r,o,a,l,c,d,u,h,m,f,E,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=l,g[2]=c,g[6]=d,g[10]=u,g[14]=h,g[3]=m,g[7]=f,g[11]=E,g[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 Tt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Ao.setFromMatrixColumn(e,0).length(),r=1/Ao.setFromMatrixColumn(e,1).length(),o=1/Ao.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),l=Math.cos(s),c=Math.sin(s),d=Math.cos(r),u=Math.sin(r);if(e.order==="XYZ"){const h=o*d,m=o*u,f=a*d,E=a*u;t[0]=l*d,t[4]=-l*u,t[8]=c,t[1]=m+f*c,t[5]=h-E*c,t[9]=-a*l,t[2]=E-h*c,t[6]=f+m*c,t[10]=o*l}else if(e.order==="YXZ"){const h=l*d,m=l*u,f=c*d,E=c*u;t[0]=h+E*a,t[4]=f*a-m,t[8]=o*c,t[1]=o*u,t[5]=o*d,t[9]=-a,t[2]=m*a-f,t[6]=E+h*a,t[10]=o*l}else if(e.order==="ZXY"){const h=l*d,m=l*u,f=c*d,E=c*u;t[0]=h-E*a,t[4]=-o*u,t[8]=f+m*a,t[1]=m+f*a,t[5]=o*d,t[9]=E-h*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const h=o*d,m=o*u,f=a*d,E=a*u;t[0]=l*d,t[4]=f*c-m,t[8]=h*c+E,t[1]=l*u,t[5]=E*c+h,t[9]=m*c-f,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const h=o*l,m=o*c,f=a*l,E=a*c;t[0]=l*d,t[4]=E-h*u,t[8]=f*u+m,t[1]=u,t[5]=o*d,t[9]=-a*d,t[2]=-c*d,t[6]=m*u+f,t[10]=h-E*u}else if(e.order==="XZY"){const h=o*l,m=o*c,f=a*l,E=a*c;t[0]=l*d,t[4]=-u,t[8]=c*d,t[1]=h*u+E,t[5]=o*d,t[9]=m*u-f,t[2]=f*u-m,t[6]=a*d,t[10]=E*u+h}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Gvt,e,Vvt)}lookAt(e,t,i){const s=this.elements;return Zn.subVectors(e,t),Zn.lengthSq()===0&&(Zn.z=1),Zn.normalize(),Ys.crossVectors(i,Zn),Ys.lengthSq()===0&&(Math.abs(i.z)===1?Zn.x+=1e-4:Zn.z+=1e-4,Zn.normalize(),Ys.crossVectors(i,Zn)),Ys.normalize(),Kc.crossVectors(Zn,Ys),s[0]=Ys.x,s[4]=Kc.x,s[8]=Zn.x,s[1]=Ys.y,s[5]=Kc.y,s[9]=Zn.y,s[2]=Ys.z,s[6]=Kc.z,s[10]=Zn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],l=i[8],c=i[12],d=i[1],u=i[5],h=i[9],m=i[13],f=i[2],E=i[6],b=i[10],g=i[14],S=i[3],y=i[7],T=i[11],C=i[15],x=s[0],w=s[4],R=s[8],v=s[12],A=s[1],P=s[5],U=s[9],Y=s[13],L=s[2],z=s[6],B=s[10],k=s[14],$=s[3],K=s[7],W=s[11],le=s[15];return r[0]=o*x+a*A+l*L+c*$,r[4]=o*w+a*P+l*z+c*K,r[8]=o*R+a*U+l*B+c*W,r[12]=o*v+a*Y+l*k+c*le,r[1]=d*x+u*A+h*L+m*$,r[5]=d*w+u*P+h*z+m*K,r[9]=d*R+u*U+h*B+m*W,r[13]=d*v+u*Y+h*k+m*le,r[2]=f*x+E*A+b*L+g*$,r[6]=f*w+E*P+b*z+g*K,r[10]=f*R+E*U+b*B+g*W,r[14]=f*v+E*Y+b*k+g*le,r[3]=S*x+y*A+T*L+C*$,r[7]=S*w+y*P+T*z+C*K,r[11]=S*R+y*U+T*B+C*W,r[15]=S*v+y*Y+T*k+C*le,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],l=e[9],c=e[13],d=e[2],u=e[6],h=e[10],m=e[14],f=e[3],E=e[7],b=e[11],g=e[15];return f*(+r*l*u-s*c*u-r*a*h+i*c*h+s*a*m-i*l*m)+E*(+t*l*m-t*c*h+r*o*h-s*o*m+s*c*d-r*l*d)+b*(+t*c*u-t*a*m-r*o*u+i*o*m+r*a*d-i*c*d)+g*(-s*a*d-t*l*u+t*a*h+s*o*u-i*o*h+i*l*d)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],d=e[8],u=e[9],h=e[10],m=e[11],f=e[12],E=e[13],b=e[14],g=e[15],S=u*b*c-E*h*c+E*l*m-a*b*m-u*l*g+a*h*g,y=f*h*c-d*b*c-f*l*m+o*b*m+d*l*g-o*h*g,T=d*E*c-f*u*c+f*a*m-o*E*m-d*a*g+o*u*g,C=f*u*l-d*E*l-f*a*h+o*E*h+d*a*b-o*u*b,x=t*S+i*y+s*T+r*C;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/x;return e[0]=S*w,e[1]=(E*h*r-u*b*r-E*s*m+i*b*m+u*s*g-i*h*g)*w,e[2]=(a*b*r-E*l*r+E*s*c-i*b*c-a*s*g+i*l*g)*w,e[3]=(u*l*r-a*h*r-u*s*c+i*h*c+a*s*m-i*l*m)*w,e[4]=y*w,e[5]=(d*b*r-f*h*r+f*s*m-t*b*m-d*s*g+t*h*g)*w,e[6]=(f*l*r-o*b*r-f*s*c+t*b*c+o*s*g-t*l*g)*w,e[7]=(o*h*r-d*l*r+d*s*c-t*h*c-o*s*m+t*l*m)*w,e[8]=T*w,e[9]=(f*u*r-d*E*r-f*i*m+t*E*m+d*i*g-t*u*g)*w,e[10]=(o*E*r-f*a*r+f*i*c-t*E*c-o*i*g+t*a*g)*w,e[11]=(d*a*r-o*u*r-d*i*c+t*u*c+o*i*m-t*a*m)*w,e[12]=C*w,e[13]=(d*E*s-f*u*s+f*i*h-t*E*h-d*i*b+t*u*b)*w,e[14]=(f*a*s-o*E*s-f*i*l+t*E*l+o*i*b-t*a*b)*w,e[15]=(o*u*s-d*a*s+d*i*l-t*u*l-o*i*h+t*a*h)*w,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,l=e.z,c=r*o,d=r*a;return this.set(c*o+i,c*a-s*l,c*l+s*a,0,c*a+s*l,d*a+i,d*l-s*o,0,c*l-s*a,d*l+s*o,r*l*l+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,c=r+r,d=o+o,u=a+a,h=r*c,m=r*d,f=r*u,E=o*d,b=o*u,g=a*u,S=l*c,y=l*d,T=l*u,C=i.x,x=i.y,w=i.z;return s[0]=(1-(E+g))*C,s[1]=(m+T)*C,s[2]=(f-y)*C,s[3]=0,s[4]=(m-T)*x,s[5]=(1-(h+g))*x,s[6]=(b+S)*x,s[7]=0,s[8]=(f+y)*w,s[9]=(b-S)*w,s[10]=(1-(h+E))*w,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Ao.set(s[0],s[1],s[2]).length();const o=Ao.set(s[4],s[5],s[6]).length(),a=Ao.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],xi.copy(this);const c=1/r,d=1/o,u=1/a;return xi.elements[0]*=c,xi.elements[1]*=c,xi.elements[2]*=c,xi.elements[4]*=d,xi.elements[5]*=d,xi.elements[6]*=d,xi.elements[8]*=u,xi.elements[9]*=u,xi.elements[10]*=u,t.setFromRotationMatrix(xi),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=vs){const l=this.elements,c=2*r/(t-e),d=2*r/(i-s),u=(t+e)/(t-e),h=(i+s)/(i-s);let m,f;if(a===vs)m=-(o+r)/(o-r),f=-2*o*r/(o-r);else if(a===cu)m=-o/(o-r),f=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=d,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=m,l[14]=f,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=vs){const l=this.elements,c=1/(t-e),d=1/(i-s),u=1/(o-r),h=(t+e)*c,m=(i+s)*d;let f,E;if(a===vs)f=(o+r)*u,E=-2*u;else if(a===cu)f=r*u,E=-1*u;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-m,l[2]=0,l[6]=0,l[10]=E,l[14]=-f,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Ao=new pe,xi=new Tt,Gvt=new pe(0,0,0),Vvt=new pe(1,1,1),Ys=new pe,Kc=new pe,Zn=new pe,i1=new Tt,s1=new br;class ep{constructor(e=0,t=0,i=0,s=ep.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],l=s[1],c=s[5],d=s[9],u=s[2],h=s[6],m=s[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,m),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(h,c),this._z=0);break;case"YXZ":this._x=Math.asin(-On(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,m),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(On(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,m),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,m),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(On(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,c),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,m));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,c),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-d,m),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return i1.makeRotationFromQuaternion(e),this.setFromRotationMatrix(i1,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return s1.setFromEuler(this),this.setFromQuaternion(s1,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ep.DEFAULT_ORDER="XYZ";class yO{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let i=0;i0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.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()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,d=l.length;c0){s.children=[];for(let a=0;a0){s.animations=[];for(let a=0;a0&&(i.geometries=a),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),d.length>0&&(i.images=d),u.length>0&&(i.shapes=u),h.length>0&&(i.skeletons=h),m.length>0&&(i.animations=m),f.length>0&&(i.nodes=f)}return i.object=s,i;function o(a){const l=[];for(const c in a){const d=a[c];delete d.metadata,l.push(d)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Ci.subVectors(s,t),_s.subVectors(i,t),km.subVectors(e,t);const o=Ci.dot(Ci),a=Ci.dot(_s),l=Ci.dot(km),c=_s.dot(_s),d=_s.dot(km),u=o*c-a*a;if(u===0)return r.set(-2,-1,-1);const h=1/u,m=(c*l-a*d)*h,f=(o*d-a*l)*h;return r.set(1-m-f,f,m)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,hs),hs.x>=0&&hs.y>=0&&hs.x+hs.y<=1}static getUV(e,t,i,s,r,o,a,l){return Qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Qc=!0),this.getInterpolation(e,t,i,s,r,o,a,l)}static getInterpolation(e,t,i,s,r,o,a,l){return this.getBarycoord(e,t,i,s,hs),l.setScalar(0),l.addScaledVector(r,hs.x),l.addScaledVector(o,hs.y),l.addScaledVector(a,hs.z),l}static isFrontFacing(e,t,i,s){return Ci.subVectors(i,t),_s.subVectors(e,t),Ci.cross(_s).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),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 Ci.subVectors(this.c,this.b),_s.subVectors(this.a,this.b),Ci.cross(_s).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return wi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return wi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return Qc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Qc=!0),wi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return wi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return wi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return wi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;No.subVectors(s,i),Oo.subVectors(r,i),Pm.subVectors(e,i);const l=No.dot(Pm),c=Oo.dot(Pm);if(l<=0&&c<=0)return t.copy(i);Um.subVectors(e,s);const d=No.dot(Um),u=Oo.dot(Um);if(d>=0&&u<=d)return t.copy(s);const h=l*u-d*c;if(h<=0&&l>=0&&d<=0)return o=l/(l-d),t.copy(i).addScaledVector(No,o);Fm.subVectors(e,r);const m=No.dot(Fm),f=Oo.dot(Fm);if(f>=0&&m<=f)return t.copy(r);const E=m*c-l*f;if(E<=0&&c>=0&&f<=0)return a=c/(c-f),t.copy(i).addScaledVector(Oo,a);const b=d*f-m*u;if(b<=0&&u-d>=0&&m-f>=0)return c1.subVectors(r,s),a=(u-d)/(u-d+(m-f)),t.copy(s).addScaledVector(c1,a);const g=1/(b+E+h);return o=E*g,a=h*g,t.copy(i).addScaledVector(No,o).addScaledVector(Oo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const TO={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},$s={h:0,s:0,l:0},Xc={h:0,s:0,l:0};function Bm(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Pt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Pt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Pt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Pt.workingColorSpace){if(e=ME(e,1),t=On(t,0,1),i=On(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=Bm(o,r,e+1/3),this.g=Bm(o,r,e),this.b=Bm(o,r,e-1/3)}return Pt.toWorkingColorSpace(this,s),this}setStyle(e,t=nn){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[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 i(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,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(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,t);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 i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[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,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const i=TO[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ea(e.r),this.g=ea(e.g),this.b=ea(e.b),this}copyLinearToSRGB(e){return this.r=Am(e.r),this.g=Am(e.g),this.b=Am(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Pt.fromWorkingColorSpace(wn.copy(this),e),Math.round(On(wn.r*255,0,255))*65536+Math.round(On(wn.g*255,0,255))*256+Math.round(On(wn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Pt.workingColorSpace){Pt.fromWorkingColorSpace(wn.copy(this),t);const i=wn.r,s=wn.g,r=wn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let l,c;const d=(a+o)/2;if(a===o)l=0,c=0;else{const u=o-a;switch(c=d<=.5?u/(o+a):u/(2-o-a),o){case i:l=(s-r)/u+(s0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==Jo&&(i.blending=this.blending),this.side!==Os&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==Gg&&(i.blendSrc=this.blendSrc),this.blendDst!==Vg&&(i.blendDst=this.blendDst),this.blendEquation!==Gr&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==su&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==QC&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==yo&&(i.stencilFail=this.stencilFail),this.stencilZFail!==yo&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==yo&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,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 or extends Li{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=wE,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 pe,Zc=new Rt;class Gn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=$g,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Ss,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const l in i){const c=i[l];e.data.attributes[l]=c.toJSON(e.data)}const s={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],d=[];for(let u=0,h=c.length;u0&&(s[l]=d,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const c in s){const d=s[c];this.setAttribute(c,d.clone(t))}const r=e.morphAttributes;for(const c in r){const d=[],u=r[c];for(let h=0,m=u.length;h0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r(e.far-e.near)**2))&&(d1.copy(r).invert(),Nr.copy(e.ray).applyMatrix4(d1),!(i.boundingBox!==null&&Nr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Nr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,c=r.attributes.uv,d=r.attributes.uv1,u=r.attributes.normal,h=r.groups,m=r.drawRange;if(a!==null)if(Array.isArray(o))for(let f=0,E=h.length;ft.far?null:{distance:c,point:rd.clone(),object:n}}function od(n,e,t,i,s,r,o,a,l,c){n.getVertexPosition(a,Mo),n.getVertexPosition(l,Do),n.getVertexPosition(c,Lo);const d=jvt(n,e,t,i,Mo,Do,Lo,sd);if(d){s&&(td.fromBufferAttribute(s,a),nd.fromBufferAttribute(s,l),id.fromBufferAttribute(s,c),d.uv=wi.getInterpolation(sd,Mo,Do,Lo,td,nd,id,new Rt)),r&&(td.fromBufferAttribute(r,a),nd.fromBufferAttribute(r,l),id.fromBufferAttribute(r,c),d.uv1=wi.getInterpolation(sd,Mo,Do,Lo,td,nd,id,new Rt),d.uv2=d.uv1),o&&(p1.fromBufferAttribute(o,a),_1.fromBufferAttribute(o,l),h1.fromBufferAttribute(o,c),d.normal=wi.getInterpolation(sd,Mo,Do,Lo,p1,_1,h1,new pe),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const u={a,b:l,c,normal:new pe,materialIndex:0};wi.getNormal(Mo,Do,Lo,u.normal),d.face=u}return d}class pr extends is{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const l=[],c=[],d=[],u=[];let h=0,m=0;f("z","y","x",-1,-1,i,t,e,o,r,0),f("z","y","x",1,-1,i,t,-e,o,r,1),f("x","z","y",1,1,e,i,t,s,o,2),f("x","z","y",1,-1,e,i,-t,s,o,3),f("x","y","z",1,-1,e,t,i,s,r,4),f("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(l),this.setAttribute("position",new xs(c,3)),this.setAttribute("normal",new xs(d,3)),this.setAttribute("uv",new xs(u,2));function f(E,b,g,S,y,T,C,x,w,R,v){const A=T/w,P=C/R,U=T/2,Y=C/2,L=x/2,z=w+1,B=R+1;let k=0,$=0;const K=new pe;for(let W=0;W0?1:-1,d.push(K.x,K.y,K.z),u.push(J/w),u.push(1-W/R),k+=1}}for(let W=0;W #include #include -}`,St={alphahash_fragment:ryt,alphahash_pars_fragment:oyt,alphamap_fragment:ayt,alphamap_pars_fragment:lyt,alphatest_fragment:cyt,alphatest_pars_fragment:dyt,aomap_fragment:uyt,aomap_pars_fragment:pyt,batching_pars_vertex:_yt,batching_vertex:hyt,begin_vertex:fyt,beginnormal_vertex:myt,bsdfs:gyt,iridescence_fragment:byt,bumpmap_pars_fragment:Eyt,clipping_planes_fragment:Syt,clipping_planes_pars_fragment:vyt,clipping_planes_pars_vertex:yyt,clipping_planes_vertex:Tyt,color_fragment:xyt,color_pars_fragment:Cyt,color_pars_vertex:Ryt,color_vertex:Ayt,common:wyt,cube_uv_reflection_fragment:Nyt,defaultnormal_vertex:Oyt,displacementmap_pars_vertex:Iyt,displacementmap_vertex:Myt,emissivemap_fragment:Dyt,emissivemap_pars_fragment:Lyt,colorspace_fragment:kyt,colorspace_pars_fragment:Pyt,envmap_fragment:Uyt,envmap_common_pars_fragment:Fyt,envmap_pars_fragment:Byt,envmap_pars_vertex:Gyt,envmap_physical_pars_fragment:Zyt,envmap_vertex:Vyt,fog_vertex:Hyt,fog_pars_vertex:zyt,fog_fragment:qyt,fog_pars_fragment:Yyt,gradientmap_pars_fragment:$yt,lightmap_fragment:Wyt,lightmap_pars_fragment:Kyt,lights_lambert_fragment:jyt,lights_lambert_pars_fragment:Qyt,lights_pars_begin:Xyt,lights_toon_fragment:Jyt,lights_toon_pars_fragment:e0t,lights_phong_fragment:t0t,lights_phong_pars_fragment:n0t,lights_physical_fragment:i0t,lights_physical_pars_fragment:s0t,lights_fragment_begin:r0t,lights_fragment_maps:o0t,lights_fragment_end:a0t,logdepthbuf_fragment:l0t,logdepthbuf_pars_fragment:c0t,logdepthbuf_pars_vertex:d0t,logdepthbuf_vertex:u0t,map_fragment:p0t,map_pars_fragment:_0t,map_particle_fragment:h0t,map_particle_pars_fragment:f0t,metalnessmap_fragment:m0t,metalnessmap_pars_fragment:g0t,morphcolor_vertex:b0t,morphnormal_vertex:E0t,morphtarget_pars_vertex:S0t,morphtarget_vertex:v0t,normal_fragment_begin:y0t,normal_fragment_maps:T0t,normal_pars_fragment:x0t,normal_pars_vertex:C0t,normal_vertex:R0t,normalmap_pars_fragment:A0t,clearcoat_normal_fragment_begin:w0t,clearcoat_normal_fragment_maps:N0t,clearcoat_pars_fragment:O0t,iridescence_pars_fragment:I0t,opaque_fragment:M0t,packing:D0t,premultiplied_alpha_fragment:L0t,project_vertex:k0t,dithering_fragment:P0t,dithering_pars_fragment:U0t,roughnessmap_fragment:F0t,roughnessmap_pars_fragment:B0t,shadowmap_pars_fragment:G0t,shadowmap_pars_vertex:V0t,shadowmap_vertex:H0t,shadowmask_pars_fragment:z0t,skinbase_vertex:q0t,skinning_pars_vertex:Y0t,skinning_vertex:$0t,skinnormal_vertex:W0t,specularmap_fragment:K0t,specularmap_pars_fragment:j0t,tonemapping_fragment:Q0t,tonemapping_pars_fragment:X0t,transmission_fragment:Z0t,transmission_pars_fragment:J0t,uv_pars_fragment:eTt,uv_pars_vertex:tTt,uv_vertex:nTt,worldpos_vertex:iTt,background_vert:sTt,background_frag:rTt,backgroundCube_vert:oTt,backgroundCube_frag:aTt,cube_vert:lTt,cube_frag:cTt,depth_vert:dTt,depth_frag:uTt,distanceRGBA_vert:pTt,distanceRGBA_frag:_Tt,equirect_vert:hTt,equirect_frag:fTt,linedashed_vert:mTt,linedashed_frag:gTt,meshbasic_vert:bTt,meshbasic_frag:ETt,meshlambert_vert:STt,meshlambert_frag:vTt,meshmatcap_vert:yTt,meshmatcap_frag:TTt,meshnormal_vert:xTt,meshnormal_frag:CTt,meshphong_vert:RTt,meshphong_frag:ATt,meshphysical_vert:wTt,meshphysical_frag:NTt,meshtoon_vert:OTt,meshtoon_frag:ITt,points_vert:MTt,points_frag:DTt,shadow_vert:LTt,shadow_frag:kTt,sprite_vert:PTt,sprite_frag:UTt},He={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new yt},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new yt}},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 yt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new yt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new yt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new yt},normalScale:{value:new At(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new yt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new yt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new yt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new yt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0},uvTransform:{value:new yt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new At(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new yt},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0}}},Vi={basic:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.fog]),vertexShader:St.meshbasic_vert,fragmentShader:St.meshbasic_frag},lambert:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.fog,He.lights,{emissive:{value:new pt(0)}}]),vertexShader:St.meshlambert_vert,fragmentShader:St.meshlambert_frag},phong:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.fog,He.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:St.meshphong_vert,fragmentShader:St.meshphong_frag},standard:{uniforms:Pn([He.common,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.roughnessmap,He.metalnessmap,He.fog,He.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag},toon:{uniforms:Pn([He.common,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.gradientmap,He.fog,He.lights,{emissive:{value:new pt(0)}}]),vertexShader:St.meshtoon_vert,fragmentShader:St.meshtoon_frag},matcap:{uniforms:Pn([He.common,He.bumpmap,He.normalmap,He.displacementmap,He.fog,{matcap:{value:null}}]),vertexShader:St.meshmatcap_vert,fragmentShader:St.meshmatcap_frag},points:{uniforms:Pn([He.points,He.fog]),vertexShader:St.points_vert,fragmentShader:St.points_frag},dashed:{uniforms:Pn([He.common,He.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:St.linedashed_vert,fragmentShader:St.linedashed_frag},depth:{uniforms:Pn([He.common,He.displacementmap]),vertexShader:St.depth_vert,fragmentShader:St.depth_frag},normal:{uniforms:Pn([He.common,He.bumpmap,He.normalmap,He.displacementmap,{opacity:{value:1}}]),vertexShader:St.meshnormal_vert,fragmentShader:St.meshnormal_frag},sprite:{uniforms:Pn([He.sprite,He.fog]),vertexShader:St.sprite_vert,fragmentShader:St.sprite_frag},background:{uniforms:{uvTransform:{value:new yt},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([He.common,He.displacementmap,{referencePosition:{value:new pe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:St.distanceRGBA_vert,fragmentShader:St.distanceRGBA_frag},shadow:{uniforms:Pn([He.lights,He.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:St.shadow_vert,fragmentShader:St.shadow_frag}};Vi.physical={uniforms:Pn([Vi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new yt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new yt},clearcoatNormalScale:{value:new At(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new yt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new yt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new yt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new yt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new yt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new yt},transmissionSamplerSize:{value:new At},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new yt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new yt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new yt},anisotropyVector:{value:new At},anisotropyMap:{value:null},anisotropyMapTransform:{value:new yt}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag};const ld={r:0,b:0,g:0};function FTt(n,e,t,i,s,r,o){const a=new pt(0);let l=r===!0?0:1,c,d,u=null,h=0,m=null;function f(b,g){let S=!1,y=g.isScene===!0?g.background:null;y&&y.isTexture&&(y=(g.backgroundBlurriness>0?t:e).get(y)),y===null?E(a,l):y&&y.isColor&&(E(y,1),S=!0);const T=n.xr.getEnvironmentBlendMode();T==="additive"?i.buffers.color.setClear(0,0,0,1,o):T==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||S)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),y&&(y.isCubeTexture||y.mapping===Xu)?(d===void 0&&(d=new Fn(new pr(1,1,1),new ro({name:"BackgroundCubeMaterial",uniforms:ya(Vi.backgroundCube.uniforms),vertexShader:Vi.backgroundCube.vertexShader,fragmentShader:Vi.backgroundCube.fragmentShader,side:Kn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(C,x,w){this.matrixWorld.copyPosition(w.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(d)),d.material.uniforms.envMap.value=y,d.material.uniforms.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Pt.getTransfer(y.colorSpace)!==$t,(u!==y||h!==y.version||m!==n.toneMapping)&&(d.material.needsUpdate=!0,u=y,h=y.version,m=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):y&&y.isTexture&&(c===void 0&&(c=new Fn(new LE(2,2),new ro({name:"BackgroundMaterial",uniforms:ya(Vi.background.uniforms),vertexShader:Vi.background.vertexShader,fragmentShader:Vi.background.fragmentShader,side:Os,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(c)),c.material.uniforms.t2D.value=y,c.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,c.material.toneMapped=Pt.getTransfer(y.colorSpace)!==$t,y.matrixAutoUpdate===!0&&y.updateMatrix(),c.material.uniforms.uvTransform.value.copy(y.matrix),(u!==y||h!==y.version||m!==n.toneMapping)&&(c.material.needsUpdate=!0,u=y,h=y.version,m=n.toneMapping),c.layers.enableAll(),b.unshift(c,c.geometry,c.material,0,0,null))}function E(b,g){b.getRGB(ld,RO(n)),i.buffers.color.setClear(ld.r,ld.g,ld.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:f}}function BTt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},l=b(null);let c=l,d=!1;function u(L,z,B,k,$){let K=!1;if(o){const W=E(k,B,z);c!==W&&(c=W,m(c.object)),K=g(L,k,B,$),K&&S(L,k,B,$)}else{const W=z.wireframe===!0;(c.geometry!==k.id||c.program!==B.id||c.wireframe!==W)&&(c.geometry=k.id,c.program=B.id,c.wireframe=W,K=!0)}$!==null&&t.update($,n.ELEMENT_ARRAY_BUFFER),(K||d)&&(d=!1,R(L,z,B,k),$!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get($).buffer))}function h(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function m(L){return i.isWebGL2?n.bindVertexArray(L):r.bindVertexArrayOES(L)}function f(L){return i.isWebGL2?n.deleteVertexArray(L):r.deleteVertexArrayOES(L)}function E(L,z,B){const k=B.wireframe===!0;let $=a[L.id];$===void 0&&($={},a[L.id]=$);let K=$[z.id];K===void 0&&(K={},$[z.id]=K);let W=K[k];return W===void 0&&(W=b(h()),K[k]=W),W}function b(L){const z=[],B=[],k=[];for(let $=0;$=0){const _e=$[J];let ge=K[J];if(ge===void 0&&(J==="instanceMatrix"&&L.instanceMatrix&&(ge=L.instanceMatrix),J==="instanceColor"&&L.instanceColor&&(ge=L.instanceColor)),_e===void 0||_e.attribute!==ge||ge&&_e.data!==ge.data)return!0;W++}return c.attributesNum!==W||c.index!==k}function S(L,z,B,k){const $={},K=z.attributes;let W=0;const le=B.getAttributes();for(const J in le)if(le[J].location>=0){let _e=K[J];_e===void 0&&(J==="instanceMatrix"&&L.instanceMatrix&&(_e=L.instanceMatrix),J==="instanceColor"&&L.instanceColor&&(_e=L.instanceColor));const ge={};ge.attribute=_e,_e&&_e.data&&(ge.data=_e.data),$[J]=ge,W++}c.attributes=$,c.attributesNum=W,c.index=k}function y(){const L=c.newAttributes;for(let z=0,B=L.length;z=0){let ee=$[le];if(ee===void 0&&(le==="instanceMatrix"&&L.instanceMatrix&&(ee=L.instanceMatrix),le==="instanceColor"&&L.instanceColor&&(ee=L.instanceColor)),ee!==void 0){const _e=ee.normalized,ge=ee.itemSize,Ce=t.get(ee);if(Ce===void 0)continue;const X=Ce.buffer,ue=Ce.type,Z=Ce.bytesPerElement,be=i.isWebGL2===!0&&(ue===n.INT||ue===n.UNSIGNED_INT||ee.gpuType===lO);if(ee.isInterleavedBufferAttribute){const Oe=ee.data,M=Oe.stride,G=ee.offset;if(Oe.isInstancedInterleavedBuffer){for(let q=0;q0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";w="mediump"}return w==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=o||e.has("WEBGL_draw_buffers"),d=t.logarithmicDepthBuffer===!0,u=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_TEXTURE_SIZE),f=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),E=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),S=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),y=h>0,T=o||e.has("OES_texture_float"),C=y&&T,x=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:u,maxVertexTextures:h,maxTextureSize:m,maxCubemapSize:f,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:S,vertexTextures:y,floatFragmentTextures:T,floatVertexTextures:C,maxSamples:x}}function HTt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new Dr,a=new yt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(u,h){const m=u.length!==0||h||i!==0||s;return s=h,i=u.length,m},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(u,h){t=d(u,h,0)},this.setState=function(u,h,m){const f=u.clippingPlanes,E=u.clipIntersection,b=u.clipShadows,g=n.get(u);if(!s||f===null||f.length===0||r&&!b)r?d(null):c();else{const S=r?0:i,y=S*4;let T=g.clippingState||null;l.value=T,T=d(f,h,y,m);for(let C=0;C!==y;++C)T[C]=t[C];g.clippingState=T,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=S}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function d(u,h,m,f){const E=u!==null?u.length:0;let b=null;if(E!==0){if(b=l.value,f!==!0||b===null){const g=m+E*4,S=h.matrixWorldInverse;a.getNormalMatrix(S),(b===null||b.length0){const c=new tyt(l.height/2);return c.fromEquirectangularTexture(n,o),e.set(o,c),o.addEventListener("dispose",s),t(c.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class kE extends AO{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,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=t,this.view.offsetX=i,this.view.offsetY=s,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),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,l=s-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=c*this.view.offsetX,o=r+c*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const zo=4,f1=[.125,.215,.35,.446,.526,.582],Vr=20,zm=new kE,m1=new pt;let qm=null,Ym=0,$m=0;const Lr=(1+Math.sqrt(5))/2,Uo=1/Lr,g1=[new pe(1,1,1),new pe(-1,1,1),new pe(1,1,-1),new pe(-1,1,-1),new pe(0,Lr,Uo),new pe(0,Lr,-Uo),new pe(Uo,0,Lr),new pe(-Uo,0,Lr),new pe(Lr,Uo,0),new pe(-Lr,Uo,0)];class b1{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){qm=this._renderer.getRenderTarget(),Ym=this._renderer.getActiveCubeFace(),$m=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=v1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=S1(),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?y:0,y,y),d.setRenderTarget(s),E&&d.render(f,a),d.render(e,a)}f.geometry.dispose(),f.material.dispose(),d.toneMapping=h,d.autoClear=u,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===ma||e.mapping===ga;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=v1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=S1());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Fn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;cd(t,0,0,3*l,2*l),i.setRenderTarget(t),i.render(o,zm)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;sVr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Vr}`);const g=[];let S=0;for(let w=0;wy-zo?s-y+zo:0),x=4*(this._cubeSize-T);cd(t,C,x,3*T,2*T),l.setRenderTarget(t),l.render(u,zm)}}function qTt(n){const e=[],t=[],i=[];let s=n;const r=n-zo+1+f1.length;for(let o=0;on-zo?l=f1[o-n+zo-1]:o===0&&(l=0),i.push(l);const c=1/(a-2),d=-c,u=1+c,h=[d,d,u,d,u,u,d,d,u,u,d,u],m=6,f=6,E=3,b=2,g=1,S=new Float32Array(E*f*m),y=new Float32Array(b*f*m),T=new Float32Array(g*f*m);for(let x=0;x2?0:-1,v=[w,R,0,w+2/3,R,0,w+2/3,R+1,0,w,R,0,w+2/3,R+1,0,w,R+1,0];S.set(v,E*f*x),y.set(h,b*f*x);const A=[x,x,x,x,x,x];T.set(A,g*f*x)}const C=new is;C.setAttribute("position",new Gn(S,E)),C.setAttribute("uv",new Gn(y,b)),C.setAttribute("faceIndex",new Gn(T,g)),e.push(C),s>zo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function E1(n,e,t){const i=new so(n,e,t);return i.texture.mapping=Xu,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function cd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function YTt(n,e,t){const i=new Float32Array(Vr),s=new pe(0,1,0);return new ro({name:"SphericalGaussianBlur",defines:{n:Vr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:PE(),fragmentShader:` +}`,St={alphahash_fragment:ryt,alphahash_pars_fragment:oyt,alphamap_fragment:ayt,alphamap_pars_fragment:lyt,alphatest_fragment:cyt,alphatest_pars_fragment:dyt,aomap_fragment:uyt,aomap_pars_fragment:pyt,batching_pars_vertex:_yt,batching_vertex:hyt,begin_vertex:fyt,beginnormal_vertex:myt,bsdfs:gyt,iridescence_fragment:byt,bumpmap_pars_fragment:Eyt,clipping_planes_fragment:Syt,clipping_planes_pars_fragment:vyt,clipping_planes_pars_vertex:yyt,clipping_planes_vertex:Tyt,color_fragment:xyt,color_pars_fragment:Cyt,color_pars_vertex:Ryt,color_vertex:Ayt,common:wyt,cube_uv_reflection_fragment:Nyt,defaultnormal_vertex:Oyt,displacementmap_pars_vertex:Iyt,displacementmap_vertex:Myt,emissivemap_fragment:Dyt,emissivemap_pars_fragment:Lyt,colorspace_fragment:kyt,colorspace_pars_fragment:Pyt,envmap_fragment:Uyt,envmap_common_pars_fragment:Fyt,envmap_pars_fragment:Byt,envmap_pars_vertex:Gyt,envmap_physical_pars_fragment:Zyt,envmap_vertex:Vyt,fog_vertex:Hyt,fog_pars_vertex:zyt,fog_fragment:qyt,fog_pars_fragment:Yyt,gradientmap_pars_fragment:$yt,lightmap_fragment:Wyt,lightmap_pars_fragment:Kyt,lights_lambert_fragment:jyt,lights_lambert_pars_fragment:Qyt,lights_pars_begin:Xyt,lights_toon_fragment:Jyt,lights_toon_pars_fragment:e0t,lights_phong_fragment:t0t,lights_phong_pars_fragment:n0t,lights_physical_fragment:i0t,lights_physical_pars_fragment:s0t,lights_fragment_begin:r0t,lights_fragment_maps:o0t,lights_fragment_end:a0t,logdepthbuf_fragment:l0t,logdepthbuf_pars_fragment:c0t,logdepthbuf_pars_vertex:d0t,logdepthbuf_vertex:u0t,map_fragment:p0t,map_pars_fragment:_0t,map_particle_fragment:h0t,map_particle_pars_fragment:f0t,metalnessmap_fragment:m0t,metalnessmap_pars_fragment:g0t,morphcolor_vertex:b0t,morphnormal_vertex:E0t,morphtarget_pars_vertex:S0t,morphtarget_vertex:v0t,normal_fragment_begin:y0t,normal_fragment_maps:T0t,normal_pars_fragment:x0t,normal_pars_vertex:C0t,normal_vertex:R0t,normalmap_pars_fragment:A0t,clearcoat_normal_fragment_begin:w0t,clearcoat_normal_fragment_maps:N0t,clearcoat_pars_fragment:O0t,iridescence_pars_fragment:I0t,opaque_fragment:M0t,packing:D0t,premultiplied_alpha_fragment:L0t,project_vertex:k0t,dithering_fragment:P0t,dithering_pars_fragment:U0t,roughnessmap_fragment:F0t,roughnessmap_pars_fragment:B0t,shadowmap_pars_fragment:G0t,shadowmap_pars_vertex:V0t,shadowmap_vertex:H0t,shadowmask_pars_fragment:z0t,skinbase_vertex:q0t,skinning_pars_vertex:Y0t,skinning_vertex:$0t,skinnormal_vertex:W0t,specularmap_fragment:K0t,specularmap_pars_fragment:j0t,tonemapping_fragment:Q0t,tonemapping_pars_fragment:X0t,transmission_fragment:Z0t,transmission_pars_fragment:J0t,uv_pars_fragment:eTt,uv_pars_vertex:tTt,uv_vertex:nTt,worldpos_vertex:iTt,background_vert:sTt,background_frag:rTt,backgroundCube_vert:oTt,backgroundCube_frag:aTt,cube_vert:lTt,cube_frag:cTt,depth_vert:dTt,depth_frag:uTt,distanceRGBA_vert:pTt,distanceRGBA_frag:_Tt,equirect_vert:hTt,equirect_frag:fTt,linedashed_vert:mTt,linedashed_frag:gTt,meshbasic_vert:bTt,meshbasic_frag:ETt,meshlambert_vert:STt,meshlambert_frag:vTt,meshmatcap_vert:yTt,meshmatcap_frag:TTt,meshnormal_vert:xTt,meshnormal_frag:CTt,meshphong_vert:RTt,meshphong_frag:ATt,meshphysical_vert:wTt,meshphysical_frag:NTt,meshtoon_vert:OTt,meshtoon_frag:ITt,points_vert:MTt,points_frag:DTt,shadow_vert:LTt,shadow_frag:kTt,sprite_vert:PTt,sprite_frag:UTt},He={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new yt},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new yt}},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 yt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new yt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new yt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new yt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new yt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new yt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new yt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new yt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0},uvTransform:{value:new yt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new yt},alphaMap:{value:null},alphaMapTransform:{value:new yt},alphaTest:{value:0}}},Vi={basic:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.fog]),vertexShader:St.meshbasic_vert,fragmentShader:St.meshbasic_frag},lambert:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.fog,He.lights,{emissive:{value:new pt(0)}}]),vertexShader:St.meshlambert_vert,fragmentShader:St.meshlambert_frag},phong:{uniforms:Pn([He.common,He.specularmap,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.fog,He.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:St.meshphong_vert,fragmentShader:St.meshphong_frag},standard:{uniforms:Pn([He.common,He.envmap,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.roughnessmap,He.metalnessmap,He.fog,He.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag},toon:{uniforms:Pn([He.common,He.aomap,He.lightmap,He.emissivemap,He.bumpmap,He.normalmap,He.displacementmap,He.gradientmap,He.fog,He.lights,{emissive:{value:new pt(0)}}]),vertexShader:St.meshtoon_vert,fragmentShader:St.meshtoon_frag},matcap:{uniforms:Pn([He.common,He.bumpmap,He.normalmap,He.displacementmap,He.fog,{matcap:{value:null}}]),vertexShader:St.meshmatcap_vert,fragmentShader:St.meshmatcap_frag},points:{uniforms:Pn([He.points,He.fog]),vertexShader:St.points_vert,fragmentShader:St.points_frag},dashed:{uniforms:Pn([He.common,He.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:St.linedashed_vert,fragmentShader:St.linedashed_frag},depth:{uniforms:Pn([He.common,He.displacementmap]),vertexShader:St.depth_vert,fragmentShader:St.depth_frag},normal:{uniforms:Pn([He.common,He.bumpmap,He.normalmap,He.displacementmap,{opacity:{value:1}}]),vertexShader:St.meshnormal_vert,fragmentShader:St.meshnormal_frag},sprite:{uniforms:Pn([He.sprite,He.fog]),vertexShader:St.sprite_vert,fragmentShader:St.sprite_frag},background:{uniforms:{uvTransform:{value:new yt},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([He.common,He.displacementmap,{referencePosition:{value:new pe},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:St.distanceRGBA_vert,fragmentShader:St.distanceRGBA_frag},shadow:{uniforms:Pn([He.lights,He.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:St.shadow_vert,fragmentShader:St.shadow_frag}};Vi.physical={uniforms:Pn([Vi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new yt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new yt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new yt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new yt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new yt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new yt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new yt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new yt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new yt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new yt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new yt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new yt}}]),vertexShader:St.meshphysical_vert,fragmentShader:St.meshphysical_frag};const ld={r:0,b:0,g:0};function FTt(n,e,t,i,s,r,o){const a=new pt(0);let l=r===!0?0:1,c,d,u=null,h=0,m=null;function f(b,g){let S=!1,y=g.isScene===!0?g.background:null;y&&y.isTexture&&(y=(g.backgroundBlurriness>0?t:e).get(y)),y===null?E(a,l):y&&y.isColor&&(E(y,1),S=!0);const T=n.xr.getEnvironmentBlendMode();T==="additive"?i.buffers.color.setClear(0,0,0,1,o):T==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||S)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),y&&(y.isCubeTexture||y.mapping===Xu)?(d===void 0&&(d=new Fn(new pr(1,1,1),new ro({name:"BackgroundCubeMaterial",uniforms:ya(Vi.backgroundCube.uniforms),vertexShader:Vi.backgroundCube.vertexShader,fragmentShader:Vi.backgroundCube.fragmentShader,side:Kn,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(C,x,w){this.matrixWorld.copyPosition(w.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(d)),d.material.uniforms.envMap.value=y,d.material.uniforms.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Pt.getTransfer(y.colorSpace)!==$t,(u!==y||h!==y.version||m!==n.toneMapping)&&(d.material.needsUpdate=!0,u=y,h=y.version,m=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null)):y&&y.isTexture&&(c===void 0&&(c=new Fn(new LE(2,2),new ro({name:"BackgroundMaterial",uniforms:ya(Vi.background.uniforms),vertexShader:Vi.background.vertexShader,fragmentShader:Vi.background.fragmentShader,side:Os,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(c)),c.material.uniforms.t2D.value=y,c.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,c.material.toneMapped=Pt.getTransfer(y.colorSpace)!==$t,y.matrixAutoUpdate===!0&&y.updateMatrix(),c.material.uniforms.uvTransform.value.copy(y.matrix),(u!==y||h!==y.version||m!==n.toneMapping)&&(c.material.needsUpdate=!0,u=y,h=y.version,m=n.toneMapping),c.layers.enableAll(),b.unshift(c,c.geometry,c.material,0,0,null))}function E(b,g){b.getRGB(ld,RO(n)),i.buffers.color.setClear(ld.r,ld.g,ld.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),l=g,E(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(b){l=b,E(a,l)},render:f}}function BTt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},l=b(null);let c=l,d=!1;function u(L,z,B,k,$){let K=!1;if(o){const W=E(k,B,z);c!==W&&(c=W,m(c.object)),K=g(L,k,B,$),K&&S(L,k,B,$)}else{const W=z.wireframe===!0;(c.geometry!==k.id||c.program!==B.id||c.wireframe!==W)&&(c.geometry=k.id,c.program=B.id,c.wireframe=W,K=!0)}$!==null&&t.update($,n.ELEMENT_ARRAY_BUFFER),(K||d)&&(d=!1,R(L,z,B,k),$!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get($).buffer))}function h(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function m(L){return i.isWebGL2?n.bindVertexArray(L):r.bindVertexArrayOES(L)}function f(L){return i.isWebGL2?n.deleteVertexArray(L):r.deleteVertexArrayOES(L)}function E(L,z,B){const k=B.wireframe===!0;let $=a[L.id];$===void 0&&($={},a[L.id]=$);let K=$[z.id];K===void 0&&(K={},$[z.id]=K);let W=K[k];return W===void 0&&(W=b(h()),K[k]=W),W}function b(L){const z=[],B=[],k=[];for(let $=0;$=0){const _e=$[J];let ge=K[J];if(ge===void 0&&(J==="instanceMatrix"&&L.instanceMatrix&&(ge=L.instanceMatrix),J==="instanceColor"&&L.instanceColor&&(ge=L.instanceColor)),_e===void 0||_e.attribute!==ge||ge&&_e.data!==ge.data)return!0;W++}return c.attributesNum!==W||c.index!==k}function S(L,z,B,k){const $={},K=z.attributes;let W=0;const le=B.getAttributes();for(const J in le)if(le[J].location>=0){let _e=K[J];_e===void 0&&(J==="instanceMatrix"&&L.instanceMatrix&&(_e=L.instanceMatrix),J==="instanceColor"&&L.instanceColor&&(_e=L.instanceColor));const ge={};ge.attribute=_e,_e&&_e.data&&(ge.data=_e.data),$[J]=ge,W++}c.attributes=$,c.attributesNum=W,c.index=k}function y(){const L=c.newAttributes;for(let z=0,B=L.length;z=0){let ee=$[le];if(ee===void 0&&(le==="instanceMatrix"&&L.instanceMatrix&&(ee=L.instanceMatrix),le==="instanceColor"&&L.instanceColor&&(ee=L.instanceColor)),ee!==void 0){const _e=ee.normalized,ge=ee.itemSize,Ce=t.get(ee);if(Ce===void 0)continue;const X=Ce.buffer,ue=Ce.type,Z=Ce.bytesPerElement,be=i.isWebGL2===!0&&(ue===n.INT||ue===n.UNSIGNED_INT||ee.gpuType===lO);if(ee.isInterleavedBufferAttribute){const Oe=ee.data,M=Oe.stride,G=ee.offset;if(Oe.isInstancedInterleavedBuffer){for(let q=0;q0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";w="mediump"}return w==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const l=r(a);l!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",l,"instead."),a=l);const c=o||e.has("WEBGL_draw_buffers"),d=t.logarithmicDepthBuffer===!0,u=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_TEXTURE_SIZE),f=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),E=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),S=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),y=h>0,T=o||e.has("OES_texture_float"),C=y&&T,x=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:d,maxTextures:u,maxVertexTextures:h,maxTextureSize:m,maxCubemapSize:f,maxAttributes:E,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:S,vertexTextures:y,floatFragmentTextures:T,floatVertexTextures:C,maxSamples:x}}function HTt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new Dr,a=new yt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(u,h){const m=u.length!==0||h||i!==0||s;return s=h,i=u.length,m},this.beginShadows=function(){r=!0,d(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(u,h){t=d(u,h,0)},this.setState=function(u,h,m){const f=u.clippingPlanes,E=u.clipIntersection,b=u.clipShadows,g=n.get(u);if(!s||f===null||f.length===0||r&&!b)r?d(null):c();else{const S=r?0:i,y=S*4;let T=g.clippingState||null;l.value=T,T=d(f,h,y,m);for(let C=0;C!==y;++C)T[C]=t[C];g.clippingState=T,this.numIntersection=E?this.numPlanes:0,this.numPlanes+=S}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function d(u,h,m,f){const E=u!==null?u.length:0;let b=null;if(E!==0){if(b=l.value,f!==!0||b===null){const g=m+E*4,S=h.matrixWorldInverse;a.getNormalMatrix(S),(b===null||b.length0){const c=new tyt(l.height/2);return c.fromEquirectangularTexture(n,o),e.set(o,c),o.addEventListener("dispose",s),t(c.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class kE extends AO{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,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=t,this.view.offsetX=i,this.view.offsetY=s,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),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,l=s-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=c*this.view.offsetX,o=r+c*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const zo=4,f1=[.125,.215,.35,.446,.526,.582],Vr=20,zm=new kE,m1=new pt;let qm=null,Ym=0,$m=0;const Lr=(1+Math.sqrt(5))/2,Uo=1/Lr,g1=[new pe(1,1,1),new pe(-1,1,1),new pe(1,1,-1),new pe(-1,1,-1),new pe(0,Lr,Uo),new pe(0,Lr,-Uo),new pe(Uo,0,Lr),new pe(-Uo,0,Lr),new pe(Lr,Uo,0),new pe(-Lr,Uo,0)];class b1{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){qm=this._renderer.getRenderTarget(),Ym=this._renderer.getActiveCubeFace(),$m=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=v1(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=S1(),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?y:0,y,y),d.setRenderTarget(s),E&&d.render(f,a),d.render(e,a)}f.geometry.dispose(),f.material.dispose(),d.toneMapping=h,d.autoClear=u,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===ma||e.mapping===ga;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=v1()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=S1());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Fn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;cd(t,0,0,3*l,2*l),i.setRenderTarget(t),i.render(o,zm)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;sVr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Vr}`);const g=[];let S=0;for(let w=0;wy-zo?s-y+zo:0),x=4*(this._cubeSize-T);cd(t,C,x,3*T,2*T),l.setRenderTarget(t),l.render(u,zm)}}function qTt(n){const e=[],t=[],i=[];let s=n;const r=n-zo+1+f1.length;for(let o=0;on-zo?l=f1[o-n+zo-1]:o===0&&(l=0),i.push(l);const c=1/(a-2),d=-c,u=1+c,h=[d,d,u,d,u,u,d,d,u,u,d,u],m=6,f=6,E=3,b=2,g=1,S=new Float32Array(E*f*m),y=new Float32Array(b*f*m),T=new Float32Array(g*f*m);for(let x=0;x2?0:-1,v=[w,R,0,w+2/3,R,0,w+2/3,R+1,0,w,R,0,w+2/3,R+1,0,w,R+1,0];S.set(v,E*f*x),y.set(h,b*f*x);const A=[x,x,x,x,x,x];T.set(A,g*f*x)}const C=new is;C.setAttribute("position",new Gn(S,E)),C.setAttribute("uv",new Gn(y,b)),C.setAttribute("faceIndex",new Gn(T,g)),e.push(C),s>zo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function E1(n,e,t){const i=new so(n,e,t);return i.texture.mapping=Xu,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function cd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function YTt(n,e,t){const i=new Float32Array(Vr),s=new pe(0,1,0);return new ro({name:"SphericalGaussianBlur",defines:{n:Vr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:PE(),fragmentShader:` precision mediump float; precision mediump int; @@ -3796,7 +3796,7 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function $Tt(n){let e=new WeakMap,t=null;function i(a){if(a&&a.isTexture){const l=a.mapping,c=l===Hg||l===zg,d=l===ma||l===ga;if(c||d)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let u=e.get(a);return t===null&&(t=new b1(n)),u=c?t.fromEquirectangular(a,u):t.fromCubemap(a,u),e.set(a,u),u.texture}else{if(e.has(a))return e.get(a).texture;{const u=a.image;if(c&&u&&u.height>0||d&&u&&s(u)){t===null&&(t=new b1(n));const h=c?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,h),a.addEventListener("dispose",r),h.texture}else return null}}}return a}function s(a){let l=0;const c=6;for(let d=0;de.maxTextureSize&&(P=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const U=new Float32Array(A*P*4*E),Y=new vO(U,A,P,E);Y.type=Ss,Y.needsUpdate=!0;const L=v*4;for(let B=0;B0)return n;const s=e*t;let r=y1[s];if(r===void 0&&(r=new Float32Array(s),y1[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function _n(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t0||d&&u&&s(u)){t===null&&(t=new b1(n));const h=c?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,h),a.addEventListener("dispose",r),h.texture}else return null}}}return a}function s(a){let l=0;const c=6;for(let d=0;de.maxTextureSize&&(P=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const U=new Float32Array(A*P*4*E),Y=new vO(U,A,P,E);Y.type=Ss,Y.needsUpdate=!0;const L=v*4;for(let B=0;B0)return n;const s=e*t;let r=y1[s];if(r===void 0&&(r=new Float32Array(s),y1[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function _n(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t":" "} ${a}: ${t[o]}`)}return i.join(` `)}function Kxt(n){const e=Pt.getPrimaries(Pt.workingColorSpace),t=Pt.getPrimaries(n);let i;switch(e===t?i="":e===lu&&t===au?i="LinearDisplayP3ToLinearSRGB":e===au&&t===lu&&(i="LinearSRGBToLinearDisplayP3"),n){case Cn:case Zu:return[i,"LinearTransferOETF"];case nn:case IE:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[i,"LinearTransferOETF"]}}function N1(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),s=n.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` @@ -3826,7 +3826,7 @@ precision `+n.precision+" int;";return n.precision==="highp"?e+=` Program Info Log: `+U+` `+k+` -`+$)}else U!==""?console.warn("THREE.WebGLProgram: Program Info Log:",U):(Y===""||L==="")&&(B=!1);B&&(P.diagnostics={runnable:z,programLog:U,vertexShader:{log:Y,prefix:b},fragmentShader:{log:L,prefix:g}})}s.deleteShader(C),s.deleteShader(x),R=new Id(s,E),v=Jxt(s,E)}let R;this.getUniforms=function(){return R===void 0&&w(this),R};let v;this.getAttributes=function(){return v===void 0&&w(this),v};let A=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return A===!1&&(A=s.getProgramParameter(E,Yxt)),A},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(E),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=$xt++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=C,this.fragmentShader=x,this}let uCt=0;class pCt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new _Ct(e),t.set(e,i)),i}}class _Ct{constructor(e){this.id=uCt++,this.code=e,this.usedTimes=0}}function hCt(n,e,t,i,s,r,o){const a=new yO,l=new pCt,c=[],d=s.isWebGL2,u=s.logarithmicDepthBuffer,h=s.vertexTextures;let m=s.precision;const f={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 E(v){return v===0?"uv":`uv${v}`}function b(v,A,P,U,Y){const L=U.fog,z=Y.geometry,B=v.isMeshStandardMaterial?U.environment:null,k=(v.isMeshStandardMaterial?t:e).get(v.envMap||B),$=k&&k.mapping===Xu?k.image.height:null,K=f[v.type];v.precision!==null&&(m=s.getMaxPrecision(v.precision),m!==v.precision&&console.warn("THREE.WebGLProgram.getParameters:",v.precision,"not supported, using",m,"instead."));const W=z.morphAttributes.position||z.morphAttributes.normal||z.morphAttributes.color,le=W!==void 0?W.length:0;let J=0;z.morphAttributes.position!==void 0&&(J=1),z.morphAttributes.normal!==void 0&&(J=2),z.morphAttributes.color!==void 0&&(J=3);let ee,_e,ge,Ce;if(K){const un=Vi[K];ee=un.vertexShader,_e=un.fragmentShader}else ee=v.vertexShader,_e=v.fragmentShader,l.update(v),ge=l.getVertexShaderID(v),Ce=l.getFragmentShaderID(v);const X=n.getRenderTarget(),ue=Y.isInstancedMesh===!0,Z=Y.isBatchedMesh===!0,be=!!v.map,Oe=!!v.matcap,M=!!k,G=!!v.aoMap,q=!!v.lightMap,oe=!!v.bumpMap,ne=!!v.normalMap,ye=!!v.displacementMap,we=!!v.emissiveMap,V=!!v.metalnessMap,ce=!!v.roughnessMap,ie=v.anisotropy>0,re=v.clearcoat>0,I=v.iridescence>0,N=v.sheen>0,H=v.transmission>0,de=ie&&!!v.anisotropyMap,Q=re&&!!v.clearcoatMap,te=re&&!!v.clearcoatNormalMap,Re=re&&!!v.clearcoatRoughnessMap,ve=I&&!!v.iridescenceMap,Le=I&&!!v.iridescenceThicknessMap,Ve=N&&!!v.sheenColorMap,it=N&&!!v.sheenRoughnessMap,De=!!v.specularMap,st=!!v.specularColorMap,Xe=!!v.specularIntensityMap,Ge=H&&!!v.transmissionMap,Ze=H&&!!v.thicknessMap,We=!!v.gradientMap,ht=!!v.alphaMap,ae=v.alphaTest>0,Ye=!!v.alphaHash,Pe=!!v.extensions,Ne=!!z.attributes.uv1,Ue=!!z.attributes.uv2,ot=!!z.attributes.uv3;let bt=dr;return v.toneMapped&&(X===null||X.isXRRenderTarget===!0)&&(bt=n.toneMapping),{isWebGL2:d,shaderID:K,shaderType:v.type,shaderName:v.name,vertexShader:ee,fragmentShader:_e,defines:v.defines,customVertexShaderID:ge,customFragmentShaderID:Ce,isRawShaderMaterial:v.isRawShaderMaterial===!0,glslVersion:v.glslVersion,precision:m,batching:Z,instancing:ue,instancingColor:ue&&Y.instanceColor!==null,supportsVertexTextures:h,outputColorSpace:X===null?n.outputColorSpace:X.isXRRenderTarget===!0?X.texture.colorSpace:Cn,map:be,matcap:Oe,envMap:M,envMapMode:M&&k.mapping,envMapCubeUVHeight:$,aoMap:G,lightMap:q,bumpMap:oe,normalMap:ne,displacementMap:h&&ye,emissiveMap:we,normalMapObjectSpace:ne&&v.normalMapType===dvt,normalMapTangentSpace:ne&&v.normalMapType===OE,metalnessMap:V,roughnessMap:ce,anisotropy:ie,anisotropyMap:de,clearcoat:re,clearcoatMap:Q,clearcoatNormalMap:te,clearcoatRoughnessMap:Re,iridescence:I,iridescenceMap:ve,iridescenceThicknessMap:Le,sheen:N,sheenColorMap:Ve,sheenRoughnessMap:it,specularMap:De,specularColorMap:st,specularIntensityMap:Xe,transmission:H,transmissionMap:Ge,thicknessMap:Ze,gradientMap:We,opaque:v.transparent===!1&&v.blending===Jo,alphaMap:ht,alphaTest:ae,alphaHash:Ye,combine:v.combine,mapUv:be&&E(v.map.channel),aoMapUv:G&&E(v.aoMap.channel),lightMapUv:q&&E(v.lightMap.channel),bumpMapUv:oe&&E(v.bumpMap.channel),normalMapUv:ne&&E(v.normalMap.channel),displacementMapUv:ye&&E(v.displacementMap.channel),emissiveMapUv:we&&E(v.emissiveMap.channel),metalnessMapUv:V&&E(v.metalnessMap.channel),roughnessMapUv:ce&&E(v.roughnessMap.channel),anisotropyMapUv:de&&E(v.anisotropyMap.channel),clearcoatMapUv:Q&&E(v.clearcoatMap.channel),clearcoatNormalMapUv:te&&E(v.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Re&&E(v.clearcoatRoughnessMap.channel),iridescenceMapUv:ve&&E(v.iridescenceMap.channel),iridescenceThicknessMapUv:Le&&E(v.iridescenceThicknessMap.channel),sheenColorMapUv:Ve&&E(v.sheenColorMap.channel),sheenRoughnessMapUv:it&&E(v.sheenRoughnessMap.channel),specularMapUv:De&&E(v.specularMap.channel),specularColorMapUv:st&&E(v.specularColorMap.channel),specularIntensityMapUv:Xe&&E(v.specularIntensityMap.channel),transmissionMapUv:Ge&&E(v.transmissionMap.channel),thicknessMapUv:Ze&&E(v.thicknessMap.channel),alphaMapUv:ht&&E(v.alphaMap.channel),vertexTangents:!!z.attributes.tangent&&(ne||ie),vertexColors:v.vertexColors,vertexAlphas:v.vertexColors===!0&&!!z.attributes.color&&z.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:Ue,vertexUv3s:ot,pointsUvs:Y.isPoints===!0&&!!z.attributes.uv&&(be||ht),fog:!!L,useFog:v.fog===!0,fogExp2:L&&L.isFogExp2,flatShading:v.flatShading===!0,sizeAttenuation:v.sizeAttenuation===!0,logarithmicDepthBuffer:u,skinning:Y.isSkinnedMesh===!0,morphTargets:z.morphAttributes.position!==void 0,morphNormals:z.morphAttributes.normal!==void 0,morphColors:z.morphAttributes.color!==void 0,morphTargetsCount:le,morphTextureStride:J,numDirLights:A.directional.length,numPointLights:A.point.length,numSpotLights:A.spot.length,numSpotLightMaps:A.spotLightMap.length,numRectAreaLights:A.rectArea.length,numHemiLights:A.hemi.length,numDirLightShadows:A.directionalShadowMap.length,numPointLightShadows:A.pointShadowMap.length,numSpotLightShadows:A.spotShadowMap.length,numSpotLightShadowsWithMaps:A.numSpotLightShadowsWithMaps,numLightProbes:A.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:v.dithering,shadowMapEnabled:n.shadowMap.enabled&&P.length>0,shadowMapType:n.shadowMap.type,toneMapping:bt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:be&&v.map.isVideoTexture===!0&&Pt.getTransfer(v.map.colorSpace)===$t,premultipliedAlpha:v.premultipliedAlpha,doubleSided:v.side===zi,flipSided:v.side===Kn,useDepthPacking:v.depthPacking>=0,depthPacking:v.depthPacking||0,index0AttributeName:v.index0AttributeName,extensionDerivatives:Pe&&v.extensions.derivatives===!0,extensionFragDepth:Pe&&v.extensions.fragDepth===!0,extensionDrawBuffers:Pe&&v.extensions.drawBuffers===!0,extensionShaderTextureLOD:Pe&&v.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:v.customProgramCacheKey()}}function g(v){const A=[];if(v.shaderID?A.push(v.shaderID):(A.push(v.customVertexShaderID),A.push(v.customFragmentShaderID)),v.defines!==void 0)for(const P in v.defines)A.push(P),A.push(v.defines[P]);return v.isRawShaderMaterial===!1&&(S(A,v),y(A,v),A.push(n.outputColorSpace)),A.push(v.customProgramCacheKey),A.join()}function S(v,A){v.push(A.precision),v.push(A.outputColorSpace),v.push(A.envMapMode),v.push(A.envMapCubeUVHeight),v.push(A.mapUv),v.push(A.alphaMapUv),v.push(A.lightMapUv),v.push(A.aoMapUv),v.push(A.bumpMapUv),v.push(A.normalMapUv),v.push(A.displacementMapUv),v.push(A.emissiveMapUv),v.push(A.metalnessMapUv),v.push(A.roughnessMapUv),v.push(A.anisotropyMapUv),v.push(A.clearcoatMapUv),v.push(A.clearcoatNormalMapUv),v.push(A.clearcoatRoughnessMapUv),v.push(A.iridescenceMapUv),v.push(A.iridescenceThicknessMapUv),v.push(A.sheenColorMapUv),v.push(A.sheenRoughnessMapUv),v.push(A.specularMapUv),v.push(A.specularColorMapUv),v.push(A.specularIntensityMapUv),v.push(A.transmissionMapUv),v.push(A.thicknessMapUv),v.push(A.combine),v.push(A.fogExp2),v.push(A.sizeAttenuation),v.push(A.morphTargetsCount),v.push(A.morphAttributeCount),v.push(A.numDirLights),v.push(A.numPointLights),v.push(A.numSpotLights),v.push(A.numSpotLightMaps),v.push(A.numHemiLights),v.push(A.numRectAreaLights),v.push(A.numDirLightShadows),v.push(A.numPointLightShadows),v.push(A.numSpotLightShadows),v.push(A.numSpotLightShadowsWithMaps),v.push(A.numLightProbes),v.push(A.shadowMapType),v.push(A.toneMapping),v.push(A.numClippingPlanes),v.push(A.numClipIntersection),v.push(A.depthPacking)}function y(v,A){a.disableAll(),A.isWebGL2&&a.enable(0),A.supportsVertexTextures&&a.enable(1),A.instancing&&a.enable(2),A.instancingColor&&a.enable(3),A.matcap&&a.enable(4),A.envMap&&a.enable(5),A.normalMapObjectSpace&&a.enable(6),A.normalMapTangentSpace&&a.enable(7),A.clearcoat&&a.enable(8),A.iridescence&&a.enable(9),A.alphaTest&&a.enable(10),A.vertexColors&&a.enable(11),A.vertexAlphas&&a.enable(12),A.vertexUv1s&&a.enable(13),A.vertexUv2s&&a.enable(14),A.vertexUv3s&&a.enable(15),A.vertexTangents&&a.enable(16),A.anisotropy&&a.enable(17),A.alphaHash&&a.enable(18),A.batching&&a.enable(19),v.push(a.mask),a.disableAll(),A.fog&&a.enable(0),A.useFog&&a.enable(1),A.flatShading&&a.enable(2),A.logarithmicDepthBuffer&&a.enable(3),A.skinning&&a.enable(4),A.morphTargets&&a.enable(5),A.morphNormals&&a.enable(6),A.morphColors&&a.enable(7),A.premultipliedAlpha&&a.enable(8),A.shadowMapEnabled&&a.enable(9),A.useLegacyLights&&a.enable(10),A.doubleSided&&a.enable(11),A.flipSided&&a.enable(12),A.useDepthPacking&&a.enable(13),A.dithering&&a.enable(14),A.transmission&&a.enable(15),A.sheen&&a.enable(16),A.opaque&&a.enable(17),A.pointsUvs&&a.enable(18),A.decodeVideoTexture&&a.enable(19),v.push(a.mask)}function T(v){const A=f[v.type];let P;if(A){const U=Vi[A];P=Xvt.clone(U.uniforms)}else P=v.uniforms;return P}function C(v,A){let P;for(let U=0,Y=c.length;U0?i.push(g):m.transparent===!0?s.push(g):t.push(g)}function l(u,h,m,f,E,b){const g=o(u,h,m,f,E,b);m.transmission>0?i.unshift(g):m.transparent===!0?s.unshift(g):t.unshift(g)}function c(u,h){t.length>1&&t.sort(u||mCt),i.length>1&&i.sort(h||L1),s.length>1&&s.sort(h||L1)}function d(){for(let u=e,h=n.length;u=r.length?(o=new k1,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function bCt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new pe,color:new pt};break;case"SpotLight":t={position:new pe,direction:new pe,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new pe,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new pe,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new pe,halfWidth:new pe,halfHeight:new pe};break}return n[e.id]=t,t}}}function ECt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new At,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let SCt=0;function vCt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function yCt(n,e){const t=new bCt,i=ECt(),s={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 d=0;d<9;d++)s.probe.push(new pe);const r=new pe,o=new Tt,a=new Tt;function l(d,u){let h=0,m=0,f=0;for(let U=0;U<9;U++)s.probe[U].set(0,0,0);let E=0,b=0,g=0,S=0,y=0,T=0,C=0,x=0,w=0,R=0,v=0;d.sort(vCt);const A=u===!0?Math.PI:1;for(let U=0,Y=d.length;U0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=He.LTC_FLOAT_1,s.rectAreaLTC2=He.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=He.LTC_HALF_1,s.rectAreaLTC2=He.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=h,s.ambient[1]=m,s.ambient[2]=f;const P=s.hash;(P.directionalLength!==E||P.pointLength!==b||P.spotLength!==g||P.rectAreaLength!==S||P.hemiLength!==y||P.numDirectionalShadows!==T||P.numPointShadows!==C||P.numSpotShadows!==x||P.numSpotMaps!==w||P.numLightProbes!==v)&&(s.directional.length=E,s.spot.length=g,s.rectArea.length=S,s.point.length=b,s.hemi.length=y,s.directionalShadow.length=T,s.directionalShadowMap.length=T,s.pointShadow.length=C,s.pointShadowMap.length=C,s.spotShadow.length=x,s.spotShadowMap.length=x,s.directionalShadowMatrix.length=T,s.pointShadowMatrix.length=C,s.spotLightMatrix.length=x+w-R,s.spotLightMap.length=w,s.numSpotLightShadowsWithMaps=R,s.numLightProbes=v,P.directionalLength=E,P.pointLength=b,P.spotLength=g,P.rectAreaLength=S,P.hemiLength=y,P.numDirectionalShadows=T,P.numPointShadows=C,P.numSpotShadows=x,P.numSpotMaps=w,P.numLightProbes=v,s.version=SCt++)}function c(d,u){let h=0,m=0,f=0,E=0,b=0;const g=u.matrixWorldInverse;for(let S=0,y=d.length;S=a.length?(l=new P1(n,e),a.push(l)):l=a[o],l}function s(){t=new WeakMap}return{get:i,dispose:s}}class xCt extends Li{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=lvt,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 CCt extends Li{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 RCt=`void main() { +`+$)}else U!==""?console.warn("THREE.WebGLProgram: Program Info Log:",U):(Y===""||L==="")&&(B=!1);B&&(P.diagnostics={runnable:z,programLog:U,vertexShader:{log:Y,prefix:b},fragmentShader:{log:L,prefix:g}})}s.deleteShader(C),s.deleteShader(x),R=new Id(s,E),v=Jxt(s,E)}let R;this.getUniforms=function(){return R===void 0&&w(this),R};let v;this.getAttributes=function(){return v===void 0&&w(this),v};let A=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return A===!1&&(A=s.getProgramParameter(E,Yxt)),A},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(E),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=$xt++,this.cacheKey=e,this.usedTimes=1,this.program=E,this.vertexShader=C,this.fragmentShader=x,this}let uCt=0;class pCt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new _Ct(e),t.set(e,i)),i}}class _Ct{constructor(e){this.id=uCt++,this.code=e,this.usedTimes=0}}function hCt(n,e,t,i,s,r,o){const a=new yO,l=new pCt,c=[],d=s.isWebGL2,u=s.logarithmicDepthBuffer,h=s.vertexTextures;let m=s.precision;const f={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 E(v){return v===0?"uv":`uv${v}`}function b(v,A,P,U,Y){const L=U.fog,z=Y.geometry,B=v.isMeshStandardMaterial?U.environment:null,k=(v.isMeshStandardMaterial?t:e).get(v.envMap||B),$=k&&k.mapping===Xu?k.image.height:null,K=f[v.type];v.precision!==null&&(m=s.getMaxPrecision(v.precision),m!==v.precision&&console.warn("THREE.WebGLProgram.getParameters:",v.precision,"not supported, using",m,"instead."));const W=z.morphAttributes.position||z.morphAttributes.normal||z.morphAttributes.color,le=W!==void 0?W.length:0;let J=0;z.morphAttributes.position!==void 0&&(J=1),z.morphAttributes.normal!==void 0&&(J=2),z.morphAttributes.color!==void 0&&(J=3);let ee,_e,ge,Ce;if(K){const un=Vi[K];ee=un.vertexShader,_e=un.fragmentShader}else ee=v.vertexShader,_e=v.fragmentShader,l.update(v),ge=l.getVertexShaderID(v),Ce=l.getFragmentShaderID(v);const X=n.getRenderTarget(),ue=Y.isInstancedMesh===!0,Z=Y.isBatchedMesh===!0,be=!!v.map,Oe=!!v.matcap,M=!!k,G=!!v.aoMap,q=!!v.lightMap,oe=!!v.bumpMap,ne=!!v.normalMap,ye=!!v.displacementMap,we=!!v.emissiveMap,V=!!v.metalnessMap,ce=!!v.roughnessMap,ie=v.anisotropy>0,re=v.clearcoat>0,I=v.iridescence>0,N=v.sheen>0,H=v.transmission>0,de=ie&&!!v.anisotropyMap,Q=re&&!!v.clearcoatMap,te=re&&!!v.clearcoatNormalMap,Re=re&&!!v.clearcoatRoughnessMap,ve=I&&!!v.iridescenceMap,Le=I&&!!v.iridescenceThicknessMap,Ve=N&&!!v.sheenColorMap,it=N&&!!v.sheenRoughnessMap,De=!!v.specularMap,st=!!v.specularColorMap,Xe=!!v.specularIntensityMap,Ge=H&&!!v.transmissionMap,Ze=H&&!!v.thicknessMap,We=!!v.gradientMap,ht=!!v.alphaMap,ae=v.alphaTest>0,Ye=!!v.alphaHash,Pe=!!v.extensions,Ne=!!z.attributes.uv1,Ue=!!z.attributes.uv2,ot=!!z.attributes.uv3;let bt=dr;return v.toneMapped&&(X===null||X.isXRRenderTarget===!0)&&(bt=n.toneMapping),{isWebGL2:d,shaderID:K,shaderType:v.type,shaderName:v.name,vertexShader:ee,fragmentShader:_e,defines:v.defines,customVertexShaderID:ge,customFragmentShaderID:Ce,isRawShaderMaterial:v.isRawShaderMaterial===!0,glslVersion:v.glslVersion,precision:m,batching:Z,instancing:ue,instancingColor:ue&&Y.instanceColor!==null,supportsVertexTextures:h,outputColorSpace:X===null?n.outputColorSpace:X.isXRRenderTarget===!0?X.texture.colorSpace:Cn,map:be,matcap:Oe,envMap:M,envMapMode:M&&k.mapping,envMapCubeUVHeight:$,aoMap:G,lightMap:q,bumpMap:oe,normalMap:ne,displacementMap:h&&ye,emissiveMap:we,normalMapObjectSpace:ne&&v.normalMapType===dvt,normalMapTangentSpace:ne&&v.normalMapType===OE,metalnessMap:V,roughnessMap:ce,anisotropy:ie,anisotropyMap:de,clearcoat:re,clearcoatMap:Q,clearcoatNormalMap:te,clearcoatRoughnessMap:Re,iridescence:I,iridescenceMap:ve,iridescenceThicknessMap:Le,sheen:N,sheenColorMap:Ve,sheenRoughnessMap:it,specularMap:De,specularColorMap:st,specularIntensityMap:Xe,transmission:H,transmissionMap:Ge,thicknessMap:Ze,gradientMap:We,opaque:v.transparent===!1&&v.blending===Jo,alphaMap:ht,alphaTest:ae,alphaHash:Ye,combine:v.combine,mapUv:be&&E(v.map.channel),aoMapUv:G&&E(v.aoMap.channel),lightMapUv:q&&E(v.lightMap.channel),bumpMapUv:oe&&E(v.bumpMap.channel),normalMapUv:ne&&E(v.normalMap.channel),displacementMapUv:ye&&E(v.displacementMap.channel),emissiveMapUv:we&&E(v.emissiveMap.channel),metalnessMapUv:V&&E(v.metalnessMap.channel),roughnessMapUv:ce&&E(v.roughnessMap.channel),anisotropyMapUv:de&&E(v.anisotropyMap.channel),clearcoatMapUv:Q&&E(v.clearcoatMap.channel),clearcoatNormalMapUv:te&&E(v.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Re&&E(v.clearcoatRoughnessMap.channel),iridescenceMapUv:ve&&E(v.iridescenceMap.channel),iridescenceThicknessMapUv:Le&&E(v.iridescenceThicknessMap.channel),sheenColorMapUv:Ve&&E(v.sheenColorMap.channel),sheenRoughnessMapUv:it&&E(v.sheenRoughnessMap.channel),specularMapUv:De&&E(v.specularMap.channel),specularColorMapUv:st&&E(v.specularColorMap.channel),specularIntensityMapUv:Xe&&E(v.specularIntensityMap.channel),transmissionMapUv:Ge&&E(v.transmissionMap.channel),thicknessMapUv:Ze&&E(v.thicknessMap.channel),alphaMapUv:ht&&E(v.alphaMap.channel),vertexTangents:!!z.attributes.tangent&&(ne||ie),vertexColors:v.vertexColors,vertexAlphas:v.vertexColors===!0&&!!z.attributes.color&&z.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:Ue,vertexUv3s:ot,pointsUvs:Y.isPoints===!0&&!!z.attributes.uv&&(be||ht),fog:!!L,useFog:v.fog===!0,fogExp2:L&&L.isFogExp2,flatShading:v.flatShading===!0,sizeAttenuation:v.sizeAttenuation===!0,logarithmicDepthBuffer:u,skinning:Y.isSkinnedMesh===!0,morphTargets:z.morphAttributes.position!==void 0,morphNormals:z.morphAttributes.normal!==void 0,morphColors:z.morphAttributes.color!==void 0,morphTargetsCount:le,morphTextureStride:J,numDirLights:A.directional.length,numPointLights:A.point.length,numSpotLights:A.spot.length,numSpotLightMaps:A.spotLightMap.length,numRectAreaLights:A.rectArea.length,numHemiLights:A.hemi.length,numDirLightShadows:A.directionalShadowMap.length,numPointLightShadows:A.pointShadowMap.length,numSpotLightShadows:A.spotShadowMap.length,numSpotLightShadowsWithMaps:A.numSpotLightShadowsWithMaps,numLightProbes:A.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:v.dithering,shadowMapEnabled:n.shadowMap.enabled&&P.length>0,shadowMapType:n.shadowMap.type,toneMapping:bt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:be&&v.map.isVideoTexture===!0&&Pt.getTransfer(v.map.colorSpace)===$t,premultipliedAlpha:v.premultipliedAlpha,doubleSided:v.side===zi,flipSided:v.side===Kn,useDepthPacking:v.depthPacking>=0,depthPacking:v.depthPacking||0,index0AttributeName:v.index0AttributeName,extensionDerivatives:Pe&&v.extensions.derivatives===!0,extensionFragDepth:Pe&&v.extensions.fragDepth===!0,extensionDrawBuffers:Pe&&v.extensions.drawBuffers===!0,extensionShaderTextureLOD:Pe&&v.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:d||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:d||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:d||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:v.customProgramCacheKey()}}function g(v){const A=[];if(v.shaderID?A.push(v.shaderID):(A.push(v.customVertexShaderID),A.push(v.customFragmentShaderID)),v.defines!==void 0)for(const P in v.defines)A.push(P),A.push(v.defines[P]);return v.isRawShaderMaterial===!1&&(S(A,v),y(A,v),A.push(n.outputColorSpace)),A.push(v.customProgramCacheKey),A.join()}function S(v,A){v.push(A.precision),v.push(A.outputColorSpace),v.push(A.envMapMode),v.push(A.envMapCubeUVHeight),v.push(A.mapUv),v.push(A.alphaMapUv),v.push(A.lightMapUv),v.push(A.aoMapUv),v.push(A.bumpMapUv),v.push(A.normalMapUv),v.push(A.displacementMapUv),v.push(A.emissiveMapUv),v.push(A.metalnessMapUv),v.push(A.roughnessMapUv),v.push(A.anisotropyMapUv),v.push(A.clearcoatMapUv),v.push(A.clearcoatNormalMapUv),v.push(A.clearcoatRoughnessMapUv),v.push(A.iridescenceMapUv),v.push(A.iridescenceThicknessMapUv),v.push(A.sheenColorMapUv),v.push(A.sheenRoughnessMapUv),v.push(A.specularMapUv),v.push(A.specularColorMapUv),v.push(A.specularIntensityMapUv),v.push(A.transmissionMapUv),v.push(A.thicknessMapUv),v.push(A.combine),v.push(A.fogExp2),v.push(A.sizeAttenuation),v.push(A.morphTargetsCount),v.push(A.morphAttributeCount),v.push(A.numDirLights),v.push(A.numPointLights),v.push(A.numSpotLights),v.push(A.numSpotLightMaps),v.push(A.numHemiLights),v.push(A.numRectAreaLights),v.push(A.numDirLightShadows),v.push(A.numPointLightShadows),v.push(A.numSpotLightShadows),v.push(A.numSpotLightShadowsWithMaps),v.push(A.numLightProbes),v.push(A.shadowMapType),v.push(A.toneMapping),v.push(A.numClippingPlanes),v.push(A.numClipIntersection),v.push(A.depthPacking)}function y(v,A){a.disableAll(),A.isWebGL2&&a.enable(0),A.supportsVertexTextures&&a.enable(1),A.instancing&&a.enable(2),A.instancingColor&&a.enable(3),A.matcap&&a.enable(4),A.envMap&&a.enable(5),A.normalMapObjectSpace&&a.enable(6),A.normalMapTangentSpace&&a.enable(7),A.clearcoat&&a.enable(8),A.iridescence&&a.enable(9),A.alphaTest&&a.enable(10),A.vertexColors&&a.enable(11),A.vertexAlphas&&a.enable(12),A.vertexUv1s&&a.enable(13),A.vertexUv2s&&a.enable(14),A.vertexUv3s&&a.enable(15),A.vertexTangents&&a.enable(16),A.anisotropy&&a.enable(17),A.alphaHash&&a.enable(18),A.batching&&a.enable(19),v.push(a.mask),a.disableAll(),A.fog&&a.enable(0),A.useFog&&a.enable(1),A.flatShading&&a.enable(2),A.logarithmicDepthBuffer&&a.enable(3),A.skinning&&a.enable(4),A.morphTargets&&a.enable(5),A.morphNormals&&a.enable(6),A.morphColors&&a.enable(7),A.premultipliedAlpha&&a.enable(8),A.shadowMapEnabled&&a.enable(9),A.useLegacyLights&&a.enable(10),A.doubleSided&&a.enable(11),A.flipSided&&a.enable(12),A.useDepthPacking&&a.enable(13),A.dithering&&a.enable(14),A.transmission&&a.enable(15),A.sheen&&a.enable(16),A.opaque&&a.enable(17),A.pointsUvs&&a.enable(18),A.decodeVideoTexture&&a.enable(19),v.push(a.mask)}function T(v){const A=f[v.type];let P;if(A){const U=Vi[A];P=Xvt.clone(U.uniforms)}else P=v.uniforms;return P}function C(v,A){let P;for(let U=0,Y=c.length;U0?i.push(g):m.transparent===!0?s.push(g):t.push(g)}function l(u,h,m,f,E,b){const g=o(u,h,m,f,E,b);m.transmission>0?i.unshift(g):m.transparent===!0?s.unshift(g):t.unshift(g)}function c(u,h){t.length>1&&t.sort(u||mCt),i.length>1&&i.sort(h||L1),s.length>1&&s.sort(h||L1)}function d(){for(let u=e,h=n.length;u=r.length?(o=new k1,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function bCt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new pe,color:new pt};break;case"SpotLight":t={position:new pe,direction:new pe,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new pe,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new pe,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new pe,halfWidth:new pe,halfHeight:new pe};break}return n[e.id]=t,t}}}function ECt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let SCt=0;function vCt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function yCt(n,e){const t=new bCt,i=ECt(),s={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 d=0;d<9;d++)s.probe.push(new pe);const r=new pe,o=new Tt,a=new Tt;function l(d,u){let h=0,m=0,f=0;for(let U=0;U<9;U++)s.probe[U].set(0,0,0);let E=0,b=0,g=0,S=0,y=0,T=0,C=0,x=0,w=0,R=0,v=0;d.sort(vCt);const A=u===!0?Math.PI:1;for(let U=0,Y=d.length;U0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=He.LTC_FLOAT_1,s.rectAreaLTC2=He.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=He.LTC_HALF_1,s.rectAreaLTC2=He.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=h,s.ambient[1]=m,s.ambient[2]=f;const P=s.hash;(P.directionalLength!==E||P.pointLength!==b||P.spotLength!==g||P.rectAreaLength!==S||P.hemiLength!==y||P.numDirectionalShadows!==T||P.numPointShadows!==C||P.numSpotShadows!==x||P.numSpotMaps!==w||P.numLightProbes!==v)&&(s.directional.length=E,s.spot.length=g,s.rectArea.length=S,s.point.length=b,s.hemi.length=y,s.directionalShadow.length=T,s.directionalShadowMap.length=T,s.pointShadow.length=C,s.pointShadowMap.length=C,s.spotShadow.length=x,s.spotShadowMap.length=x,s.directionalShadowMatrix.length=T,s.pointShadowMatrix.length=C,s.spotLightMatrix.length=x+w-R,s.spotLightMap.length=w,s.numSpotLightShadowsWithMaps=R,s.numLightProbes=v,P.directionalLength=E,P.pointLength=b,P.spotLength=g,P.rectAreaLength=S,P.hemiLength=y,P.numDirectionalShadows=T,P.numPointShadows=C,P.numSpotShadows=x,P.numSpotMaps=w,P.numLightProbes=v,s.version=SCt++)}function c(d,u){let h=0,m=0,f=0,E=0,b=0;const g=u.matrixWorldInverse;for(let S=0,y=d.length;S=a.length?(l=new P1(n,e),a.push(l)):l=a[o],l}function s(){t=new WeakMap}return{get:i,dispose:s}}class xCt extends Li{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=lvt,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 CCt extends Li{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 RCt=`void main() { gl_Position = vec4( position, 1.0 ); }`,ACt=`uniform sampler2D shadow_pass; uniform vec2 resolution; @@ -3854,7 +3854,7 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function wCt(n,e,t){let i=new DE;const s=new At,r=new At,o=new zt,a=new xCt({depthPacking:cvt}),l=new CCt,c={},d=t.maxTextureSize,u={[Os]:Kn,[Kn]:Os,[zi]:zi},h=new ro({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new At},radius:{value:4}},vertexShader:RCt,fragmentShader:ACt}),m=h.clone();m.defines.HORIZONTAL_PASS=1;const f=new is;f.setAttribute("position",new Gn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Fn(f,h),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=rO;let g=this.type;this.render=function(C,x,w){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||C.length===0)return;const R=n.getRenderTarget(),v=n.getActiveCubeFace(),A=n.getActiveMipmapLevel(),P=n.state;P.setBlending(cr),P.buffers.color.setClear(1,1,1,1),P.buffers.depth.setTest(!0),P.setScissorTest(!1);const U=g!==gs&&this.type===gs,Y=g===gs&&this.type!==gs;for(let L=0,z=C.length;Ld||s.y>d)&&(s.x>d&&(r.x=Math.floor(d/$.x),s.x=r.x*$.x,k.mapSize.x=r.x),s.y>d&&(r.y=Math.floor(d/$.y),s.y=r.y*$.y,k.mapSize.y=r.y)),k.map===null||U===!0||Y===!0){const W=this.type!==gs?{minFilter:gn,magFilter:gn}:{};k.map!==null&&k.map.dispose(),k.map=new so(s.x,s.y,W),k.map.texture.name=B.name+".shadowMap",k.camera.updateProjectionMatrix()}n.setRenderTarget(k.map),n.clear();const K=k.getViewportCount();for(let W=0;W0||x.map&&x.alphaTest>0){const P=v.uuid,U=x.uuid;let Y=c[P];Y===void 0&&(Y={},c[P]=Y);let L=Y[U];L===void 0&&(L=v.clone(),Y[U]=L),v=L}if(v.visible=x.visible,v.wireframe=x.wireframe,R===gs?v.side=x.shadowSide!==null?x.shadowSide:x.side:v.side=x.shadowSide!==null?x.shadowSide:u[x.side],v.alphaMap=x.alphaMap,v.alphaTest=x.alphaTest,v.map=x.map,v.clipShadows=x.clipShadows,v.clippingPlanes=x.clippingPlanes,v.clipIntersection=x.clipIntersection,v.displacementMap=x.displacementMap,v.displacementScale=x.displacementScale,v.displacementBias=x.displacementBias,v.wireframeLinewidth=x.wireframeLinewidth,v.linewidth=x.linewidth,w.isPointLight===!0&&v.isMeshDistanceMaterial===!0){const P=n.properties.get(v);P.light=w}return v}function T(C,x,w,R,v){if(C.visible===!1)return;if(C.layers.test(x.layers)&&(C.isMesh||C.isLine||C.isPoints)&&(C.castShadow||C.receiveShadow&&v===gs)&&(!C.frustumCulled||i.intersectsObject(C))){C.modelViewMatrix.multiplyMatrices(w.matrixWorldInverse,C.matrixWorld);const U=e.update(C),Y=C.material;if(Array.isArray(Y)){const L=U.groups;for(let z=0,B=L.length;z=1):W.indexOf("OpenGL ES")!==-1&&(K=parseFloat(/^OpenGL ES (\d)/.exec(W)[1]),$=K>=2);let le=null,J={};const ee=n.getParameter(n.SCISSOR_BOX),_e=n.getParameter(n.VIEWPORT),ge=new zt().fromArray(ee),Ce=new zt().fromArray(_e);function X(ae,Ye,Pe,Ne){const Ue=new Uint8Array(4),ot=n.createTexture();n.bindTexture(ae,ot),n.texParameteri(ae,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ae,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let bt=0;bt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function S(I,N){return g?new OffscreenCanvas(I,N):Jl("canvas")}function y(I,N,H,de){let Q=1;if((I.width>de||I.height>de)&&(Q=de/Math.max(I.width,I.height)),Q<1||N===!0)if(typeof HTMLImageElement<"u"&&I instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&I instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&I instanceof ImageBitmap){const te=N?du:Math.floor,Re=te(Q*I.width),ve=te(Q*I.height);E===void 0&&(E=S(Re,ve));const Le=H?S(Re,ve):E;return Le.width=Re,Le.height=ve,Le.getContext("2d").drawImage(I,0,0,Re,ve),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+I.width+"x"+I.height+") to ("+Re+"x"+ve+")."),Le}else return"data"in I&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+I.width+"x"+I.height+")."),I;return I}function T(I){return Kg(I.width)&&Kg(I.height)}function C(I){return a?!1:I.wrapS!==di||I.wrapT!==di||I.minFilter!==gn&&I.minFilter!==Yn}function x(I,N){return I.generateMipmaps&&N&&I.minFilter!==gn&&I.minFilter!==Yn}function w(I){n.generateMipmap(I)}function R(I,N,H,de,Q=!1){if(a===!1)return N;if(I!==null){if(n[I]!==void 0)return n[I];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+I+"'")}let te=N;if(N===n.RED&&(H===n.FLOAT&&(te=n.R32F),H===n.HALF_FLOAT&&(te=n.R16F),H===n.UNSIGNED_BYTE&&(te=n.R8)),N===n.RED_INTEGER&&(H===n.UNSIGNED_BYTE&&(te=n.R8UI),H===n.UNSIGNED_SHORT&&(te=n.R16UI),H===n.UNSIGNED_INT&&(te=n.R32UI),H===n.BYTE&&(te=n.R8I),H===n.SHORT&&(te=n.R16I),H===n.INT&&(te=n.R32I)),N===n.RG&&(H===n.FLOAT&&(te=n.RG32F),H===n.HALF_FLOAT&&(te=n.RG16F),H===n.UNSIGNED_BYTE&&(te=n.RG8)),N===n.RGBA){const Re=Q?ou:Pt.getTransfer(de);H===n.FLOAT&&(te=n.RGBA32F),H===n.HALF_FLOAT&&(te=n.RGBA16F),H===n.UNSIGNED_BYTE&&(te=Re===$t?n.SRGB8_ALPHA8:n.RGBA8),H===n.UNSIGNED_SHORT_4_4_4_4&&(te=n.RGBA4),H===n.UNSIGNED_SHORT_5_5_5_1&&(te=n.RGB5_A1)}return(te===n.R16F||te===n.R32F||te===n.RG16F||te===n.RG32F||te===n.RGBA16F||te===n.RGBA32F)&&e.get("EXT_color_buffer_float"),te}function v(I,N,H){return x(I,H)===!0||I.isFramebufferTexture&&I.minFilter!==gn&&I.minFilter!==Yn?Math.log2(Math.max(N.width,N.height))+1:I.mipmaps!==void 0&&I.mipmaps.length>0?I.mipmaps.length:I.isCompressedTexture&&Array.isArray(I.image)?N.mipmaps.length:1}function A(I){return I===gn||I===qg||I===Od?n.NEAREST:n.LINEAR}function P(I){const N=I.target;N.removeEventListener("dispose",P),Y(N),N.isVideoTexture&&f.delete(N)}function U(I){const N=I.target;N.removeEventListener("dispose",U),z(N)}function Y(I){const N=i.get(I);if(N.__webglInit===void 0)return;const H=I.source,de=b.get(H);if(de){const Q=de[N.__cacheKey];Q.usedTimes--,Q.usedTimes===0&&L(I),Object.keys(de).length===0&&b.delete(H)}i.remove(I)}function L(I){const N=i.get(I);n.deleteTexture(N.__webglTexture);const H=I.source,de=b.get(H);delete de[N.__cacheKey],o.memory.textures--}function z(I){const N=I.texture,H=i.get(I),de=i.get(N);if(de.__webglTexture!==void 0&&(n.deleteTexture(de.__webglTexture),o.memory.textures--),I.depthTexture&&I.depthTexture.dispose(),I.isWebGLCubeRenderTarget)for(let Q=0;Q<6;Q++){if(Array.isArray(H.__webglFramebuffer[Q]))for(let te=0;te=l&&console.warn("THREE.WebGLTextures: Trying to use "+I+" texture units while this GPU supports only "+l),B+=1,I}function K(I){const N=[];return N.push(I.wrapS),N.push(I.wrapT),N.push(I.wrapR||0),N.push(I.magFilter),N.push(I.minFilter),N.push(I.anisotropy),N.push(I.internalFormat),N.push(I.format),N.push(I.type),N.push(I.generateMipmaps),N.push(I.premultiplyAlpha),N.push(I.flipY),N.push(I.unpackAlignment),N.push(I.colorSpace),N.join()}function W(I,N){const H=i.get(I);if(I.isVideoTexture&&ie(I),I.isRenderTargetTexture===!1&&I.version>0&&H.__version!==I.version){const de=I.image;if(de===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(de.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Z(H,I,N);return}}t.bindTexture(n.TEXTURE_2D,H.__webglTexture,n.TEXTURE0+N)}function le(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){Z(H,I,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,H.__webglTexture,n.TEXTURE0+N)}function J(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){Z(H,I,N);return}t.bindTexture(n.TEXTURE_3D,H.__webglTexture,n.TEXTURE0+N)}function ee(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){be(H,I,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,H.__webglTexture,n.TEXTURE0+N)}const _e={[ba]:n.REPEAT,[di]:n.CLAMP_TO_EDGE,[ru]:n.MIRRORED_REPEAT},ge={[gn]:n.NEAREST,[qg]:n.NEAREST_MIPMAP_NEAREST,[Od]:n.NEAREST_MIPMAP_LINEAR,[Yn]:n.LINEAR,[aO]:n.LINEAR_MIPMAP_NEAREST,[io]:n.LINEAR_MIPMAP_LINEAR},Ce={[uvt]:n.NEVER,[gvt]:n.ALWAYS,[pvt]:n.LESS,[gO]:n.LEQUAL,[_vt]:n.EQUAL,[mvt]:n.GEQUAL,[hvt]:n.GREATER,[fvt]:n.NOTEQUAL};function X(I,N,H){if(H?(n.texParameteri(I,n.TEXTURE_WRAP_S,_e[N.wrapS]),n.texParameteri(I,n.TEXTURE_WRAP_T,_e[N.wrapT]),(I===n.TEXTURE_3D||I===n.TEXTURE_2D_ARRAY)&&n.texParameteri(I,n.TEXTURE_WRAP_R,_e[N.wrapR]),n.texParameteri(I,n.TEXTURE_MAG_FILTER,ge[N.magFilter]),n.texParameteri(I,n.TEXTURE_MIN_FILTER,ge[N.minFilter])):(n.texParameteri(I,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(I,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(I===n.TEXTURE_3D||I===n.TEXTURE_2D_ARRAY)&&n.texParameteri(I,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==di||N.wrapT!==di)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(I,n.TEXTURE_MAG_FILTER,A(N.magFilter)),n.texParameteri(I,n.TEXTURE_MIN_FILTER,A(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Yn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(I,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(I,n.TEXTURE_COMPARE_FUNC,Ce[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const de=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==Od&&N.minFilter!==io||N.type===Ss&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Xl&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(I,de.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function ue(I,N){let H=!1;I.__webglInit===void 0&&(I.__webglInit=!0,N.addEventListener("dispose",P));const de=N.source;let Q=b.get(de);Q===void 0&&(Q={},b.set(de,Q));const te=K(N);if(te!==I.__cacheKey){Q[te]===void 0&&(Q[te]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,H=!0),Q[te].usedTimes++;const Re=Q[I.__cacheKey];Re!==void 0&&(Q[I.__cacheKey].usedTimes--,Re.usedTimes===0&&L(N)),I.__cacheKey=te,I.__webglTexture=Q[te].texture}return H}function Z(I,N,H){let de=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(de=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(de=n.TEXTURE_3D);const Q=ue(I,N),te=N.source;t.bindTexture(de,I.__webglTexture,n.TEXTURE0+H);const Re=i.get(te);if(te.version!==Re.__version||Q===!0){t.activeTexture(n.TEXTURE0+H);const ve=Pt.getPrimaries(Pt.workingColorSpace),Le=N.colorSpace===pi?null:Pt.getPrimaries(N.colorSpace),Ve=N.colorSpace===pi||ve===Le?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ve);const it=C(N)&&T(N.image)===!1;let De=y(N.image,it,!1,d);De=re(N,De);const st=T(De)||a,Xe=r.convert(N.format,N.colorSpace);let Ge=r.convert(N.type),Ze=R(N.internalFormat,Xe,Ge,N.colorSpace,N.isVideoTexture);X(de,N,st);let We;const ht=N.mipmaps,ae=a&&N.isVideoTexture!==!0&&Ze!==hO,Ye=Re.__version===void 0||Q===!0,Pe=v(N,De,st);if(N.isDepthTexture)Ze=n.DEPTH_COMPONENT,a?N.type===Ss?Ze=n.DEPTH_COMPONENT32F:N.type===rr?Ze=n.DEPTH_COMPONENT24:N.type===jr?Ze=n.DEPTH24_STENCIL8:Ze=n.DEPTH_COMPONENT16:N.type===Ss&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===Qr&&Ze===n.DEPTH_COMPONENT&&N.type!==NE&&N.type!==rr&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=rr,Ge=r.convert(N.type)),N.format===Ea&&Ze===n.DEPTH_COMPONENT&&(Ze=n.DEPTH_STENCIL,N.type!==jr&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=jr,Ge=r.convert(N.type))),Ye&&(ae?t.texStorage2D(n.TEXTURE_2D,1,Ze,De.width,De.height):t.texImage2D(n.TEXTURE_2D,0,Ze,De.width,De.height,0,Xe,Ge,null));else if(N.isDataTexture)if(ht.length>0&&st){ae&&Ye&&t.texStorage2D(n.TEXTURE_2D,Pe,Ze,ht[0].width,ht[0].height);for(let Ne=0,Ue=ht.length;Ne>=1,Ue>>=1}}else if(ht.length>0&&st){ae&&Ye&&t.texStorage2D(n.TEXTURE_2D,Pe,Ze,ht[0].width,ht[0].height);for(let Ne=0,Ue=ht.length;Ne0&&Ye++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ye,We,De[0].width,De[0].height));for(let Ne=0;Ne<6;Ne++)if(it){ht?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,De[Ne].width,De[Ne].height,Ge,Ze,De[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,We,De[Ne].width,De[Ne].height,0,Ge,Ze,De[Ne].data);for(let Ue=0;Ue>te),De=Math.max(1,N.height>>te);Q===n.TEXTURE_3D||Q===n.TEXTURE_2D_ARRAY?t.texImage3D(Q,te,Le,it,De,N.depth,0,Re,ve,null):t.texImage2D(Q,te,Le,it,De,0,Re,ve,null)}t.bindFramebuffer(n.FRAMEBUFFER,I),ce(N)?h.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,de,Q,i.get(H).__webglTexture,0,V(N)):(Q===n.TEXTURE_2D||Q>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&Q<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,de,Q,i.get(H).__webglTexture,te),t.bindFramebuffer(n.FRAMEBUFFER,null)}function M(I,N,H){if(n.bindRenderbuffer(n.RENDERBUFFER,I),N.depthBuffer&&!N.stencilBuffer){let de=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(H||ce(N)){const Q=N.depthTexture;Q&&Q.isDepthTexture&&(Q.type===Ss?de=n.DEPTH_COMPONENT32F:Q.type===rr&&(de=n.DEPTH_COMPONENT24));const te=V(N);ce(N)?h.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,te,de,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,te,de,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,de,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,I)}else if(N.depthBuffer&&N.stencilBuffer){const de=V(N);H&&ce(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,de,n.DEPTH24_STENCIL8,N.width,N.height):ce(N)?h.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,de,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,I)}else{const de=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let Q=0;Q0){H.__webglFramebuffer[ve]=[];for(let Le=0;Le0){H.__webglFramebuffer=[];for(let ve=0;ve0&&ce(I)===!1){const ve=te?N:[N];H.__webglMultisampledFramebuffer=n.createFramebuffer(),H.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,H.__webglMultisampledFramebuffer);for(let Le=0;Le0)for(let Le=0;Le0)for(let Le=0;Le0&&ce(I)===!1){const N=I.isWebGLMultipleRenderTargets?I.texture:[I.texture],H=I.width,de=I.height;let Q=n.COLOR_BUFFER_BIT;const te=[],Re=I.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,ve=i.get(I),Le=I.isWebGLMultipleRenderTargets===!0;if(Le)for(let Ve=0;Ve0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function ie(I){const N=o.render.frame;f.get(I)!==N&&(f.set(I,N),I.update())}function re(I,N){const H=I.colorSpace,de=I.format,Q=I.type;return I.isCompressedTexture===!0||I.isVideoTexture===!0||I.format===Wg||H!==Cn&&H!==pi&&(Pt.getTransfer(H)===$t?a===!1?e.has("EXT_sRGB")===!0&&de===ui?(I.format=Wg,I.minFilter=Yn,I.generateMipmaps=!1):N=EO.sRGBToLinear(N):(de!==ui||Q!==ur)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",H)),N}this.allocateTextureUnit=$,this.resetTextureUnits=k,this.setTexture2D=W,this.setTexture2DArray=le,this.setTexture3D=J,this.setTextureCube=ee,this.rebindTextures=oe,this.setupRenderTarget=ne,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=we,this.setupDepthRenderbuffer=q,this.setupFrameBufferTexture=Oe,this.useMultisampledRTT=ce}function ICt(n,e,t){const i=t.isWebGL2;function s(r,o=pi){let a;const l=Pt.getTransfer(o);if(r===ur)return n.UNSIGNED_BYTE;if(r===cO)return n.UNSIGNED_SHORT_4_4_4_4;if(r===dO)return n.UNSIGNED_SHORT_5_5_5_1;if(r===ZSt)return n.BYTE;if(r===JSt)return n.SHORT;if(r===NE)return n.UNSIGNED_SHORT;if(r===lO)return n.INT;if(r===rr)return n.UNSIGNED_INT;if(r===Ss)return n.FLOAT;if(r===Xl)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===evt)return n.ALPHA;if(r===ui)return n.RGBA;if(r===tvt)return n.LUMINANCE;if(r===nvt)return n.LUMINANCE_ALPHA;if(r===Qr)return n.DEPTH_COMPONENT;if(r===Ea)return n.DEPTH_STENCIL;if(r===Wg)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===ivt)return n.RED;if(r===uO)return n.RED_INTEGER;if(r===svt)return n.RG;if(r===pO)return n.RG_INTEGER;if(r===_O)return n.RGBA_INTEGER;if(r===Sm||r===vm||r===ym||r===Tm)if(l===$t)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Sm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===vm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===ym)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Tm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Sm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===vm)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===ym)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Tm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===yC||r===TC||r===xC||r===CC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===yC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===TC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===xC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===CC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===hO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===RC||r===AC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===RC)return l===$t?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===AC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===wC||r===NC||r===OC||r===IC||r===MC||r===DC||r===LC||r===kC||r===PC||r===UC||r===FC||r===BC||r===GC||r===VC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===wC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===NC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===OC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===IC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===MC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===DC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===LC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===kC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===PC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===UC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===FC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===BC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===GC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===VC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===xm||r===HC||r===zC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===xm)return l===$t?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===HC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===zC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===rvt||r===qC||r===YC||r===$C)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===xm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===qC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===YC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===$C)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===jr?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class MCt extends Un{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class qr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const DCt={type:"move"};class Km{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new qr,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 qr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new pe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new pe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new qr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new pe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new pe),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const E of e.hand.values()){const b=t.getJointPose(E,i),g=this._getHandJoint(c,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=c.joints["index-finger-tip"],u=c.joints["thumb-tip"],h=d.position.distanceTo(u.position),m=.02,f=.005;c.inputState.pinching&&h>m+f?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=m-f&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(DCt)))}return a!==null&&(a.visible=s!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new qr;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class LCt extends Va{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",l=1,c=null,d=null,u=null,h=null,m=null,f=null;const E=t.getContextAttributes();let b=null,g=null;const S=[],y=[],T=new At;let C=null;const x=new Un;x.layers.enable(1),x.viewport=new zt;const w=new Un;w.layers.enable(2),w.viewport=new zt;const R=[x,w],v=new MCt;v.layers.enable(1),v.layers.enable(2);let A=null,P=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getTargetRaySpace()},this.getControllerGrip=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getGripSpace()},this.getHand=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getHandSpace()};function U(ee){const _e=y.indexOf(ee.inputSource);if(_e===-1)return;const ge=S[_e];ge!==void 0&&(ge.update(ee.inputSource,ee.frame,c||o),ge.dispatchEvent({type:ee.type,data:ee.inputSource}))}function Y(){s.removeEventListener("select",U),s.removeEventListener("selectstart",U),s.removeEventListener("selectend",U),s.removeEventListener("squeeze",U),s.removeEventListener("squeezestart",U),s.removeEventListener("squeezeend",U),s.removeEventListener("end",Y),s.removeEventListener("inputsourceschange",L);for(let ee=0;ee=0&&(y[Ce]=null,S[Ce].disconnect(ge))}for(let _e=0;_e=y.length){y.push(ge),Ce=ue;break}else if(y[ue]===null){y[ue]=ge,Ce=ue;break}if(Ce===-1)break}const X=S[Ce];X&&X.connect(ge)}}const z=new pe,B=new pe;function k(ee,_e,ge){z.setFromMatrixPosition(_e.matrixWorld),B.setFromMatrixPosition(ge.matrixWorld);const Ce=z.distanceTo(B),X=_e.projectionMatrix.elements,ue=ge.projectionMatrix.elements,Z=X[14]/(X[10]-1),be=X[14]/(X[10]+1),Oe=(X[9]+1)/X[5],M=(X[9]-1)/X[5],G=(X[8]-1)/X[0],q=(ue[8]+1)/ue[0],oe=Z*G,ne=Z*q,ye=Ce/(-G+q),we=ye*-G;_e.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(we),ee.translateZ(ye),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const V=Z+ye,ce=be+ye,ie=oe-we,re=ne+(Ce-we),I=Oe*be/ce*V,N=M*be/ce*V;ee.projectionMatrix.makePerspective(ie,re,I,N,V,ce),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function $(ee,_e){_e===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(_e.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(s===null)return;v.near=w.near=x.near=ee.near,v.far=w.far=x.far=ee.far,(A!==v.near||P!==v.far)&&(s.updateRenderState({depthNear:v.near,depthFar:v.far}),A=v.near,P=v.far);const _e=ee.parent,ge=v.cameras;$(v,_e);for(let Ce=0;Ce0&&(b.alphaTest.value=g.alphaTest);const S=e.get(g).envMap;if(S&&(b.envMap.value=S,b.flipEnvMap.value=S.isCubeTexture&&S.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const y=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*y,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,S,y){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*S,b.scale.value=y*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function c(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function u(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function h(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function m(b,g,S){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Kn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=S.texture,b.transmissionSamplerSize.value.set(S.width,S.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function f(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const S=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(S.matrixWorld),b.nearDistance.value=S.shadow.camera.near,b.farDistance.value=S.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function PCt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(S,y){const T=y.program;i.uniformBlockBinding(S,T)}function c(S,y){let T=s[S.id];T===void 0&&(f(S),T=d(S),s[S.id]=T,S.addEventListener("dispose",b));const C=y.program;i.updateUBOMapping(S,C);const x=e.render.frame;r[S.id]!==x&&(h(S),r[S.id]=x)}function d(S){const y=u();S.__bindingPointIndex=y;const T=n.createBuffer(),C=S.__size,x=S.usage;return n.bindBuffer(n.UNIFORM_BUFFER,T),n.bufferData(n.UNIFORM_BUFFER,C,x),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,y,T),T}function u(){for(let S=0;S0){x=T%C;const U=C-x;x!==0&&U-A.boundary<0&&(T+=C-x,v.__offset=T)}T+=A.storage}return x=T%C,x>0&&(T+=C-x),S.__size=T,S.__cache={},this}function E(S){const y={boundary:0,storage:0};return typeof S=="number"?(y.boundary=4,y.storage=4):S.isVector2?(y.boundary=8,y.storage=8):S.isVector3||S.isColor?(y.boundary=16,y.storage=12):S.isVector4?(y.boundary=16,y.storage=16):S.isMatrix3?(y.boundary=48,y.storage=48):S.isMatrix4?(y.boundary=64,y.storage=64):S.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",S),y}function b(S){const y=S.target;y.removeEventListener("dispose",b);const T=o.indexOf(y.__bindingPointIndex);o.splice(T,1),n.deleteBuffer(s[y.id]),delete s[y.id],delete r[y.id]}function g(){for(const S in s)n.deleteBuffer(s[S]);o=[],s={},r={}}return{bind:l,update:c,dispose:g}}class PO{constructor(e={}){const{canvas:t=Dvt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:u=!1}=e;this.isWebGLRenderer=!0;let h;i!==null?h=i.getContextAttributes().alpha:h=o;const m=new Uint32Array(4),f=new Int32Array(4);let E=null,b=null;const g=[],S=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=dr,this.toneMappingExposure=1;const y=this;let T=!1,C=0,x=0,w=null,R=-1,v=null;const A=new zt,P=new zt;let U=null;const Y=new pt(0);let L=0,z=t.width,B=t.height,k=1,$=null,K=null;const W=new zt(0,0,z,B),le=new zt(0,0,z,B);let J=!1;const ee=new DE;let _e=!1,ge=!1,Ce=null;const X=new Tt,ue=new At,Z=new pe,be={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Oe(){return w===null?k:1}let M=i;function G(F,me){for(let Te=0;Te{function Ke(){if(Ae.forEach(function(Je){we.get(Je).currentProgram.isReady()&&Ae.delete(Je)}),Ae.size===0){Se(F);return}setTimeout(Ke,10)}q.get("KHR_parallel_shader_compile")!==null?Ke():setTimeout(Ke,10)})};let bt=null;function tn(F){bt&&bt(F)}function un(){Qt.stop()}function kt(){Qt.start()}const Qt=new NO;Qt.setAnimationLoop(tn),typeof self<"u"&&Qt.setContext(self),this.setAnimationLoop=function(F){bt=F,We.setAnimationLoop(F),F===null?Qt.stop():Qt.start()},We.addEventListener("sessionstart",un),We.addEventListener("sessionend",kt),this.render=function(F,me){if(me!==void 0&&me.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(T===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),me.parent===null&&me.matrixWorldAutoUpdate===!0&&me.updateMatrixWorld(),We.enabled===!0&&We.isPresenting===!0&&(We.cameraAutoUpdate===!0&&We.updateCamera(me),me=We.getCamera()),F.isScene===!0&&F.onBeforeRender(y,F,me,w),b=te.get(F,S.length),b.init(),S.push(b),X.multiplyMatrices(me.projectionMatrix,me.matrixWorldInverse),ee.setFromProjectionMatrix(X),ge=this.localClippingEnabled,_e=Re.init(this.clippingPlanes,ge),E=Q.get(F,g.length),E.init(),g.push(E),Vn(F,me,0,y.sortObjects),E.finish(),y.sortObjects===!0&&E.sort($,K),this.info.render.frame++,_e===!0&&Re.beginShadows();const Te=b.state.shadowsArray;if(ve.render(Te,F,me),_e===!0&&Re.endShadows(),this.info.autoReset===!0&&this.info.reset(),Le.render(E,F),b.setupLights(y._useLegacyLights),me.isArrayCamera){const Ae=me.cameras;for(let Se=0,Ke=Ae.length;Se0?b=S[S.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function Vn(F,me,Te,Ae){if(F.visible===!1)return;if(F.layers.test(me.layers)){if(F.isGroup)Te=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(me);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||ee.intersectsSprite(F)){Ae&&Z.setFromMatrixPosition(F.matrixWorld).applyMatrix4(X);const Je=N.update(F),rt=F.material;rt.visible&&E.push(F,Je,rt,Te,Z.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||ee.intersectsObject(F))){const Je=N.update(F),rt=F.material;if(Ae&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),Z.copy(F.boundingSphere.center)):(Je.boundingSphere===null&&Je.computeBoundingSphere(),Z.copy(Je.boundingSphere.center)),Z.applyMatrix4(F.matrixWorld).applyMatrix4(X)),Array.isArray(rt)){const at=Je.groups;for(let ft=0,ct=at.length;ft0&&Wa(Se,Ke,me,Te),Ae&&ne.viewport(A.copy(Ae)),Se.length>0&&rs(Se,me,Te),Ke.length>0&&rs(Ke,me,Te),Je.length>0&&rs(Je,me,Te),ne.buffers.depth.setTest(!0),ne.buffers.depth.setMask(!0),ne.buffers.color.setMask(!0),ne.setPolygonOffset(!1)}function Wa(F,me,Te,Ae){if((Te.isScene===!0?Te.overrideMaterial:null)!==null)return;const Ke=oe.isWebGL2;Ce===null&&(Ce=new so(1,1,{generateMipmaps:!0,type:q.has("EXT_color_buffer_half_float")?Xl:ur,minFilter:io,samples:Ke?4:0})),y.getDrawingBufferSize(ue),Ke?Ce.setSize(ue.x,ue.y):Ce.setSize(du(ue.x),du(ue.y));const Je=y.getRenderTarget();y.setRenderTarget(Ce),y.getClearColor(Y),L=y.getClearAlpha(),L<1&&y.setClearColor(16777215,.5),y.clear();const rt=y.toneMapping;y.toneMapping=dr,rs(F,Te,Ae),V.updateMultisampleRenderTarget(Ce),V.updateRenderTargetMipmap(Ce);let at=!1;for(let ft=0,ct=me.length;ft0),_t=!!Te.morphAttributes.position,qt=!!Te.morphAttributes.normal,En=!!Te.morphAttributes.color;let Xt=dr;Ae.toneMapped&&(w===null||w.isXRRenderTarget===!0)&&(Xt=y.toneMapping);const Rn=Te.morphAttributes.position||Te.morphAttributes.normal||Te.morphAttributes.color,Yt=Rn!==void 0?Rn.length:0,Et=we.get(Ae),ja=b.state.lights;if(_e===!0&&(ge===!0||F!==v)){const Hn=F===v&&Ae.id===R;Re.setState(Ae,F,Hn)}let Kt=!1;Ae.version===Et.__version?(Et.needsLights&&Et.lightsStateVersion!==ja.state.version||Et.outputColorSpace!==rt||Se.isBatchedMesh&&Et.batching===!1||!Se.isBatchedMesh&&Et.batching===!0||Se.isInstancedMesh&&Et.instancing===!1||!Se.isInstancedMesh&&Et.instancing===!0||Se.isSkinnedMesh&&Et.skinning===!1||!Se.isSkinnedMesh&&Et.skinning===!0||Se.isInstancedMesh&&Et.instancingColor===!0&&Se.instanceColor===null||Se.isInstancedMesh&&Et.instancingColor===!1&&Se.instanceColor!==null||Et.envMap!==at||Ae.fog===!0&&Et.fog!==Ke||Et.numClippingPlanes!==void 0&&(Et.numClippingPlanes!==Re.numPlanes||Et.numIntersection!==Re.numIntersection)||Et.vertexAlphas!==ft||Et.vertexTangents!==ct||Et.morphTargets!==_t||Et.morphNormals!==qt||Et.morphColors!==En||Et.toneMapping!==Xt||oe.isWebGL2===!0&&Et.morphTargetsCount!==Yt)&&(Kt=!0):(Kt=!0,Et.__version=Ae.version);let as=Et.currentProgram;Kt===!0&&(as=os(Ae,me,Se));let Ec=!1,yr=!1,Qa=!1;const fn=as.getUniforms(),ls=Et.uniforms;if(ne.useProgram(as.program)&&(Ec=!0,yr=!0,Qa=!0),Ae.id!==R&&(R=Ae.id,yr=!0),Ec||v!==F){fn.setValue(M,"projectionMatrix",F.projectionMatrix),fn.setValue(M,"viewMatrix",F.matrixWorldInverse);const Hn=fn.map.cameraPosition;Hn!==void 0&&Hn.setValue(M,Z.setFromMatrixPosition(F.matrixWorld)),oe.logarithmicDepthBuffer&&fn.setValue(M,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Ae.isMeshPhongMaterial||Ae.isMeshToonMaterial||Ae.isMeshLambertMaterial||Ae.isMeshBasicMaterial||Ae.isMeshStandardMaterial||Ae.isShaderMaterial)&&fn.setValue(M,"isOrthographic",F.isOrthographicCamera===!0),v!==F&&(v=F,yr=!0,Qa=!0)}if(Se.isSkinnedMesh){fn.setOptional(M,Se,"bindMatrix"),fn.setOptional(M,Se,"bindMatrixInverse");const Hn=Se.skeleton;Hn&&(oe.floatVertexTextures?(Hn.boneTexture===null&&Hn.computeBoneTexture(),fn.setValue(M,"boneTexture",Hn.boneTexture,V)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Se.isBatchedMesh&&(fn.setOptional(M,Se,"batchingTexture"),fn.setValue(M,"batchingTexture",Se._matricesTexture,V));const Xa=Te.morphAttributes;if((Xa.position!==void 0||Xa.normal!==void 0||Xa.color!==void 0&&oe.isWebGL2===!0)&&Ve.update(Se,Te,as),(yr||Et.receiveShadow!==Se.receiveShadow)&&(Et.receiveShadow=Se.receiveShadow,fn.setValue(M,"receiveShadow",Se.receiveShadow)),Ae.isMeshGouraudMaterial&&Ae.envMap!==null&&(ls.envMap.value=at,ls.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),yr&&(fn.setValue(M,"toneMappingExposure",y.toneMappingExposure),Et.needsLights&&vr(ls,Qa),Ke&&Ae.fog===!0&&de.refreshFogUniforms(ls,Ke),de.refreshMaterialUniforms(ls,Ae,k,B,Ce),Id.upload(M,Sr(Et),ls,V)),Ae.isShaderMaterial&&Ae.uniformsNeedUpdate===!0&&(Id.upload(M,Sr(Et),ls,V),Ae.uniformsNeedUpdate=!1),Ae.isSpriteMaterial&&fn.setValue(M,"center",Se.center),fn.setValue(M,"modelViewMatrix",Se.modelViewMatrix),fn.setValue(M,"normalMatrix",Se.normalMatrix),fn.setValue(M,"modelMatrix",Se.matrixWorld),Ae.isShaderMaterial||Ae.isRawShaderMaterial){const Hn=Ae.uniformsGroups;for(let Za=0,rp=Hn.length;Za0&&V.useMultisampledRTT(F)===!1?Se=we.get(F).__webglMultisampledFramebuffer:Array.isArray(ct)?Se=ct[Te]:Se=ct,A.copy(F.viewport),P.copy(F.scissor),U=F.scissorTest}else A.copy(W).multiplyScalar(k).floor(),P.copy(le).multiplyScalar(k).floor(),U=J;if(ne.bindFramebuffer(M.FRAMEBUFFER,Se)&&oe.drawBuffers&&Ae&&ne.drawBuffers(F,Se),ne.viewport(A),ne.scissor(P),ne.setScissorTest(U),Ke){const at=we.get(F.texture);M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_CUBE_MAP_POSITIVE_X+me,at.__webglTexture,Te)}else if(Je){const at=we.get(F.texture),ft=me||0;M.framebufferTextureLayer(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,at.__webglTexture,Te||0,ft)}R=-1},this.readRenderTargetPixels=function(F,me,Te,Ae,Se,Ke,Je){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let rt=we.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&Je!==void 0&&(rt=rt[Je]),rt){ne.bindFramebuffer(M.FRAMEBUFFER,rt);try{const at=F.texture,ft=at.format,ct=at.type;if(ft!==ui&&st.convert(ft)!==M.getParameter(M.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const _t=ct===Xl&&(q.has("EXT_color_buffer_half_float")||oe.isWebGL2&&q.has("EXT_color_buffer_float"));if(ct!==ur&&st.convert(ct)!==M.getParameter(M.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ct===Ss&&(oe.isWebGL2||q.has("OES_texture_float")||q.has("WEBGL_color_buffer_float")))&&!_t){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}me>=0&&me<=F.width-Ae&&Te>=0&&Te<=F.height-Se&&M.readPixels(me,Te,Ae,Se,st.convert(ft),st.convert(ct),Ke)}finally{const at=w!==null?we.get(w).__webglFramebuffer:null;ne.bindFramebuffer(M.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(F,me,Te=0){const Ae=Math.pow(2,-Te),Se=Math.floor(me.image.width*Ae),Ke=Math.floor(me.image.height*Ae);V.setTexture2D(me,0),M.copyTexSubImage2D(M.TEXTURE_2D,Te,0,0,F.x,F.y,Se,Ke),ne.unbindTexture()},this.copyTextureToTexture=function(F,me,Te,Ae=0){const Se=me.image.width,Ke=me.image.height,Je=st.convert(Te.format),rt=st.convert(Te.type);V.setTexture2D(Te,0),M.pixelStorei(M.UNPACK_FLIP_Y_WEBGL,Te.flipY),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Te.premultiplyAlpha),M.pixelStorei(M.UNPACK_ALIGNMENT,Te.unpackAlignment),me.isDataTexture?M.texSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,Se,Ke,Je,rt,me.image.data):me.isCompressedTexture?M.compressedTexSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,me.mipmaps[0].width,me.mipmaps[0].height,Je,me.mipmaps[0].data):M.texSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,Je,rt,me.image),Ae===0&&Te.generateMipmaps&&M.generateMipmap(M.TEXTURE_2D),ne.unbindTexture()},this.copyTextureToTexture3D=function(F,me,Te,Ae,Se=0){if(y.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Ke=F.max.x-F.min.x+1,Je=F.max.y-F.min.y+1,rt=F.max.z-F.min.z+1,at=st.convert(Ae.format),ft=st.convert(Ae.type);let ct;if(Ae.isData3DTexture)V.setTexture3D(Ae,0),ct=M.TEXTURE_3D;else if(Ae.isDataArrayTexture)V.setTexture2DArray(Ae,0),ct=M.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}M.pixelStorei(M.UNPACK_FLIP_Y_WEBGL,Ae.flipY),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ae.premultiplyAlpha),M.pixelStorei(M.UNPACK_ALIGNMENT,Ae.unpackAlignment);const _t=M.getParameter(M.UNPACK_ROW_LENGTH),qt=M.getParameter(M.UNPACK_IMAGE_HEIGHT),En=M.getParameter(M.UNPACK_SKIP_PIXELS),Xt=M.getParameter(M.UNPACK_SKIP_ROWS),Rn=M.getParameter(M.UNPACK_SKIP_IMAGES),Yt=Te.isCompressedTexture?Te.mipmaps[0]:Te.image;M.pixelStorei(M.UNPACK_ROW_LENGTH,Yt.width),M.pixelStorei(M.UNPACK_IMAGE_HEIGHT,Yt.height),M.pixelStorei(M.UNPACK_SKIP_PIXELS,F.min.x),M.pixelStorei(M.UNPACK_SKIP_ROWS,F.min.y),M.pixelStorei(M.UNPACK_SKIP_IMAGES,F.min.z),Te.isDataTexture||Te.isData3DTexture?M.texSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,ft,Yt.data):Te.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),M.compressedTexSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,Yt.data)):M.texSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,ft,Yt),M.pixelStorei(M.UNPACK_ROW_LENGTH,_t),M.pixelStorei(M.UNPACK_IMAGE_HEIGHT,qt),M.pixelStorei(M.UNPACK_SKIP_PIXELS,En),M.pixelStorei(M.UNPACK_SKIP_ROWS,Xt),M.pixelStorei(M.UNPACK_SKIP_IMAGES,Rn),Se===0&&Ae.generateMipmaps&&M.generateMipmap(ct),ne.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?V.setTextureCube(F,0):F.isData3DTexture?V.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?V.setTexture2DArray(F,0):V.setTexture2D(F,0),ne.unbindTexture()},this.resetState=function(){C=0,x=0,w=null,ne.reset(),Xe.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return vs}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===IE?"display-p3":"srgb",t.unpackColorSpace=Pt.workingColorSpace===Zu?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?Xr:mO}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Xr?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class UCt extends PO{}UCt.prototype.isWebGL1Renderer=!0;class FCt extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class BCt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=$g,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Di()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;sl)continue;h.applyMatrix4(this.matrixWorld);const R=e.ray.origin.distanceTo(h);Re.far||t.push({distance:R,point:u.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),S=Math.min(b.count,o.start+o.count);for(let y=g,T=S-1;yl)continue;h.applyMatrix4(this.matrixWorld);const x=e.ray.origin.distanceTo(h);xe.far||t.push({distance:x,point:u.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;rs.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class GE extends Li{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=OE,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 Us extends GE{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 On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Z1 extends Li{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=OE,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=wE,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 fd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function jCt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function QCt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function J1(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let l=0;l!==e;++l)s[o++]=n[a+l]}return s}function GO(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class mc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e=r)){const a=t[1];e=r)break t}o=i,i=0;break n}break e}for(;i>>1;et;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=i[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(s!==void 0&&jCt(s))for(let a=0,l=s.length;a!==l;++a){const c=s[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===Cm,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*i,l=o*i,c=0;c!==i;++c)t[l+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}ss.prototype.TimeBufferType=Float32Array;ss.prototype.ValueBufferType=Float32Array;ss.prototype.DefaultInterpolation=Sa;class za extends ss{}za.prototype.ValueTypeName="bool";za.prototype.ValueBufferType=Array;za.prototype.DefaultInterpolation=Zl;za.prototype.InterpolantFactoryMethodLinear=void 0;za.prototype.InterpolantFactoryMethodSmooth=void 0;class VO extends ss{}VO.prototype.ValueTypeName="color";class Ta extends ss{}Ta.prototype.ValueTypeName="number";class e1t extends mc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(i-t)/(s-t);let c=e*a;for(let d=c+a;c!==d;c+=4)br.slerpFlat(r,0,o,c-a,o,c,l);return r}}class oo extends ss{InterpolantFactoryMethodLinear(e){return new e1t(this.times,this.values,this.getValueSize(),e)}}oo.prototype.ValueTypeName="quaternion";oo.prototype.DefaultInterpolation=Sa;oo.prototype.InterpolantFactoryMethodSmooth=void 0;class qa extends ss{}qa.prototype.ValueTypeName="string";qa.prototype.ValueBufferType=Array;qa.prototype.DefaultInterpolation=Zl;qa.prototype.InterpolantFactoryMethodLinear=void 0;qa.prototype.InterpolantFactoryMethodSmooth=void 0;class xa extends ss{}xa.prototype.ValueTypeName="vector";class t1t{constructor(e,t=-1,i,s=ovt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=Di(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(i1t(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(ss.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a1){const u=d[1];let h=s[u];h||(s[u]=h=[]),h.push(c)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(u,h,m,f,E){if(m.length!==0){const b=[],g=[];GO(m,b,g,f),b.length!==0&&E.push(new u(h,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let u=0;u{t&&t(r),this.manager.itemEnd(e)},0),r;if(fs[e]!==void 0){fs[e].push({onLoad:t,onProgress:i,onError:s});return}fs[e]=[],fs[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const d=fs[e],u=c.body.getReader(),h=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),m=h?parseInt(h):0,f=m!==0;let E=0;const b=new ReadableStream({start(g){S();function S(){u.read().then(({done:y,value:T})=>{if(y)g.close();else{E+=T.byteLength;const C=new ProgressEvent("progress",{lengthComputable:f,loaded:E,total:m});for(let x=0,w=d.length;x{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),h=u&&u[1]?u[1].toLowerCase():void 0,m=new TextDecoder(h);return c.arrayBuffer().then(f=>m.decode(f))}}}).then(c=>{Ca.add(e,c);const d=fs[e];delete fs[e];for(let u=0,h=d.length;u{const d=fs[e];if(d===void 0)throw this.manager.itemError(e),c;delete fs[e];for(let u=0,h=d.length;u{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class a1t extends Ya{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ca.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Jl("img");function l(){d(),Ca.add(e,this),t&&t(this),r.manager.itemEnd(e)}function c(u){d(),s&&s(u),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class zO extends Ya{constructor(e){super(e)}load(e,t,i,s){const r=new xn,o=new a1t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class np extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Zm=new Tt,eR=new pe,tR=new pe;class VE{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 Tt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new DE,this._frameExtents=new At(1,1),this._viewportCount=1,this._viewports=[new zt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;eR.setFromMatrixPosition(e.matrixWorld),t.position.copy(eR),tR.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(tR),t.updateMatrixWorld(),Zm.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Zm),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(Zm)}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 l1t extends VE{constructor(){super(new Un(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=va*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class c1t extends np{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new l1t}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const nR=new Tt,_l=new pe,Jm=new pe;class d1t extends VE{constructor(){super(new Un(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new At(4,2),this._viewportCount=6,this._viewports=[new zt(2,1,1,1),new zt(0,1,1,1),new zt(3,1,1,1),new zt(1,1,1,1),new zt(3,0,1,1),new zt(1,0,1,1)],this._cubeDirections=[new pe(1,0,0),new pe(-1,0,0),new pe(0,0,1),new pe(0,0,-1),new pe(0,1,0),new pe(0,-1,0)],this._cubeUps=[new pe(0,1,0),new pe(0,1,0),new pe(0,1,0),new pe(0,1,0),new pe(0,0,1),new pe(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),_l.setFromMatrixPosition(e.matrixWorld),i.position.copy(_l),Jm.copy(i.position),Jm.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(Jm),i.updateMatrixWorld(),s.makeTranslation(-_l.x,-_l.y,-_l.z),nR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(nR)}}class u1t extends np{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new d1t}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class p1t extends VE{constructor(){super(new kE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class qO extends np{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new p1t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class _1t extends np{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Ml{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ca.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(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(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){Ca.add(e,l),t&&t(l),r.manager.itemEnd(e)}).catch(function(l){s&&s(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const HE="\\[\\]\\.:\\/",f1t=new RegExp("["+HE+"]","g"),zE="[^"+HE+"]",m1t="[^"+HE.replace("\\.","")+"]",g1t=/((?:WC+[\/:])*)/.source.replace("WC",zE),b1t=/(WCOD+)?/.source.replace("WCOD",m1t),E1t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",zE),S1t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",zE),v1t=new RegExp("^"+g1t+b1t+E1t+S1t+"$"),y1t=["material","materials","bones","map"];class T1t{constructor(e,t,i){const s=i||Ft.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class Ft{constructor(e,t,i){this.path=t,this.parsedPath=i||Ft.parseTrackName(t),this.node=Ft.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new Ft.Composite(e,t,i):new Ft(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(f1t,"")}static parseTrackName(e){const t=v1t.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);y1t.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o=2.0 are supported."));return}const c=new nRt(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d=0&&a[u]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+u+'".')}}c.setExtensions(o),c.setPlugins(a),c.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function C1t(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const 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 R1t{constructor(e){this.parser=e,this.name=Rt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class B1t{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const c=i.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class G1t{constructor(e){this.parser=e,this.name=Rt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const c=i.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class V1t{constructor(e){this.name=Rt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,c=s.byteLength||0,d=s.count,u=s.byteStride,h=new Uint8Array(a,l,c);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,u,h,s.mode,s.filter).then(function(m){return m.buffer}):o.ready.then(function(){const m=new ArrayBuffer(d*u);return o.decodeGltfBuffer(new Uint8Array(m),d,u,h,s.mode,s.filter),m})})}else return null}}class H1t{constructor(e){this.name=Rt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const c of s.primitives)if(c.mode!==li.TRIANGLES&&c.mode!==li.TRIANGLE_STRIP&&c.mode!==li.TRIANGLE_FAN&&c.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const c in o)a.push(this.parser.getDependency("accessor",o[c]).then(d=>(l[c]=d,l[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(c=>{const d=c.pop(),u=d.isGroup?d.children:[d],h=c[0].count,m=[];for(const f of u){const E=new Tt,b=new pe,g=new br,S=new pe(1,1,1),y=new YCt(f.geometry,f.material,h);for(let T=0;T0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const tRt=new Tt;class nRt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new C1t,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 i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new zO(this.options.manager):this.textureLoader=new h1t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new HO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=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([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return Ir(r,a,s),nr(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[c,d]of o.children.entries())r(d,a.children[c])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&b.setY(v,x[w*l+1]),l>=3&&b.setZ(v,x[w*l+2]),l>=4&&b.setW(v,x[w*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(t,i).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const h=(r.samplers||{})[o.sampler]||{};return d.magFilter=rR[h.magFilter]||Yn,d.minFilter=rR[h.minFilter]||io,d.wrapS=oR[h.wrapS]||ba,d.wrapT=oR[h.wrapT]||ba,s.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=c,c}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(u=>u.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",c=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(u){c=!0;const h=new Blob([u],{type:o.mimeType});return l=a.createObjectURL(h),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(u){return new Promise(function(h,m){let f=h;t.isImageBitmapLoader===!0&&(f=function(E){const b=new xn(E);b.needsUpdate=!0,h(b)}),t.load(Ml.resolveURL(u,r.path),f,void 0,m)})}).then(function(u){return c===!0&&a.revokeObjectURL(l),u.userData.mimeType=o.mimeType||eRt(o.uri),u}).catch(function(u){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),u});return this.sourceCache[e]=d,d}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Rt.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Rt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Rt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new BO,Li.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new FO,Li.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return GE}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},c=[];if(l[Rt.KHR_MATERIALS_UNLIT]){const u=s[Rt.KHR_MATERIALS_UNLIT];o=u.getMaterialType(),c.push(u.extendParams(a,r,t))}else{const u=r.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(u.baseColorFactor)){const h=u.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],Cn),a.opacity=h[3]}u.baseColorTexture!==void 0&&c.push(t.assignTexture(a,"map",u.baseColorTexture,nn)),a.metalness=u.metallicFactor!==void 0?u.metallicFactor:1,a.roughness=u.roughnessFactor!==void 0?u.roughnessFactor:1,u.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(a,"metalnessMap",u.metallicRoughnessTexture)),c.push(t.assignTexture(a,"roughnessMap",u.metallicRoughnessTexture))),o=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=zi);const d=r.alphaMode||tg.OPAQUE;if(d===tg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===tg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==or&&(c.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new At(1,1),r.normalTexture.scale!==void 0)){const u=r.normalTexture.scale;a.normalScale.set(u,u)}if(r.occlusionTexture!==void 0&&o!==or&&(c.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==or){const u=r.emissiveFactor;a.emissive=new pt().setRGB(u[0],u[1],u[2],Cn)}return r.emissiveTexture!==void 0&&o!==or&&c.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,nn)),Promise.all(c).then(function(){const u=new o(a);return r.name&&(u.name=r.name),nr(u,r),t.associations.set(u,{materials:e}),r.extensions&&Ir(s,u,r),u})}createUniqueName(e){const t=Ft.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Rt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return aR(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&Z1t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),nr(g,r),b.extensions&&Ir(s,g,b),t.assignFinalMaterial(g),u.push(g)}for(let m=0,f=u.length;m1?d=new qr:c.length===1?d=c[0]:d=new Jt,d!==c[0])for(let u=0,h=c.length;u{const u=new Map;for(const[h,m]of s.associations)(h instanceof Li||h instanceof xn)&&u.set(h,m);return d.traverse(h=>{const m=s.associations.get(h);m!=null&&u.set(h,m)}),u};return s.associations=c(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];Ws[r.path]===Ws.weights?e.traverse(function(h){h.morphTargetInfluences&&l.push(h.name?h.name:h.uuid)}):l.push(a);let c;switch(Ws[r.path]){case Ws.weights:c=Ta;break;case Ws.rotation:c=oo;break;case Ws.position:case Ws.scale:c=xa;break;default:switch(i.itemSize){case 1:c=Ta;break;case 2:case 3:default:c=xa;break}break}const d=s.interpolation!==void 0?j1t[s.interpolation]:Sa,u=this._getArrayFromAccessor(i);for(let h=0,m=l.length;h{Be.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,$e.emit("stop_webcam_video_stream"),Fe(()=>{Be.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Be.replace(),$e.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},rRt=["src"],oRt=["src"],aRt={class:"controls"},lRt=_("i",{"data-feather":"video"},null,-1),cRt=[lRt],dRt=_("i",{"data-feather":"video"},null,-1),uRt=[dRt],pRt={key:2};function _Rt(n,e,t,i,s,r){return O(),D("div",{class:"floating-frame bg-white",style:Zt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[_("div",{class:"handle",onMousedown:e[0]||(e[0]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(O(),D("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,rRt)):j("",!0),s.isVideoActive&&s.imageDataUrl==null?(O(),D("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,oRt)):j("",!0),_("div",aRt,[s.isVideoActive?j("",!0):(O(),D("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))},cRt)),s.isVideoActive?(O(),D("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))},uRt)):j("",!0),s.isVideoActive?(O(),D("span",pRt,"FPS: "+fe(s.frameRate),1)):j("",!0)])],36)}const hRt=gt(sRt,[["render",_Rt]]);const fRt={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(){$e.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Fe(()=>{Be.replace()})},stopAudioStream(){$e.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Fe(()=>{Be.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Be.replace(),$e.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},mRt=["src"],gRt={class:"controls"},bRt=_("i",{"data-feather":"mic"},null,-1),ERt=[bRt],SRt=_("i",{"data-feather":"mic"},null,-1),vRt=[SRt],yRt={key:2};function TRt(n,e,t,i,s,r){return O(),D("div",{class:"floating-frame bg-white",style:Zt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[_("div",{class:"handle",onMousedown:e[0]||(e[0]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(O(),D("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,mRt)):j("",!0),_("div",gRt,[s.isAudioActive?j("",!0):(O(),D("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))},ERt)),s.isAudioActive?(O(),D("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))},vRt)):j("",!0),s.isAudioActive?(O(),D("span",yRt,"FPS: "+fe(s.frameRate),1)):j("",!0)])],36)}const xRt=gt(fRt,[["render",TRt]]);const CRt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:hRt,AudioFrame:xRt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Fe(()=>{Be.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 FCt,this.camera=new Un(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new PO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new pr,e=new Z1({color:65280});this.cube=new Fn(n,e),this.scene.add(this.cube);const t=new _1t(4210752),i=new qO(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new x1t().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new pr,t=new zO().load(n),i=new or({map:t});this.cube=new Fn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new pr,e=new Z1({color:65280});this.cube=new Fn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},RRt={ref:"webglContainer"},ARt={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"},wRt={key:0,class:"text-center"},NRt={key:1,class:"text-center"},ORt={class:"floating-frame2"},IRt=["innerHTML"];function MRt(n,e,t,i,s,r){const o=ut("VideoFrame"),a=ut("AudioFrame");return O(),D(qe,null,[_("div",RRt,null,512),_("div",ARt,[!s.activePersonality||!s.activePersonality.scene_path?(O(),D("div",wRt," Personality does not have a 3d avatar. ")):j("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(O(),D("div",NRt," Personality does not have an avatar. ")):j("",!0),_("div",ORt,[_("div",{innerHTML:n.htmlContent},null,8,IRt)])]),Ie(o,{ref:"video_frame"},null,512),Ie(a,{ref:"audio_frame"},null,512)],64)}const DRt=gt(CRt,[["render",MRt]]);let md;const LRt=new Uint8Array(16);function kRt(){if(!md&&(md=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!md))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return md(LRt)}const Sn=[];for(let n=0;n<256;++n)Sn.push((n+256).toString(16).slice(1));function PRt(n,e=0){return Sn[n[e+0]]+Sn[n[e+1]]+Sn[n[e+2]]+Sn[n[e+3]]+"-"+Sn[n[e+4]]+Sn[n[e+5]]+"-"+Sn[n[e+6]]+Sn[n[e+7]]+"-"+Sn[n[e+8]]+Sn[n[e+9]]+"-"+Sn[n[e+10]]+Sn[n[e+11]]+Sn[n[e+12]]+Sn[n[e+13]]+Sn[n[e+14]]+Sn[n[e+15]]}const URt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lR={randomUUID:URt};function Cs(n,e,t){if(lR.randomUUID&&!e&&!n)return lR.randomUUID();n=n||{};const i=n.random||(n.rng||kRt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return PRt(i)}class Zr{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. +}`;function wCt(n,e,t){let i=new DE;const s=new Rt,r=new Rt,o=new zt,a=new xCt({depthPacking:cvt}),l=new CCt,c={},d=t.maxTextureSize,u={[Os]:Kn,[Kn]:Os,[zi]:zi},h=new ro({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:RCt,fragmentShader:ACt}),m=h.clone();m.defines.HORIZONTAL_PASS=1;const f=new is;f.setAttribute("position",new Gn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const E=new Fn(f,h),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=rO;let g=this.type;this.render=function(C,x,w){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||C.length===0)return;const R=n.getRenderTarget(),v=n.getActiveCubeFace(),A=n.getActiveMipmapLevel(),P=n.state;P.setBlending(cr),P.buffers.color.setClear(1,1,1,1),P.buffers.depth.setTest(!0),P.setScissorTest(!1);const U=g!==gs&&this.type===gs,Y=g===gs&&this.type!==gs;for(let L=0,z=C.length;Ld||s.y>d)&&(s.x>d&&(r.x=Math.floor(d/$.x),s.x=r.x*$.x,k.mapSize.x=r.x),s.y>d&&(r.y=Math.floor(d/$.y),s.y=r.y*$.y,k.mapSize.y=r.y)),k.map===null||U===!0||Y===!0){const W=this.type!==gs?{minFilter:gn,magFilter:gn}:{};k.map!==null&&k.map.dispose(),k.map=new so(s.x,s.y,W),k.map.texture.name=B.name+".shadowMap",k.camera.updateProjectionMatrix()}n.setRenderTarget(k.map),n.clear();const K=k.getViewportCount();for(let W=0;W0||x.map&&x.alphaTest>0){const P=v.uuid,U=x.uuid;let Y=c[P];Y===void 0&&(Y={},c[P]=Y);let L=Y[U];L===void 0&&(L=v.clone(),Y[U]=L),v=L}if(v.visible=x.visible,v.wireframe=x.wireframe,R===gs?v.side=x.shadowSide!==null?x.shadowSide:x.side:v.side=x.shadowSide!==null?x.shadowSide:u[x.side],v.alphaMap=x.alphaMap,v.alphaTest=x.alphaTest,v.map=x.map,v.clipShadows=x.clipShadows,v.clippingPlanes=x.clippingPlanes,v.clipIntersection=x.clipIntersection,v.displacementMap=x.displacementMap,v.displacementScale=x.displacementScale,v.displacementBias=x.displacementBias,v.wireframeLinewidth=x.wireframeLinewidth,v.linewidth=x.linewidth,w.isPointLight===!0&&v.isMeshDistanceMaterial===!0){const P=n.properties.get(v);P.light=w}return v}function T(C,x,w,R,v){if(C.visible===!1)return;if(C.layers.test(x.layers)&&(C.isMesh||C.isLine||C.isPoints)&&(C.castShadow||C.receiveShadow&&v===gs)&&(!C.frustumCulled||i.intersectsObject(C))){C.modelViewMatrix.multiplyMatrices(w.matrixWorldInverse,C.matrixWorld);const U=e.update(C),Y=C.material;if(Array.isArray(Y)){const L=U.groups;for(let z=0,B=L.length;z=1):W.indexOf("OpenGL ES")!==-1&&(K=parseFloat(/^OpenGL ES (\d)/.exec(W)[1]),$=K>=2);let le=null,J={};const ee=n.getParameter(n.SCISSOR_BOX),_e=n.getParameter(n.VIEWPORT),ge=new zt().fromArray(ee),Ce=new zt().fromArray(_e);function X(ae,Ye,Pe,Ne){const Ue=new Uint8Array(4),ot=n.createTexture();n.bindTexture(ae,ot),n.texParameteri(ae,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(ae,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let bt=0;bt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let E;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function S(I,N){return g?new OffscreenCanvas(I,N):Jl("canvas")}function y(I,N,H,de){let Q=1;if((I.width>de||I.height>de)&&(Q=de/Math.max(I.width,I.height)),Q<1||N===!0)if(typeof HTMLImageElement<"u"&&I instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&I instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&I instanceof ImageBitmap){const te=N?du:Math.floor,Re=te(Q*I.width),ve=te(Q*I.height);E===void 0&&(E=S(Re,ve));const Le=H?S(Re,ve):E;return Le.width=Re,Le.height=ve,Le.getContext("2d").drawImage(I,0,0,Re,ve),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+I.width+"x"+I.height+") to ("+Re+"x"+ve+")."),Le}else return"data"in I&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+I.width+"x"+I.height+")."),I;return I}function T(I){return Kg(I.width)&&Kg(I.height)}function C(I){return a?!1:I.wrapS!==di||I.wrapT!==di||I.minFilter!==gn&&I.minFilter!==Yn}function x(I,N){return I.generateMipmaps&&N&&I.minFilter!==gn&&I.minFilter!==Yn}function w(I){n.generateMipmap(I)}function R(I,N,H,de,Q=!1){if(a===!1)return N;if(I!==null){if(n[I]!==void 0)return n[I];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+I+"'")}let te=N;if(N===n.RED&&(H===n.FLOAT&&(te=n.R32F),H===n.HALF_FLOAT&&(te=n.R16F),H===n.UNSIGNED_BYTE&&(te=n.R8)),N===n.RED_INTEGER&&(H===n.UNSIGNED_BYTE&&(te=n.R8UI),H===n.UNSIGNED_SHORT&&(te=n.R16UI),H===n.UNSIGNED_INT&&(te=n.R32UI),H===n.BYTE&&(te=n.R8I),H===n.SHORT&&(te=n.R16I),H===n.INT&&(te=n.R32I)),N===n.RG&&(H===n.FLOAT&&(te=n.RG32F),H===n.HALF_FLOAT&&(te=n.RG16F),H===n.UNSIGNED_BYTE&&(te=n.RG8)),N===n.RGBA){const Re=Q?ou:Pt.getTransfer(de);H===n.FLOAT&&(te=n.RGBA32F),H===n.HALF_FLOAT&&(te=n.RGBA16F),H===n.UNSIGNED_BYTE&&(te=Re===$t?n.SRGB8_ALPHA8:n.RGBA8),H===n.UNSIGNED_SHORT_4_4_4_4&&(te=n.RGBA4),H===n.UNSIGNED_SHORT_5_5_5_1&&(te=n.RGB5_A1)}return(te===n.R16F||te===n.R32F||te===n.RG16F||te===n.RG32F||te===n.RGBA16F||te===n.RGBA32F)&&e.get("EXT_color_buffer_float"),te}function v(I,N,H){return x(I,H)===!0||I.isFramebufferTexture&&I.minFilter!==gn&&I.minFilter!==Yn?Math.log2(Math.max(N.width,N.height))+1:I.mipmaps!==void 0&&I.mipmaps.length>0?I.mipmaps.length:I.isCompressedTexture&&Array.isArray(I.image)?N.mipmaps.length:1}function A(I){return I===gn||I===qg||I===Od?n.NEAREST:n.LINEAR}function P(I){const N=I.target;N.removeEventListener("dispose",P),Y(N),N.isVideoTexture&&f.delete(N)}function U(I){const N=I.target;N.removeEventListener("dispose",U),z(N)}function Y(I){const N=i.get(I);if(N.__webglInit===void 0)return;const H=I.source,de=b.get(H);if(de){const Q=de[N.__cacheKey];Q.usedTimes--,Q.usedTimes===0&&L(I),Object.keys(de).length===0&&b.delete(H)}i.remove(I)}function L(I){const N=i.get(I);n.deleteTexture(N.__webglTexture);const H=I.source,de=b.get(H);delete de[N.__cacheKey],o.memory.textures--}function z(I){const N=I.texture,H=i.get(I),de=i.get(N);if(de.__webglTexture!==void 0&&(n.deleteTexture(de.__webglTexture),o.memory.textures--),I.depthTexture&&I.depthTexture.dispose(),I.isWebGLCubeRenderTarget)for(let Q=0;Q<6;Q++){if(Array.isArray(H.__webglFramebuffer[Q]))for(let te=0;te=l&&console.warn("THREE.WebGLTextures: Trying to use "+I+" texture units while this GPU supports only "+l),B+=1,I}function K(I){const N=[];return N.push(I.wrapS),N.push(I.wrapT),N.push(I.wrapR||0),N.push(I.magFilter),N.push(I.minFilter),N.push(I.anisotropy),N.push(I.internalFormat),N.push(I.format),N.push(I.type),N.push(I.generateMipmaps),N.push(I.premultiplyAlpha),N.push(I.flipY),N.push(I.unpackAlignment),N.push(I.colorSpace),N.join()}function W(I,N){const H=i.get(I);if(I.isVideoTexture&&ie(I),I.isRenderTargetTexture===!1&&I.version>0&&H.__version!==I.version){const de=I.image;if(de===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(de.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{Z(H,I,N);return}}t.bindTexture(n.TEXTURE_2D,H.__webglTexture,n.TEXTURE0+N)}function le(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){Z(H,I,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,H.__webglTexture,n.TEXTURE0+N)}function J(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){Z(H,I,N);return}t.bindTexture(n.TEXTURE_3D,H.__webglTexture,n.TEXTURE0+N)}function ee(I,N){const H=i.get(I);if(I.version>0&&H.__version!==I.version){be(H,I,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,H.__webglTexture,n.TEXTURE0+N)}const _e={[ba]:n.REPEAT,[di]:n.CLAMP_TO_EDGE,[ru]:n.MIRRORED_REPEAT},ge={[gn]:n.NEAREST,[qg]:n.NEAREST_MIPMAP_NEAREST,[Od]:n.NEAREST_MIPMAP_LINEAR,[Yn]:n.LINEAR,[aO]:n.LINEAR_MIPMAP_NEAREST,[io]:n.LINEAR_MIPMAP_LINEAR},Ce={[uvt]:n.NEVER,[gvt]:n.ALWAYS,[pvt]:n.LESS,[gO]:n.LEQUAL,[_vt]:n.EQUAL,[mvt]:n.GEQUAL,[hvt]:n.GREATER,[fvt]:n.NOTEQUAL};function X(I,N,H){if(H?(n.texParameteri(I,n.TEXTURE_WRAP_S,_e[N.wrapS]),n.texParameteri(I,n.TEXTURE_WRAP_T,_e[N.wrapT]),(I===n.TEXTURE_3D||I===n.TEXTURE_2D_ARRAY)&&n.texParameteri(I,n.TEXTURE_WRAP_R,_e[N.wrapR]),n.texParameteri(I,n.TEXTURE_MAG_FILTER,ge[N.magFilter]),n.texParameteri(I,n.TEXTURE_MIN_FILTER,ge[N.minFilter])):(n.texParameteri(I,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(I,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(I===n.TEXTURE_3D||I===n.TEXTURE_2D_ARRAY)&&n.texParameteri(I,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==di||N.wrapT!==di)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(I,n.TEXTURE_MAG_FILTER,A(N.magFilter)),n.texParameteri(I,n.TEXTURE_MIN_FILTER,A(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Yn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(I,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(I,n.TEXTURE_COMPARE_FUNC,Ce[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const de=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==Od&&N.minFilter!==io||N.type===Ss&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Xl&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(I,de.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function ue(I,N){let H=!1;I.__webglInit===void 0&&(I.__webglInit=!0,N.addEventListener("dispose",P));const de=N.source;let Q=b.get(de);Q===void 0&&(Q={},b.set(de,Q));const te=K(N);if(te!==I.__cacheKey){Q[te]===void 0&&(Q[te]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,H=!0),Q[te].usedTimes++;const Re=Q[I.__cacheKey];Re!==void 0&&(Q[I.__cacheKey].usedTimes--,Re.usedTimes===0&&L(N)),I.__cacheKey=te,I.__webglTexture=Q[te].texture}return H}function Z(I,N,H){let de=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(de=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(de=n.TEXTURE_3D);const Q=ue(I,N),te=N.source;t.bindTexture(de,I.__webglTexture,n.TEXTURE0+H);const Re=i.get(te);if(te.version!==Re.__version||Q===!0){t.activeTexture(n.TEXTURE0+H);const ve=Pt.getPrimaries(Pt.workingColorSpace),Le=N.colorSpace===pi?null:Pt.getPrimaries(N.colorSpace),Ve=N.colorSpace===pi||ve===Le?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ve);const it=C(N)&&T(N.image)===!1;let De=y(N.image,it,!1,d);De=re(N,De);const st=T(De)||a,Xe=r.convert(N.format,N.colorSpace);let Ge=r.convert(N.type),Ze=R(N.internalFormat,Xe,Ge,N.colorSpace,N.isVideoTexture);X(de,N,st);let We;const ht=N.mipmaps,ae=a&&N.isVideoTexture!==!0&&Ze!==hO,Ye=Re.__version===void 0||Q===!0,Pe=v(N,De,st);if(N.isDepthTexture)Ze=n.DEPTH_COMPONENT,a?N.type===Ss?Ze=n.DEPTH_COMPONENT32F:N.type===rr?Ze=n.DEPTH_COMPONENT24:N.type===jr?Ze=n.DEPTH24_STENCIL8:Ze=n.DEPTH_COMPONENT16:N.type===Ss&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===Qr&&Ze===n.DEPTH_COMPONENT&&N.type!==NE&&N.type!==rr&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=rr,Ge=r.convert(N.type)),N.format===Ea&&Ze===n.DEPTH_COMPONENT&&(Ze=n.DEPTH_STENCIL,N.type!==jr&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=jr,Ge=r.convert(N.type))),Ye&&(ae?t.texStorage2D(n.TEXTURE_2D,1,Ze,De.width,De.height):t.texImage2D(n.TEXTURE_2D,0,Ze,De.width,De.height,0,Xe,Ge,null));else if(N.isDataTexture)if(ht.length>0&&st){ae&&Ye&&t.texStorage2D(n.TEXTURE_2D,Pe,Ze,ht[0].width,ht[0].height);for(let Ne=0,Ue=ht.length;Ne>=1,Ue>>=1}}else if(ht.length>0&&st){ae&&Ye&&t.texStorage2D(n.TEXTURE_2D,Pe,Ze,ht[0].width,ht[0].height);for(let Ne=0,Ue=ht.length;Ne0&&Ye++,t.texStorage2D(n.TEXTURE_CUBE_MAP,Ye,We,De[0].width,De[0].height));for(let Ne=0;Ne<6;Ne++)if(it){ht?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,De[Ne].width,De[Ne].height,Ge,Ze,De[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,We,De[Ne].width,De[Ne].height,0,Ge,Ze,De[Ne].data);for(let Ue=0;Ue>te),De=Math.max(1,N.height>>te);Q===n.TEXTURE_3D||Q===n.TEXTURE_2D_ARRAY?t.texImage3D(Q,te,Le,it,De,N.depth,0,Re,ve,null):t.texImage2D(Q,te,Le,it,De,0,Re,ve,null)}t.bindFramebuffer(n.FRAMEBUFFER,I),ce(N)?h.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,de,Q,i.get(H).__webglTexture,0,V(N)):(Q===n.TEXTURE_2D||Q>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&Q<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,de,Q,i.get(H).__webglTexture,te),t.bindFramebuffer(n.FRAMEBUFFER,null)}function M(I,N,H){if(n.bindRenderbuffer(n.RENDERBUFFER,I),N.depthBuffer&&!N.stencilBuffer){let de=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(H||ce(N)){const Q=N.depthTexture;Q&&Q.isDepthTexture&&(Q.type===Ss?de=n.DEPTH_COMPONENT32F:Q.type===rr&&(de=n.DEPTH_COMPONENT24));const te=V(N);ce(N)?h.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,te,de,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,te,de,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,de,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,I)}else if(N.depthBuffer&&N.stencilBuffer){const de=V(N);H&&ce(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,de,n.DEPTH24_STENCIL8,N.width,N.height):ce(N)?h.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,de,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,I)}else{const de=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let Q=0;Q0){H.__webglFramebuffer[ve]=[];for(let Le=0;Le0){H.__webglFramebuffer=[];for(let ve=0;ve0&&ce(I)===!1){const ve=te?N:[N];H.__webglMultisampledFramebuffer=n.createFramebuffer(),H.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,H.__webglMultisampledFramebuffer);for(let Le=0;Le0)for(let Le=0;Le0)for(let Le=0;Le0&&ce(I)===!1){const N=I.isWebGLMultipleRenderTargets?I.texture:[I.texture],H=I.width,de=I.height;let Q=n.COLOR_BUFFER_BIT;const te=[],Re=I.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,ve=i.get(I),Le=I.isWebGLMultipleRenderTargets===!0;if(Le)for(let Ve=0;Ve0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function ie(I){const N=o.render.frame;f.get(I)!==N&&(f.set(I,N),I.update())}function re(I,N){const H=I.colorSpace,de=I.format,Q=I.type;return I.isCompressedTexture===!0||I.isVideoTexture===!0||I.format===Wg||H!==Cn&&H!==pi&&(Pt.getTransfer(H)===$t?a===!1?e.has("EXT_sRGB")===!0&&de===ui?(I.format=Wg,I.minFilter=Yn,I.generateMipmaps=!1):N=EO.sRGBToLinear(N):(de!==ui||Q!==ur)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",H)),N}this.allocateTextureUnit=$,this.resetTextureUnits=k,this.setTexture2D=W,this.setTexture2DArray=le,this.setTexture3D=J,this.setTextureCube=ee,this.rebindTextures=oe,this.setupRenderTarget=ne,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=we,this.setupDepthRenderbuffer=q,this.setupFrameBufferTexture=Oe,this.useMultisampledRTT=ce}function ICt(n,e,t){const i=t.isWebGL2;function s(r,o=pi){let a;const l=Pt.getTransfer(o);if(r===ur)return n.UNSIGNED_BYTE;if(r===cO)return n.UNSIGNED_SHORT_4_4_4_4;if(r===dO)return n.UNSIGNED_SHORT_5_5_5_1;if(r===ZSt)return n.BYTE;if(r===JSt)return n.SHORT;if(r===NE)return n.UNSIGNED_SHORT;if(r===lO)return n.INT;if(r===rr)return n.UNSIGNED_INT;if(r===Ss)return n.FLOAT;if(r===Xl)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===evt)return n.ALPHA;if(r===ui)return n.RGBA;if(r===tvt)return n.LUMINANCE;if(r===nvt)return n.LUMINANCE_ALPHA;if(r===Qr)return n.DEPTH_COMPONENT;if(r===Ea)return n.DEPTH_STENCIL;if(r===Wg)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===ivt)return n.RED;if(r===uO)return n.RED_INTEGER;if(r===svt)return n.RG;if(r===pO)return n.RG_INTEGER;if(r===_O)return n.RGBA_INTEGER;if(r===Sm||r===vm||r===ym||r===Tm)if(l===$t)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===Sm)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===vm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===ym)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Tm)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===Sm)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===vm)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===ym)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Tm)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===yC||r===TC||r===xC||r===CC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===yC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===TC)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===xC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===CC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===hO)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===RC||r===AC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===RC)return l===$t?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===AC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===wC||r===NC||r===OC||r===IC||r===MC||r===DC||r===LC||r===kC||r===PC||r===UC||r===FC||r===BC||r===GC||r===VC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===wC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===NC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===OC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===IC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===MC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===DC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===LC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===kC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===PC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===UC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===FC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===BC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===GC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===VC)return l===$t?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===xm||r===HC||r===zC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===xm)return l===$t?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===HC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===zC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===rvt||r===qC||r===YC||r===$C)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===xm)return a.COMPRESSED_RED_RGTC1_EXT;if(r===qC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===YC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===$C)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===jr?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class MCt extends Un{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class qr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const DCt={type:"move"};class Km{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new qr,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 qr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new pe,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new pe),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new qr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new pe,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new pe),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const E of e.hand.values()){const b=t.getJointPose(E,i),g=this._getHandJoint(c,E);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=c.joints["index-finger-tip"],u=c.joints["thumb-tip"],h=d.position.distanceTo(u.position),m=.02,f=.005;c.inputState.pinching&&h>m+f?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&h<=m-f&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(DCt)))}return a!==null&&(a.visible=s!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new qr;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class LCt extends Va{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",l=1,c=null,d=null,u=null,h=null,m=null,f=null;const E=t.getContextAttributes();let b=null,g=null;const S=[],y=[],T=new Rt;let C=null;const x=new Un;x.layers.enable(1),x.viewport=new zt;const w=new Un;w.layers.enable(2),w.viewport=new zt;const R=[x,w],v=new MCt;v.layers.enable(1),v.layers.enable(2);let A=null,P=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getTargetRaySpace()},this.getControllerGrip=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getGripSpace()},this.getHand=function(ee){let _e=S[ee];return _e===void 0&&(_e=new Km,S[ee]=_e),_e.getHandSpace()};function U(ee){const _e=y.indexOf(ee.inputSource);if(_e===-1)return;const ge=S[_e];ge!==void 0&&(ge.update(ee.inputSource,ee.frame,c||o),ge.dispatchEvent({type:ee.type,data:ee.inputSource}))}function Y(){s.removeEventListener("select",U),s.removeEventListener("selectstart",U),s.removeEventListener("selectend",U),s.removeEventListener("squeeze",U),s.removeEventListener("squeezestart",U),s.removeEventListener("squeezeend",U),s.removeEventListener("end",Y),s.removeEventListener("inputsourceschange",L);for(let ee=0;ee=0&&(y[Ce]=null,S[Ce].disconnect(ge))}for(let _e=0;_e=y.length){y.push(ge),Ce=ue;break}else if(y[ue]===null){y[ue]=ge,Ce=ue;break}if(Ce===-1)break}const X=S[Ce];X&&X.connect(ge)}}const z=new pe,B=new pe;function k(ee,_e,ge){z.setFromMatrixPosition(_e.matrixWorld),B.setFromMatrixPosition(ge.matrixWorld);const Ce=z.distanceTo(B),X=_e.projectionMatrix.elements,ue=ge.projectionMatrix.elements,Z=X[14]/(X[10]-1),be=X[14]/(X[10]+1),Oe=(X[9]+1)/X[5],M=(X[9]-1)/X[5],G=(X[8]-1)/X[0],q=(ue[8]+1)/ue[0],oe=Z*G,ne=Z*q,ye=Ce/(-G+q),we=ye*-G;_e.matrixWorld.decompose(ee.position,ee.quaternion,ee.scale),ee.translateX(we),ee.translateZ(ye),ee.matrixWorld.compose(ee.position,ee.quaternion,ee.scale),ee.matrixWorldInverse.copy(ee.matrixWorld).invert();const V=Z+ye,ce=be+ye,ie=oe-we,re=ne+(Ce-we),I=Oe*be/ce*V,N=M*be/ce*V;ee.projectionMatrix.makePerspective(ie,re,I,N,V,ce),ee.projectionMatrixInverse.copy(ee.projectionMatrix).invert()}function $(ee,_e){_e===null?ee.matrixWorld.copy(ee.matrix):ee.matrixWorld.multiplyMatrices(_e.matrixWorld,ee.matrix),ee.matrixWorldInverse.copy(ee.matrixWorld).invert()}this.updateCamera=function(ee){if(s===null)return;v.near=w.near=x.near=ee.near,v.far=w.far=x.far=ee.far,(A!==v.near||P!==v.far)&&(s.updateRenderState({depthNear:v.near,depthFar:v.far}),A=v.near,P=v.far);const _e=ee.parent,ge=v.cameras;$(v,_e);for(let Ce=0;Ce0&&(b.alphaTest.value=g.alphaTest);const S=e.get(g).envMap;if(S&&(b.envMap.value=S,b.flipEnvMap.value=S.isCubeTexture&&S.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const y=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*y,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,S,y){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*S,b.scale.value=y*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function c(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function u(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function h(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function m(b,g,S){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Kn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=S.texture,b.transmissionSamplerSize.value.set(S.width,S.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function f(b,g){g.matcap&&(b.matcap.value=g.matcap)}function E(b,g){const S=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(S.matrixWorld),b.nearDistance.value=S.shadow.camera.near,b.farDistance.value=S.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function PCt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(S,y){const T=y.program;i.uniformBlockBinding(S,T)}function c(S,y){let T=s[S.id];T===void 0&&(f(S),T=d(S),s[S.id]=T,S.addEventListener("dispose",b));const C=y.program;i.updateUBOMapping(S,C);const x=e.render.frame;r[S.id]!==x&&(h(S),r[S.id]=x)}function d(S){const y=u();S.__bindingPointIndex=y;const T=n.createBuffer(),C=S.__size,x=S.usage;return n.bindBuffer(n.UNIFORM_BUFFER,T),n.bufferData(n.UNIFORM_BUFFER,C,x),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,y,T),T}function u(){for(let S=0;S0){x=T%C;const U=C-x;x!==0&&U-A.boundary<0&&(T+=C-x,v.__offset=T)}T+=A.storage}return x=T%C,x>0&&(T+=C-x),S.__size=T,S.__cache={},this}function E(S){const y={boundary:0,storage:0};return typeof S=="number"?(y.boundary=4,y.storage=4):S.isVector2?(y.boundary=8,y.storage=8):S.isVector3||S.isColor?(y.boundary=16,y.storage=12):S.isVector4?(y.boundary=16,y.storage=16):S.isMatrix3?(y.boundary=48,y.storage=48):S.isMatrix4?(y.boundary=64,y.storage=64):S.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",S),y}function b(S){const y=S.target;y.removeEventListener("dispose",b);const T=o.indexOf(y.__bindingPointIndex);o.splice(T,1),n.deleteBuffer(s[y.id]),delete s[y.id],delete r[y.id]}function g(){for(const S in s)n.deleteBuffer(s[S]);o=[],s={},r={}}return{bind:l,update:c,dispose:g}}class PO{constructor(e={}){const{canvas:t=Dvt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:u=!1}=e;this.isWebGLRenderer=!0;let h;i!==null?h=i.getContextAttributes().alpha:h=o;const m=new Uint32Array(4),f=new Int32Array(4);let E=null,b=null;const g=[],S=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=dr,this.toneMappingExposure=1;const y=this;let T=!1,C=0,x=0,w=null,R=-1,v=null;const A=new zt,P=new zt;let U=null;const Y=new pt(0);let L=0,z=t.width,B=t.height,k=1,$=null,K=null;const W=new zt(0,0,z,B),le=new zt(0,0,z,B);let J=!1;const ee=new DE;let _e=!1,ge=!1,Ce=null;const X=new Tt,ue=new Rt,Z=new pe,be={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Oe(){return w===null?k:1}let M=i;function G(F,me){for(let Te=0;Te{function Ke(){if(Ae.forEach(function(Je){we.get(Je).currentProgram.isReady()&&Ae.delete(Je)}),Ae.size===0){Se(F);return}setTimeout(Ke,10)}q.get("KHR_parallel_shader_compile")!==null?Ke():setTimeout(Ke,10)})};let bt=null;function tn(F){bt&&bt(F)}function un(){Qt.stop()}function kt(){Qt.start()}const Qt=new NO;Qt.setAnimationLoop(tn),typeof self<"u"&&Qt.setContext(self),this.setAnimationLoop=function(F){bt=F,We.setAnimationLoop(F),F===null?Qt.stop():Qt.start()},We.addEventListener("sessionstart",un),We.addEventListener("sessionend",kt),this.render=function(F,me){if(me!==void 0&&me.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(T===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),me.parent===null&&me.matrixWorldAutoUpdate===!0&&me.updateMatrixWorld(),We.enabled===!0&&We.isPresenting===!0&&(We.cameraAutoUpdate===!0&&We.updateCamera(me),me=We.getCamera()),F.isScene===!0&&F.onBeforeRender(y,F,me,w),b=te.get(F,S.length),b.init(),S.push(b),X.multiplyMatrices(me.projectionMatrix,me.matrixWorldInverse),ee.setFromProjectionMatrix(X),ge=this.localClippingEnabled,_e=Re.init(this.clippingPlanes,ge),E=Q.get(F,g.length),E.init(),g.push(E),Vn(F,me,0,y.sortObjects),E.finish(),y.sortObjects===!0&&E.sort($,K),this.info.render.frame++,_e===!0&&Re.beginShadows();const Te=b.state.shadowsArray;if(ve.render(Te,F,me),_e===!0&&Re.endShadows(),this.info.autoReset===!0&&this.info.reset(),Le.render(E,F),b.setupLights(y._useLegacyLights),me.isArrayCamera){const Ae=me.cameras;for(let Se=0,Ke=Ae.length;Se0?b=S[S.length-1]:b=null,g.pop(),g.length>0?E=g[g.length-1]:E=null};function Vn(F,me,Te,Ae){if(F.visible===!1)return;if(F.layers.test(me.layers)){if(F.isGroup)Te=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(me);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||ee.intersectsSprite(F)){Ae&&Z.setFromMatrixPosition(F.matrixWorld).applyMatrix4(X);const Je=N.update(F),rt=F.material;rt.visible&&E.push(F,Je,rt,Te,Z.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||ee.intersectsObject(F))){const Je=N.update(F),rt=F.material;if(Ae&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),Z.copy(F.boundingSphere.center)):(Je.boundingSphere===null&&Je.computeBoundingSphere(),Z.copy(Je.boundingSphere.center)),Z.applyMatrix4(F.matrixWorld).applyMatrix4(X)),Array.isArray(rt)){const at=Je.groups;for(let ft=0,ct=at.length;ft0&&Wa(Se,Ke,me,Te),Ae&&ne.viewport(A.copy(Ae)),Se.length>0&&rs(Se,me,Te),Ke.length>0&&rs(Ke,me,Te),Je.length>0&&rs(Je,me,Te),ne.buffers.depth.setTest(!0),ne.buffers.depth.setMask(!0),ne.buffers.color.setMask(!0),ne.setPolygonOffset(!1)}function Wa(F,me,Te,Ae){if((Te.isScene===!0?Te.overrideMaterial:null)!==null)return;const Ke=oe.isWebGL2;Ce===null&&(Ce=new so(1,1,{generateMipmaps:!0,type:q.has("EXT_color_buffer_half_float")?Xl:ur,minFilter:io,samples:Ke?4:0})),y.getDrawingBufferSize(ue),Ke?Ce.setSize(ue.x,ue.y):Ce.setSize(du(ue.x),du(ue.y));const Je=y.getRenderTarget();y.setRenderTarget(Ce),y.getClearColor(Y),L=y.getClearAlpha(),L<1&&y.setClearColor(16777215,.5),y.clear();const rt=y.toneMapping;y.toneMapping=dr,rs(F,Te,Ae),V.updateMultisampleRenderTarget(Ce),V.updateRenderTargetMipmap(Ce);let at=!1;for(let ft=0,ct=me.length;ft0),_t=!!Te.morphAttributes.position,qt=!!Te.morphAttributes.normal,En=!!Te.morphAttributes.color;let Xt=dr;Ae.toneMapped&&(w===null||w.isXRRenderTarget===!0)&&(Xt=y.toneMapping);const Rn=Te.morphAttributes.position||Te.morphAttributes.normal||Te.morphAttributes.color,Yt=Rn!==void 0?Rn.length:0,Et=we.get(Ae),ja=b.state.lights;if(_e===!0&&(ge===!0||F!==v)){const Hn=F===v&&Ae.id===R;Re.setState(Ae,F,Hn)}let Kt=!1;Ae.version===Et.__version?(Et.needsLights&&Et.lightsStateVersion!==ja.state.version||Et.outputColorSpace!==rt||Se.isBatchedMesh&&Et.batching===!1||!Se.isBatchedMesh&&Et.batching===!0||Se.isInstancedMesh&&Et.instancing===!1||!Se.isInstancedMesh&&Et.instancing===!0||Se.isSkinnedMesh&&Et.skinning===!1||!Se.isSkinnedMesh&&Et.skinning===!0||Se.isInstancedMesh&&Et.instancingColor===!0&&Se.instanceColor===null||Se.isInstancedMesh&&Et.instancingColor===!1&&Se.instanceColor!==null||Et.envMap!==at||Ae.fog===!0&&Et.fog!==Ke||Et.numClippingPlanes!==void 0&&(Et.numClippingPlanes!==Re.numPlanes||Et.numIntersection!==Re.numIntersection)||Et.vertexAlphas!==ft||Et.vertexTangents!==ct||Et.morphTargets!==_t||Et.morphNormals!==qt||Et.morphColors!==En||Et.toneMapping!==Xt||oe.isWebGL2===!0&&Et.morphTargetsCount!==Yt)&&(Kt=!0):(Kt=!0,Et.__version=Ae.version);let as=Et.currentProgram;Kt===!0&&(as=os(Ae,me,Se));let Ec=!1,yr=!1,Qa=!1;const fn=as.getUniforms(),ls=Et.uniforms;if(ne.useProgram(as.program)&&(Ec=!0,yr=!0,Qa=!0),Ae.id!==R&&(R=Ae.id,yr=!0),Ec||v!==F){fn.setValue(M,"projectionMatrix",F.projectionMatrix),fn.setValue(M,"viewMatrix",F.matrixWorldInverse);const Hn=fn.map.cameraPosition;Hn!==void 0&&Hn.setValue(M,Z.setFromMatrixPosition(F.matrixWorld)),oe.logarithmicDepthBuffer&&fn.setValue(M,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Ae.isMeshPhongMaterial||Ae.isMeshToonMaterial||Ae.isMeshLambertMaterial||Ae.isMeshBasicMaterial||Ae.isMeshStandardMaterial||Ae.isShaderMaterial)&&fn.setValue(M,"isOrthographic",F.isOrthographicCamera===!0),v!==F&&(v=F,yr=!0,Qa=!0)}if(Se.isSkinnedMesh){fn.setOptional(M,Se,"bindMatrix"),fn.setOptional(M,Se,"bindMatrixInverse");const Hn=Se.skeleton;Hn&&(oe.floatVertexTextures?(Hn.boneTexture===null&&Hn.computeBoneTexture(),fn.setValue(M,"boneTexture",Hn.boneTexture,V)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}Se.isBatchedMesh&&(fn.setOptional(M,Se,"batchingTexture"),fn.setValue(M,"batchingTexture",Se._matricesTexture,V));const Xa=Te.morphAttributes;if((Xa.position!==void 0||Xa.normal!==void 0||Xa.color!==void 0&&oe.isWebGL2===!0)&&Ve.update(Se,Te,as),(yr||Et.receiveShadow!==Se.receiveShadow)&&(Et.receiveShadow=Se.receiveShadow,fn.setValue(M,"receiveShadow",Se.receiveShadow)),Ae.isMeshGouraudMaterial&&Ae.envMap!==null&&(ls.envMap.value=at,ls.flipEnvMap.value=at.isCubeTexture&&at.isRenderTargetTexture===!1?-1:1),yr&&(fn.setValue(M,"toneMappingExposure",y.toneMappingExposure),Et.needsLights&&vr(ls,Qa),Ke&&Ae.fog===!0&&de.refreshFogUniforms(ls,Ke),de.refreshMaterialUniforms(ls,Ae,k,B,Ce),Id.upload(M,Sr(Et),ls,V)),Ae.isShaderMaterial&&Ae.uniformsNeedUpdate===!0&&(Id.upload(M,Sr(Et),ls,V),Ae.uniformsNeedUpdate=!1),Ae.isSpriteMaterial&&fn.setValue(M,"center",Se.center),fn.setValue(M,"modelViewMatrix",Se.modelViewMatrix),fn.setValue(M,"normalMatrix",Se.normalMatrix),fn.setValue(M,"modelMatrix",Se.matrixWorld),Ae.isShaderMaterial||Ae.isRawShaderMaterial){const Hn=Ae.uniformsGroups;for(let Za=0,rp=Hn.length;Za0&&V.useMultisampledRTT(F)===!1?Se=we.get(F).__webglMultisampledFramebuffer:Array.isArray(ct)?Se=ct[Te]:Se=ct,A.copy(F.viewport),P.copy(F.scissor),U=F.scissorTest}else A.copy(W).multiplyScalar(k).floor(),P.copy(le).multiplyScalar(k).floor(),U=J;if(ne.bindFramebuffer(M.FRAMEBUFFER,Se)&&oe.drawBuffers&&Ae&&ne.drawBuffers(F,Se),ne.viewport(A),ne.scissor(P),ne.setScissorTest(U),Ke){const at=we.get(F.texture);M.framebufferTexture2D(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,M.TEXTURE_CUBE_MAP_POSITIVE_X+me,at.__webglTexture,Te)}else if(Je){const at=we.get(F.texture),ft=me||0;M.framebufferTextureLayer(M.FRAMEBUFFER,M.COLOR_ATTACHMENT0,at.__webglTexture,Te||0,ft)}R=-1},this.readRenderTargetPixels=function(F,me,Te,Ae,Se,Ke,Je){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let rt=we.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&Je!==void 0&&(rt=rt[Je]),rt){ne.bindFramebuffer(M.FRAMEBUFFER,rt);try{const at=F.texture,ft=at.format,ct=at.type;if(ft!==ui&&st.convert(ft)!==M.getParameter(M.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const _t=ct===Xl&&(q.has("EXT_color_buffer_half_float")||oe.isWebGL2&&q.has("EXT_color_buffer_float"));if(ct!==ur&&st.convert(ct)!==M.getParameter(M.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ct===Ss&&(oe.isWebGL2||q.has("OES_texture_float")||q.has("WEBGL_color_buffer_float")))&&!_t){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}me>=0&&me<=F.width-Ae&&Te>=0&&Te<=F.height-Se&&M.readPixels(me,Te,Ae,Se,st.convert(ft),st.convert(ct),Ke)}finally{const at=w!==null?we.get(w).__webglFramebuffer:null;ne.bindFramebuffer(M.FRAMEBUFFER,at)}}},this.copyFramebufferToTexture=function(F,me,Te=0){const Ae=Math.pow(2,-Te),Se=Math.floor(me.image.width*Ae),Ke=Math.floor(me.image.height*Ae);V.setTexture2D(me,0),M.copyTexSubImage2D(M.TEXTURE_2D,Te,0,0,F.x,F.y,Se,Ke),ne.unbindTexture()},this.copyTextureToTexture=function(F,me,Te,Ae=0){const Se=me.image.width,Ke=me.image.height,Je=st.convert(Te.format),rt=st.convert(Te.type);V.setTexture2D(Te,0),M.pixelStorei(M.UNPACK_FLIP_Y_WEBGL,Te.flipY),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Te.premultiplyAlpha),M.pixelStorei(M.UNPACK_ALIGNMENT,Te.unpackAlignment),me.isDataTexture?M.texSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,Se,Ke,Je,rt,me.image.data):me.isCompressedTexture?M.compressedTexSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,me.mipmaps[0].width,me.mipmaps[0].height,Je,me.mipmaps[0].data):M.texSubImage2D(M.TEXTURE_2D,Ae,F.x,F.y,Je,rt,me.image),Ae===0&&Te.generateMipmaps&&M.generateMipmap(M.TEXTURE_2D),ne.unbindTexture()},this.copyTextureToTexture3D=function(F,me,Te,Ae,Se=0){if(y.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Ke=F.max.x-F.min.x+1,Je=F.max.y-F.min.y+1,rt=F.max.z-F.min.z+1,at=st.convert(Ae.format),ft=st.convert(Ae.type);let ct;if(Ae.isData3DTexture)V.setTexture3D(Ae,0),ct=M.TEXTURE_3D;else if(Ae.isDataArrayTexture)V.setTexture2DArray(Ae,0),ct=M.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}M.pixelStorei(M.UNPACK_FLIP_Y_WEBGL,Ae.flipY),M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ae.premultiplyAlpha),M.pixelStorei(M.UNPACK_ALIGNMENT,Ae.unpackAlignment);const _t=M.getParameter(M.UNPACK_ROW_LENGTH),qt=M.getParameter(M.UNPACK_IMAGE_HEIGHT),En=M.getParameter(M.UNPACK_SKIP_PIXELS),Xt=M.getParameter(M.UNPACK_SKIP_ROWS),Rn=M.getParameter(M.UNPACK_SKIP_IMAGES),Yt=Te.isCompressedTexture?Te.mipmaps[0]:Te.image;M.pixelStorei(M.UNPACK_ROW_LENGTH,Yt.width),M.pixelStorei(M.UNPACK_IMAGE_HEIGHT,Yt.height),M.pixelStorei(M.UNPACK_SKIP_PIXELS,F.min.x),M.pixelStorei(M.UNPACK_SKIP_ROWS,F.min.y),M.pixelStorei(M.UNPACK_SKIP_IMAGES,F.min.z),Te.isDataTexture||Te.isData3DTexture?M.texSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,ft,Yt.data):Te.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),M.compressedTexSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,Yt.data)):M.texSubImage3D(ct,Se,me.x,me.y,me.z,Ke,Je,rt,at,ft,Yt),M.pixelStorei(M.UNPACK_ROW_LENGTH,_t),M.pixelStorei(M.UNPACK_IMAGE_HEIGHT,qt),M.pixelStorei(M.UNPACK_SKIP_PIXELS,En),M.pixelStorei(M.UNPACK_SKIP_ROWS,Xt),M.pixelStorei(M.UNPACK_SKIP_IMAGES,Rn),Se===0&&Ae.generateMipmaps&&M.generateMipmap(ct),ne.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?V.setTextureCube(F,0):F.isData3DTexture?V.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?V.setTexture2DArray(F,0):V.setTexture2D(F,0),ne.unbindTexture()},this.resetState=function(){C=0,x=0,w=null,ne.reset(),Xe.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return vs}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===IE?"display-p3":"srgb",t.unpackColorSpace=Pt.workingColorSpace===Zu?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?Xr:mO}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Xr?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class UCt extends PO{}UCt.prototype.isWebGL1Renderer=!0;class FCt extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class BCt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=$g,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Di()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;sl)continue;h.applyMatrix4(this.matrixWorld);const R=e.ray.origin.distanceTo(h);Re.far||t.push({distance:R,point:u.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),S=Math.min(b.count,o.start+o.count);for(let y=g,T=S-1;yl)continue;h.applyMatrix4(this.matrixWorld);const x=e.ray.origin.distanceTo(h);xe.far||t.push({distance:x,point:u.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;rs.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class GE extends Li{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=OE,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Us extends GE{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Z1 extends Li{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=OE,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=wE,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 fd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function jCt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function QCt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function J1(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let l=0;l!==e;++l)s[o++]=n[a+l]}return s}function GO(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class mc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e=r)){const a=t[1];e=r)break t}o=i,i=0;break n}break e}for(;i>>1;et;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=i[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(s!==void 0&&jCt(s))for(let a=0,l=s.length;a!==l;++a){const c=s[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===Cm,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*i,l=o*i,c=0;c!==i;++c)t[l+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}ss.prototype.TimeBufferType=Float32Array;ss.prototype.ValueBufferType=Float32Array;ss.prototype.DefaultInterpolation=Sa;class za extends ss{}za.prototype.ValueTypeName="bool";za.prototype.ValueBufferType=Array;za.prototype.DefaultInterpolation=Zl;za.prototype.InterpolantFactoryMethodLinear=void 0;za.prototype.InterpolantFactoryMethodSmooth=void 0;class VO extends ss{}VO.prototype.ValueTypeName="color";class Ta extends ss{}Ta.prototype.ValueTypeName="number";class e1t extends mc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(i-t)/(s-t);let c=e*a;for(let d=c+a;c!==d;c+=4)br.slerpFlat(r,0,o,c-a,o,c,l);return r}}class oo extends ss{InterpolantFactoryMethodLinear(e){return new e1t(this.times,this.values,this.getValueSize(),e)}}oo.prototype.ValueTypeName="quaternion";oo.prototype.DefaultInterpolation=Sa;oo.prototype.InterpolantFactoryMethodSmooth=void 0;class qa extends ss{}qa.prototype.ValueTypeName="string";qa.prototype.ValueBufferType=Array;qa.prototype.DefaultInterpolation=Zl;qa.prototype.InterpolantFactoryMethodLinear=void 0;qa.prototype.InterpolantFactoryMethodSmooth=void 0;class xa extends ss{}xa.prototype.ValueTypeName="vector";class t1t{constructor(e,t=-1,i,s=ovt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=Di(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(i1t(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(ss.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a1){const u=d[1];let h=s[u];h||(s[u]=h=[]),h.push(c)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(u,h,m,f,E){if(m.length!==0){const b=[],g=[];GO(m,b,g,f),b.length!==0&&E.push(new u(h,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let u=0;u{t&&t(r),this.manager.itemEnd(e)},0),r;if(fs[e]!==void 0){fs[e].push({onLoad:t,onProgress:i,onError:s});return}fs[e]=[],fs[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const d=fs[e],u=c.body.getReader(),h=c.headers.get("Content-Length")||c.headers.get("X-File-Size"),m=h?parseInt(h):0,f=m!==0;let E=0;const b=new ReadableStream({start(g){S();function S(){u.read().then(({done:y,value:T})=>{if(y)g.close();else{E+=T.byteLength;const C=new ProgressEvent("progress",{lengthComputable:f,loaded:E,total:m});for(let x=0,w=d.length;x{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return c.json();default:if(a===void 0)return c.text();{const u=/charset="?([^;"\s]*)"?/i.exec(a),h=u&&u[1]?u[1].toLowerCase():void 0,m=new TextDecoder(h);return c.arrayBuffer().then(f=>m.decode(f))}}}).then(c=>{Ca.add(e,c);const d=fs[e];delete fs[e];for(let u=0,h=d.length;u{const d=fs[e];if(d===void 0)throw this.manager.itemError(e),c;delete fs[e];for(let u=0,h=d.length;u{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class a1t extends Ya{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ca.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Jl("img");function l(){d(),Ca.add(e,this),t&&t(this),r.manager.itemEnd(e)}function c(u){d(),s&&s(u),r.manager.itemError(e),r.manager.itemEnd(e)}function d(){a.removeEventListener("load",l,!1),a.removeEventListener("error",c,!1)}return a.addEventListener("load",l,!1),a.addEventListener("error",c,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class zO extends Ya{constructor(e){super(e)}load(e,t,i,s){const r=new xn,o=new a1t(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class np extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Zm=new Tt,eR=new pe,tR=new pe;class VE{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new Tt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new DE,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new zt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;eR.setFromMatrixPosition(e.matrixWorld),t.position.copy(eR),tR.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(tR),t.updateMatrixWorld(),Zm.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Zm),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(Zm)}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 l1t extends VE{constructor(){super(new Un(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=va*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class c1t extends np{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new l1t}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const nR=new Tt,_l=new pe,Jm=new pe;class d1t extends VE{constructor(){super(new Un(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new zt(2,1,1,1),new zt(0,1,1,1),new zt(3,1,1,1),new zt(1,1,1,1),new zt(3,0,1,1),new zt(1,0,1,1)],this._cubeDirections=[new pe(1,0,0),new pe(-1,0,0),new pe(0,0,1),new pe(0,0,-1),new pe(0,1,0),new pe(0,-1,0)],this._cubeUps=[new pe(0,1,0),new pe(0,1,0),new pe(0,1,0),new pe(0,1,0),new pe(0,0,1),new pe(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),_l.setFromMatrixPosition(e.matrixWorld),i.position.copy(_l),Jm.copy(i.position),Jm.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(Jm),i.updateMatrixWorld(),s.makeTranslation(-_l.x,-_l.y,-_l.z),nR.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(nR)}}class u1t extends np{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new d1t}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class p1t extends VE{constructor(){super(new kE(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class qO extends np{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new p1t}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class _1t extends np{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Ml{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Ca.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(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(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(l){Ca.add(e,l),t&&t(l),r.manager.itemEnd(e)}).catch(function(l){s&&s(l),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const HE="\\[\\]\\.:\\/",f1t=new RegExp("["+HE+"]","g"),zE="[^"+HE+"]",m1t="[^"+HE.replace("\\.","")+"]",g1t=/((?:WC+[\/:])*)/.source.replace("WC",zE),b1t=/(WCOD+)?/.source.replace("WCOD",m1t),E1t=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",zE),S1t=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",zE),v1t=new RegExp("^"+g1t+b1t+E1t+S1t+"$"),y1t=["material","materials","bones","map"];class T1t{constructor(e,t,i){const s=i||Ft.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class Ft{constructor(e,t,i){this.path=t,this.parsedPath=i||Ft.parseTrackName(t),this.node=Ft.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new Ft.Composite(e,t,i):new Ft(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(f1t,"")}static parseTrackName(e){const t=v1t.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);y1t.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o=2.0 are supported."));return}const c=new nRt(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let d=0;d=0&&a[u]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+u+'".')}}c.setExtensions(o),c.setPlugins(a),c.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function C1t(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Ct={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 R1t{constructor(e){this.parser=e,this.name=Ct.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class B1t{constructor(e){this.parser=e,this.name=Ct.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const c=i.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class G1t{constructor(e){this.parser=e,this.name=Ct.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let l=i.textureLoader;if(a.uri){const c=i.options.manager.getHandler(a.uri);c!==null&&(l=c)}return this.detectSupport().then(function(c){if(c)return i.loadTextureImage(e,o.source,l);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class V1t{constructor(e){this.name=Ct.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const l=s.byteOffset||0,c=s.byteLength||0,d=s.count,u=s.byteStride,h=new Uint8Array(a,l,c);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(d,u,h,s.mode,s.filter).then(function(m){return m.buffer}):o.ready.then(function(){const m=new ArrayBuffer(d*u);return o.decodeGltfBuffer(new Uint8Array(m),d,u,h,s.mode,s.filter),m})})}else return null}}class H1t{constructor(e){this.name=Ct.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const c of s.primitives)if(c.mode!==li.TRIANGLES&&c.mode!==li.TRIANGLE_STRIP&&c.mode!==li.TRIANGLE_FAN&&c.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],l={};for(const c in o)a.push(this.parser.getDependency("accessor",o[c]).then(d=>(l[c]=d,l[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(c=>{const d=c.pop(),u=d.isGroup?d.children:[d],h=c[0].count,m=[];for(const f of u){const E=new Tt,b=new pe,g=new br,S=new pe(1,1,1),y=new YCt(f.geometry,f.material,h);for(let T=0;T0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const tRt=new Tt;class nRt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new C1t,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 i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new zO(this.options.manager):this.textureLoader=new h1t(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new HO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=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([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return Ir(r,a,s),nr(a,s),Promise.all(i._invokeAll(function(l){return l.afterRoot&&l.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s{const l=this.associations.get(o);l!=null&&this.associations.set(a,l);for(const[c,d]of o.children.entries())r(d,a.children[c])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i=2&&b.setY(v,x[w*l+1]),l>=3&&b.setZ(v,x[w*l+2]),l>=4&&b.setW(v,x[w*l+3]),l>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const l=i.manager.getHandler(o.uri);l!==null&&(a=l)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],l=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(t,i).then(function(d){d.flipY=!1,d.name=o.name||a.name||"",d.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(d.name=a.uri);const h=(r.samplers||{})[o.sampler]||{};return d.magFilter=rR[h.magFilter]||Yn,d.minFilter=rR[h.minFilter]||io,d.wrapS=oR[h.wrapS]||ba,d.wrapT=oR[h.wrapT]||ba,s.associations.set(d,{textures:e}),d}).catch(function(){return null});return this.textureCache[l]=c,c}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(u=>u.clone());const o=s.images[e],a=self.URL||self.webkitURL;let l=o.uri||"",c=!1;if(o.bufferView!==void 0)l=i.getDependency("bufferView",o.bufferView).then(function(u){c=!0;const h=new Blob([u],{type:o.mimeType});return l=a.createObjectURL(h),l});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const d=Promise.resolve(l).then(function(u){return new Promise(function(h,m){let f=h;t.isImageBitmapLoader===!0&&(f=function(E){const b=new xn(E);b.needsUpdate=!0,h(b)}),t.load(Ml.resolveURL(u,r.path),f,void 0,m)})}).then(function(u){return c===!0&&a.revokeObjectURL(l),u.userData.mimeType=o.mimeType||eRt(o.uri),u}).catch(function(u){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),u});return this.sourceCache[e]=d,d}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[Ct.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[Ct.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const l=r.associations.get(o);o=r.extensions[Ct.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,l)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new BO,Li.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,l.sizeAttenuation=!1,this.cache.add(a,l)),i=l}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let l=this.cache.get(a);l||(l=new FO,Li.prototype.copy.call(l,i),l.color.copy(i.color),l.map=i.map,this.cache.add(a,l)),i=l}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let l=this.cache.get(a);l||(l=i.clone(),r&&(l.vertexColors=!0),o&&(l.flatShading=!0),s&&(l.normalScale&&(l.normalScale.y*=-1),l.clearcoatNormalScale&&(l.clearcoatNormalScale.y*=-1)),this.cache.add(a,l),this.associations.set(l,this.associations.get(i))),i=l}e.material=i}getMaterialType(){return GE}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},l=r.extensions||{},c=[];if(l[Ct.KHR_MATERIALS_UNLIT]){const u=s[Ct.KHR_MATERIALS_UNLIT];o=u.getMaterialType(),c.push(u.extendParams(a,r,t))}else{const u=r.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(u.baseColorFactor)){const h=u.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],Cn),a.opacity=h[3]}u.baseColorTexture!==void 0&&c.push(t.assignTexture(a,"map",u.baseColorTexture,nn)),a.metalness=u.metallicFactor!==void 0?u.metallicFactor:1,a.roughness=u.roughnessFactor!==void 0?u.roughnessFactor:1,u.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(a,"metalnessMap",u.metallicRoughnessTexture)),c.push(t.assignTexture(a,"roughnessMap",u.metallicRoughnessTexture))),o=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=zi);const d=r.alphaMode||tg.OPAQUE;if(d===tg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,d===tg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==or&&(c.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Rt(1,1),r.normalTexture.scale!==void 0)){const u=r.normalTexture.scale;a.normalScale.set(u,u)}if(r.occlusionTexture!==void 0&&o!==or&&(c.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==or){const u=r.emissiveFactor;a.emissive=new pt().setRGB(u[0],u[1],u[2],Cn)}return r.emissiveTexture!==void 0&&o!==or&&c.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,nn)),Promise.all(c).then(function(){const u=new o(a);return r.name&&(u.name=r.name),nr(u,r),t.associations.set(u,{materials:e}),r.extensions&&Ir(s,u,r),u})}createUniqueName(e){const t=Ft.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[Ct.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(l){return aR(l,a,t)})}const o=[];for(let a=0,l=e.length;a0&&Z1t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),nr(g,r),b.extensions&&Ir(s,g,b),t.assignFinalMaterial(g),u.push(g)}for(let m=0,f=u.length;m1?d=new qr:c.length===1?d=c[0]:d=new Jt,d!==c[0])for(let u=0,h=c.length;u{const u=new Map;for(const[h,m]of s.associations)(h instanceof Li||h instanceof xn)&&u.set(h,m);return d.traverse(h=>{const m=s.associations.get(h);m!=null&&u.set(h,m)}),u};return s.associations=c(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,l=[];Ws[r.path]===Ws.weights?e.traverse(function(h){h.morphTargetInfluences&&l.push(h.name?h.name:h.uuid)}):l.push(a);let c;switch(Ws[r.path]){case Ws.weights:c=Ta;break;case Ws.rotation:c=oo;break;case Ws.position:case Ws.scale:c=xa;break;default:switch(i.itemSize){case 1:c=Ta;break;case 2:case 3:default:c=xa;break}break}const d=s.interpolation!==void 0?j1t[s.interpolation]:Sa,u=this._getArrayFromAccessor(i);for(let h=0,m=l.length;h{Be.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,$e.emit("stop_webcam_video_stream"),Fe(()=>{Be.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Be.replace(),$e.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},rRt=["src"],oRt=["src"],aRt={class:"controls"},lRt=_("i",{"data-feather":"video"},null,-1),cRt=[lRt],dRt=_("i",{"data-feather":"video"},null,-1),uRt=[dRt],pRt={key:2};function _Rt(n,e,t,i,s,r){return O(),D("div",{class:"floating-frame bg-white",style:Zt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[_("div",{class:"handle",onMousedown:e[0]||(e[0]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(O(),D("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,rRt)):j("",!0),s.isVideoActive&&s.imageDataUrl==null?(O(),D("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,oRt)):j("",!0),_("div",aRt,[s.isVideoActive?j("",!0):(O(),D("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))},cRt)),s.isVideoActive?(O(),D("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))},uRt)):j("",!0),s.isVideoActive?(O(),D("span",pRt,"FPS: "+fe(s.frameRate),1)):j("",!0)])],36)}const hRt=gt(sRt,[["render",_Rt]]);const fRt={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(){$e.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Fe(()=>{Be.replace()})},stopAudioStream(){$e.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Fe(()=>{Be.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Be.replace(),$e.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},mRt=["src"],gRt={class:"controls"},bRt=_("i",{"data-feather":"mic"},null,-1),ERt=[bRt],SRt=_("i",{"data-feather":"mic"},null,-1),vRt=[SRt],yRt={key:2};function TRt(n,e,t,i,s,r){return O(),D("div",{class:"floating-frame bg-white",style:Zt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[_("div",{class:"handle",onMousedown:e[0]||(e[0]=xe((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=xe((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(O(),D("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,mRt)):j("",!0),_("div",gRt,[s.isAudioActive?j("",!0):(O(),D("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))},ERt)),s.isAudioActive?(O(),D("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))},vRt)):j("",!0),s.isAudioActive?(O(),D("span",yRt,"FPS: "+fe(s.frameRate),1)):j("",!0)])],36)}const xRt=gt(fRt,[["render",TRt]]);const CRt={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:hRt,AudioFrame:xRt},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Fe(()=>{Be.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 FCt,this.camera=new Un(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new PO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new pr,e=new Z1({color:65280});this.cube=new Fn(n,e),this.scene.add(this.cube);const t=new _1t(4210752),i=new qO(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new x1t().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new pr,t=new zO().load(n),i=new or({map:t});this.cube=new Fn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new pr,e=new Z1({color:65280});this.cube=new Fn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},RRt={ref:"webglContainer"},ARt={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"},wRt={key:0,class:"text-center"},NRt={key:1,class:"text-center"},ORt={class:"floating-frame2"},IRt=["innerHTML"];function MRt(n,e,t,i,s,r){const o=ut("VideoFrame"),a=ut("AudioFrame");return O(),D(qe,null,[_("div",RRt,null,512),_("div",ARt,[!s.activePersonality||!s.activePersonality.scene_path?(O(),D("div",wRt," Personality does not have a 3d avatar. ")):j("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(O(),D("div",NRt," Personality does not have an avatar. ")):j("",!0),_("div",ORt,[_("div",{innerHTML:n.htmlContent},null,8,IRt)])]),Ie(o,{ref:"video_frame"},null,512),Ie(a,{ref:"audio_frame"},null,512)],64)}const DRt=gt(CRt,[["render",MRt]]);let md;const LRt=new Uint8Array(16);function kRt(){if(!md&&(md=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!md))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return md(LRt)}const Sn=[];for(let n=0;n<256;++n)Sn.push((n+256).toString(16).slice(1));function PRt(n,e=0){return Sn[n[e+0]]+Sn[n[e+1]]+Sn[n[e+2]]+Sn[n[e+3]]+"-"+Sn[n[e+4]]+Sn[n[e+5]]+"-"+Sn[n[e+6]]+Sn[n[e+7]]+"-"+Sn[n[e+8]]+Sn[n[e+9]]+"-"+Sn[n[e+10]]+Sn[n[e+11]]+Sn[n[e+12]]+Sn[n[e+13]]+Sn[n[e+14]]+Sn[n[e+15]]}const URt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lR={randomUUID:URt};function Cs(n,e,t){if(lR.randomUUID&&!e&&!n)return lR.randomUUID();n=n||{};const i=n.random||(n.rng||kRt)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(let s=0;s<16;++s)e[t+s]=i[s];return e}return PRt(i)}class Zr{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const i=this._listeners.indexOf(t);i>=0&&this._listeners.splice(i,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you. Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(t);i>=0&&this.proxies.splice(i,1)}}class Vt extends Zr{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class Mn extends Zr{constructor(e){super(),this.entity=e}emit(e){let t=!1;const i=()=>[t=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),t)return{prevented:!0};return{prevented:!1}}}class WO extends Zr{execute(e,t){let i=e;for(const s of this.listeners)i=s(i,t);return i}}class ii extends WO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class FRt extends Zr{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const i of this.listeners)t.push(i(e,this.entity));return t}}function Bi(){const n=Symbol(),e=new Map,t=new Set,i=(l,c)=>{c instanceof Zr&&c.registerProxy(n,()=>{var d,u;return(u=(d=e.get(l))===null||d===void 0?void 0:d.listeners)!==null&&u!==void 0?u:[]})},s=l=>{const c=new Zr;e.set(l,c),t.forEach(d=>i(l,d[l]))},r=l=>{t.add(l);for(const c of e.keys())i(c,l[c])},o=l=>{for(const c of e.keys())l[c]instanceof Zr&&l[c].unregisterProxy(n);t.delete(l)},a=()=>{t.forEach(l=>o(l)),e.clear()};return new Proxy({},{get(l,c){return c==="addTarget"?r:c==="removeTarget"?o:c==="destroy"?a:typeof c!="string"||c.startsWith("_")?l[c]:(e.has(c)||s(c),e.get(c))}})}class cR{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Vt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Cs(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class KO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Cs(),this.from=e,this.to=t}}function eb(n,e){return Object.fromEntries(Object.entries(n).map(([t,i])=>[t,e(i)]))}class jO{constructor(){this._title="",this.id=Cs(),this.events={loaded:new Vt(this),beforeAddInput:new Mn(this),addInput:new Vt(this),beforeRemoveInput:new Mn(this),removeInput:new Vt(this),beforeAddOutput:new Mn(this),addOutput:new Vt(this),beforeRemoveOutput:new Mn(this),removeOutput:new Vt(this),beforeTitleChanged:new Mn(this),titleChanged:new Vt(this),update:new Vt(this)},this.hooks={beforeLoad:new ii(this),afterSave:new ii(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,i])=>{this.inputs[t]&&(this.inputs[t].load(i),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,i])=>{this.outputs[t]&&(this.outputs[t].load(i),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=eb(this.inputs,s=>s.save()),t=eb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:i}))}addInterface(e,t,i){const s=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 s.emit(i).prevented?!1:(o[t]=i,this.initializeIntf(e,t,i),r.emit(i),!0)}removeInterface(e,t){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||i.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[t]:delete this.outputs[t],s.emit(r),!0}}let QO=class extends jO{load(e){super.load(e)}save(){return super.save()}};function $a(n){return class extends QO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(i,s)=>n.calculate.call(this,i,s):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(i=>{const s=t[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class jt{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Cs(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Vt(this),beforeSetValue:new Mn(this),setValue:new Vt(this),updated:new Vt(this)},this.hooks={load:new ii(this),save:new ii(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Ra="__baklava_SubgraphInputNode",Aa="__baklava_SubgraphOutputNode";class XO extends QO{constructor(){super(),this.graphInterfaceId=Cs()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class ZO extends XO{constructor(){super(...arguments),this.type=Ra,this.inputs={name:new jt("Name","Input")},this.outputs={placeholder:new jt("Value",void 0)}}static isGraphInputNode(e){return e.type===Ra}}class JO extends XO{constructor(){super(...arguments),this.type=Aa,this.inputs={name:new jt("Name","Output"),placeholder:new jt("Value",void 0)},this.outputs={output:new jt("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Aa}}class gc{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Ra).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Aa).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Cs(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new Mn(this),addNode:new Vt(this),beforeRemoveNode:new Mn(this),removeNode:new Vt(this),beforeAddConnection:new Mn(this),addConnection:new Vt(this),checkConnection:new Mn(this),beforeRemoveConnection:new Mn(this),removeConnection:new Vt(this)},this.hooks={save:new ii(this),load:new ii(this),checkConnection:new FRt(this)},this.nodeEvents=Bi(),this.nodeHooks=Bi(),this.connectionEvents=Bi(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>t.includes(i.from)||t.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const i=this.checkConnection(e,t);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new cR(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(t.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:t});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 KO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const i in t.inputs){const s=t.inputs[i];if(s.id===e)return s}for(const i in t.outputs){const s=t.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){t.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new cR(s,r);o.id=i.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${i.to}`);continue}else{t.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const ec="__baklava_GraphNode-";function wa(n){return ec+n.id}function BRt(n){return class extends jO{constructor(){super(...arguments),this.type=wa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const l of this.subgraph.inputs)r.set(l.nodeInterfaceId,t[l.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const l of this.subgraph.outputs)a[l.id]=(s=o.get(l.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,new jt(t.name,void 0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,new jt(t.name,void 0));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new jt("_calculationResults",void 0).setHidden(!0))}}}class ip{static fromGraph(e,t){return new ip(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(wa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ra).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Aa).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Cs(),this._name="Subgraph",this.events={nameChanged:new Vt(this),updated:new Vt(this)},this.hooks={beforeLoad:new ii(this),afterSave:new ii(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,i=h=>{const m=Cs();return t.set(h,m),m},s=h=>{const m=t.get(h);if(!m)throw new Error(`Unable to create graph from template: Could not map old id ${h} to new id`);return m},r=h=>eb(h,m=>({id:i(m.id),templateId:m.id,value:m.value})),o=this.nodes.map(h=>({...h,id:i(h.id),inputs:r(h.inputs),outputs:r(h.outputs)})),a=this.connections.map(h=>({id:i(h.id),from:s(h.from),to:s(h.to)})),l=this.inputs.map(h=>({id:h.id,name:h.name,nodeId:s(h.nodeId),nodeInterfaceId:s(h.nodeInterfaceId)})),c=this.outputs.map(h=>({id:h.id,name:h.name,nodeId:s(h.nodeId),nodeInterfaceId:s(h.nodeInterfaceId)})),d={id:Cs(),nodes:o,connections:a,inputs:l,outputs:c};return e||(e=new gc(this.editor)),e.load(d).forEach(h=>console.warn(h)),e.template=this,e}}class GRt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new Vt(this),beforeRegisterNodeType:new Mn(this),registerNodeType:new Vt(this),beforeUnregisterNodeType:new Mn(this),unregisterNodeType:new Vt(this),beforeAddGraphTemplate:new Mn(this),addGraphTemplate:new Vt(this),beforeRemoveGraphTemplate:new Mn(this),removeGraphTemplate:new Vt(this),registerGraph:new Vt(this),unregisterGraph:new Vt(this)},this.hooks={save:new ii(this),load:new ii(this)},this.graphTemplateEvents=Bi(),this.graphTemplateHooks=Bi(),this.graphEvents=Bi(),this.graphHooks=Bi(),this.nodeEvents=Bi(),this.nodeHooks=Bi(),this.connectionEvents=Bi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new gc(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(ZO),this.registerNodeType(JO)}registerNodeType(e,t){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=t==null?void 0:t.category)!==null&&i!==void 0?i:"default",title:(s=t==null?void 0:t.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=BRt(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=wa(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===t);for(const r of s)i.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{this._loading=!0,e=this.hooks.load.execute(e),e.graphTemplates.forEach(i=>{const s=new ip(i,this);this.addGraphTemplate(s)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(i=>console.warn(i)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function VRt(n,e){const t=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>t.set(s.id,s))}),n.forEach((i,s)=>{const r=t.get(s);r&&i.forEach((o,a)=>{const l=r.outputs[a];l&&(l.value=o)})})}class eI extends Error{constructor(){super("Cycle detected")}}function HRt(n){return typeof n=="string"}function tI(n,e){const t=new Map,i=new Map,s=new Map;let r,o;if(n instanceof gc)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(c=>{Object.values(c.inputs).forEach(d=>t.set(d.id,c.id)),Object.values(c.outputs).forEach(d=>t.set(d.id,c.id))}),r.forEach(c=>{const d=o.filter(h=>h.from&&t.get(h.from.id)===c.id),u=new Set(d.map(h=>t.get(h.to.id)).filter(HRt));i.set(c.id,u),s.set(c,d)});const a=r.slice();o.forEach(c=>{const d=a.findIndex(u=>t.get(c.to.id)===u.id);d>=0&&a.splice(d,1)});const l=[];for(;a.length>0;){const c=a.pop();l.push(c);const d=i.get(c.id);for(;d.size>0;){const u=d.values().next().value;if(d.delete(u),Array.from(i.values()).every(h=>!h.has(u))){const h=r.find(m=>m.id===u);a.push(h)}}}if(Array.from(i.values()).some(c=>c.size>0))throw new eI;return{calculationOrder:l,connectionsFromNode:s,interfaceIdToNodeId:t}}function zRt(n,e){try{return tI(n,e),!1}catch(t){if(t instanceof eI)return!0;throw t}}var zn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(zn||(zn={}));class qRt{get status(){return this.isRunning?zn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new Mn(this),afterRun:new Vt(this),statusChange:new Vt(this),beforeNodeCalculation:new Vt(this),afterNodeCalculation:new Vt(this)},this.hooks={gatherCalculationData:new ii(this),transferData:new WO},this.recalculateOrder=!0,this.internalStatus=zn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===zn.Stopped&&(this.internalStatus=zn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===zn.Idle&&(this.internalStatus=zn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===zn.Paused&&(this.internalStatus=zn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===zn.Idle||this.internalStatus===zn.Paused)&&(this.internalStatus=zn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...t);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const i=new KO(e,t);let s=this.editor.graph.connections.slice();return t.allowMultipleConnections||(s=s.filter(r=>r.to!==t)),s.push(i),zRt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,t){this.internalStatus===zn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===t)return s;return null}}class YRt extends qRt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,i){this.order.has(e.id)||this.order.set(e.id,tI(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const l={};Object.entries(a.inputs).forEach(([d,u])=>{l[d]=this.getInterfaceValue(t,u.id)}),this.events.beforeNodeCalculation.emit({inputValues:l,node:a});let c;if(a.calculate)c=await a.calculate(l,{globalValues:i,engine:this});else{c={};for(const[d,u]of Object.entries(a.outputs))c[d]=this.getInterfaceValue(t,u.id)}this.validateNodeCalculationOutput(a,c),this.events.afterNodeCalculation.emit({outputValues:c,node:a}),o.set(a.id,new Map(Object.entries(c))),r.has(a)&&r.get(a).forEach(d=>{var u;const h=(u=Object.entries(a.outputs).find(([,f])=>f.id===d.from.id))===null||u===void 0?void 0:u[0];if(!h)throw new Error(`Could not find key for interface ${d.from.id} This is likely a Baklava internal issue. Please report it on GitHub.`);const m=this.hooks.transferData.execute(c[h],d);d.to.allowMultipleConnections?t.has(d.to.id)?t.get(d.to.id).push(m):t.set(d.to.id,[m]):t.set(d.to.id,m)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const i of e.nodes)Object.values(i.inputs).forEach(s=>{s.connectionCount===0&&t.set(s.id,s.value)}),i.calculate||Object.values(i.outputs).forEach(s=>{t.set(s.id,s.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t} diff --git a/web/dist/assets/index-b2ee99e7.css b/web/dist/assets/index-d55ae77e.css similarity index 99% rename from web/dist/assets/index-b2ee99e7.css rename to web/dist/assets/index-d55ae77e.css index 9dad08df..90718b80 100644 --- a/web/dist/assets/index-b2ee99e7.css +++ b/web/dist/assets/index-d55ae77e.css @@ -5,4 +5,4 @@ Author: (c) Henri Vandersleyen License: see project LICENSE Touched: 2022 -*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.container{margin:0;padding:0}.link-item{height:25px;margin-top:5px;padding:0 20px;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;background-color:#82a1d4;color:#000;transition:duration-300 ease-in-out transform}.link-item:hover{background-color:#3dabff;animation-timing-function:ease-in-out}.link-item.router-link-active{height:30px;margin-top:0;background-color:#b9d2f7}.link-item-dark{padding:0 20px;color:#f0f8ff;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;background-color:#000;transition:duration-300 ease-in-out transform}.link-item-dark:hover{background-color:#0cc96a;animation-timing-function:ease-in-out}.link-item-dark.router-link-active{height:30px;margin-top:0;background-color:#2b74e2}.nav-ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;height:100%}.nav-li{cursor:pointer;display:flex;align-items:center;padding:5px}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}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:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.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}.scrollbar[data-v-b19a05a8]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar{width:8px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.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}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-2cbc8507]{font-size:24px;animation:pulsate-2cbc8507 1.5s infinite}@keyframes pulsate-2cbc8507{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-2cbc8507],.list-enter-active[data-v-2cbc8507],.list-leave-active[data-v-2cbc8507]{transition:all .5s ease}.list-enter-from[data-v-2cbc8507]{transform:translatey(-30px)}.list-leave-to[data-v-2cbc8507]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-2cbc8507]{position:absolute}.bounce-enter-active[data-v-2cbc8507]{animation:bounce-in-2cbc8507 .5s}.bounce-leave-active[data-v-2cbc8507]{animation:bounce-in-2cbc8507 .5s reverse}@keyframes bounce-in-2cbc8507{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-2cbc8507]{background-color:#0ff}.hover[data-v-2cbc8507]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-2cbc8507]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s}.bounce-leave-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s reverse}@keyframes bounce-in-d16a58b9{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-52cfa09c]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-52cfa09c]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-52cfa09c]{top:calc(-100% - 2rem)}.list-move[data-v-b9e5dc4c],.list-enter-active[data-v-b9e5dc4c],.list-leave-active[data-v-b9e5dc4c]{transition:all .5s ease}.list-enter-from[data-v-b9e5dc4c]{transform:translatey(-30px)}.list-leave-to[data-v-b9e5dc4c]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b9e5dc4c]{position:absolute}.slide-right-enter-active[data-v-4b7998dc],.slide-right-leave-active[data-v-4b7998dc]{transition:transform .3s ease}.slide-right-enter[data-v-4b7998dc],.slide-right-leave-to[data-v-4b7998dc]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-4b7998dc]{animation:fade-and-fly-enter-4b7998dc .5s ease}.fade-and-fly-leave-active[data-v-4b7998dc]{animation:fade-and-fly-leave-4b7998dc .5s ease}@keyframes fade-and-fly-enter-4b7998dc{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-4b7998dc{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-4b7998dc],.list-enter-active[data-v-4b7998dc],.list-leave-active[data-v-4b7998dc]{transition:all .5s ease}.list-enter-from[data-v-4b7998dc]{transform:translatey(-30px)}.list-leave-to[data-v-4b7998dc]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-4b7998dc]{position:absolute}.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}*,: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}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}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-7{left:1.75rem}.left-9{left:2.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.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-2{margin-left:-.5rem;margin-right:-.5rem}.-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-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}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.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-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}.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}.hidden{display:none}.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-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.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-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.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-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-6{width:1.5rem}.w-60{width:15rem}.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-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-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.-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-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-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-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.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))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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}.-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-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))}.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-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{--tw-border-opacity: 1;border-color:rgb(19 46 89 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.border-primary-light{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.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{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(240 112 14 / var(--tw-bg-opacity))}.bg-bg-dark-tone-panel{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(226 237 255 / var(--tw-bg-opacity))}.bg-bg-light-discussion{--tw-bg-opacity: 1;background-color:rgb(197 216 248 / var(--tw-bg-opacity))}.bg-bg-light-tone{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.bg-bg-light-tone-panel{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / 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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.bg-primary-light{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.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-secondary{--tw-bg-opacity: 1;background-color:rgb(15 217 116 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: #e2edff var(--tw-gradient-from-position);--tw-gradient-to: rgb(226 237 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: #b9d2f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(185 210 247 / 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-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-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2edff var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.fill-blue-600{fill:#1c64f2}.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:#0fd974}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.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-24{padding-top:6rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.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-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;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}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / 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-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-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-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-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{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.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-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-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-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))}.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)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-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: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: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.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))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--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))}.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{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.hover\:border-primary-light:hover{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.hover\:border-secondary:hover{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.hover\:bg-bg-light-tone:hover{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.hover\:bg-bg-light-tone-panel:hover{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-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-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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.hover\:bg-primary-light:hover{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.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-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\: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\:fill-primary:hover{fill:#0e8ef0}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / 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-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.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\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !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{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.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))}.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\:scrollbar-thumb-secondary{--scrollbar-thumb-active: #0fd974 !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){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}: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){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}: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-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-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\:from-bg-dark){--tw-gradient-from: #132e59 var(--tw-gradient-from-position);--tw-gradient-to: rgb(19 46 89 / 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: #25477d var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 71 125 / 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(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #132e59 var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / 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-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-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-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-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-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-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: #132e59 !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: #4367a3 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(40 68 113 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}: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){--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}: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){--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}: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{--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:fill-primary:hover){fill:#0e8ef0}: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-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: #0e8ef0 !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){--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}: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-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}: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}@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\: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\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-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-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} +*/.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}.progress-bar-container{background-color:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}.progress-bar{background-color:#3498db;height:100%;transition:width .3s ease}.container{margin:0;padding:0}.link-item{height:25px;margin-top:5px;padding:0 20px;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;background-color:#82a1d4;color:#000;transition:duration-300 ease-in-out transform}.link-item:hover{background-color:#3dabff;animation-timing-function:ease-in-out}.link-item.router-link-active{height:30px;margin-top:0;background-color:#b9d2f7}.link-item-dark{padding:0 20px;color:#f0f8ff;margin-bottom:-5px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px 5px 0 0;font-weight:700;background-color:#000;transition:duration-300 ease-in-out transform}.link-item-dark:hover{background-color:#0cc96a;animation-timing-function:ease-in-out}.link-item-dark.router-link-active{height:30px;margin-top:0;background-color:#2b74e2}.nav-ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;height:100%}.nav-li{cursor:pointer;display:flex;align-items:center;padding:5px}.dot{width:10px;height:10px;border-radius:50%}.dot-green{background-color:green}.dot-red{background-color:red}.hovered{transition:transform .3s cubic-bezier(.175,.885,.32,1.275);transform:scale(1.1)}.active{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;pointer-events:all}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:250px;background-color:#fff;z-index:1000;display:none}.settings-button{cursor:pointer;padding:10px;border:1px solid #ddd;border-radius:5px;color:#333;font-size:14px}.settings-button:hover{background-color:#eee}.settings-button:active{background-color:#ddd}.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}.scrollbar[data-v-b19a05a8]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar{width:8px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-b19a05a8]::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover-color)}.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}.selected-choice{background-color:#bde4ff}.heartbeat-text[data-v-f83b5f82]{font-size:24px;animation:pulsate-f83b5f82 1.5s infinite}@keyframes pulsate-f83b5f82{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-f83b5f82],.list-enter-active[data-v-f83b5f82],.list-leave-active[data-v-f83b5f82]{transition:all .5s ease}.list-enter-from[data-v-f83b5f82]{transform:translatey(-30px)}.list-leave-to[data-v-f83b5f82]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-f83b5f82]{position:absolute}.bounce-enter-active[data-v-f83b5f82]{animation:bounce-in-f83b5f82 .5s}.bounce-leave-active[data-v-f83b5f82]{animation:bounce-in-f83b5f82 .5s reverse}@keyframes bounce-in-f83b5f82{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-f83b5f82]{background-color:#0ff}.hover[data-v-f83b5f82]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-f83b5f82]{font-weight:700}.collapsible-section{cursor:pointer;margin-bottom:10px;font-weight:700}.collapsible-section:hover{color:#1a202c}.collapsible-section .toggle-icon{margin-right:.25rem}.collapsible-section .toggle-icon i{color:#4a5568}.collapsible-section .toggle-icon i:hover{color:#1a202c}.json-viewer{max-height:300px;max-width:700px;flex:auto;overflow-y:auto;padding:10px;background-color:#f1f1f1;border:1px solid #ccc;border-radius:4px}.json-viewer .toggle-icon{cursor:pointer;margin-right:.25rem}.json-viewer .toggle-icon i{color:#4a5568}.json-viewer .toggle-icon i:hover{color:#1a202c}.expand-button{margin-left:10px;margin-right:10px;background:none;border:none;padding:0;cursor:pointer}.htmljs{background:none}.bounce-enter-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s}.bounce-leave-active[data-v-d16a58b9]{animation:bounce-in-d16a58b9 .5s reverse}@keyframes bounce-in-d16a58b9{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar{width:8px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-track{background-color:#f1f1f1}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.custom-scrollbar[data-v-52cfa09c]::-webkit-scrollbar-thumb:hover{background-color:#555}.menu[data-v-52cfa09c]{display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper[data-v-52cfa09c]{position:relative;display:flex;flex-direction:column;align-items:center}.commands-menu-items-wrapper>#commands-menu-items[data-v-52cfa09c]{top:calc(-100% - 2rem)}.list-move[data-v-b9e5dc4c],.list-enter-active[data-v-b9e5dc4c],.list-leave-active[data-v-b9e5dc4c]{transition:all .5s ease}.list-enter-from[data-v-b9e5dc4c]{transform:translatey(-30px)}.list-leave-to[data-v-b9e5dc4c]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-b9e5dc4c]{position:absolute}.slide-right-enter-active[data-v-4b7998dc],.slide-right-leave-active[data-v-4b7998dc]{transition:transform .3s ease}.slide-right-enter[data-v-4b7998dc],.slide-right-leave-to[data-v-4b7998dc]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-4b7998dc]{animation:fade-and-fly-enter-4b7998dc .5s ease}.fade-and-fly-leave-active[data-v-4b7998dc]{animation:fade-and-fly-leave-4b7998dc .5s ease}@keyframes fade-and-fly-enter-4b7998dc{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-4b7998dc{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-4b7998dc],.list-enter-active[data-v-4b7998dc],.list-leave-active[data-v-4b7998dc]{transition:all .5s ease}.list-enter-from[data-v-4b7998dc]{transform:translatey(-30px)}.list-leave-to[data-v-4b7998dc]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-4b7998dc]{position:absolute}.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}*,: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}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}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-16{bottom:4rem}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-7{left:1.75rem}.left-9{left:2.25rem}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-3{top:.75rem}.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-2{margin-left:-.5rem;margin-right:-.5rem}.-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-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}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.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-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}.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}.hidden{display:none}.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-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.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-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[900px\]{min-height:900px}.min-h-full{min-height:100%}.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-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-6{width:1.5rem}.w-60{width:15rem}.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-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-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.-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-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-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-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.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))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.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}.-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-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))}.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-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-bg-dark{--tw-border-opacity: 1;border-color:rgb(19 46 89 / var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-primary{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.border-primary-light{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.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{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(240 112 14 / var(--tw-bg-opacity))}.bg-bg-dark-tone-panel{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}.bg-bg-light{--tw-bg-opacity: 1;background-color:rgb(226 237 255 / var(--tw-bg-opacity))}.bg-bg-light-discussion{--tw-bg-opacity: 1;background-color:rgb(197 216 248 / var(--tw-bg-opacity))}.bg-bg-light-tone{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.bg-bg-light-tone-panel{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / 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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.bg-primary-light{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.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-secondary{--tw-bg-opacity: 1;background-color:rgb(15 217 116 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-70{--tw-bg-opacity: .7}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-bg-light{--tw-gradient-from: #e2edff var(--tw-gradient-from-position);--tw-gradient-to: rgb(226 237 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: #b9d2f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(185 210 247 / 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-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-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-5\%{--tw-gradient-from-position: 5%}.via-bg-light{--tw-gradient-to: rgb(226 237 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2edff var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-10\%{--tw-gradient-via-position: 10%}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.to-100\%{--tw-gradient-to-position: 100%}.fill-blue-600{fill:#1c64f2}.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:#0fd974}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.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-24{padding-top:6rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.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-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;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}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / 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-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-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-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-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{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.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-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.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-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-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-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))}.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)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-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: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: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.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))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--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))}.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{--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}.hover\:border-primary-light:hover{--tw-border-opacity: 1;border-color:rgb(61 171 255 / var(--tw-border-opacity))}.hover\:border-secondary:hover{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.hover\:bg-bg-light-tone:hover{--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.hover\:bg-bg-light-tone-panel:hover{--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.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-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-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-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{--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}.hover\:bg-primary-light:hover{--tw-bg-opacity: 1;background-color:rgb(61 171 255 / var(--tw-bg-opacity))}.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-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\: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\:fill-primary:hover{fill:#0e8ef0}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / 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-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.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\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !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{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.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-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.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))}.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\:scrollbar-thumb-secondary{--scrollbar-thumb-active: #0fd974 !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){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}: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){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}: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-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-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\:from-bg-dark){--tw-gradient-from: #132e59 var(--tw-gradient-from-position);--tw-gradient-to: rgb(19 46 89 / 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: #25477d var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 71 125 / 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(19 46 89 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #132e59 var(--tw-gradient-via-position), var(--tw-gradient-to)}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:fill-white){fill:#fff}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / 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-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-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-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-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-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-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: #132e59 !important}:is(.dark .dark\:scrollbar-track-bg-dark-tone){--scrollbar-track: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone){--scrollbar-thumb: #25477d !important}:is(.dark .dark\:scrollbar-thumb-bg-dark-tone-panel){--scrollbar-thumb: #4367a3 !important}:is(.dark .odd\:dark\:bg-bg-dark-tone):nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-discussion-odd:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(40 68 113 / var(--tw-bg-opacity))}:is(.dark .dark\:even\:bg-bg-dark-tone-panel:nth-child(2n)){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}: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){--tw-border-opacity: 1;border-color:rgb(14 142 240 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-bg-dark-tone:hover){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}: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){--tw-bg-opacity: 1;background-color:rgb(14 142 240 / var(--tw-bg-opacity))}: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{--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .hover\:dark\:bg-bg-dark-tone-panel):hover{--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:fill-primary:hover){fill:#0e8ef0}: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-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: #0e8ef0 !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){--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}: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-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}: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}@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\: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\:my-2{margin-top:.5rem;margin-bottom:.5rem}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/4{width:25%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-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-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}} diff --git a/web/dist/index.html b/web/dist/index.html index d1a13f6f..62b54157 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index 64be1a9a..cf9a6480 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -782,7 +782,7 @@
- -
diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 01a62397..7dc06e9a 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 01a623975053e929c2c7cf2ea6c29d83c3c118cd +Subproject commit 7dc06e9a471d2d577602753238b85e9ee86ad437