From 8e3e26b5637787d36ecd69997bd9397efe6cca10 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 28 Oct 2023 01:36:53 +0200 Subject: [PATCH] fixed uploading large files --- api/__init__.py | 132 +++++++++++------- app.py | 7 +- mPLUG-Owl | 1 + update_script.py | 2 + .../{index-bebc2e4a.js => index-925b269b.js} | 55 ++++---- ...{index-234c3c92.css => index-9d93b9ab.css} | 2 +- web/dist/index.html | 4 +- web/src/components/ChatBox.vue | 103 +++++++++----- web/src/services/websocket.js | 2 +- zoos/bindings_zoo | 2 +- zoos/models_zoo | 2 +- zoos/personalities_zoo | 2 +- 12 files changed, 194 insertions(+), 120 deletions(-) create mode 160000 mPLUG-Owl rename web/dist/assets/{index-bebc2e4a.js => index-925b269b.js} (97%) rename web/dist/assets/{index-234c3c92.css => index-9d93b9ab.css} (99%) diff --git a/api/__init__.py b/api/__init__.py index c2ac328c..bb712e22 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -575,63 +575,95 @@ class LoLLMsAPPI(LollmsApplication): except Exception as ex: trace_exception(ex) - @socketio.on('send_file') - def send_file(data): - ASCIIColors.yellow("Receiving file") - + @socketio.on('send_file_chunk') + def send_file_chunk(data): client_id = request.sid - self.connections[client_id]["generated_text"] = "" - self.connections[client_id]["cancel_generation"] = False + filename = data['filename'] + chunk = data['chunk'] + offset = data['offset'] + is_last_chunk = data['isLastChunk'] + chunk_index = data['chunkIndex'] + path:Path = self.lollms_paths.personal_uploads_path / self.personality.personality_folder_name + path.mkdir(parents=True, exist_ok=True) + file_path = path / data["filename"] + # Save the chunk to the server or process it as needed + # For example: + if chunk_index==0: + with open(file_path, 'wb') as file: + file.write(chunk) + else: + with open(file_path, 'ab') as file: + file.write(chunk) - if not self.config.use_files: - self.socketio.emit('file_received', - { - "status":False, - "filename":data["filename"], - "error":"Couldn't receive file: Verify that file type is compatible with the personality" - }, room=client_id - ) - return - - try: - self.personality.setCallback(partial(self.process_chunk,client_id = client_id)) - ASCIIColors.info("Recovering file from front end") - - path:Path = self.lollms_paths.personal_uploads_path / self.personality.personality_folder_name - path.mkdir(parents=True, exist_ok=True) - file_path = path / data["filename"] - File64BitsManager.b642file(data["fileData"],file_path) + if is_last_chunk: + print('File received and saved successfully') if self.personality.processor: result = self.personality.processor.add_file(file_path, partial(self.process_chunk, client_id=client_id)) else: result = self.personality.add_file(file_path, partial(self.process_chunk, client_id=client_id)) - if result: - self.socketio.emit('file_received', - { - "status":True, - "filename":data["filename"], - }, room=client_id - ) - else: - self.socketio.emit('file_received', - { - "status":False, - "filename":data["filename"], - "error":"Couldn't receive file: Verify that file type is compatible with the personality" - }, room=client_id - ) - except Exception as ex: - ASCIIColors.error(ex) - trace_exception(ex) - self.socketio.emit('file_received', - { - "status":False, - "filename":data["filename"], - "error":"Couldn't receive file: "+str(ex) - }, room=client_id - ) - self.close_message(client_id) + self.socketio.emit('file_received', {'status': True, 'filename': filename}) + else: + # Request the next chunk from the client + self.socketio.emit('request_next_chunk', {'offset': offset + len(chunk)}) + + # @socketio.on('send_file') + # def send_file(data): + # ASCIIColors.yellow("Receiving file") + + # client_id = request.sid + # self.connections[client_id]["generated_text"] = "" + # self.connections[client_id]["cancel_generation"] = False + + # if not self.config.use_files: + # self.socketio.emit('file_received', + # { + # "status":False, + # "filename":data["filename"], + # "error":"Couldn't receive file: Verify that file type is compatible with the personality" + # }, room=client_id + # ) + # return + + # try: + # self.personality.setCallback(partial(self.process_chunk,client_id = client_id)) + # ASCIIColors.info("Recovering file from front end") + + # path:Path = self.lollms_paths.personal_uploads_path / self.personality.personality_folder_name + # path.mkdir(parents=True, exist_ok=True) + # file_path = path / data["filename"] + # File64BitsManager.b642file(data["fileData"],file_path) + # if self.personality.processor: + # result = self.personality.processor.add_file(file_path, partial(self.process_chunk, client_id=client_id)) + # else: + # result = self.personality.add_file(file_path, partial(self.process_chunk, client_id=client_id)) + # if result: + # self.socketio.emit('file_received', + # { + # "status":True, + # "filename":data["filename"], + # }, room=client_id + # ) + # else: + # self.socketio.emit('file_received', + # { + # "status":False, + # "filename":data["filename"], + # "error":"Couldn't receive file: Verify that file type is compatible with the personality" + # }, room=client_id + # ) + + # except Exception as ex: + # ASCIIColors.error(ex) + # trace_exception(ex) + # self.socketio.emit('file_received', + # { + # "status":False, + # "filename":data["filename"], + # "error":"Couldn't receive file: "+str(ex) + # }, room=client_id + # ) + # self.close_message(client_id) @self.socketio.on('cancel_text_generation') def cancel_text_generation(data): diff --git a/app.py b/app.py index 70d5ff98..2dc00ced 100644 --- a/app.py +++ b/app.py @@ -135,10 +135,11 @@ log = logging.getLogger('werkzeug') log.setLevel(logging.ERROR) app = Flask("Lollms-WebUI", static_url_path="/static", static_folder="static") - +from flask_compress import Compress # async_mode='gevent', ping_timeout=1200, ping_interval=120, -socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading',engineio_options={'websocket_compression': False, 'websocket_ping_interval': 20, 'websocket_ping_timeout': 120, 'websocket_max_queue': 100}) - +socketio = SocketIO(app, cors_allowed_origins="*", async_mode='gevent', ping_timeout=1200, ping_interval=120) +#socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading',engineio_options={'websocket_compression': True, 'websocket_ping_interval': 20, 'websocket_ping_timeout': 120, 'websocket_max_queue': 100}) +compress = Compress(app) app.config['SECRET_KEY'] = 'secret!' # Set the logging level to WARNING or higher logging.getLogger('socketio').setLevel(logging.WARNING) diff --git a/mPLUG-Owl b/mPLUG-Owl new file mode 160000 index 00000000..7f1d5f81 --- /dev/null +++ b/mPLUG-Owl @@ -0,0 +1 @@ +Subproject commit 7f1d5f8148a0c9ea224548dfe0a72a823cdd2eae diff --git a/update_script.py b/update_script.py index c0f82f79..f009df24 100644 --- a/update_script.py +++ b/update_script.py @@ -21,6 +21,8 @@ def run_git_pull(): submodule_repo = submodule.module() submodule_repo.git.checkout('main') print(f"Checking out main from {submodule}") + submodule.update() + print(f"Checking out main from {submodule}") except Exception as ex: print(f"Couldn't checkout module {submodule}") diff --git a/web/dist/assets/index-bebc2e4a.js b/web/dist/assets/index-925b269b.js similarity index 97% rename from web/dist/assets/index-bebc2e4a.js rename to web/dist/assets/index-925b269b.js index 621dedb3..41ba9ce7 100644 --- a/web/dist/assets/index-bebc2e4a.js +++ b/web/dist/assets/index-925b269b.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"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function S_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const Je={},Lr=[],Bt=()=>{},pC=()=>!1,mC=/^on[^a-z]/,Ci=t=>mC.test(t),y_=t=>t.startsWith("onUpdate:"),ot=Object.assign,v_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},gC=Object.prototype.hasOwnProperty,ze=(t,e)=>gC.call(t,e),Ie=Array.isArray,Pr=t=>ss(t)==="[object Map]",rs=t=>ss(t)==="[object Set]",Xp=t=>ss(t)==="[object Date]",fC=t=>ss(t)==="[object RegExp]",Me=t=>typeof t=="function",st=t=>typeof t=="string",Fs=t=>typeof t=="symbol",je=t=>t!==null&&typeof t=="object",fS=t=>je(t)&&Me(t.then)&&Me(t.catch),hS=Object.prototype.toString,ss=t=>hS.call(t),hC=t=>ss(t).slice(8,-1),ES=t=>ss(t)==="[object Object]",T_=t=>st(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Yo=S_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ri=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},EC=/-(\w)/g,tn=Ri(t=>t.replace(EC,(e,n)=>n?n.toUpperCase():"")),bC=/\B([A-Z])/g,fr=Ri(t=>t.replace(bC,"-$1").toLowerCase()),xi=Ri(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ta=Ri(t=>t?`on${xi(t)}`:""),Us=(t,e)=>!Object.is(t,e),Fr=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},ti=t=>{const e=parseFloat(t);return isNaN(e)?t:e},SC=t=>{const e=st(t)?Number(t):NaN;return isNaN(e)?t:e};let Jp;const Lu=()=>Jp||(Jp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ht(t){if(Ie(t)){const e={};for(let n=0;n{if(n){const r=n.split(vC);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ae(t){let e="";if(st(t))e=t;else if(Ie(t))for(let n=0;n_r(n,e))}const j=t=>st(t)?t:t==null?"":Ie(t)||je(t)&&(t.toString===hS||!Me(t.toString))?JSON.stringify(t,SS,2):String(t),SS=(t,e)=>e&&e.__v_isRef?SS(t,e.value):Pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:rs(e)?{[`Set(${e.size})`]:[...e.values()]}:je(e)&&!Ie(e)&&!ES(e)?String(e):e;let Lt;class yS{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Lt,!e&&Lt&&(this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Lt;try{return Lt=this,e()}finally{Lt=n}}}on(){Lt=this}off(){Lt=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},vS=t=>(t.w&Hn)>0,TS=t=>(t.n&Hn)>0,IC=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":Ie(t)?T_(n)&&a.push(i.get("length")):(a.push(i.get(lr)),Pr(t)&&a.push(i.get(Uu)));break;case"delete":Ie(t)||(a.push(i.get(lr)),Pr(t)&&a.push(i.get(Uu)));break;case"set":Pr(t)&&a.push(i.get(lr));break}if(a.length===1)a[0]&&Bu(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Bu(R_(l))}}function Bu(t,e){const n=Ie(t)?t:[...t];for(const r of n)r.computed&&tm(r);for(const r of n)r.computed||tm(r)}function tm(t,e){(t!==Ft||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const kC=S_("__proto__,__v_isRef,__isVue"),xS=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Fs)),MC=O_(),LC=O_(!1,!0),PC=O_(!0),nm=FC();function FC(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=He(this);for(let o=0,i=this.length;o{t[e]=function(...n){os();const r=He(this)[e].apply(this,n);return is(),r}}),t}function UC(t){const e=He(this);return St(e,"has",t),e.hasOwnProperty(t)}function O_(t=!1,e=!1){return function(r,s,o){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&o===(t?e?e0:IS:e?wS:NS).get(r))return r;const i=Ie(r);if(!t){if(i&&ze(nm,s))return Reflect.get(nm,s,o);if(s==="hasOwnProperty")return UC}const a=Reflect.get(r,s,o);return(Fs(s)?xS.has(s):kC(s))||(t||St(r,"get",s),e)?a:mt(a)?i&&T_(s)?a:a.value:je(a)?t?kS(a):eo(a):a}}const BC=OS(),GC=OS(!0);function OS(t=!1){return function(n,r,s,o){let i=n[r];if(Yr(i)&&mt(i)&&!mt(s))return!1;if(!t&&(!ni(s)&&!Yr(s)&&(i=He(i),s=He(s)),!Ie(n)&&mt(i)&&!mt(s)))return i.value=s,!0;const a=Ie(n)&&T_(r)?Number(r)t,Oi=t=>Reflect.getPrototypeOf(t);function vo(t,e,n=!1,r=!1){t=t.__v_raw;const s=He(t),o=He(e);n||(e!==o&&St(s,"get",e),St(s,"get",o));const{has:i}=Oi(s),a=r?A_:n?I_:Bs;if(i.call(s,e))return a(t.get(e));if(i.call(s,o))return a(t.get(o));t!==s&&t.get(e)}function To(t,e=!1){const n=this.__v_raw,r=He(n),s=He(t);return e||(t!==s&&St(r,"has",t),St(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Co(t,e=!1){return t=t.__v_raw,!e&&St(He(t),"iterate",lr),Reflect.get(t,"size",t)}function rm(t){t=He(t);const e=He(this);return Oi(e).has.call(e,t)||(e.add(t),hn(e,"add",t,t)),this}function sm(t,e){e=He(e);const n=He(this),{has:r,get:s}=Oi(n);let o=r.call(n,t);o||(t=He(t),o=r.call(n,t));const i=s.call(n,t);return n.set(t,e),o?Us(e,i)&&hn(n,"set",t,e):hn(n,"add",t,e),this}function om(t){const e=He(this),{has:n,get:r}=Oi(e);let s=n.call(e,t);s||(t=He(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&hn(e,"delete",t,void 0),o}function im(){const t=He(this),e=t.size!==0,n=t.clear();return e&&hn(t,"clear",void 0,void 0),n}function Ro(t,e){return function(r,s){const o=this,i=o.__v_raw,a=He(i),l=e?A_:t?I_:Bs;return!t&&St(a,"iterate",lr),i.forEach((u,c)=>r.call(s,l(u),l(c),o))}}function xo(t,e,n){return function(...r){const s=this.__v_raw,o=He(s),i=Pr(o),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,u=s[t](...r),c=n?A_:e?I_:Bs;return!e&&St(o,"iterate",l?Uu:lr),{next(){const{value:_,done:p}=u.next();return p?{value:_,done:p}:{value:a?[c(_[0]),c(_[1])]:c(_),done:p}},[Symbol.iterator](){return this}}}}function On(t){return function(...e){return t==="delete"?!1:this}}function $C(){const t={get(o){return vo(this,o)},get size(){return Co(this)},has:To,add:rm,set:sm,delete:om,clear:im,forEach:Ro(!1,!1)},e={get(o){return vo(this,o,!1,!0)},get size(){return Co(this)},has:To,add:rm,set:sm,delete:om,clear:im,forEach:Ro(!1,!0)},n={get(o){return vo(this,o,!0)},get size(){return Co(this,!0)},has(o){return To.call(this,o,!0)},add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear"),forEach:Ro(!0,!1)},r={get(o){return vo(this,o,!0,!0)},get size(){return Co(this,!0)},has(o){return To.call(this,o,!0)},add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear"),forEach:Ro(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=xo(o,!1,!1),n[o]=xo(o,!0,!1),e[o]=xo(o,!1,!0),r[o]=xo(o,!0,!0)}),[t,n,e,r]}const[WC,KC,QC,jC]=$C();function N_(t,e){const n=e?t?jC:QC:t?KC:WC;return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ze(n,s)&&s in r?n:r,s,o)}const ZC={get:N_(!1,!1)},XC={get:N_(!1,!0)},JC={get:N_(!0,!1)},NS=new WeakMap,wS=new WeakMap,IS=new WeakMap,e0=new WeakMap;function t0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function n0(t){return t.__v_skip||!Object.isExtensible(t)?0:t0(hC(t))}function eo(t){return Yr(t)?t:w_(t,!1,AS,ZC,NS)}function DS(t){return w_(t,!1,HC,XC,wS)}function kS(t){return w_(t,!0,zC,JC,IS)}function w_(t,e,n,r,s){if(!je(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=n0(t);if(i===0)return t;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function Ur(t){return Yr(t)?Ur(t.__v_raw):!!(t&&t.__v_isReactive)}function Yr(t){return!!(t&&t.__v_isReadonly)}function ni(t){return!!(t&&t.__v_isShallow)}function MS(t){return Ur(t)||Yr(t)}function He(t){const e=t&&t.__v_raw;return e?He(e):t}function LS(t){return ei(t,"__v_skip",!0),t}const Bs=t=>je(t)?eo(t):t,I_=t=>je(t)?kS(t):t;function PS(t){qn&&Ft&&(t=He(t),RS(t.dep||(t.dep=R_())))}function FS(t,e){t=He(t);const n=t.dep;n&&Bu(n)}function mt(t){return!!(t&&t.__v_isRef===!0)}function US(t){return BS(t,!1)}function r0(t){return BS(t,!0)}function BS(t,e){return mt(t)?t:new s0(t,e)}class s0{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:He(e),this._value=n?e:Bs(e)}get value(){return PS(this),this._value}set value(e){const n=this.__v_isShallow||ni(e)||Yr(e);e=n?e:He(e),Us(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Bs(e),FS(this))}}function lt(t){return mt(t)?t.value:t}const o0={get:(t,e,n)=>lt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return mt(s)&&!mt(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function GS(t){return Ur(t)?t:new Proxy(t,o0)}class i0{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new x_(e,()=>{this._dirty||(this._dirty=!0,FS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=He(this);return PS(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function a0(t,e,n=!1){let r,s;const o=Me(t);return o?(r=t,s=Bt):(r=t.get,s=t.set),new i0(r,s,o||!s,n)}function Yn(t,e,n,r){let s;try{s=r?t(...r):t()}catch(o){Ai(o,e,n)}return s}function At(t,e,n,r){if(Me(t)){const o=Yn(t,e,n,r);return o&&fS(o)&&o.catch(i=>{Ai(i,e,n)}),o}const s=[];for(let o=0;o>>1;qs(pt[r])Wt&&pt.splice(e,1)}function u0(t){Ie(t)?Br.push(...t):(!un||!un.includes(t,t.allowRecurse?nr+1:nr))&&Br.push(t),YS()}function am(t,e=Gs?Wt+1:0){for(;eqs(n)-qs(r)),nr=0;nrt.id==null?1/0:t.id,_0=(t,e)=>{const n=qs(t)-qs(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function zS(t){Gu=!1,Gs=!0,pt.sort(_0);const e=Bt;try{for(Wt=0;Wtst(g)?g.trim():g)),_&&(s=n.map(ti))}let a,l=r[a=Ta(e)]||r[a=Ta(tn(e))];!l&&o&&(l=r[a=Ta(fr(e))]),l&&At(l,t,6,s);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,At(u,t,6,s)}}function HS(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let i={},a=!1;if(!Me(t)){const l=u=>{const c=HS(u,e,!0);c&&(a=!0,ot(i,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(je(t)&&r.set(t,null),null):(Ie(o)?o.forEach(l=>i[l]=null):ot(i,o),je(t)&&r.set(t,i),i)}function Ni(t,e){return!t||!Ci(e)?!1:(e=e.slice(2).replace(/Once$/,""),ze(t,e[0].toLowerCase()+e.slice(1))||ze(t,fr(e))||ze(t,e))}let _t=null,wi=null;function ri(t){const e=_t;return _t=t,wi=t&&t.type.__scopeId||null,e}function hr(t){wi=t}function Er(){wi=null}function ke(t,e=_t,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&bm(-1);const o=ri(e);let i;try{i=t(...s)}finally{ri(o),r._d&&bm(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ca(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:a,attrs:l,emit:u,render:c,renderCache:_,data:p,setupState:g,ctx:f,inheritAttrs:h}=t;let E,b;const m=ri(t);try{if(n.shapeFlag&4){const C=s||r;E=$t(c.call(C,C,_,o,g,p,f)),b=l}else{const C=e;E=$t(C.length>1?C(o,{attrs:l,slots:a,emit:u}):C(o,null)),b=e.props?l:m0(l)}}catch(C){ws.length=0,Ai(C,t,1),E=he(Nt)}let S=E;if(b&&h!==!1){const C=Object.keys(b),{shapeFlag:A}=S;C.length&&A&7&&(i&&C.some(y_)&&(b=g0(b,i)),S=En(S,b))}return n.dirs&&(S=En(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),E=S,ri(m),E}const m0=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ci(n))&&((e||(e={}))[n]=t[n]);return e},g0=(t,e)=>{const n={};for(const r in t)(!y_(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function f0(t,e,n){const{props:r,children:s,component:o}=t,{props:i,children:a,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?lm(r,i,u):!!i;if(l&8){const c=e.dynamicProps;for(let _=0;_t.__isSuspense;function E0(t,e){e&&e.pendingBranch?Ie(t)?e.effects.push(...t):e.effects.push(t):u0(t)}const Oo={};function Vn(t,e,n){return WS(t,e,n)}function WS(t,e,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Je){var a;const l=wC()===((a=ct)==null?void 0:a.scope)?ct:null;let u,c=!1,_=!1;if(mt(t)?(u=()=>t.value,c=ni(t)):Ur(t)?(u=()=>t,r=!0):Ie(t)?(_=!0,c=t.some(C=>Ur(C)||ni(C)),u=()=>t.map(C=>{if(mt(C))return C.value;if(Ur(C))return ir(C);if(Me(C))return Yn(C,l,2)})):Me(t)?e?u=()=>Yn(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return p&&p(),At(t,l,3,[g])}:u=Bt,e&&r){const C=u;u=()=>ir(C())}let p,g=C=>{p=m.onStop=()=>{Yn(C,l,4)}},f;if(Hs)if(g=Bt,e?n&&At(e,l,3,[u(),_?[]:void 0,g]):u(),s==="sync"){const C=dR();f=C.__watcherHandles||(C.__watcherHandles=[])}else return Bt;let h=_?new Array(t.length).fill(Oo):Oo;const E=()=>{if(m.active)if(e){const C=m.run();(r||c||(_?C.some((A,x)=>Us(A,h[x])):Us(C,h)))&&(p&&p(),At(e,l,3,[C,h===Oo?void 0:_&&h[0]===Oo?[]:h,g]),h=C)}else m.run()};E.allowRecurse=!!e;let b;s==="sync"?b=E:s==="post"?b=()=>ut(E,l&&l.suspense):(E.pre=!0,l&&(E.id=l.uid),b=()=>k_(E));const m=new x_(u,b);e?n?E():h=m.run():s==="post"?ut(m.run.bind(m),l&&l.suspense):m.run();const S=()=>{m.stop(),l&&l.scope&&v_(l.scope.effects,m)};return f&&f.push(S),S}function b0(t,e,n){const r=this.proxy,s=st(t)?t.includes(".")?KS(r,t):()=>r[t]:t.bind(r,r);let o;Me(e)?o=e:(o=e.handler,n=e);const i=ct;zr(this);const a=WS(s,o.bind(r),n);return i?zr(i):cr(),a}function KS(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{ir(n,e)});else if(ES(t))for(const n in t)ir(t[n],e);return t}function ce(t,e){const n=_t;if(n===null)return t;const r=Li(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),P_(()=>{t.isUnmounting=!0}),t}const Ct=[Function,Array],jS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ct,onEnter:Ct,onAfterEnter:Ct,onEnterCancelled:Ct,onBeforeLeave:Ct,onLeave:Ct,onAfterLeave:Ct,onLeaveCancelled:Ct,onBeforeAppear:Ct,onAppear:Ct,onAfterAppear:Ct,onAppearCancelled:Ct},S0={name:"BaseTransition",props:jS,setup(t,{slots:e}){const n=Y_(),r=QS();let s;return()=>{const o=e.default&&M_(e.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const h of o)if(h.type!==Nt){i=h;break}}const a=He(t),{mode:l}=a;if(r.isLeaving)return Ra(i);const u=cm(i);if(!u)return Ra(i);const c=Ys(u,a,r,n);Vr(u,c);const _=n.subTree,p=_&&cm(_);let g=!1;const{getTransitionKey:f}=u.type;if(f){const h=f();s===void 0?s=h:h!==s&&(s=h,g=!0)}if(p&&p.type!==Nt&&(!Bn(u,p)||g)){const h=Ys(p,a,r,n);if(Vr(p,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ra(i);l==="in-out"&&u.type!==Nt&&(h.delayLeave=(E,b,m)=>{const S=ZS(r,p);S[String(p.key)]=p,E._leaveCb=()=>{b(),E._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return i}}},y0=S0;function ZS(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ys(t,e,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:_,onLeave:p,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:h,onAppear:E,onAfterAppear:b,onAppearCancelled:m}=e,S=String(t.key),C=ZS(n,t),A=(y,R)=>{y&&At(y,r,9,R)},x=(y,R)=>{const w=R[1];A(y,R),Ie(y)?y.every(L=>L.length<=1)&&w():y.length<=1&&w()},k={mode:o,persisted:i,beforeEnter(y){let R=a;if(!n.isMounted)if(s)R=h||a;else return;y._leaveCb&&y._leaveCb(!0);const w=C[S];w&&Bn(t,w)&&w.el._leaveCb&&w.el._leaveCb(),A(R,[y])},enter(y){let R=l,w=u,L=c;if(!n.isMounted)if(s)R=E||l,w=b||u,L=m||c;else return;let M=!1;const Z=y._enterCb=B=>{M||(M=!0,B?A(L,[y]):A(w,[y]),k.delayedLeave&&k.delayedLeave(),y._enterCb=void 0)};R?x(R,[y,Z]):Z()},leave(y,R){const w=String(t.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return R();A(_,[y]);let L=!1;const M=y._leaveCb=Z=>{L||(L=!0,R(),Z?A(f,[y]):A(g,[y]),y._leaveCb=void 0,C[w]===t&&delete C[w])};C[w]=t,p?x(p,[y,M]):M()},clone(y){return Ys(y,e,n,r)}};return k}function Ra(t){if(Ii(t))return t=En(t),t.children=null,t}function cm(t){return Ii(t)?t.children?t.children[0]:void 0:t}function Vr(t,e){t.shapeFlag&6&&t.component?Vr(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function M_(t,e=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oot({name:t.name},e,{setup:t}))():t}const Gr=t=>!!t.type.__asyncLoader,Ii=t=>t.type.__isKeepAlive,v0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Y_(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:_}}}=r,p=_("div");r.activate=(m,S,C,A,x)=>{const k=m.component;u(m,S,C,0,a),l(k.vnode,m,S,C,k,a,A,m.slotScopeIds,x),ut(()=>{k.isDeactivated=!1,k.a&&Fr(k.a);const y=m.props&&m.props.onVnodeMounted;y&&Rt(y,k.parent,m)},a)},r.deactivate=m=>{const S=m.component;u(m,p,null,1,a),ut(()=>{S.da&&Fr(S.da);const C=m.props&&m.props.onVnodeUnmounted;C&&Rt(C,S.parent,m),S.isDeactivated=!0},a)};function g(m){xa(m),c(m,n,a,!0)}function f(m){s.forEach((S,C)=>{const A=$u(S.type);A&&(!m||!m(A))&&h(C)})}function h(m){const S=s.get(m);!i||!Bn(S,i)?g(S):i&&xa(i),s.delete(m),o.delete(m)}Vn(()=>[t.include,t.exclude],([m,S])=>{m&&f(C=>xs(m,C)),S&&f(C=>!xs(S,C))},{flush:"post",deep:!0});let E=null;const b=()=>{E!=null&&s.set(E,Oa(n.subTree))};return to(b),L_(b),P_(()=>{s.forEach(m=>{const{subTree:S,suspense:C}=n,A=Oa(S);if(m.type===A.type&&m.key===A.key){xa(A);const x=A.component.da;x&&ut(x,C);return}g(m)})}),()=>{if(E=null,!e.default)return null;const m=e.default(),S=m[0];if(m.length>1)return i=null,m;if(!zs(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return i=null,S;let C=Oa(S);const A=C.type,x=$u(Gr(C)?C.type.__asyncResolved||{}:A),{include:k,exclude:y,max:R}=t;if(k&&(!x||!xs(k,x))||y&&x&&xs(y,x))return i=C,S;const w=C.key==null?A:C.key,L=s.get(w);return C.el&&(C=En(C),S.shapeFlag&128&&(S.ssContent=C)),E=w,L?(C.el=L.el,C.component=L.component,C.transition&&Vr(C,C.transition),C.shapeFlag|=512,o.delete(w),o.add(w)):(o.add(w),R&&o.size>parseInt(R,10)&&h(o.values().next().value)),C.shapeFlag|=256,i=C,$S(S.type)?S:C}}},T0=v0;function xs(t,e){return Ie(t)?t.some(n=>xs(n,e)):st(t)?t.split(",").includes(e):fC(t)?t.test(e):!1}function C0(t,e){JS(t,"a",e)}function R0(t,e){JS(t,"da",e)}function JS(t,e,n=ct){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Di(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Ii(s.parent.vnode)&&x0(r,e,n,s),s=s.parent}}function x0(t,e,n,r){const s=Di(e,t,r,!0);ey(()=>{v_(r[e],s)},n)}function xa(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Oa(t){return t.shapeFlag&128?t.ssContent:t}function Di(t,e,n=ct,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;os(),zr(n);const a=At(e,n,t,i);return cr(),is(),a});return r?s.unshift(o):s.push(o),o}}const Sn=t=>(e,n=ct)=>(!Hs||t==="sp")&&Di(t,(...r)=>e(...r),n),O0=Sn("bm"),to=Sn("m"),A0=Sn("bu"),L_=Sn("u"),P_=Sn("bum"),ey=Sn("um"),N0=Sn("sp"),w0=Sn("rtg"),I0=Sn("rtc");function D0(t,e=ct){Di("ec",t,e)}const F_="components";function Pe(t,e){return ny(F_,t,!0,e)||t}const ty=Symbol.for("v-ndc");function k0(t){return st(t)?ny(F_,t,!1)||t:t||ty}function ny(t,e,n=!0,r=!1){const s=_t||ct;if(s){const o=s.type;if(t===F_){const a=$u(o,!1);if(a&&(a===e||a===tn(e)||a===xi(tn(e))))return o}const i=dm(s[t]||o[t],e)||dm(s.appContext[t],e);return!i&&r?o:i}}function dm(t,e){return t&&(t[e]||t[tn(e)]||t[xi(tn(e))])}function Be(t,e,n,r){let s;const o=n&&n[r];if(Ie(t)||st(t)){s=new Array(t.length);for(let i=0,a=t.length;ie(i,a,void 0,o&&o[a]));else{const i=Object.keys(t);s=new Array(i.length);for(let a=0,l=i.length;azs(e)?!(e.type===Nt||e.type===we&&!ry(e.children)):!0)?t:null}const qu=t=>t?my(t)?Li(t)||t.proxy:qu(t.parent):null,Ns=ot(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qu(t.parent),$root:t=>qu(t.root),$emit:t=>t.emit,$options:t=>U_(t),$forceUpdate:t=>t.f||(t.f=()=>k_(t.update)),$nextTick:t=>t.n||(t.n=ve.bind(t.proxy)),$watch:t=>b0.bind(t)}),Aa=(t,e)=>t!==Je&&!t.__isScriptSetup&&ze(t,e),M0={get({_:t},e){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const g=i[e];if(g!==void 0)switch(g){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Aa(r,e))return i[e]=1,r[e];if(s!==Je&&ze(s,e))return i[e]=2,s[e];if((u=t.propsOptions[0])&&ze(u,e))return i[e]=3,o[e];if(n!==Je&&ze(n,e))return i[e]=4,n[e];Yu&&(i[e]=0)}}const c=Ns[e];let _,p;if(c)return e==="$attrs"&&St(t,"get",e),c(t);if((_=a.__cssModules)&&(_=_[e]))return _;if(n!==Je&&ze(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,ze(p,e))return p[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return Aa(s,e)?(s[e]=n,!0):r!==Je&&ze(r,e)?(r[e]=n,!0):ze(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||t!==Je&&ze(t,i)||Aa(e,i)||(a=o[0])&&ze(a,i)||ze(r,i)||ze(Ns,i)||ze(s.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ze(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function um(t){return Ie(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Yu=!0;function L0(t){const e=U_(t),n=t.proxy,r=t.ctx;Yu=!1,e.beforeCreate&&_m(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:_,mounted:p,beforeUpdate:g,updated:f,activated:h,deactivated:E,beforeDestroy:b,beforeUnmount:m,destroyed:S,unmounted:C,render:A,renderTracked:x,renderTriggered:k,errorCaptured:y,serverPrefetch:R,expose:w,inheritAttrs:L,components:M,directives:Z,filters:B}=e;if(u&&P0(u,r,null),i)for(const I in i){const Q=i[I];Me(Q)&&(r[I]=Q.bind(n))}if(s){const I=s.call(n,n);je(I)&&(t.data=eo(I))}if(Yu=!0,o)for(const I in o){const Q=o[I],re=Me(Q)?Q.bind(n,n):Me(Q.get)?Q.get.bind(n,n):Bt,X=!Me(Q)&&Me(Q.set)?Q.set.bind(n):Bt,pe=Ot({get:re,set:X});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ee=>pe.value=ee})}if(a)for(const I in a)sy(a[I],r,n,I);if(l){const I=Me(l)?l.call(n):l;Reflect.ownKeys(I).forEach(Q=>{Vo(Q,I[Q])})}c&&_m(c,t,"c");function H(I,Q){Ie(Q)?Q.forEach(re=>I(re.bind(n))):Q&&I(Q.bind(n))}if(H(O0,_),H(to,p),H(A0,g),H(L_,f),H(C0,h),H(R0,E),H(D0,y),H(I0,x),H(w0,k),H(P_,m),H(ey,C),H(N0,R),Ie(w))if(w.length){const I=t.exposed||(t.exposed={});w.forEach(Q=>{Object.defineProperty(I,Q,{get:()=>n[Q],set:re=>n[Q]=re})})}else t.exposed||(t.exposed={});A&&t.render===Bt&&(t.render=A),L!=null&&(t.inheritAttrs=L),M&&(t.components=M),Z&&(t.directives=Z)}function P0(t,e,n=Bt){Ie(t)&&(t=Vu(t));for(const r in t){const s=t[r];let o;je(s)?"default"in s?o=mn(s.from||r,s.default,!0):o=mn(s.from||r):o=mn(s),mt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):e[r]=o}}function _m(t,e,n){At(Ie(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function sy(t,e,n,r){const s=r.includes(".")?KS(n,r):()=>n[r];if(st(t)){const o=e[t];Me(o)&&Vn(s,o)}else if(Me(t))Vn(s,t.bind(n));else if(je(t))if(Ie(t))t.forEach(o=>sy(o,e,n,r));else{const o=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(o)&&Vn(s,o,t)}}function U_(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=t.appContext,a=o.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>oi(l,u,i,!0)),oi(l,e,i)),je(e)&&o.set(e,l),l}function oi(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&oi(t,o,n,!0),s&&s.forEach(i=>oi(t,i,n,!0));for(const i in e)if(!(r&&i==="expose")){const a=F0[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const F0={data:pm,props:mm,emits:mm,methods:Os,computed:Os,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:Os,directives:Os,watch:B0,provide:pm,inject:U0};function pm(t,e){return e?t?function(){return ot(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function U0(t,e){return Os(Vu(t),Vu(e))}function Vu(t){if(Ie(t)){const e={};for(let n=0;n1)return n&&Me(e)?e.call(r&&r.proxy):e}}function Y0(t,e,n,r=!1){const s={},o={};ei(o,Mi,1),t.propsDefaults=Object.create(null),iy(t,e,s,o);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);n?t.props=r?s:DS(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function V0(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=t,a=He(s),[l]=t.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=t.vnode.dynamicProps;for(let _=0;_{l=!0;const[p,g]=ay(_,e,!0);ot(i,p),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!l)return je(t)&&r.set(t,Lr),Lr;if(Ie(o))for(let c=0;c-1,g[1]=h<0||f-1||ze(g,"default"))&&a.push(_)}}}const u=[i,a];return je(t)&&r.set(t,u),u}function gm(t){return t[0]!=="$"}function fm(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function hm(t,e){return fm(t)===fm(e)}function Em(t,e){return Ie(e)?e.findIndex(n=>hm(n,t)):Me(e)&&hm(e,t)?0:-1}const ly=t=>t[0]==="_"||t==="$stable",B_=t=>Ie(t)?t.map($t):[$t(t)],z0=(t,e,n)=>{if(e._n)return e;const r=ke((...s)=>B_(e(...s)),n);return r._c=!1,r},cy=(t,e,n)=>{const r=t._ctx;for(const s in t){if(ly(s))continue;const o=t[s];if(Me(o))e[s]=z0(s,o,r);else if(o!=null){const i=B_(o);e[s]=()=>i}}},dy=(t,e)=>{const n=B_(e);t.slots.default=()=>n},H0=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=He(e),ei(e,"_",n)):cy(e,t.slots={})}else t.slots={},e&&dy(t,e);ei(t.slots,Mi,1)},$0=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,i=Je;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:(ot(s,e),!n&&a===1&&delete s._):(o=!e.$stable,cy(e,s)),i=e}else e&&(dy(t,e),i={default:1});if(o)for(const a in s)!ly(a)&&!(a in i)&&delete s[a]};function Hu(t,e,n,r,s=!1){if(Ie(t)){t.forEach((p,g)=>Hu(p,e&&(Ie(e)?e[g]:e),n,r,s));return}if(Gr(r)&&!s)return;const o=r.shapeFlag&4?Li(r.component)||r.component.proxy:r.el,i=s?null:o,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Je?a.refs={}:a.refs,_=a.setupState;if(u!=null&&u!==l&&(st(u)?(c[u]=null,ze(_,u)&&(_[u]=null)):mt(u)&&(u.value=null)),Me(l))Yn(l,a,12,[i,c]);else{const p=st(l),g=mt(l);if(p||g){const f=()=>{if(t.f){const h=p?ze(_,l)?_[l]:c[l]:l.value;s?Ie(h)&&v_(h,o):Ie(h)?h.includes(o)||h.push(o):p?(c[l]=[o],ze(_,l)&&(_[l]=c[l])):(l.value=[o],t.k&&(c[t.k]=l.value))}else p?(c[l]=i,ze(_,l)&&(_[l]=i)):g&&(l.value=i,t.k&&(c[t.k]=i))};i?(f.id=-1,ut(f,n)):f()}}}const ut=E0;function W0(t){return K0(t)}function K0(t,e){const n=Lu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:_,nextSibling:p,setScopeId:g=Bt,insertStaticContent:f}=t,h=(O,N,F,$=null,W=null,ie=null,me=!1,D=null,K=!!N.dynamicChildren)=>{if(O===N)return;O&&!Bn(O,N)&&($=z(O),ee(O,W,ie,!0),O=null),N.patchFlag===-2&&(K=!1,N.dynamicChildren=null);const{type:G,ref:q,shapeFlag:V}=N;switch(G){case ki:E(O,N,F,$);break;case Nt:b(O,N,F,$);break;case zo:O==null&&m(N,F,$,me);break;case we:M(O,N,F,$,W,ie,me,D,K);break;default:V&1?A(O,N,F,$,W,ie,me,D,K):V&6?Z(O,N,F,$,W,ie,me,D,K):(V&64||V&128)&&G.process(O,N,F,$,W,ie,me,D,K,Y)}q!=null&&W&&Hu(q,O&&O.ref,ie,N||O,!N)},E=(O,N,F,$)=>{if(O==null)r(N.el=a(N.children),F,$);else{const W=N.el=O.el;N.children!==O.children&&u(W,N.children)}},b=(O,N,F,$)=>{O==null?r(N.el=l(N.children||""),F,$):N.el=O.el},m=(O,N,F,$)=>{[O.el,O.anchor]=f(O.children,N,F,$,O.el,O.anchor)},S=({el:O,anchor:N},F,$)=>{let W;for(;O&&O!==N;)W=p(O),r(O,F,$),O=W;r(N,F,$)},C=({el:O,anchor:N})=>{let F;for(;O&&O!==N;)F=p(O),s(O),O=F;s(N)},A=(O,N,F,$,W,ie,me,D,K)=>{me=me||N.type==="svg",O==null?x(N,F,$,W,ie,me,D,K):R(O,N,W,ie,me,D,K)},x=(O,N,F,$,W,ie,me,D)=>{let K,G;const{type:q,props:V,shapeFlag:ne,transition:oe,dirs:ge}=O;if(K=O.el=i(O.type,ie,V&&V.is,V),ne&8?c(K,O.children):ne&16&&y(O.children,K,null,$,W,ie&&q!=="foreignObject",me,D),ge&&Zn(O,null,$,"created"),k(K,O,O.scopeId,me,$),V){for(const le in V)le!=="value"&&!Yo(le)&&o(K,le,null,V[le],ie,O.children,$,W,Ee);"value"in V&&o(K,"value",null,V.value),(G=V.onVnodeBeforeMount)&&Rt(G,$,O)}ge&&Zn(O,null,$,"beforeMount");const J=(!W||W&&!W.pendingBranch)&&oe&&!oe.persisted;J&&oe.beforeEnter(K),r(K,N,F),((G=V&&V.onVnodeMounted)||J||ge)&&ut(()=>{G&&Rt(G,$,O),J&&oe.enter(K),ge&&Zn(O,null,$,"mounted")},W)},k=(O,N,F,$,W)=>{if(F&&g(O,F),$)for(let ie=0;ie<$.length;ie++)g(O,$[ie]);if(W){let ie=W.subTree;if(N===ie){const me=W.vnode;k(O,me,me.scopeId,me.slotScopeIds,W.parent)}}},y=(O,N,F,$,W,ie,me,D,K=0)=>{for(let G=K;G{const D=N.el=O.el;let{patchFlag:K,dynamicChildren:G,dirs:q}=N;K|=O.patchFlag&16;const V=O.props||Je,ne=N.props||Je;let oe;F&&Xn(F,!1),(oe=ne.onVnodeBeforeUpdate)&&Rt(oe,F,N,O),q&&Zn(N,O,F,"beforeUpdate"),F&&Xn(F,!0);const ge=W&&N.type!=="foreignObject";if(G?w(O.dynamicChildren,G,D,F,$,ge,ie):me||Q(O,N,D,null,F,$,ge,ie,!1),K>0){if(K&16)L(D,N,V,ne,F,$,W);else if(K&2&&V.class!==ne.class&&o(D,"class",null,ne.class,W),K&4&&o(D,"style",V.style,ne.style,W),K&8){const J=N.dynamicProps;for(let le=0;le{oe&&Rt(oe,F,N,O),q&&Zn(N,O,F,"updated")},$)},w=(O,N,F,$,W,ie,me)=>{for(let D=0;D{if(F!==$){if(F!==Je)for(const D in F)!Yo(D)&&!(D in $)&&o(O,D,F[D],null,me,N.children,W,ie,Ee);for(const D in $){if(Yo(D))continue;const K=$[D],G=F[D];K!==G&&D!=="value"&&o(O,D,G,K,me,N.children,W,ie,Ee)}"value"in $&&o(O,"value",F.value,$.value)}},M=(O,N,F,$,W,ie,me,D,K)=>{const G=N.el=O?O.el:a(""),q=N.anchor=O?O.anchor:a("");let{patchFlag:V,dynamicChildren:ne,slotScopeIds:oe}=N;oe&&(D=D?D.concat(oe):oe),O==null?(r(G,F,$),r(q,F,$),y(N.children,F,q,W,ie,me,D,K)):V>0&&V&64&&ne&&O.dynamicChildren?(w(O.dynamicChildren,ne,F,W,ie,me,D),(N.key!=null||W&&N===W.subTree)&&uy(O,N,!0)):Q(O,N,F,q,W,ie,me,D,K)},Z=(O,N,F,$,W,ie,me,D,K)=>{N.slotScopeIds=D,O==null?N.shapeFlag&512?W.ctx.activate(N,F,$,me,K):B(N,F,$,W,ie,me,K):se(O,N,K)},B=(O,N,F,$,W,ie,me)=>{const D=O.component=rR(O,$,W);if(Ii(O)&&(D.ctx.renderer=Y),sR(D),D.asyncDep){if(W&&W.registerDep(D,H),!O.el){const K=D.subTree=he(Nt);b(null,K,N,F)}return}H(D,O,N,F,W,ie,me)},se=(O,N,F)=>{const $=N.component=O.component;if(f0(O,N,F))if($.asyncDep&&!$.asyncResolved){I($,N,F);return}else $.next=N,d0($.update),$.update();else N.el=O.el,$.vnode=N},H=(O,N,F,$,W,ie,me)=>{const D=()=>{if(O.isMounted){let{next:q,bu:V,u:ne,parent:oe,vnode:ge}=O,J=q,le;Xn(O,!1),q?(q.el=ge.el,I(O,q,me)):q=ge,V&&Fr(V),(le=q.props&&q.props.onVnodeBeforeUpdate)&&Rt(le,oe,q,ge),Xn(O,!0);const Se=Ca(O),Oe=O.subTree;O.subTree=Se,h(Oe,Se,_(Oe.el),z(Oe),O,W,ie),q.el=Se.el,J===null&&h0(O,Se.el),ne&&ut(ne,W),(le=q.props&&q.props.onVnodeUpdated)&&ut(()=>Rt(le,oe,q,ge),W)}else{let q;const{el:V,props:ne}=N,{bm:oe,m:ge,parent:J}=O,le=Gr(N);if(Xn(O,!1),oe&&Fr(oe),!le&&(q=ne&&ne.onVnodeBeforeMount)&&Rt(q,J,N),Xn(O,!0),V&&ye){const Se=()=>{O.subTree=Ca(O),ye(V,O.subTree,O,W,null)};le?N.type.__asyncLoader().then(()=>!O.isUnmounted&&Se()):Se()}else{const Se=O.subTree=Ca(O);h(null,Se,F,$,O,W,ie),N.el=Se.el}if(ge&&ut(ge,W),!le&&(q=ne&&ne.onVnodeMounted)){const Se=N;ut(()=>Rt(q,J,Se),W)}(N.shapeFlag&256||J&&Gr(J.vnode)&&J.vnode.shapeFlag&256)&&O.a&&ut(O.a,W),O.isMounted=!0,N=F=$=null}},K=O.effect=new x_(D,()=>k_(G),O.scope),G=O.update=()=>K.run();G.id=O.uid,Xn(O,!0),G()},I=(O,N,F)=>{N.component=O;const $=O.vnode.props;O.vnode=N,O.next=null,V0(O,N.props,$,F),$0(O,N.children,F),os(),am(),is()},Q=(O,N,F,$,W,ie,me,D,K=!1)=>{const G=O&&O.children,q=O?O.shapeFlag:0,V=N.children,{patchFlag:ne,shapeFlag:oe}=N;if(ne>0){if(ne&128){X(G,V,F,$,W,ie,me,D,K);return}else if(ne&256){re(G,V,F,$,W,ie,me,D,K);return}}oe&8?(q&16&&Ee(G,W,ie),V!==G&&c(F,V)):q&16?oe&16?X(G,V,F,$,W,ie,me,D,K):Ee(G,W,ie,!0):(q&8&&c(F,""),oe&16&&y(V,F,$,W,ie,me,D,K))},re=(O,N,F,$,W,ie,me,D,K)=>{O=O||Lr,N=N||Lr;const G=O.length,q=N.length,V=Math.min(G,q);let ne;for(ne=0;neq?Ee(O,W,ie,!0,!1,V):y(N,F,$,W,ie,me,D,K,V)},X=(O,N,F,$,W,ie,me,D,K)=>{let G=0;const q=N.length;let V=O.length-1,ne=q-1;for(;G<=V&&G<=ne;){const oe=O[G],ge=N[G]=K?Dn(N[G]):$t(N[G]);if(Bn(oe,ge))h(oe,ge,F,null,W,ie,me,D,K);else break;G++}for(;G<=V&&G<=ne;){const oe=O[V],ge=N[ne]=K?Dn(N[ne]):$t(N[ne]);if(Bn(oe,ge))h(oe,ge,F,null,W,ie,me,D,K);else break;V--,ne--}if(G>V){if(G<=ne){const oe=ne+1,ge=oene)for(;G<=V;)ee(O[G],W,ie,!0),G++;else{const oe=G,ge=G,J=new Map;for(G=ge;G<=ne;G++){const et=N[G]=K?Dn(N[G]):$t(N[G]);et.key!=null&&J.set(et.key,G)}let le,Se=0;const Oe=ne-ge+1;let Le=!1,Ge=0;const rt=new Array(Oe);for(G=0;G=Oe){ee(et,W,ie,!0);continue}let Xe;if(et.key!=null)Xe=J.get(et.key);else for(le=ge;le<=ne;le++)if(rt[le-ge]===0&&Bn(et,N[le])){Xe=le;break}Xe===void 0?ee(et,W,ie,!0):(rt[Xe-ge]=G+1,Xe>=Ge?Ge=Xe:Le=!0,h(et,N[Xe],F,null,W,ie,me,D,K),Se++)}const Ze=Le?Q0(rt):Lr;for(le=Ze.length-1,G=Oe-1;G>=0;G--){const et=ge+G,Xe=N[et],Fe=et+1{const{el:ie,type:me,transition:D,children:K,shapeFlag:G}=O;if(G&6){pe(O.component.subTree,N,F,$);return}if(G&128){O.suspense.move(N,F,$);return}if(G&64){me.move(O,N,F,Y);return}if(me===we){r(ie,N,F);for(let V=0;VD.enter(ie),W);else{const{leave:V,delayLeave:ne,afterLeave:oe}=D,ge=()=>r(ie,N,F),J=()=>{V(ie,()=>{ge(),oe&&oe()})};ne?ne(ie,ge,J):J()}else r(ie,N,F)},ee=(O,N,F,$=!1,W=!1)=>{const{type:ie,props:me,ref:D,children:K,dynamicChildren:G,shapeFlag:q,patchFlag:V,dirs:ne}=O;if(D!=null&&Hu(D,null,F,O,!0),q&256){N.ctx.deactivate(O);return}const oe=q&1&&ne,ge=!Gr(O);let J;if(ge&&(J=me&&me.onVnodeBeforeUnmount)&&Rt(J,N,O),q&6)fe(O.component,F,$);else{if(q&128){O.suspense.unmount(F,$);return}oe&&Zn(O,null,N,"beforeUnmount"),q&64?O.type.remove(O,N,F,W,Y,$):G&&(ie!==we||V>0&&V&64)?Ee(G,N,F,!1,!0):(ie===we&&V&384||!W&&q&16)&&Ee(K,N,F),$&&be(O)}(ge&&(J=me&&me.onVnodeUnmounted)||oe)&&ut(()=>{J&&Rt(J,N,O),oe&&Zn(O,null,N,"unmounted")},F)},be=O=>{const{type:N,el:F,anchor:$,transition:W}=O;if(N===we){Te(F,$);return}if(N===zo){C(O);return}const ie=()=>{s(F),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(O.shapeFlag&1&&W&&!W.persisted){const{leave:me,delayLeave:D}=W,K=()=>me(F,ie);D?D(O.el,ie,K):K()}else ie()},Te=(O,N)=>{let F;for(;O!==N;)F=p(O),s(O),O=F;s(N)},fe=(O,N,F)=>{const{bum:$,scope:W,update:ie,subTree:me,um:D}=O;$&&Fr($),W.stop(),ie&&(ie.active=!1,ee(me,O,N,F)),D&&ut(D,N),ut(()=>{O.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},Ee=(O,N,F,$=!1,W=!1,ie=0)=>{for(let me=ie;meO.shapeFlag&6?z(O.component.subTree):O.shapeFlag&128?O.suspense.next():p(O.anchor||O.el),te=(O,N,F)=>{O==null?N._vnode&&ee(N._vnode,null,null,!0):h(N._vnode||null,O,N,null,null,null,F),am(),VS(),N._vnode=O},Y={p:h,um:ee,m:pe,r:be,mt:B,mc:y,pc:Q,pbc:w,n:z,o:t};let ue,ye;return e&&([ue,ye]=e(Y)),{render:te,hydrate:ue,createApp:q0(te,ue)}}function Xn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function uy(t,e,n=!1){const r=t.children,s=e.children;if(Ie(r)&&Ie(s))for(let o=0;o>1,t[n[a]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}const j0=t=>t.__isTeleport,we=Symbol.for("v-fgt"),ki=Symbol.for("v-txt"),Nt=Symbol.for("v-cmt"),zo=Symbol.for("v-stc"),ws=[];let Ut=null;function v(t=!1){ws.push(Ut=t?null:[])}function Z0(){ws.pop(),Ut=ws[ws.length-1]||null}let Vs=1;function bm(t){Vs+=t}function _y(t){return t.dynamicChildren=Vs>0?Ut||Lr:null,Z0(),Vs>0&&Ut&&Ut.push(t),t}function T(t,e,n,r,s,o){return _y(d(t,e,n,r,s,o,!0))}function nt(t,e,n,r,s){return _y(he(t,e,n,r,s,!0))}function zs(t){return t?t.__v_isVNode===!0:!1}function Bn(t,e){return t.type===e.type&&t.key===e.key}const Mi="__vInternal",py=({key:t})=>t??null,Ho=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?st(t)||mt(t)||Me(t)?{i:_t,r:t,k:e,f:!!n}:t:null);function d(t,e=null,n=null,r=0,s=null,o=t===we?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&py(e),ref:e&&Ho(e),scopeId:wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_t};return a?(q_(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=st(n)?8:16),Vs>0&&!i&&Ut&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ut.push(l),l}const he=X0;function X0(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===ty)&&(t=Nt),zs(t)){const a=En(t,e,!0);return n&&q_(a,n),Vs>0&&!o&&Ut&&(a.shapeFlag&6?Ut[Ut.indexOf(t)]=a:Ut.push(a)),a.patchFlag|=-2,a}if(lR(t)&&(t=t.__vccOpts),e){e=J0(e);let{class:a,style:l}=e;a&&!st(a)&&(e.class=Ae(a)),je(l)&&(MS(l)&&!Ie(l)&&(l=ot({},l)),e.style=ht(l))}const i=st(t)?1:$S(t)?128:j0(t)?64:je(t)?4:Me(t)?2:0;return d(t,e,n,r,s,i,o,!0)}function J0(t){return t?MS(t)||Mi in t?ot({},t):t:null}function En(t,e,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=t,a=e?eR(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&py(a),ref:e&&e.ref?n&&s?Ie(s)?s.concat(Ho(e)):[s,Ho(e)]:Ho(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==we?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&En(t.ssContent),ssFallback:t.ssFallback&&En(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Re(t=" ",e=0){return he(ki,null,t,e)}function G_(t,e){const n=he(zo,null,t);return n.staticCount=e,n}function U(t="",e=!1){return e?(v(),nt(Nt,null,t)):he(Nt,null,t)}function $t(t){return t==null||typeof t=="boolean"?he(Nt):Ie(t)?he(we,null,t.slice()):typeof t=="object"?Dn(t):he(ki,null,String(t))}function Dn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:En(t)}function q_(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Ie(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),q_(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Mi in e)?e._ctx=_t:s===3&&_t&&(_t.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:_t},n=32):(e=String(e),r&64?(n=16,e=[Re(e)]):n=8);t.children=e,t.shapeFlag|=n}function eR(...t){const e={};for(let n=0;nct||_t;let V_,Rr,Sm="__VUE_INSTANCE_SETTERS__";(Rr=Lu()[Sm])||(Rr=Lu()[Sm]=[]),Rr.push(t=>ct=t),V_=t=>{Rr.length>1?Rr.forEach(e=>e(t)):Rr[0](t)};const zr=t=>{V_(t),t.scope.on()},cr=()=>{ct&&ct.scope.off(),V_(null)};function my(t){return t.vnode.shapeFlag&4}let Hs=!1;function sR(t,e=!1){Hs=e;const{props:n,children:r}=t.vnode,s=my(t);Y0(t,n,s,e),H0(t,r);const o=s?oR(t,e):void 0;return Hs=!1,o}function oR(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=LS(new Proxy(t.ctx,M0));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?aR(t):null;zr(t),os();const o=Yn(r,t,0,[t.props,s]);if(is(),cr(),fS(o)){if(o.then(cr,cr),e)return o.then(i=>{ym(t,i,e)}).catch(i=>{Ai(i,t,0)});t.asyncDep=o}else ym(t,o,e)}else gy(t,e)}function ym(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:je(e)&&(t.setupState=GS(e)),gy(t,n)}let vm;function gy(t,e,n){const r=t.type;if(!t.render){if(!e&&vm&&!r.render){const s=r.template||U_(t).template;if(s){const{isCustomElement:o,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=ot(ot({isCustomElement:o,delimiters:a},i),l);r.render=vm(s,u)}}t.render=r.render||Bt}zr(t),os(),L0(t),is(),cr()}function iR(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return St(t,"get","$attrs"),e[n]}}))}function aR(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return iR(t)},slots:t.slots,emit:t.emit,expose:e}}function Li(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(GS(LS(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ns)return Ns[n](t)},has(e,n){return n in e||n in Ns}}))}function $u(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function lR(t){return Me(t)&&"__vccOpts"in t}const Ot=(t,e)=>a0(t,e,Hs);function z_(t,e,n){const r=arguments.length;return r===2?je(e)&&!Ie(e)?zs(e)?he(t,null,[e]):he(t,e):he(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zs(n)&&(n=[n]),he(t,e,n))}const cR=Symbol.for("v-scx"),dR=()=>mn(cR),uR="3.3.4",_R="http://www.w3.org/2000/svg",rr=typeof document<"u"?document:null,Tm=rr&&rr.createElement("template"),pR={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?rr.createElementNS(_R,t):rr.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>rr.createTextNode(t),createComment:t=>rr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>rr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const i=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Tm.innerHTML=r?`${t}`:t;const a=Tm.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function mR(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function gR(t,e,n){const r=t.style,s=st(n);if(n&&!s){if(e&&!st(e))for(const o in e)n[o]==null&&Wu(r,o,"");for(const o in n)Wu(r,o,n[o])}else{const o=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=o)}}const Cm=/\s*!important$/;function Wu(t,e,n){if(Ie(n))n.forEach(r=>Wu(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=fR(t,e);Cm.test(n)?t.setProperty(fr(r),n.replace(Cm,""),"important"):t[r]=n}}const Rm=["Webkit","Moz","ms"],Na={};function fR(t,e){const n=Na[e];if(n)return n;let r=tn(e);if(r!=="filter"&&r in t)return Na[e]=r;r=xi(r);for(let s=0;swa||(vR.then(()=>wa=0),wa=Date.now());function CR(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;At(RR(r,n.value),e,5,[r])};return n.value=t,n.attached=TR(),n}function RR(t,e){if(Ie(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const Am=/^on[a-z]/,xR=(t,e,n,r,s=!1,o,i,a,l)=>{e==="class"?mR(t,r,s):e==="style"?gR(t,n,r):Ci(e)?y_(e)||SR(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OR(t,e,r,s))?ER(t,e,r,o,i,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),hR(t,e,r,s))};function OR(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Am.test(e)&&Me(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Am.test(e)&&st(n)?!1:e in t}const An="transition",hs="animation",Hr=(t,{slots:e})=>z_(y0,hy(t),e);Hr.displayName="Transition";const fy={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},AR=Hr.props=ot({},jS,fy),Jn=(t,e=[])=>{Ie(t)?t.forEach(n=>n(...e)):t&&t(...e)},Nm=t=>t?Ie(t)?t.some(e=>e.length>1):t.length>1:!1;function hy(t){const e={};for(const M in t)M in fy||(e[M]=t[M]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:_=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,f=NR(s),h=f&&f[0],E=f&&f[1],{onBeforeEnter:b,onEnter:m,onEnterCancelled:S,onLeave:C,onLeaveCancelled:A,onBeforeAppear:x=b,onAppear:k=m,onAppearCancelled:y=S}=e,R=(M,Z,B)=>{In(M,Z?c:a),In(M,Z?u:i),B&&B()},w=(M,Z)=>{M._isLeaving=!1,In(M,_),In(M,g),In(M,p),Z&&Z()},L=M=>(Z,B)=>{const se=M?k:m,H=()=>R(Z,M,B);Jn(se,[Z,H]),wm(()=>{In(Z,M?l:o),dn(Z,M?c:a),Nm(se)||Im(Z,r,h,H)})};return ot(e,{onBeforeEnter(M){Jn(b,[M]),dn(M,o),dn(M,i)},onBeforeAppear(M){Jn(x,[M]),dn(M,l),dn(M,u)},onEnter:L(!1),onAppear:L(!0),onLeave(M,Z){M._isLeaving=!0;const B=()=>w(M,Z);dn(M,_),by(),dn(M,p),wm(()=>{M._isLeaving&&(In(M,_),dn(M,g),Nm(C)||Im(M,r,E,B))}),Jn(C,[M,B])},onEnterCancelled(M){R(M,!1),Jn(S,[M])},onAppearCancelled(M){R(M,!0),Jn(y,[M])},onLeaveCancelled(M){w(M),Jn(A,[M])}})}function NR(t){if(t==null)return null;if(je(t))return[Ia(t.enter),Ia(t.leave)];{const e=Ia(t);return[e,e]}}function Ia(t){return SC(t)}function dn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function In(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function wm(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let wR=0;function Im(t,e,n,r){const s=t._endId=++wR,o=()=>{s===t._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=Ey(t,e);if(!i)return r();const u=i+"end";let c=0;const _=()=>{t.removeEventListener(u,p),o()},p=g=>{g.target===t&&++c>=l&&_()};setTimeout(()=>{c(n[f]||"").split(", "),s=r(`${An}Delay`),o=r(`${An}Duration`),i=Dm(s,o),a=r(`${hs}Delay`),l=r(`${hs}Duration`),u=Dm(a,l);let c=null,_=0,p=0;e===An?i>0&&(c=An,_=i,p=o.length):e===hs?u>0&&(c=hs,_=u,p=l.length):(_=Math.max(i,u),c=_>0?i>u?An:hs:null,p=c?c===An?o.length:l.length:0);const g=c===An&&/\b(transform|all)(,|$)/.test(r(`${An}Property`).toString());return{type:c,timeout:_,propCount:p,hasTransform:g}}function Dm(t,e){for(;t.lengthkm(n)+km(t[r])))}function km(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function by(){return document.body.offsetHeight}const Sy=new WeakMap,yy=new WeakMap,vy={name:"TransitionGroup",props:ot({},AR,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Y_(),r=QS();let s,o;return L_(()=>{if(!s.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!LR(s[0].el,n.vnode.el,i))return;s.forEach(DR),s.forEach(kR);const a=s.filter(MR);by(),a.forEach(l=>{const u=l.el,c=u.style;dn(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const _=u._moveCb=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",_),u._moveCb=null,In(u,i))};u.addEventListener("transitionend",_)})}),()=>{const i=He(t),a=hy(i);let l=i.tag||we;s=o,o=e.default?M_(e.default()):[];for(let u=0;udelete t.mode;vy.props;const gn=vy;function DR(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function kR(t){yy.set(t,t.el.getBoundingClientRect())}function MR(t){const e=Sy.get(t),n=yy.get(t),r=e.left-n.left,s=e.top-n.top;if(r||s){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",t}}function LR(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=Ey(r);return s.removeChild(r),o}const $n=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ie(e)?n=>Fr(e,n):e};function PR(t){t.target.composing=!0}function Mm(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const De={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t._assign=$n(s);const o=r||s.props&&s.props.type==="number";pn(t,e?"change":"input",i=>{if(i.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=ti(a)),t._assign(a)}),n&&pn(t,"change",()=>{t.value=t.value.trim()}),e||(pn(t,"compositionstart",PR),pn(t,"compositionend",Mm),pn(t,"change",Mm))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:s}},o){if(t._assign=$n(o),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(s||t.type==="number")&&ti(t.value)===e))return;const i=e??"";t.value!==i&&(t.value=i)}},tt={deep:!0,created(t,e,n){t._assign=$n(n),pn(t,"change",()=>{const r=t._modelValue,s=$r(t),o=t.checked,i=t._assign;if(Ie(r)){const a=C_(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const u=[...r];u.splice(a,1),i(u)}}else if(rs(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(Ty(t,o))})},mounted:Lm,beforeUpdate(t,e,n){t._assign=$n(n),Lm(t,e,n)}};function Lm(t,{value:e,oldValue:n},r){t._modelValue=e,Ie(e)?t.checked=C_(e,r.props.value)>-1:rs(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=_r(e,Ty(t,!0)))}const FR={created(t,{value:e},n){t.checked=_r(e,n.props.value),t._assign=$n(n),pn(t,"change",()=>{t._assign($r(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=$n(r),e!==n&&(t.checked=_r(e,r.props.value))}},Kt={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=rs(e);pn(t,"change",()=>{const o=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?ti($r(i)):$r(i));t._assign(t.multiple?s?new Set(o):o:o[0])}),t._assign=$n(r)},mounted(t,{value:e}){Pm(t,e)},beforeUpdate(t,e,n){t._assign=$n(n)},updated(t,{value:e}){Pm(t,e)}};function Pm(t,e){const n=t.multiple;if(!(n&&!Ie(e)&&!rs(e))){for(let r=0,s=t.options.length;r-1:o.selected=e.has(i);else if(_r($r(o),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $r(t){return"_value"in t?t._value:t.value}function Ty(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const UR=["ctrl","shift","alt","meta"],BR={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>UR.some(n=>t[`${n}Key`]&&!e.includes(n))},_e=(t,e)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=fr(n.key);if(e.some(s=>s===r||GR[s]===r))return t(n)},We={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Es(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Es(t,!0),r.enter(t)):r.leave(t,()=>{Es(t,!1)}):Es(t,e))},beforeUnmount(t,{value:e}){Es(t,e)}};function Es(t,e){t.style.display=e?t._vod:"none"}const qR=ot({patchProp:xR},pR);let Fm;function YR(){return Fm||(Fm=W0(qR))}const VR=(...t)=>{const e=YR().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=zR(r);if(!s)return;const o=e._component;!Me(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},e};function zR(t){return st(t)?document.querySelector(t):t}function HR(){return Cy().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Cy(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const $R=typeof Proxy=="function",WR="devtools-plugin:setup",KR="plugin:settings:set";let xr,Ku;function QR(){var t;return xr!==void 0||(typeof window<"u"&&window.performance?(xr=!0,Ku=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(xr=!0,Ku=global.perf_hooks.performance):xr=!1),xr}function jR(){return QR()?Ku.now():Date.now()}class ZR{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const i in e.settings){const a=e.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return jR()}},n&&n.on(KR,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,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(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function XR(t,e){const n=t,r=Cy(),s=HR(),o=$R&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(WR,t,e);else{const i=o?new ZR(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.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"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function S_(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}const Je={},Lr=[],Bt=()=>{},pC=()=>!1,mC=/^on[^a-z]/,Ci=t=>mC.test(t),y_=t=>t.startsWith("onUpdate:"),ot=Object.assign,v_=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},gC=Object.prototype.hasOwnProperty,ze=(t,e)=>gC.call(t,e),we=Array.isArray,Pr=t=>ss(t)==="[object Map]",rs=t=>ss(t)==="[object Set]",Xp=t=>ss(t)==="[object Date]",fC=t=>ss(t)==="[object RegExp]",Me=t=>typeof t=="function",st=t=>typeof t=="string",Fs=t=>typeof t=="symbol",je=t=>t!==null&&typeof t=="object",fS=t=>je(t)&&Me(t.then)&&Me(t.catch),hS=Object.prototype.toString,ss=t=>hS.call(t),hC=t=>ss(t).slice(8,-1),ES=t=>ss(t)==="[object Object]",T_=t=>st(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Yo=S_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ri=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},EC=/-(\w)/g,tn=Ri(t=>t.replace(EC,(e,n)=>n?n.toUpperCase():"")),bC=/\B([A-Z])/g,fr=Ri(t=>t.replace(bC,"-$1").toLowerCase()),xi=Ri(t=>t.charAt(0).toUpperCase()+t.slice(1)),Ta=Ri(t=>t?`on${xi(t)}`:""),Us=(t,e)=>!Object.is(t,e),Fr=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},ti=t=>{const e=parseFloat(t);return isNaN(e)?t:e},SC=t=>{const e=st(t)?Number(t):NaN;return isNaN(e)?t:e};let Jp;const Lu=()=>Jp||(Jp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ht(t){if(we(t)){const e={};for(let n=0;n{if(n){const r=n.split(vC);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ae(t){let e="";if(st(t))e=t;else if(we(t))for(let n=0;n_r(n,e))}const j=t=>st(t)?t:t==null?"":we(t)||je(t)&&(t.toString===hS||!Me(t.toString))?JSON.stringify(t,SS,2):String(t),SS=(t,e)=>e&&e.__v_isRef?SS(t,e.value):Pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:rs(e)?{[`Set(${e.size})`]:[...e.values()]}:je(e)&&!we(e)&&!ES(e)?String(e):e;let Lt;class yS{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Lt,!e&&Lt&&(this.index=(Lt.scopes||(Lt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Lt;try{return Lt=this,e()}finally{Lt=n}}}on(){Lt=this}off(){Lt=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},vS=t=>(t.w&Hn)>0,TS=t=>(t.n&Hn)>0,IC=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":we(t)?T_(n)&&a.push(i.get("length")):(a.push(i.get(lr)),Pr(t)&&a.push(i.get(Uu)));break;case"delete":we(t)||(a.push(i.get(lr)),Pr(t)&&a.push(i.get(Uu)));break;case"set":Pr(t)&&a.push(i.get(lr));break}if(a.length===1)a[0]&&Bu(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Bu(R_(l))}}function Bu(t,e){const n=we(t)?t:[...t];for(const r of n)r.computed&&tm(r);for(const r of n)r.computed||tm(r)}function tm(t,e){(t!==Ft||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const kC=S_("__proto__,__v_isRef,__isVue"),xS=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Fs)),MC=O_(),LC=O_(!1,!0),PC=O_(!0),nm=FC();function FC(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=He(this);for(let o=0,i=this.length;o{t[e]=function(...n){os();const r=He(this)[e].apply(this,n);return is(),r}}),t}function UC(t){const e=He(this);return St(e,"has",t),e.hasOwnProperty(t)}function O_(t=!1,e=!1){return function(r,s,o){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&o===(t?e?e0:IS:e?wS:NS).get(r))return r;const i=we(r);if(!t){if(i&&ze(nm,s))return Reflect.get(nm,s,o);if(s==="hasOwnProperty")return UC}const a=Reflect.get(r,s,o);return(Fs(s)?xS.has(s):kC(s))||(t||St(r,"get",s),e)?a:mt(a)?i&&T_(s)?a:a.value:je(a)?t?kS(a):eo(a):a}}const BC=OS(),GC=OS(!0);function OS(t=!1){return function(n,r,s,o){let i=n[r];if(Yr(i)&&mt(i)&&!mt(s))return!1;if(!t&&(!ni(s)&&!Yr(s)&&(i=He(i),s=He(s)),!we(n)&&mt(i)&&!mt(s)))return i.value=s,!0;const a=we(n)&&T_(r)?Number(r)t,Oi=t=>Reflect.getPrototypeOf(t);function vo(t,e,n=!1,r=!1){t=t.__v_raw;const s=He(t),o=He(e);n||(e!==o&&St(s,"get",e),St(s,"get",o));const{has:i}=Oi(s),a=r?A_:n?I_:Bs;if(i.call(s,e))return a(t.get(e));if(i.call(s,o))return a(t.get(o));t!==s&&t.get(e)}function To(t,e=!1){const n=this.__v_raw,r=He(n),s=He(t);return e||(t!==s&&St(r,"has",t),St(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Co(t,e=!1){return t=t.__v_raw,!e&&St(He(t),"iterate",lr),Reflect.get(t,"size",t)}function rm(t){t=He(t);const e=He(this);return Oi(e).has.call(e,t)||(e.add(t),hn(e,"add",t,t)),this}function sm(t,e){e=He(e);const n=He(this),{has:r,get:s}=Oi(n);let o=r.call(n,t);o||(t=He(t),o=r.call(n,t));const i=s.call(n,t);return n.set(t,e),o?Us(e,i)&&hn(n,"set",t,e):hn(n,"add",t,e),this}function om(t){const e=He(this),{has:n,get:r}=Oi(e);let s=n.call(e,t);s||(t=He(t),s=n.call(e,t)),r&&r.call(e,t);const o=e.delete(t);return s&&hn(e,"delete",t,void 0),o}function im(){const t=He(this),e=t.size!==0,n=t.clear();return e&&hn(t,"clear",void 0,void 0),n}function Ro(t,e){return function(r,s){const o=this,i=o.__v_raw,a=He(i),l=e?A_:t?I_:Bs;return!t&&St(a,"iterate",lr),i.forEach((u,c)=>r.call(s,l(u),l(c),o))}}function xo(t,e,n){return function(...r){const s=this.__v_raw,o=He(s),i=Pr(o),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,u=s[t](...r),c=n?A_:e?I_:Bs;return!e&&St(o,"iterate",l?Uu:lr),{next(){const{value:_,done:p}=u.next();return p?{value:_,done:p}:{value:a?[c(_[0]),c(_[1])]:c(_),done:p}},[Symbol.iterator](){return this}}}}function On(t){return function(...e){return t==="delete"?!1:this}}function $C(){const t={get(o){return vo(this,o)},get size(){return Co(this)},has:To,add:rm,set:sm,delete:om,clear:im,forEach:Ro(!1,!1)},e={get(o){return vo(this,o,!1,!0)},get size(){return Co(this)},has:To,add:rm,set:sm,delete:om,clear:im,forEach:Ro(!1,!0)},n={get(o){return vo(this,o,!0)},get size(){return Co(this,!0)},has(o){return To.call(this,o,!0)},add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear"),forEach:Ro(!0,!1)},r={get(o){return vo(this,o,!0,!0)},get size(){return Co(this,!0)},has(o){return To.call(this,o,!0)},add:On("add"),set:On("set"),delete:On("delete"),clear:On("clear"),forEach:Ro(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=xo(o,!1,!1),n[o]=xo(o,!0,!1),e[o]=xo(o,!1,!0),r[o]=xo(o,!0,!0)}),[t,n,e,r]}const[WC,KC,QC,jC]=$C();function N_(t,e){const n=e?t?jC:QC:t?KC:WC;return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ze(n,s)&&s in r?n:r,s,o)}const ZC={get:N_(!1,!1)},XC={get:N_(!1,!0)},JC={get:N_(!0,!1)},NS=new WeakMap,wS=new WeakMap,IS=new WeakMap,e0=new WeakMap;function t0(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function n0(t){return t.__v_skip||!Object.isExtensible(t)?0:t0(hC(t))}function eo(t){return Yr(t)?t:w_(t,!1,AS,ZC,NS)}function DS(t){return w_(t,!1,HC,XC,wS)}function kS(t){return w_(t,!0,zC,JC,IS)}function w_(t,e,n,r,s){if(!je(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=n0(t);if(i===0)return t;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function Ur(t){return Yr(t)?Ur(t.__v_raw):!!(t&&t.__v_isReactive)}function Yr(t){return!!(t&&t.__v_isReadonly)}function ni(t){return!!(t&&t.__v_isShallow)}function MS(t){return Ur(t)||Yr(t)}function He(t){const e=t&&t.__v_raw;return e?He(e):t}function LS(t){return ei(t,"__v_skip",!0),t}const Bs=t=>je(t)?eo(t):t,I_=t=>je(t)?kS(t):t;function PS(t){qn&&Ft&&(t=He(t),RS(t.dep||(t.dep=R_())))}function FS(t,e){t=He(t);const n=t.dep;n&&Bu(n)}function mt(t){return!!(t&&t.__v_isRef===!0)}function US(t){return BS(t,!1)}function r0(t){return BS(t,!0)}function BS(t,e){return mt(t)?t:new s0(t,e)}class s0{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:He(e),this._value=n?e:Bs(e)}get value(){return PS(this),this._value}set value(e){const n=this.__v_isShallow||ni(e)||Yr(e);e=n?e:He(e),Us(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Bs(e),FS(this))}}function lt(t){return mt(t)?t.value:t}const o0={get:(t,e,n)=>lt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return mt(s)&&!mt(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function GS(t){return Ur(t)?t:new Proxy(t,o0)}class i0{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new x_(e,()=>{this._dirty||(this._dirty=!0,FS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=He(this);return PS(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function a0(t,e,n=!1){let r,s;const o=Me(t);return o?(r=t,s=Bt):(r=t.get,s=t.set),new i0(r,s,o||!s,n)}function Yn(t,e,n,r){let s;try{s=r?t(...r):t()}catch(o){Ai(o,e,n)}return s}function At(t,e,n,r){if(Me(t)){const o=Yn(t,e,n,r);return o&&fS(o)&&o.catch(i=>{Ai(i,e,n)}),o}const s=[];for(let o=0;o>>1;qs(pt[r])Wt&&pt.splice(e,1)}function u0(t){we(t)?Br.push(...t):(!un||!un.includes(t,t.allowRecurse?nr+1:nr))&&Br.push(t),YS()}function am(t,e=Gs?Wt+1:0){for(;eqs(n)-qs(r)),nr=0;nrt.id==null?1/0:t.id,_0=(t,e)=>{const n=qs(t)-qs(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function zS(t){Gu=!1,Gs=!0,pt.sort(_0);const e=Bt;try{for(Wt=0;Wtst(g)?g.trim():g)),_&&(s=n.map(ti))}let a,l=r[a=Ta(e)]||r[a=Ta(tn(e))];!l&&o&&(l=r[a=Ta(fr(e))]),l&&At(l,t,6,s);const u=r[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,At(u,t,6,s)}}function HS(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let i={},a=!1;if(!Me(t)){const l=u=>{const c=HS(u,e,!0);c&&(a=!0,ot(i,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(je(t)&&r.set(t,null),null):(we(o)?o.forEach(l=>i[l]=null):ot(i,o),je(t)&&r.set(t,i),i)}function Ni(t,e){return!t||!Ci(e)?!1:(e=e.slice(2).replace(/Once$/,""),ze(t,e[0].toLowerCase()+e.slice(1))||ze(t,fr(e))||ze(t,e))}let _t=null,wi=null;function ri(t){const e=_t;return _t=t,wi=t&&t.type.__scopeId||null,e}function hr(t){wi=t}function Er(){wi=null}function ke(t,e=_t,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&bm(-1);const o=ri(e);let i;try{i=t(...s)}finally{ri(o),r._d&&bm(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ca(t){const{type:e,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:a,attrs:l,emit:u,render:c,renderCache:_,data:p,setupState:g,ctx:f,inheritAttrs:h}=t;let E,b;const m=ri(t);try{if(n.shapeFlag&4){const C=s||r;E=$t(c.call(C,C,_,o,g,p,f)),b=l}else{const C=e;E=$t(C.length>1?C(o,{attrs:l,slots:a,emit:u}):C(o,null)),b=e.props?l:m0(l)}}catch(C){ws.length=0,Ai(C,t,1),E=he(Nt)}let S=E;if(b&&h!==!1){const C=Object.keys(b),{shapeFlag:A}=S;C.length&&A&7&&(i&&C.some(y_)&&(b=g0(b,i)),S=En(S,b))}return n.dirs&&(S=En(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),E=S,ri(m),E}const m0=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ci(n))&&((e||(e={}))[n]=t[n]);return e},g0=(t,e)=>{const n={};for(const r in t)(!y_(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function f0(t,e,n){const{props:r,children:s,component:o}=t,{props:i,children:a,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?lm(r,i,u):!!i;if(l&8){const c=e.dynamicProps;for(let _=0;_t.__isSuspense;function E0(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):u0(t)}const Oo={};function Vn(t,e,n){return WS(t,e,n)}function WS(t,e,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Je){var a;const l=wC()===((a=ct)==null?void 0:a.scope)?ct:null;let u,c=!1,_=!1;if(mt(t)?(u=()=>t.value,c=ni(t)):Ur(t)?(u=()=>t,r=!0):we(t)?(_=!0,c=t.some(C=>Ur(C)||ni(C)),u=()=>t.map(C=>{if(mt(C))return C.value;if(Ur(C))return ir(C);if(Me(C))return Yn(C,l,2)})):Me(t)?e?u=()=>Yn(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return p&&p(),At(t,l,3,[g])}:u=Bt,e&&r){const C=u;u=()=>ir(C())}let p,g=C=>{p=m.onStop=()=>{Yn(C,l,4)}},f;if(Hs)if(g=Bt,e?n&&At(e,l,3,[u(),_?[]:void 0,g]):u(),s==="sync"){const C=dR();f=C.__watcherHandles||(C.__watcherHandles=[])}else return Bt;let h=_?new Array(t.length).fill(Oo):Oo;const E=()=>{if(m.active)if(e){const C=m.run();(r||c||(_?C.some((A,x)=>Us(A,h[x])):Us(C,h)))&&(p&&p(),At(e,l,3,[C,h===Oo?void 0:_&&h[0]===Oo?[]:h,g]),h=C)}else m.run()};E.allowRecurse=!!e;let b;s==="sync"?b=E:s==="post"?b=()=>ut(E,l&&l.suspense):(E.pre=!0,l&&(E.id=l.uid),b=()=>k_(E));const m=new x_(u,b);e?n?E():h=m.run():s==="post"?ut(m.run.bind(m),l&&l.suspense):m.run();const S=()=>{m.stop(),l&&l.scope&&v_(l.scope.effects,m)};return f&&f.push(S),S}function b0(t,e,n){const r=this.proxy,s=st(t)?t.includes(".")?KS(r,t):()=>r[t]:t.bind(r,r);let o;Me(e)?o=e:(o=e.handler,n=e);const i=ct;zr(this);const a=WS(s,o.bind(r),n);return i?zr(i):cr(),a}function KS(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s{ir(n,e)});else if(ES(t))for(const n in t)ir(t[n],e);return t}function ce(t,e){const n=_t;if(n===null)return t;const r=Li(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o{t.isMounted=!0}),P_(()=>{t.isUnmounting=!0}),t}const Ct=[Function,Array],jS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ct,onEnter:Ct,onAfterEnter:Ct,onEnterCancelled:Ct,onBeforeLeave:Ct,onLeave:Ct,onAfterLeave:Ct,onLeaveCancelled:Ct,onBeforeAppear:Ct,onAppear:Ct,onAfterAppear:Ct,onAppearCancelled:Ct},S0={name:"BaseTransition",props:jS,setup(t,{slots:e}){const n=Y_(),r=QS();let s;return()=>{const o=e.default&&M_(e.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const h of o)if(h.type!==Nt){i=h;break}}const a=He(t),{mode:l}=a;if(r.isLeaving)return Ra(i);const u=cm(i);if(!u)return Ra(i);const c=Ys(u,a,r,n);Vr(u,c);const _=n.subTree,p=_&&cm(_);let g=!1;const{getTransitionKey:f}=u.type;if(f){const h=f();s===void 0?s=h:h!==s&&(s=h,g=!0)}if(p&&p.type!==Nt&&(!Bn(u,p)||g)){const h=Ys(p,a,r,n);if(Vr(p,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ra(i);l==="in-out"&&u.type!==Nt&&(h.delayLeave=(E,b,m)=>{const S=ZS(r,p);S[String(p.key)]=p,E._leaveCb=()=>{b(),E._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return i}}},y0=S0;function ZS(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Ys(t,e,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:_,onLeave:p,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:h,onAppear:E,onAfterAppear:b,onAppearCancelled:m}=e,S=String(t.key),C=ZS(n,t),A=(y,R)=>{y&&At(y,r,9,R)},x=(y,R)=>{const w=R[1];A(y,R),we(y)?y.every(L=>L.length<=1)&&w():y.length<=1&&w()},k={mode:o,persisted:i,beforeEnter(y){let R=a;if(!n.isMounted)if(s)R=h||a;else return;y._leaveCb&&y._leaveCb(!0);const w=C[S];w&&Bn(t,w)&&w.el._leaveCb&&w.el._leaveCb(),A(R,[y])},enter(y){let R=l,w=u,L=c;if(!n.isMounted)if(s)R=E||l,w=b||u,L=m||c;else return;let M=!1;const Z=y._enterCb=B=>{M||(M=!0,B?A(L,[y]):A(w,[y]),k.delayedLeave&&k.delayedLeave(),y._enterCb=void 0)};R?x(R,[y,Z]):Z()},leave(y,R){const w=String(t.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return R();A(_,[y]);let L=!1;const M=y._leaveCb=Z=>{L||(L=!0,R(),Z?A(f,[y]):A(g,[y]),y._leaveCb=void 0,C[w]===t&&delete C[w])};C[w]=t,p?x(p,[y,M]):M()},clone(y){return Ys(y,e,n,r)}};return k}function Ra(t){if(Ii(t))return t=En(t),t.children=null,t}function cm(t){return Ii(t)?t.children?t.children[0]:void 0:t}function Vr(t,e){t.shapeFlag&6&&t.component?Vr(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function M_(t,e=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;oot({name:t.name},e,{setup:t}))():t}const Gr=t=>!!t.type.__asyncLoader,Ii=t=>t.type.__isKeepAlive,v0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Y_(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:_}}}=r,p=_("div");r.activate=(m,S,C,A,x)=>{const k=m.component;u(m,S,C,0,a),l(k.vnode,m,S,C,k,a,A,m.slotScopeIds,x),ut(()=>{k.isDeactivated=!1,k.a&&Fr(k.a);const y=m.props&&m.props.onVnodeMounted;y&&Rt(y,k.parent,m)},a)},r.deactivate=m=>{const S=m.component;u(m,p,null,1,a),ut(()=>{S.da&&Fr(S.da);const C=m.props&&m.props.onVnodeUnmounted;C&&Rt(C,S.parent,m),S.isDeactivated=!0},a)};function g(m){xa(m),c(m,n,a,!0)}function f(m){s.forEach((S,C)=>{const A=$u(S.type);A&&(!m||!m(A))&&h(C)})}function h(m){const S=s.get(m);!i||!Bn(S,i)?g(S):i&&xa(i),s.delete(m),o.delete(m)}Vn(()=>[t.include,t.exclude],([m,S])=>{m&&f(C=>xs(m,C)),S&&f(C=>!xs(S,C))},{flush:"post",deep:!0});let E=null;const b=()=>{E!=null&&s.set(E,Oa(n.subTree))};return to(b),L_(b),P_(()=>{s.forEach(m=>{const{subTree:S,suspense:C}=n,A=Oa(S);if(m.type===A.type&&m.key===A.key){xa(A);const x=A.component.da;x&&ut(x,C);return}g(m)})}),()=>{if(E=null,!e.default)return null;const m=e.default(),S=m[0];if(m.length>1)return i=null,m;if(!zs(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return i=null,S;let C=Oa(S);const A=C.type,x=$u(Gr(C)?C.type.__asyncResolved||{}:A),{include:k,exclude:y,max:R}=t;if(k&&(!x||!xs(k,x))||y&&x&&xs(y,x))return i=C,S;const w=C.key==null?A:C.key,L=s.get(w);return C.el&&(C=En(C),S.shapeFlag&128&&(S.ssContent=C)),E=w,L?(C.el=L.el,C.component=L.component,C.transition&&Vr(C,C.transition),C.shapeFlag|=512,o.delete(w),o.add(w)):(o.add(w),R&&o.size>parseInt(R,10)&&h(o.values().next().value)),C.shapeFlag|=256,i=C,$S(S.type)?S:C}}},T0=v0;function xs(t,e){return we(t)?t.some(n=>xs(n,e)):st(t)?t.split(",").includes(e):fC(t)?t.test(e):!1}function C0(t,e){JS(t,"a",e)}function R0(t,e){JS(t,"da",e)}function JS(t,e,n=ct){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Di(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Ii(s.parent.vnode)&&x0(r,e,n,s),s=s.parent}}function x0(t,e,n,r){const s=Di(e,t,r,!0);ey(()=>{v_(r[e],s)},n)}function xa(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Oa(t){return t.shapeFlag&128?t.ssContent:t}function Di(t,e,n=ct,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{if(n.isUnmounted)return;os(),zr(n);const a=At(e,n,t,i);return cr(),is(),a});return r?s.unshift(o):s.push(o),o}}const Sn=t=>(e,n=ct)=>(!Hs||t==="sp")&&Di(t,(...r)=>e(...r),n),O0=Sn("bm"),to=Sn("m"),A0=Sn("bu"),L_=Sn("u"),P_=Sn("bum"),ey=Sn("um"),N0=Sn("sp"),w0=Sn("rtg"),I0=Sn("rtc");function D0(t,e=ct){Di("ec",t,e)}const F_="components";function Pe(t,e){return ny(F_,t,!0,e)||t}const ty=Symbol.for("v-ndc");function k0(t){return st(t)?ny(F_,t,!1)||t:t||ty}function ny(t,e,n=!0,r=!1){const s=_t||ct;if(s){const o=s.type;if(t===F_){const a=$u(o,!1);if(a&&(a===e||a===tn(e)||a===xi(tn(e))))return o}const i=dm(s[t]||o[t],e)||dm(s.appContext[t],e);return!i&&r?o:i}}function dm(t,e){return t&&(t[e]||t[tn(e)]||t[xi(tn(e))])}function Be(t,e,n,r){let s;const o=n&&n[r];if(we(t)||st(t)){s=new Array(t.length);for(let i=0,a=t.length;ie(i,a,void 0,o&&o[a]));else{const i=Object.keys(t);s=new Array(i.length);for(let a=0,l=i.length;azs(e)?!(e.type===Nt||e.type===Ne&&!ry(e.children)):!0)?t:null}const qu=t=>t?my(t)?Li(t)||t.proxy:qu(t.parent):null,Ns=ot(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qu(t.parent),$root:t=>qu(t.root),$emit:t=>t.emit,$options:t=>U_(t),$forceUpdate:t=>t.f||(t.f=()=>k_(t.update)),$nextTick:t=>t.n||(t.n=ve.bind(t.proxy)),$watch:t=>b0.bind(t)}),Aa=(t,e)=>t!==Je&&!t.__isScriptSetup&&ze(t,e),M0={get({_:t},e){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const g=i[e];if(g!==void 0)switch(g){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Aa(r,e))return i[e]=1,r[e];if(s!==Je&&ze(s,e))return i[e]=2,s[e];if((u=t.propsOptions[0])&&ze(u,e))return i[e]=3,o[e];if(n!==Je&&ze(n,e))return i[e]=4,n[e];Yu&&(i[e]=0)}}const c=Ns[e];let _,p;if(c)return e==="$attrs"&&St(t,"get",e),c(t);if((_=a.__cssModules)&&(_=_[e]))return _;if(n!==Je&&ze(n,e))return i[e]=4,n[e];if(p=l.config.globalProperties,ze(p,e))return p[e]},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return Aa(s,e)?(s[e]=n,!0):r!==Je&&ze(r,e)?(r[e]=n,!0):ze(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||t!==Je&&ze(t,i)||Aa(e,i)||(a=o[0])&&ze(a,i)||ze(r,i)||ze(Ns,i)||ze(s.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ze(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function um(t){return we(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let Yu=!0;function L0(t){const e=U_(t),n=t.proxy,r=t.ctx;Yu=!1,e.beforeCreate&&_m(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:_,mounted:p,beforeUpdate:g,updated:f,activated:h,deactivated:E,beforeDestroy:b,beforeUnmount:m,destroyed:S,unmounted:C,render:A,renderTracked:x,renderTriggered:k,errorCaptured:y,serverPrefetch:R,expose:w,inheritAttrs:L,components:M,directives:Z,filters:B}=e;if(u&&P0(u,r,null),i)for(const I in i){const Q=i[I];Me(Q)&&(r[I]=Q.bind(n))}if(s){const I=s.call(n,n);je(I)&&(t.data=eo(I))}if(Yu=!0,o)for(const I in o){const Q=o[I],re=Me(Q)?Q.bind(n,n):Me(Q.get)?Q.get.bind(n,n):Bt,X=!Me(Q)&&Me(Q.set)?Q.set.bind(n):Bt,pe=Ot({get:re,set:X});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ee=>pe.value=ee})}if(a)for(const I in a)sy(a[I],r,n,I);if(l){const I=Me(l)?l.call(n):l;Reflect.ownKeys(I).forEach(Q=>{Vo(Q,I[Q])})}c&&_m(c,t,"c");function H(I,Q){we(Q)?Q.forEach(re=>I(re.bind(n))):Q&&I(Q.bind(n))}if(H(O0,_),H(to,p),H(A0,g),H(L_,f),H(C0,h),H(R0,E),H(D0,y),H(I0,x),H(w0,k),H(P_,m),H(ey,C),H(N0,R),we(w))if(w.length){const I=t.exposed||(t.exposed={});w.forEach(Q=>{Object.defineProperty(I,Q,{get:()=>n[Q],set:re=>n[Q]=re})})}else t.exposed||(t.exposed={});A&&t.render===Bt&&(t.render=A),L!=null&&(t.inheritAttrs=L),M&&(t.components=M),Z&&(t.directives=Z)}function P0(t,e,n=Bt){we(t)&&(t=Vu(t));for(const r in t){const s=t[r];let o;je(s)?"default"in s?o=mn(s.from||r,s.default,!0):o=mn(s.from||r):o=mn(s),mt(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):e[r]=o}}function _m(t,e,n){At(we(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function sy(t,e,n,r){const s=r.includes(".")?KS(n,r):()=>n[r];if(st(t)){const o=e[t];Me(o)&&Vn(s,o)}else if(Me(t))Vn(s,t.bind(n));else if(je(t))if(we(t))t.forEach(o=>sy(o,e,n,r));else{const o=Me(t.handler)?t.handler.bind(n):e[t.handler];Me(o)&&Vn(s,o,t)}}function U_(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=t.appContext,a=o.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(u=>oi(l,u,i,!0)),oi(l,e,i)),je(e)&&o.set(e,l),l}function oi(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&oi(t,o,n,!0),s&&s.forEach(i=>oi(t,i,n,!0));for(const i in e)if(!(r&&i==="expose")){const a=F0[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const F0={data:pm,props:mm,emits:mm,methods:Os,computed:Os,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:Os,directives:Os,watch:B0,provide:pm,inject:U0};function pm(t,e){return e?t?function(){return ot(Me(t)?t.call(this,this):t,Me(e)?e.call(this,this):e)}:e:t}function U0(t,e){return Os(Vu(t),Vu(e))}function Vu(t){if(we(t)){const e={};for(let n=0;n1)return n&&Me(e)?e.call(r&&r.proxy):e}}function Y0(t,e,n,r=!1){const s={},o={};ei(o,Mi,1),t.propsDefaults=Object.create(null),iy(t,e,s,o);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);n?t.props=r?s:DS(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function V0(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=t,a=He(s),[l]=t.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=t.vnode.dynamicProps;for(let _=0;_{l=!0;const[p,g]=ay(_,e,!0);ot(i,p),g&&a.push(...g)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!l)return je(t)&&r.set(t,Lr),Lr;if(we(o))for(let c=0;c-1,g[1]=h<0||f-1||ze(g,"default"))&&a.push(_)}}}const u=[i,a];return je(t)&&r.set(t,u),u}function gm(t){return t[0]!=="$"}function fm(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function hm(t,e){return fm(t)===fm(e)}function Em(t,e){return we(e)?e.findIndex(n=>hm(n,t)):Me(e)&&hm(e,t)?0:-1}const ly=t=>t[0]==="_"||t==="$stable",B_=t=>we(t)?t.map($t):[$t(t)],z0=(t,e,n)=>{if(e._n)return e;const r=ke((...s)=>B_(e(...s)),n);return r._c=!1,r},cy=(t,e,n)=>{const r=t._ctx;for(const s in t){if(ly(s))continue;const o=t[s];if(Me(o))e[s]=z0(s,o,r);else if(o!=null){const i=B_(o);e[s]=()=>i}}},dy=(t,e)=>{const n=B_(e);t.slots.default=()=>n},H0=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=He(e),ei(e,"_",n)):cy(e,t.slots={})}else t.slots={},e&&dy(t,e);ei(t.slots,Mi,1)},$0=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,i=Je;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:(ot(s,e),!n&&a===1&&delete s._):(o=!e.$stable,cy(e,s)),i=e}else e&&(dy(t,e),i={default:1});if(o)for(const a in s)!ly(a)&&!(a in i)&&delete s[a]};function Hu(t,e,n,r,s=!1){if(we(t)){t.forEach((p,g)=>Hu(p,e&&(we(e)?e[g]:e),n,r,s));return}if(Gr(r)&&!s)return;const o=r.shapeFlag&4?Li(r.component)||r.component.proxy:r.el,i=s?null:o,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Je?a.refs={}:a.refs,_=a.setupState;if(u!=null&&u!==l&&(st(u)?(c[u]=null,ze(_,u)&&(_[u]=null)):mt(u)&&(u.value=null)),Me(l))Yn(l,a,12,[i,c]);else{const p=st(l),g=mt(l);if(p||g){const f=()=>{if(t.f){const h=p?ze(_,l)?_[l]:c[l]:l.value;s?we(h)&&v_(h,o):we(h)?h.includes(o)||h.push(o):p?(c[l]=[o],ze(_,l)&&(_[l]=c[l])):(l.value=[o],t.k&&(c[t.k]=l.value))}else p?(c[l]=i,ze(_,l)&&(_[l]=i)):g&&(l.value=i,t.k&&(c[t.k]=i))};i?(f.id=-1,ut(f,n)):f()}}}const ut=E0;function W0(t){return K0(t)}function K0(t,e){const n=Lu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:_,nextSibling:p,setScopeId:g=Bt,insertStaticContent:f}=t,h=(O,N,F,$=null,W=null,ie=null,me=!1,D=null,K=!!N.dynamicChildren)=>{if(O===N)return;O&&!Bn(O,N)&&($=z(O),ee(O,W,ie,!0),O=null),N.patchFlag===-2&&(K=!1,N.dynamicChildren=null);const{type:G,ref:q,shapeFlag:V}=N;switch(G){case ki:E(O,N,F,$);break;case Nt:b(O,N,F,$);break;case zo:O==null&&m(N,F,$,me);break;case Ne:M(O,N,F,$,W,ie,me,D,K);break;default:V&1?A(O,N,F,$,W,ie,me,D,K):V&6?Z(O,N,F,$,W,ie,me,D,K):(V&64||V&128)&&G.process(O,N,F,$,W,ie,me,D,K,Y)}q!=null&&W&&Hu(q,O&&O.ref,ie,N||O,!N)},E=(O,N,F,$)=>{if(O==null)r(N.el=a(N.children),F,$);else{const W=N.el=O.el;N.children!==O.children&&u(W,N.children)}},b=(O,N,F,$)=>{O==null?r(N.el=l(N.children||""),F,$):N.el=O.el},m=(O,N,F,$)=>{[O.el,O.anchor]=f(O.children,N,F,$,O.el,O.anchor)},S=({el:O,anchor:N},F,$)=>{let W;for(;O&&O!==N;)W=p(O),r(O,F,$),O=W;r(N,F,$)},C=({el:O,anchor:N})=>{let F;for(;O&&O!==N;)F=p(O),s(O),O=F;s(N)},A=(O,N,F,$,W,ie,me,D,K)=>{me=me||N.type==="svg",O==null?x(N,F,$,W,ie,me,D,K):R(O,N,W,ie,me,D,K)},x=(O,N,F,$,W,ie,me,D)=>{let K,G;const{type:q,props:V,shapeFlag:ne,transition:oe,dirs:ge}=O;if(K=O.el=i(O.type,ie,V&&V.is,V),ne&8?c(K,O.children):ne&16&&y(O.children,K,null,$,W,ie&&q!=="foreignObject",me,D),ge&&Zn(O,null,$,"created"),k(K,O,O.scopeId,me,$),V){for(const le in V)le!=="value"&&!Yo(le)&&o(K,le,null,V[le],ie,O.children,$,W,Ee);"value"in V&&o(K,"value",null,V.value),(G=V.onVnodeBeforeMount)&&Rt(G,$,O)}ge&&Zn(O,null,$,"beforeMount");const J=(!W||W&&!W.pendingBranch)&&oe&&!oe.persisted;J&&oe.beforeEnter(K),r(K,N,F),((G=V&&V.onVnodeMounted)||J||ge)&&ut(()=>{G&&Rt(G,$,O),J&&oe.enter(K),ge&&Zn(O,null,$,"mounted")},W)},k=(O,N,F,$,W)=>{if(F&&g(O,F),$)for(let ie=0;ie<$.length;ie++)g(O,$[ie]);if(W){let ie=W.subTree;if(N===ie){const me=W.vnode;k(O,me,me.scopeId,me.slotScopeIds,W.parent)}}},y=(O,N,F,$,W,ie,me,D,K=0)=>{for(let G=K;G{const D=N.el=O.el;let{patchFlag:K,dynamicChildren:G,dirs:q}=N;K|=O.patchFlag&16;const V=O.props||Je,ne=N.props||Je;let oe;F&&Xn(F,!1),(oe=ne.onVnodeBeforeUpdate)&&Rt(oe,F,N,O),q&&Zn(N,O,F,"beforeUpdate"),F&&Xn(F,!0);const ge=W&&N.type!=="foreignObject";if(G?w(O.dynamicChildren,G,D,F,$,ge,ie):me||Q(O,N,D,null,F,$,ge,ie,!1),K>0){if(K&16)L(D,N,V,ne,F,$,W);else if(K&2&&V.class!==ne.class&&o(D,"class",null,ne.class,W),K&4&&o(D,"style",V.style,ne.style,W),K&8){const J=N.dynamicProps;for(let le=0;le{oe&&Rt(oe,F,N,O),q&&Zn(N,O,F,"updated")},$)},w=(O,N,F,$,W,ie,me)=>{for(let D=0;D{if(F!==$){if(F!==Je)for(const D in F)!Yo(D)&&!(D in $)&&o(O,D,F[D],null,me,N.children,W,ie,Ee);for(const D in $){if(Yo(D))continue;const K=$[D],G=F[D];K!==G&&D!=="value"&&o(O,D,G,K,me,N.children,W,ie,Ee)}"value"in $&&o(O,"value",F.value,$.value)}},M=(O,N,F,$,W,ie,me,D,K)=>{const G=N.el=O?O.el:a(""),q=N.anchor=O?O.anchor:a("");let{patchFlag:V,dynamicChildren:ne,slotScopeIds:oe}=N;oe&&(D=D?D.concat(oe):oe),O==null?(r(G,F,$),r(q,F,$),y(N.children,F,q,W,ie,me,D,K)):V>0&&V&64&&ne&&O.dynamicChildren?(w(O.dynamicChildren,ne,F,W,ie,me,D),(N.key!=null||W&&N===W.subTree)&&uy(O,N,!0)):Q(O,N,F,q,W,ie,me,D,K)},Z=(O,N,F,$,W,ie,me,D,K)=>{N.slotScopeIds=D,O==null?N.shapeFlag&512?W.ctx.activate(N,F,$,me,K):B(N,F,$,W,ie,me,K):se(O,N,K)},B=(O,N,F,$,W,ie,me)=>{const D=O.component=rR(O,$,W);if(Ii(O)&&(D.ctx.renderer=Y),sR(D),D.asyncDep){if(W&&W.registerDep(D,H),!O.el){const K=D.subTree=he(Nt);b(null,K,N,F)}return}H(D,O,N,F,W,ie,me)},se=(O,N,F)=>{const $=N.component=O.component;if(f0(O,N,F))if($.asyncDep&&!$.asyncResolved){I($,N,F);return}else $.next=N,d0($.update),$.update();else N.el=O.el,$.vnode=N},H=(O,N,F,$,W,ie,me)=>{const D=()=>{if(O.isMounted){let{next:q,bu:V,u:ne,parent:oe,vnode:ge}=O,J=q,le;Xn(O,!1),q?(q.el=ge.el,I(O,q,me)):q=ge,V&&Fr(V),(le=q.props&&q.props.onVnodeBeforeUpdate)&&Rt(le,oe,q,ge),Xn(O,!0);const Se=Ca(O),Oe=O.subTree;O.subTree=Se,h(Oe,Se,_(Oe.el),z(Oe),O,W,ie),q.el=Se.el,J===null&&h0(O,Se.el),ne&&ut(ne,W),(le=q.props&&q.props.onVnodeUpdated)&&ut(()=>Rt(le,oe,q,ge),W)}else{let q;const{el:V,props:ne}=N,{bm:oe,m:ge,parent:J}=O,le=Gr(N);if(Xn(O,!1),oe&&Fr(oe),!le&&(q=ne&&ne.onVnodeBeforeMount)&&Rt(q,J,N),Xn(O,!0),V&&ye){const Se=()=>{O.subTree=Ca(O),ye(V,O.subTree,O,W,null)};le?N.type.__asyncLoader().then(()=>!O.isUnmounted&&Se()):Se()}else{const Se=O.subTree=Ca(O);h(null,Se,F,$,O,W,ie),N.el=Se.el}if(ge&&ut(ge,W),!le&&(q=ne&&ne.onVnodeMounted)){const Se=N;ut(()=>Rt(q,J,Se),W)}(N.shapeFlag&256||J&&Gr(J.vnode)&&J.vnode.shapeFlag&256)&&O.a&&ut(O.a,W),O.isMounted=!0,N=F=$=null}},K=O.effect=new x_(D,()=>k_(G),O.scope),G=O.update=()=>K.run();G.id=O.uid,Xn(O,!0),G()},I=(O,N,F)=>{N.component=O;const $=O.vnode.props;O.vnode=N,O.next=null,V0(O,N.props,$,F),$0(O,N.children,F),os(),am(),is()},Q=(O,N,F,$,W,ie,me,D,K=!1)=>{const G=O&&O.children,q=O?O.shapeFlag:0,V=N.children,{patchFlag:ne,shapeFlag:oe}=N;if(ne>0){if(ne&128){X(G,V,F,$,W,ie,me,D,K);return}else if(ne&256){re(G,V,F,$,W,ie,me,D,K);return}}oe&8?(q&16&&Ee(G,W,ie),V!==G&&c(F,V)):q&16?oe&16?X(G,V,F,$,W,ie,me,D,K):Ee(G,W,ie,!0):(q&8&&c(F,""),oe&16&&y(V,F,$,W,ie,me,D,K))},re=(O,N,F,$,W,ie,me,D,K)=>{O=O||Lr,N=N||Lr;const G=O.length,q=N.length,V=Math.min(G,q);let ne;for(ne=0;neq?Ee(O,W,ie,!0,!1,V):y(N,F,$,W,ie,me,D,K,V)},X=(O,N,F,$,W,ie,me,D,K)=>{let G=0;const q=N.length;let V=O.length-1,ne=q-1;for(;G<=V&&G<=ne;){const oe=O[G],ge=N[G]=K?Dn(N[G]):$t(N[G]);if(Bn(oe,ge))h(oe,ge,F,null,W,ie,me,D,K);else break;G++}for(;G<=V&&G<=ne;){const oe=O[V],ge=N[ne]=K?Dn(N[ne]):$t(N[ne]);if(Bn(oe,ge))h(oe,ge,F,null,W,ie,me,D,K);else break;V--,ne--}if(G>V){if(G<=ne){const oe=ne+1,ge=oene)for(;G<=V;)ee(O[G],W,ie,!0),G++;else{const oe=G,ge=G,J=new Map;for(G=ge;G<=ne;G++){const et=N[G]=K?Dn(N[G]):$t(N[G]);et.key!=null&&J.set(et.key,G)}let le,Se=0;const Oe=ne-ge+1;let Le=!1,Ge=0;const rt=new Array(Oe);for(G=0;G=Oe){ee(et,W,ie,!0);continue}let Xe;if(et.key!=null)Xe=J.get(et.key);else for(le=ge;le<=ne;le++)if(rt[le-ge]===0&&Bn(et,N[le])){Xe=le;break}Xe===void 0?ee(et,W,ie,!0):(rt[Xe-ge]=G+1,Xe>=Ge?Ge=Xe:Le=!0,h(et,N[Xe],F,null,W,ie,me,D,K),Se++)}const Ze=Le?Q0(rt):Lr;for(le=Ze.length-1,G=Oe-1;G>=0;G--){const et=ge+G,Xe=N[et],Fe=et+1{const{el:ie,type:me,transition:D,children:K,shapeFlag:G}=O;if(G&6){pe(O.component.subTree,N,F,$);return}if(G&128){O.suspense.move(N,F,$);return}if(G&64){me.move(O,N,F,Y);return}if(me===Ne){r(ie,N,F);for(let V=0;VD.enter(ie),W);else{const{leave:V,delayLeave:ne,afterLeave:oe}=D,ge=()=>r(ie,N,F),J=()=>{V(ie,()=>{ge(),oe&&oe()})};ne?ne(ie,ge,J):J()}else r(ie,N,F)},ee=(O,N,F,$=!1,W=!1)=>{const{type:ie,props:me,ref:D,children:K,dynamicChildren:G,shapeFlag:q,patchFlag:V,dirs:ne}=O;if(D!=null&&Hu(D,null,F,O,!0),q&256){N.ctx.deactivate(O);return}const oe=q&1&&ne,ge=!Gr(O);let J;if(ge&&(J=me&&me.onVnodeBeforeUnmount)&&Rt(J,N,O),q&6)fe(O.component,F,$);else{if(q&128){O.suspense.unmount(F,$);return}oe&&Zn(O,null,N,"beforeUnmount"),q&64?O.type.remove(O,N,F,W,Y,$):G&&(ie!==Ne||V>0&&V&64)?Ee(G,N,F,!1,!0):(ie===Ne&&V&384||!W&&q&16)&&Ee(K,N,F),$&&be(O)}(ge&&(J=me&&me.onVnodeUnmounted)||oe)&&ut(()=>{J&&Rt(J,N,O),oe&&Zn(O,null,N,"unmounted")},F)},be=O=>{const{type:N,el:F,anchor:$,transition:W}=O;if(N===Ne){Te(F,$);return}if(N===zo){C(O);return}const ie=()=>{s(F),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(O.shapeFlag&1&&W&&!W.persisted){const{leave:me,delayLeave:D}=W,K=()=>me(F,ie);D?D(O.el,ie,K):K()}else ie()},Te=(O,N)=>{let F;for(;O!==N;)F=p(O),s(O),O=F;s(N)},fe=(O,N,F)=>{const{bum:$,scope:W,update:ie,subTree:me,um:D}=O;$&&Fr($),W.stop(),ie&&(ie.active=!1,ee(me,O,N,F)),D&&ut(D,N),ut(()=>{O.isUnmounted=!0},N),N&&N.pendingBranch&&!N.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===N.pendingId&&(N.deps--,N.deps===0&&N.resolve())},Ee=(O,N,F,$=!1,W=!1,ie=0)=>{for(let me=ie;meO.shapeFlag&6?z(O.component.subTree):O.shapeFlag&128?O.suspense.next():p(O.anchor||O.el),te=(O,N,F)=>{O==null?N._vnode&&ee(N._vnode,null,null,!0):h(N._vnode||null,O,N,null,null,null,F),am(),VS(),N._vnode=O},Y={p:h,um:ee,m:pe,r:be,mt:B,mc:y,pc:Q,pbc:w,n:z,o:t};let ue,ye;return e&&([ue,ye]=e(Y)),{render:te,hydrate:ue,createApp:q0(te,ue)}}function Xn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function uy(t,e,n=!1){const r=t.children,s=e.children;if(we(r)&&we(s))for(let o=0;o>1,t[n[a]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}const j0=t=>t.__isTeleport,Ne=Symbol.for("v-fgt"),ki=Symbol.for("v-txt"),Nt=Symbol.for("v-cmt"),zo=Symbol.for("v-stc"),ws=[];let Ut=null;function v(t=!1){ws.push(Ut=t?null:[])}function Z0(){ws.pop(),Ut=ws[ws.length-1]||null}let Vs=1;function bm(t){Vs+=t}function _y(t){return t.dynamicChildren=Vs>0?Ut||Lr:null,Z0(),Vs>0&&Ut&&Ut.push(t),t}function T(t,e,n,r,s,o){return _y(d(t,e,n,r,s,o,!0))}function nt(t,e,n,r,s){return _y(he(t,e,n,r,s,!0))}function zs(t){return t?t.__v_isVNode===!0:!1}function Bn(t,e){return t.type===e.type&&t.key===e.key}const Mi="__vInternal",py=({key:t})=>t??null,Ho=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?st(t)||mt(t)||Me(t)?{i:_t,r:t,k:e,f:!!n}:t:null);function d(t,e=null,n=null,r=0,s=null,o=t===Ne?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&py(e),ref:e&&Ho(e),scopeId:wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_t};return a?(q_(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=st(n)?8:16),Vs>0&&!i&&Ut&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ut.push(l),l}const he=X0;function X0(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===ty)&&(t=Nt),zs(t)){const a=En(t,e,!0);return n&&q_(a,n),Vs>0&&!o&&Ut&&(a.shapeFlag&6?Ut[Ut.indexOf(t)]=a:Ut.push(a)),a.patchFlag|=-2,a}if(lR(t)&&(t=t.__vccOpts),e){e=J0(e);let{class:a,style:l}=e;a&&!st(a)&&(e.class=Ae(a)),je(l)&&(MS(l)&&!we(l)&&(l=ot({},l)),e.style=ht(l))}const i=st(t)?1:$S(t)?128:j0(t)?64:je(t)?4:Me(t)?2:0;return d(t,e,n,r,s,i,o,!0)}function J0(t){return t?MS(t)||Mi in t?ot({},t):t:null}function En(t,e,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=t,a=e?eR(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&py(a),ref:e&&e.ref?n&&s?we(s)?s.concat(Ho(e)):[s,Ho(e)]:Ho(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ne?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&En(t.ssContent),ssFallback:t.ssFallback&&En(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Re(t=" ",e=0){return he(ki,null,t,e)}function G_(t,e){const n=he(zo,null,t);return n.staticCount=e,n}function U(t="",e=!1){return e?(v(),nt(Nt,null,t)):he(Nt,null,t)}function $t(t){return t==null||typeof t=="boolean"?he(Nt):we(t)?he(Ne,null,t.slice()):typeof t=="object"?Dn(t):he(ki,null,String(t))}function Dn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:En(t)}function q_(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(we(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),q_(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Mi in e)?e._ctx=_t:s===3&&_t&&(_t.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Me(e)?(e={default:e,_ctx:_t},n=32):(e=String(e),r&64?(n=16,e=[Re(e)]):n=8);t.children=e,t.shapeFlag|=n}function eR(...t){const e={};for(let n=0;nct||_t;let V_,Rr,Sm="__VUE_INSTANCE_SETTERS__";(Rr=Lu()[Sm])||(Rr=Lu()[Sm]=[]),Rr.push(t=>ct=t),V_=t=>{Rr.length>1?Rr.forEach(e=>e(t)):Rr[0](t)};const zr=t=>{V_(t),t.scope.on()},cr=()=>{ct&&ct.scope.off(),V_(null)};function my(t){return t.vnode.shapeFlag&4}let Hs=!1;function sR(t,e=!1){Hs=e;const{props:n,children:r}=t.vnode,s=my(t);Y0(t,n,s,e),H0(t,r);const o=s?oR(t,e):void 0;return Hs=!1,o}function oR(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=LS(new Proxy(t.ctx,M0));const{setup:r}=n;if(r){const s=t.setupContext=r.length>1?aR(t):null;zr(t),os();const o=Yn(r,t,0,[t.props,s]);if(is(),cr(),fS(o)){if(o.then(cr,cr),e)return o.then(i=>{ym(t,i,e)}).catch(i=>{Ai(i,t,0)});t.asyncDep=o}else ym(t,o,e)}else gy(t,e)}function ym(t,e,n){Me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:je(e)&&(t.setupState=GS(e)),gy(t,n)}let vm;function gy(t,e,n){const r=t.type;if(!t.render){if(!e&&vm&&!r.render){const s=r.template||U_(t).template;if(s){const{isCustomElement:o,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,u=ot(ot({isCustomElement:o,delimiters:a},i),l);r.render=vm(s,u)}}t.render=r.render||Bt}zr(t),os(),L0(t),is(),cr()}function iR(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return St(t,"get","$attrs"),e[n]}}))}function aR(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return iR(t)},slots:t.slots,emit:t.emit,expose:e}}function Li(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(GS(LS(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ns)return Ns[n](t)},has(e,n){return n in e||n in Ns}}))}function $u(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function lR(t){return Me(t)&&"__vccOpts"in t}const Ot=(t,e)=>a0(t,e,Hs);function z_(t,e,n){const r=arguments.length;return r===2?je(e)&&!we(e)?zs(e)?he(t,null,[e]):he(t,e):he(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zs(n)&&(n=[n]),he(t,e,n))}const cR=Symbol.for("v-scx"),dR=()=>mn(cR),uR="3.3.4",_R="http://www.w3.org/2000/svg",rr=typeof document<"u"?document:null,Tm=rr&&rr.createElement("template"),pR={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e?rr.createElementNS(_R,t):rr.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>rr.createTextNode(t),createComment:t=>rr.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>rr.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const i=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Tm.innerHTML=r?`${t}`:t;const a=Tm.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function mR(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function gR(t,e,n){const r=t.style,s=st(n);if(n&&!s){if(e&&!st(e))for(const o in e)n[o]==null&&Wu(r,o,"");for(const o in n)Wu(r,o,n[o])}else{const o=r.display;s?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=o)}}const Cm=/\s*!important$/;function Wu(t,e,n){if(we(n))n.forEach(r=>Wu(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=fR(t,e);Cm.test(n)?t.setProperty(fr(r),n.replace(Cm,""),"important"):t[r]=n}}const Rm=["Webkit","Moz","ms"],Na={};function fR(t,e){const n=Na[e];if(n)return n;let r=tn(e);if(r!=="filter"&&r in t)return Na[e]=r;r=xi(r);for(let s=0;swa||(vR.then(()=>wa=0),wa=Date.now());function CR(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;At(RR(r,n.value),e,5,[r])};return n.value=t,n.attached=TR(),n}function RR(t,e){if(we(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const Am=/^on[a-z]/,xR=(t,e,n,r,s=!1,o,i,a,l)=>{e==="class"?mR(t,r,s):e==="style"?gR(t,n,r):Ci(e)?y_(e)||SR(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OR(t,e,r,s))?ER(t,e,r,o,i,a,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),hR(t,e,r,s))};function OR(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&Am.test(e)&&Me(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Am.test(e)&&st(n)?!1:e in t}const An="transition",hs="animation",Hr=(t,{slots:e})=>z_(y0,hy(t),e);Hr.displayName="Transition";const fy={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},AR=Hr.props=ot({},jS,fy),Jn=(t,e=[])=>{we(t)?t.forEach(n=>n(...e)):t&&t(...e)},Nm=t=>t?we(t)?t.some(e=>e.length>1):t.length>1:!1;function hy(t){const e={};for(const M in t)M in fy||(e[M]=t[M]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:_=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=t,f=NR(s),h=f&&f[0],E=f&&f[1],{onBeforeEnter:b,onEnter:m,onEnterCancelled:S,onLeave:C,onLeaveCancelled:A,onBeforeAppear:x=b,onAppear:k=m,onAppearCancelled:y=S}=e,R=(M,Z,B)=>{In(M,Z?c:a),In(M,Z?u:i),B&&B()},w=(M,Z)=>{M._isLeaving=!1,In(M,_),In(M,g),In(M,p),Z&&Z()},L=M=>(Z,B)=>{const se=M?k:m,H=()=>R(Z,M,B);Jn(se,[Z,H]),wm(()=>{In(Z,M?l:o),dn(Z,M?c:a),Nm(se)||Im(Z,r,h,H)})};return ot(e,{onBeforeEnter(M){Jn(b,[M]),dn(M,o),dn(M,i)},onBeforeAppear(M){Jn(x,[M]),dn(M,l),dn(M,u)},onEnter:L(!1),onAppear:L(!0),onLeave(M,Z){M._isLeaving=!0;const B=()=>w(M,Z);dn(M,_),by(),dn(M,p),wm(()=>{M._isLeaving&&(In(M,_),dn(M,g),Nm(C)||Im(M,r,E,B))}),Jn(C,[M,B])},onEnterCancelled(M){R(M,!1),Jn(S,[M])},onAppearCancelled(M){R(M,!0),Jn(y,[M])},onLeaveCancelled(M){w(M),Jn(A,[M])}})}function NR(t){if(t==null)return null;if(je(t))return[Ia(t.enter),Ia(t.leave)];{const e=Ia(t);return[e,e]}}function Ia(t){return SC(t)}function dn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function In(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function wm(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let wR=0;function Im(t,e,n,r){const s=t._endId=++wR,o=()=>{s===t._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=Ey(t,e);if(!i)return r();const u=i+"end";let c=0;const _=()=>{t.removeEventListener(u,p),o()},p=g=>{g.target===t&&++c>=l&&_()};setTimeout(()=>{c(n[f]||"").split(", "),s=r(`${An}Delay`),o=r(`${An}Duration`),i=Dm(s,o),a=r(`${hs}Delay`),l=r(`${hs}Duration`),u=Dm(a,l);let c=null,_=0,p=0;e===An?i>0&&(c=An,_=i,p=o.length):e===hs?u>0&&(c=hs,_=u,p=l.length):(_=Math.max(i,u),c=_>0?i>u?An:hs:null,p=c?c===An?o.length:l.length:0);const g=c===An&&/\b(transform|all)(,|$)/.test(r(`${An}Property`).toString());return{type:c,timeout:_,propCount:p,hasTransform:g}}function Dm(t,e){for(;t.lengthkm(n)+km(t[r])))}function km(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function by(){return document.body.offsetHeight}const Sy=new WeakMap,yy=new WeakMap,vy={name:"TransitionGroup",props:ot({},AR,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Y_(),r=QS();let s,o;return L_(()=>{if(!s.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!LR(s[0].el,n.vnode.el,i))return;s.forEach(DR),s.forEach(kR);const a=s.filter(MR);by(),a.forEach(l=>{const u=l.el,c=u.style;dn(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const _=u._moveCb=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",_),u._moveCb=null,In(u,i))};u.addEventListener("transitionend",_)})}),()=>{const i=He(t),a=hy(i);let l=i.tag||Ne;s=o,o=e.default?M_(e.default()):[];for(let u=0;udelete t.mode;vy.props;const gn=vy;function DR(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function kR(t){yy.set(t,t.el.getBoundingClientRect())}function MR(t){const e=Sy.get(t),n=yy.get(t),r=e.left-n.left,s=e.top-n.top;if(r||s){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",t}}function LR(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=Ey(r);return s.removeChild(r),o}const $n=t=>{const e=t.props["onUpdate:modelValue"]||!1;return we(e)?n=>Fr(e,n):e};function PR(t){t.target.composing=!0}function Mm(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const De={created(t,{modifiers:{lazy:e,trim:n,number:r}},s){t._assign=$n(s);const o=r||s.props&&s.props.type==="number";pn(t,e?"change":"input",i=>{if(i.target.composing)return;let a=t.value;n&&(a=a.trim()),o&&(a=ti(a)),t._assign(a)}),n&&pn(t,"change",()=>{t.value=t.value.trim()}),e||(pn(t,"compositionstart",PR),pn(t,"compositionend",Mm),pn(t,"change",Mm))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:s}},o){if(t._assign=$n(o),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(s||t.type==="number")&&ti(t.value)===e))return;const i=e??"";t.value!==i&&(t.value=i)}},tt={deep:!0,created(t,e,n){t._assign=$n(n),pn(t,"change",()=>{const r=t._modelValue,s=$r(t),o=t.checked,i=t._assign;if(we(r)){const a=C_(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const u=[...r];u.splice(a,1),i(u)}}else if(rs(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(Ty(t,o))})},mounted:Lm,beforeUpdate(t,e,n){t._assign=$n(n),Lm(t,e,n)}};function Lm(t,{value:e,oldValue:n},r){t._modelValue=e,we(e)?t.checked=C_(e,r.props.value)>-1:rs(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=_r(e,Ty(t,!0)))}const FR={created(t,{value:e},n){t.checked=_r(e,n.props.value),t._assign=$n(n),pn(t,"change",()=>{t._assign($r(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=$n(r),e!==n&&(t.checked=_r(e,r.props.value))}},Kt={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=rs(e);pn(t,"change",()=>{const o=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?ti($r(i)):$r(i));t._assign(t.multiple?s?new Set(o):o:o[0])}),t._assign=$n(r)},mounted(t,{value:e}){Pm(t,e)},beforeUpdate(t,e,n){t._assign=$n(n)},updated(t,{value:e}){Pm(t,e)}};function Pm(t,e){const n=t.multiple;if(!(n&&!we(e)&&!rs(e))){for(let r=0,s=t.options.length;r-1:o.selected=e.has(i);else if(_r($r(o),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $r(t){return"_value"in t?t._value:t.value}function Ty(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const UR=["ctrl","shift","alt","meta"],BR={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>UR.some(n=>t[`${n}Key`]&&!e.includes(n))},_e=(t,e)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=fr(n.key);if(e.some(s=>s===r||GR[s]===r))return t(n)},We={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Es(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Es(t,!0),r.enter(t)):r.leave(t,()=>{Es(t,!1)}):Es(t,e))},beforeUnmount(t,{value:e}){Es(t,e)}};function Es(t,e){t.style.display=e?t._vod:"none"}const qR=ot({patchProp:xR},pR);let Fm;function YR(){return Fm||(Fm=W0(qR))}const VR=(...t)=>{const e=YR().createApp(...t),{mount:n}=e;return e.mount=r=>{const s=zR(r);if(!s)return;const o=e._component;!Me(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},e};function zR(t){return st(t)?document.querySelector(t):t}function HR(){return Cy().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Cy(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const $R=typeof Proxy=="function",WR="devtools-plugin:setup",KR="plugin:settings:set";let xr,Ku;function QR(){var t;return xr!==void 0||(typeof window<"u"&&window.performance?(xr=!0,Ku=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(xr=!0,Ku=global.perf_hooks.performance):xr=!1),xr}function jR(){return QR()?Ku.now():Date.now()}class ZR{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const i in e.settings){const a=e.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return jR()}},n&&n.on(KR,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,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(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function XR(t,e){const n=t,r=Cy(),s=HR(),o=$R&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(WR,t,e);else{const i=o?new ZR(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}/*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT @@ -15,7 +15,7 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(){var a=function(){function l(){}l.prototype=Object.create(null);function u(b,m){for(var S=m.length,C=0;C1?arguments[1]:void 0,m=b!==void 0,S=0,C=_(f),A,x,k,y;if(m&&(b=o(b,E>2?arguments[2]:void 0,2)),C!=null&&!(h==Array&&l(C)))for(y=C.call(f),x=new h;!(k=y.next()).done;S++)c(x,S,m?a(y,b,[k.value,S],!0):k.value);else for(A=u(f.length),x=new h(A);A>S;S++)c(x,S,m?b(f[S],S):f[S]);return x.length=S,x}},"./node_modules/core-js/internals/array-includes.js":function(n,r,s){var o=s("./node_modules/core-js/internals/to-indexed-object.js"),i=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(l){return function(u,c,_){var p=o(u),g=i(p.length),f=a(_,g),h;if(l&&c!=c){for(;g>f;)if(h=p[f++],h!=h)return!0}else for(;g>f;f++)if((l||f in p)&&p[f]===c)return l||f||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,s){var o=s("./node_modules/core-js/internals/a-function.js");n.exports=function(i,a,l){if(o(i),a===void 0)return i;switch(l){case 0:return function(){return i.call(a)};case 1:return function(u){return i.call(a,u)};case 2:return function(u,c){return i.call(a,u,c)};case 3:return function(u,c,_){return i.call(a,u,c,_)}}return function(){return i.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,s){var o=s("./node_modules/core-js/internals/an-object.js");n.exports=function(i,a,l,u){try{return u?a(o(l)[0],l[1]):a(l)}catch(_){var c=i.return;throw c!==void 0&&o(c.call(i)),_}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,s){var o=s("./node_modules/core-js/internals/well-known-symbol.js"),i=o("iterator"),a=!1;try{var l=0,u={next:function(){return{done:!!l++}},return:function(){a=!0}};u[i]=function(){return this},Array.from(u,function(){throw 2})}catch{}n.exports=function(c,_){if(!_&&!a)return!1;var p=!1;try{var g={};g[i]=function(){return{next:function(){return{done:p=!0}}}},c(g)}catch{}return p}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var s={}.toString;n.exports=function(o){return s.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,s){var o=s("./node_modules/core-js/internals/classof-raw.js"),i=s("./node_modules/core-js/internals/well-known-symbol.js"),a=i("toStringTag"),l=o(function(){return arguments}())=="Arguments",u=function(c,_){try{return c[_]}catch{}};n.exports=function(c){var _,p,g;return c===void 0?"Undefined":c===null?"Null":typeof(p=u(_=Object(c),a))=="string"?p:l?o(_):(g=o(_))=="Object"&&typeof _.callee=="function"?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,r,s){var o=s("./node_modules/core-js/internals/has.js"),i=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=s("./node_modules/core-js/internals/object-define-property.js");n.exports=function(u,c){for(var _=i(c),p=l.f,g=a.f,f=0;f<_.length;f++){var h=_[f];o(u,h)||p(u,h,g(c,h))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(n,r,s){var o=s("./node_modules/core-js/internals/fails.js");n.exports=!o(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(n,r,s){var o=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,i=s("./node_modules/core-js/internals/object-create.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/set-to-string-tag.js"),u=s("./node_modules/core-js/internals/iterators.js"),c=function(){return this};n.exports=function(_,p,g){var f=p+" Iterator";return _.prototype=i(o,{next:a(1,g)}),l(_,f,!1,!0),u[f]=c,_}},"./node_modules/core-js/internals/create-property-descriptor.js":function(n,r){n.exports=function(s,o){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(n,r,s){var o=s("./node_modules/core-js/internals/to-primitive.js"),i=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=function(l,u,c){var _=o(u);_ in l?i.f(l,_,a(0,c)):l[_]=c}},"./node_modules/core-js/internals/define-iterator.js":function(n,r,s){var o=s("./node_modules/core-js/internals/export.js"),i=s("./node_modules/core-js/internals/create-iterator-constructor.js"),a=s("./node_modules/core-js/internals/object-get-prototype-of.js"),l=s("./node_modules/core-js/internals/object-set-prototype-of.js"),u=s("./node_modules/core-js/internals/set-to-string-tag.js"),c=s("./node_modules/core-js/internals/hide.js"),_=s("./node_modules/core-js/internals/redefine.js"),p=s("./node_modules/core-js/internals/well-known-symbol.js"),g=s("./node_modules/core-js/internals/is-pure.js"),f=s("./node_modules/core-js/internals/iterators.js"),h=s("./node_modules/core-js/internals/iterators-core.js"),E=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,m=p("iterator"),S="keys",C="values",A="entries",x=function(){return this};n.exports=function(k,y,R,w,L,M,Z){i(R,y,w);var B=function(Te){if(Te===L&&re)return re;if(!b&&Te in I)return I[Te];switch(Te){case S:return function(){return new R(this,Te)};case C:return function(){return new R(this,Te)};case A:return function(){return new R(this,Te)}}return function(){return new R(this)}},se=y+" Iterator",H=!1,I=k.prototype,Q=I[m]||I["@@iterator"]||L&&I[L],re=!b&&Q||B(L),X=y=="Array"&&I.entries||Q,pe,ee,be;if(X&&(pe=a(X.call(new k)),E!==Object.prototype&&pe.next&&(!g&&a(pe)!==E&&(l?l(pe,E):typeof pe[m]!="function"&&c(pe,m,x)),u(pe,se,!0,!0),g&&(f[se]=x))),L==C&&Q&&Q.name!==C&&(H=!0,re=function(){return Q.call(this)}),(!g||Z)&&I[m]!==re&&c(I,m,re),f[y]=re,L)if(ee={values:B(C),keys:M?re:B(S),entries:B(A)},Z)for(be in ee)(b||H||!(be in I))&&_(I,be,ee[be]);else o({target:y,proto:!0,forced:b||H},ee);return ee}},"./node_modules/core-js/internals/descriptors.js":function(n,r,s){var o=s("./node_modules/core-js/internals/fails.js");n.exports=!o(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/is-object.js"),a=o.document,l=i(a)&&i(a.createElement);n.exports=function(u){return l?a.createElement(u):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(n,r){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/redefine.js"),u=s("./node_modules/core-js/internals/set-global.js"),c=s("./node_modules/core-js/internals/copy-constructor-properties.js"),_=s("./node_modules/core-js/internals/is-forced.js");n.exports=function(p,g){var f=p.target,h=p.global,E=p.stat,b,m,S,C,A,x;if(h?m=o:E?m=o[f]||u(f,{}):m=(o[f]||{}).prototype,m)for(S in g){if(A=g[S],p.noTargetGet?(x=i(m,S),C=x&&x.value):C=m[S],b=_(h?S:f+(E?".":"#")+S,p.forced),!b&&C!==void 0){if(typeof A==typeof C)continue;c(A,C)}(p.sham||C&&C.sham)&&a(A,"sham",!0),l(m,S,A,p)}}},"./node_modules/core-js/internals/fails.js":function(n,r){n.exports=function(s){try{return!!s()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(n,r,s){var o=s("./node_modules/core-js/internals/shared.js");n.exports=o("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(n,r,s){var o=s("./node_modules/core-js/internals/classof.js"),i=s("./node_modules/core-js/internals/iterators.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("iterator");n.exports=function(u){if(u!=null)return u[l]||u["@@iterator"]||i[o(u)]}},"./node_modules/core-js/internals/global.js":function(n,r,s){(function(o){var i="object",a=function(l){return l&&l.Math==Math&&l};n.exports=a(typeof globalThis==i&&globalThis)||a(typeof window==i&&window)||a(typeof self==i&&self)||a(typeof o==i&&o)||Function("return this")()}).call(this,s("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(n,r){var s={}.hasOwnProperty;n.exports=function(o,i){return s.call(o,i)}},"./node_modules/core-js/internals/hidden-keys.js":function(n,r){n.exports={}},"./node_modules/core-js/internals/hide.js":function(n,r,s){var o=s("./node_modules/core-js/internals/descriptors.js"),i=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=o?function(l,u,c){return i.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},"./node_modules/core-js/internals/html.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=o.document;n.exports=i&&i.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(n,r,s){var o=s("./node_modules/core-js/internals/descriptors.js"),i=s("./node_modules/core-js/internals/fails.js"),a=s("./node_modules/core-js/internals/document-create-element.js");n.exports=!o&&!i(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(n,r,s){var o=s("./node_modules/core-js/internals/fails.js"),i=s("./node_modules/core-js/internals/classof-raw.js"),a="".split;n.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(l){return i(l)=="String"?a.call(l,""):Object(l)}:Object},"./node_modules/core-js/internals/internal-state.js":function(n,r,s){var o=s("./node_modules/core-js/internals/native-weak-map.js"),i=s("./node_modules/core-js/internals/global.js"),a=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/hide.js"),u=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/shared-key.js"),_=s("./node_modules/core-js/internals/hidden-keys.js"),p=i.WeakMap,g,f,h,E=function(k){return h(k)?f(k):g(k,{})},b=function(k){return function(y){var R;if(!a(y)||(R=f(y)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return R}};if(o){var m=new p,S=m.get,C=m.has,A=m.set;g=function(k,y){return A.call(m,k,y),y},f=function(k){return S.call(m,k)||{}},h=function(k){return C.call(m,k)}}else{var x=c("state");_[x]=!0,g=function(k,y){return l(k,x,y),y},f=function(k){return u(k,x)?k[x]:{}},h=function(k){return u(k,x)}}n.exports={set:g,get:f,has:h,enforce:E,getterFor:b}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(n,r,s){var o=s("./node_modules/core-js/internals/well-known-symbol.js"),i=s("./node_modules/core-js/internals/iterators.js"),a=o("iterator"),l=Array.prototype;n.exports=function(u){return u!==void 0&&(i.Array===u||l[a]===u)}},"./node_modules/core-js/internals/is-forced.js":function(n,r,s){var o=s("./node_modules/core-js/internals/fails.js"),i=/#|\.prototype\./,a=function(p,g){var f=u[l(p)];return f==_?!0:f==c?!1:typeof g=="function"?o(g):!!g},l=a.normalize=function(p){return String(p).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",_=a.POLYFILL="P";n.exports=a},"./node_modules/core-js/internals/is-object.js":function(n,r){n.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"./node_modules/core-js/internals/is-pure.js":function(n,r){n.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(n,r,s){var o=s("./node_modules/core-js/internals/object-get-prototype-of.js"),i=s("./node_modules/core-js/internals/hide.js"),a=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/well-known-symbol.js"),u=s("./node_modules/core-js/internals/is-pure.js"),c=l("iterator"),_=!1,p=function(){return this},g,f,h;[].keys&&(h=[].keys(),"next"in h?(f=o(o(h)),f!==Object.prototype&&(g=f)):_=!0),g==null&&(g={}),!u&&!a(g,c)&&i(g,c,p),n.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:_}},"./node_modules/core-js/internals/iterators.js":function(n,r){n.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(n,r,s){var o=s("./node_modules/core-js/internals/fails.js");n.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/function-to-string.js"),a=o.WeakMap;n.exports=typeof a=="function"&&/native code/.test(i.call(a))},"./node_modules/core-js/internals/object-create.js":function(n,r,s){var o=s("./node_modules/core-js/internals/an-object.js"),i=s("./node_modules/core-js/internals/object-define-properties.js"),a=s("./node_modules/core-js/internals/enum-bug-keys.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=s("./node_modules/core-js/internals/html.js"),c=s("./node_modules/core-js/internals/document-create-element.js"),_=s("./node_modules/core-js/internals/shared-key.js"),p=_("IE_PROTO"),g="prototype",f=function(){},h=function(){var E=c("iframe"),b=a.length,m="<",S="script",C=">",A="java"+S+":",x;for(E.style.display="none",u.appendChild(E),E.src=String(A),x=E.contentWindow.document,x.open(),x.write(m+S+C+"document.F=Object"+m+"/"+S+C),x.close(),h=x.F;b--;)delete h[g][a[b]];return h()};n.exports=Object.create||function(b,m){var S;return b!==null?(f[g]=o(b),S=new f,f[g]=null,S[p]=b):S=h(),m===void 0?S:i(S,m)},l[p]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(n,r,s){var o=s("./node_modules/core-js/internals/descriptors.js"),i=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-keys.js");n.exports=o?Object.defineProperties:function(c,_){a(c);for(var p=l(_),g=p.length,f=0,h;g>f;)i.f(c,h=p[f++],_[h]);return c}},"./node_modules/core-js/internals/object-define-property.js":function(n,r,s){var o=s("./node_modules/core-js/internals/descriptors.js"),i=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/to-primitive.js"),u=Object.defineProperty;r.f=o?u:function(_,p,g){if(a(_),p=l(p,!0),a(g),i)try{return u(_,p,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(_[p]=g.value),_}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,r,s){var o=s("./node_modules/core-js/internals/descriptors.js"),i=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),u=s("./node_modules/core-js/internals/to-primitive.js"),c=s("./node_modules/core-js/internals/has.js"),_=s("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;r.f=o?p:function(f,h){if(f=l(f),h=u(h,!0),_)try{return p(f,h)}catch{}if(c(f,h))return a(!i.f.call(f,h),f[h])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,r,s){var o=s("./node_modules/core-js/internals/object-keys-internal.js"),i=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=i.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(u){return o(u,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(n,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,r,s){var o=s("./node_modules/core-js/internals/has.js"),i=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),l=s("./node_modules/core-js/internals/correct-prototype-getter.js"),u=a("IE_PROTO"),c=Object.prototype;n.exports=l?Object.getPrototypeOf:function(_){return _=i(_),o(_,u)?_[u]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?c:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,r,s){var o=s("./node_modules/core-js/internals/has.js"),i=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),l=s("./node_modules/core-js/internals/hidden-keys.js"),u=a(!1);n.exports=function(c,_){var p=i(c),g=0,f=[],h;for(h in p)!o(l,h)&&o(p,h)&&f.push(h);for(;_.length>g;)o(p,h=_[g++])&&(~u(f,h)||f.push(h));return f}},"./node_modules/core-js/internals/object-keys.js":function(n,r,s){var o=s("./node_modules/core-js/internals/object-keys-internal.js"),i=s("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(l){return o(l,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,r,s){var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!o.call({1:2},1);r.f=a?function(u){var c=i(this,u);return!!c&&c.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,r,s){var o=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),i=a instanceof Array}catch{}return function(c,_){return o(c,_),i?l.call(c,_):c.__proto__=_,c}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=s("./node_modules/core-js/internals/an-object.js"),u=o.Reflect;n.exports=u&&u.ownKeys||function(_){var p=i.f(l(_)),g=a.f;return g?p.concat(g(_)):p}},"./node_modules/core-js/internals/path.js":function(n,r,s){n.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),l=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/set-global.js"),c=s("./node_modules/core-js/internals/function-to-string.js"),_=s("./node_modules/core-js/internals/internal-state.js"),p=_.get,g=_.enforce,f=String(c).split("toString");i("inspectSource",function(h){return c.call(h)}),(n.exports=function(h,E,b,m){var S=m?!!m.unsafe:!1,C=m?!!m.enumerable:!1,A=m?!!m.noTargetGet:!1;if(typeof b=="function"&&(typeof E=="string"&&!l(b,"name")&&a(b,"name",E),g(b).source=f.join(typeof E=="string"?E:"")),h===o){C?h[E]=b:u(E,b);return}else S?!A&&h[E]&&(C=!0):delete h[E];C?h[E]=b:a(h,E,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||c.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(n,r){n.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/hide.js");n.exports=function(a,l){try{i(o,a,l)}catch{o[a]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(n,r,s){var o=s("./node_modules/core-js/internals/object-define-property.js").f,i=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toStringTag");n.exports=function(u,c,_){u&&!i(u=_?u:u.prototype,l)&&o(u,l,{configurable:!0,value:c})}},"./node_modules/core-js/internals/shared-key.js":function(n,r,s){var o=s("./node_modules/core-js/internals/shared.js"),i=s("./node_modules/core-js/internals/uid.js"),a=o("keys");n.exports=function(l){return a[l]||(a[l]=i(l))}},"./node_modules/core-js/internals/shared.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",u=o[l]||i(l,{});(n.exports=function(c,_){return u[c]||(u[c]=_!==void 0?_:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(n,r,s){var o=s("./node_modules/core-js/internals/to-integer.js"),i=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a,l,u){var c=String(i(a)),_=o(l),p=c.length,g,f;return _<0||_>=p?u?"":void 0:(g=c.charCodeAt(_),g<55296||g>56319||_+1===p||(f=c.charCodeAt(_+1))<56320||f>57343?u?c.charAt(_):g:u?c.slice(_,_+2):(g-55296<<10)+(f-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,r,s){var o=s("./node_modules/core-js/internals/to-integer.js"),i=Math.max,a=Math.min;n.exports=function(l,u){var c=o(l);return c<0?i(c+u,0):a(c,u)}},"./node_modules/core-js/internals/to-indexed-object.js":function(n,r,s){var o=s("./node_modules/core-js/internals/indexed-object.js"),i=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(a){return o(i(a))}},"./node_modules/core-js/internals/to-integer.js":function(n,r){var s=Math.ceil,o=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?o:s)(i)}},"./node_modules/core-js/internals/to-length.js":function(n,r,s){var o=s("./node_modules/core-js/internals/to-integer.js"),i=Math.min;n.exports=function(a){return a>0?i(o(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,r,s){var o=s("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(i){return Object(o(i))}},"./node_modules/core-js/internals/to-primitive.js":function(n,r,s){var o=s("./node_modules/core-js/internals/is-object.js");n.exports=function(i,a){if(!o(i))return i;var l,u;if(a&&typeof(l=i.toString)=="function"&&!o(u=l.call(i))||typeof(l=i.valueOf)=="function"&&!o(u=l.call(i))||!a&&typeof(l=i.toString)=="function"&&!o(u=l.call(i)))return u;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(n,r){var s=0,o=Math.random();n.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++s+o).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(n,r,s){var o=s("./node_modules/core-js/internals/is-object.js"),i=s("./node_modules/core-js/internals/an-object.js");n.exports=function(a,l){if(i(a),!o(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(n,r,s){var o=s("./node_modules/core-js/internals/global.js"),i=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),l=s("./node_modules/core-js/internals/native-symbol.js"),u=o.Symbol,c=i("wks");n.exports=function(_){return c[_]||(c[_]=l&&u[_]||(l?u:a)("Symbol."+_))}},"./node_modules/core-js/modules/es.array.from.js":function(n,r,s){var o=s("./node_modules/core-js/internals/export.js"),i=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!a(function(u){Array.from(u)});o({target:"Array",stat:!0,forced:l},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,r,s){var o=s("./node_modules/core-js/internals/string-at.js"),i=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=i.set,c=i.getterFor(l);a(String,"String",function(_){u(this,{type:l,string:String(_),index:0})},function(){var p=c(this),g=p.string,f=p.index,h;return f>=g.length?{value:void 0,done:!0}:(h=o(g,f,!0),p.index+=h.length,{value:h,done:!1})})},"./node_modules/webpack/buildin/global.js":function(n,r){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}n.exports=s},"./src/default-attrs.json":function(n){n.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=Object.assign||function(h){for(var E=1;E2&&arguments[2]!==void 0?arguments[2]:[];p(this,h),this.name=E,this.contents=b,this.tags=m,this.attrs=o({},c.default,{class:"feather feather-"+E})}return i(h,[{key:"toSvg",value:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o({},this.attrs,b,{class:(0,l.default)(this.attrs.class,b.class)});return""+this.contents+""}},{key:"toString",value:function(){return this.contents}}]),h}();function f(h){return Object.keys(h).map(function(E){return E+'="'+h[E]+'"'}).join(" ")}r.default=g},"./src/icons.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=s("./src/icon.js"),i=_(o),a=s("./dist/icons.json"),l=_(a),u=s("./src/tags.json"),c=_(u);function _(p){return p&&p.__esModule?p:{default:p}}r.default=Object.keys(l.default).map(function(p){return new i.default(p,l.default[p],c.default[p])}).reduce(function(p,g){return p[g.name]=g,p},{})},"./src/index.js":function(n,r,s){var o=s("./src/icons.js"),i=_(o),a=s("./src/to-svg.js"),l=_(a),u=s("./src/replace.js"),c=_(u);function _(p){return p&&p.__esModule?p:{default:p}}n.exports={icons:i.default,toSvg:l.default,replace:c.default}},"./src/replace.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=Object.assign||function(f){for(var h=1;h0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var h=document.querySelectorAll("[data-feather]");Array.from(h).forEach(function(E){return p(E,f)})}function p(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=g(f),b=E["data-feather"];delete E["data-feather"];var m=u.default[b].toSvg(o({},h,E,{class:(0,a.default)(h.class,E.class)})),S=new DOMParser().parseFromString(m,"image/svg+xml"),C=S.querySelector("svg");f.parentNode.replaceChild(C,f)}function g(f){return Array.from(f.attributes).reduce(function(h,E){return h[E.name]=E.value,h},{})}r.default=_},"./src/tags.json":function(n){n.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=s("./src/icons.js"),i=a(o);function a(u){return u&&u.__esModule?u:{default:u}}function l(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!u)throw new Error("The required `key` (icon name) parameter is missing.");if(!i.default[u])throw new Error("No icon matching '"+u+"'. See the complete list of icons at https://feathericons.com");return i.default[u].toSvg(c)}r.default=l},0:function(n,r,s){s("./node_modules/core-js/es/array/from.js"),n.exports=s("./src/index.js")}})})})(pv);var PO=pv.exports;const Ce=yn(PO);const FO={key:0,class:"container flex flex-col sm:flex-row items-center"},UO={class:"w-full"},BO={class:"flex flex-row font-medium nav-ul"},mv={__name:"Navigation",setup(t){return(e,n)=>e.$store.state.ready?(v(),T("div",FO,[d("div",UO,[d("div",BO,[he(lt(_n),{to:{name:"discussions"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Discussions ")]),_:1}),he(lt(_n),{to:{name:"playground"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Playground ")]),_:1}),he(lt(_n),{to:{name:"extensions"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Extensions ")]),_:1}),he(lt(_n),{to:{name:"training"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Training ")]),_:1}),he(lt(_n),{to:{name:"quantizing"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Quantizing ")]),_:1}),he(lt(_n),{to:{name:"settings"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Settings ")]),_:1}),he(lt(_n),{to:{name:"help"},class:"link-item dark:link-item-dark"},{default:ke(()=>[Re(" Help ")]),_:1})])])])):U("",!0)}};const GO={class:"top-0 shadow-lg"},qO={class:"container flex flex-col lg:flex-row item-center gap-2 pb-0"},YO=d("div",{class:"flex items-center gap-3 flex-1"},[d("img",{class:"w-12 hover:scale-95 duration-150",title:"LoLLMS WebUI",src:Ks,alt:"Logo"}),d("div",{class:"flex flex-col"},[d("p",{class:"text-2xl"},"Lord of Large Language Models"),d("p",{class:"text-gray-400"},"One tool to rule them all")])],-1),VO={class:"flex gap-3 flex-1 items-center justify-end"},zO={key:0,title:"Connection status",class:"text-green-500"},HO=d("i",{"data-feather":"zap"},null,-1),$O=[HO],WO={key:1,title:"Connection status",class:"text-red-500"},KO=d("i",{"data-feather":"zap-off"},null,-1),QO=[KO],jO=G_('
',2),ZO={href:"https://twitter.com/SpaceNerduino",target:"_blank"},XO={class:"text-2xl hover:fill-primary dark:fill-white dark:hover:fill-primary duration-150",title:"Follow me on my twitter acount"},JO={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"},eA=d("g",{id:"layer1",transform:"translate(52.390088,-25.058597)"},[d("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),tA=[eA],nA=d("i",{"data-feather":"sun"},null,-1),rA=[nA],sA=d("i",{"data-feather":"moon"},null,-1),oA=[sA],iA=d("body",null,null,-1),aA={name:"TopBar",computed:{isConnected(){return this.$store.state.isConnected}},data(){return{codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){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(),ve(()=>{Ce.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:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),ve(()=>{Ga(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}ve(()=>{Ga(()=>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}Ga(()=>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")}},components:{Navigation:mv}},lA=Object.assign(aA,{setup(t){return(e,n)=>(v(),T(we,null,[d("header",GO,[d("nav",qO,[he(lt(_n),{to:{name:"discussions"}},{default:ke(()=>[YO]),_:1}),d("div",VO,[e.isConnected?(v(),T("div",zO,$O)):U("",!0),e.isConnected?U("",!0):(v(),T("div",WO,QO)),jO,d("a",ZO,[d("div",XO,[(v(),T("svg",JO,tA))])]),d("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>e.themeSwitch())},rA),d("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>e.themeSwitch())},oA)])]),he(mv)]),iA],64))}}),cA={class:"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50 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"},dA={class:"flex overflow-hidden flex-grow"},uA={__name:"App",setup(t){return(e,n)=>(v(),T("div",cA,[he(lA),d("div",dA,[he(lt(uv),null,{default:ke(({Component:r})=>[(v(),nt(T0,null,[(v(),nt(k0(r)))],1024))]),_:1})])]))}},nn=Object.create(null);nn.open="0";nn.close="1";nn.ping="2";nn.pong="3";nn.message="4";nn.upgrade="5";nn.noop="6";const Qo=Object.create(null);Object.keys(nn).forEach(t=>{Qo[nn[t]]=t});const s_={type:"error",data:"parser error"},gv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fv=typeof ArrayBuffer=="function",hv=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,np=({type:t,data:e},n,r)=>gv&&e instanceof Blob?n?r(e):mg(e,r):fv&&(e instanceof ArrayBuffer||hv(e))?n?r(e):mg(new Blob([e]),r):r(nn[t]+(e||"")),mg=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function gg(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let qa;function _A(t,e){if(gv&&t.data instanceof Blob)return t.data.arrayBuffer().then(gg).then(e);if(fv&&(t.data instanceof ArrayBuffer||hv(t.data)))return e(gg(t.data));np(t,!1,n=>{qa||(qa=new TextEncoder),e(qa.encode(n))})}const fg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,s=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const u=new ArrayBuffer(e),c=new Uint8Array(u);for(r=0;r>4,c[s++]=(i&15)<<4|a>>2,c[s++]=(a&3)<<6|l&63;return u},mA=typeof ArrayBuffer=="function",rp=(t,e)=>{if(typeof t!="string")return{type:"message",data:Ev(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:gA(t.substring(1),e)}:Qo[n]?t.length>1?{type:Qo[n],data:t.substring(1)}:{type:Qo[n]}:s_},gA=(t,e)=>{if(mA){const n=pA(t);return Ev(n,e)}else return{base64:!0,data:t}},Ev=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},bv=String.fromCharCode(30),fA=(t,e)=>{const n=t.length,r=new Array(n);let s=0;t.forEach((o,i)=>{np(o,!1,a=>{r[i]=a,++s===n&&e(r.join(bv))})})},hA=(t,e)=>{const n=t.split(bv),r=[];for(let s=0;s{const r=n.length;let s;if(r<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,r);else if(r<65536){s=new Uint8Array(3);const o=new DataView(s.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{s=new Uint8Array(9);const o=new DataView(s.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(n)})}})}let Ya;function Ao(t){return t.reduce((e,n)=>e+n.length,0)}function No(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let s=0;sMath.pow(2,53-32)-1){a.enqueue(s_);break}s=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Ao(n)t){a.enqueue(s_);break}}}})}const Sv=4;function it(t){if(t)return SA(t)}function SA(t){for(var e in it.prototype)t[e]=it.prototype[e];return t}it.prototype.on=it.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};it.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};it.prototype.off=it.prototype.removeListener=it.prototype.removeAllListeners=it.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function yv(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const yA=xt.setTimeout,vA=xt.clearTimeout;function Vi(t,e){e.useNativeTimers?(t.setTimeoutFn=yA.bind(xt),t.clearTimeoutFn=vA.bind(xt)):(t.setTimeoutFn=xt.setTimeout.bind(xt),t.clearTimeoutFn=xt.clearTimeout.bind(xt))}const TA=1.33;function CA(t){return typeof t=="string"?RA(t):Math.ceil((t.byteLength||t.size)*TA)}function RA(t){let e=0,n=0;for(let r=0,s=t.length;r=57344?n+=3:(r++,n+=4);return n}function xA(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function OA(t){let e={},n=t.split("&");for(let r=0,s=n.length;r0);return e}function Tv(){const t=bg(+new Date);return t!==Eg?(hg=0,Eg=t):t+"."+bg(hg++)}for(;wo{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};hA(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,fA(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Tv()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Jt(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Jt extends it{constructor(e,n){super(),Vi(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=yv(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Rv(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&r.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var s;r.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Jt.requestsCount++,Jt.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=IA,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Jt.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()}}Jt.requestsCount=0;Jt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Sg);else if(typeof addEventListener=="function"){const t="onpagehide"in xt?"pagehide":"unload";addEventListener(t,Sg,!1)}}function Sg(){for(let t in Jt.requests)Jt.requests.hasOwnProperty(t)&&Jt.requests[t].abort()}const op=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Io=xt.WebSocket||xt.MozWebSocket,yg=!0,MA="arraybuffer",vg=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class LA extends sp{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=vg?{}:yv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=yg&&!vg?n?new Io(e,n):new Io(e):new Io(e,n,r)}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 n=0;n{const i={};try{yg&&this.ws.send(o)}catch{}s&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Tv()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Io}}class PA extends sp{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=bA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),s=EA();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n{s&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const FA={websocket:LA,webtransport:PA,polling:kA},UA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,BA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function i_(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let s=UA.exec(t||""),o={},i=14;for(;i--;)o[BA[i]]=s[i]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=GA(o,o.path),o.queryKey=qA(o,o.query),o}function GA(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function qA(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,o){s&&(n[s]=o)}),n}let xv=class Dr extends it{constructor(e,n={}){super(),this.binaryType=MA,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=i_(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=i_(n.host).host),Vi(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=OA(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Sv,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new FA[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Dr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;Dr.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Dr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,c(),n.close(),n=null)}const i=_=>{const p=new Error("probe error: "+_);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function l(){i("socket closed")}function u(_){n&&_.name!==n.name&&o()}const c=()=>{n.removeListener("open",s),n.removeListener("error",i),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",i),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Dr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Dr.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const s=e.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ov=Object.prototype.toString,HA=typeof Blob=="function"||typeof Blob<"u"&&Ov.call(Blob)==="[object BlobConstructor]",$A=typeof File=="function"||typeof File<"u"&&Ov.call(File)==="[object FileConstructor]";function ip(t){return VA&&(t instanceof ArrayBuffer||zA(t))||HA&&t instanceof Blob||$A&&t instanceof File}function jo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,o)=>{n.push((i,a)=>r?i?o(i):s(a):s(i)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...o)=>r!==this._queue[0]?void 0:(s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ye.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ye.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 Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(e);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(e);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:Ye.ACK,id:e,data:s}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ye.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}cs.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};cs.prototype.reset=function(){this.attempts=0};cs.prototype.setMin=function(t){this.ms=t};cs.prototype.setMax=function(t){this.max=t};cs.prototype.setJitter=function(t){this.jitter=t};class c_ extends it{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Vi(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new cs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const s=n.parser||JA;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new xv(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=Pt(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){op(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Av(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ys={};function Zo(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=YA(t,e.path||"/socket.io"),r=n.source,s=n.id,o=n.path,i=ys[s]&&o in ys[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i;let l;return a?l=new c_(r,e):(ys[s]||(ys[s]=new c_(r,e)),l=ys[s]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Zo,{Manager:c_,Socket:Av,io:Zo,connect:Zo});const tN=void 0,Ne=new Zo(tN,{reconnection:!0,reconnectionAttempts:3,reconnectionDelay:1e3});const qe=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},nN={name:"Toast",props:{},data(){return{show:!1,success:!0,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),ve(()=>{Ce.replace()})},showToast(t,e=3,n=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:r,success:n,message:t,show:!0};this.toastArr.push(s),ve(()=>{Ce.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(o=>o.id!=r)},e*1e3)}},watch:{}},Wn=t=>(hr("data-v-3ffdabf3"),t=t(),Er(),t),rN={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},sN={class:"flex flex-row items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},oN={class:"flex flex-row flex-grow items-center"},iN={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},aN=Wn(()=>d("i",{"data-feather":"check"},null,-1)),lN=Wn(()=>d("span",{class:"sr-only"},"Check icon",-1)),cN=[aN,lN],dN={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},uN=Wn(()=>d("i",{"data-feather":"x"},null,-1)),_N=Wn(()=>d("span",{class:"sr-only"},"Cross icon",-1)),pN=[uN,_N],mN=["title"],gN={class:"flex"},fN=["onClick"],hN=Wn(()=>d("span",{class:"sr-only"},"Copy message",-1)),EN=Wn(()=>d("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),bN=[hN,EN],SN=["onClick"],yN=Wn(()=>d("span",{class:"sr-only"},"Close",-1)),vN=Wn(()=>d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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)),TN=[yN,vN];function CN(t,e,n,r,s,o){return v(),T("div",rN,[he(gn,{name:"toastItem",tag:"div"},{default:ke(()=>[(v(!0),T(we,null,Be(s.toastArr,i=>(v(),T("div",{key:i.id,class:"relative"},[d("div",sN,[d("div",oN,[si(t.$slots,"default",{},()=>[i.success?(v(),T("div",iN,cN)):U("",!0),i.success?U("",!0):(v(),T("div",dN,pN)),d("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3",title:i.message},j(i.message),9,mN)],!0)]),d("div",gN,[d("button",{type:"button",onClick:_e(a=>o.copyToClipBoard(i.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},bN,8,fN),d("button",{type:"button",onClick:a=>o.close(i.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},TN,8,SN)])])]))),128))]),_:3})])}const ds=qe(nN,[["render",CN],["__scopeId","data-v-3ffdabf3"]]);var $e={};const RN="Á",xN="á",ON="Ă",AN="ă",NN="∾",wN="∿",IN="∾̳",DN="Â",kN="â",MN="´",LN="А",PN="а",FN="Æ",UN="æ",BN="⁡",GN="𝔄",qN="𝔞",YN="À",VN="à",zN="ℵ",HN="ℵ",$N="Α",WN="α",KN="Ā",QN="ā",jN="⨿",ZN="&",XN="&",JN="⩕",ew="⩓",tw="∧",nw="⩜",rw="⩘",sw="⩚",ow="∠",iw="⦤",aw="∠",lw="⦨",cw="⦩",dw="⦪",uw="⦫",_w="⦬",pw="⦭",mw="⦮",gw="⦯",fw="∡",hw="∟",Ew="⊾",bw="⦝",Sw="∢",yw="Å",vw="⍼",Tw="Ą",Cw="ą",Rw="𝔸",xw="𝕒",Ow="⩯",Aw="≈",Nw="⩰",ww="≊",Iw="≋",Dw="'",kw="⁡",Mw="≈",Lw="≊",Pw="Å",Fw="å",Uw="𝒜",Bw="𝒶",Gw="≔",qw="*",Yw="≈",Vw="≍",zw="Ã",Hw="ã",$w="Ä",Ww="ä",Kw="∳",Qw="⨑",jw="≌",Zw="϶",Xw="‵",Jw="∽",eI="⋍",tI="∖",nI="⫧",rI="⊽",sI="⌅",oI="⌆",iI="⌅",aI="⎵",lI="⎶",cI="≌",dI="Б",uI="б",_I="„",pI="∵",mI="∵",gI="∵",fI="⦰",hI="϶",EI="ℬ",bI="ℬ",SI="Β",yI="β",vI="ℶ",TI="≬",CI="𝔅",RI="𝔟",xI="⋂",OI="◯",AI="⋃",NI="⨀",wI="⨁",II="⨂",DI="⨆",kI="★",MI="▽",LI="△",PI="⨄",FI="⋁",UI="⋀",BI="⤍",GI="⧫",qI="▪",YI="▴",VI="▾",zI="◂",HI="▸",$I="␣",WI="▒",KI="░",QI="▓",jI="█",ZI="=⃥",XI="≡⃥",JI="⫭",eD="⌐",tD="𝔹",nD="𝕓",rD="⊥",sD="⊥",oD="⋈",iD="⧉",aD="┐",lD="╕",cD="╖",dD="╗",uD="┌",_D="╒",pD="╓",mD="╔",gD="─",fD="═",hD="┬",ED="╤",bD="╥",SD="╦",yD="┴",vD="╧",TD="╨",CD="╩",RD="⊟",xD="⊞",OD="⊠",AD="┘",ND="╛",wD="╜",ID="╝",DD="└",kD="╘",MD="╙",LD="╚",PD="│",FD="║",UD="┼",BD="╪",GD="╫",qD="╬",YD="┤",VD="╡",zD="╢",HD="╣",$D="├",WD="╞",KD="╟",QD="╠",jD="‵",ZD="˘",XD="˘",JD="¦",ek="𝒷",tk="ℬ",nk="⁏",rk="∽",sk="⋍",ok="⧅",ik="\\",ak="⟈",lk="•",ck="•",dk="≎",uk="⪮",_k="≏",pk="≎",mk="≏",gk="Ć",fk="ć",hk="⩄",Ek="⩉",bk="⩋",Sk="∩",yk="⋒",vk="⩇",Tk="⩀",Ck="ⅅ",Rk="∩︀",xk="⁁",Ok="ˇ",Ak="ℭ",Nk="⩍",wk="Č",Ik="č",Dk="Ç",kk="ç",Mk="Ĉ",Lk="ĉ",Pk="∰",Fk="⩌",Uk="⩐",Bk="Ċ",Gk="ċ",qk="¸",Yk="¸",Vk="⦲",zk="¢",Hk="·",$k="·",Wk="𝔠",Kk="ℭ",Qk="Ч",jk="ч",Zk="✓",Xk="✓",Jk="Χ",e2="χ",t2="ˆ",n2="≗",r2="↺",s2="↻",o2="⊛",i2="⊚",a2="⊝",l2="⊙",c2="®",d2="Ⓢ",u2="⊖",_2="⊕",p2="⊗",m2="○",g2="⧃",f2="≗",h2="⨐",E2="⫯",b2="⧂",S2="∲",y2="”",v2="’",T2="♣",C2="♣",R2=":",x2="∷",O2="⩴",A2="≔",N2="≔",w2=",",I2="@",D2="∁",k2="∘",M2="∁",L2="ℂ",P2="≅",F2="⩭",U2="≡",B2="∮",G2="∯",q2="∮",Y2="𝕔",V2="ℂ",z2="∐",H2="∐",$2="©",W2="©",K2="℗",Q2="∳",j2="↵",Z2="✗",X2="⨯",J2="𝒞",eM="𝒸",tM="⫏",nM="⫑",rM="⫐",sM="⫒",oM="⋯",iM="⤸",aM="⤵",lM="⋞",cM="⋟",dM="↶",uM="⤽",_M="⩈",pM="⩆",mM="≍",gM="∪",fM="⋓",hM="⩊",EM="⊍",bM="⩅",SM="∪︀",yM="↷",vM="⤼",TM="⋞",CM="⋟",RM="⋎",xM="⋏",OM="¤",AM="↶",NM="↷",wM="⋎",IM="⋏",DM="∲",kM="∱",MM="⌭",LM="†",PM="‡",FM="ℸ",UM="↓",BM="↡",GM="⇓",qM="‐",YM="⫤",VM="⊣",zM="⤏",HM="˝",$M="Ď",WM="ď",KM="Д",QM="д",jM="‡",ZM="⇊",XM="ⅅ",JM="ⅆ",eL="⤑",tL="⩷",nL="°",rL="∇",sL="Δ",oL="δ",iL="⦱",aL="⥿",lL="𝔇",cL="𝔡",dL="⥥",uL="⇃",_L="⇂",pL="´",mL="˙",gL="˝",fL="`",hL="˜",EL="⋄",bL="⋄",SL="⋄",yL="♦",vL="♦",TL="¨",CL="ⅆ",RL="ϝ",xL="⋲",OL="÷",AL="÷",NL="⋇",wL="⋇",IL="Ђ",DL="ђ",kL="⌞",ML="⌍",LL="$",PL="𝔻",FL="𝕕",UL="¨",BL="˙",GL="⃜",qL="≐",YL="≑",VL="≐",zL="∸",HL="∔",$L="⊡",WL="⌆",KL="∯",QL="¨",jL="⇓",ZL="⇐",XL="⇔",JL="⫤",eP="⟸",tP="⟺",nP="⟹",rP="⇒",sP="⊨",oP="⇑",iP="⇕",aP="∥",lP="⤓",cP="↓",dP="↓",uP="⇓",_P="⇵",pP="̑",mP="⇊",gP="⇃",fP="⇂",hP="⥐",EP="⥞",bP="⥖",SP="↽",yP="⥟",vP="⥗",TP="⇁",CP="↧",RP="⊤",xP="⤐",OP="⌟",AP="⌌",NP="𝒟",wP="𝒹",IP="Ѕ",DP="ѕ",kP="⧶",MP="Đ",LP="đ",PP="⋱",FP="▿",UP="▾",BP="⇵",GP="⥯",qP="⦦",YP="Џ",VP="џ",zP="⟿",HP="É",$P="é",WP="⩮",KP="Ě",QP="ě",jP="Ê",ZP="ê",XP="≖",JP="≕",eF="Э",tF="э",nF="⩷",rF="Ė",sF="ė",oF="≑",iF="ⅇ",aF="≒",lF="𝔈",cF="𝔢",dF="⪚",uF="È",_F="è",pF="⪖",mF="⪘",gF="⪙",fF="∈",hF="⏧",EF="ℓ",bF="⪕",SF="⪗",yF="Ē",vF="ē",TF="∅",CF="∅",RF="◻",xF="∅",OF="▫",AF=" ",NF=" ",wF=" ",IF="Ŋ",DF="ŋ",kF=" ",MF="Ę",LF="ę",PF="𝔼",FF="𝕖",UF="⋕",BF="⧣",GF="⩱",qF="ε",YF="Ε",VF="ε",zF="ϵ",HF="≖",$F="≕",WF="≂",KF="⪖",QF="⪕",jF="⩵",ZF="=",XF="≂",JF="≟",eU="⇌",tU="≡",nU="⩸",rU="⧥",sU="⥱",oU="≓",iU="ℯ",aU="ℰ",lU="≐",cU="⩳",dU="≂",uU="Η",_U="η",pU="Ð",mU="ð",gU="Ë",fU="ë",hU="€",EU="!",bU="∃",SU="∃",yU="ℰ",vU="ⅇ",TU="ⅇ",CU="≒",RU="Ф",xU="ф",OU="♀",AU="ffi",NU="ff",wU="ffl",IU="𝔉",DU="𝔣",kU="fi",MU="◼",LU="▪",PU="fj",FU="♭",UU="fl",BU="▱",GU="ƒ",qU="𝔽",YU="𝕗",VU="∀",zU="∀",HU="⋔",$U="⫙",WU="ℱ",KU="⨍",QU="½",jU="⅓",ZU="¼",XU="⅕",JU="⅙",eB="⅛",tB="⅔",nB="⅖",rB="¾",sB="⅗",oB="⅜",iB="⅘",aB="⅚",lB="⅝",cB="⅞",dB="⁄",uB="⌢",_B="𝒻",pB="ℱ",mB="ǵ",gB="Γ",fB="γ",hB="Ϝ",EB="ϝ",bB="⪆",SB="Ğ",yB="ğ",vB="Ģ",TB="Ĝ",CB="ĝ",RB="Г",xB="г",OB="Ġ",AB="ġ",NB="≥",wB="≧",IB="⪌",DB="⋛",kB="≥",MB="≧",LB="⩾",PB="⪩",FB="⩾",UB="⪀",BB="⪂",GB="⪄",qB="⋛︀",YB="⪔",VB="𝔊",zB="𝔤",HB="≫",$B="⋙",WB="⋙",KB="ℷ",QB="Ѓ",jB="ѓ",ZB="⪥",XB="≷",JB="⪒",e5="⪤",t5="⪊",n5="⪊",r5="⪈",s5="≩",o5="⪈",i5="≩",a5="⋧",l5="𝔾",c5="𝕘",d5="`",u5="≥",_5="⋛",p5="≧",m5="⪢",g5="≷",f5="⩾",h5="≳",E5="𝒢",b5="ℊ",S5="≳",y5="⪎",v5="⪐",T5="⪧",C5="⩺",R5=">",x5=">",O5="≫",A5="⋗",N5="⦕",w5="⩼",I5="⪆",D5="⥸",k5="⋗",M5="⋛",L5="⪌",P5="≷",F5="≳",U5="≩︀",B5="≩︀",G5="ˇ",q5=" ",Y5="½",V5="ℋ",z5="Ъ",H5="ъ",$5="⥈",W5="↔",K5="⇔",Q5="↭",j5="^",Z5="ℏ",X5="Ĥ",J5="ĥ",e3="♥",t3="♥",n3="…",r3="⊹",s3="𝔥",o3="ℌ",i3="ℋ",a3="⤥",l3="⤦",c3="⇿",d3="∻",u3="↩",_3="↪",p3="𝕙",m3="ℍ",g3="―",f3="─",h3="𝒽",E3="ℋ",b3="ℏ",S3="Ħ",y3="ħ",v3="≎",T3="≏",C3="⁃",R3="‐",x3="Í",O3="í",A3="⁣",N3="Î",w3="î",I3="И",D3="и",k3="İ",M3="Е",L3="е",P3="¡",F3="⇔",U3="𝔦",B3="ℑ",G3="Ì",q3="ì",Y3="ⅈ",V3="⨌",z3="∭",H3="⧜",$3="℩",W3="IJ",K3="ij",Q3="Ī",j3="ī",Z3="ℑ",X3="ⅈ",J3="ℐ",e4="ℑ",t4="ı",n4="ℑ",r4="⊷",s4="Ƶ",o4="⇒",i4="℅",a4="∞",l4="⧝",c4="ı",d4="⊺",u4="∫",_4="∬",p4="ℤ",m4="∫",g4="⊺",f4="⋂",h4="⨗",E4="⨼",b4="⁣",S4="⁢",y4="Ё",v4="ё",T4="Į",C4="į",R4="𝕀",x4="𝕚",O4="Ι",A4="ι",N4="⨼",w4="¿",I4="𝒾",D4="ℐ",k4="∈",M4="⋵",L4="⋹",P4="⋴",F4="⋳",U4="∈",B4="⁢",G4="Ĩ",q4="ĩ",Y4="І",V4="і",z4="Ï",H4="ï",$4="Ĵ",W4="ĵ",K4="Й",Q4="й",j4="𝔍",Z4="𝔧",X4="ȷ",J4="𝕁",e9="𝕛",t9="𝒥",n9="𝒿",r9="Ј",s9="ј",o9="Є",i9="є",a9="Κ",l9="κ",c9="ϰ",d9="Ķ",u9="ķ",_9="К",p9="к",m9="𝔎",g9="𝔨",f9="ĸ",h9="Х",E9="х",b9="Ќ",S9="ќ",y9="𝕂",v9="𝕜",T9="𝒦",C9="𝓀",R9="⇚",x9="Ĺ",O9="ĺ",A9="⦴",N9="ℒ",w9="Λ",I9="λ",D9="⟨",k9="⟪",M9="⦑",L9="⟨",P9="⪅",F9="ℒ",U9="«",B9="⇤",G9="⤟",q9="←",Y9="↞",V9="⇐",z9="⤝",H9="↩",$9="↫",W9="⤹",K9="⥳",Q9="↢",j9="⤙",Z9="⤛",X9="⪫",J9="⪭",eG="⪭︀",tG="⤌",nG="⤎",rG="❲",sG="{",oG="[",iG="⦋",aG="⦏",lG="⦍",cG="Ľ",dG="ľ",uG="Ļ",_G="ļ",pG="⌈",mG="{",gG="Л",fG="л",hG="⤶",EG="“",bG="„",SG="⥧",yG="⥋",vG="↲",TG="≤",CG="≦",RG="⟨",xG="⇤",OG="←",AG="←",NG="⇐",wG="⇆",IG="↢",DG="⌈",kG="⟦",MG="⥡",LG="⥙",PG="⇃",FG="⌊",UG="↽",BG="↼",GG="⇇",qG="↔",YG="↔",VG="⇔",zG="⇆",HG="⇋",$G="↭",WG="⥎",KG="↤",QG="⊣",jG="⥚",ZG="⋋",XG="⧏",JG="⊲",e8="⊴",t8="⥑",n8="⥠",r8="⥘",s8="↿",o8="⥒",i8="↼",a8="⪋",l8="⋚",c8="≤",d8="≦",u8="⩽",_8="⪨",p8="⩽",m8="⩿",g8="⪁",f8="⪃",h8="⋚︀",E8="⪓",b8="⪅",S8="⋖",y8="⋚",v8="⪋",T8="⋚",C8="≦",R8="≶",x8="≶",O8="⪡",A8="≲",N8="⩽",w8="≲",I8="⥼",D8="⌊",k8="𝔏",M8="𝔩",L8="≶",P8="⪑",F8="⥢",U8="↽",B8="↼",G8="⥪",q8="▄",Y8="Љ",V8="љ",z8="⇇",H8="≪",$8="⋘",W8="⌞",K8="⇚",Q8="⥫",j8="◺",Z8="Ŀ",X8="ŀ",J8="⎰",e6="⎰",t6="⪉",n6="⪉",r6="⪇",s6="≨",o6="⪇",i6="≨",a6="⋦",l6="⟬",c6="⇽",d6="⟦",u6="⟵",_6="⟵",p6="⟸",m6="⟷",g6="⟷",f6="⟺",h6="⟼",E6="⟶",b6="⟶",S6="⟹",y6="↫",v6="↬",T6="⦅",C6="𝕃",R6="𝕝",x6="⨭",O6="⨴",A6="∗",N6="_",w6="↙",I6="↘",D6="◊",k6="◊",M6="⧫",L6="(",P6="⦓",F6="⇆",U6="⌟",B6="⇋",G6="⥭",q6="‎",Y6="⊿",V6="‹",z6="𝓁",H6="ℒ",$6="↰",W6="↰",K6="≲",Q6="⪍",j6="⪏",Z6="[",X6="‘",J6="‚",eq="Ł",tq="ł",nq="⪦",rq="⩹",sq="<",oq="<",iq="≪",aq="⋖",lq="⋋",cq="⋉",dq="⥶",uq="⩻",_q="◃",pq="⊴",mq="◂",gq="⦖",fq="⥊",hq="⥦",Eq="≨︀",bq="≨︀",Sq="¯",yq="♂",vq="✠",Tq="✠",Cq="↦",Rq="↦",xq="↧",Oq="↤",Aq="↥",Nq="▮",wq="⨩",Iq="М",Dq="м",kq="—",Mq="∺",Lq="∡",Pq=" ",Fq="ℳ",Uq="𝔐",Bq="𝔪",Gq="℧",qq="µ",Yq="*",Vq="⫰",zq="∣",Hq="·",$q="⊟",Wq="−",Kq="∸",Qq="⨪",jq="∓",Zq="⫛",Xq="…",Jq="∓",e7="⊧",t7="𝕄",n7="𝕞",r7="∓",s7="𝓂",o7="ℳ",i7="∾",a7="Μ",l7="μ",c7="⊸",d7="⊸",u7="∇",_7="Ń",p7="ń",m7="∠⃒",g7="≉",f7="⩰̸",h7="≋̸",E7="ʼn",b7="≉",S7="♮",y7="ℕ",v7="♮",T7=" ",C7="≎̸",R7="≏̸",x7="⩃",O7="Ň",A7="ň",N7="Ņ",w7="ņ",I7="≇",D7="⩭̸",k7="⩂",M7="Н",L7="н",P7="–",F7="⤤",U7="↗",B7="⇗",G7="↗",q7="≠",Y7="≐̸",V7="​",z7="​",H7="​",$7="​",W7="≢",K7="⤨",Q7="≂̸",j7="≫",Z7="≪",X7=` + 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),tA=[eA],nA=d("i",{"data-feather":"sun"},null,-1),rA=[nA],sA=d("i",{"data-feather":"moon"},null,-1),oA=[sA],iA=d("body",null,null,-1),aA={name:"TopBar",computed:{isConnected(){return this.$store.state.isConnected}},data(){return{codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches}},mounted(){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(),ve(()=>{Ce.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:{themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),ve(()=>{Ga(()=>Promise.resolve({}),["assets/stackoverflow-dark-57af98f5.css"])});return}ve(()=>{Ga(()=>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}Ga(()=>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")}},components:{Navigation:mv}},lA=Object.assign(aA,{setup(t){return(e,n)=>(v(),T(Ne,null,[d("header",GO,[d("nav",qO,[he(lt(_n),{to:{name:"discussions"}},{default:ke(()=>[YO]),_:1}),d("div",VO,[e.isConnected?(v(),T("div",zO,$O)):U("",!0),e.isConnected?U("",!0):(v(),T("div",WO,QO)),jO,d("a",ZO,[d("div",XO,[(v(),T("svg",JO,tA))])]),d("div",{class:"sun text-2xl w-6 hover:text-primary duration-150",title:"Swith to Light theme",onClick:n[0]||(n[0]=r=>e.themeSwitch())},rA),d("div",{class:"moon text-2xl w-6 hover:text-primary duration-150",title:"Swith to Dark theme",onClick:n[1]||(n[1]=r=>e.themeSwitch())},oA)])]),he(mv)]),iA],64))}}),cA={class:"flex flex-col h-screen font-sans bg-bg-light text-slate-950 dark:bg-bg-dark dark:text-slate-50 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"},dA={class:"flex overflow-hidden flex-grow"},uA={__name:"App",setup(t){return(e,n)=>(v(),T("div",cA,[he(lA),d("div",dA,[he(lt(uv),null,{default:ke(({Component:r})=>[(v(),nt(T0,null,[(v(),nt(k0(r)))],1024))]),_:1})])]))}},nn=Object.create(null);nn.open="0";nn.close="1";nn.ping="2";nn.pong="3";nn.message="4";nn.upgrade="5";nn.noop="6";const Qo=Object.create(null);Object.keys(nn).forEach(t=>{Qo[nn[t]]=t});const s_={type:"error",data:"parser error"},gv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fv=typeof ArrayBuffer=="function",hv=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,np=({type:t,data:e},n,r)=>gv&&e instanceof Blob?n?r(e):mg(e,r):fv&&(e instanceof ArrayBuffer||hv(e))?n?r(e):mg(new Blob([e]),r):r(nn[t]+(e||"")),mg=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function gg(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let qa;function _A(t,e){if(gv&&t.data instanceof Blob)return t.data.arrayBuffer().then(gg).then(e);if(fv&&(t.data instanceof ArrayBuffer||hv(t.data)))return e(gg(t.data));np(t,!1,n=>{qa||(qa=new TextEncoder),e(qa.encode(n))})}const fg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let e=t.length*.75,n=t.length,r,s=0,o,i,a,l;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const u=new ArrayBuffer(e),c=new Uint8Array(u);for(r=0;r>4,c[s++]=(i&15)<<4|a>>2,c[s++]=(a&3)<<6|l&63;return u},mA=typeof ArrayBuffer=="function",rp=(t,e)=>{if(typeof t!="string")return{type:"message",data:Ev(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:gA(t.substring(1),e)}:Qo[n]?t.length>1?{type:Qo[n],data:t.substring(1)}:{type:Qo[n]}:s_},gA=(t,e)=>{if(mA){const n=pA(t);return Ev(n,e)}else return{base64:!0,data:t}},Ev=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},bv=String.fromCharCode(30),fA=(t,e)=>{const n=t.length,r=new Array(n);let s=0;t.forEach((o,i)=>{np(o,!1,a=>{r[i]=a,++s===n&&e(r.join(bv))})})},hA=(t,e)=>{const n=t.split(bv),r=[];for(let s=0;s{const r=n.length;let s;if(r<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,r);else if(r<65536){s=new Uint8Array(3);const o=new DataView(s.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{s=new Uint8Array(9);const o=new DataView(s.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(n)})}})}let Ya;function Ao(t){return t.reduce((e,n)=>e+n.length,0)}function No(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let s=0;sMath.pow(2,53-32)-1){a.enqueue(s_);break}s=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Ao(n)t){a.enqueue(s_);break}}}})}const Sv=4;function it(t){if(t)return SA(t)}function SA(t){for(var e in it.prototype)t[e]=it.prototype[e];return t}it.prototype.on=it.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};it.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};it.prototype.off=it.prototype.removeListener=it.prototype.removeAllListeners=it.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function yv(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const yA=xt.setTimeout,vA=xt.clearTimeout;function Vi(t,e){e.useNativeTimers?(t.setTimeoutFn=yA.bind(xt),t.clearTimeoutFn=vA.bind(xt)):(t.setTimeoutFn=xt.setTimeout.bind(xt),t.clearTimeoutFn=xt.clearTimeout.bind(xt))}const TA=1.33;function CA(t){return typeof t=="string"?RA(t):Math.ceil((t.byteLength||t.size)*TA)}function RA(t){let e=0,n=0;for(let r=0,s=t.length;r=57344?n+=3:(r++,n+=4);return n}function xA(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function OA(t){let e={},n=t.split("&");for(let r=0,s=n.length;r0);return e}function Tv(){const t=bg(+new Date);return t!==Eg?(hg=0,Eg=t):t+"."+bg(hg++)}for(;wo{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};hA(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,fA(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Tv()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Jt(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class Jt extends it{constructor(e,n){super(),Vi(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=yv(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Rv(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&r.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var s;r.readyState===3&&((s=this.opts.cookieJar)===null||s===void 0||s.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Jt.requestsCount++,Jt.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=IA,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Jt.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()}}Jt.requestsCount=0;Jt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Sg);else if(typeof addEventListener=="function"){const t="onpagehide"in xt?"pagehide":"unload";addEventListener(t,Sg,!1)}}function Sg(){for(let t in Jt.requests)Jt.requests.hasOwnProperty(t)&&Jt.requests[t].abort()}const op=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Io=xt.WebSocket||xt.MozWebSocket,yg=!0,MA="arraybuffer",vg=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class LA extends sp{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=vg?{}:yv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=yg&&!vg?n?new Io(e,n):new Io(e):new Io(e,n,r)}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 n=0;n{const i={};try{yg&&this.ws.send(o)}catch{}s&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Tv()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Io}}class PA extends sp{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=bA(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),s=EA();s.readable.pipeTo(e.writable),this.writer=s.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n{s&&op(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const FA={websocket:LA,webtransport:PA,polling:kA},UA=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,BA=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function i_(t){const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let s=UA.exec(t||""),o={},i=14;for(;i--;)o[BA[i]]=s[i]||"";return n!=-1&&r!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=GA(o,o.path),o.queryKey=qA(o,o.query),o}function GA(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function qA(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,o){s&&(n[s]=o)}),n}let xv=class Dr extends it{constructor(e,n={}){super(),this.binaryType=MA,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=i_(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=i_(n.host).host),Vi(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=OA(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=Sv,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new FA[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Dr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;Dr.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Dr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,c(),n.close(),n=null)}const i=_=>{const p=new Error("probe error: "+_);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function l(){i("socket closed")}function u(_){n&&_.name!==n.name&&o()}const c=()=>{n.removeListener("open",s),n.removeListener("error",i),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",i),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Dr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:e,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Dr.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const s=e.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ov=Object.prototype.toString,HA=typeof Blob=="function"||typeof Blob<"u"&&Ov.call(Blob)==="[object BlobConstructor]",$A=typeof File=="function"||typeof File<"u"&&Ov.call(File)==="[object FileConstructor]";function ip(t){return VA&&(t instanceof ArrayBuffer||zA(t))||HA&&t instanceof Blob||$A&&t instanceof File}function jo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n=0&&t.num{delete this.acks[e];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((s,o)=>{n.push((i,a)=>r?i?o(i):s(a):s(i)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...o)=>r!==this._queue[0]?void 0:(s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Ye.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Ye.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 Ye.EVENT:case Ye.BINARY_EVENT:this.onevent(e);break;case Ye.ACK:case Ye.BINARY_ACK:this.onack(e);break;case Ye.DISCONNECT:this.ondisconnect();break;case Ye.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:Ye.ACK,id:e,data:s}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ye.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}cs.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0};cs.prototype.reset=function(){this.attempts=0};cs.prototype.setMin=function(t){this.ms=t};cs.prototype.setMax=function(t){this.max=t};cs.prototype.setJitter=function(t){this.jitter=t};class c_ extends it{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Vi(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new cs({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const s=n.parser||JA;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new xv(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=Pt(n,"open",function(){r.onopen(),e&&e()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){op(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Av(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ys={};function Zo(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=YA(t,e.path||"/socket.io"),r=n.source,s=n.id,o=n.path,i=ys[s]&&o in ys[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i;let l;return a?l=new c_(r,e):(ys[s]||(ys[s]=new c_(r,e)),l=ys[s]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Zo,{Manager:c_,Socket:Av,io:Zo,connect:Zo});const tN=void 0,Ie=new Zo(tN,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3});const qe=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},nN={name:"Toast",props:{},data(){return{show:!1,success:!0,message:"",toastArr:[]}},methods:{close(t){this.toastArr=this.toastArr.filter(e=>e.id!=t)},copyToClipBoard(t){navigator.clipboard.writeText(t),ve(()=>{Ce.replace()})},showToast(t,e=3,n=!0){const r=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:r,success:n,message:t,show:!0};this.toastArr.push(s),ve(()=>{Ce.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(o=>o.id!=r)},e*1e3)}},watch:{}},Wn=t=>(hr("data-v-3ffdabf3"),t=t(),Er(),t),rN={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},sN={class:"flex flex-row items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},oN={class:"flex flex-row flex-grow items-center"},iN={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},aN=Wn(()=>d("i",{"data-feather":"check"},null,-1)),lN=Wn(()=>d("span",{class:"sr-only"},"Check icon",-1)),cN=[aN,lN],dN={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},uN=Wn(()=>d("i",{"data-feather":"x"},null,-1)),_N=Wn(()=>d("span",{class:"sr-only"},"Cross icon",-1)),pN=[uN,_N],mN=["title"],gN={class:"flex"},fN=["onClick"],hN=Wn(()=>d("span",{class:"sr-only"},"Copy message",-1)),EN=Wn(()=>d("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)),bN=[hN,EN],SN=["onClick"],yN=Wn(()=>d("span",{class:"sr-only"},"Close",-1)),vN=Wn(()=>d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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)),TN=[yN,vN];function CN(t,e,n,r,s,o){return v(),T("div",rN,[he(gn,{name:"toastItem",tag:"div"},{default:ke(()=>[(v(!0),T(Ne,null,Be(s.toastArr,i=>(v(),T("div",{key:i.id,class:"relative"},[d("div",sN,[d("div",oN,[si(t.$slots,"default",{},()=>[i.success?(v(),T("div",iN,cN)):U("",!0),i.success?U("",!0):(v(),T("div",dN,pN)),d("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3",title:i.message},j(i.message),9,mN)],!0)]),d("div",gN,[d("button",{type:"button",onClick:_e(a=>o.copyToClipBoard(i.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},bN,8,fN),d("button",{type:"button",onClick:a=>o.close(i.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},TN,8,SN)])])]))),128))]),_:3})])}const ds=qe(nN,[["render",CN],["__scopeId","data-v-3ffdabf3"]]);var $e={};const RN="Á",xN="á",ON="Ă",AN="ă",NN="∾",wN="∿",IN="∾̳",DN="Â",kN="â",MN="´",LN="А",PN="а",FN="Æ",UN="æ",BN="⁡",GN="𝔄",qN="𝔞",YN="À",VN="à",zN="ℵ",HN="ℵ",$N="Α",WN="α",KN="Ā",QN="ā",jN="⨿",ZN="&",XN="&",JN="⩕",ew="⩓",tw="∧",nw="⩜",rw="⩘",sw="⩚",ow="∠",iw="⦤",aw="∠",lw="⦨",cw="⦩",dw="⦪",uw="⦫",_w="⦬",pw="⦭",mw="⦮",gw="⦯",fw="∡",hw="∟",Ew="⊾",bw="⦝",Sw="∢",yw="Å",vw="⍼",Tw="Ą",Cw="ą",Rw="𝔸",xw="𝕒",Ow="⩯",Aw="≈",Nw="⩰",ww="≊",Iw="≋",Dw="'",kw="⁡",Mw="≈",Lw="≊",Pw="Å",Fw="å",Uw="𝒜",Bw="𝒶",Gw="≔",qw="*",Yw="≈",Vw="≍",zw="Ã",Hw="ã",$w="Ä",Ww="ä",Kw="∳",Qw="⨑",jw="≌",Zw="϶",Xw="‵",Jw="∽",eI="⋍",tI="∖",nI="⫧",rI="⊽",sI="⌅",oI="⌆",iI="⌅",aI="⎵",lI="⎶",cI="≌",dI="Б",uI="б",_I="„",pI="∵",mI="∵",gI="∵",fI="⦰",hI="϶",EI="ℬ",bI="ℬ",SI="Β",yI="β",vI="ℶ",TI="≬",CI="𝔅",RI="𝔟",xI="⋂",OI="◯",AI="⋃",NI="⨀",wI="⨁",II="⨂",DI="⨆",kI="★",MI="▽",LI="△",PI="⨄",FI="⋁",UI="⋀",BI="⤍",GI="⧫",qI="▪",YI="▴",VI="▾",zI="◂",HI="▸",$I="␣",WI="▒",KI="░",QI="▓",jI="█",ZI="=⃥",XI="≡⃥",JI="⫭",eD="⌐",tD="𝔹",nD="𝕓",rD="⊥",sD="⊥",oD="⋈",iD="⧉",aD="┐",lD="╕",cD="╖",dD="╗",uD="┌",_D="╒",pD="╓",mD="╔",gD="─",fD="═",hD="┬",ED="╤",bD="╥",SD="╦",yD="┴",vD="╧",TD="╨",CD="╩",RD="⊟",xD="⊞",OD="⊠",AD="┘",ND="╛",wD="╜",ID="╝",DD="└",kD="╘",MD="╙",LD="╚",PD="│",FD="║",UD="┼",BD="╪",GD="╫",qD="╬",YD="┤",VD="╡",zD="╢",HD="╣",$D="├",WD="╞",KD="╟",QD="╠",jD="‵",ZD="˘",XD="˘",JD="¦",ek="𝒷",tk="ℬ",nk="⁏",rk="∽",sk="⋍",ok="⧅",ik="\\",ak="⟈",lk="•",ck="•",dk="≎",uk="⪮",_k="≏",pk="≎",mk="≏",gk="Ć",fk="ć",hk="⩄",Ek="⩉",bk="⩋",Sk="∩",yk="⋒",vk="⩇",Tk="⩀",Ck="ⅅ",Rk="∩︀",xk="⁁",Ok="ˇ",Ak="ℭ",Nk="⩍",wk="Č",Ik="č",Dk="Ç",kk="ç",Mk="Ĉ",Lk="ĉ",Pk="∰",Fk="⩌",Uk="⩐",Bk="Ċ",Gk="ċ",qk="¸",Yk="¸",Vk="⦲",zk="¢",Hk="·",$k="·",Wk="𝔠",Kk="ℭ",Qk="Ч",jk="ч",Zk="✓",Xk="✓",Jk="Χ",e2="χ",t2="ˆ",n2="≗",r2="↺",s2="↻",o2="⊛",i2="⊚",a2="⊝",l2="⊙",c2="®",d2="Ⓢ",u2="⊖",_2="⊕",p2="⊗",m2="○",g2="⧃",f2="≗",h2="⨐",E2="⫯",b2="⧂",S2="∲",y2="”",v2="’",T2="♣",C2="♣",R2=":",x2="∷",O2="⩴",A2="≔",N2="≔",w2=",",I2="@",D2="∁",k2="∘",M2="∁",L2="ℂ",P2="≅",F2="⩭",U2="≡",B2="∮",G2="∯",q2="∮",Y2="𝕔",V2="ℂ",z2="∐",H2="∐",$2="©",W2="©",K2="℗",Q2="∳",j2="↵",Z2="✗",X2="⨯",J2="𝒞",eM="𝒸",tM="⫏",nM="⫑",rM="⫐",sM="⫒",oM="⋯",iM="⤸",aM="⤵",lM="⋞",cM="⋟",dM="↶",uM="⤽",_M="⩈",pM="⩆",mM="≍",gM="∪",fM="⋓",hM="⩊",EM="⊍",bM="⩅",SM="∪︀",yM="↷",vM="⤼",TM="⋞",CM="⋟",RM="⋎",xM="⋏",OM="¤",AM="↶",NM="↷",wM="⋎",IM="⋏",DM="∲",kM="∱",MM="⌭",LM="†",PM="‡",FM="ℸ",UM="↓",BM="↡",GM="⇓",qM="‐",YM="⫤",VM="⊣",zM="⤏",HM="˝",$M="Ď",WM="ď",KM="Д",QM="д",jM="‡",ZM="⇊",XM="ⅅ",JM="ⅆ",eL="⤑",tL="⩷",nL="°",rL="∇",sL="Δ",oL="δ",iL="⦱",aL="⥿",lL="𝔇",cL="𝔡",dL="⥥",uL="⇃",_L="⇂",pL="´",mL="˙",gL="˝",fL="`",hL="˜",EL="⋄",bL="⋄",SL="⋄",yL="♦",vL="♦",TL="¨",CL="ⅆ",RL="ϝ",xL="⋲",OL="÷",AL="÷",NL="⋇",wL="⋇",IL="Ђ",DL="ђ",kL="⌞",ML="⌍",LL="$",PL="𝔻",FL="𝕕",UL="¨",BL="˙",GL="⃜",qL="≐",YL="≑",VL="≐",zL="∸",HL="∔",$L="⊡",WL="⌆",KL="∯",QL="¨",jL="⇓",ZL="⇐",XL="⇔",JL="⫤",eP="⟸",tP="⟺",nP="⟹",rP="⇒",sP="⊨",oP="⇑",iP="⇕",aP="∥",lP="⤓",cP="↓",dP="↓",uP="⇓",_P="⇵",pP="̑",mP="⇊",gP="⇃",fP="⇂",hP="⥐",EP="⥞",bP="⥖",SP="↽",yP="⥟",vP="⥗",TP="⇁",CP="↧",RP="⊤",xP="⤐",OP="⌟",AP="⌌",NP="𝒟",wP="𝒹",IP="Ѕ",DP="ѕ",kP="⧶",MP="Đ",LP="đ",PP="⋱",FP="▿",UP="▾",BP="⇵",GP="⥯",qP="⦦",YP="Џ",VP="џ",zP="⟿",HP="É",$P="é",WP="⩮",KP="Ě",QP="ě",jP="Ê",ZP="ê",XP="≖",JP="≕",eF="Э",tF="э",nF="⩷",rF="Ė",sF="ė",oF="≑",iF="ⅇ",aF="≒",lF="𝔈",cF="𝔢",dF="⪚",uF="È",_F="è",pF="⪖",mF="⪘",gF="⪙",fF="∈",hF="⏧",EF="ℓ",bF="⪕",SF="⪗",yF="Ē",vF="ē",TF="∅",CF="∅",RF="◻",xF="∅",OF="▫",AF=" ",NF=" ",wF=" ",IF="Ŋ",DF="ŋ",kF=" ",MF="Ę",LF="ę",PF="𝔼",FF="𝕖",UF="⋕",BF="⧣",GF="⩱",qF="ε",YF="Ε",VF="ε",zF="ϵ",HF="≖",$F="≕",WF="≂",KF="⪖",QF="⪕",jF="⩵",ZF="=",XF="≂",JF="≟",eU="⇌",tU="≡",nU="⩸",rU="⧥",sU="⥱",oU="≓",iU="ℯ",aU="ℰ",lU="≐",cU="⩳",dU="≂",uU="Η",_U="η",pU="Ð",mU="ð",gU="Ë",fU="ë",hU="€",EU="!",bU="∃",SU="∃",yU="ℰ",vU="ⅇ",TU="ⅇ",CU="≒",RU="Ф",xU="ф",OU="♀",AU="ffi",NU="ff",wU="ffl",IU="𝔉",DU="𝔣",kU="fi",MU="◼",LU="▪",PU="fj",FU="♭",UU="fl",BU="▱",GU="ƒ",qU="𝔽",YU="𝕗",VU="∀",zU="∀",HU="⋔",$U="⫙",WU="ℱ",KU="⨍",QU="½",jU="⅓",ZU="¼",XU="⅕",JU="⅙",eB="⅛",tB="⅔",nB="⅖",rB="¾",sB="⅗",oB="⅜",iB="⅘",aB="⅚",lB="⅝",cB="⅞",dB="⁄",uB="⌢",_B="𝒻",pB="ℱ",mB="ǵ",gB="Γ",fB="γ",hB="Ϝ",EB="ϝ",bB="⪆",SB="Ğ",yB="ğ",vB="Ģ",TB="Ĝ",CB="ĝ",RB="Г",xB="г",OB="Ġ",AB="ġ",NB="≥",wB="≧",IB="⪌",DB="⋛",kB="≥",MB="≧",LB="⩾",PB="⪩",FB="⩾",UB="⪀",BB="⪂",GB="⪄",qB="⋛︀",YB="⪔",VB="𝔊",zB="𝔤",HB="≫",$B="⋙",WB="⋙",KB="ℷ",QB="Ѓ",jB="ѓ",ZB="⪥",XB="≷",JB="⪒",e5="⪤",t5="⪊",n5="⪊",r5="⪈",s5="≩",o5="⪈",i5="≩",a5="⋧",l5="𝔾",c5="𝕘",d5="`",u5="≥",_5="⋛",p5="≧",m5="⪢",g5="≷",f5="⩾",h5="≳",E5="𝒢",b5="ℊ",S5="≳",y5="⪎",v5="⪐",T5="⪧",C5="⩺",R5=">",x5=">",O5="≫",A5="⋗",N5="⦕",w5="⩼",I5="⪆",D5="⥸",k5="⋗",M5="⋛",L5="⪌",P5="≷",F5="≳",U5="≩︀",B5="≩︀",G5="ˇ",q5=" ",Y5="½",V5="ℋ",z5="Ъ",H5="ъ",$5="⥈",W5="↔",K5="⇔",Q5="↭",j5="^",Z5="ℏ",X5="Ĥ",J5="ĥ",e3="♥",t3="♥",n3="…",r3="⊹",s3="𝔥",o3="ℌ",i3="ℋ",a3="⤥",l3="⤦",c3="⇿",d3="∻",u3="↩",_3="↪",p3="𝕙",m3="ℍ",g3="―",f3="─",h3="𝒽",E3="ℋ",b3="ℏ",S3="Ħ",y3="ħ",v3="≎",T3="≏",C3="⁃",R3="‐",x3="Í",O3="í",A3="⁣",N3="Î",w3="î",I3="И",D3="и",k3="İ",M3="Е",L3="е",P3="¡",F3="⇔",U3="𝔦",B3="ℑ",G3="Ì",q3="ì",Y3="ⅈ",V3="⨌",z3="∭",H3="⧜",$3="℩",W3="IJ",K3="ij",Q3="Ī",j3="ī",Z3="ℑ",X3="ⅈ",J3="ℐ",e4="ℑ",t4="ı",n4="ℑ",r4="⊷",s4="Ƶ",o4="⇒",i4="℅",a4="∞",l4="⧝",c4="ı",d4="⊺",u4="∫",_4="∬",p4="ℤ",m4="∫",g4="⊺",f4="⋂",h4="⨗",E4="⨼",b4="⁣",S4="⁢",y4="Ё",v4="ё",T4="Į",C4="į",R4="𝕀",x4="𝕚",O4="Ι",A4="ι",N4="⨼",w4="¿",I4="𝒾",D4="ℐ",k4="∈",M4="⋵",L4="⋹",P4="⋴",F4="⋳",U4="∈",B4="⁢",G4="Ĩ",q4="ĩ",Y4="І",V4="і",z4="Ï",H4="ï",$4="Ĵ",W4="ĵ",K4="Й",Q4="й",j4="𝔍",Z4="𝔧",X4="ȷ",J4="𝕁",e9="𝕛",t9="𝒥",n9="𝒿",r9="Ј",s9="ј",o9="Є",i9="є",a9="Κ",l9="κ",c9="ϰ",d9="Ķ",u9="ķ",_9="К",p9="к",m9="𝔎",g9="𝔨",f9="ĸ",h9="Х",E9="х",b9="Ќ",S9="ќ",y9="𝕂",v9="𝕜",T9="𝒦",C9="𝓀",R9="⇚",x9="Ĺ",O9="ĺ",A9="⦴",N9="ℒ",w9="Λ",I9="λ",D9="⟨",k9="⟪",M9="⦑",L9="⟨",P9="⪅",F9="ℒ",U9="«",B9="⇤",G9="⤟",q9="←",Y9="↞",V9="⇐",z9="⤝",H9="↩",$9="↫",W9="⤹",K9="⥳",Q9="↢",j9="⤙",Z9="⤛",X9="⪫",J9="⪭",eG="⪭︀",tG="⤌",nG="⤎",rG="❲",sG="{",oG="[",iG="⦋",aG="⦏",lG="⦍",cG="Ľ",dG="ľ",uG="Ļ",_G="ļ",pG="⌈",mG="{",gG="Л",fG="л",hG="⤶",EG="“",bG="„",SG="⥧",yG="⥋",vG="↲",TG="≤",CG="≦",RG="⟨",xG="⇤",OG="←",AG="←",NG="⇐",wG="⇆",IG="↢",DG="⌈",kG="⟦",MG="⥡",LG="⥙",PG="⇃",FG="⌊",UG="↽",BG="↼",GG="⇇",qG="↔",YG="↔",VG="⇔",zG="⇆",HG="⇋",$G="↭",WG="⥎",KG="↤",QG="⊣",jG="⥚",ZG="⋋",XG="⧏",JG="⊲",e8="⊴",t8="⥑",n8="⥠",r8="⥘",s8="↿",o8="⥒",i8="↼",a8="⪋",l8="⋚",c8="≤",d8="≦",u8="⩽",_8="⪨",p8="⩽",m8="⩿",g8="⪁",f8="⪃",h8="⋚︀",E8="⪓",b8="⪅",S8="⋖",y8="⋚",v8="⪋",T8="⋚",C8="≦",R8="≶",x8="≶",O8="⪡",A8="≲",N8="⩽",w8="≲",I8="⥼",D8="⌊",k8="𝔏",M8="𝔩",L8="≶",P8="⪑",F8="⥢",U8="↽",B8="↼",G8="⥪",q8="▄",Y8="Љ",V8="љ",z8="⇇",H8="≪",$8="⋘",W8="⌞",K8="⇚",Q8="⥫",j8="◺",Z8="Ŀ",X8="ŀ",J8="⎰",e6="⎰",t6="⪉",n6="⪉",r6="⪇",s6="≨",o6="⪇",i6="≨",a6="⋦",l6="⟬",c6="⇽",d6="⟦",u6="⟵",_6="⟵",p6="⟸",m6="⟷",g6="⟷",f6="⟺",h6="⟼",E6="⟶",b6="⟶",S6="⟹",y6="↫",v6="↬",T6="⦅",C6="𝕃",R6="𝕝",x6="⨭",O6="⨴",A6="∗",N6="_",w6="↙",I6="↘",D6="◊",k6="◊",M6="⧫",L6="(",P6="⦓",F6="⇆",U6="⌟",B6="⇋",G6="⥭",q6="‎",Y6="⊿",V6="‹",z6="𝓁",H6="ℒ",$6="↰",W6="↰",K6="≲",Q6="⪍",j6="⪏",Z6="[",X6="‘",J6="‚",eq="Ł",tq="ł",nq="⪦",rq="⩹",sq="<",oq="<",iq="≪",aq="⋖",lq="⋋",cq="⋉",dq="⥶",uq="⩻",_q="◃",pq="⊴",mq="◂",gq="⦖",fq="⥊",hq="⥦",Eq="≨︀",bq="≨︀",Sq="¯",yq="♂",vq="✠",Tq="✠",Cq="↦",Rq="↦",xq="↧",Oq="↤",Aq="↥",Nq="▮",wq="⨩",Iq="М",Dq="м",kq="—",Mq="∺",Lq="∡",Pq=" ",Fq="ℳ",Uq="𝔐",Bq="𝔪",Gq="℧",qq="µ",Yq="*",Vq="⫰",zq="∣",Hq="·",$q="⊟",Wq="−",Kq="∸",Qq="⨪",jq="∓",Zq="⫛",Xq="…",Jq="∓",e7="⊧",t7="𝕄",n7="𝕞",r7="∓",s7="𝓂",o7="ℳ",i7="∾",a7="Μ",l7="μ",c7="⊸",d7="⊸",u7="∇",_7="Ń",p7="ń",m7="∠⃒",g7="≉",f7="⩰̸",h7="≋̸",E7="ʼn",b7="≉",S7="♮",y7="ℕ",v7="♮",T7=" ",C7="≎̸",R7="≏̸",x7="⩃",O7="Ň",A7="ň",N7="Ņ",w7="ņ",I7="≇",D7="⩭̸",k7="⩂",M7="Н",L7="н",P7="–",F7="⤤",U7="↗",B7="⇗",G7="↗",q7="≠",Y7="≐̸",V7="​",z7="​",H7="​",$7="​",W7="≢",K7="⤨",Q7="≂̸",j7="≫",Z7="≪",X7=` `,J7="∄",eY="∄",tY="𝔑",nY="𝔫",rY="≧̸",sY="≱",oY="≱",iY="≧̸",aY="⩾̸",lY="⩾̸",cY="⋙̸",dY="≵",uY="≫⃒",_Y="≯",pY="≯",mY="≫̸",gY="↮",fY="⇎",hY="⫲",EY="∋",bY="⋼",SY="⋺",yY="∋",vY="Њ",TY="њ",CY="↚",RY="⇍",xY="‥",OY="≦̸",AY="≰",NY="↚",wY="⇍",IY="↮",DY="⇎",kY="≰",MY="≦̸",LY="⩽̸",PY="⩽̸",FY="≮",UY="⋘̸",BY="≴",GY="≪⃒",qY="≮",YY="⋪",VY="⋬",zY="≪̸",HY="∤",$Y="⁠",WY=" ",KY="𝕟",QY="ℕ",jY="⫬",ZY="¬",XY="≢",JY="≭",eV="∦",tV="∉",nV="≠",rV="≂̸",sV="∄",oV="≯",iV="≱",aV="≧̸",lV="≫̸",cV="≹",dV="⩾̸",uV="≵",_V="≎̸",pV="≏̸",mV="∉",gV="⋵̸",fV="⋹̸",hV="∉",EV="⋷",bV="⋶",SV="⧏̸",yV="⋪",vV="⋬",TV="≮",CV="≰",RV="≸",xV="≪̸",OV="⩽̸",AV="≴",NV="⪢̸",wV="⪡̸",IV="∌",DV="∌",kV="⋾",MV="⋽",LV="⊀",PV="⪯̸",FV="⋠",UV="∌",BV="⧐̸",GV="⋫",qV="⋭",YV="⊏̸",VV="⋢",zV="⊐̸",HV="⋣",$V="⊂⃒",WV="⊈",KV="⊁",QV="⪰̸",jV="⋡",ZV="≿̸",XV="⊃⃒",JV="⊉",ez="≁",tz="≄",nz="≇",rz="≉",sz="∤",oz="∦",iz="∦",az="⫽⃥",lz="∂̸",cz="⨔",dz="⊀",uz="⋠",_z="⊀",pz="⪯̸",mz="⪯̸",gz="⤳̸",fz="↛",hz="⇏",Ez="↝̸",bz="↛",Sz="⇏",yz="⋫",vz="⋭",Tz="⊁",Cz="⋡",Rz="⪰̸",xz="𝒩",Oz="𝓃",Az="∤",Nz="∦",wz="≁",Iz="≄",Dz="≄",kz="∤",Mz="∦",Lz="⋢",Pz="⋣",Fz="⊄",Uz="⫅̸",Bz="⊈",Gz="⊂⃒",qz="⊈",Yz="⫅̸",Vz="⊁",zz="⪰̸",Hz="⊅",$z="⫆̸",Wz="⊉",Kz="⊃⃒",Qz="⊉",jz="⫆̸",Zz="≹",Xz="Ñ",Jz="ñ",eH="≸",tH="⋪",nH="⋬",rH="⋫",sH="⋭",oH="Ν",iH="ν",aH="#",lH="№",cH=" ",dH="≍⃒",uH="⊬",_H="⊭",pH="⊮",mH="⊯",gH="≥⃒",fH=">⃒",hH="⤄",EH="⧞",bH="⤂",SH="≤⃒",yH="<⃒",vH="⊴⃒",TH="⤃",CH="⊵⃒",RH="∼⃒",xH="⤣",OH="↖",AH="⇖",NH="↖",wH="⤧",IH="Ó",DH="ó",kH="⊛",MH="Ô",LH="ô",PH="⊚",FH="О",UH="о",BH="⊝",GH="Ő",qH="ő",YH="⨸",VH="⊙",zH="⦼",HH="Œ",$H="œ",WH="⦿",KH="𝔒",QH="𝔬",jH="˛",ZH="Ò",XH="ò",JH="⧁",e$="⦵",t$="Ω",n$="∮",r$="↺",s$="⦾",o$="⦻",i$="‾",a$="⧀",l$="Ō",c$="ō",d$="Ω",u$="ω",_$="Ο",p$="ο",m$="⦶",g$="⊖",f$="𝕆",h$="𝕠",E$="⦷",b$="“",S$="‘",y$="⦹",v$="⊕",T$="↻",C$="⩔",R$="∨",x$="⩝",O$="ℴ",A$="ℴ",N$="ª",w$="º",I$="⊶",D$="⩖",k$="⩗",M$="⩛",L$="Ⓢ",P$="𝒪",F$="ℴ",U$="Ø",B$="ø",G$="⊘",q$="Õ",Y$="õ",V$="⨶",z$="⨷",H$="⊗",$$="Ö",W$="ö",K$="⌽",Q$="‾",j$="⏞",Z$="⎴",X$="⏜",J$="¶",eW="∥",tW="∥",nW="⫳",rW="⫽",sW="∂",oW="∂",iW="П",aW="п",lW="%",cW=".",dW="‰",uW="⊥",_W="‱",pW="𝔓",mW="𝔭",gW="Φ",fW="φ",hW="ϕ",EW="ℳ",bW="☎",SW="Π",yW="π",vW="⋔",TW="ϖ",CW="ℏ",RW="ℎ",xW="ℏ",OW="⨣",AW="⊞",NW="⨢",wW="+",IW="∔",DW="⨥",kW="⩲",MW="±",LW="±",PW="⨦",FW="⨧",UW="±",BW="ℌ",GW="⨕",qW="𝕡",YW="ℙ",VW="£",zW="⪷",HW="⪻",$W="≺",WW="≼",KW="⪷",QW="≺",jW="≼",ZW="≺",XW="⪯",JW="≼",eK="≾",tK="⪯",nK="⪹",rK="⪵",sK="⋨",oK="⪯",iK="⪳",aK="≾",lK="′",cK="″",dK="ℙ",uK="⪹",_K="⪵",pK="⋨",mK="∏",gK="∏",fK="⌮",hK="⌒",EK="⌓",bK="∝",SK="∝",yK="∷",vK="∝",TK="≾",CK="⊰",RK="𝒫",xK="𝓅",OK="Ψ",AK="ψ",NK=" ",wK="𝔔",IK="𝔮",DK="⨌",kK="𝕢",MK="ℚ",LK="⁗",PK="𝒬",FK="𝓆",UK="ℍ",BK="⨖",GK="?",qK="≟",YK='"',VK='"',zK="⇛",HK="∽̱",$K="Ŕ",WK="ŕ",KK="√",QK="⦳",jK="⟩",ZK="⟫",XK="⦒",JK="⦥",eQ="⟩",tQ="»",nQ="⥵",rQ="⇥",sQ="⤠",oQ="⤳",iQ="→",aQ="↠",lQ="⇒",cQ="⤞",dQ="↪",uQ="↬",_Q="⥅",pQ="⥴",mQ="⤖",gQ="↣",fQ="↝",hQ="⤚",EQ="⤜",bQ="∶",SQ="ℚ",yQ="⤍",vQ="⤏",TQ="⤐",CQ="❳",RQ="}",xQ="]",OQ="⦌",AQ="⦎",NQ="⦐",wQ="Ř",IQ="ř",DQ="Ŗ",kQ="ŗ",MQ="⌉",LQ="}",PQ="Р",FQ="р",UQ="⤷",BQ="⥩",GQ="”",qQ="”",YQ="↳",VQ="ℜ",zQ="ℛ",HQ="ℜ",$Q="ℝ",WQ="ℜ",KQ="▭",QQ="®",jQ="®",ZQ="∋",XQ="⇋",JQ="⥯",ej="⥽",tj="⌋",nj="𝔯",rj="ℜ",sj="⥤",oj="⇁",ij="⇀",aj="⥬",lj="Ρ",cj="ρ",dj="ϱ",uj="⟩",_j="⇥",pj="→",mj="→",gj="⇒",fj="⇄",hj="↣",Ej="⌉",bj="⟧",Sj="⥝",yj="⥕",vj="⇂",Tj="⌋",Cj="⇁",Rj="⇀",xj="⇄",Oj="⇌",Aj="⇉",Nj="↝",wj="↦",Ij="⊢",Dj="⥛",kj="⋌",Mj="⧐",Lj="⊳",Pj="⊵",Fj="⥏",Uj="⥜",Bj="⥔",Gj="↾",qj="⥓",Yj="⇀",Vj="˚",zj="≓",Hj="⇄",$j="⇌",Wj="‏",Kj="⎱",Qj="⎱",jj="⫮",Zj="⟭",Xj="⇾",Jj="⟧",eZ="⦆",tZ="𝕣",nZ="ℝ",rZ="⨮",sZ="⨵",oZ="⥰",iZ=")",aZ="⦔",lZ="⨒",cZ="⇉",dZ="⇛",uZ="›",_Z="𝓇",pZ="ℛ",mZ="↱",gZ="↱",fZ="]",hZ="’",EZ="’",bZ="⋌",SZ="⋊",yZ="▹",vZ="⊵",TZ="▸",CZ="⧎",RZ="⧴",xZ="⥨",OZ="℞",AZ="Ś",NZ="ś",wZ="‚",IZ="⪸",DZ="Š",kZ="š",MZ="⪼",LZ="≻",PZ="≽",FZ="⪰",UZ="⪴",BZ="Ş",GZ="ş",qZ="Ŝ",YZ="ŝ",VZ="⪺",zZ="⪶",HZ="⋩",$Z="⨓",WZ="≿",KZ="С",QZ="с",jZ="⊡",ZZ="⋅",XZ="⩦",JZ="⤥",eX="↘",tX="⇘",nX="↘",rX="§",sX=";",oX="⤩",iX="∖",aX="∖",lX="✶",cX="𝔖",dX="𝔰",uX="⌢",_X="♯",pX="Щ",mX="щ",gX="Ш",fX="ш",hX="↓",EX="←",bX="∣",SX="∥",yX="→",vX="↑",TX="­",CX="Σ",RX="σ",xX="ς",OX="ς",AX="∼",NX="⩪",wX="≃",IX="≃",DX="⪞",kX="⪠",MX="⪝",LX="⪟",PX="≆",FX="⨤",UX="⥲",BX="←",GX="∘",qX="∖",YX="⨳",VX="⧤",zX="∣",HX="⌣",$X="⪪",WX="⪬",KX="⪬︀",QX="Ь",jX="ь",ZX="⌿",XX="⧄",JX="/",eJ="𝕊",tJ="𝕤",nJ="♠",rJ="♠",sJ="∥",oJ="⊓",iJ="⊓︀",aJ="⊔",lJ="⊔︀",cJ="√",dJ="⊏",uJ="⊑",_J="⊏",pJ="⊑",mJ="⊐",gJ="⊒",fJ="⊐",hJ="⊒",EJ="□",bJ="□",SJ="⊓",yJ="⊏",vJ="⊑",TJ="⊐",CJ="⊒",RJ="⊔",xJ="▪",OJ="□",AJ="▪",NJ="→",wJ="𝒮",IJ="𝓈",DJ="∖",kJ="⌣",MJ="⋆",LJ="⋆",PJ="☆",FJ="★",UJ="ϵ",BJ="ϕ",GJ="¯",qJ="⊂",YJ="⋐",VJ="⪽",zJ="⫅",HJ="⊆",$J="⫃",WJ="⫁",KJ="⫋",QJ="⊊",jJ="⪿",ZJ="⥹",XJ="⊂",JJ="⋐",eee="⊆",tee="⫅",nee="⊆",ree="⊊",see="⫋",oee="⫇",iee="⫕",aee="⫓",lee="⪸",cee="≻",dee="≽",uee="≻",_ee="⪰",pee="≽",mee="≿",gee="⪰",fee="⪺",hee="⪶",Eee="⋩",bee="≿",See="∋",yee="∑",vee="∑",Tee="♪",Cee="¹",Ree="²",xee="³",Oee="⊃",Aee="⋑",Nee="⪾",wee="⫘",Iee="⫆",Dee="⊇",kee="⫄",Mee="⊃",Lee="⊇",Pee="⟉",Fee="⫗",Uee="⥻",Bee="⫂",Gee="⫌",qee="⊋",Yee="⫀",Vee="⊃",zee="⋑",Hee="⊇",$ee="⫆",Wee="⊋",Kee="⫌",Qee="⫈",jee="⫔",Zee="⫖",Xee="⤦",Jee="↙",ete="⇙",tte="↙",nte="⤪",rte="ß",ste=" ",ote="⌖",ite="Τ",ate="τ",lte="⎴",cte="Ť",dte="ť",ute="Ţ",_te="ţ",pte="Т",mte="т",gte="⃛",fte="⌕",hte="𝔗",Ete="𝔱",bte="∴",Ste="∴",yte="∴",vte="Θ",Tte="θ",Cte="ϑ",Rte="ϑ",xte="≈",Ote="∼",Ate="  ",Nte=" ",wte=" ",Ite="≈",Dte="∼",kte="Þ",Mte="þ",Lte="˜",Pte="∼",Fte="≃",Ute="≅",Bte="≈",Gte="⨱",qte="⊠",Yte="×",Vte="⨰",zte="∭",Hte="⤨",$te="⌶",Wte="⫱",Kte="⊤",Qte="𝕋",jte="𝕥",Zte="⫚",Xte="⤩",Jte="‴",ene="™",tne="™",nne="▵",rne="▿",sne="◃",one="⊴",ine="≜",ane="▹",lne="⊵",cne="◬",dne="≜",une="⨺",_ne="⃛",pne="⨹",mne="⧍",gne="⨻",fne="⏢",hne="𝒯",Ene="𝓉",bne="Ц",Sne="ц",yne="Ћ",vne="ћ",Tne="Ŧ",Cne="ŧ",Rne="≬",xne="↞",One="↠",Ane="Ú",Nne="ú",wne="↑",Ine="↟",Dne="⇑",kne="⥉",Mne="Ў",Lne="ў",Pne="Ŭ",Fne="ŭ",Une="Û",Bne="û",Gne="У",qne="у",Yne="⇅",Vne="Ű",zne="ű",Hne="⥮",$ne="⥾",Wne="𝔘",Kne="𝔲",Qne="Ù",jne="ù",Zne="⥣",Xne="↿",Jne="↾",ere="▀",tre="⌜",nre="⌜",rre="⌏",sre="◸",ore="Ū",ire="ū",are="¨",lre="_",cre="⏟",dre="⎵",ure="⏝",_re="⋃",pre="⊎",mre="Ų",gre="ų",fre="𝕌",hre="𝕦",Ere="⤒",bre="↑",Sre="↑",yre="⇑",vre="⇅",Tre="↕",Cre="↕",Rre="⇕",xre="⥮",Ore="↿",Are="↾",Nre="⊎",wre="↖",Ire="↗",Dre="υ",kre="ϒ",Mre="ϒ",Lre="Υ",Pre="υ",Fre="↥",Ure="⊥",Bre="⇈",Gre="⌝",qre="⌝",Yre="⌎",Vre="Ů",zre="ů",Hre="◹",$re="𝒰",Wre="𝓊",Kre="⋰",Qre="Ũ",jre="ũ",Zre="▵",Xre="▴",Jre="⇈",ese="Ü",tse="ü",nse="⦧",rse="⦜",sse="ϵ",ose="ϰ",ise="∅",ase="ϕ",lse="ϖ",cse="∝",dse="↕",use="⇕",_se="ϱ",pse="ς",mse="⊊︀",gse="⫋︀",fse="⊋︀",hse="⫌︀",Ese="ϑ",bse="⊲",Sse="⊳",yse="⫨",vse="⫫",Tse="⫩",Cse="В",Rse="в",xse="⊢",Ose="⊨",Ase="⊩",Nse="⊫",wse="⫦",Ise="⊻",Dse="∨",kse="⋁",Mse="≚",Lse="⋮",Pse="|",Fse="‖",Use="|",Bse="‖",Gse="∣",qse="|",Yse="❘",Vse="≀",zse=" ",Hse="𝔙",$se="𝔳",Wse="⊲",Kse="⊂⃒",Qse="⊃⃒",jse="𝕍",Zse="𝕧",Xse="∝",Jse="⊳",eoe="𝒱",toe="𝓋",noe="⫋︀",roe="⊊︀",soe="⫌︀",ooe="⊋︀",ioe="⊪",aoe="⦚",loe="Ŵ",coe="ŵ",doe="⩟",uoe="∧",_oe="⋀",poe="≙",moe="℘",goe="𝔚",foe="𝔴",hoe="𝕎",Eoe="𝕨",boe="℘",Soe="≀",yoe="≀",voe="𝒲",Toe="𝓌",Coe="⋂",Roe="◯",xoe="⋃",Ooe="▽",Aoe="𝔛",Noe="𝔵",woe="⟷",Ioe="⟺",Doe="Ξ",koe="ξ",Moe="⟵",Loe="⟸",Poe="⟼",Foe="⋻",Uoe="⨀",Boe="𝕏",Goe="𝕩",qoe="⨁",Yoe="⨂",Voe="⟶",zoe="⟹",Hoe="𝒳",$oe="𝓍",Woe="⨆",Koe="⨄",Qoe="△",joe="⋁",Zoe="⋀",Xoe="Ý",Joe="ý",eie="Я",tie="я",nie="Ŷ",rie="ŷ",sie="Ы",oie="ы",iie="¥",aie="𝔜",lie="𝔶",cie="Ї",die="ї",uie="𝕐",_ie="𝕪",pie="𝒴",mie="𝓎",gie="Ю",fie="ю",hie="ÿ",Eie="Ÿ",bie="Ź",Sie="ź",yie="Ž",vie="ž",Tie="З",Cie="з",Rie="Ż",xie="ż",Oie="ℨ",Aie="​",Nie="Ζ",wie="ζ",Iie="𝔷",Die="ℨ",kie="Ж",Mie="ж",Lie="⇝",Pie="𝕫",Fie="ℤ",Uie="𝒵",Bie="𝓏",Gie="‍",qie="‌",Yie={Aacute:RN,aacute:xN,Abreve:ON,abreve:AN,ac:NN,acd:wN,acE:IN,Acirc:DN,acirc:kN,acute:MN,Acy:LN,acy:PN,AElig:FN,aelig:UN,af:BN,Afr:GN,afr:qN,Agrave:YN,agrave:VN,alefsym:zN,aleph:HN,Alpha:$N,alpha:WN,Amacr:KN,amacr:QN,amalg:jN,amp:ZN,AMP:XN,andand:JN,And:ew,and:tw,andd:nw,andslope:rw,andv:sw,ang:ow,ange:iw,angle:aw,angmsdaa:lw,angmsdab:cw,angmsdac:dw,angmsdad:uw,angmsdae:_w,angmsdaf:pw,angmsdag:mw,angmsdah:gw,angmsd:fw,angrt:hw,angrtvb:Ew,angrtvbd:bw,angsph:Sw,angst:yw,angzarr:vw,Aogon:Tw,aogon:Cw,Aopf:Rw,aopf:xw,apacir:Ow,ap:Aw,apE:Nw,ape:ww,apid:Iw,apos:Dw,ApplyFunction:kw,approx:Mw,approxeq:Lw,Aring:Pw,aring:Fw,Ascr:Uw,ascr:Bw,Assign:Gw,ast:qw,asymp:Yw,asympeq:Vw,Atilde:zw,atilde:Hw,Auml:$w,auml:Ww,awconint:Kw,awint:Qw,backcong:jw,backepsilon:Zw,backprime:Xw,backsim:Jw,backsimeq:eI,Backslash:tI,Barv:nI,barvee:rI,barwed:sI,Barwed:oI,barwedge:iI,bbrk:aI,bbrktbrk:lI,bcong:cI,Bcy:dI,bcy:uI,bdquo:_I,becaus:pI,because:mI,Because:gI,bemptyv:fI,bepsi:hI,bernou:EI,Bernoullis:bI,Beta:SI,beta:yI,beth:vI,between:TI,Bfr:CI,bfr:RI,bigcap:xI,bigcirc:OI,bigcup:AI,bigodot:NI,bigoplus:wI,bigotimes:II,bigsqcup:DI,bigstar:kI,bigtriangledown:MI,bigtriangleup:LI,biguplus:PI,bigvee:FI,bigwedge:UI,bkarow:BI,blacklozenge:GI,blacksquare:qI,blacktriangle:YI,blacktriangledown:VI,blacktriangleleft:zI,blacktriangleright:HI,blank:$I,blk12:WI,blk14:KI,blk34:QI,block:jI,bne:ZI,bnequiv:XI,bNot:JI,bnot:eD,Bopf:tD,bopf:nD,bot:rD,bottom:sD,bowtie:oD,boxbox:iD,boxdl:aD,boxdL:lD,boxDl:cD,boxDL:dD,boxdr:uD,boxdR:_D,boxDr:pD,boxDR:mD,boxh:gD,boxH:fD,boxhd:hD,boxHd:ED,boxhD:bD,boxHD:SD,boxhu:yD,boxHu:vD,boxhU:TD,boxHU:CD,boxminus:RD,boxplus:xD,boxtimes:OD,boxul:AD,boxuL:ND,boxUl:wD,boxUL:ID,boxur:DD,boxuR:kD,boxUr:MD,boxUR:LD,boxv:PD,boxV:FD,boxvh:UD,boxvH:BD,boxVh:GD,boxVH:qD,boxvl:YD,boxvL:VD,boxVl:zD,boxVL:HD,boxvr:$D,boxvR:WD,boxVr:KD,boxVR:QD,bprime:jD,breve:ZD,Breve:XD,brvbar:JD,bscr:ek,Bscr:tk,bsemi:nk,bsim:rk,bsime:sk,bsolb:ok,bsol:ik,bsolhsub:ak,bull:lk,bullet:ck,bump:dk,bumpE:uk,bumpe:_k,Bumpeq:pk,bumpeq:mk,Cacute:gk,cacute:fk,capand:hk,capbrcup:Ek,capcap:bk,cap:Sk,Cap:yk,capcup:vk,capdot:Tk,CapitalDifferentialD:Ck,caps:Rk,caret:xk,caron:Ok,Cayleys:Ak,ccaps:Nk,Ccaron:wk,ccaron:Ik,Ccedil:Dk,ccedil:kk,Ccirc:Mk,ccirc:Lk,Cconint:Pk,ccups:Fk,ccupssm:Uk,Cdot:Bk,cdot:Gk,cedil:qk,Cedilla:Yk,cemptyv:Vk,cent:zk,centerdot:Hk,CenterDot:$k,cfr:Wk,Cfr:Kk,CHcy:Qk,chcy:jk,check:Zk,checkmark:Xk,Chi:Jk,chi:e2,circ:t2,circeq:n2,circlearrowleft:r2,circlearrowright:s2,circledast:o2,circledcirc:i2,circleddash:a2,CircleDot:l2,circledR:c2,circledS:d2,CircleMinus:u2,CirclePlus:_2,CircleTimes:p2,cir:m2,cirE:g2,cire:f2,cirfnint:h2,cirmid:E2,cirscir:b2,ClockwiseContourIntegral:S2,CloseCurlyDoubleQuote:y2,CloseCurlyQuote:v2,clubs:T2,clubsuit:C2,colon:R2,Colon:x2,Colone:O2,colone:A2,coloneq:N2,comma:w2,commat:I2,comp:D2,compfn:k2,complement:M2,complexes:L2,cong:P2,congdot:F2,Congruent:U2,conint:B2,Conint:G2,ContourIntegral:q2,copf:Y2,Copf:V2,coprod:z2,Coproduct:H2,copy:$2,COPY:W2,copysr:K2,CounterClockwiseContourIntegral:Q2,crarr:j2,cross:Z2,Cross:X2,Cscr:J2,cscr:eM,csub:tM,csube:nM,csup:rM,csupe:sM,ctdot:oM,cudarrl:iM,cudarrr:aM,cuepr:lM,cuesc:cM,cularr:dM,cularrp:uM,cupbrcap:_M,cupcap:pM,CupCap:mM,cup:gM,Cup:fM,cupcup:hM,cupdot:EM,cupor:bM,cups:SM,curarr:yM,curarrm:vM,curlyeqprec:TM,curlyeqsucc:CM,curlyvee:RM,curlywedge:xM,curren:OM,curvearrowleft:AM,curvearrowright:NM,cuvee:wM,cuwed:IM,cwconint:DM,cwint:kM,cylcty:MM,dagger:LM,Dagger:PM,daleth:FM,darr:UM,Darr:BM,dArr:GM,dash:qM,Dashv:YM,dashv:VM,dbkarow:zM,dblac:HM,Dcaron:$M,dcaron:WM,Dcy:KM,dcy:QM,ddagger:jM,ddarr:ZM,DD:XM,dd:JM,DDotrahd:eL,ddotseq:tL,deg:nL,Del:rL,Delta:sL,delta:oL,demptyv:iL,dfisht:aL,Dfr:lL,dfr:cL,dHar:dL,dharl:uL,dharr:_L,DiacriticalAcute:pL,DiacriticalDot:mL,DiacriticalDoubleAcute:gL,DiacriticalGrave:fL,DiacriticalTilde:hL,diam:EL,diamond:bL,Diamond:SL,diamondsuit:yL,diams:vL,die:TL,DifferentialD:CL,digamma:RL,disin:xL,div:OL,divide:AL,divideontimes:NL,divonx:wL,DJcy:IL,djcy:DL,dlcorn:kL,dlcrop:ML,dollar:LL,Dopf:PL,dopf:FL,Dot:UL,dot:BL,DotDot:GL,doteq:qL,doteqdot:YL,DotEqual:VL,dotminus:zL,dotplus:HL,dotsquare:$L,doublebarwedge:WL,DoubleContourIntegral:KL,DoubleDot:QL,DoubleDownArrow:jL,DoubleLeftArrow:ZL,DoubleLeftRightArrow:XL,DoubleLeftTee:JL,DoubleLongLeftArrow:eP,DoubleLongLeftRightArrow:tP,DoubleLongRightArrow:nP,DoubleRightArrow:rP,DoubleRightTee:sP,DoubleUpArrow:oP,DoubleUpDownArrow:iP,DoubleVerticalBar:aP,DownArrowBar:lP,downarrow:cP,DownArrow:dP,Downarrow:uP,DownArrowUpArrow:_P,DownBreve:pP,downdownarrows:mP,downharpoonleft:gP,downharpoonright:fP,DownLeftRightVector:hP,DownLeftTeeVector:EP,DownLeftVectorBar:bP,DownLeftVector:SP,DownRightTeeVector:yP,DownRightVectorBar:vP,DownRightVector:TP,DownTeeArrow:CP,DownTee:RP,drbkarow:xP,drcorn:OP,drcrop:AP,Dscr:NP,dscr:wP,DScy:IP,dscy:DP,dsol:kP,Dstrok:MP,dstrok:LP,dtdot:PP,dtri:FP,dtrif:UP,duarr:BP,duhar:GP,dwangle:qP,DZcy:YP,dzcy:VP,dzigrarr:zP,Eacute:HP,eacute:$P,easter:WP,Ecaron:KP,ecaron:QP,Ecirc:jP,ecirc:ZP,ecir:XP,ecolon:JP,Ecy:eF,ecy:tF,eDDot:nF,Edot:rF,edot:sF,eDot:oF,ee:iF,efDot:aF,Efr:lF,efr:cF,eg:dF,Egrave:uF,egrave:_F,egs:pF,egsdot:mF,el:gF,Element:fF,elinters:hF,ell:EF,els:bF,elsdot:SF,Emacr:yF,emacr:vF,empty:TF,emptyset:CF,EmptySmallSquare:RF,emptyv:xF,EmptyVerySmallSquare:OF,emsp13:AF,emsp14:NF,emsp:wF,ENG:IF,eng:DF,ensp:kF,Eogon:MF,eogon:LF,Eopf:PF,eopf:FF,epar:UF,eparsl:BF,eplus:GF,epsi:qF,Epsilon:YF,epsilon:VF,epsiv:zF,eqcirc:HF,eqcolon:$F,eqsim:WF,eqslantgtr:KF,eqslantless:QF,Equal:jF,equals:ZF,EqualTilde:XF,equest:JF,Equilibrium:eU,equiv:tU,equivDD:nU,eqvparsl:rU,erarr:sU,erDot:oU,escr:iU,Escr:aU,esdot:lU,Esim:cU,esim:dU,Eta:uU,eta:_U,ETH:pU,eth:mU,Euml:gU,euml:fU,euro:hU,excl:EU,exist:bU,Exists:SU,expectation:yU,exponentiale:vU,ExponentialE:TU,fallingdotseq:CU,Fcy:RU,fcy:xU,female:OU,ffilig:AU,fflig:NU,ffllig:wU,Ffr:IU,ffr:DU,filig:kU,FilledSmallSquare:MU,FilledVerySmallSquare:LU,fjlig:PU,flat:FU,fllig:UU,fltns:BU,fnof:GU,Fopf:qU,fopf:YU,forall:VU,ForAll:zU,fork:HU,forkv:$U,Fouriertrf:WU,fpartint:KU,frac12:QU,frac13:jU,frac14:ZU,frac15:XU,frac16:JU,frac18:eB,frac23:tB,frac25:nB,frac34:rB,frac35:sB,frac38:oB,frac45:iB,frac56:aB,frac58:lB,frac78:cB,frasl:dB,frown:uB,fscr:_B,Fscr:pB,gacute:mB,Gamma:gB,gamma:fB,Gammad:hB,gammad:EB,gap:bB,Gbreve:SB,gbreve:yB,Gcedil:vB,Gcirc:TB,gcirc:CB,Gcy:RB,gcy:xB,Gdot:OB,gdot:AB,ge:NB,gE:wB,gEl:IB,gel:DB,geq:kB,geqq:MB,geqslant:LB,gescc:PB,ges:FB,gesdot:UB,gesdoto:BB,gesdotol:GB,gesl:qB,gesles:YB,Gfr:VB,gfr:zB,gg:HB,Gg:$B,ggg:WB,gimel:KB,GJcy:QB,gjcy:jB,gla:ZB,gl:XB,glE:JB,glj:e5,gnap:t5,gnapprox:n5,gne:r5,gnE:s5,gneq:o5,gneqq:i5,gnsim:a5,Gopf:l5,gopf:c5,grave:d5,GreaterEqual:u5,GreaterEqualLess:_5,GreaterFullEqual:p5,GreaterGreater:m5,GreaterLess:g5,GreaterSlantEqual:f5,GreaterTilde:h5,Gscr:E5,gscr:b5,gsim:S5,gsime:y5,gsiml:v5,gtcc:T5,gtcir:C5,gt:R5,GT:x5,Gt:O5,gtdot:A5,gtlPar:N5,gtquest:w5,gtrapprox:I5,gtrarr:D5,gtrdot:k5,gtreqless:M5,gtreqqless:L5,gtrless:P5,gtrsim:F5,gvertneqq:U5,gvnE:B5,Hacek:G5,hairsp:q5,half:Y5,hamilt:V5,HARDcy:z5,hardcy:H5,harrcir:$5,harr:W5,hArr:K5,harrw:Q5,Hat:j5,hbar:Z5,Hcirc:X5,hcirc:J5,hearts:e3,heartsuit:t3,hellip:n3,hercon:r3,hfr:s3,Hfr:o3,HilbertSpace:i3,hksearow:a3,hkswarow:l3,hoarr:c3,homtht:d3,hookleftarrow:u3,hookrightarrow:_3,hopf:p3,Hopf:m3,horbar:g3,HorizontalLine:f3,hscr:h3,Hscr:E3,hslash:b3,Hstrok:S3,hstrok:y3,HumpDownHump:v3,HumpEqual:T3,hybull:C3,hyphen:R3,Iacute:x3,iacute:O3,ic:A3,Icirc:N3,icirc:w3,Icy:I3,icy:D3,Idot:k3,IEcy:M3,iecy:L3,iexcl:P3,iff:F3,ifr:U3,Ifr:B3,Igrave:G3,igrave:q3,ii:Y3,iiiint:V3,iiint:z3,iinfin:H3,iiota:$3,IJlig:W3,ijlig:K3,Imacr:Q3,imacr:j3,image:Z3,ImaginaryI:X3,imagline:J3,imagpart:e4,imath:t4,Im:n4,imof:r4,imped:s4,Implies:o4,incare:i4,in:"∈",infin:a4,infintie:l4,inodot:c4,intcal:d4,int:u4,Int:_4,integers:p4,Integral:m4,intercal:g4,Intersection:f4,intlarhk:h4,intprod:E4,InvisibleComma:b4,InvisibleTimes:S4,IOcy:y4,iocy:v4,Iogon:T4,iogon:C4,Iopf:R4,iopf:x4,Iota:O4,iota:A4,iprod:N4,iquest:w4,iscr:I4,Iscr:D4,isin:k4,isindot:M4,isinE:L4,isins:P4,isinsv:F4,isinv:U4,it:B4,Itilde:G4,itilde:q4,Iukcy:Y4,iukcy:V4,Iuml:z4,iuml:H4,Jcirc:$4,jcirc:W4,Jcy:K4,jcy:Q4,Jfr:j4,jfr:Z4,jmath:X4,Jopf:J4,jopf:e9,Jscr:t9,jscr:n9,Jsercy:r9,jsercy:s9,Jukcy:o9,jukcy:i9,Kappa:a9,kappa:l9,kappav:c9,Kcedil:d9,kcedil:u9,Kcy:_9,kcy:p9,Kfr:m9,kfr:g9,kgreen:f9,KHcy:h9,khcy:E9,KJcy:b9,kjcy:S9,Kopf:y9,kopf:v9,Kscr:T9,kscr:C9,lAarr:R9,Lacute:x9,lacute:O9,laemptyv:A9,lagran:N9,Lambda:w9,lambda:I9,lang:D9,Lang:k9,langd:M9,langle:L9,lap:P9,Laplacetrf:F9,laquo:U9,larrb:B9,larrbfs:G9,larr:q9,Larr:Y9,lArr:V9,larrfs:z9,larrhk:H9,larrlp:$9,larrpl:W9,larrsim:K9,larrtl:Q9,latail:j9,lAtail:Z9,lat:X9,late:J9,lates:eG,lbarr:tG,lBarr:nG,lbbrk:rG,lbrace:sG,lbrack:oG,lbrke:iG,lbrksld:aG,lbrkslu:lG,Lcaron:cG,lcaron:dG,Lcedil:uG,lcedil:_G,lceil:pG,lcub:mG,Lcy:gG,lcy:fG,ldca:hG,ldquo:EG,ldquor:bG,ldrdhar:SG,ldrushar:yG,ldsh:vG,le:TG,lE:CG,LeftAngleBracket:RG,LeftArrowBar:xG,leftarrow:OG,LeftArrow:AG,Leftarrow:NG,LeftArrowRightArrow:wG,leftarrowtail:IG,LeftCeiling:DG,LeftDoubleBracket:kG,LeftDownTeeVector:MG,LeftDownVectorBar:LG,LeftDownVector:PG,LeftFloor:FG,leftharpoondown:UG,leftharpoonup:BG,leftleftarrows:GG,leftrightarrow:qG,LeftRightArrow:YG,Leftrightarrow:VG,leftrightarrows:zG,leftrightharpoons:HG,leftrightsquigarrow:$G,LeftRightVector:WG,LeftTeeArrow:KG,LeftTee:QG,LeftTeeVector:jG,leftthreetimes:ZG,LeftTriangleBar:XG,LeftTriangle:JG,LeftTriangleEqual:e8,LeftUpDownVector:t8,LeftUpTeeVector:n8,LeftUpVectorBar:r8,LeftUpVector:s8,LeftVectorBar:o8,LeftVector:i8,lEg:a8,leg:l8,leq:c8,leqq:d8,leqslant:u8,lescc:_8,les:p8,lesdot:m8,lesdoto:g8,lesdotor:f8,lesg:h8,lesges:E8,lessapprox:b8,lessdot:S8,lesseqgtr:y8,lesseqqgtr:v8,LessEqualGreater:T8,LessFullEqual:C8,LessGreater:R8,lessgtr:x8,LessLess:O8,lesssim:A8,LessSlantEqual:N8,LessTilde:w8,lfisht:I8,lfloor:D8,Lfr:k8,lfr:M8,lg:L8,lgE:P8,lHar:F8,lhard:U8,lharu:B8,lharul:G8,lhblk:q8,LJcy:Y8,ljcy:V8,llarr:z8,ll:H8,Ll:$8,llcorner:W8,Lleftarrow:K8,llhard:Q8,lltri:j8,Lmidot:Z8,lmidot:X8,lmoustache:J8,lmoust:e6,lnap:t6,lnapprox:n6,lne:r6,lnE:s6,lneq:o6,lneqq:i6,lnsim:a6,loang:l6,loarr:c6,lobrk:d6,longleftarrow:u6,LongLeftArrow:_6,Longleftarrow:p6,longleftrightarrow:m6,LongLeftRightArrow:g6,Longleftrightarrow:f6,longmapsto:h6,longrightarrow:E6,LongRightArrow:b6,Longrightarrow:S6,looparrowleft:y6,looparrowright:v6,lopar:T6,Lopf:C6,lopf:R6,loplus:x6,lotimes:O6,lowast:A6,lowbar:N6,LowerLeftArrow:w6,LowerRightArrow:I6,loz:D6,lozenge:k6,lozf:M6,lpar:L6,lparlt:P6,lrarr:F6,lrcorner:U6,lrhar:B6,lrhard:G6,lrm:q6,lrtri:Y6,lsaquo:V6,lscr:z6,Lscr:H6,lsh:$6,Lsh:W6,lsim:K6,lsime:Q6,lsimg:j6,lsqb:Z6,lsquo:X6,lsquor:J6,Lstrok:eq,lstrok:tq,ltcc:nq,ltcir:rq,lt:sq,LT:oq,Lt:iq,ltdot:aq,lthree:lq,ltimes:cq,ltlarr:dq,ltquest:uq,ltri:_q,ltrie:pq,ltrif:mq,ltrPar:gq,lurdshar:fq,luruhar:hq,lvertneqq:Eq,lvnE:bq,macr:Sq,male:yq,malt:vq,maltese:Tq,Map:"⤅",map:Cq,mapsto:Rq,mapstodown:xq,mapstoleft:Oq,mapstoup:Aq,marker:Nq,mcomma:wq,Mcy:Iq,mcy:Dq,mdash:kq,mDDot:Mq,measuredangle:Lq,MediumSpace:Pq,Mellintrf:Fq,Mfr:Uq,mfr:Bq,mho:Gq,micro:qq,midast:Yq,midcir:Vq,mid:zq,middot:Hq,minusb:$q,minus:Wq,minusd:Kq,minusdu:Qq,MinusPlus:jq,mlcp:Zq,mldr:Xq,mnplus:Jq,models:e7,Mopf:t7,mopf:n7,mp:r7,mscr:s7,Mscr:o7,mstpos:i7,Mu:a7,mu:l7,multimap:c7,mumap:d7,nabla:u7,Nacute:_7,nacute:p7,nang:m7,nap:g7,napE:f7,napid:h7,napos:E7,napprox:b7,natural:S7,naturals:y7,natur:v7,nbsp:T7,nbump:C7,nbumpe:R7,ncap:x7,Ncaron:O7,ncaron:A7,Ncedil:N7,ncedil:w7,ncong:I7,ncongdot:D7,ncup:k7,Ncy:M7,ncy:L7,ndash:P7,nearhk:F7,nearr:U7,neArr:B7,nearrow:G7,ne:q7,nedot:Y7,NegativeMediumSpace:V7,NegativeThickSpace:z7,NegativeThinSpace:H7,NegativeVeryThinSpace:$7,nequiv:W7,nesear:K7,nesim:Q7,NestedGreaterGreater:j7,NestedLessLess:Z7,NewLine:X7,nexist:J7,nexists:eY,Nfr:tY,nfr:nY,ngE:rY,nge:sY,ngeq:oY,ngeqq:iY,ngeqslant:aY,nges:lY,nGg:cY,ngsim:dY,nGt:uY,ngt:_Y,ngtr:pY,nGtv:mY,nharr:gY,nhArr:fY,nhpar:hY,ni:EY,nis:bY,nisd:SY,niv:yY,NJcy:vY,njcy:TY,nlarr:CY,nlArr:RY,nldr:xY,nlE:OY,nle:AY,nleftarrow:NY,nLeftarrow:wY,nleftrightarrow:IY,nLeftrightarrow:DY,nleq:kY,nleqq:MY,nleqslant:LY,nles:PY,nless:FY,nLl:UY,nlsim:BY,nLt:GY,nlt:qY,nltri:YY,nltrie:VY,nLtv:zY,nmid:HY,NoBreak:$Y,NonBreakingSpace:WY,nopf:KY,Nopf:QY,Not:jY,not:ZY,NotCongruent:XY,NotCupCap:JY,NotDoubleVerticalBar:eV,NotElement:tV,NotEqual:nV,NotEqualTilde:rV,NotExists:sV,NotGreater:oV,NotGreaterEqual:iV,NotGreaterFullEqual:aV,NotGreaterGreater:lV,NotGreaterLess:cV,NotGreaterSlantEqual:dV,NotGreaterTilde:uV,NotHumpDownHump:_V,NotHumpEqual:pV,notin:mV,notindot:gV,notinE:fV,notinva:hV,notinvb:EV,notinvc:bV,NotLeftTriangleBar:SV,NotLeftTriangle:yV,NotLeftTriangleEqual:vV,NotLess:TV,NotLessEqual:CV,NotLessGreater:RV,NotLessLess:xV,NotLessSlantEqual:OV,NotLessTilde:AV,NotNestedGreaterGreater:NV,NotNestedLessLess:wV,notni:IV,notniva:DV,notnivb:kV,notnivc:MV,NotPrecedes:LV,NotPrecedesEqual:PV,NotPrecedesSlantEqual:FV,NotReverseElement:UV,NotRightTriangleBar:BV,NotRightTriangle:GV,NotRightTriangleEqual:qV,NotSquareSubset:YV,NotSquareSubsetEqual:VV,NotSquareSuperset:zV,NotSquareSupersetEqual:HV,NotSubset:$V,NotSubsetEqual:WV,NotSucceeds:KV,NotSucceedsEqual:QV,NotSucceedsSlantEqual:jV,NotSucceedsTilde:ZV,NotSuperset:XV,NotSupersetEqual:JV,NotTilde:ez,NotTildeEqual:tz,NotTildeFullEqual:nz,NotTildeTilde:rz,NotVerticalBar:sz,nparallel:oz,npar:iz,nparsl:az,npart:lz,npolint:cz,npr:dz,nprcue:uz,nprec:_z,npreceq:pz,npre:mz,nrarrc:gz,nrarr:fz,nrArr:hz,nrarrw:Ez,nrightarrow:bz,nRightarrow:Sz,nrtri:yz,nrtrie:vz,nsc:Tz,nsccue:Cz,nsce:Rz,Nscr:xz,nscr:Oz,nshortmid:Az,nshortparallel:Nz,nsim:wz,nsime:Iz,nsimeq:Dz,nsmid:kz,nspar:Mz,nsqsube:Lz,nsqsupe:Pz,nsub:Fz,nsubE:Uz,nsube:Bz,nsubset:Gz,nsubseteq:qz,nsubseteqq:Yz,nsucc:Vz,nsucceq:zz,nsup:Hz,nsupE:$z,nsupe:Wz,nsupset:Kz,nsupseteq:Qz,nsupseteqq:jz,ntgl:Zz,Ntilde:Xz,ntilde:Jz,ntlg:eH,ntriangleleft:tH,ntrianglelefteq:nH,ntriangleright:rH,ntrianglerighteq:sH,Nu:oH,nu:iH,num:aH,numero:lH,numsp:cH,nvap:dH,nvdash:uH,nvDash:_H,nVdash:pH,nVDash:mH,nvge:gH,nvgt:fH,nvHarr:hH,nvinfin:EH,nvlArr:bH,nvle:SH,nvlt:yH,nvltrie:vH,nvrArr:TH,nvrtrie:CH,nvsim:RH,nwarhk:xH,nwarr:OH,nwArr:AH,nwarrow:NH,nwnear:wH,Oacute:IH,oacute:DH,oast:kH,Ocirc:MH,ocirc:LH,ocir:PH,Ocy:FH,ocy:UH,odash:BH,Odblac:GH,odblac:qH,odiv:YH,odot:VH,odsold:zH,OElig:HH,oelig:$H,ofcir:WH,Ofr:KH,ofr:QH,ogon:jH,Ograve:ZH,ograve:XH,ogt:JH,ohbar:e$,ohm:t$,oint:n$,olarr:r$,olcir:s$,olcross:o$,oline:i$,olt:a$,Omacr:l$,omacr:c$,Omega:d$,omega:u$,Omicron:_$,omicron:p$,omid:m$,ominus:g$,Oopf:f$,oopf:h$,opar:E$,OpenCurlyDoubleQuote:b$,OpenCurlyQuote:S$,operp:y$,oplus:v$,orarr:T$,Or:C$,or:R$,ord:x$,order:O$,orderof:A$,ordf:N$,ordm:w$,origof:I$,oror:D$,orslope:k$,orv:M$,oS:L$,Oscr:P$,oscr:F$,Oslash:U$,oslash:B$,osol:G$,Otilde:q$,otilde:Y$,otimesas:V$,Otimes:z$,otimes:H$,Ouml:$$,ouml:W$,ovbar:K$,OverBar:Q$,OverBrace:j$,OverBracket:Z$,OverParenthesis:X$,para:J$,parallel:eW,par:tW,parsim:nW,parsl:rW,part:sW,PartialD:oW,Pcy:iW,pcy:aW,percnt:lW,period:cW,permil:dW,perp:uW,pertenk:_W,Pfr:pW,pfr:mW,Phi:gW,phi:fW,phiv:hW,phmmat:EW,phone:bW,Pi:SW,pi:yW,pitchfork:vW,piv:TW,planck:CW,planckh:RW,plankv:xW,plusacir:OW,plusb:AW,pluscir:NW,plus:wW,plusdo:IW,plusdu:DW,pluse:kW,PlusMinus:MW,plusmn:LW,plussim:PW,plustwo:FW,pm:UW,Poincareplane:BW,pointint:GW,popf:qW,Popf:YW,pound:VW,prap:zW,Pr:HW,pr:$W,prcue:WW,precapprox:KW,prec:QW,preccurlyeq:jW,Precedes:ZW,PrecedesEqual:XW,PrecedesSlantEqual:JW,PrecedesTilde:eK,preceq:tK,precnapprox:nK,precneqq:rK,precnsim:sK,pre:oK,prE:iK,precsim:aK,prime:lK,Prime:cK,primes:dK,prnap:uK,prnE:_K,prnsim:pK,prod:mK,Product:gK,profalar:fK,profline:hK,profsurf:EK,prop:bK,Proportional:SK,Proportion:yK,propto:vK,prsim:TK,prurel:CK,Pscr:RK,pscr:xK,Psi:OK,psi:AK,puncsp:NK,Qfr:wK,qfr:IK,qint:DK,qopf:kK,Qopf:MK,qprime:LK,Qscr:PK,qscr:FK,quaternions:UK,quatint:BK,quest:GK,questeq:qK,quot:YK,QUOT:VK,rAarr:zK,race:HK,Racute:$K,racute:WK,radic:KK,raemptyv:QK,rang:jK,Rang:ZK,rangd:XK,range:JK,rangle:eQ,raquo:tQ,rarrap:nQ,rarrb:rQ,rarrbfs:sQ,rarrc:oQ,rarr:iQ,Rarr:aQ,rArr:lQ,rarrfs:cQ,rarrhk:dQ,rarrlp:uQ,rarrpl:_Q,rarrsim:pQ,Rarrtl:mQ,rarrtl:gQ,rarrw:fQ,ratail:hQ,rAtail:EQ,ratio:bQ,rationals:SQ,rbarr:yQ,rBarr:vQ,RBarr:TQ,rbbrk:CQ,rbrace:RQ,rbrack:xQ,rbrke:OQ,rbrksld:AQ,rbrkslu:NQ,Rcaron:wQ,rcaron:IQ,Rcedil:DQ,rcedil:kQ,rceil:MQ,rcub:LQ,Rcy:PQ,rcy:FQ,rdca:UQ,rdldhar:BQ,rdquo:GQ,rdquor:qQ,rdsh:YQ,real:VQ,realine:zQ,realpart:HQ,reals:$Q,Re:WQ,rect:KQ,reg:QQ,REG:jQ,ReverseElement:ZQ,ReverseEquilibrium:XQ,ReverseUpEquilibrium:JQ,rfisht:ej,rfloor:tj,rfr:nj,Rfr:rj,rHar:sj,rhard:oj,rharu:ij,rharul:aj,Rho:lj,rho:cj,rhov:dj,RightAngleBracket:uj,RightArrowBar:_j,rightarrow:pj,RightArrow:mj,Rightarrow:gj,RightArrowLeftArrow:fj,rightarrowtail:hj,RightCeiling:Ej,RightDoubleBracket:bj,RightDownTeeVector:Sj,RightDownVectorBar:yj,RightDownVector:vj,RightFloor:Tj,rightharpoondown:Cj,rightharpoonup:Rj,rightleftarrows:xj,rightleftharpoons:Oj,rightrightarrows:Aj,rightsquigarrow:Nj,RightTeeArrow:wj,RightTee:Ij,RightTeeVector:Dj,rightthreetimes:kj,RightTriangleBar:Mj,RightTriangle:Lj,RightTriangleEqual:Pj,RightUpDownVector:Fj,RightUpTeeVector:Uj,RightUpVectorBar:Bj,RightUpVector:Gj,RightVectorBar:qj,RightVector:Yj,ring:Vj,risingdotseq:zj,rlarr:Hj,rlhar:$j,rlm:Wj,rmoustache:Kj,rmoust:Qj,rnmid:jj,roang:Zj,roarr:Xj,robrk:Jj,ropar:eZ,ropf:tZ,Ropf:nZ,roplus:rZ,rotimes:sZ,RoundImplies:oZ,rpar:iZ,rpargt:aZ,rppolint:lZ,rrarr:cZ,Rrightarrow:dZ,rsaquo:uZ,rscr:_Z,Rscr:pZ,rsh:mZ,Rsh:gZ,rsqb:fZ,rsquo:hZ,rsquor:EZ,rthree:bZ,rtimes:SZ,rtri:yZ,rtrie:vZ,rtrif:TZ,rtriltri:CZ,RuleDelayed:RZ,ruluhar:xZ,rx:OZ,Sacute:AZ,sacute:NZ,sbquo:wZ,scap:IZ,Scaron:DZ,scaron:kZ,Sc:MZ,sc:LZ,sccue:PZ,sce:FZ,scE:UZ,Scedil:BZ,scedil:GZ,Scirc:qZ,scirc:YZ,scnap:VZ,scnE:zZ,scnsim:HZ,scpolint:$Z,scsim:WZ,Scy:KZ,scy:QZ,sdotb:jZ,sdot:ZZ,sdote:XZ,searhk:JZ,searr:eX,seArr:tX,searrow:nX,sect:rX,semi:sX,seswar:oX,setminus:iX,setmn:aX,sext:lX,Sfr:cX,sfr:dX,sfrown:uX,sharp:_X,SHCHcy:pX,shchcy:mX,SHcy:gX,shcy:fX,ShortDownArrow:hX,ShortLeftArrow:EX,shortmid:bX,shortparallel:SX,ShortRightArrow:yX,ShortUpArrow:vX,shy:TX,Sigma:CX,sigma:RX,sigmaf:xX,sigmav:OX,sim:AX,simdot:NX,sime:wX,simeq:IX,simg:DX,simgE:kX,siml:MX,simlE:LX,simne:PX,simplus:FX,simrarr:UX,slarr:BX,SmallCircle:GX,smallsetminus:qX,smashp:YX,smeparsl:VX,smid:zX,smile:HX,smt:$X,smte:WX,smtes:KX,SOFTcy:QX,softcy:jX,solbar:ZX,solb:XX,sol:JX,Sopf:eJ,sopf:tJ,spades:nJ,spadesuit:rJ,spar:sJ,sqcap:oJ,sqcaps:iJ,sqcup:aJ,sqcups:lJ,Sqrt:cJ,sqsub:dJ,sqsube:uJ,sqsubset:_J,sqsubseteq:pJ,sqsup:mJ,sqsupe:gJ,sqsupset:fJ,sqsupseteq:hJ,square:EJ,Square:bJ,SquareIntersection:SJ,SquareSubset:yJ,SquareSubsetEqual:vJ,SquareSuperset:TJ,SquareSupersetEqual:CJ,SquareUnion:RJ,squarf:xJ,squ:OJ,squf:AJ,srarr:NJ,Sscr:wJ,sscr:IJ,ssetmn:DJ,ssmile:kJ,sstarf:MJ,Star:LJ,star:PJ,starf:FJ,straightepsilon:UJ,straightphi:BJ,strns:GJ,sub:qJ,Sub:YJ,subdot:VJ,subE:zJ,sube:HJ,subedot:$J,submult:WJ,subnE:KJ,subne:QJ,subplus:jJ,subrarr:ZJ,subset:XJ,Subset:JJ,subseteq:eee,subseteqq:tee,SubsetEqual:nee,subsetneq:ree,subsetneqq:see,subsim:oee,subsub:iee,subsup:aee,succapprox:lee,succ:cee,succcurlyeq:dee,Succeeds:uee,SucceedsEqual:_ee,SucceedsSlantEqual:pee,SucceedsTilde:mee,succeq:gee,succnapprox:fee,succneqq:hee,succnsim:Eee,succsim:bee,SuchThat:See,sum:yee,Sum:vee,sung:Tee,sup1:Cee,sup2:Ree,sup3:xee,sup:Oee,Sup:Aee,supdot:Nee,supdsub:wee,supE:Iee,supe:Dee,supedot:kee,Superset:Mee,SupersetEqual:Lee,suphsol:Pee,suphsub:Fee,suplarr:Uee,supmult:Bee,supnE:Gee,supne:qee,supplus:Yee,supset:Vee,Supset:zee,supseteq:Hee,supseteqq:$ee,supsetneq:Wee,supsetneqq:Kee,supsim:Qee,supsub:jee,supsup:Zee,swarhk:Xee,swarr:Jee,swArr:ete,swarrow:tte,swnwar:nte,szlig:rte,Tab:ste,target:ote,Tau:ite,tau:ate,tbrk:lte,Tcaron:cte,tcaron:dte,Tcedil:ute,tcedil:_te,Tcy:pte,tcy:mte,tdot:gte,telrec:fte,Tfr:hte,tfr:Ete,there4:bte,therefore:Ste,Therefore:yte,Theta:vte,theta:Tte,thetasym:Cte,thetav:Rte,thickapprox:xte,thicksim:Ote,ThickSpace:Ate,ThinSpace:Nte,thinsp:wte,thkap:Ite,thksim:Dte,THORN:kte,thorn:Mte,tilde:Lte,Tilde:Pte,TildeEqual:Fte,TildeFullEqual:Ute,TildeTilde:Bte,timesbar:Gte,timesb:qte,times:Yte,timesd:Vte,tint:zte,toea:Hte,topbot:$te,topcir:Wte,top:Kte,Topf:Qte,topf:jte,topfork:Zte,tosa:Xte,tprime:Jte,trade:ene,TRADE:tne,triangle:nne,triangledown:rne,triangleleft:sne,trianglelefteq:one,triangleq:ine,triangleright:ane,trianglerighteq:lne,tridot:cne,trie:dne,triminus:une,TripleDot:_ne,triplus:pne,trisb:mne,tritime:gne,trpezium:fne,Tscr:hne,tscr:Ene,TScy:bne,tscy:Sne,TSHcy:yne,tshcy:vne,Tstrok:Tne,tstrok:Cne,twixt:Rne,twoheadleftarrow:xne,twoheadrightarrow:One,Uacute:Ane,uacute:Nne,uarr:wne,Uarr:Ine,uArr:Dne,Uarrocir:kne,Ubrcy:Mne,ubrcy:Lne,Ubreve:Pne,ubreve:Fne,Ucirc:Une,ucirc:Bne,Ucy:Gne,ucy:qne,udarr:Yne,Udblac:Vne,udblac:zne,udhar:Hne,ufisht:$ne,Ufr:Wne,ufr:Kne,Ugrave:Qne,ugrave:jne,uHar:Zne,uharl:Xne,uharr:Jne,uhblk:ere,ulcorn:tre,ulcorner:nre,ulcrop:rre,ultri:sre,Umacr:ore,umacr:ire,uml:are,UnderBar:lre,UnderBrace:cre,UnderBracket:dre,UnderParenthesis:ure,Union:_re,UnionPlus:pre,Uogon:mre,uogon:gre,Uopf:fre,uopf:hre,UpArrowBar:Ere,uparrow:bre,UpArrow:Sre,Uparrow:yre,UpArrowDownArrow:vre,updownarrow:Tre,UpDownArrow:Cre,Updownarrow:Rre,UpEquilibrium:xre,upharpoonleft:Ore,upharpoonright:Are,uplus:Nre,UpperLeftArrow:wre,UpperRightArrow:Ire,upsi:Dre,Upsi:kre,upsih:Mre,Upsilon:Lre,upsilon:Pre,UpTeeArrow:Fre,UpTee:Ure,upuparrows:Bre,urcorn:Gre,urcorner:qre,urcrop:Yre,Uring:Vre,uring:zre,urtri:Hre,Uscr:$re,uscr:Wre,utdot:Kre,Utilde:Qre,utilde:jre,utri:Zre,utrif:Xre,uuarr:Jre,Uuml:ese,uuml:tse,uwangle:nse,vangrt:rse,varepsilon:sse,varkappa:ose,varnothing:ise,varphi:ase,varpi:lse,varpropto:cse,varr:dse,vArr:use,varrho:_se,varsigma:pse,varsubsetneq:mse,varsubsetneqq:gse,varsupsetneq:fse,varsupsetneqq:hse,vartheta:Ese,vartriangleleft:bse,vartriangleright:Sse,vBar:yse,Vbar:vse,vBarv:Tse,Vcy:Cse,vcy:Rse,vdash:xse,vDash:Ose,Vdash:Ase,VDash:Nse,Vdashl:wse,veebar:Ise,vee:Dse,Vee:kse,veeeq:Mse,vellip:Lse,verbar:Pse,Verbar:Fse,vert:Use,Vert:Bse,VerticalBar:Gse,VerticalLine:qse,VerticalSeparator:Yse,VerticalTilde:Vse,VeryThinSpace:zse,Vfr:Hse,vfr:$se,vltri:Wse,vnsub:Kse,vnsup:Qse,Vopf:jse,vopf:Zse,vprop:Xse,vrtri:Jse,Vscr:eoe,vscr:toe,vsubnE:noe,vsubne:roe,vsupnE:soe,vsupne:ooe,Vvdash:ioe,vzigzag:aoe,Wcirc:loe,wcirc:coe,wedbar:doe,wedge:uoe,Wedge:_oe,wedgeq:poe,weierp:moe,Wfr:goe,wfr:foe,Wopf:hoe,wopf:Eoe,wp:boe,wr:Soe,wreath:yoe,Wscr:voe,wscr:Toe,xcap:Coe,xcirc:Roe,xcup:xoe,xdtri:Ooe,Xfr:Aoe,xfr:Noe,xharr:woe,xhArr:Ioe,Xi:Doe,xi:koe,xlarr:Moe,xlArr:Loe,xmap:Poe,xnis:Foe,xodot:Uoe,Xopf:Boe,xopf:Goe,xoplus:qoe,xotime:Yoe,xrarr:Voe,xrArr:zoe,Xscr:Hoe,xscr:$oe,xsqcup:Woe,xuplus:Koe,xutri:Qoe,xvee:joe,xwedge:Zoe,Yacute:Xoe,yacute:Joe,YAcy:eie,yacy:tie,Ycirc:nie,ycirc:rie,Ycy:sie,ycy:oie,yen:iie,Yfr:aie,yfr:lie,YIcy:cie,yicy:die,Yopf:uie,yopf:_ie,Yscr:pie,yscr:mie,YUcy:gie,yucy:fie,yuml:hie,Yuml:Eie,Zacute:bie,zacute:Sie,Zcaron:yie,zcaron:vie,Zcy:Tie,zcy:Cie,Zdot:Rie,zdot:xie,zeetrf:Oie,ZeroWidthSpace:Aie,Zeta:Nie,zeta:wie,zfr:Iie,Zfr:Die,ZHcy:kie,zhcy:Mie,zigrarr:Lie,zopf:Pie,Zopf:Fie,Zscr:Uie,zscr:Bie,zwj:Gie,zwnj:qie};var Nv=Yie,lp=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,us={},Cg={};function Vie(t){var e,n,r=Cg[t];if(r)return r;for(r=Cg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e"u"&&(n=!0),a=Vie(e),r=0,s=t.length;r=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&i<=57343)){l+=encodeURIComponent(t[r]+t[r+1]),r++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(t[r])}return l}zi.defaultChars=";/?:@&=+$,-_.!~*'()#";zi.componentChars="-_.!~*'()";var zie=zi,Rg={};function Hie(t){var e,n,r=Rg[t];if(r)return r;for(r=Rg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e=55296&&c<=57343?_+="���":_+=String.fromCharCode(c),s+=6;continue}if((i&248)===240&&s+91114111?_+="����":(c-=65536,_+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),s+=9;continue}_+="�"}return _})}Hi.defaultChars=";/?:@&=+$,#";Hi.componentChars="";var $ie=Hi,Wie=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function di(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Kie=/^([a-z0-9.+-]+:)/i,Qie=/:[0-9]*$/,jie=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Zie=["<",">",'"',"`"," ","\r",` `," "],Xie=["{","}","|","\\","^","`"].concat(Zie),Jie=["'"].concat(Xie),xg=["%","/","?",";","#"].concat(Jie),Og=["/","?","#"],eae=255,Ag=/^[+a-z0-9A-Z_-]{0,63}$/,tae=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ng={javascript:!0,"javascript:":!0},wg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function nae(t,e){if(t&&t instanceof di)return t;var n=new di;return n.parse(t,e),n}di.prototype.parse=function(t,e){var n,r,s,o,i,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=jie.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Kie.exec(a);if(u&&(u=u[0],s=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(u&&Ng[u])&&(a=a.substr(2),this.slashes=!0)),!Ng[u]&&(i||u&&!wg[u])){var c=-1;for(n=0;n127?b+="x":b+=E[m];if(!b.match(Ag)){var C=h.slice(0,n),A=h.slice(n+1),x=E.match(tae);x&&(C.push(x[1]),A.unshift(x[2])),A.length&&(a=A.join(".")+a),this.hostname=C.join(".");break}}}}this.hostname.length>eae&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=a.indexOf("#");k!==-1&&(this.hash=a.substr(k),a=a.slice(0,k));var y=a.indexOf("?");return y!==-1&&(this.search=a.substr(y),a=a.slice(0,y)),a&&(this.pathname=a),wg[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};di.prototype.parseHost=function(t){var e=Qie.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var rae=nae;us.encode=zie;us.decode=$ie;us.format=Wie;us.parse=rae;var er={},Va,Ig;function wv(){return Ig||(Ig=1,Va=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Va}var za,Dg;function Iv(){return Dg||(Dg=1,za=/[\0-\x1F\x7F-\x9F]/),za}var Ha,kg;function sae(){return kg||(kg=1,Ha=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ha}var $a,Mg;function Dv(){return Mg||(Mg=1,$a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),$a}var Lg;function oae(){return Lg||(Lg=1,er.Any=wv(),er.Cc=Iv(),er.Cf=sae(),er.P=lp,er.Z=Dv()),er}(function(t){function e(B){return Object.prototype.toString.call(B)}function n(B){return e(B)==="[object String]"}var r=Object.prototype.hasOwnProperty;function s(B,se){return r.call(B,se)}function o(B){var se=Array.prototype.slice.call(arguments,1);return se.forEach(function(H){if(H){if(typeof H!="object")throw new TypeError(H+"must be object");Object.keys(H).forEach(function(I){B[I]=H[I]})}}),B}function i(B,se,H){return[].concat(B.slice(0,se),H,B.slice(se+1))}function a(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function l(B){if(B>65535){B-=65536;var se=55296+(B>>10),H=56320+(B&1023);return String.fromCharCode(se,H)}return String.fromCharCode(B)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=/&([a-z#][a-z0-9]{1,31});/gi,_=new RegExp(u.source+"|"+c.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,g=Nv;function f(B,se){var H;return s(g,se)?g[se]:se.charCodeAt(0)===35&&p.test(se)&&(H=se[1].toLowerCase()==="x"?parseInt(se.slice(2),16):parseInt(se.slice(1),10),a(H))?l(H):B}function h(B){return B.indexOf("\\")<0?B:B.replace(u,"$1")}function E(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(_,function(se,H,I){return H||f(se,I)})}var b=/[&<>"]/,m=/[&<>"]/g,S={"&":"&","<":"<",">":">",'"':"""};function C(B){return S[B]}function A(B){return b.test(B)?B.replace(m,C):B}var x=/[.?*+^$[\]\\(){}|-]/g;function k(B){return B.replace(x,"\\$&")}function y(B){switch(B){case 9:case 32:return!0}return!1}function R(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var w=lp;function L(B){return w.test(B)}function M(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Z(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=us,t.lib.ucmicro=oae(),t.assign=o,t.isString=n,t.has=s,t.unescapeMd=h,t.unescapeAll=E,t.isValidEntityCode=a,t.fromCodePoint=l,t.escapeHtml=A,t.arrayReplaceAt=i,t.isSpace=y,t.isWhiteSpace=R,t.isMdAsciiPunct=M,t.isPunctChar=L,t.escapeRE=k,t.normalizeReference=Z})($e);var $i={},iae=function(e,n,r){var s,o,i,a,l=-1,u=e.posMax,c=e.pos;for(e.pos=n+1,s=1;e.pos32))return a;if(s===41){if(o===0)break;o--}i++}return n===i||o!==0||(a.str=Pg(e.slice(n,i)),a.pos=i,a.ok=!0),a},lae=$e.unescapeAll,cae=function(e,n,r){var s,o,i=0,a=n,l={ok:!1,pos:0,lines:0,str:""};if(a>=r||(o=e.charCodeAt(a),o!==34&&o!==39&&o!==40))return l;for(a++,o===40&&(o=41);a"+pr(o.content)+""};on.code_block=function(t,e,n,r,s){var o=t[e];return""+pr(t[e].content)+` `};on.fence=function(t,e,n,r,s){var o=t[e],i=o.info?uae(o.info).trim():"",a="",l="",u,c,_,p,g;return i&&(_=i.split(/(\s+)/g),a=_[0],l=_.slice(2).join("")),n.highlight?u=n.highlight(o.content,a,l)||pr(o.content):u=pr(o.content),u.indexOf("/g,">").replace(/"/g,""").replace(/'/g,"'")}const J8e={name:"MarkdownRenderer",props:{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:Z8e},setup(t){const e=new kce({html:!0,highlight:(s,o)=>{const i=o&&mr.getLanguage(o)?o:"plaintext";return mr.highlight(i,s).value},renderInline:!0,breaks:!0}).use(F5e).use(kr).use(Z5e,{figcaption:!0}).use(d3e).use(H5e,{inlineOpen:"$",inlineClose:"$",blockOpen:"$$",blockClose:"$$"}).use(Q5e,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:` -`}),n=US([]),r=()=>{if(t.markdownText){let s=e.parse(t.markdownText,{}),o=[];n.value=[];for(let i=0;i0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),n.value.push({type:"code",language:X8e(s[i].info),code:s[i].content}));o.length>0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else n.value=[];ve(()=>{Ce.replace()})};return Vn(()=>t.markdownText,r),to(r),{markdownItems:n}}},e6e={class:"break-all"},t6e={ref:"mdRender",class:"markdown-content"},n6e=["innerHTML"];function r6e(t,e,n,r,s,o){const i=Pe("code-block");return v(),T("div",e6e,[d("div",t6e,[(v(!0),T(we,null,Be(r.markdownItems,(a,l)=>(v(),T("div",{key:l},[a.type==="code"?(v(),nt(i,{key:0,language:a.language,code:a.code,discussion_id:n.discussion_id,message_id:n.message_id},null,8,["language","code","discussion_id","message_id"])):(v(),T("div",{key:1,innerHTML:a.html},null,8,n6e))]))),128))],512)])}const _T=qe(J8e,[["render",r6e]]);const s6e={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){ve(()=>{Ce.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},o6e={class:"flex items-center space-x-2"},i6e=["value","type","placeholder"],a6e=["value","min","max"],l6e=d("i",{"data-feather":"clipboard"},null,-1),c6e=[l6e],d6e=d("i",{"data-feather":"upload"},null,-1),u6e=[d6e],_6e=["accept"];function p6e(t,e,n,r,s,o){return v(),T("div",o6e,[t.useSlider?(v(),T("input",{key:1,type:"range",value:parseInt(s.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...i)=>o.handleSliderInput&&o.handleSliderInput(...i)),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,a6e)):(v(),T("input",{key:0,value:s.inputValue,type:n.inputType,placeholder:s.placeholderText,onInput:e[0]||(e[0]=(...i)=>o.handleInput&&o.handleInput(...i)),onPaste:e[1]||(e[1]=(...i)=>o.handlePaste&&o.handlePaste(...i)),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,i6e)),d("button",{onClick:e[3]||(e[3]=(...i)=>o.pasteFromClipboard&&o.pasteFromClipboard(...i)),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"},c6e),n.inputType==="file"?(v(),T("button",{key:2,onClick:e[4]||(e[4]=(...i)=>o.openFileInput&&o.openFileInput(...i)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},u6e)):U("",!0),n.inputType==="file"?(v(),T("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...i)=>o.handleFileInputChange&&o.handleFileInputChange(...i))},null,40,_6e)):U("",!0)])}const vp=qe(s6e,[["render",p6e]]);const m6e={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)}}},g6e={key:1,class:"flex flex-wrap"},f6e={key:2,class:"mb-2"};function h6e(t,e,n,r,s,o){return v(),T(we,null,[s.isActive?(v(),T("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...i)=>o.toggleCard&&o.toggleCard(...i))})):U("",!0),ce(d("div",{class:Ae(["border-blue-300 rounded-lg shadow-lg p-2",o.cardWidthClass,"m-2",{"bg-white dark:bg-gray-800":n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=i=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=i=>s.isHovered=!1),onClick:e[4]||(e[4]=_e((...i)=>o.toggleCard&&o.toggleCard(...i),["self"])),style:ht({cursor:this.disableFocus?"":"pointer"})},[n.title?(v(),T("div",{key:0,onClick:e[1]||(e[1]=i=>s.shrink=!0),class:Ae([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},j(n.title),3)):U("",!0),n.isHorizontal?(v(),T("div",g6e,[si(t.$slots,"default")])):(v(),T("div",f6e,[si(t.$slots,"default")]))],38),[[We,s.shrink===!1]]),n.is_subcard?ce((v(),T("div",{key:1,onClick:e[5]||(e[5]=i=>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"},j(n.title),513)),[[We,s.shrink===!0]]):ce((v(),T("div",{key:2,onClick:e[6]||(e[6]=i=>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)),[[We,s.shrink===!0]])],64)}const ao=qe(m6e,[["render",h6e]]);async function eS(t,e="",n=[]){return new Promise((r,s)=>{const o=document.createElement("div");o.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?o.innerHTML=` +`}),n=US([]),r=()=>{if(t.markdownText){let s=e.parse(t.markdownText,{}),o=[];n.value=[];for(let i=0;i0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),n.value.push({type:"code",language:X8e(s[i].info),code:s[i].content}));o.length>0&&(n.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else n.value=[];ve(()=>{Ce.replace()})};return Vn(()=>t.markdownText,r),to(r),{markdownItems:n}}},e6e={class:"break-all"},t6e={ref:"mdRender",class:"markdown-content"},n6e=["innerHTML"];function r6e(t,e,n,r,s,o){const i=Pe("code-block");return v(),T("div",e6e,[d("div",t6e,[(v(!0),T(Ne,null,Be(r.markdownItems,(a,l)=>(v(),T("div",{key:l},[a.type==="code"?(v(),nt(i,{key:0,language:a.language,code:a.code,discussion_id:n.discussion_id,message_id:n.message_id},null,8,["language","code","discussion_id","message_id"])):(v(),T("div",{key:1,innerHTML:a.html},null,8,n6e))]))),128))],512)])}const _T=qe(J8e,[["render",r6e]]);const s6e={props:{value:String,inputType:{type:String,default:"text",validator:t=>["text","email","password","file","path","integer","float"].includes(t)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(t){console.log("Changing value to ",t),this.inputValue=t}},mounted(){ve(()=>{Ce.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(t){this.inputValue=t.target.value,this.$emit("input",t.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(t){if(this.inputType==="integer"){const e=t.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",t.target.value),this.$emit("input",t.target.value)},async pasteFromClipboard(){try{const t=await navigator.clipboard.readText();this.handleClipboardData(t)}catch(t){console.error("Failed to read from clipboard:",t)}},handlePaste(t){const e=t.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(t){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(t)?t:"";break;case"password":this.inputValue=t;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(t);break;case"float":this.inputValue=this.parseFloat(t);break;default:this.inputValue=t;break}},isValidEmail(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},parseInteger(t){const e=parseInt(t);return isNaN(e)?"":e},parseFloat(t){const e=parseFloat(t);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(t){const e=t.target.files[0];e&&(this.inputValue=e.name)}}},o6e={class:"flex items-center space-x-2"},i6e=["value","type","placeholder"],a6e=["value","min","max"],l6e=d("i",{"data-feather":"clipboard"},null,-1),c6e=[l6e],d6e=d("i",{"data-feather":"upload"},null,-1),u6e=[d6e],_6e=["accept"];function p6e(t,e,n,r,s,o){return v(),T("div",o6e,[t.useSlider?(v(),T("input",{key:1,type:"range",value:parseInt(s.inputValue),min:t.minSliderValue,max:t.maxSliderValue,onInput:e[2]||(e[2]=(...i)=>o.handleSliderInput&&o.handleSliderInput(...i)),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,a6e)):(v(),T("input",{key:0,value:s.inputValue,type:n.inputType,placeholder:s.placeholderText,onInput:e[0]||(e[0]=(...i)=>o.handleInput&&o.handleInput(...i)),onPaste:e[1]||(e[1]=(...i)=>o.handlePaste&&o.handlePaste(...i)),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,i6e)),d("button",{onClick:e[3]||(e[3]=(...i)=>o.pasteFromClipboard&&o.pasteFromClipboard(...i)),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"},c6e),n.inputType==="file"?(v(),T("button",{key:2,onClick:e[4]||(e[4]=(...i)=>o.openFileInput&&o.openFileInput(...i)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},u6e)):U("",!0),n.inputType==="file"?(v(),T("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:n.fileAccept,onChange:e[5]||(e[5]=(...i)=>o.handleFileInputChange&&o.handleFileInputChange(...i))},null,40,_6e)):U("",!0)])}const vp=qe(s6e,[["render",p6e]]);const m6e={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)}}},g6e={key:1,class:"flex flex-wrap"},f6e={key:2,class:"mb-2"};function h6e(t,e,n,r,s,o){return v(),T(Ne,null,[s.isActive?(v(),T("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...i)=>o.toggleCard&&o.toggleCard(...i))})):U("",!0),ce(d("div",{class:Ae(["border-blue-300 rounded-lg shadow-lg p-2",o.cardWidthClass,"m-2",{"bg-white dark:bg-gray-800":n.is_subcard},{"bg-white dark:bg-gray-900":!n.is_subcard},{hovered:!n.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=i=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=i=>s.isHovered=!1),onClick:e[4]||(e[4]=_e((...i)=>o.toggleCard&&o.toggleCard(...i),["self"])),style:ht({cursor:this.disableFocus?"":"pointer"})},[n.title?(v(),T("div",{key:0,onClick:e[1]||(e[1]=i=>s.shrink=!0),class:Ae([{"text-center p-2 m-2 bg-gray-200":!n.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},j(n.title),3)):U("",!0),n.isHorizontal?(v(),T("div",g6e,[si(t.$slots,"default")])):(v(),T("div",f6e,[si(t.$slots,"default")]))],38),[[We,s.shrink===!1]]),n.is_subcard?ce((v(),T("div",{key:1,onClick:e[5]||(e[5]=i=>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"},j(n.title),513)),[[We,s.shrink===!0]]):ce((v(),T("div",{key:2,onClick:e[6]||(e[6]=i=>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)),[[We,s.shrink===!0]])],64)}const ao=qe(m6e,[["render",h6e]]);async function eS(t,e="",n=[]){return new Promise((r,s)=>{const o=document.createElement("div");o.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",n.length===0?o.innerHTML=`

${t}

@@ -76,9 +76,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`),pe=I,X=Q),re===void 0&
- `,document.body.appendChild(o);const i=o.querySelector("#cancelButton"),a=o.querySelector("#okButton");i.addEventListener("click",()=>{document.body.removeChild(o),r(null)}),a.addEventListener("click",()=>{if(n.length===0){const u=o.querySelector("#replacementInput").value.trim();document.body.removeChild(o),r(u)}else{const u=o.querySelector("#options_selector").value.trim();document.body.removeChild(o),r(u)}})})}function E6e(t,e){console.log(t);let n={},r=/@<([^>]+)>@/g,s=[],o;for(;(o=r.exec(t))!==null;)s.push("@<"+o[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function i(l){console.log(l);let u=l.toLowerCase().substring(2,l.length-2);if(u!=="generation_placeholder")if(u.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([E,b])=>{console.log(`Key: ${E}, Value: ${b}`);function m(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const S=m(E),C=new RegExp(S,"g");u=u.replace(C,b)});let _=u.split(":"),p=_[0],g=_[1]||"",f=[];_.length>2&&(f=_.slice(1));let h=await eS(p,g,f);h!==null&&(n[l]=h)}else{let c=await eS(u);c!==null&&(n[l]=c)}}let a=Promise.resolve();s.forEach(l=>{a=a.then(()=>i(l)).then(u=>{console.log(u)})}),a.then(()=>{Object.entries(n).forEach(([l,u])=>{console.log(`Key: ${l}, Value: ${u}`);function c(g){return g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=c(l),p=new RegExp(_,"g");t=t.replace(p,u)}),e(t)})}const b6e={name:"PlayGroundView",data(){return{selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:ds,MarkdownRenderer:_T,ClipBoardTextInput:vp,Card:ao},mounted(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}),Ne.on("text_chunk",t=>{this.appendToOutput(t.chunk)}),Ne.on("text_generated",t=>{this.generating=!1}),Ne.on("generation_error",t=>{console.log("generation_error:",t),this.$refs.toast.showToast(`Error: ${t}`,4,!1),this.generating=!1}),Ne.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Ne.on("buzzy",t=>{console.error("Server is busy. Wait for your turn",t),this.$refs.toast.showToast(`Error: ${t.message}`,4,!1),this.generating=!1}),Ne.on("generation_canceled",t=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ce.replace()}),"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.")},created(){},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,s=e.value.substring(0,n),o=e.value.substring(r),i=s+" "+o;this.text=i,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},text_element_changed(){console.log("text_element_changed"),this.cursorPosition=this.$refs.text_element.selectionStart},text_element_clicked(){console.log("text_element_clicked"),this.cursorPosition=this.$refs.text_element.selectionStart},setModel(){this.selecting_model=!0,xe.post("/update_setting",{setting_name:"model_name",setting_value:this.selectedModel}).then(t=>{console.log(t),t.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(t=>{this.$refs.toast.showToast(`Error ${t}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const n=s=>{let o=this.text.substring(s,s+e);const i=[".","!","?",` -`];let a=-1;return i.forEach(l=>{const u=o.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=o.length),console.log(a),a+s+1},r=()=>{const s=n(t),o=this.text.substring(t,s);this.msg.text=o,t=s+1,this.msg.onend=i=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",s))},this.speechSynthesis.speak(this.msg)};r()},getCursorPosition(){return this.cursorPosition},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),Ne.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(t),Ne.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Ne.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=E6e(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={name:t,content:this.text},xe.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},S6e={class:"container bg-bg-light dark:bg-bg-dark shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},y6e={class:"container flex flex-row m-2"},v6e={class:"flex-grow m-2"},T6e={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},C6e=d("i",{"data-feather":"pen-tool"},null,-1),R6e=[C6e],x6e=d("i",{"data-feather":"archive"},null,-1),O6e=[x6e],A6e=d("span",{class:"w-80"},null,-1),N6e=d("i",{"data-feather":"x"},null,-1),w6e=[N6e],I6e=d("i",{"data-feather":"mic"},null,-1),D6e=[I6e],k6e=d("i",{"data-feather":"volume-2"},null,-1),M6e=[k6e],L6e=d("i",{"data-feather":"upload"},null,-1),P6e=[L6e],F6e=d("i",{"data-feather":"download"},null,-1),U6e=[F6e],B6e={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},G6e=d("input",{type:"file",id:"import-input",class:"hidden"},null,-1),q6e={key:0},Y6e={key:1},V6e=["value"],z6e={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},H6e=d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Selecting model...")],-1),$6e=[H6e],W6e=["value"],K6e=d("br",null,null,-1),Q6e=d("i",{"data-feather":"check"},null,-1),j6e=[Q6e],Z6e=d("i",{"data-feather":"plus"},null,-1),X6e=[Z6e],J6e=d("i",{"data-feather":"x"},null,-1),eqe=[J6e],tqe=d("i",{"data-feather":"refresh-ccw"},null,-1),nqe=[tqe],rqe={class:"slider-container ml-2 mr-2"},sqe=d("h3",{class:"text-gray-600"},"Temperature",-1),oqe={class:"slider-value text-gray-500"},iqe={class:"slider-container ml-2 mr-2"},aqe=d("h3",{class:"text-gray-600"},"Top K",-1),lqe={class:"slider-value text-gray-500"},cqe={class:"slider-container ml-2 mr-2"},dqe=d("h3",{class:"text-gray-600"},"Top P",-1),uqe={class:"slider-value text-gray-500"},_qe={class:"slider-container ml-2 mr-2"},pqe=d("h3",{class:"text-gray-600"},"Repeat Penalty",-1),mqe={class:"slider-value text-gray-500"},gqe={class:"slider-container ml-2 mr-2"},fqe=d("h3",{class:"text-gray-600"},"Repeat Last N",-1),hqe={class:"slider-value text-gray-500"},Eqe={class:"slider-container ml-2 mr-2"},bqe=d("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),Sqe={class:"slider-value text-gray-500"},yqe={class:"slider-container ml-2 mr-2"},vqe=d("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),Tqe={class:"slider-value text-gray-500"},Cqe={class:"slider-container ml-2 mr-2"},Rqe=d("h3",{class:"text-gray-600"},"Seed",-1),xqe={class:"slider-value text-gray-500"};function Oqe(t,e,n,r,s,o){const i=Pe("MarkdownRenderer"),a=Pe("Card"),l=Pe("Toast");return v(),T(we,null,[d("div",S6e,[d("div",y6e,[d("div",v6e,[d("div",T6e,[ce(d("button",{id:"generate-button",onClick:e[0]||(e[0]=(...u)=>o.generate&&o.generate(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},R6e,512),[[We,!s.generating]]),ce(d("button",{id:"generate-next-button",onClick:e[1]||(e[1]=(...u)=>o.generate_in_placeholder&&o.generate_in_placeholder(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},O6e,512),[[We,!s.generating]]),A6e,ce(d("button",{id:"stop-button",onClick:e[2]||(e[2]=(...u)=>o.stopGeneration&&o.stopGeneration(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},w6e,512),[[We,s.generating]]),d("button",{type:"button",onClick:e[3]||(e[3]=(...u)=>o.startSpeechRecognition&&o.startSpeechRecognition(...u)),class:Ae([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},D6e,2),d("button",{title:"speak",onClick:e[4]||(e[4]=_e(u=>o.speak(),["stop"])),class:Ae([{"text-red-500":o.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},M6e,2),ce(d("button",{id:"export-button",onClick:e[5]||(e[5]=(...u)=>o.exportText&&o.exportText(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},P6e,512),[[We,!s.generating]]),ce(d("button",{id:"import-button",onClick:e[6]||(e[6]=(...u)=>o.importText&&o.importText(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},U6e,512),[[We,!s.generating]]),d("div",B6e,[d("button",{class:Ae(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[7]||(e[7]=u=>s.tab_id="source")}," Source ",2),d("button",{class:Ae(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[8]||(e[8]=u=>s.tab_id="render")}," Render ",2)]),G6e]),d("div",{class:Ae(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":s.generating}])},[s.tab_id==="source"?(v(),T("div",q6e,[ce(d("textarea",{ref:"mdTextarea",onKeydown:e[9]||(e[9]=Wr(_e((...u)=>o.insertTab&&o.insertTab(...u),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:ht({minHeight:t.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[10]||(e[10]=u=>s.text=u)},`\r - `,36),[[De,s.text]]),d("span",null,"Cursor position "+j(s.cursorPosition),1)])):U("",!0),s.tab_id==="render"?(v(),T("div",Y6e,[he(i,{ref:"mdRender","markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["markdown-text"])])):U("",!0)],2)]),he(a,{title:"settings",class:"slider-container ml-0 mr-0 max-width",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(a,{title:"Model",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[ce(d("select",{"onUpdate:modelValue":e[11]||(e[11]=u=>o.selectedModel=u),onChange:e[12]||(e[12]=(...u)=>o.setModel&&o.setModel(...u)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(we,null,Be(o.models,u=>(v(),T("option",{key:u,value:u},j(u),9,V6e))),128))],544),[[Kt,o.selectedModel]]),s.selecting_model?(v(),T("div",z6e,$6e)):U("",!0)]),_:1}),he(a,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[ce(d("select",{"onUpdate:modelValue":e[13]||(e[13]=u=>s.selectedPreset=u),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(we,null,Be(s.presets,u=>(v(),T("option",{key:u,value:u},j(u.name),9,W6e))),128))],512),[[Kt,s.selectedPreset]]),K6e,d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[14]||(e[14]=(...u)=>o.setPreset&&o.setPreset(...u)),title:"Use preset"},j6e),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[15]||(e[15]=(...u)=>o.addPreset&&o.addPreset(...u)),title:"Add this text as a preset"},X6e),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[16]||(e[16]=(...u)=>o.removePreset&&o.removePreset(...u)),title:"Remove preset"},eqe),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[17]||(e[17]=(...u)=>o.reloadPresets&&o.reloadPresets(...u)),title:"Reload presets list"},nqe)]),_:1}),he(a,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[d("div",rqe,[sqe,ce(d("input",{type:"range","onUpdate:modelValue":e[18]||(e[18]=u=>s.temperature=u),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[De,s.temperature]]),d("span",oqe,"Current value: "+j(s.temperature),1)]),d("div",iqe,[aqe,ce(d("input",{type:"range","onUpdate:modelValue":e[19]||(e[19]=u=>s.top_k=u),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[De,s.top_k]]),d("span",lqe,"Current value: "+j(s.top_k),1)]),d("div",cqe,[dqe,ce(d("input",{type:"range","onUpdate:modelValue":e[20]||(e[20]=u=>s.top_p=u),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[De,s.top_p]]),d("span",uqe,"Current value: "+j(s.top_p),1)]),d("div",_qe,[pqe,ce(d("input",{type:"range","onUpdate:modelValue":e[21]||(e[21]=u=>s.repeat_penalty=u),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.repeat_penalty]]),d("span",mqe,"Current value: "+j(s.repeat_penalty),1)]),d("div",gqe,[fqe,ce(d("input",{type:"range","onUpdate:modelValue":e[22]||(e[22]=u=>s.repeat_last_n=u),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.repeat_last_n]]),d("span",hqe,"Current value: "+j(s.repeat_last_n),1)]),d("div",Eqe,[bqe,ce(d("input",{type:"number","onUpdate:modelValue":e[23]||(e[23]=u=>s.n_crop=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.n_crop]]),d("span",Sqe,"Current value: "+j(s.n_crop),1)]),d("div",yqe,[vqe,ce(d("input",{type:"number","onUpdate:modelValue":e[24]||(e[24]=u=>s.n_predicts=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.n_predicts]]),d("span",Tqe,"Current value: "+j(s.n_predicts),1)]),d("div",Cqe,[Rqe,ce(d("input",{type:"number","onUpdate:modelValue":e[25]||(e[25]=u=>s.seed=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.seed]]),d("span",xqe,"Current value: "+j(s.seed),1)])]),_:1})]),_:1})])]),he(l,{ref:"toast"},null,512)],64)}const Aqe=qe(b6e,[["render",Oqe]]);const Nqe={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(YT(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},wqe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Iqe={key:0},Dqe=["onClick"],kqe={key:0},Mqe=["src"],Lqe={key:1},Pqe=d("p",null,"No extension is active. Please install and activate an extension.",-1),Fqe=[Pqe];function Uqe(t,e,n,r,s,o){return v(),T("div",wqe,[o.activeExtensions.length>0?(v(),T("div",Iqe,[(v(!0),T(we,null,Be(o.activeExtensions,i=>(v(),T("div",{key:i.name,onClick:a=>o.showExtensionPage(i)},[d("div",{class:Ae({"active-tab":i===s.activeExtension})},j(i.name),3)],8,Dqe))),128)),s.activeExtension?(v(),T("div",kqe,[d("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Mqe)])):U("",!0)])):(v(),T("div",Lqe,Fqe))])}const Bqe=qe(Nqe,[["render",Uqe]]);var pT={exports:{}};/* @license + `,document.body.appendChild(o);const i=o.querySelector("#cancelButton"),a=o.querySelector("#okButton");i.addEventListener("click",()=>{document.body.removeChild(o),r(null)}),a.addEventListener("click",()=>{if(n.length===0){const u=o.querySelector("#replacementInput").value.trim();document.body.removeChild(o),r(u)}else{const u=o.querySelector("#options_selector").value.trim();document.body.removeChild(o),r(u)}})})}function E6e(t,e){console.log(t);let n={},r=/@<([^>]+)>@/g,s=[],o;for(;(o=r.exec(t))!==null;)s.push("@<"+o[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function i(l){console.log(l);let u=l.toLowerCase().substring(2,l.length-2);if(u!=="generation_placeholder")if(u.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([E,b])=>{console.log(`Key: ${E}, Value: ${b}`);function m(A){return A.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const S=m(E),C=new RegExp(S,"g");u=u.replace(C,b)});let _=u.split(":"),p=_[0],g=_[1]||"",f=[];_.length>2&&(f=_.slice(1));let h=await eS(p,g,f);h!==null&&(n[l]=h)}else{let c=await eS(u);c!==null&&(n[l]=c)}}let a=Promise.resolve();s.forEach(l=>{a=a.then(()=>i(l)).then(u=>{console.log(u)})}),a.then(()=>{Object.entries(n).forEach(([l,u])=>{console.log(`Key: ${l}, Value: ${u}`);function c(g){return g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=c(l),p=new RegExp(_,"g");t=t.replace(p,u)}),e(t)})}const b6e={name:"PlayGroundView",data(){return{selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:ds,MarkdownRenderer:_T,ClipBoardTextInput:vp,Card:ao},mounted(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)}),Ie.on("text_chunk",t=>{this.appendToOutput(t.chunk)}),Ie.on("text_generated",t=>{this.generating=!1}),Ie.on("generation_error",t=>{console.log("generation_error:",t),this.$refs.toast.showToast(`Error: ${t}`,4,!1),this.generating=!1}),Ie.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Ie.on("buzzy",t=>{console.error("Server is busy. Wait for your turn",t),this.$refs.toast.showToast(`Error: ${t.message}`,4,!1),this.generating=!1}),Ie.on("generation_canceled",t=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ce.replace()}),"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.")},created(){},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,s=e.value.substring(0,n),o=e.value.substring(r),i=s+" "+o;this.text=i,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},text_element_changed(){console.log("text_element_changed"),this.cursorPosition=this.$refs.text_element.selectionStart},text_element_clicked(){console.log("text_element_clicked"),this.cursorPosition=this.$refs.text_element.selectionStart},setModel(){this.selecting_model=!0,xe.post("/update_setting",{setting_name:"model_name",setting_value:this.selectedModel}).then(t=>{console.log(t),t.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(t=>{this.$refs.toast.showToast(`Error ${t}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const n=s=>{let o=this.text.substring(s,s+e);const i=[".","!","?",` +`];let a=-1;return i.forEach(l=>{const u=o.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=o.length),console.log(a),a+s+1},r=()=>{const s=n(t),o=this.text.substring(t,s);this.msg.text=o,t=s+1,this.msg.onend=i=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",s))},this.speechSynthesis.speak(this.msg)};r()},getCursorPosition(){return this.cursorPosition},appendToOutput(t){this.pre_text+=t,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let t=this.text.indexOf("@@");if(t<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,t)+this.text.substring(t+26,this.text.length),this.pre_text=this.text.substring(0,t),this.post_text=this.text.substring(t,this.text.length);var e=this.text.substring(0,t);console.log(e),Ie.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var t=this.text.substring(0,this.getCursorPosition());console.log(t),Ie.emit("generate_text",{prompt:t,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Ie.emit("cancel_text_generation",{})},exportText(){const t=this.text,e=document.createElement("a"),n=new Blob([t],{type:"text/plain"});e.href=URL.createObjectURL(n),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const t=document.getElementById("import-input");t&&(t.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const n=new FileReader;n.onload=()=>{this.text=n.result},n.readAsText(e.target.files[0])}else alert("Please select a file.")}),t.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=E6e(this.selectedPreset.content,t=>{console.log("Done"),console.log(t),this.text=t})},addPreset(){let t=prompt("Enter the title of the preset:");this.presets[t]={name:t,content:this.text},xe.post("./add_preset",this.presets[t]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){xe.get("./get_presets").then(t=>{console.log(t.data),this.presets=t.data,this.selectedPreset=this.presets[0]}).catch(t=>{this.$refs.toast.showToast(`Error: ${t}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=t=>{this.generated="";for(let e=t.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},S6e={class:"container bg-bg-light dark:bg-bg-dark shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},y6e={class:"container flex flex-row m-2"},v6e={class:"flex-grow m-2"},T6e={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},C6e=d("i",{"data-feather":"pen-tool"},null,-1),R6e=[C6e],x6e=d("i",{"data-feather":"archive"},null,-1),O6e=[x6e],A6e=d("span",{class:"w-80"},null,-1),N6e=d("i",{"data-feather":"x"},null,-1),w6e=[N6e],I6e=d("i",{"data-feather":"mic"},null,-1),D6e=[I6e],k6e=d("i",{"data-feather":"volume-2"},null,-1),M6e=[k6e],L6e=d("i",{"data-feather":"upload"},null,-1),P6e=[L6e],F6e=d("i",{"data-feather":"download"},null,-1),U6e=[F6e],B6e={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},G6e=d("input",{type:"file",id:"import-input",class:"hidden"},null,-1),q6e={key:0},Y6e={key:1},V6e=["value"],z6e={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},H6e=d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Selecting model...")],-1),$6e=[H6e],W6e=["value"],K6e=d("br",null,null,-1),Q6e=d("i",{"data-feather":"check"},null,-1),j6e=[Q6e],Z6e=d("i",{"data-feather":"plus"},null,-1),X6e=[Z6e],J6e=d("i",{"data-feather":"x"},null,-1),eqe=[J6e],tqe=d("i",{"data-feather":"refresh-ccw"},null,-1),nqe=[tqe],rqe={class:"slider-container ml-2 mr-2"},sqe=d("h3",{class:"text-gray-600"},"Temperature",-1),oqe={class:"slider-value text-gray-500"},iqe={class:"slider-container ml-2 mr-2"},aqe=d("h3",{class:"text-gray-600"},"Top K",-1),lqe={class:"slider-value text-gray-500"},cqe={class:"slider-container ml-2 mr-2"},dqe=d("h3",{class:"text-gray-600"},"Top P",-1),uqe={class:"slider-value text-gray-500"},_qe={class:"slider-container ml-2 mr-2"},pqe=d("h3",{class:"text-gray-600"},"Repeat Penalty",-1),mqe={class:"slider-value text-gray-500"},gqe={class:"slider-container ml-2 mr-2"},fqe=d("h3",{class:"text-gray-600"},"Repeat Last N",-1),hqe={class:"slider-value text-gray-500"},Eqe={class:"slider-container ml-2 mr-2"},bqe=d("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),Sqe={class:"slider-value text-gray-500"},yqe={class:"slider-container ml-2 mr-2"},vqe=d("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),Tqe={class:"slider-value text-gray-500"},Cqe={class:"slider-container ml-2 mr-2"},Rqe=d("h3",{class:"text-gray-600"},"Seed",-1),xqe={class:"slider-value text-gray-500"};function Oqe(t,e,n,r,s,o){const i=Pe("MarkdownRenderer"),a=Pe("Card"),l=Pe("Toast");return v(),T(Ne,null,[d("div",S6e,[d("div",y6e,[d("div",v6e,[d("div",T6e,[ce(d("button",{id:"generate-button",onClick:e[0]||(e[0]=(...u)=>o.generate&&o.generate(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},R6e,512),[[We,!s.generating]]),ce(d("button",{id:"generate-next-button",onClick:e[1]||(e[1]=(...u)=>o.generate_in_placeholder&&o.generate_in_placeholder(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},O6e,512),[[We,!s.generating]]),A6e,ce(d("button",{id:"stop-button",onClick:e[2]||(e[2]=(...u)=>o.stopGeneration&&o.stopGeneration(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},w6e,512),[[We,s.generating]]),d("button",{type:"button",onClick:e[3]||(e[3]=(...u)=>o.startSpeechRecognition&&o.startSpeechRecognition(...u)),class:Ae([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},D6e,2),d("button",{title:"speak",onClick:e[4]||(e[4]=_e(u=>o.speak(),["stop"])),class:Ae([{"text-red-500":o.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},M6e,2),ce(d("button",{id:"export-button",onClick:e[5]||(e[5]=(...u)=>o.exportText&&o.exportText(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},P6e,512),[[We,!s.generating]]),ce(d("button",{id:"import-button",onClick:e[6]||(e[6]=(...u)=>o.importText&&o.importText(...u)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},U6e,512),[[We,!s.generating]]),d("div",B6e,[d("button",{class:Ae(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[7]||(e[7]=u=>s.tab_id="source")}," Source ",2),d("button",{class:Ae(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[8]||(e[8]=u=>s.tab_id="render")}," Render ",2)]),G6e]),d("div",{class:Ae(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":s.generating}])},[s.tab_id==="source"?(v(),T("div",q6e,[ce(d("textarea",{ref:"mdTextarea",onKeydown:e[9]||(e[9]=Wr(_e((...u)=>o.insertTab&&o.insertTab(...u),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:ht({minHeight:t.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[10]||(e[10]=u=>s.text=u)},`\r + `,36),[[De,s.text]]),d("span",null,"Cursor position "+j(s.cursorPosition),1)])):U("",!0),s.tab_id==="render"?(v(),T("div",Y6e,[he(i,{ref:"mdRender","markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["markdown-text"])])):U("",!0)],2)]),he(a,{title:"settings",class:"slider-container ml-0 mr-0 max-width",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(a,{title:"Model",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[ce(d("select",{"onUpdate:modelValue":e[11]||(e[11]=u=>o.selectedModel=u),onChange:e[12]||(e[12]=(...u)=>o.setModel&&o.setModel(...u)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(Ne,null,Be(o.models,u=>(v(),T("option",{key:u,value:u},j(u),9,V6e))),128))],544),[[Kt,o.selectedModel]]),s.selecting_model?(v(),T("div",z6e,$6e)):U("",!0)]),_:1}),he(a,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[ce(d("select",{"onUpdate:modelValue":e[13]||(e[13]=u=>s.selectedPreset=u),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(Ne,null,Be(s.presets,u=>(v(),T("option",{key:u,value:u},j(u.name),9,W6e))),128))],512),[[Kt,s.selectedPreset]]),K6e,d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[14]||(e[14]=(...u)=>o.setPreset&&o.setPreset(...u)),title:"Use preset"},j6e),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[15]||(e[15]=(...u)=>o.addPreset&&o.addPreset(...u)),title:"Add this text as a preset"},X6e),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[16]||(e[16]=(...u)=>o.removePreset&&o.removePreset(...u)),title:"Remove preset"},eqe),d("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[17]||(e[17]=(...u)=>o.reloadPresets&&o.reloadPresets(...u)),title:"Reload presets list"},nqe)]),_:1}),he(a,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[d("div",rqe,[sqe,ce(d("input",{type:"range","onUpdate:modelValue":e[18]||(e[18]=u=>s.temperature=u),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[De,s.temperature]]),d("span",oqe,"Current value: "+j(s.temperature),1)]),d("div",iqe,[aqe,ce(d("input",{type:"range","onUpdate:modelValue":e[19]||(e[19]=u=>s.top_k=u),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[De,s.top_k]]),d("span",lqe,"Current value: "+j(s.top_k),1)]),d("div",cqe,[dqe,ce(d("input",{type:"range","onUpdate:modelValue":e[20]||(e[20]=u=>s.top_p=u),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[De,s.top_p]]),d("span",uqe,"Current value: "+j(s.top_p),1)]),d("div",_qe,[pqe,ce(d("input",{type:"range","onUpdate:modelValue":e[21]||(e[21]=u=>s.repeat_penalty=u),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.repeat_penalty]]),d("span",mqe,"Current value: "+j(s.repeat_penalty),1)]),d("div",gqe,[fqe,ce(d("input",{type:"range","onUpdate:modelValue":e[22]||(e[22]=u=>s.repeat_last_n=u),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.repeat_last_n]]),d("span",hqe,"Current value: "+j(s.repeat_last_n),1)]),d("div",Eqe,[bqe,ce(d("input",{type:"number","onUpdate:modelValue":e[23]||(e[23]=u=>s.n_crop=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.n_crop]]),d("span",Sqe,"Current value: "+j(s.n_crop),1)]),d("div",yqe,[vqe,ce(d("input",{type:"number","onUpdate:modelValue":e[24]||(e[24]=u=>s.n_predicts=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.n_predicts]]),d("span",Tqe,"Current value: "+j(s.n_predicts),1)]),d("div",Cqe,[Rqe,ce(d("input",{type:"number","onUpdate:modelValue":e[25]||(e[25]=u=>s.seed=u),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[De,s.seed]]),d("span",xqe,"Current value: "+j(s.seed),1)])]),_:1})]),_:1})])]),he(l,{ref:"toast"},null,512)],64)}const Aqe=qe(b6e,[["render",Oqe]]);const Nqe={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(YT(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(t){this.activeExtension=t}}},wqe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Iqe={key:0},Dqe=["onClick"],kqe={key:0},Mqe=["src"],Lqe={key:1},Pqe=d("p",null,"No extension is active. Please install and activate an extension.",-1),Fqe=[Pqe];function Uqe(t,e,n,r,s,o){return v(),T("div",wqe,[o.activeExtensions.length>0?(v(),T("div",Iqe,[(v(!0),T(Ne,null,Be(o.activeExtensions,i=>(v(),T("div",{key:i.name,onClick:a=>o.showExtensionPage(i)},[d("div",{class:Ae({"active-tab":i===s.activeExtension})},j(i.name),3)],8,Dqe))),128)),s.activeExtension?(v(),T("div",kqe,[d("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Mqe)])):U("",!0)])):(v(),T("div",Lqe,Fqe))])}const Bqe=qe(Nqe,[["render",Uqe]]);var pT={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse @@ -92,15 +92,15 @@ License: MIT `:"\r"}(Y,O)),L=!1,y.delimiter)k(y.delimiter)&&(y.delimiter=y.delimiter(Y),ee.meta.delimiter=y.delimiter);else{var N=function($,W,ie,me,D){var K,G,q,V;D=D||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ne=0;ne=B)return Ge(!0)}else for(oe=I,I++;;){if((oe=re.indexOf(R,oe+1))===-1)return pe||te.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:I}),Oe();if(oe===ee-1)return Oe(re.substring(I,oe).replace(ne,R));if(R!==H||re[oe+1]!==H){if(R===H||oe===0||re[oe-1]!==H){q!==-1&&q=B)return Ge(!0);break}te.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:I}),oe++}}else oe++}return Oe();function le(Ze){z.push(Ze),ue=I}function Se(Ze){var et=0;if(Ze!==-1){var Xe=re.substring(oe+1,Ze);Xe&&Xe.trim()===""&&(et=Xe.length)}return et}function Oe(Ze){return pe||(Ze===void 0&&(Ze=re.substring(I)),Y.push(Ze),I=ee,le(Y),Ee&&rt()),Ge()}function Le(Ze){I=Ze,le(Y),Y=[],V=re.indexOf(L,I)}function Ge(Ze){return{data:z,errors:te,meta:{delimiter:w,linebreak:L,aborted:Q,truncated:!!Ze,cursor:ue+(X||0)}}}function rt(){Z(Ge()),z=[],te=[]}},this.abort=function(){Q=!0},this.getCharIndex=function(){return I}}function m(y){var R=y.data,w=i[R.workerId],L=!1;if(R.error)w.userError(R.error,R.file);else if(R.results&&R.results.data){var M={abort:function(){L=!0,S(R.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(k(w.userStep)){for(var Z=0;Zt.text()).then(t=>{const{data:e}=qqe.parse(t,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(t=>{console.error("Error loading FAQs:",t)})},parseMultiline(t){return t.replace(/\n/g,"
")}}},Tn=t=>(hr("data-v-f0cce578"),t=t(),Er(),t),Vqe={class:"container flex-row mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-1 md:grid-cols-2 gap-4"},zqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"About Lord of large Language Models",-1)),Hqe={class:"mb-4"},$qe=Tn(()=>d("p",null,[Re("Discord link: "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")],-1)),Wqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),Kqe={class:"list-disc pl-4"},Qqe={class:"text-xl font-bold mb-1"},jqe=["innerHTML"],Zqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Contact Us",-1)),Xqe=Tn(()=>d("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to me.",-1)),Jqe=Tn(()=>d("p",null,[Re("Discord link: "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")],-1)),e7e=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Credits",-1)),t7e=Tn(()=>d("p",{class:"mb-4"},[Re("This project is developed by "),d("span",{class:"font-bold"},"ParisNeo"),Re(" With help from the community.")],-1)),n7e=Tn(()=>d("p",{class:"mb-4"},[d("span",{class:"font-bold"},[d("a",{href:"https://github.com/ParisNeo/lollms-webui/graphs/contributors"},"Check out the full list of developers here and show them some love.")])],-1)),r7e=["href"];function s7e(t,e,n,r,s,o){const i=Pe("Card");return v(),T("div",Vqe,[he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[zqe,d("p",Hqe," Lollms version "+j(o.version),1),$qe]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Wqe,d("ul",Kqe,[(v(!0),T(we,null,Be(s.faqs,(a,l)=>(v(),T("li",{key:l},[d("h3",Qqe,j(a.question),1),d("p",{class:"mb-4",innerHTML:o.parseMultiline(a.answer)},null,8,jqe)]))),128))])]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Zqe,Xqe,Jqe]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[e7e,t7e,n7e,d("p",null,[Re("Check out the project on "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:s.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,r7e),Re(".")])]),_:1})])}const o7e=qe(Yqe,[["render",s7e],["__scopeId","data-v-f0cce578"]]);function Xt(t,e=!0,n=1){const r=e?1e3:1024;if(Math.abs(t)=r&&oo.hide&&o.hide(...i)),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 ")])])])):U("",!0)}const mT=qe(i7e,[["render",u7e]]),_7e={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(r=>{this.message=t,this.show=!0,this.resolve=r})}}},p7e={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},m7e={class:"relative w-full max-w-md max-h-full"},g7e={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},f7e=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),h7e=d("span",{class:"sr-only"},"Close modal",-1),E7e=[f7e,h7e],b7e={class:"p-4 text-center"},S7e=d("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"},[d("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),y7e={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function v7e(t,e,n,r,s,o){return s.show?(v(),T("div",p7e,[d("div",m7e,[d("div",g7e,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>o.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"},E7e),d("div",b7e,[S7e,d("h3",y7e,j(s.message),1),d("button",{onClick:e[1]||(e[1]=i=>o.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"},j(s.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=i=>o.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"},j(s.DenyButtonText),1)])])])])):U("",!0)}const T7e=qe(_7e,[["render",v7e]]),zn="/assets/default_model-eeb65acd.png";const C7e={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(t){const e=this.$refs.menu,n=this.$refs.menuButton;e&&!e.contains(t.target)&&!n.contains(t.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),ve(()=>{Ce.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected"),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),ve(()=>{Ce.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},R7e={class:"menu-container"},x7e=["title"],O7e=["src"],A7e=["data-feather"],N7e={key:2,class:"w-5 h-5"},w7e={key:3,"data-feather":"menu"},I7e={class:"flex-grow menu-ul"},D7e=["onClick"],k7e={key:0,"data-feather":"check"},M7e=["src","alt"],L7e=["data-feather"],P7e={key:3,class:"menu-icon"};function F7e(t,e,n,r,s,o){return v(),T("div",R7e,[d("button",{onClick:e[0]||(e[0]=_e((...i)=>o.toggleMenu&&o.toggleMenu(...i),["prevent"])),title:n.title,class:Ae([n.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(v(),T("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,O7e)):n.icon&&n.icon.includes("feather")?(v(),T("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,A7e)):n.icon&&n.icon.includes("#")?(v(),T("p",N7e,j(n.icon.split("#")[1]),1)):(v(),T("i",w7e))],10,x7e),he(Hr,{name:"slide"},{default:ke(()=>[s.isMenuOpen?(v(),T("div",{key:0,class:"menu-list flex-grow",style:ht(s.menuPosition),ref:"menu"},[d("ul",I7e,[(v(!0),T(we,null,Be(n.commands,(i,a)=>(v(),T("li",{key:a,onClick:_e(l=>o.executeCommand(i),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==i.name?(v(),T("i",k7e)):i.icon&&!i.icon.includes("feather")&&!i.is_file?(v(),T("img",{key:1,src:i.icon,alt:i.name,class:"menu-icon"},null,8,M7e)):U("",!0),i.icon&&i.icon.includes("feather")&&!i.is_file?(v(),T("i",{key:2,"data-feather":i.icon.split(":")[1],class:"mr-2"},null,8,L7e)):(v(),T("span",P7e)),d("span",null,j(i.name),1)],8,D7e))),128))])],4)):U("",!0)]),_:1})])}const lo=qe(C7e,[["render",F7e]]),U7e={components:{InteractiveMenu:lo},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){ve(()=>{Ce.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return Xt(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?zn:this.model.icon},defaultImg(t){t.target.src=zn},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t=!1){this.onSelected(this,t),ve(()=>{Ce.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){installing=!1,this.onCancelInstall(this)},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary":"border-0 border-primary bg-primary":"border-transparent"},commandsList(){let t=[{name:this.model.isInstalled?"Uninstall":"Install",icon:"feather:settings",is_file:!1,value:this.toggleInstall},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return Xt(this.speed)},total_size_computed(){return Xt(this.total_size)},downloaded_size_computed(){return Xt(this.downloaded_size)}},watch:{linkNotValid(){ve(()=>{Ce.replace()})}}},B7e=["title"],G7e={key:0,class:"flex flex-row"},q7e={class:"max-w-[300px] overflow-x-auto"},Y7e={class:"flex gap-3 items-center grow"},V7e=["href"],z7e=["src"],H7e={class:"flex-1 overflow-hidden"},$7e={class:"font-bold font-large text-lg truncate"},W7e={key:1,class:"flex items-center flex-row gap-2 my-1"},K7e={class:"flex grow items-center"},Q7e=d("i",{"data-feather":"box",class:"w-5"},null,-1),j7e=d("span",{class:"sr-only"},"Custom model / local model",-1),Z7e=[Q7e,j7e],X7e={key:0},J7e=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("path",{d:"M9 16.17l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"})],-1),eYe=[J7e],tYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},null,-1),nYe=[tYe],rYe=d("span",{class:"sr-only"},"Remove",-1),sYe={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},oYe={class:"relative flex flex-col items-center justify-center flex-grow h-full"},iYe=d("div",{role:"status",class:"justify-center"},[d("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1),aYe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},lYe={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},cYe={class:"flex justify-between mb-1"},dYe=d("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),uYe={class:"text-sm font-medium text-blue-700 dark:text-white"},_Ye={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},pYe={class:"flex justify-between mb-1"},mYe={class:"text-base font-medium text-blue-700 dark:text-white"},gYe={class:"text-sm font-medium text-blue-700 dark:text-white"},fYe={class:"flex flex-grow"},hYe={class:"flex flex-row flex-grow gap-3"},EYe={class:"p-2 text-center grow"},bYe={key:3},SYe={class:"flex flex-row items-center gap-3"},yYe=["src"],vYe={class:"font-bold font-large text-lg truncate"},TYe=d("div",{class:"grow"},null,-1),CYe={key:0},RYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("path",{d:"M9 16.17l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"})],-1),xYe=[RYe],OYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},null,-1),AYe=[OYe],NYe={class:"flex items-center flex-row-reverse gap-2 my-1"},wYe={class:"flex flex-row items-center"},IYe={key:0,class:"text-base text-red-600 flex items-center mt-1"},DYe=d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),kYe=["title"],MYe={class:""},LYe={class:"flex flex-row items-center"},PYe=d("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),FYe=d("b",null,"Card: ",-1),UYe=["href","title"],BYe=d("div",{class:"grow"},null,-1),GYe=d("i",{"data-feather":"clipboard",class:"w-5"},null,-1),qYe=[GYe],YYe={class:"flex items-center"},VYe=d("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),zYe=d("b",null,"File size: ",-1),HYe={class:"flex items-center"},$Ye=d("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),WYe=d("b",null,"License: ",-1),KYe={key:0,class:"flex items-center"},QYe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),jYe=d("b",null,"quantizer: ",-1),ZYe=["href"],XYe={class:"flex items-center"},JYe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),eVe=d("b",null,"Model creator: ",-1),tVe=["href"],nVe={class:"flex items-center"},rVe=d("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),sVe=d("b",null,"Release date: ",-1),oVe={class:"flex items-center"},iVe=d("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),aVe=d("b",null,"Category: ",-1),lVe=["href"],cVe={class:"flex items-center"},dVe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),uVe=d("b",null,"Hugging face rank: ",-1);function _Ve(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",o.computed_classes]),title:n.model.name},[n.model.isCustomModel?(v(),T("div",G7e,[d("div",q7e,[d("div",Y7e,[d("a",{href:n.model.model_creator_link,target:"_blank"},[d("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,z7e)],8,V7e),d("div",H7e,[d("h3",$7e,j(n.model.name),1)])])])])):U("",!0),n.model.isCustomModel?(v(),T("div",W7e,[d("div",K7e,[d("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=_e(()=>{},["stop"]))},Z7e),Re(" Custom model ")]),n.model.isInstalled?(v(),T("div",X7e,[n.model.selected?(v(),T("div",{key:0,onClick:e[2]||(e[2]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},eYe)):(v(),T("div",{key:1,onClick:e[3]||(e[3]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},nYe))])):U("",!0),d("div",null,[n.model.isInstalled?(v(),T("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[4]||(e[4]=_e((...a)=>o.toggleInstall&&o.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[Re(" Uninstall "),rYe])):U("",!0)])])):U("",!0),s.installing?(v(),T("div",sYe,[d("div",oYe,[iYe,d("div",aYe,[d("div",lYe,[d("div",cYe,[dYe,d("span",uYe,j(Math.floor(s.progress))+"%",1)]),d("div",_Ye,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht({width:s.progress+"%"})},null,4)]),d("div",pYe,[d("span",mYe,"Download speed: "+j(o.speed_computed)+"/s",1),d("span",gYe,j(o.downloaded_size_computed)+"/"+j(o.total_size_computed),1)])])]),d("div",fYe,[d("div",hYe,[d("div",EYe,[d("button",{onClick:e[5]||(e[5]=_e((...a)=>o.toggleCancelInstall&&o.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):U("",!0),n.model.isCustomModel?U("",!0):(v(),T("div",bYe,[d("div",SYe,[d("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[6]||(e[6]=a=>o.defaultImg(a)),class:Ae(["w-10 h-10 rounded-lg object-fill",s.linkNotValid?"grayscale":""])},null,42,yYe),d("h3",vYe,j(n.model.name),1),TYe,n.model.isInstalled?(v(),T("div",CYe,[n.model.selected?(v(),T("div",{key:0,onClick:e[7]||(e[7]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},xYe)):(v(),T("div",{key:1,onClick:e[8]||(e[8]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},AYe))])):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),d("div",NYe,[d("div",wYe,[s.linkNotValid?(v(),T("div",IYe,[DYe,Re(" Link is not valid ")])):U("",!0)])]),d("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[d("div",MYe,[d("div",LYe,[PYe,FYe,d("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[9]||(e[9]=_e(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:s.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,UYe),BYe,d("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[10]||(e[10]=_e(a=>o.toggleCopyLink(),["stop"]))},qYe)]),d("div",YYe,[d("div",{class:Ae(["flex flex-shrink-0 items-center",s.linkNotValid?"text-red-600":""])},[VYe,zYe,Re(" "+j(o.fileSize),1)],2)]),d("div",HYe,[$Ye,WYe,Re(" "+j(n.model.license),1)]),n.model.quantizer!="None"?(v(),T("div",KYe,[QYe,jYe,d("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[11]||(e[11]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.quantizer),9,ZYe)])):U("",!0),d("div",XYe,[JYe,eVe,d("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[12]||(e[12]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.model_creator),9,tVe)]),d("div",nVe,[rVe,sVe,Re(" "+j(n.model.last_commit_time),1)]),d("div",oVe,[iVe,aVe,d("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[13]||(e[13]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.category),9,lVe)]),d("div",cVe,[dVe,uVe,d("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",rel:"noopener noreferrer",onClick:e[14]||(e[14]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.rank),1)])])],8,kYe)]))],10,B7e)}const pVe=qe(U7e,[["render",_Ve]]),mVe={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},gVe={class:"p-4"},fVe={class:"flex items-center mb-4"},hVe=["src"],EVe={class:"text-lg font-semibold"},bVe=d("strong",null,"Author:",-1),SVe=d("strong",null,"Description:",-1),yVe=d("strong",null,"Category:",-1),vVe={key:0},TVe=d("strong",null,"Disclaimer:",-1),CVe=d("strong",null,"Conditioning Text:",-1),RVe=d("strong",null,"AI Prefix:",-1),xVe=d("strong",null,"User Prefix:",-1),OVe=d("strong",null,"Antiprompts:",-1);function AVe(t,e,n,r,s,o){return v(),T("div",gVe,[d("div",fVe,[d("img",{src:s.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,hVe),d("h2",EVe,j(s.personalityName),1)]),d("p",null,[bVe,Re(" "+j(s.personalityAuthor),1)]),d("p",null,[SVe,Re(" "+j(s.personalityDescription),1)]),d("p",null,[yVe,Re(" "+j(s.personalityCategory),1)]),s.disclaimer?(v(),T("p",vVe,[TVe,Re(" "+j(s.disclaimer),1)])):U("",!0),d("p",null,[CVe,Re(" "+j(s.conditioningText),1)]),d("p",null,[RVe,Re(" "+j(s.aiPrefix),1)]),d("p",null,[xVe,Re(" "+j(s.userPrefix),1)]),d("div",null,[OVe,d("ul",null,[(v(!0),T(we,null,Be(s.antipromptsList,i=>(v(),T("li",{key:i.id},j(i.text),1))),128))])]),d("button",{onClick:e[0]||(e[0]=i=>s.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),s.editMode?(v(),T("button",{key:1,onClick:e[1]||(e[1]=(...i)=>o.commitChanges&&o.commitChanges(...i)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):U("",!0)])}const NVe=qe(mVe,[["render",AVe]]),ms="/assets/logo-9d653710.svg",wVe="/",IVe={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function},components:{InteractiveMenu:lo},data(){return{isMounted:!1,name:this.personality.name}},computed:{commandsList(){let t=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,ve(()=>{Ce.replace()})},methods:{getImgUrl(){return wVe+this.personality.avatar},defaultImg(t){t.target.src=ms},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){ve(()=>{Ce.replace()})}}},DVe=["title"],kVe={class:"flex flex-row items-center flex-shrink-0 gap-3"},MVe=["src"],LVe=d("i",{"data-feather":"clipboard",class:"w-5"},null,-1),PVe=[LVe],FVe={class:""},UVe={class:""},BVe={class:"flex items-center"},GVe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qVe=d("b",null,"Author: ",-1),YVe={class:"flex items-center"},VVe=d("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),zVe=d("b",null,"Version: ",-1),HVe={key:0,class:"flex items-center"},$Ve=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),WVe=d("b",null,"Languages: ",-1),KVe=["selected"],QVe={key:1,class:"flex items-center"},jVe=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),ZVe=d("b",null,"Language: ",-1),XVe={class:"flex items-center"},JVe=d("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),eze=d("b",null,"Category: ",-1),tze=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),nze=["title"],rze={class:"rounded bg-blue-300"},sze=d("i",{"data-feather":"check"},null,-1),oze=d("span",{class:"sr-only"},"Select",-1),ize=[sze,oze],aze=d("i",{"data-feather":"send",class:"w-5"},null,-1),lze=d("span",{class:"sr-only"},"Talk",-1),cze=[aze,lze];function dze(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",o.selected_computed?"border-2 border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:n.personality.installed?"":"Not installed"},[d("div",{class:Ae(n.personality.installed?"":"border-red-500")},[d("div",kVe,[d("img",{onClick:e[0]||(e[0]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),ref:"imgElement",src:o.getImgUrl(),onError:e[1]||(e[1]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,MVe),d("h3",{onClick:e[2]||(e[2]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},j(n.personality.name),1),d("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[3]||(e[3]=_e(a=>o.toggleCopyLink(),["stop"]))},PVe)]),d("div",FVe,[d("div",UVe,[d("div",BVe,[GVe,qVe,Re(" "+j(n.personality.author),1)]),d("div",YVe,[VVe,zVe,Re(" "+j(n.personality.version),1)]),n.personality.languages&&n.select_language?(v(),T("div",HVe,[$Ve,WVe,ce(d("select",{id:"languages","onUpdate:modelValue":e[4]||(e[4]=a=>n.personality.language=a),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(v(!0),T(we,null,Be(n.personality.languages,(a,l)=>(v(),T("option",{key:l,selected:a==n.personality.languages[0]},j(a),9,KVe))),128))],512),[[Kt,n.personality.language]])])):U("",!0),n.personality.language?(v(),T("div",QVe,[jVe,ZVe,Re(" "+j(n.personality.language),1)])):U("",!0),d("div",XVe,[JVe,eze,Re(" "+j(n.personality.category),1)])]),tze,d("p",{class:"mx-1 opacity-80 h-20 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",title:n.personality.description},j(n.personality.description),9,nze)]),d("div",rze,[s.isMounted?(v(),T("button",{key:0,type:"button",title:"Select",onClick:[e[5]||(e[5]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),e[6]||(e[6]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},ize)):U("",!0),s.isMounted?(v(),T("button",{key:1,type:"button",title:"Talk",onClick:[e[7]||(e[7]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),e[8]||(e[8]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},cze)):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,DVe)}const gT=qe(IVe,[["render",dze]]);const uze={props:{code:String},data(){return{evaluatedCode:""}},watch:{code:{handler(t){this.evaluateScriptTags(t)},immediate:!0}},methods:{evaluateScriptTags(t){const e=document.createElement("div");e.innerHTML=t,e.querySelectorAll("script").forEach(r=>{const s=document.createElement("script");s.textContent=r.textContent,document.body.appendChild(s),document.body.removeChild(s)}),this.evaluatedCode=e.innerHTML}}},_ze=["innerHTML"];function pze(t,e,n,r,s,o){return v(),T("div",{innerHTML:s.evaluatedCode},null,8,_ze)}const fT=qe(uze,[["render",pze]]),mze="/",gze={components:{DynamicUIRenderer:fT},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){ve(()=>{Ce.replace()})},methods:{getImgUrl(){return mze+this.binding.icon},defaultImg(t){t.target.src=ms},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){ve(()=>{Ce.replace()})}}},fze=["title"],hze={class:"flex flex-row items-center gap-3"},Eze=["src"],bze={class:"font-bold font-large text-lg truncate"},Sze=d("div",{class:"grow"},null,-1),yze={class:"flex-none gap-1"},vze=d("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Tze=d("span",{class:"sr-only"},"Help",-1),Cze=[vze,Tze],Rze={class:"flex items-center flex-row-reverse gap-2 my-1"},xze=d("span",{class:"sr-only"},"Click to install",-1),Oze=d("span",{class:"sr-only"},"Reinstall",-1),Aze=d("span",{class:"sr-only"},"UnInstall",-1),Nze=d("span",{class:"sr-only"},"Settings",-1),wze={class:""},Ize={class:""},Dze={class:"flex items-center"},kze=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Mze=d("b",null,"Author: ",-1),Lze={class:"flex items-center"},Pze=d("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Fze=d("b",null,"Folder: ",-1),Uze={class:"flex items-center"},Bze=d("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Gze=d("b",null,"Version: ",-1),qze={class:"flex items-center"},Yze=d("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Vze=d("b",null,"Link: ",-1),zze=["href"],Hze=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),$ze=["title"];function Wze(t,e,n,r,s,o){const i=Pe("DynamicUIRenderer");return v(),T("div",{class:Ae(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[7]||(e[7]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[d("div",null,[d("div",hze,[d("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Eze),d("h3",bze,j(n.binding.name),1),Sze,d("div",yze,[n.selected?(v(),T("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>o.toggleReloadBinding&&o.toggleReloadBinding(...a)),e[2]||(e[2]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Cze)):U("",!0)])]),d("div",Rze,[n.binding.installed?U("",!0):(v(),T("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=_e((...a)=>o.toggleInstall&&o.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Re(" Install "),xze])),n.binding.installed?(v(),T("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=_e((...a)=>o.toggleReinstall&&o.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},[Re(" Reinstall "),Oze])):U("",!0),n.binding.installed?(v(),T("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=_e((...a)=>o.toggleUnInstall&&o.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[Re(" Uninstall "),Aze])):U("",!0),n.selected?(v(),T("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=_e((...a)=>o.toggleSettings&&o.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Re(" Settings "),Nze])):U("",!0)]),n.binding.ui?(v(),nt(i,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):U("",!0),d("div",wze,[d("div",Ize,[d("div",Dze,[kze,Mze,Re(" "+j(n.binding.author),1)]),d("div",Lze,[Pze,Fze,Re(" "+j(n.binding.folder),1)]),d("div",Uze,[Bze,Gze,Re(" "+j(n.binding.version),1)]),d("div",qze,[Yze,Vze,d("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},j(n.binding.link),9,zze)])]),Hze,d("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description},j(n.binding.description),9,$ze)])])],10,fze)}const Kze=qe(gze,[["render",Wze]]),Qze={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},jze={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Zze={class:"relative w-full max-w-md max-h-full"},Xze={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Jze=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),eHe=d("span",{class:"sr-only"},"Close modal",-1),tHe=[Jze,eHe],nHe={class:"p-4 text-center"},rHe=d("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"},[d("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),sHe={class:"p-4 text-center mx-auto mb-4"},oHe=d("label",{class:"mr-2"},"Model path",-1);function iHe(t,e,n,r,s,o){return s.show?(v(),T("div",jze,[d("div",Zze,[d("div",Xze,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>o.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"},tHe),d("div",nHe,[rHe,d("div",sHe,[oHe,ce(d("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>s.model_path=i),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[De,s.model_path]])]),d("button",{onClick:e[2]||(e[2]=i=>o.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),d("button",{onClick:e[3]||(e[3]=i=>o.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):U("",!0)}const aHe=qe(Qze,[["render",iHe]]),lHe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){ve(()=>{Ce.replace()})},methods:{hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,r){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let s=0;s{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show foam",this.controls_array)})}},watch:{show(){ve(()=>{Ce.replace()})}}},cHe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},dHe={class:"relative w-full max-w-md"},uHe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},_He={class:"flex flex-row flex-grow items-center m-2 p-1"},pHe={class:"grow flex items-center"},mHe=d("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),gHe={class:"text-lg font-semibold select-none mr-2"},fHe={class:"items-end"},hHe=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),EHe=d("span",{class:"sr-only"},"Close form modal",-1),bHe=[hHe,EHe],SHe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},yHe={class:"px-2"},vHe={key:0},THe={key:0},CHe={class:"text-base font-semibold"},RHe={key:0,class:"relative inline-flex"},xHe=["onUpdate:modelValue"],OHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),AHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},NHe=["onUpdate:modelValue"],wHe={key:1},IHe={class:"text-base font-semibold"},DHe={key:0,class:"relative inline-flex"},kHe=["onUpdate:modelValue"],MHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),LHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},PHe=["onUpdate:modelValue"],FHe=["value","selected"],UHe={key:1},BHe={class:"text-base font-semibold"},GHe={key:0,class:"relative inline-flex"},qHe=["onUpdate:modelValue"],YHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),VHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zHe=["onUpdate:modelValue"],HHe=["onUpdate:modelValue","min","max"],$He={key:2},WHe={class:"text-base font-semibold"},KHe={key:0,class:"relative inline-flex"},QHe=["onUpdate:modelValue"],jHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),ZHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},XHe=["onUpdate:modelValue"],JHe=["onUpdate:modelValue","min","max"],e$e={key:3},t$e={class:"mb-2 relative flex items-center gap-2"},n$e={for:"default-checkbox",class:"text-base font-semibold"},r$e=["onUpdate:modelValue"],s$e={key:0,class:"relative inline-flex"},o$e=["onUpdate:modelValue"],i$e=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),a$e={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},l$e={key:4},c$e={class:"text-base font-semibold"},d$e={key:0,class:"relative inline-flex"},u$e=["onUpdate:modelValue"],_$e=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),p$e={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},m$e=["onUpdate:modelValue"],g$e=d("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),f$e={class:"flex flex-row flex-grow gap-3"},h$e={class:"p-2 text-center grow"};function E$e(t,e,n,r,s,o){return s.show?(v(),T("div",cHe,[d("div",dHe,[d("div",uHe,[d("div",_He,[d("div",pHe,[mHe,d("h3",gHe,j(s.title),1)]),d("div",fHe,[d("button",{type:"button",onClick:e[0]||(e[0]=_e(i=>o.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"},bHe)])]),d("div",SHe,[(v(!0),T(we,null,Be(s.controls_array,(i,a)=>(v(),T("div",yHe,[i.type=="str"?(v(),T("div",vHe,[i.options?U("",!0):(v(),T("div",THe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",CHe,j(i.name)+": ",1),i.help?(v(),T("label",RHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,xHe),[[tt,i.isHelp]]),OHe])):U("",!0)],2),i.isHelp?(v(),T("p",AHe,j(i.help),1)):U("",!0),ce(d("input",{type:"text","onUpdate:modelValue":l=>i.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,NHe),[[De,i.value]])])),i.options?(v(),T("div",wHe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",IHe,j(i.name)+": ",1),i.help?(v(),T("label",DHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,kHe),[[tt,i.isHelp]]),MHe])):U("",!0)],2),i.isHelp?(v(),T("p",LHe,j(i.help),1)):U("",!0),ce(d("select",{"onUpdate:modelValue":l=>i.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"},[(v(!0),T(we,null,Be(i.options,l=>(v(),T("option",{value:l,selected:i.value===l},j(l),9,FHe))),256))],8,PHe),[[Kt,i.value]])])):U("",!0)])):U("",!0),i.type=="int"?(v(),T("div",UHe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",BHe,j(i.name)+": ",1),i.help?(v(),T("label",GHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,qHe),[[tt,i.isHelp]]),YHe])):U("",!0)],2),i.isHelp?(v(),T("p",VHe,j(i.help),1)):U("",!0),ce(d("input",{type:"number","onUpdate:modelValue":l=>i.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,zHe),[[De,i.value]]),i.min!=null&&i.max!=null?ce((v(),T("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.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,HHe)),[[De,i.value]]):U("",!0)])):U("",!0),i.type=="float"?(v(),T("div",$He,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",WHe,j(i.name)+": ",1),i.help?(v(),T("label",KHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,QHe),[[tt,i.isHelp]]),jHe])):U("",!0)],2),i.isHelp?(v(),T("p",ZHe,j(i.help),1)):U("",!0),ce(d("input",{type:"number","onUpdate:modelValue":l=>i.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,XHe),[[De,i.value]]),i.min!=null&&i.max!=null?ce((v(),T("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.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,JHe)),[[De,i.value]]):U("",!0)])):U("",!0),i.type=="bool"?(v(),T("div",e$e,[d("div",t$e,[d("label",n$e,j(i.name)+": ",1),ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.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,r$e),[[tt,i.value]]),i.help?(v(),T("label",s$e,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,o$e),[[tt,i.isHelp]]),i$e])):U("",!0)]),i.isHelp?(v(),T("p",a$e,j(i.help),1)):U("",!0)])):U("",!0),i.type=="list"?(v(),T("div",l$e,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",c$e,j(i.name)+": ",1),i.help?(v(),T("label",d$e,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,u$e),[[tt,i.isHelp]]),_$e])):U("",!0)],2),i.isHelp?(v(),T("p",p$e,j(i.help),1)):U("",!0),ce(d("input",{type:"text","onUpdate:modelValue":l=>i.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,m$e),[[De,i.value]])])):U("",!0),g$e]))),256)),d("div",f$e,[d("div",h$e,[d("button",{onClick:e[1]||(e[1]=_e(i=>o.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"},j(s.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=_e(i=>o.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"},j(s.DenyButtonText),1)])])])])])])):U("",!0)}const Tp=qe(lHe,[["render",E$e]]);const b$e={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(t){return console.log("choice:",t),typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const t=this.newFilename.trim();t!==""&&(this.choices.push(t),this.newFilename="",this.selectChoice(t)),this.showInput=!1},removeChoice(t,e){this.choices.splice(e,1),t===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",t)}}},S$e={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"},y$e={class:"bg-white dark:bg-gray-800 rounded-lg p-6 w-96"},v$e={class:"text-xl font-semibold mb-4"},T$e={class:"h-48 overflow-y-auto"},C$e=["onClick"],R$e={class:"font-bold"},x$e=d("br",null,null,-1),O$e={key:0,class:"text-xs text-gray-500"},A$e=["onClick"],N$e={key:0,class:"mt-4"},w$e={class:"flex justify-end mt-4"},I$e=["disabled"];function D$e(t,e,n,r,s,o){return v(),nt(Hr,{name:"fade"},{default:ke(()=>[n.show?(v(),T("div",S$e,[d("div",y$e,[d("h2",v$e,j(n.title),1),d("div",T$e,[d("ul",null,[(v(!0),T(we,null,Be(n.choices,(i,a)=>(v(),T("li",{key:a,onClick:l=>o.selectChoice(i),class:Ae([{"selected-choice":i===s.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700"])},[d("span",R$e,j(o.displayName(i)),1),x$e,i.size?(v(),T("span",O$e,j(o.formatSize(i.size)),1)):U("",!0),n.can_remove?(v(),T("button",{key:1,onClick:l=>o.removeChoice(i,a),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,A$e)):U("",!0)],10,C$e))),128))])]),s.showInput?(v(),T("div",N$e,[ce(d("input",{"onUpdate:modelValue":e[0]||(e[0]=i=>s.newFilename=i),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[De,s.newFilename]]),d("button",{onClick:e[1]||(e[1]=(...i)=>o.addNewFilename&&o.addNewFilename(...i)),class:"mt-2 py-2 px-4 bg-green-500 hover:bg-green-600 text-white rounded-lg transition duration-300"}," Add ")])):U("",!0),d("div",w$e,[d("button",{onClick:e[2]||(e[2]=(...i)=>o.closeDialog&&o.closeDialog(...i)),class:"py-2 px-4 mr-2 bg-red-500 hover:bg-red-600 text-white rounded-lg transition duration-300"}," Cancel "),d("button",{onClick:e[3]||(e[3]=(...i)=>o.validateChoice&&o.validateChoice(...i)),class:Ae([{"bg-gray-400 cursor-not-allowed":!s.selectedChoice,"bg-blue-500 hover:bg-blue-600":s.selectedChoice,"text-white":s.selectedChoice,"text-gray-500":!s.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!s.selectedChoice}," Validate ",10,I$e),d("button",{onClick:e[4]||(e[4]=(...i)=>o.toggleInput&&o.toggleInput(...i)),class:"py-2 px-4 ml-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300"}," Add New ")])])])):U("",!0)]),_:1})}const Cp=qe(b$e,[["render",D$e]]),k$e={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:0}},data(){return{selectedValue:this.defaultValue}},methods:{handleRadioChange(t){this.selectedValue!==null&&this.$emit("radio-selected",this.selectedValue,t)}}},M$e={class:"flex space-x-4"},L$e=["value","onChange"],P$e={class:"text-gray-700"};function F$e(t,e,n,r,s,o){return v(),T("div",M$e,[(v(!0),T(we,null,Be(n.radioOptions,(i,a)=>(v(),T("label",{key:i.value,class:"flex items-center space-x-2"},[ce(d("input",{type:"radio",value:i.value,"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedValue=l),onChange:l=>o.handleRadioChange(a),class:"text-blue-500 focus:ring-2 focus:ring-blue-200"},null,40,L$e),[[FR,s.selectedValue]]),d("span",P$e,j(i.label),1)]))),128))])}const U$e=qe(k$e,[["render",F$e]]),B$e="/",G$e={props:{extension:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function},components:{InteractiveMenu:lo},data(){return{isMounted:!1,name:this.extension.name}},computed:{commandsList(){let t=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.extension.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.extension.isMounted,ve(()=>{Ce.replace()})},methods:{getImgUrl(){return B$e+this.extension.avatar},defaultImg(t){t.target.src=ms},toggleTalk(){this.onTalk(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){ve(()=>{Ce.replace()})}}},q$e=["title"],Y$e={class:"flex flex-row items-center flex-shrink-0 gap-3"},V$e=["src"],z$e={class:""},H$e={class:""},$$e={class:"flex items-center"},W$e=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),K$e=d("b",null,"Author: ",-1),Q$e={key:0,class:"flex items-center"},j$e=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Z$e=d("b",null,"Languages: ",-1),X$e=["selected"],J$e={key:1,class:"flex items-center"},eWe=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),tWe=d("b",null,"Language: ",-1),nWe={class:"flex items-center"},rWe=d("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),sWe=d("b",null,"Category: ",-1),oWe=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),iWe=["title"],aWe={class:"rounded bg-blue-300"},lWe=d("i",{"data-feather":"check"},null,-1),cWe=d("span",{class:"sr-only"},"Select",-1),dWe=[lWe,cWe],uWe=d("i",{"data-feather":"send",class:"w-5"},null,-1),_We=d("span",{class:"sr-only"},"Talk",-1),pWe=[uWe,_We];function mWe(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",o.selected_computed?"border-2 border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:n.extension.installed?"":"Not installed"},[d("div",{class:Ae(n.extension.installed?"":"border-red-500")},[d("div",Y$e,[d("img",{onClick:e[0]||(e[0]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),ref:"imgElement",src:o.getImgUrl(),onError:e[1]||(e[1]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,V$e),d("h3",{onClick:e[2]||(e[2]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},j(n.extension.name),1)]),d("div",z$e,[d("div",H$e,[d("div",$$e,[W$e,K$e,Re(" "+j(n.extension.author),1)]),n.extension.languages&&n.select_language?(v(),T("div",Q$e,[j$e,Z$e,ce(d("select",{id:"languages","onUpdate:modelValue":e[3]||(e[3]=a=>n.extension.language=a),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(v(!0),T(we,null,Be(n.extension.languages,(a,l)=>(v(),T("option",{key:l,selected:a==n.extension.languages[0]},j(a),9,X$e))),128))],512),[[Kt,n.extension.language]])])):U("",!0),n.extension.language?(v(),T("div",J$e,[eWe,tWe,Re(" "+j(n.extension.language),1)])):U("",!0),d("div",nWe,[rWe,sWe,Re(" "+j(n.extension.category),1)])]),oWe,d("p",{class:"mx-1 opacity-80 h-20 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",title:n.extension.description},j(n.extension.description),9,iWe)]),d("div",aWe,[s.isMounted?(v(),T("button",{key:0,type:"button",title:"Select",onClick:[e[4]||(e[4]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),e[5]||(e[5]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},dWe)):U("",!0),s.isMounted?(v(),T("button",{key:1,type:"button",title:"Talk",onClick:[e[6]||(e[6]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),e[7]||(e[7]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},pWe)):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,q$e)}const gWe=qe(G$e,[["render",mWe]]),fWe="/assets/gpu-df72bf63.svg";const hWe="/";xe.defaults.baseURL="/";const EWe={components:{AddModelDialog:aHe,MessageBox:mT,YesNoDialog:T7e,ModelEntry:pVe,PersonalityViewer:NVe,Toast:ds,PersonalityEntry:gT,BindingEntry:Kze,UniversalForm:Tp,ChoiceDialog:Cp,Card:ao,RadioOptions:U$e,ExtensionEntry:gWe},data(){return{imgModel:zn,SVGGPU:fWe,models_zoo:[],sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",extension_category:"bound_extensions",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],extensionsFiltererd:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,ezc_collapsed:!0,mep_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:hWe,searchPersonality:"",searchExtension:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchExtensionInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){Ne.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{async modelsZooToggleCollapse(){this.mzc_collapsed=!this.mzc_collapsed},async selectSortOption(t){this.$store.state.sort_type=t,this.modelsFiltered=this.models_zoo,console.log(`Selected sorting:${t}`)},handleRadioSelected(t){this.isLoading=!0,this.selectSortOption(t).then(()=>{this.isLoading=!1})},filter_installed(t){return console.log("filtering"),t.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(this.audioVoices=speechSynthesis.getVoices(),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let t=await this.api_get_req("check_update");this.has_updates=t.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(t){this.selected_variant=t},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(t){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let n="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:n},console.log("installing...",this.addModel);const r=s=>{if(console.log("received something"),s.status&&s.progress<=100){if(this.addModel=s,console.log("Progress",s),e.progress=s.progress,e.speed=s.speed,e.total_size=s.total_size,e.downloaded_size=s.downloaded_size,e.start_time=s.start_time,e.installing=!0,e.progress==100){const o=this.models_zoo.findIndex(i=>i.name===e.model.name);this.models_zoo[o].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),Ne.off("install_progress",r),console.log("Installed successfully"),this.$refs.toast.showToast(`Model: +`);var I=0,Q=!1;this.parse=function(re,X,pe){if(typeof re!="string")throw new Error("Input must be a string");var ee=re.length,be=w.length,Te=L.length,fe=M.length,Ee=k(Z),z=[],te=[],Y=[],ue=I=0;if(!re)return Ge();if(y.header&&!X){var ye=re.split(L)[0].split(w),O=[],N={},F=!1;for(var $ in ye){var W=ye[$];k(y.transformHeader)&&(W=y.transformHeader(W,$));var ie=W,me=N[W]||0;for(0=B)return Ge(!0)}else for(oe=I,I++;;){if((oe=re.indexOf(R,oe+1))===-1)return pe||te.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:I}),Oe();if(oe===ee-1)return Oe(re.substring(I,oe).replace(ne,R));if(R!==H||re[oe+1]!==H){if(R===H||oe===0||re[oe-1]!==H){q!==-1&&q=B)return Ge(!0);break}te.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:I}),oe++}}else oe++}return Oe();function le(Ze){z.push(Ze),ue=I}function Se(Ze){var et=0;if(Ze!==-1){var Xe=re.substring(oe+1,Ze);Xe&&Xe.trim()===""&&(et=Xe.length)}return et}function Oe(Ze){return pe||(Ze===void 0&&(Ze=re.substring(I)),Y.push(Ze),I=ee,le(Y),Ee&&rt()),Ge()}function Le(Ze){I=Ze,le(Y),Y=[],V=re.indexOf(L,I)}function Ge(Ze){return{data:z,errors:te,meta:{delimiter:w,linebreak:L,aborted:Q,truncated:!!Ze,cursor:ue+(X||0)}}}function rt(){Z(Ge()),z=[],te=[]}},this.abort=function(){Q=!0},this.getCharIndex=function(){return I}}function m(y){var R=y.data,w=i[R.workerId],L=!1;if(R.error)w.userError(R.error,R.file);else if(R.results&&R.results.data){var M={abort:function(){L=!0,S(R.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(k(w.userStep)){for(var Z=0;Zt.text()).then(t=>{const{data:e}=qqe.parse(t,{header:!0});console.log("Recovered data"),console.log(e),this.faqs=e}).catch(t=>{console.error("Error loading FAQs:",t)})},parseMultiline(t){return t.replace(/\n/g,"
")}}},Tn=t=>(hr("data-v-f0cce578"),t=t(),Er(),t),Vqe={class:"container flex-row mx-auto p-4 bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-1 md:grid-cols-2 gap-4"},zqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"About Lord of large Language Models",-1)),Hqe={class:"mb-4"},$qe=Tn(()=>d("p",null,[Re("Discord link: "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")],-1)),Wqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Frequently Asked Questions",-1)),Kqe={class:"list-disc pl-4"},Qqe={class:"text-xl font-bold mb-1"},jqe=["innerHTML"],Zqe=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Contact Us",-1)),Xqe=Tn(()=>d("p",{class:"mb-4"},"If you have any further questions or need assistance, feel free to reach out to me.",-1)),Jqe=Tn(()=>d("p",null,[Re("Discord link: "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:"https://discord.gg/C73K7hjy"},"https://discord.gg/C73K7hjy")],-1)),e7e=Tn(()=>d("h2",{class:"text-2xl font-bold mb-2"},"Credits",-1)),t7e=Tn(()=>d("p",{class:"mb-4"},[Re("This project is developed by "),d("span",{class:"font-bold"},"ParisNeo"),Re(" With help from the community.")],-1)),n7e=Tn(()=>d("p",{class:"mb-4"},[d("span",{class:"font-bold"},[d("a",{href:"https://github.com/ParisNeo/lollms-webui/graphs/contributors"},"Check out the full list of developers here and show them some love.")])],-1)),r7e=["href"];function s7e(t,e,n,r,s,o){const i=Pe("Card");return v(),T("div",Vqe,[he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[zqe,d("p",Hqe," Lollms version "+j(o.version),1),$qe]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Wqe,d("ul",Kqe,[(v(!0),T(Ne,null,Be(s.faqs,(a,l)=>(v(),T("li",{key:l},[d("h3",Qqe,j(a.question),1),d("p",{class:"mb-4",innerHTML:o.parseMultiline(a.answer)},null,8,jqe)]))),128))])]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Zqe,Xqe,Jqe]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[e7e,t7e,n7e,d("p",null,[Re("Check out the project on "),d("a",{class:"text-blue-500 hover:text-blue-400 duration-150",href:s.githubLink,target:"_blank",rel:"noopener noreferrer"},"GitHub",8,r7e),Re(".")])]),_:1})])}const o7e=qe(Yqe,[["render",s7e],["__scopeId","data-v-f0cce578"]]);function Xt(t,e=!0,n=1){const r=e?1e3:1024;if(Math.abs(t)=r&&oo.hide&&o.hide(...i)),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 ")])])])):U("",!0)}const mT=qe(i7e,[["render",u7e]]),_7e={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},askQuestion(t,e,n){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=n||this.DenyButtonText,new Promise(r=>{this.message=t,this.show=!0,this.resolve=r})}}},p7e={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},m7e={class:"relative w-full max-w-md max-h-full"},g7e={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},f7e=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),h7e=d("span",{class:"sr-only"},"Close modal",-1),E7e=[f7e,h7e],b7e={class:"p-4 text-center"},S7e=d("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"},[d("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),y7e={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function v7e(t,e,n,r,s,o){return s.show?(v(),T("div",p7e,[d("div",m7e,[d("div",g7e,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>o.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"},E7e),d("div",b7e,[S7e,d("h3",y7e,j(s.message),1),d("button",{onClick:e[1]||(e[1]=i=>o.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"},j(s.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=i=>o.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"},j(s.DenyButtonText),1)])])])])):U("",!0)}const T7e=qe(_7e,[["render",v7e]]),zn="/assets/default_model-eeb65acd.png";const C7e={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(t){const e=this.$refs.menu,n=this.$refs.menuButton;e&&!e.contains(t.target)&&!n.contains(t.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),ve(()=>{Ce.replace()})},executeCommand(t){this.isMenuOpen=!1,console.log("Selected"),console.log(t.value),typeof t.value=="function"&&(console.log("Command detected"),t.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(t))},positionMenu(){var t;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),n=window.innerHeight;t=e.bottom>n/2}else this.force_position==1?t=!0:t=!1;this.menuPosition.top=t?"auto":"calc(100% + 10px)",this.menuPosition.bottom=t?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),ve(()=>{Ce.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},R7e={class:"menu-container"},x7e=["title"],O7e=["src"],A7e=["data-feather"],N7e={key:2,class:"w-5 h-5"},w7e={key:3,"data-feather":"menu"},I7e={class:"flex-grow menu-ul"},D7e=["onClick"],k7e={key:0,"data-feather":"check"},M7e=["src","alt"],L7e=["data-feather"],P7e={key:3,class:"menu-icon"};function F7e(t,e,n,r,s,o){return v(),T("div",R7e,[d("button",{onClick:e[0]||(e[0]=_e((...i)=>o.toggleMenu&&o.toggleMenu(...i),["prevent"])),title:n.title,class:Ae([n.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[n.icon&&!n.icon.includes("#")&&!n.icon.includes("feather")?(v(),T("img",{key:0,src:n.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,O7e)):n.icon&&n.icon.includes("feather")?(v(),T("i",{key:1,"data-feather":n.icon.split(":")[1],class:"w-5 h-5"},null,8,A7e)):n.icon&&n.icon.includes("#")?(v(),T("p",N7e,j(n.icon.split("#")[1]),1)):(v(),T("i",w7e))],10,x7e),he(Hr,{name:"slide"},{default:ke(()=>[s.isMenuOpen?(v(),T("div",{key:0,class:"menu-list flex-grow",style:ht(s.menuPosition),ref:"menu"},[d("ul",I7e,[(v(!0),T(Ne,null,Be(n.commands,(i,a)=>(v(),T("li",{key:a,onClick:_e(l=>o.executeCommand(i),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[n.selected_entry==i.name?(v(),T("i",k7e)):i.icon&&!i.icon.includes("feather")&&!i.is_file?(v(),T("img",{key:1,src:i.icon,alt:i.name,class:"menu-icon"},null,8,M7e)):U("",!0),i.icon&&i.icon.includes("feather")&&!i.is_file?(v(),T("i",{key:2,"data-feather":i.icon.split(":")[1],class:"mr-2"},null,8,L7e)):(v(),T("span",P7e)),d("span",null,j(i.name),1)],8,D7e))),128))])],4)):U("",!0)]),_:1})])}const lo=qe(C7e,[["render",F7e]]),U7e={components:{InteractiveMenu:lo},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){ve(()=>{Ce.replace()})},methods:{formatFileSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(t){return Xt(t)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?zn:this.model.icon},defaultImg(t){t.target.src=zn},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(t=!1){this.onSelected(this,t),ve(()=>{Ce.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){installing=!1,this.onCancelInstall(this)},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary":"border-0 border-primary bg-primary":"border-transparent"},commandsList(){let t=[{name:this.model.isInstalled?"Uninstall":"Install",icon:"feather:settings",is_file:!1,value:this.toggleInstall},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.selected&&t.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),t},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const t=this.model.variants[0].size;return this.formatFileSize(t)}return null}},speed_computed(){return Xt(this.speed)},total_size_computed(){return Xt(this.total_size)},downloaded_size_computed(){return Xt(this.downloaded_size)}},watch:{linkNotValid(){ve(()=>{Ce.replace()})}}},B7e=["title"],G7e={key:0,class:"flex flex-row"},q7e={class:"max-w-[300px] overflow-x-auto"},Y7e={class:"flex gap-3 items-center grow"},V7e=["href"],z7e=["src"],H7e={class:"flex-1 overflow-hidden"},$7e={class:"font-bold font-large text-lg truncate"},W7e={key:1,class:"flex items-center flex-row gap-2 my-1"},K7e={class:"flex grow items-center"},Q7e=d("i",{"data-feather":"box",class:"w-5"},null,-1),j7e=d("span",{class:"sr-only"},"Custom model / local model",-1),Z7e=[Q7e,j7e],X7e={key:0},J7e=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("path",{d:"M9 16.17l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"})],-1),eYe=[J7e],tYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},null,-1),nYe=[tYe],rYe=d("span",{class:"sr-only"},"Remove",-1),sYe={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},oYe={class:"relative flex flex-col items-center justify-center flex-grow h-full"},iYe=d("div",{role:"status",class:"justify-center"},[d("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1),aYe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},lYe={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},cYe={class:"flex justify-between mb-1"},dYe=d("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1),uYe={class:"text-sm font-medium text-blue-700 dark:text-white"},_Ye={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},pYe={class:"flex justify-between mb-1"},mYe={class:"text-base font-medium text-blue-700 dark:text-white"},gYe={class:"text-sm font-medium text-blue-700 dark:text-white"},fYe={class:"flex flex-grow"},hYe={class:"flex flex-row flex-grow gap-3"},EYe={class:"p-2 text-center grow"},bYe={key:3},SYe={class:"flex flex-row items-center gap-3"},yYe=["src"],vYe={class:"font-bold font-large text-lg truncate"},TYe=d("div",{class:"grow"},null,-1),CYe={key:0},RYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("path",{d:"M9 16.17l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41z"})],-1),xYe=[RYe],OYe=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},null,-1),AYe=[OYe],NYe={class:"flex items-center flex-row-reverse gap-2 my-1"},wYe={class:"flex flex-row items-center"},IYe={key:0,class:"text-base text-red-600 flex items-center mt-1"},DYe=d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),kYe=["title"],MYe={class:""},LYe={class:"flex flex-row items-center"},PYe=d("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1),FYe=d("b",null,"Card: ",-1),UYe=["href","title"],BYe=d("div",{class:"grow"},null,-1),GYe=d("i",{"data-feather":"clipboard",class:"w-5"},null,-1),qYe=[GYe],YYe={class:"flex items-center"},VYe=d("i",{"data-feather":"file",class:"w-5 m-1"},null,-1),zYe=d("b",null,"File size: ",-1),HYe={class:"flex items-center"},$Ye=d("i",{"data-feather":"key",class:"w-5 m-1"},null,-1),WYe=d("b",null,"License: ",-1),KYe={key:0,class:"flex items-center"},QYe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),jYe=d("b",null,"quantizer: ",-1),ZYe=["href"],XYe={class:"flex items-center"},JYe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),eVe=d("b",null,"Model creator: ",-1),tVe=["href"],nVe={class:"flex items-center"},rVe=d("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1),sVe=d("b",null,"Release date: ",-1),oVe={class:"flex items-center"},iVe=d("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1),aVe=d("b",null,"Category: ",-1),lVe=["href"],cVe={class:"flex items-center"},dVe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),uVe=d("b",null,"Hugging face rank: ",-1);function _Ve(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",o.computed_classes]),title:n.model.name},[n.model.isCustomModel?(v(),T("div",G7e,[d("div",q7e,[d("div",Y7e,[d("a",{href:n.model.model_creator_link,target:"_blank"},[d("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,z7e)],8,V7e),d("div",H7e,[d("h3",$7e,j(n.model.name),1)])])])])):U("",!0),n.model.isCustomModel?(v(),T("div",W7e,[d("div",K7e,[d("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=_e(()=>{},["stop"]))},Z7e),Re(" Custom model ")]),n.model.isInstalled?(v(),T("div",X7e,[n.model.selected?(v(),T("div",{key:0,onClick:e[2]||(e[2]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},eYe)):(v(),T("div",{key:1,onClick:e[3]||(e[3]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},nYe))])):U("",!0),d("div",null,[n.model.isInstalled?(v(),T("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[4]||(e[4]=_e((...a)=>o.toggleInstall&&o.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[Re(" Uninstall "),rYe])):U("",!0)])])):U("",!0),s.installing?(v(),T("div",sYe,[d("div",oYe,[iYe,d("div",aYe,[d("div",lYe,[d("div",cYe,[dYe,d("span",uYe,j(Math.floor(s.progress))+"%",1)]),d("div",_Ye,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht({width:s.progress+"%"})},null,4)]),d("div",pYe,[d("span",mYe,"Download speed: "+j(o.speed_computed)+"/s",1),d("span",gYe,j(o.downloaded_size_computed)+"/"+j(o.total_size_computed),1)])])]),d("div",fYe,[d("div",hYe,[d("div",EYe,[d("button",{onClick:e[5]||(e[5]=_e((...a)=>o.toggleCancelInstall&&o.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):U("",!0),n.model.isCustomModel?U("",!0):(v(),T("div",bYe,[d("div",SYe,[d("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[6]||(e[6]=a=>o.defaultImg(a)),class:Ae(["w-10 h-10 rounded-lg object-fill",s.linkNotValid?"grayscale":""])},null,42,yYe),d("h3",vYe,j(n.model.name),1),TYe,n.model.isInstalled?(v(),T("div",CYe,[n.model.selected?(v(),T("div",{key:0,onClick:e[7]||(e[7]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},xYe)):(v(),T("div",{key:1,onClick:e[8]||(e[8]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),class:"cursor-pointer",style:{"background-color":"white"}},AYe))])):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),d("div",NYe,[d("div",wYe,[s.linkNotValid?(v(),T("div",IYe,[DYe,Re(" Link is not valid ")])):U("",!0)])]),d("div",{class:"",title:n.model.isInstalled?n.model.name:"Not installed"},[d("div",MYe,[d("div",LYe,[PYe,FYe,d("a",{href:"https://huggingface.co/"+n.model.quantizer+"/"+n.model.name,target:"_blank",onClick:e[9]||(e[9]=_e(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:s.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/ folder then refresh"}," View full model card ",8,UYe),BYe,d("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[10]||(e[10]=_e(a=>o.toggleCopyLink(),["stop"]))},qYe)]),d("div",YYe,[d("div",{class:Ae(["flex flex-shrink-0 items-center",s.linkNotValid?"text-red-600":""])},[VYe,zYe,Re(" "+j(o.fileSize),1)],2)]),d("div",HYe,[$Ye,WYe,Re(" "+j(n.model.license),1)]),n.model.quantizer!="None"?(v(),T("div",KYe,[QYe,jYe,d("a",{href:"https://huggingface.co/"+n.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[11]||(e[11]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.quantizer),9,ZYe)])):U("",!0),d("div",XYe,[JYe,eVe,d("a",{href:n.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[12]||(e[12]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.model_creator),9,tVe)]),d("div",nVe,[rVe,sVe,Re(" "+j(n.model.last_commit_time),1)]),d("div",oVe,[iVe,aVe,d("a",{href:"https://huggingface.co/"+n.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[13]||(e[13]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.category),9,lVe)]),d("div",cVe,[dVe,uVe,d("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",rel:"noopener noreferrer",onClick:e[14]||(e[14]=_e(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},j(n.model.rank),1)])])],8,kYe)]))],10,B7e)}const pVe=qe(U7e,[["render",_Ve]]),mVe={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},gVe={class:"p-4"},fVe={class:"flex items-center mb-4"},hVe=["src"],EVe={class:"text-lg font-semibold"},bVe=d("strong",null,"Author:",-1),SVe=d("strong",null,"Description:",-1),yVe=d("strong",null,"Category:",-1),vVe={key:0},TVe=d("strong",null,"Disclaimer:",-1),CVe=d("strong",null,"Conditioning Text:",-1),RVe=d("strong",null,"AI Prefix:",-1),xVe=d("strong",null,"User Prefix:",-1),OVe=d("strong",null,"Antiprompts:",-1);function AVe(t,e,n,r,s,o){return v(),T("div",gVe,[d("div",fVe,[d("img",{src:s.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,hVe),d("h2",EVe,j(s.personalityName),1)]),d("p",null,[bVe,Re(" "+j(s.personalityAuthor),1)]),d("p",null,[SVe,Re(" "+j(s.personalityDescription),1)]),d("p",null,[yVe,Re(" "+j(s.personalityCategory),1)]),s.disclaimer?(v(),T("p",vVe,[TVe,Re(" "+j(s.disclaimer),1)])):U("",!0),d("p",null,[CVe,Re(" "+j(s.conditioningText),1)]),d("p",null,[RVe,Re(" "+j(s.aiPrefix),1)]),d("p",null,[xVe,Re(" "+j(s.userPrefix),1)]),d("div",null,[OVe,d("ul",null,[(v(!0),T(Ne,null,Be(s.antipromptsList,i=>(v(),T("li",{key:i.id},j(i.text),1))),128))])]),d("button",{onClick:e[0]||(e[0]=i=>s.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),s.editMode?(v(),T("button",{key:1,onClick:e[1]||(e[1]=(...i)=>o.commitChanges&&o.commitChanges(...i)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):U("",!0)])}const NVe=qe(mVe,[["render",AVe]]),ms="/assets/logo-9d653710.svg",wVe="/",IVe={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function},components:{InteractiveMenu:lo},data(){return{isMounted:!1,name:this.personality.name}},computed:{commandsList(){let t=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,ve(()=>{Ce.replace()})},methods:{getImgUrl(){return wVe+this.personality.avatar},defaultImg(t){t.target.src=ms},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){ve(()=>{Ce.replace()})}}},DVe=["title"],kVe={class:"flex flex-row items-center flex-shrink-0 gap-3"},MVe=["src"],LVe=d("i",{"data-feather":"clipboard",class:"w-5"},null,-1),PVe=[LVe],FVe={class:""},UVe={class:""},BVe={class:"flex items-center"},GVe=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),qVe=d("b",null,"Author: ",-1),YVe={class:"flex items-center"},VVe=d("i",{"data-feather":"git-commit",class:"w-5 m-1"},null,-1),zVe=d("b",null,"Version: ",-1),HVe={key:0,class:"flex items-center"},$Ve=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),WVe=d("b",null,"Languages: ",-1),KVe=["selected"],QVe={key:1,class:"flex items-center"},jVe=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),ZVe=d("b",null,"Language: ",-1),XVe={class:"flex items-center"},JVe=d("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),eze=d("b",null,"Category: ",-1),tze=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),nze=["title"],rze={class:"rounded bg-blue-300"},sze=d("i",{"data-feather":"check"},null,-1),oze=d("span",{class:"sr-only"},"Select",-1),ize=[sze,oze],aze=d("i",{"data-feather":"send",class:"w-5"},null,-1),lze=d("span",{class:"sr-only"},"Talk",-1),cze=[aze,lze];function dze(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",o.selected_computed?"border-2 border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:n.personality.installed?"":"Not installed"},[d("div",{class:Ae(n.personality.installed?"":"border-red-500")},[d("div",kVe,[d("img",{onClick:e[0]||(e[0]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),ref:"imgElement",src:o.getImgUrl(),onError:e[1]||(e[1]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,MVe),d("h3",{onClick:e[2]||(e[2]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},j(n.personality.name),1),d("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[3]||(e[3]=_e(a=>o.toggleCopyLink(),["stop"]))},PVe)]),d("div",FVe,[d("div",UVe,[d("div",BVe,[GVe,qVe,Re(" "+j(n.personality.author),1)]),d("div",YVe,[VVe,zVe,Re(" "+j(n.personality.version),1)]),n.personality.languages&&n.select_language?(v(),T("div",HVe,[$Ve,WVe,ce(d("select",{id:"languages","onUpdate:modelValue":e[4]||(e[4]=a=>n.personality.language=a),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(v(!0),T(Ne,null,Be(n.personality.languages,(a,l)=>(v(),T("option",{key:l,selected:a==n.personality.languages[0]},j(a),9,KVe))),128))],512),[[Kt,n.personality.language]])])):U("",!0),n.personality.language?(v(),T("div",QVe,[jVe,ZVe,Re(" "+j(n.personality.language),1)])):U("",!0),d("div",XVe,[JVe,eze,Re(" "+j(n.personality.category),1)])]),tze,d("p",{class:"mx-1 opacity-80 h-20 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",title:n.personality.description},j(n.personality.description),9,nze)]),d("div",rze,[s.isMounted?(v(),T("button",{key:0,type:"button",title:"Select",onClick:[e[5]||(e[5]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),e[6]||(e[6]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},ize)):U("",!0),s.isMounted?(v(),T("button",{key:1,type:"button",title:"Talk",onClick:[e[7]||(e[7]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),e[8]||(e[8]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},cze)):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,DVe)}const gT=qe(IVe,[["render",dze]]);const uze={props:{code:String},data(){return{evaluatedCode:""}},watch:{code:{handler(t){this.evaluateScriptTags(t)},immediate:!0}},methods:{evaluateScriptTags(t){const e=document.createElement("div");e.innerHTML=t,e.querySelectorAll("script").forEach(r=>{const s=document.createElement("script");s.textContent=r.textContent,document.body.appendChild(s),document.body.removeChild(s)}),this.evaluatedCode=e.innerHTML}}},_ze=["innerHTML"];function pze(t,e,n,r,s,o){return v(),T("div",{innerHTML:s.evaluatedCode},null,8,_ze)}const fT=qe(uze,[["render",pze]]),mze="/",gze={components:{DynamicUIRenderer:fT},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){ve(()=>{Ce.replace()})},methods:{getImgUrl(){return mze+this.binding.icon},defaultImg(t){t.target.src=ms},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){ve(()=>{Ce.replace()})}}},fze=["title"],hze={class:"flex flex-row items-center gap-3"},Eze=["src"],bze={class:"font-bold font-large text-lg truncate"},Sze=d("div",{class:"grow"},null,-1),yze={class:"flex-none gap-1"},vze=d("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),Tze=d("span",{class:"sr-only"},"Help",-1),Cze=[vze,Tze],Rze={class:"flex items-center flex-row-reverse gap-2 my-1"},xze=d("span",{class:"sr-only"},"Click to install",-1),Oze=d("span",{class:"sr-only"},"Reinstall",-1),Aze=d("span",{class:"sr-only"},"UnInstall",-1),Nze=d("span",{class:"sr-only"},"Settings",-1),wze={class:""},Ize={class:""},Dze={class:"flex items-center"},kze=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),Mze=d("b",null,"Author: ",-1),Lze={class:"flex items-center"},Pze=d("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1),Fze=d("b",null,"Folder: ",-1),Uze={class:"flex items-center"},Bze=d("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1),Gze=d("b",null,"Version: ",-1),qze={class:"flex items-center"},Yze=d("i",{"data-feather":"github",class:"w-5 m-1"},null,-1),Vze=d("b",null,"Link: ",-1),zze=["href"],Hze=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),$ze=["title"];function Wze(t,e,n,r,s,o){const i=Pe("DynamicUIRenderer");return v(),T("div",{class:Ae(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",n.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[7]||(e[7]=_e((...a)=>o.toggleSelected&&o.toggleSelected(...a),["stop"])),title:n.binding.installed?n.binding.name:"Not installed"},[d("div",null,[d("div",hze,[d("img",{ref:"imgElement",src:o.getImgUrl(),onError:e[0]||(e[0]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Eze),d("h3",bze,j(n.binding.name),1),Sze,d("div",yze,[n.selected?(v(),T("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>o.toggleReloadBinding&&o.toggleReloadBinding(...a)),e[2]||(e[2]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},Cze)):U("",!0)])]),d("div",Rze,[n.binding.installed?U("",!0):(v(),T("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=_e((...a)=>o.toggleInstall&&o.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Re(" Install "),xze])),n.binding.installed?(v(),T("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=_e((...a)=>o.toggleReinstall&&o.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},[Re(" Reinstall "),Oze])):U("",!0),n.binding.installed?(v(),T("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=_e((...a)=>o.toggleUnInstall&&o.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},[Re(" Uninstall "),Aze])):U("",!0),n.selected?(v(),T("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=_e((...a)=>o.toggleSettings&&o.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},[Re(" Settings "),Nze])):U("",!0)]),n.binding.ui?(v(),nt(i,{key:0,class:"w-full h-full",code:n.binding.ui},null,8,["code"])):U("",!0),d("div",wze,[d("div",Ize,[d("div",Dze,[kze,Mze,Re(" "+j(n.binding.author),1)]),d("div",Lze,[Pze,Fze,Re(" "+j(n.binding.folder),1)]),d("div",Uze,[Bze,Gze,Re(" "+j(n.binding.version),1)]),d("div",qze,[Yze,Vze,d("a",{href:n.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},j(n.binding.link),9,zze)])]),Hze,d("p",{class:"mx-1 opacity-80 line-clamp-3",title:n.binding.description},j(n.binding.description),9,$ze)])])],10,fze)}const Kze=qe(gze,[["render",Wze]]),Qze={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(t=>{this.resolve=t})},hide(t){this.show=!1,this.resolve&&(this.resolve(t),this.resolve=null)},showDialog(t){return new Promise(e=>{this.model_path=t,this.show=!0,this.resolve=e})}}},jze={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Zze={class:"relative w-full max-w-md max-h-full"},Xze={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Jze=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),eHe=d("span",{class:"sr-only"},"Close modal",-1),tHe=[Jze,eHe],nHe={class:"p-4 text-center"},rHe=d("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"},[d("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),sHe={class:"p-4 text-center mx-auto mb-4"},oHe=d("label",{class:"mr-2"},"Model path",-1);function iHe(t,e,n,r,s,o){return s.show?(v(),T("div",jze,[d("div",Zze,[d("div",Xze,[d("button",{type:"button",onClick:e[0]||(e[0]=i=>o.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"},tHe),d("div",nHe,[rHe,d("div",sHe,[oHe,ce(d("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>s.model_path=i),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[De,s.model_path]])]),d("button",{onClick:e[2]||(e[2]=i=>o.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),d("button",{onClick:e[3]||(e[3]=i=>o.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):U("",!0)}const aHe=qe(Qze,[["render",iHe]]),lHe={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){ve(()=>{Ce.replace()})},methods:{hide(t){this.show=!1,this.resolve&&t&&(this.resolve(this.controls_array),this.resolve=null)},showForm(t,e,n,r){this.ConfirmButtonText=n||this.ConfirmButtonText,this.DenyButtonText=r||this.DenyButtonText;for(let s=0;s{this.controls_array=t,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show foam",this.controls_array)})}},watch:{show(){ve(()=>{Ce.replace()})}}},cHe={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4"},dHe={class:"relative w-full max-w-md"},uHe={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel duration-150 shadow-lg max-h-screen"},_He={class:"flex flex-row flex-grow items-center m-2 p-1"},pHe={class:"grow flex items-center"},mHe=d("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1),gHe={class:"text-lg font-semibold select-none mr-2"},fHe={class:"items-end"},hHe=d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[d("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),EHe=d("span",{class:"sr-only"},"Close form modal",-1),bHe=[hHe,EHe],SHe={class:"flex flex-col relative no-scrollbar overflow-y-scroll p-2"},yHe={class:"px-2"},vHe={key:0},THe={key:0},CHe={class:"text-base font-semibold"},RHe={key:0,class:"relative inline-flex"},xHe=["onUpdate:modelValue"],OHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),AHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},NHe=["onUpdate:modelValue"],wHe={key:1},IHe={class:"text-base font-semibold"},DHe={key:0,class:"relative inline-flex"},kHe=["onUpdate:modelValue"],MHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),LHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},PHe=["onUpdate:modelValue"],FHe=["value","selected"],UHe={key:1},BHe={class:"text-base font-semibold"},GHe={key:0,class:"relative inline-flex"},qHe=["onUpdate:modelValue"],YHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),VHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zHe=["onUpdate:modelValue"],HHe=["onUpdate:modelValue","min","max"],$He={key:2},WHe={class:"text-base font-semibold"},KHe={key:0,class:"relative inline-flex"},QHe=["onUpdate:modelValue"],jHe=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),ZHe={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},XHe=["onUpdate:modelValue"],JHe=["onUpdate:modelValue","min","max"],e$e={key:3},t$e={class:"mb-2 relative flex items-center gap-2"},n$e={for:"default-checkbox",class:"text-base font-semibold"},r$e=["onUpdate:modelValue"],s$e={key:0,class:"relative inline-flex"},o$e=["onUpdate:modelValue"],i$e=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),a$e={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},l$e={key:4},c$e={class:"text-base font-semibold"},d$e={key:0,class:"relative inline-flex"},u$e=["onUpdate:modelValue"],_$e=d("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[d("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1),p$e={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},m$e=["onUpdate:modelValue"],g$e=d("hr",{class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},null,-1),f$e={class:"flex flex-row flex-grow gap-3"},h$e={class:"p-2 text-center grow"};function E$e(t,e,n,r,s,o){return s.show?(v(),T("div",cHe,[d("div",dHe,[d("div",uHe,[d("div",_He,[d("div",pHe,[mHe,d("h3",gHe,j(s.title),1)]),d("div",fHe,[d("button",{type:"button",onClick:e[0]||(e[0]=_e(i=>o.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"},bHe)])]),d("div",SHe,[(v(!0),T(Ne,null,Be(s.controls_array,(i,a)=>(v(),T("div",yHe,[i.type=="str"?(v(),T("div",vHe,[i.options?U("",!0):(v(),T("div",THe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",CHe,j(i.name)+": ",1),i.help?(v(),T("label",RHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,xHe),[[tt,i.isHelp]]),OHe])):U("",!0)],2),i.isHelp?(v(),T("p",AHe,j(i.help),1)):U("",!0),ce(d("input",{type:"text","onUpdate:modelValue":l=>i.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,NHe),[[De,i.value]])])),i.options?(v(),T("div",wHe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",IHe,j(i.name)+": ",1),i.help?(v(),T("label",DHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,kHe),[[tt,i.isHelp]]),MHe])):U("",!0)],2),i.isHelp?(v(),T("p",LHe,j(i.help),1)):U("",!0),ce(d("select",{"onUpdate:modelValue":l=>i.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"},[(v(!0),T(Ne,null,Be(i.options,l=>(v(),T("option",{value:l,selected:i.value===l},j(l),9,FHe))),256))],8,PHe),[[Kt,i.value]])])):U("",!0)])):U("",!0),i.type=="int"?(v(),T("div",UHe,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",BHe,j(i.name)+": ",1),i.help?(v(),T("label",GHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,qHe),[[tt,i.isHelp]]),YHe])):U("",!0)],2),i.isHelp?(v(),T("p",VHe,j(i.help),1)):U("",!0),ce(d("input",{type:"number","onUpdate:modelValue":l=>i.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,zHe),[[De,i.value]]),i.min!=null&&i.max!=null?ce((v(),T("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.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,HHe)),[[De,i.value]]):U("",!0)])):U("",!0),i.type=="float"?(v(),T("div",$He,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",WHe,j(i.name)+": ",1),i.help?(v(),T("label",KHe,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,QHe),[[tt,i.isHelp]]),jHe])):U("",!0)],2),i.isHelp?(v(),T("p",ZHe,j(i.help),1)):U("",!0),ce(d("input",{type:"number","onUpdate:modelValue":l=>i.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,XHe),[[De,i.value]]),i.min!=null&&i.max!=null?ce((v(),T("input",{key:1,type:"range","onUpdate:modelValue":l=>i.value=l,min:i.min,max:i.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,JHe)),[[De,i.value]]):U("",!0)])):U("",!0),i.type=="bool"?(v(),T("div",e$e,[d("div",t$e,[d("label",n$e,j(i.name)+": ",1),ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.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,r$e),[[tt,i.value]]),i.help?(v(),T("label",s$e,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,o$e),[[tt,i.isHelp]]),i$e])):U("",!0)]),i.isHelp?(v(),T("p",a$e,j(i.help),1)):U("",!0)])):U("",!0),i.type=="list"?(v(),T("div",l$e,[d("label",{class:Ae(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",i.help?"cursor-pointer ":""])},[d("div",c$e,j(i.name)+": ",1),i.help?(v(),T("label",d$e,[ce(d("input",{type:"checkbox","onUpdate:modelValue":l=>i.isHelp=l,class:"sr-only peer"},null,8,u$e),[[tt,i.isHelp]]),_$e])):U("",!0)],2),i.isHelp?(v(),T("p",p$e,j(i.help),1)):U("",!0),ce(d("input",{type:"text","onUpdate:modelValue":l=>i.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,m$e),[[De,i.value]])])):U("",!0),g$e]))),256)),d("div",f$e,[d("div",h$e,[d("button",{onClick:e[1]||(e[1]=_e(i=>o.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"},j(s.ConfirmButtonText),1),d("button",{onClick:e[2]||(e[2]=_e(i=>o.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"},j(s.DenyButtonText),1)])])])])])])):U("",!0)}const Tp=qe(lHe,[["render",E$e]]);const b$e={props:{show:{type:Boolean,default:!1,required:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(t){return console.log("choice:",t),typeof t=="string"?t:t&&t.name?t.name:""},selectChoice(t){this.selectedChoice=t,this.$emit("choice-selected",t)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(t){return t<1024?t+" bytes":t<1024*1024?(t/1024).toFixed(2)+" KB":t<1024*1024*1024?(t/(1024*1024)).toFixed(2)+" MB":(t/(1024*1024*1024)).toFixed(2)+" GB"},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const t=this.newFilename.trim();t!==""&&(this.choices.push(t),this.newFilename="",this.selectChoice(t)),this.showInput=!1},removeChoice(t,e){this.choices.splice(e,1),t===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",t)}}},S$e={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"},y$e={class:"bg-white dark:bg-gray-800 rounded-lg p-6 w-96"},v$e={class:"text-xl font-semibold mb-4"},T$e={class:"h-48 overflow-y-auto"},C$e=["onClick"],R$e={class:"font-bold"},x$e=d("br",null,null,-1),O$e={key:0,class:"text-xs text-gray-500"},A$e=["onClick"],N$e={key:0,class:"mt-4"},w$e={class:"flex justify-end mt-4"},I$e=["disabled"];function D$e(t,e,n,r,s,o){return v(),nt(Hr,{name:"fade"},{default:ke(()=>[n.show?(v(),T("div",S$e,[d("div",y$e,[d("h2",v$e,j(n.title),1),d("div",T$e,[d("ul",null,[(v(!0),T(Ne,null,Be(n.choices,(i,a)=>(v(),T("li",{key:a,onClick:l=>o.selectChoice(i),class:Ae([{"selected-choice":i===s.selectedChoice},"py-2 px-4 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700"])},[d("span",R$e,j(o.displayName(i)),1),x$e,i.size?(v(),T("span",O$e,j(o.formatSize(i.size)),1)):U("",!0),n.can_remove?(v(),T("button",{key:1,onClick:l=>o.removeChoice(i,a),class:"ml-2 text-red-500 hover:text-red-600"}," X ",8,A$e)):U("",!0)],10,C$e))),128))])]),s.showInput?(v(),T("div",N$e,[ce(d("input",{"onUpdate:modelValue":e[0]||(e[0]=i=>s.newFilename=i),placeholder:"Enter a filename",class:"border border-gray-300 p-2 rounded-lg w-full"},null,512),[[De,s.newFilename]]),d("button",{onClick:e[1]||(e[1]=(...i)=>o.addNewFilename&&o.addNewFilename(...i)),class:"mt-2 py-2 px-4 bg-green-500 hover:bg-green-600 text-white rounded-lg transition duration-300"}," Add ")])):U("",!0),d("div",w$e,[d("button",{onClick:e[2]||(e[2]=(...i)=>o.closeDialog&&o.closeDialog(...i)),class:"py-2 px-4 mr-2 bg-red-500 hover:bg-red-600 text-white rounded-lg transition duration-300"}," Cancel "),d("button",{onClick:e[3]||(e[3]=(...i)=>o.validateChoice&&o.validateChoice(...i)),class:Ae([{"bg-gray-400 cursor-not-allowed":!s.selectedChoice,"bg-blue-500 hover:bg-blue-600":s.selectedChoice,"text-white":s.selectedChoice,"text-gray-500":!s.selectedChoice},"py-2 px-4 rounded-lg transition duration-300"]),disabled:!s.selectedChoice}," Validate ",10,I$e),d("button",{onClick:e[4]||(e[4]=(...i)=>o.toggleInput&&o.toggleInput(...i)),class:"py-2 px-4 ml-2 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300"}," Add New ")])])])):U("",!0)]),_:1})}const Cp=qe(b$e,[["render",D$e]]),k$e={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:0}},data(){return{selectedValue:this.defaultValue}},methods:{handleRadioChange(t){this.selectedValue!==null&&this.$emit("radio-selected",this.selectedValue,t)}}},M$e={class:"flex space-x-4"},L$e=["value","onChange"],P$e={class:"text-gray-700"};function F$e(t,e,n,r,s,o){return v(),T("div",M$e,[(v(!0),T(Ne,null,Be(n.radioOptions,(i,a)=>(v(),T("label",{key:i.value,class:"flex items-center space-x-2"},[ce(d("input",{type:"radio",value:i.value,"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedValue=l),onChange:l=>o.handleRadioChange(a),class:"text-blue-500 focus:ring-2 focus:ring-blue-200"},null,40,L$e),[[FR,s.selectedValue]]),d("span",P$e,j(i.label),1)]))),128))])}const U$e=qe(k$e,[["render",F$e]]),B$e="/",G$e={props:{extension:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onReinstall:Function,onSettings:Function},components:{InteractiveMenu:lo},data(){return{isMounted:!1,name:this.extension.name}},computed:{commandsList(){let t=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return this.isMounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.extension.has_scripts&&t.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),t},selected_computed(){return this.selected}},mounted(){this.isMounted=this.extension.isMounted,ve(()=>{Ce.replace()})},methods:{getImgUrl(){return B$e+this.extension.avatar},defaultImg(t){t.target.src=ms},toggleTalk(){this.onTalk(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this)},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){ve(()=>{Ce.replace()})}}},q$e=["title"],Y$e={class:"flex flex-row items-center flex-shrink-0 gap-3"},V$e=["src"],z$e={class:""},H$e={class:""},$$e={class:"flex items-center"},W$e=d("i",{"data-feather":"user",class:"w-5 m-1"},null,-1),K$e=d("b",null,"Author: ",-1),Q$e={key:0,class:"flex items-center"},j$e=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),Z$e=d("b",null,"Languages: ",-1),X$e=["selected"],J$e={key:1,class:"flex items-center"},eWe=d("i",{"data-feather":"globe",class:"w-5 m-1"},null,-1),tWe=d("b",null,"Language: ",-1),nWe={class:"flex items-center"},rWe=d("i",{"data-feather":"bookmark",class:"w-5 m-1"},null,-1),sWe=d("b",null,"Category: ",-1),oWe=d("div",{class:"flex items-center"},[d("i",{"data-feather":"info",class:"w-5 m-1"}),d("b",null,"Description: "),d("br")],-1),iWe=["title"],aWe={class:"rounded bg-blue-300"},lWe=d("i",{"data-feather":"check"},null,-1),cWe=d("span",{class:"sr-only"},"Select",-1),dWe=[lWe,cWe],uWe=d("i",{"data-feather":"send",class:"w-5"},null,-1),_We=d("span",{class:"sr-only"},"Talk",-1),pWe=[uWe,_We];function mWe(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return v(),T("div",{class:Ae(["min-w-96 items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",o.selected_computed?"border-2 border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),tabindex:"-1",title:n.extension.installed?"":"Not installed"},[d("div",{class:Ae(n.extension.installed?"":"border-red-500")},[d("div",Y$e,[d("img",{onClick:e[0]||(e[0]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),ref:"imgElement",src:o.getImgUrl(),onError:e[1]||(e[1]=a=>o.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-red-700 cursor-pointer"},null,40,V$e),d("h3",{onClick:e[2]||(e[2]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),class:"font-bold font-large text-lg line-clamp-3 cursor-pointer"},j(n.extension.name),1)]),d("div",z$e,[d("div",H$e,[d("div",$$e,[W$e,K$e,Re(" "+j(n.extension.author),1)]),n.extension.languages&&n.select_language?(v(),T("div",Q$e,[j$e,Z$e,ce(d("select",{id:"languages","onUpdate:modelValue":e[3]||(e[3]=a=>n.extension.language=a),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(v(!0),T(Ne,null,Be(n.extension.languages,(a,l)=>(v(),T("option",{key:l,selected:a==n.extension.languages[0]},j(a),9,X$e))),128))],512),[[Kt,n.extension.language]])])):U("",!0),n.extension.language?(v(),T("div",J$e,[eWe,tWe,Re(" "+j(n.extension.language),1)])):U("",!0),d("div",nWe,[rWe,sWe,Re(" "+j(n.extension.category),1)])]),oWe,d("p",{class:"mx-1 opacity-80 h-20 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",title:n.extension.description},j(n.extension.description),9,iWe)]),d("div",aWe,[s.isMounted?(v(),T("button",{key:0,type:"button",title:"Select",onClick:[e[4]||(e[4]=(...a)=>o.toggleSelected&&o.toggleSelected(...a)),e[5]||(e[5]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},dWe)):U("",!0),s.isMounted?(v(),T("button",{key:1,type:"button",title:"Talk",onClick:[e[6]||(e[6]=(...a)=>o.toggleTalk&&o.toggleTalk(...a)),e[7]||(e[7]=_e(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},pWe)):U("",!0),he(i,{commands:o.commandsList,force_position:2,title:"Menu"},null,8,["commands"])])],2)],10,q$e)}const gWe=qe(G$e,[["render",mWe]]),fWe="/assets/gpu-df72bf63.svg";const hWe="/";xe.defaults.baseURL="/";const EWe={components:{AddModelDialog:aHe,MessageBox:mT,YesNoDialog:T7e,ModelEntry:pVe,PersonalityViewer:NVe,Toast:ds,PersonalityEntry:gT,BindingEntry:Kze,UniversalForm:Tp,ChoiceDialog:Cp,Card:ao,RadioOptions:U$e,ExtensionEntry:gWe},data(){return{imgModel:zn,SVGGPU:fWe,models_zoo:[],sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",extension_category:"bound_extensions",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],extensionsFiltererd:[],collapsedArr:[],all_collapsed:!0,minconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,ezc_collapsed:!0,mep_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:hWe,searchPersonality:"",searchExtension:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchExtensionInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){Ie.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{async modelsZooToggleCollapse(){this.mzc_collapsed=!this.mzc_collapsed},async selectSortOption(t){this.$store.state.sort_type=t,this.modelsFiltered=this.models_zoo,console.log(`Selected sorting:${t}`)},handleRadioSelected(t){this.isLoading=!0,this.selectSortOption(t).then(()=>{this.isLoading=!1})},filter_installed(t){return console.log("filtering"),t.filter(e=>e.isInstalled===!0)},getVoices(){"speechSynthesis"in window&&(this.audioVoices=speechSynthesis.getVoices(),!this.audio_out_voice&&this.audioVoices.length>0&&(this.audio_out_voice=this.audioVoices[0].name),speechSynthesis.onvoiceschanged=()=>{})},async updateHasUpdates(){let t=await this.api_get_req("check_update");this.has_updates=t.update_availability,console.log("has_updates",this.has_updates)},onVariantChoiceSelected(t){this.selected_variant=t},oncloseVariantChoiceDialog(){this.variantSelectionDialogVisible=!1},onvalidateVariantChoice(t){this.variantSelectionDialogVisible=!1,this.currenModelToInstall.installing=!0;let e=this.currenModelToInstall;if(e.linkNotValid){e.installing=!1,this.$refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let n="https://huggingface.co/"+e.model.quantizer+"/"+e.model.name+"/resolve/main/"+this.selected_variant.name;this.showProgress=!0,this.progress=0,this.addModel={model_name:this.selected_variant.name,binding_folder:this.configFile.binding_name,model_url:n},console.log("installing...",this.addModel);const r=s=>{if(console.log("received something"),s.status&&s.progress<=100){if(this.addModel=s,console.log("Progress",s),e.progress=s.progress,e.speed=s.speed,e.total_size=s.total_size,e.downloaded_size=s.downloaded_size,e.start_time=s.start_time,e.installing=!0,e.progress==100){const o=this.models_zoo.findIndex(i=>i.name===e.model.name);this.models_zoo[o].isInstalled=!0,this.showProgress=!1,e.installing=!1,console.log("Received succeeded"),Ie.off("install_progress",r),console.log("Installed successfully"),this.$refs.toast.showToast(`Model: `+e.model.name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else Ne.off("install_progress",r),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",s.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}}else Ie.off("install_progress",r),console.log("Install failed"),e.installing=!1,this.showProgress=!1,console.error("Installation failed:",s.error),this.$refs.toast.showToast(`Model: `+e.model.name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage");console.log("Here")};Ne.on("install_progress",r),Ne.emit("install_model",{path:n,type:e.model.type}),console.log("Started installation, please wait")},uploadAvatar(t){const e=t.target.files[0],n=new FormData;n.append("avatar",e),console.log("Uploading avatar"),xe.post("/upload_avatar",n).then(r=>{console.log("Avatar uploaded successfully"),this.$refs.toast.showToast("Avatar uploaded successfully!",4,!0);const s=r.data.fileName;console.log("response",r),this.user_avatar=s,this.update_setting("user_avatar",s,()=>{}).then(()=>{})}).catch(r=>{console.error("Error uploading avatar:",r)})},async update_software(){console.log("Posting");const t=await this.api_get_req("update_software");console.log("Posting done"),t.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Failure!",4,!1)},on_loading_text(t){console.log("Loading text",t),this.loading_text=t},async load_everything(){for(this.isLoading=!0,ve(()=>{Ce.replace()});this.isReady===!1;)await new Promise(t=>setTimeout(t,100));console.log("Ready"),this.configFile.model_name&&(this.isModelSelected=!0),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities?category="+this.configFile.personality_category),console.log("category");try{this.extCatgArr=await this.api_get_req("list_extensions_categories"),console.log(this.extCatgArr)}catch{console.log("Couldn't list catergories"),this.extCatgArr=[]}try{this.extArr=await this.api_get_req("list_extensions?category="+this.extension_category)}catch{console.log("Couldn't list extensions"),this.extCatgArr=[]}console.log("models_zoo:"),console.log(this.models_zoo),this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.configFile.personality_category),console.log("Extensions zoo"),console.log(this.$store.state.extensionsZoo),this.modelsFiltered=this.models_zoo,this.extension_category=this.configFile.extension_category,this.extensionsFiltererd=this.$store.state.extensionsZoo.filter(t=>t.category===this.configFile.extension_category),console.log("Extensions filtered"),console.log(this.extensionsFiltererd),this.isLoading=!1,this.isMounted=!0,this.extension_category=this.configFile.extension_category},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(t){if(console.log("received something"),t.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(console.log("model entry",n),n.installing=!0,n.progress=t.progress,console.log(`Progress = ${t.progress}`),t.progress>=100&&(n.installing=!1,n.isInstalled=!0))}}else if(t.status==="succeeded"){if(console.log("Received succeeded"),console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(n.installing=!1,n.isInstalled=!0)}this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage");console.log("Here")};Ie.on("install_progress",r),Ie.emit("install_model",{path:n,type:e.model.type}),console.log("Started installation, please wait")},uploadAvatar(t){const e=t.target.files[0],n=new FormData;n.append("avatar",e),console.log("Uploading avatar"),xe.post("/upload_avatar",n).then(r=>{console.log("Avatar uploaded successfully"),this.$refs.toast.showToast("Avatar uploaded successfully!",4,!0);const s=r.data.fileName;console.log("response",r),this.user_avatar=s,this.update_setting("user_avatar",s,()=>{}).then(()=>{})}).catch(r=>{console.error("Error uploading avatar:",r)})},async update_software(){console.log("Posting");const t=await this.api_get_req("update_software");console.log("Posting done"),t.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Failure!",4,!1)},on_loading_text(t){console.log("Loading text",t),this.loading_text=t},async load_everything(){for(this.isLoading=!0,ve(()=>{Ce.replace()});this.isReady===!1;)await new Promise(t=>setTimeout(t,100));console.log("Ready"),this.configFile.model_name&&(this.isModelSelected=!0),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities?category="+this.configFile.personality_category),console.log("category");try{this.extCatgArr=await this.api_get_req("list_extensions_categories"),console.log(this.extCatgArr)}catch{console.log("Couldn't list catergories"),this.extCatgArr=[]}try{this.extArr=await this.api_get_req("list_extensions?category="+this.extension_category)}catch{console.log("Couldn't list extensions"),this.extCatgArr=[]}console.log("models_zoo:"),console.log(this.models_zoo),this.personality_category=this.configFile.personality_category,this.personalitiesFiltered=this.personalities.filter(t=>t.category===this.configFile.personality_category),console.log("Extensions zoo"),console.log(this.$store.state.extensionsZoo),this.modelsFiltered=this.models_zoo,this.extension_category=this.configFile.extension_category,this.extensionsFiltererd=this.$store.state.extensionsZoo.filter(t=>t.category===this.configFile.extension_category),console.log("Extensions filtered"),console.log(this.extensionsFiltererd),this.isLoading=!1,this.isMounted=!0,this.extension_category=this.configFile.extension_category},async open_mzl(){this.mzl_collapsed=!this.mzl_collapsed,console.log("Fetching models")},async getVramUsage(){await this.api_get_req("vram_usage")},async progressListener(t){if(console.log("received something"),t.status==="progress"){if(this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(console.log("model entry",n),n.installing=!0,n.progress=t.progress,console.log(`Progress = ${t.progress}`),t.progress>=100&&(n.installing=!1,n.isInstalled=!0))}}else if(t.status==="succeeded"){if(console.log("Received succeeded"),console.log("Installed successfully"),this.$refs.modelZoo){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(n.installing=!1,n.isInstalled=!0)}this.$refs.toast.showToast(`Model: `+model_object.name+` installed!`,4,!0),this.$store.dispatch("refreshDiskUsage")}else if(t.status==="failed"&&(console.log("Install failed"),this.$refs.modelZoo)){const e=this.$refs.modelZoo.findIndex(r=>r.model.name==t.model_name&&this.configFile.binding_name==t.binding_folder),n=this.models_zoo[e];n&&(n.installing=!1,n.isInstalled=!1),console.error("Installation failed:",t.error),this.$refs.toast.showToast(`Model: `+model_object.name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const t=this.$refs.addmodeldialog.model_path;Ne.emit("install_model",{path:t,type:this.models_zoo[0].type},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(t){this.minconf_collapsed=t,this.bec_collapsed=t,this.mzc_collapsed=t,this.pzc_collapsed=t,this.bzc_collapsed=t,this.pc_collapsed=t,this.mc_collapsed=t,this.sc_collapsed=t,this.mzdc_collapsed=t},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log(`Listed personalities: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage")}},showAddModelDialog(){this.$refs.addmodeldialog.showDialog("").then(()=>{console.log(this.$refs.addmodeldialog.model_path);const t=this.$refs.addmodeldialog.model_path;Ie.emit("install_model",{path:t,type:this.models_zoo[0].type},e=>{console.log("Model installation successful:",e)}),console.log(this.$refs.addmodeldialog.model_path)})},closeAddModelDialog(){this.addModelDialogVisibility=!1},collapseAll(t){this.minconf_collapsed=t,this.bec_collapsed=t,this.mzc_collapsed=t,this.pzc_collapsed=t,this.bzc_collapsed=t,this.pc_collapsed=t,this.mc_collapsed=t,this.sc_collapsed=t,this.mzdc_collapsed=t},fetchPersonalities(){this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log(`Listed personalities: ${t}`)})},fetchExtensions(){this.api_get_req("list_extensions_categories").then(t=>{this.extCatgArr=t,this.extCatgArr.sort()}),this.api_get_req("list_extensions").then(t=>{this.extArr=t,this.extArr.sort(),console.log(`Listed extensions: ${t}`)})},fetchHardwareInfos(){this.$store.dispatch("refreshDiskUsage"),this.$store.dispatch("refreshRamUsage")},async onPersonalitySelected(t){if(console.log("on pers",t),this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",t),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}if(t.isMounted&&this.configFile.personalities.includes(t.full_path)){const e=await this.select_personality(t);console.log("pers is mounted",e),e&&e.status&&e.active_personality_id>-1?this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0):this.$refs.toast.showToast(`Error on select personality: @@ -118,20 +118,20 @@ Download: ${"https://huggingface.co/"+t.quantizer+"/"+t.name} License: ${t.license} Owner: ${t.quantizer} Website: ${"https://huggingface.co/"+t.quantizer} -Description: ${t.description}`,this.$refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(t){this.$refs.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText("https://huggingface.co/"+t.model.quantizer+"/"+t.model.name)},onCopyPersonalityName(t){this.$refs.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},onCancelInstall(){const t=this.addModel;console.log("cancel install",t),this.modelDownlaodInProgress=!1,this.addModel={},Ne.emit("cancel_install",{model_name:t.model_name,binding_folder:t.binding_folder,model_url:t.model_url,patreon:model.patreon?model.patreon:"None"}),this.$refs.toast.showToast("Model installation aborted",4,!1)},onInstall(t){this.variant_choices=t.model.variants,this.currenModelToInstall=t,console.log("variant_choices"),console.log(this.variant_choices),console.log(t),this.variantSelectionDialogVisible=!0},onCreateReference(){xe.post("/add_reference_to_local_model",{path:this.reference_path}).then(t=>{t.status?(this.$refs.toast.showToast("Reference created",4,!0),this.refreshModelsZoo().then(()=>{this.updateModelsZoo()})):this.$refs.toast.showToast("Couldn't create reference",4,!1)})},onInstallAddModel(){if(!this.addModel.url){this.$refs.toast.showToast("Link is empty",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ne.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: +Description: ${t.description}`,this.$refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onCopyLink(t){this.$refs.toast.showToast("Copied link to clipboard!",4,!0),navigator.clipboard.writeText("https://huggingface.co/"+t.model.quantizer+"/"+t.model.name)},onCopyPersonalityName(t){this.$refs.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},onCancelInstall(){const t=this.addModel;console.log("cancel install",t),this.modelDownlaodInProgress=!1,this.addModel={},Ie.emit("cancel_install",{model_name:t.model_name,binding_folder:t.binding_folder,model_url:t.model_url,patreon:model.patreon?model.patreon:"None"}),this.$refs.toast.showToast("Model installation aborted",4,!1)},onInstall(t){this.variant_choices=t.model.variants,this.currenModelToInstall=t,console.log("variant_choices"),console.log(this.variant_choices),console.log(t),this.variantSelectionDialogVisible=!0},onCreateReference(){xe.post("/add_reference_to_local_model",{path:this.reference_path}).then(t=>{t.status?(this.$refs.toast.showToast("Reference created",4,!0),this.refreshModelsZoo().then(()=>{this.updateModelsZoo()})):this.$refs.toast.showToast("Couldn't create reference",4,!1)})},onInstallAddModel(){if(!this.addModel.url){this.$refs.toast.showToast("Link is empty",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ie.off("install_progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ne.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ie.off("install_progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ne.on("install_progress",e),Ne.emit("install_model",{path:t,type:this.models_zoo[0].type}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$refs.toast.showToast("No files to upload",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ne.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ie.on("install_progress",e),Ie.emit("install_model",{path:t,type:this.models_zoo[0].type}),console.log("Started installation, please wait")},uploadLocalModel(){if(this.uploadData.length==0){this.$refs.toast.showToast("No files to upload",4,!1);return}let t=this.addModel.url;this.addModel.progress=0,console.log("installing..."),console.log("value ",this.addModel.url),this.modelDownlaodInProgress=!0;const e=n=>{console.log("received something"),n.status&&n.progress<=100?(console.log("Progress",n),this.addModel=n,this.addModel.url=t,this.addModel.progress==100&&(this.modelDownlaodInProgress=!1,console.log("Received succeeded"),Ie.off("progress",e),console.log("Installed successfully"),this.addModel={},this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ne.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: +installed!`,4,!0),this.$store.dispatch("refreshDiskUsage"))):(Ie.off("progress",e),console.log("Install failed"),this.modelDownlaodInProgress=!1,console.error("Installation failed:",n.error),this.$refs.toast.showToast(`Model: `+this.addModel.model_name+` -failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ne.on("progress",e),console.log("Started installation, please wait")},setFileList(t){this.uploadData=t.target.files,console.log("set file list",this.uploadData)},onUninstall(t){this.$refs.yesNoDialog.askQuestion(`Are you sure you want to delete this model? - [`+t.name+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const n=r=>{console.log("uninstalling res",r),r.status?(console.log("uninstalling success",r),t.uninstalling=!1,Ne.off("install_progress",n),this.showProgress=!1,this.refreshModelsZoo().then(()=>{this.updateModelsZoo()}),this.modelsFiltered=this.models_zoo,this.$refs.toast.showToast(`Model: +failed to install!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ie.on("progress",e),console.log("Started installation, please wait")},setFileList(t){this.uploadData=t.target.files,console.log("set file list",this.uploadData)},onUninstall(t){this.$refs.yesNoDialog.askQuestion(`Are you sure you want to delete this model? + [`+t.name+"]","Yes","Cancel").then(e=>{if(e){console.log("uninstalling model...");const n=r=>{console.log("uninstalling res",r),r.status?(console.log("uninstalling success",r),t.uninstalling=!1,Ie.off("install_progress",n),this.showProgress=!1,this.refreshModelsZoo().then(()=>{this.updateModelsZoo()}),this.modelsFiltered=this.models_zoo,this.$refs.toast.showToast(`Model: `+t.model.name+` -was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")):(console.log("uninstalling failed",r),t.uninstalling=!1,this.showProgress=!1,Ne.off("uninstall_progress",n),console.error("Uninstallation failed:",r.error),this.$refs.toast.showToast(`Model: +was uninstalled!`,4,!0),this.$store.dispatch("refreshDiskUsage")):(console.log("uninstalling failed",r),t.uninstalling=!1,this.showProgress=!1,Ie.off("uninstall_progress",n),console.error("Uninstallation failed:",r.error),this.$refs.toast.showToast(`Model: `+t.model.name+` -failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ne.on("uninstall_progress",n),self.selected_variant!=null?Ne.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name+"/resolve/main/"+this.selected_variant.name,type:t.model.type}):Ne.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,type:t.model.type})}})},onSelectedBinding(t){if(console.log("Binding selected"),!t.binding.installed){this.$refs.toast.showToast(`Binding is not installed: +failed to uninstall!`,4,!1),this.$store.dispatch("refreshDiskUsage"))};Ie.on("uninstall_progress",n),self.selected_variant!=null?Ie.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name+"/resolve/main/"+this.selected_variant.name,type:t.model.type}):Ie.emit("uninstall_model",{path:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,type:t.model.type})}})},onSelectedBinding(t){if(console.log("Binding selected"),!t.binding.installed){this.$refs.toast.showToast(`Binding is not installed: `+t.binding.name,4,!1);return}this.mzc_collapsed=!0,this.configFile.binding_name!=t.binding.folder&&this.update_binding(t.binding.folder)},onInstallBinding(t){this.configFile.binding_name!=t.binding.folder&&(t.disclaimer?(this.$refs.yesNoDialog.askQuestion(t.disclaimer,"Proceed","Cancel"),res&&this.update_binding(t.binding.folder)):this.update_binding(t.binding.folder))},onUnInstallBinding(t){this.isLoading=!0,xe.post("/unInstall_binding",{name:t.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("unInstall_binding",e),e.data.status?this.$refs.toast.showToast("Reinstalled binding successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1,t.isInstalled=False}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall binding `+e.message,4,!1),{status:!1}))},onReinstallBinding(t){this.isLoading=!0,xe.post("/reinstall_binding",{name:t.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_binding",e),e.data.status?this.$refs.toast.showToast("Reinstalled binding successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall binding `+e.message,4,!1),{status:!1}))},upgrade2GPU(){this.isLoading=!0;try{xe.get("/upgrade_to_gpu").then(t=>{this.isLoading=!1,t&&(t.status?(this.$refs.toast.showToast("Upgraded to GPU",4,!0),this.configFile.enable_gpu=!0):this.$refs.toast.showToast("Could not upgrade to GPU. Endpoint error: "+t.error,4,!1))})}catch(t){this.isLoading=!1,this.$refs.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},onSettingsBinding(t){try{this.isLoading=!0,xe.get("/get_active_binding_settings").then(e=>{this.isLoading=!1,e&&(console.log("binding sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Binding settings - "+t.binding.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_binding_settings",n).then(r=>{r&&r.data?(console.log("binding set with new settings",r.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. @@ -156,11 +156,11 @@ Response: Error: `+e.error,4,!1);this.isLoading=!1},async remountExtension(t){await this.unmountExtension(t),await this.mountExtension(t)},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,xe.post("/reinstall_personality",{name:t.personality.path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(t){t.target.src=ms},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){clearTimeout(this.searchModelTimer),this.searchModel&&(this.searchModelInProgress=!0,setTimeout(this.filterModels,this.searchModelTimer))}},async mounted(){console.log("Getting voices"),this.getVoices(),this.updateModelsZoo(),console.log("Constructing"),this.load_everything()},activated(){},computed:{isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(t){this.$store.state.config.audio_out_voice=t}},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},userName:{get(){return this.$store.state.config.user_name},set(t){this.$store.state.config.user_name=t}},user_avatar:{get(){return"/user_infos/"+this.$store.state.config.user_avatar},set(t){this.$store.state.config.user_avatar=t}},enable_gpu:{get(){return this.$store.state.config.enable_gpu},set(t){this.$store.state.config.enable_gpu=t}},auto_update:{get(){return this.$store.state.config.auto_update},set(t){this.$store.state.config.auto_update=t}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(t){this.$store.state.config.auto_speak=t}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(t){this.$store.state.config.audio_pitch=t}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(t){this.$store.state.config.audio_in_language=t}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(t){this.$store.state.config.use_user_name_in_discussions=t}},db_path:{get(){return this.$store.state.config.db_path},set(t){this.$store.state.config.db_path=t}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}},mountedExtensions:{get(){return this.$store.state.config.extensions},set(t){this.$store.commit("setActiveExtensions",t)}},bindingsArr:{get(){return this.$store.state.bindingsArr},set(t){this.$store.commit("setBindingsArr",t)}},modelsArr:{get(){return this.$store.state.modelsArr},set(t){this.$store.commit("setModelsArr",t)}},models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},installed_models:{get(){return this.models_zoo},set(t){this.$store.commit("setModelsZoo",t)}},diskUsage:{get(){return this.$store.state.diskUsage},set(t){this.$store.commit("setDiskUsage",t)}},ramUsage:{get(){return this.$store.state.ramUsage},set(t){this.$store.commit("setRamUsage",t)}},vramUsage:{get(){return this.$store.state.vramUsage},set(t){this.$store.commit("setVramUsage",t)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},imgBinding(){if(this.isMounted)try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return zn}},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return;const t=this.bindingsArr.findIndex(e=>e.folder===this.configFile.binding_name);if(t>-1)return this.bindingsArr[t].name},active_pesonality(){if(!this.isMounted)return;const t=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(t>-1)return this.personalities[t].name},speed_computed(){return Xt(this.addModel.speed)},total_size_computed(){return Xt(this.addModel.total_size)},downloaded_size_computed(){return Xt(this.addModel.downloaded_size)}},watch:{bec_collapsed(){ve(()=>{Ce.replace()})},pc_collapsed(){ve(()=>{Ce.replace()})},mc_collapsed(){ve(()=>{Ce.replace()})},sc_collapsed(){ve(()=>{Ce.replace()})},showConfirmation(){ve(()=>{Ce.replace()})},mzl_collapsed(){ve(()=>{Ce.replace()})},pzl_collapsed(){ve(()=>{Ce.replace()})},bzl_collapsed(){ve(()=>{Ce.replace()})},all_collapsed(t){this.collapseAll(t),ve(()=>{Ce.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,ve(()=>{Ce.replace()})},isLoading(){ve(()=>{Ce.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},searchModel(t){t==""&&this.filterModels()},mzdc_collapsed(){ve(()=>{Ce.replace()})}},async beforeRouteLeave(t){if(await this.$router.isReady(),this.settingsChanged)return await this.$refs.yesNoDialog.askQuestion(`Did You forget to apply changes? You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1;if(!this.isModelSelected)return await this.$refs.yesNoDialog.askQuestion(`Did You forgot to select model? -You need to select model before you leave, or else.`,"Ok","Cancel"),!1}},ae=t=>(hr("data-v-9abe6333"),t=t(),Er(),t),bWe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},SWe={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"},yWe={key:0,class:"flex gap-3 flex-1 items-center duration-75"},vWe=ae(()=>d("i",{"data-feather":"x"},null,-1)),TWe=[vWe],CWe=ae(()=>d("i",{"data-feather":"check"},null,-1)),RWe=[CWe],xWe={key:1,class:"flex gap-3 flex-1 items-center"},OWe=ae(()=>d("i",{"data-feather":"save"},null,-1)),AWe=[OWe],NWe=ae(()=>d("i",{"data-feather":"refresh-ccw"},null,-1)),wWe=[NWe],IWe=ae(()=>d("i",{"data-feather":"list"},null,-1)),DWe=[IWe],kWe={class:"flex gap-3 flex-1 items-center justify-end"},MWe=ae(()=>d("i",{"data-feather":"trash-2"},null,-1)),LWe=[MWe],PWe=ae(()=>d("i",{"data-feather":"refresh-ccw"},null,-1)),FWe=[PWe],UWe=ae(()=>d("i",{"data-feather":"arrow-up-circle"},null,-1)),BWe={key:0},GWe=ae(()=>d("i",{"data-feather":"alert-circle"},null,-1)),qWe=[GWe],YWe={class:"flex gap-3 items-center"},VWe={key:0,class:"flex gap-3 items-center"},zWe=ae(()=>d("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),HWe=ae(()=>d("i",{"data-feather":"check"},null,-1)),$We=[HWe],WWe={key:1,role:"status"},KWe=ae(()=>d("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"},[d("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"}),d("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)),QWe=ae(()=>d("span",{class:"sr-only"},"Loading...",-1)),jWe={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"},ZWe={class:"flex flex-row p-3"},XWe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),JWe=[XWe],eKe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),tKe=[eKe],nKe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),rKe=ae(()=>d("div",{class:"mr-2"},"|",-1)),sKe={class:"text-base font-semibold cursor-pointer select-none items-center"},oKe={class:"flex gap-2 items-center"},iKe={key:0},aKe={class:"flex gap-2 items-center"},lKe=["src"],cKe={class:"font-bold font-large text-lg"},dKe={key:1},uKe={class:"flex gap-2 items-center"},_Ke=["src"],pKe={class:"font-bold font-large text-lg"},mKe=ae(()=>d("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),gKe={class:"font-bold font-large text-lg"},fKe=ae(()=>d("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),hKe={class:"font-bold font-large text-lg"},EKe={class:"mb-2"},bKe=ae(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("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"})]),Re(" CPU Ram usage: ")],-1)),SKe={class:"flex flex-col mx-2"},yKe=ae(()=>d("b",null,"Avaliable ram: ",-1)),vKe=ae(()=>d("b",null,"Ram usage: ",-1)),TKe={class:"p-2"},CKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},RKe={class:"mb-2"},xKe=ae(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Re(" Disk usage: ")],-1)),OKe={class:"flex flex-col mx-2"},AKe=ae(()=>d("b",null,"Avaliable disk space: ",-1)),NKe=ae(()=>d("b",null,"Disk usage: ",-1)),wKe={class:"p-2"},IKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},DKe={class:"mb-2"},kKe={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},MKe=["src"],LKe={class:"flex flex-col mx-2"},PKe=ae(()=>d("b",null,"Model: ",-1)),FKe=ae(()=>d("b",null,"Avaliable vram: ",-1)),UKe=ae(()=>d("b",null,"GPU usage: ",-1)),BKe={class:"p-2"},GKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},qKe={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"},YKe={class:"flex flex-row p-3"},VKe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),zKe=[VKe],HKe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),$Ke=[HKe],WKe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),KKe={class:"flex flex-col mb-2 px-3 pb-2"},QKe={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"},jKe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),ZKe={style:{width:"100%"}},XKe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),JKe={style:{width:"100%"}},eQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),tQe={style:{width:"100%"}},nQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),rQe={class:"flex flex-row"},sQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"enable_gpu",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable GPU:")],-1)),oQe={class:"text-center items-center"},iQe={class:"flex flex-row"},aQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),lQe={class:"flex flex-row"},cQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),dQe={class:"flex flex-row"},uQe={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"},_Qe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),pQe={style:{width:"100%"}},mQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),gQe={style:{width:"100%"}},fQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),hQe={style:{width:"100%"}},EQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),bQe={style:{width:"100%"}},SQe={for:"avatar-upload"},yQe=["src"],vQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),TQe={class:"flex flex-row"},CQe={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"},RQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),xQe={class:"flex flex-row"},OQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),AQe={class:"flex flex-row"},NQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),wQe={class:"flex flex-row"},IQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),DQe={class:"flex flex-row"},kQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),MQe={class:"flex flex-row"},LQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),PQe=ae(()=>d("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),FQe=ae(()=>d("option",{value:"model_embedding"},"Model Embedding",-1)),UQe=[PQe,FQe],BQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),GQe=ae(()=>d("option",{value:"PCA"},"PCA",-1)),qQe=ae(()=>d("option",{value:"TSNE"},"TSNE",-1)),YQe=[GQe,qQe],VQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("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)),zQe={class:"flex flex-row"},HQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),$Qe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),WQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),KQe={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"},QQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),jQe={class:"flex flex-row"},ZQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),XQe={class:"flex flex-row"},JQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),eje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),tje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),nje=["value"],rje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),sje=["value"],oje={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"},ije={class:"flex flex-row p-3"},aje=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),lje=[aje],cje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),dje=[cje],uje=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),_je={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},pje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),mje={key:1,class:"mr-2"},gje={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},fje={class:"flex gap-1 items-center"},hje=["src"],Eje={class:"font-bold font-large text-lg line-clamp-1"},bje={key:0,class:"mb-2"},Sje={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},yje=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),vje=[yje],Tje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),Cje=[Tje],Rje={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"},xje={class:"flex flex-row p-3"},Oje=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),Aje=[Oje],Nje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),wje=[Nje],Ije=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),Dje={class:"flex flex-row items-center"},kje={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Mje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Lje={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Fje={key:2,class:"mr-2"},Uje={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Bje={class:"flex gap-1 items-center"},Gje=["src"],qje={class:"font-bold font-large text-lg line-clamp-1"},Yje={class:"mx-2 mb-4"},Vje={class:"relative"},zje={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Hje={key:0},$je=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),Wje=[$je],Kje={key:1},Qje=ae(()=>d("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"},[d("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)),jje=[Qje],Zje=ae(()=>d("label",{for:"only_installed"},"Show only installed models",-1)),Xje=ae(()=>d("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)),Jje={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},eZe=ae(()=>d("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"},[d("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"}),d("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)),tZe=ae(()=>d("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),nZe=[eZe,tZe],rZe={key:1},sZe={key:0,class:"mb-2"},oZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},iZe={key:2},aZe={key:0,class:"mb-2"},lZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},cZe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),dZe=[cZe],uZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_Ze=[uZe],pZe={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"},mZe={class:"flex flex-row p-3"},gZe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),fZe=[gZe],hZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),EZe=[hZe],bZe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),SZe={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},yZe=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),vZe={key:1,class:"mr-2"},TZe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},CZe={class:"flex gap-1 items-center"},RZe=["src"],xZe={class:"font-bold font-large text-lg line-clamp-1"},OZe={class:"mb-2"},AZe={class:"p-2"},NZe={class:"mb-3"},wZe=ae(()=>d("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),IZe={key:0},DZe={class:"mb-3"},kZe=ae(()=>d("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),MZe={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},LZe=ae(()=>d("div",{role:"status",class:"justify-center"},null,-1)),PZe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},FZe={class:"w-full p-2"},UZe={class:"flex justify-between mb-1"},BZe=G_(' Downloading Loading...',1),GZe={class:"text-sm font-medium text-blue-700 dark:text-white"},qZe=["title"],YZe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},VZe={class:"flex justify-between mb-1"},zZe={class:"text-base font-medium text-blue-700 dark:text-white"},HZe={class:"text-sm font-medium text-blue-700 dark:text-white"},$Ze={class:"flex flex-grow"},WZe={class:"flex flex-row flex-grow gap-3"},KZe={class:"p-2 text-center grow"},QZe={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"},jZe={class:"flex flex-row p-3 items-center"},ZZe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),XZe=[ZZe],JZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),eXe=[JZe],tXe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),nXe={key:0,class:"mr-2"},rXe={class:"mr-2 font-bold font-large text-lg line-clamp-1"},sXe={key:1,class:"mr-2"},oXe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},iXe={key:0,class:"flex -space-x-4 items-center"},aXe={class:"group items-center flex flex-row"},lXe=["onClick"],cXe=["src","title"],dXe=["onClick"],uXe=ae(()=>d("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"},[d("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"},[d("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)),_Xe=[uXe],pXe={class:"mx-2 mb-4"},mXe=ae(()=>d("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),gXe={class:"relative"},fXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},hXe={key:0},EXe=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),bXe=[EXe],SXe={key:1},yXe=ae(()=>d("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"},[d("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)),vXe=[yXe],TXe={key:0,class:"mx-2 mb-4"},CXe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},RXe=["selected"],xXe={key:0,class:"mb-2"},OXe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},AXe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),NXe=[AXe],wXe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),IXe=[wXe],DXe={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"},kXe={class:"flex flex-row p-3 items-center"},MXe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),LXe=[MXe],PXe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),FXe=[PXe],UXe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),BXe={key:0,class:"mr-2"},GXe={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},qXe={key:0,class:"flex -space-x-4 items-center"},YXe={class:"group items-center flex flex-row"},VXe=["onClick"],zXe=["src","title"],HXe=["onClick"],$Xe=ae(()=>d("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"},[d("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"},[d("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)),WXe=[$Xe],KXe={class:"mx-2 mb-4"},QXe=ae(()=>d("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),jXe={class:"relative"},ZXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},XXe={key:0},JXe=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),eJe=[JXe],tJe={key:1},nJe=ae(()=>d("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"},[d("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)),rJe=[nJe],sJe={key:0,class:"mx-2 mb-4"},oJe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},iJe=["selected"],aJe={key:0,class:"mb-2"},lJe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},cJe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),dJe=[cJe],uJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_Je=[uJe],pJe={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"},mJe={class:"flex flex-row p-3 items-center"},gJe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),fJe=[gJe],hJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),EJe=[hJe],bJe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),SJe={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"},yJe={class:"flex flex-row"},vJe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),TJe=[vJe],CJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),RJe=[CJe],xJe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),OJe={class:"m-2"},AJe={class:"flex flex-row gap-2 items-center"},NJe=ae(()=>d("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),wJe={class:"m-2"},IJe=ae(()=>d("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),DJe={class:"m-2"},kJe={class:"flex flex-col align-bottom"},MJe={class:"relative"},LJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),PJe={class:"absolute right-0"},FJe={class:"m-2"},UJe={class:"flex flex-col align-bottom"},BJe={class:"relative"},GJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),qJe={class:"absolute right-0"},YJe={class:"m-2"},VJe={class:"flex flex-col align-bottom"},zJe={class:"relative"},HJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),$Je={class:"absolute right-0"},WJe={class:"m-2"},KJe={class:"flex flex-col align-bottom"},QJe={class:"relative"},jJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),ZJe={class:"absolute right-0"},XJe={class:"m-2"},JJe={class:"flex flex-col align-bottom"},eet={class:"relative"},tet=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),net={class:"absolute right-0"},ret={class:"m-2"},set={class:"flex flex-col align-bottom"},oet={class:"relative"},iet=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),aet={class:"absolute right-0"};function cet(t,e,n,r,s,o){const i=Pe("Card"),a=Pe("BindingEntry"),l=Pe("RadioOptions"),u=Pe("model-entry"),c=Pe("personality-entry"),_=Pe("ExtensionEntry"),p=Pe("Toast"),g=Pe("YesNoDialog"),f=Pe("AddModelDialog"),h=Pe("MessageBox"),E=Pe("UniversalForm"),b=Pe("ChoiceDialog");return v(),T(we,null,[d("div",bWe,[d("div",SWe,[s.showConfirmation?(v(),T("div",yWe,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=_e(m=>s.showConfirmation=!1,["stop"]))},TWe),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=_e(m=>o.save_configuration(),["stop"]))},RWe)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",xWe,[d("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=m=>s.showConfirmation=!0)},AWe),d("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=m=>o.reset_configuration())},wWe),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=_e(m=>s.all_collapsed=!s.all_collapsed,["stop"]))},DWe)])),d("div",kWe,[d("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=m=>o.api_get_req("clear_uploads").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))},LWe),d("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=m=>o.api_get_req("restart_program").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))},FWe),d("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=m=>o.api_get_req("update_software").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Success!",4,!0)}))},[UWe,s.has_updates?(v(),T("div",BWe,qWe)):U("",!0)]),d("div",YWe,[s.settingsChanged?(v(),T("div",VWe,[zWe,s.isLoading?U("",!0):(v(),T("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=_e(m=>o.applyConfiguration(),["stop"]))},$We))])):U("",!0),s.isLoading?(v(),T("div",WWe,[d("p",null,j(s.loading_text),1),KWe,QWe])):U("",!0)])])]),d("div",{class:Ae(s.isLoading?"pointer-events-none opacity-30":"")},[d("div",jWe,[d("div",ZWe,[d("button",{onClick:e[9]||(e[9]=_e(m=>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"},[ce(d("div",null,JWe,512),[[We,s.sc_collapsed]]),ce(d("div",null,tKe,512),[[We,!s.sc_collapsed]]),nKe,rKe,d("div",sKe,[d("div",oKe,[d("div",null,[o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length==1?(v(),T("div",iKe,[(v(!0),T(we,null,Be(o.vramUsage.gpus,m=>(v(),T("div",aKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,lKe),d("h3",cKe,[d("div",null,j(o.computedFileSize(m.used_vram))+" / "+j(o.computedFileSize(m.total_vram))+" ("+j(m.percentage)+"%) ",1)])]))),256))])):U("",!0),o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length>1?(v(),T("div",dKe,[d("div",uKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,_Ke),d("h3",pKe,[d("div",null,j(o.vramUsage.gpus.length)+"x ",1)])])])):U("",!0)]),mKe,d("h3",gKe,[d("div",null,j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+"%)",1)]),fKe,d("h3",hKe,[d("div",null,j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])])])])]),d("div",{class:Ae([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",EKe,[bKe,d("div",SKe,[d("div",null,[yKe,Re(j(o.ram_available_space),1)]),d("div",null,[vKe,Re(" "+j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+")% ",1)])]),d("div",TKe,[d("div",CKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+o.ram_percent_usage+"%;")},null,4)])])]),d("div",RKe,[xKe,d("div",OKe,[d("div",null,[AKe,Re(j(o.disk_available_space),1)]),d("div",null,[NKe,Re(" "+j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])]),d("div",wKe,[d("div",IKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+o.disk_percent_usage+"%;")},null,4)])])]),(v(!0),T(we,null,Be(o.vramUsage.gpus,m=>(v(),T("div",DKe,[d("label",kKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,MKe),Re(" GPU usage: ")]),d("div",LKe,[d("div",null,[PKe,Re(j(m.gpu_model),1)]),d("div",null,[FKe,Re(j(this.computedFileSize(m.available_space)),1)]),d("div",null,[UKe,Re(" "+j(this.computedFileSize(m.used_vram))+" / "+j(this.computedFileSize(m.total_vram))+" ("+j(m.percentage)+"%)",1)])]),d("div",BKe,[d("div",GKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+m.percentage+"%;")},null,4)])])]))),256))],2)]),d("div",qKe,[d("div",YKe,[d("button",{onClick:e[10]||(e[10]=_e(m=>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"},[ce(d("div",null,zKe,512),[[We,s.minconf_collapsed]]),ce(d("div",null,$Ke,512),[[We,!s.minconf_collapsed]]),WKe])]),d("div",{class:Ae([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",KKe,[he(i,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",QKe,[d("tr",null,[jKe,d("td",ZKe,[ce(d("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[11]||(e[11]=m=>o.configFile.host=m),onChange:e[12]||(e[12]=m=>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),[[De,o.configFile.host]])])]),d("tr",null,[XKe,d("td",JKe,[ce(d("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[13]||(e[13]=m=>o.configFile.port=m),onChange:e[14]||(e[14]=m=>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),[[De,o.configFile.port]])])]),d("tr",null,[eQe,d("td",tQe,[ce(d("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[15]||(e[15]=m=>o.configFile.db_path=m),onChange:e[16]||(e[16]=m=>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),[[De,o.configFile.db_path]])])]),d("tr",null,[nQe,d("td",null,[d("div",rQe,[ce(d("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[17]||(e[17]=m=>o.configFile.auto_show_browser=m),onChange:e[18]||(e[18]=m=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_show_browser]])])])]),d("tr",null,[sQe,d("td",oQe,[d("div",iQe,[ce(d("input",{type:"checkbox",id:"enable_gpu",required:"","onUpdate:modelValue":e[19]||(e[19]=m=>o.configFile.enable_gpu=m),onChange:e[20]||(e[20]=m=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.enable_gpu]]),o.configFile.enable_gpu?U("",!0):(v(),T("button",{key:0,onClick:e[21]||(e[21]=_e((...m)=>o.upgrade2GPU&&o.upgrade2GPU(...m),["prevent"])),class:"w-100 text-center rounded m-2 bg-blue-300 hover:bg-blue-200 text-l hover:text-primary p-2 m-2 text-left flex flex-row"}," Upgrade from CPU to GPU "))])])]),d("tr",null,[aQe,d("td",null,[d("div",lQe,[ce(d("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[22]||(e[22]=m=>o.configFile.auto_save=m),onChange:e[23]||(e[23]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_save]])])])]),d("tr",null,[cQe,d("td",null,[d("div",dQe,[ce(d("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[24]||(e[24]=m=>o.configFile.auto_update=m),onChange:e[25]||(e[25]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_update]])])])])])]),_:1}),he(i,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",uQe,[d("tr",null,[_Qe,d("td",pQe,[ce(d("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[26]||(e[26]=m=>o.configFile.user_name=m),onChange:e[27]||(e[27]=m=>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),[[De,o.configFile.user_name]])])]),d("tr",null,[mQe,d("td",gQe,[ce(d("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[28]||(e[28]=m=>o.configFile.user_description=m),onChange:e[29]||(e[29]=m=>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),[[De,o.configFile.user_description]])])]),d("tr",null,[fQe,d("td",hQe,[ce(d("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[30]||(e[30]=m=>o.configFile.override_personality_model_parameters=m),onChange:e[31]||(e[31]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.override_personality_model_parameters]])])]),d("tr",null,[EQe,d("td",bQe,[d("label",SQe,[d("img",{src:"/user_infos/"+o.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yQe)]),d("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[32]||(e[32]=(...m)=>o.uploadAvatar&&o.uploadAvatar(...m))},null,32)])]),d("tr",null,[vQe,d("td",null,[d("div",TQe,[ce(d("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[33]||(e[33]=m=>o.configFile.use_user_name_in_discussions=m),onChange:e[34]||(e[34]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_user_name_in_discussions]])])])])])]),_:1}),he(i,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",CQe,[d("tr",null,[RQe,d("td",null,[d("div",xQe,[ce(d("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[35]||(e[35]=m=>o.configFile.use_files=m),onChange:e[36]||(e[36]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_files]])])])]),d("tr",null,[OQe,d("td",null,[d("div",AQe,[ce(d("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[37]||(e[37]=m=>o.configFile.use_discussions_history=m),onChange:e[38]||(e[38]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_discussions_history]])])])]),d("tr",null,[NQe,d("td",null,[d("div",wQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[39]||(e[39]=m=>o.configFile.data_vectorization_visualize_on_vectorization=m),onChange:e[40]||(e[40]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_visualize_on_vectorization]])])])]),d("tr",null,[IQe,d("td",null,[d("div",DQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[41]||(e[41]=m=>o.configFile.data_vectorization_activate=m),onChange:e[42]||(e[42]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_activate]])])])]),d("tr",null,[kQe,d("td",null,[d("div",MQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[43]||(e[43]=m=>o.configFile.data_vectorization_build_keys_words=m),onChange:e[44]||(e[44]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_build_keys_words]])])])]),d("tr",null,[LQe,d("td",null,[ce(d("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[45]||(e[45]=m=>o.configFile.data_vectorization_method=m),onChange:e[46]||(e[46]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},UQe,544),[[Kt,o.configFile.data_vectorization_method]])])]),d("tr",null,[BQe,d("td",null,[ce(d("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[47]||(e[47]=m=>o.configFile.data_visualization_method=m),onChange:e[48]||(e[48]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},YQe,544),[[Kt,o.configFile.data_visualization_method]])])]),d("tr",null,[VQe,d("td",null,[d("div",zQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[49]||(e[49]=m=>o.configFile.data_vectorization_save_db=m),onChange:e[50]||(e[50]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_save_db]])])])]),d("tr",null,[HQe,d("td",null,[ce(d("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[51]||(e[51]=m=>o.configFile.data_vectorization_chunk_size=m),onChange:e[52]||(e[52]=m=>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),[[De,o.configFile.data_vectorization_chunk_size]]),ce(d("input",{"onUpdate:modelValue":e[53]||(e[53]=m=>o.configFile.data_vectorization_chunk_size=m),type:"number",onChange:e[54]||(e[54]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_chunk_size]])])]),d("tr",null,[$Qe,d("td",null,[ce(d("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[55]||(e[55]=m=>o.configFile.data_vectorization_overlap_size=m),onChange:e[56]||(e[56]=m=>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),[[De,o.configFile.data_vectorization_overlap_size]]),ce(d("input",{"onUpdate:modelValue":e[57]||(e[57]=m=>o.configFile.data_vectorization_overlap_size=m),type:"number",onChange:e[58]||(e[58]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_overlap_size]])])]),d("tr",null,[WQe,d("td",null,[ce(d("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[59]||(e[59]=m=>o.configFile.data_vectorization_nb_chunks=m),onChange:e[60]||(e[60]=m=>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),[[De,o.configFile.data_vectorization_nb_chunks]]),ce(d("input",{"onUpdate:modelValue":e[61]||(e[61]=m=>o.configFile.data_vectorization_nb_chunks=m),type:"number",onChange:e[62]||(e[62]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),he(i,{title:"Audio",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",KQe,[d("tr",null,[QQe,d("td",null,[d("div",jQe,[ce(d("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[63]||(e[63]=m=>o.configFile.audio_auto_send_input=m),onChange:e[64]||(e[64]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.audio_auto_send_input]])])])]),d("tr",null,[ZQe,d("td",null,[d("div",XQe,[ce(d("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[65]||(e[65]=m=>o.configFile.auto_speak=m),onChange:e[66]||(e[66]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_speak]])])])]),d("tr",null,[JQe,d("td",null,[ce(d("input",{id:"audio_pitch","onUpdate:modelValue":e[67]||(e[67]=m=>o.configFile.audio_pitch=m),onChange:e[68]||(e[68]=m=>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),[[De,o.configFile.audio_pitch]]),ce(d("input",{"onUpdate:modelValue":e[69]||(e[69]=m=>o.configFile.audio_pitch=m),onChange:e[70]||(e[70]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.audio_pitch]])])]),d("tr",null,[eje,d("td",null,[ce(d("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[71]||(e[71]=m=>o.configFile.audio_silenceTimer=m),onChange:e[72]||(e[72]=m=>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),[[De,o.configFile.audio_silenceTimer]]),ce(d("input",{"onUpdate:modelValue":e[73]||(e[73]=m=>o.configFile.audio_silenceTimer=m),onChange:e[74]||(e[74]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.audio_silenceTimer]])])]),d("tr",null,[tje,d("td",null,[ce(d("select",{id:"audio_in_language","onUpdate:modelValue":e[75]||(e[75]=m=>o.configFile.audio_in_language=m),onChange:e[76]||(e[76]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(v(!0),T(we,null,Be(o.audioLanguages,m=>(v(),T("option",{key:m.code,value:m.code},j(m.name),9,nje))),128))],544),[[Kt,o.configFile.audio_in_language]])])]),d("tr",null,[rje,d("td",null,[ce(d("select",{id:"audio_out_voice","onUpdate:modelValue":e[77]||(e[77]=m=>o.configFile.audio_out_voice=m),onChange:e[78]||(e[78]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(v(!0),T(we,null,Be(s.audioVoices,m=>(v(),T("option",{key:m.name,value:m.name},j(m.name),9,sje))),128))],544),[[Kt,o.configFile.audio_out_voice]])])])])]),_:1})])],2)]),d("div",oje,[d("div",ije,[d("button",{onClick:e[79]||(e[79]=_e(m=>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"},[ce(d("div",null,lje,512),[[We,s.bzc_collapsed]]),ce(d("div",null,dje,512),[[We,!s.bzc_collapsed]]),uje,o.configFile.binding_name?U("",!0):(v(),T("div",_je,[pje,Re(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",mje,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",gje,[d("div",fje,[d("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,hje),d("h3",Eje,j(o.binding_name),1)])])):U("",!0)])]),d("div",{class:Ae([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[o.bindingsArr&&o.bindingsArr.length>0?(v(),T("div",bje,[d("label",Sje," Bindings: ("+j(o.bindingsArr.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(o.bindingsArr,(m,S)=>(v(),nt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+S+"-"+m.folder,binding:m,"on-selected":o.onSelectedBinding,"on-reinstall":o.onReinstallBinding,"on-unInstall":o.onUnInstallBinding,"on-install":o.onInstallBinding,"on-settings":o.onSettingsBinding,"on-reload-binding":o.onReloadBinding,selected:m.folder===o.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):U("",!0),s.bzl_collapsed?(v(),T("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[80]||(e[80]=m=>s.bzl_collapsed=!s.bzl_collapsed)},vje)):(v(),T("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[81]||(e[81]=m=>s.bzl_collapsed=!s.bzl_collapsed)},Cje))],2)]),d("div",Rje,[d("div",xje,[d("button",{onClick:e[82]||(e[82]=_e(m=>o.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,Aje,512),[[We,s.mzc_collapsed]]),ce(d("div",null,wje,512),[[We,!s.mzc_collapsed]]),Ije,d("div",Dje,[o.configFile.binding_name?U("",!0):(v(),T("div",kje,[Mje,Re(" Select binding first! ")])),!s.isModelSelected&&o.configFile.binding_name?(v(),T("div",Lje,[Pje,Re(" No model selected! ")])):U("",!0),o.configFile.model_name?(v(),T("div",Fje,"|")):U("",!0),o.configFile.model_name?(v(),T("div",Uje,[d("div",Bje,[d("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Gje),d("h3",qje,j(o.configFile.model_name),1)])])):U("",!0)])])]),d("div",{class:Ae([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",Yje,[d("div",Vje,[d("div",zje,[s.searchModelInProgress?(v(),T("div",Hje,Wje)):U("",!0),s.searchModelInProgress?U("",!0):(v(),T("div",Kje,jje))]),ce(d("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[83]||(e[83]=m=>s.searchModel=m),onKeyup:e[84]||(e[84]=Wr((...m)=>o.searchModel_func&&o.searchModel_func(...m),["enter"]))},null,544),[[De,s.searchModel]]),s.searchModel?(v(),T("button",{key:0,onClick:e[85]||(e[85]=_e(m=>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")):U("",!0)])]),d("div",null,[ce(d("input",{"onUpdate:modelValue":e[86]||(e[86]=m=>s.show_only_installed_models=m),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[tt,s.show_only_installed_models]]),Zje]),d("div",null,[he(l,{radioOptions:s.sortOptions,onRadioSelected:o.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Xje,s.is_loading_zoo?(v(),T("div",Jje,nZe)):U("",!0),s.searchModel?(v(),T("div",rZe,[s.modelsFiltered.length>0?(v(),T("div",sZe,[d("label",oZe," Search results: ("+j(s.modelsFiltered.length)+") ",1),d("div",{class:Ae(["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"])},[(v(!0),T(we,null,Be(s.show_only_installed_models?o.filter_installed(s.modelsFiltered):s.modelsFiltered,(m,S)=>(v(),nt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+S+"-"+m.name,model:m,"is-installed":m.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onSelected,selected:m.name===o.configFile.model_name,model_type:m.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))],2)])):U("",!0)])):U("",!0),s.searchModel?U("",!0):(v(),T("div",iZe,[s.models_zoo&&s.models_zoo.length>0?(v(),T("div",aZe,[d("label",lZe," Models: ("+j(s.models_zoo.length)+") ",1),d("div",{class:Ae(["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"])},[(v(!0),T(we,null,Be(s.show_only_installed_models?o.filter_installed(s.models_zoo):s.models_zoo,(m,S)=>(v(),nt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+S+"-"+m.name,model:m,"is-installed":m.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onSelected,selected:m.name===o.configFile.model_name,model_type:m.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))],2)])):U("",!0)])),s.mzl_collapsed?(v(),T("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:"Collapse",type:"button",onClick:e[87]||(e[87]=(...m)=>o.open_mzl&&o.open_mzl(...m))},dZe)):(v(),T("button",{key:4,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[88]||(e[88]=(...m)=>o.open_mzl&&o.open_mzl(...m))},_Ze))],2)]),d("div",pZe,[d("div",mZe,[d("button",{onClick:e[89]||(e[89]=_e(m=>s.mzdc_collapsed=!s.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,fZe,512),[[We,s.mzdc_collapsed]]),ce(d("div",null,EZe,512),[[We,!s.mzdc_collapsed]]),bZe,o.binding_name?U("",!0):(v(),T("div",SZe,[yZe,Re(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",vZe,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",TZe,[d("div",CZe,[d("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,RZe),d("h3",xZe,j(o.binding_name),1)])])):U("",!0)])]),d("div",{class:Ae([{hidden:s.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",OZe,[d("div",AZe,[d("div",null,[d("div",NZe,[wZe,ce(d("input",{type:"text","onUpdate:modelValue":e[90]||(e[90]=m=>s.reference_path=m),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),[[De,s.reference_path]])]),d("button",{type:"button",onClick:e[91]||(e[91]=_e(m=>o.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?U("",!0):(v(),T("div",IZe,[d("div",DZe,[kZe,ce(d("input",{type:"text","onUpdate:modelValue":e[92]||(e[92]=m=>s.addModel.url=m),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),[[De,s.addModel.url]])]),d("button",{type:"button",onClick:e[93]||(e[93]=_e(m=>o.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?(v(),T("div",MZe,[LZe,d("div",PZe,[d("div",FZe,[d("div",UZe,[BZe,d("span",GZe,j(Math.floor(s.addModel.progress))+"%",1)]),d("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},j(s.addModel.url),9,qZe),d("div",YZe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht({width:s.addModel.progress+"%"})},null,4)]),d("div",VZe,[d("span",zZe,"Download speed: "+j(o.speed_computed)+"/s",1),d("span",HZe,j(o.downloaded_size_computed)+"/"+j(o.total_size_computed),1)])])]),d("div",$Ze,[d("div",WZe,[d("div",KZe,[d("button",{onClick:e[94]||(e[94]=_e((...m)=>o.onCancelInstall&&o.onCancelInstall(...m),["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 ")])])])])):U("",!0)])])],2)]),d("div",QZe,[d("div",jZe,[d("button",{onClick:e[96]||(e[96]=_e(m=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,XZe,512),[[We,s.pzc_collapsed]]),ce(d("div",null,eXe,512),[[We,!s.pzc_collapsed]]),tXe,o.configFile.personalities?(v(),T("div",nXe,"|")):U("",!0),d("div",rXe,j(o.active_pesonality),1),o.configFile.personalities?(v(),T("div",sXe,"|")):U("",!0),o.configFile.personalities?(v(),T("div",oXe,[o.mountedPersArr.length>0?(v(),T("div",iXe,[(v(!0),T(we,null,Be(o.mountedPersArr,(m,S)=>(v(),T("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:S+"-"+m.name,ref_for:!0,ref:"mountedPersonalities"},[d("div",aXe,[d("button",{onClick:_e(C=>o.onPersonalitySelected(m),["stop"])},[d("img",{src:s.bUrl+m.avatar,onError:e[95]||(e[95]=(...C)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...C)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(m.full_path)?"border-secondary":"border-transparent z-0"]),title:m.name},null,42,cXe)],8,lXe),d("button",{onClick:_e(C=>o.unmountPersonality(m),["stop"])},_Xe,8,dXe)])]))),128))])):U("",!0)])):U("",!0)])]),d("div",{class:Ae([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",pXe,[mXe,d("div",gXe,[d("div",fXe,[s.searchPersonalityInProgress?(v(),T("div",hXe,bXe)):U("",!0),s.searchPersonalityInProgress?U("",!0):(v(),T("div",SXe,vXe))]),ce(d("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[97]||(e[97]=m=>s.searchPersonality=m),onKeyup:e[98]||(e[98]=_e((...m)=>o.searchPersonality_func&&o.searchPersonality_func(...m),["stop"]))},null,544),[[De,s.searchPersonality]]),s.searchPersonality?(v(),T("button",{key:0,onClick:e[99]||(e[99]=_e(m=>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")):U("",!0)])]),s.searchPersonality?U("",!0):(v(),T("div",TXe,[d("label",CXe," Personalities Category: ("+j(s.persCatgArr.length)+") ",1),d("select",{id:"persCat",onChange:e[100]||(e[100]=m=>o.update_personality_category(m.target.value,o.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"},[(v(!0),T(we,null,Be(s.persCatgArr,(m,S)=>(v(),T("option",{key:S,selected:m==this.configFile.personality_category},j(m),9,RXe))),128))],32)])),d("div",null,[s.personalitiesFiltered.length>0?(v(),T("div",xXe,[d("label",OXe,j(s.searchPersonality?"Search results":"Personalities")+": ("+j(s.personalitiesFiltered.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(s.personalitiesFiltered,(m,S)=>(v(),nt(c,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+S+"-"+m.name,personality:m,select_language:!0,full_path:m.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(C=>C===m.full_path||C===m.full_path+":"+m.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-reinstall":o.onPersonalityReinstall,"on-settings":o.onSettingsPersonality,"on-copy-personality-name":o.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)])):U("",!0)]),s.pzl_collapsed?(v(),T("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[101]||(e[101]=m=>s.pzl_collapsed=!s.pzl_collapsed)},NXe)):(v(),T("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[102]||(e[102]=m=>s.pzl_collapsed=!s.pzl_collapsed)},IXe))],2)]),d("div",DXe,[d("div",kXe,[d("button",{onClick:e[104]||(e[104]=_e(m=>s.ezc_collapsed=!s.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,LXe,512),[[We,s.ezc_collapsed]]),ce(d("div",null,FXe,512),[[We,!s.ezc_collapsed]]),UXe,o.configFile.extensions?(v(),T("div",BXe,"|")):U("",!0),o.configFile.extensions?(v(),T("div",GXe,[o.mountedExtensions.length>0?(v(),T("div",qXe,[(v(!0),T(we,null,Be(o.mountedExtensions,(m,S)=>(v(),T("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:S+"-"+m.name,ref_for:!0,ref:"mountedExtensions"},[d("div",YXe,[d("button",{onClick:_e(C=>o.onPersonalitySelected(m),["stop"])},[d("img",{src:s.bUrl+m.avatar,onError:e[103]||(e[103]=(...C)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...C)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(m.full_path)?"border-secondary":"border-transparent z-0"]),title:m.name},null,42,zXe)],8,VXe),d("button",{onClick:_e(C=>o.unmountExtension(m),["stop"])},WXe,8,HXe)])]))),128))])):U("",!0)])):U("",!0)])]),d("div",{class:Ae([{hidden:s.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",KXe,[QXe,d("div",jXe,[d("div",ZXe,[s.searchExtensionInProgress?(v(),T("div",XXe,eJe)):U("",!0),s.searchExtensionInProgress?U("",!0):(v(),T("div",tJe,rJe))]),ce(d("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[105]||(e[105]=m=>s.searchPersonality=m),onKeyup:e[106]||(e[106]=_e((...m)=>o.searchPersonality_func&&o.searchPersonality_func(...m),["stop"]))},null,544),[[De,s.searchPersonality]]),s.searchPersonality?(v(),T("button",{key:0,onClick:e[107]||(e[107]=_e(m=>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")):U("",!0)])]),s.searchPersonality?U("",!0):(v(),T("div",sJe,[d("label",oJe," Extensions Category: ("+j(s.extCatgArr.length)+") ",1),d("select",{id:"persCat",onChange:e[108]||(e[108]=m=>o.update_extension_category(m.target.value,o.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"},[(v(!0),T(we,null,Be(s.extCatgArr,(m,S)=>(v(),T("option",{key:S,selected:m==this.extension_category},j(m),9,iJe))),128))],32)])),d("div",null,[s.extensionsFiltererd.length>0?(v(),T("div",aJe,[d("label",lJe,j(s.searchPersonality?"Search results":"Personalities")+": ("+j(s.extensionsFiltererd.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(s.extensionsFiltererd,(m,S)=>(v(),nt(_,{ref_for:!0,ref:"extensionsZoo",key:"index-"+S+"-"+m.name,extension:m,select_language:!0,full_path:m.full_path,"on-selected":o.onExtensionSelected,"on-mount":o.mountExtension,"on-un-mount":o.unmountExtension,"on-remount":o.remountExtension,"on-reinstall":t.onExtensionReinstall,"on-settings":t.onSettingsExtension},null,8,["extension","full_path","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))]),_:1})],2)])):U("",!0)]),s.pzl_collapsed?(v(),T("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[109]||(e[109]=m=>s.pzl_collapsed=!s.pzl_collapsed)},dJe)):(v(),T("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[110]||(e[110]=m=>s.pzl_collapsed=!s.pzl_collapsed)},_Je))],2)]),d("div",pJe,[d("div",mJe,[d("button",{onClick:e[111]||(e[111]=_e(m=>s.mep_collapsed=!s.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,fJe,512),[[We,s.mep_collapsed]]),ce(d("div",null,EJe,512),[[We,!s.mep_collapsed]]),bJe])]),d("div",{class:Ae([{hidden:s.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),d("div",SJe,[d("div",yJe,[d("button",{onClick:e[112]||(e[112]=_e(m=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,TJe,512),[[We,s.mc_collapsed]]),ce(d("div",null,RJe,512),[[We,!s.mc_collapsed]]),xJe])]),d("div",{class:Ae([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[d("div",OJe,[d("div",AJe,[ce(d("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[113]||(e[113]=_e(()=>{},["stop"])),"onUpdate:modelValue":e[114]||(e[114]=m=>o.configFile.override_personality_model_parameters=m),onChange:e[115]||(e[115]=m=>o.update_setting("override_personality_model_parameters",o.configFile.override_personality_model_parameters))},null,544),[[tt,o.configFile.override_personality_model_parameters]]),NJe])]),d("div",{class:Ae(o.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[d("div",wJe,[IJe,ce(d("input",{type:"text",id:"seed","onUpdate:modelValue":e[116]||(e[116]=m=>o.configFile.seed=m),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),[[De,o.configFile.seed]])]),d("div",DJe,[d("div",kJe,[d("div",MJe,[LJe,d("p",PJe,[ce(d("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[117]||(e[117]=m=>o.configFile.temperature=m),onChange:e[118]||(e[118]=m=>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),[[De,o.configFile.temperature]])])]),ce(d("input",{id:"temperature",onChange:e[119]||(e[119]=m=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[120]||(e[120]=m=>o.configFile.temperature=m),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),[[De,o.configFile.temperature]])])]),d("div",FJe,[d("div",UJe,[d("div",BJe,[GJe,d("p",qJe,[ce(d("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[121]||(e[121]=m=>o.configFile.n_predict=m),onChange:e[122]||(e[122]=m=>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),[[De,o.configFile.n_predict]])])]),ce(d("input",{id:"predict",type:"range",onChange:e[123]||(e[123]=m=>s.settingsChanged=!0),"onUpdate:modelValue":e[124]||(e[124]=m=>o.configFile.n_predict=m),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),[[De,o.configFile.n_predict]])])]),d("div",YJe,[d("div",VJe,[d("div",zJe,[HJe,d("p",$Je,[ce(d("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[125]||(e[125]=m=>o.configFile.top_k=m),onChange:e[126]||(e[126]=m=>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),[[De,o.configFile.top_k]])])]),ce(d("input",{id:"top_k",type:"range",onChange:e[127]||(e[127]=m=>s.settingsChanged=!0),"onUpdate:modelValue":e[128]||(e[128]=m=>o.configFile.top_k=m),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),[[De,o.configFile.top_k]])])]),d("div",WJe,[d("div",KJe,[d("div",QJe,[jJe,d("p",ZJe,[ce(d("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[129]||(e[129]=m=>o.configFile.top_p=m),onChange:e[130]||(e[130]=m=>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),[[De,o.configFile.top_p]])])]),ce(d("input",{id:"top_p",type:"range","onUpdate:modelValue":e[131]||(e[131]=m=>o.configFile.top_p=m),min:"0",max:"1",step:"0.01",onChange:e[132]||(e[132]=m=>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),[[De,o.configFile.top_p]])])]),d("div",XJe,[d("div",JJe,[d("div",eet,[tet,d("p",net,[ce(d("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[133]||(e[133]=m=>o.configFile.repeat_penalty=m),onChange:e[134]||(e[134]=m=>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),[[De,o.configFile.repeat_penalty]])])]),ce(d("input",{id:"repeat_penalty",onChange:e[135]||(e[135]=m=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[136]||(e[136]=m=>o.configFile.repeat_penalty=m),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),[[De,o.configFile.repeat_penalty]])])]),d("div",ret,[d("div",set,[d("div",oet,[iet,d("p",aet,[ce(d("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[137]||(e[137]=m=>o.configFile.repeat_last_n=m),onChange:e[138]||(e[138]=m=>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),[[De,o.configFile.repeat_last_n]])])]),ce(d("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[139]||(e[139]=m=>o.configFile.repeat_last_n=m),min:"0",max:"100",step:"1",onChange:e[140]||(e[140]=m=>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),[[De,o.configFile.repeat_last_n]])])])],2)],2)])],2)]),he(p,{ref:"toast"},null,512),he(g,{ref:"yesNoDialog",class:"z-20"},null,512),he(f,{ref:"addmodeldialog"},null,512),he(h,{ref:"messageBox"},null,512),he(E,{ref:"universalForm",class:"z-20"},null,512),he(b,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:o.onVariantChoiceSelected,onCloseDialog:o.oncloseVariantChoiceDialog,onChoiceValidated:o.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const det=qe(EWe,[["render",cet],["__scopeId","data-v-9abe6333"]]),uet={components:{ClipBoardTextInput:vp,Card:ao},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};xe.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},_et={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"},pet={class:"mb-4"},met=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),get=["value"],fet={class:"mb-4"},het=d("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Eet={class:"mb-4"},bet=d("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),yet={class:"mb-4"},vet=d("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Tet={class:"mb-4"},Cet=d("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Ret={class:"mb-4"},xet=d("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Oet={class:"mb-4"},Aet=d("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Net=d("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),wet={key:1};function Iet(t,e,n,r,s,o){const i=Pe("Card"),a=Pe("ClipBoardTextInput");return o.selectedModel!==null&&o.selectedModel.toLowerCase().includes("gptq")?(v(),T("div",_et,[d("form",{onSubmit:e[2]||(e[2]=_e((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:""},[he(i,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(i,{title:"Model",class:"",isHorizontal:!1},{default:ke(()=>[d("div",pet,[met,ce(d("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(we,null,Be(o.models,l=>(v(),T("option",{key:l,value:l},j(l),9,get))),128))],544),[[Kt,o.selectedModel]])])]),_:1}),he(i,{title:"Data",isHorizontal:!1},{default:ke(()=>[d("div",fet,[het,he(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),he(i,{title:"Training",isHorizontal:!1},{default:ke(()=>[d("div",Eet,[bet,he(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),d("div",yet,[vet,he(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),d("div",Tet,[Cet,he(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),d("div",Ret,[xet,he(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),he(i,{title:"Output",isHorizontal:!1},{default:ke(()=>[d("div",Oet,[Aet,he(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Net]),_:1})],32)])):(v(),T("div",wet,[he(i,{title:"Info",class:"",isHorizontal:!1},{default:ke(()=>[Re(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const Det=qe(uet,[["render",Iet]]),ket={components:{ClipBoardTextInput:vp,Card:ao},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Met={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"},Let={class:"mb-4"},Pet=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Fet={class:"mb-4"},Uet=d("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Bet=d("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Get(t,e,n,r,s,o){const i=Pe("ClipBoardTextInput"),a=Pe("Card");return v(),T("div",Met,[d("form",{onSubmit:e[0]||(e[0]=_e((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[he(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(a,{title:"Model",class:"",isHorizontal:!1},{default:ke(()=>[d("div",Let,[Pet,he(i,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),d("div",Fet,[Uet,he(i,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),he(a,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Bet]),_:1})],32)])}const qet=qe(ket,[["render",Get]]),Yet={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,ve(()=>{Ce.replace()})},watch:{showConfirmation(){ve(()=>{Ce.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&ve(()=>{this.$refs.titleBox.focus()})},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Vet=["id"],zet={class:"flex flex-row items-center gap-2"},Het={key:0},$et=["title"],Wet=["value"],Ket={class:"flex items-center flex-1 max-h-6"},Qet={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},jet=d("i",{"data-feather":"check"},null,-1),Zet=[jet],Xet=d("i",{"data-feather":"x"},null,-1),Jet=[Xet],ett={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},ttt=d("i",{"data-feather":"x"},null,-1),ntt=[ttt],rtt=d("i",{"data-feather":"check"},null,-1),stt=[rtt],ott={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},itt=d("i",{"data-feather":"edit-2"},null,-1),att=[itt],ltt=d("i",{"data-feather":"trash"},null,-1),ctt=[ltt];function dtt(t,e,n,r,s,o){return v(),T("div",{class:Ae([n.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-"+n.id,onClick:e[13]||(e[13]=_e(i=>o.selectEvent(),["stop"]))},[d("div",zet,[n.isCheckbox?(v(),T("div",Het,[ce(d("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]=_e(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=i=>s.checkBoxValue_local=i),onInput:e[2]||(e[2]=i=>o.checkedChangeEvent(i,n.id))},null,544),[[tt,s.checkBoxValue_local]])])):U("",!0),n.selected?(v(),T("div",{key:1,class:Ae(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):U("",!0),n.selected?U("",!0):(v(),T("div",{key:2,class:Ae(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?U("",!0):(v(),T("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},j(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,$et)),s.editTitle?(v(),T("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Wr(_e(i=>o.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Wr(_e(i=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=i=>o.chnageTitle(i.target.value)),onClick:e[6]||(e[6]=_e(()=>{},["stop"]))},null,40,Wet)):U("",!0),d("div",Ket,[s.showConfirmation&&!s.editTitleMode?(v(),T("div",Qet,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:e[7]||(e[7]=_e(i=>o.deleteEvent(),["stop"]))},Zet),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:e[8]||(e[8]=_e(i=>s.showConfirmation=!1,["stop"]))},Jet)])):U("",!0),s.showConfirmation&&s.editTitleMode?(v(),T("div",ett,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[9]||(e[9]=_e(i=>s.editTitleMode=!1,["stop"]))},ntt),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[10]||(e[10]=_e(i=>o.editTitleEvent(),["stop"]))},stt)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",ott,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=_e(i=>s.editTitleMode=!0,["stop"]))},att),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=_e(i=>s.showConfirmation=!0,["stop"]))},ctt)]))])],10,Vet)}const hT=qe(Yet,[["render",dtt]]),utt={props:{htmlContent:{type:String,required:!0}}},_tt=["innerHTML"];function ptt(t,e,n,r,s,o){return v(),T("div",null,[d("div",{innerHTML:n.htmlContent},null,8,_tt)])}const mtt=qe(utt,[["render",ptt]]);const gtt={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}}},ftt={key:0},htt={class:"toggle-icon mr-1"},Ett={key:0,class:"fas fa-plus-circle text-gray-600"},btt={key:1,class:"fas fa-minus-circle text-gray-600"},Stt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},ytt={key:0,class:"fas fa-plus-circle text-gray-600"},vtt={key:1,class:"fas fa-minus-circle text-gray-600"},Ttt=["innerHTML"];function Ctt(t,e,n,r,s,o){return o.isContentPresent?(v(),T("div",ftt,[d("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...i)=>o.toggleCollapsible&&o.toggleCollapsible(...i))},[d("span",htt,[s.collapsed?(v(),T("i",Ett)):(v(),T("i",btt))]),Re(" "+j(n.jsonFormText),1)]),ce(d("div",null,[d("div",Stt,[o.isObject?(v(),T("span",{key:0,onClick:e[1]||(e[1]=(...i)=>o.toggleCollapsed&&o.toggleCollapsed(...i)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(v(),T("i",ytt)):(v(),T("i",vtt))])):U("",!0),d("pre",{innerHTML:o.formattedJson},null,8,Ttt)])],512),[[We,!s.collapsed]])])):U("",!0)}const Rtt=qe(gtt,[["render",Ctt]]),xtt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},Ott={class:"step flex items-center mb-4"},Att={class:"flex items-center justify-center w-6 h-6 mr-2"},Ntt={key:0},wtt=d("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),Itt=[wtt],Dtt={key:1},ktt=d("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Mtt=[ktt],Ltt={key:2},Ptt=d("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Ftt=[Ptt],Utt={key:0,role:"status"},Btt=d("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"},[d("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"}),d("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),Gtt=[Btt];function qtt(t,e,n,r,s,o){return v(),T("div",Ott,[d("div",Att,[n.done?U("",!0):(v(),T("div",Ntt,Itt)),n.done&&n.status?(v(),T("div",Dtt,Mtt)):U("",!0),n.done&&!n.status?(v(),T("div",Ltt,Ftt)):U("",!0)]),n.done?U("",!0):(v(),T("div",Utt,Gtt)),d("div",{class:Ae(["content flex-1 px-2",{"text-green-500":n.done,"text-yellow-500":!n.done}])},j(n.message),3)])}const Ytt=qe(xtt,[["render",qtt]]);const tS="/",Vtt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:_T,Step:Ytt,RenderHTMLJS:mtt,JsonViewer:Rtt,DynamicUIRenderer:fT},props:{message:Object,avatar:""},data(){return{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."),ve(()=>{Ce.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,s=e.value.substring(0,n),o=e.value.substring(r),i=s+" "+o;this.message.content=i,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.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 n=s=>{let o=this.message.content.substring(s,s+e);const i=[".","!","?",` -`];let a=-1;return i.forEach(l=>{const u=o.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=o.length),console.log(a),a+s+1},r=()=>{if(this.message.content.includes(".")){const s=n(t),o=this.message.content.substring(t,s);this.msg.text=o,t=s+1,this.msg.onend=i=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{r()},1)};r()},toggleModel(){this.expanded=!this.expanded},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content),this.editMsgMode=!1},resendMessage(){this.$emit("resendMessage",this.message.id,this.message.content)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?(console.log("Avatar:",tS+this.avatar),tS+this.avatar):(console.log("No avatar found"),Ks)},defaultImg(t){t.target.src=Ks},parseDate(t){let e=new Date(Date.parse(t)),r=Math.floor((new Date-e)/1e3);return r<=1?"just now":r<20?r+" seconds ago":r<40?"half a minute ago":r<60?"less than a minute ago":r<=90?"one minute ago":r<=3540?Math.round(r/60)+" minutes ago":r<=5400?"1 hour ago":r<=86400?Math.round(r/3600)+" hours ago":r<=129600?"1 day ago":r<604800?Math.round(r/86400)+" days ago":r<=777600?"1 week ago":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(n/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/3600)+" hours ago")||r==1&&"Yesterday"||r<7&&r+" days ago"||r<31&&Math.ceil(r/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{"message.content":function(t){this.$store.state.config.auto_speak&&(this.isSpeaking||this.checkForFullSentence())},"message.ui":function(t){console.log("ui changed"),console.log(this.message_ui)},showConfirmation(){ve(()=>{Ce.replace()})},editMsgMode(t){ve(()=>{Ce.replace()})},deleteMsgMode(){ve(()=>{Ce.replace()})}},computed:{message_ui:{get(){return this.message.ui}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!e.getTime())return;let r=e.getTime()-t.getTime();const s=Math.floor(r/(1e3*60*60));r-=s*(1e3*60*60);const o=Math.floor(r/(1e3*60));r-=o*(1e3*60);const i=Math.floor(r/1e3);r-=i*1e3;function a(u){return u<10&&(u="0"+u),u}return a(s)+"h:"+a(o)+"m:"+a(i)+"s"}}},ztt={class:"relative group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Htt={class:"flex flex-row gap-2"},$tt={class:"flex-shrink-0"},Wtt={class:"group/avatar"},Ktt=["src","data-popover-target"],Qtt={class:"flex flex-col w-full flex-grow-0"},jtt={class:"flex flex-row flex-grow items-start"},Ztt={class:"flex flex-col mb-2"},Xtt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Jtt=["title"],ent=d("div",{class:"flex-grow"},null,-1),tnt={class:"flex-row justify-end mx-2"},nnt={class:"invisible group-hover:visible flex flex-row"},rnt={key:0,class:"flex items-center duration-75"},snt=d("i",{"data-feather":"x"},null,-1),ont=[snt],int=d("i",{"data-feather":"check"},null,-1),ant=[int],lnt=d("i",{"data-feather":"edit"},null,-1),cnt=[lnt],dnt=d("i",{"data-feather":"copy"},null,-1),unt=[dnt],_nt=d("i",{"data-feather":"refresh-cw"},null,-1),pnt=[_nt],mnt=d("i",{"data-feather":"fast-forward"},null,-1),gnt=[mnt],fnt={key:4,class:"flex items-center duration-75"},hnt=d("i",{"data-feather":"x"},null,-1),Ent=[hnt],bnt=d("i",{"data-feather":"check"},null,-1),Snt=[bnt],ynt=d("i",{"data-feather":"trash"},null,-1),vnt=[ynt],Tnt=d("i",{"data-feather":"thumbs-up"},null,-1),Cnt=[Tnt],Rnt={class:"flex flex-row items-center"},xnt=d("i",{"data-feather":"thumbs-down"},null,-1),Ont=[xnt],Ant={class:"flex flex-row items-center"},Nnt=d("i",{"data-feather":"volume-2"},null,-1),wnt=[Nnt],Int={class:"overflow-x-auto w-full"},Dnt={class:"flex flex-col items-start w-full"},knt={class:"flex flex-col items-start w-full"},Mnt={key:1},Lnt={class:"text-sm text-gray-400 mt-2"},Pnt={class:"flex flex-row items-center gap-2"},Fnt={key:0},Unt={class:"font-thin"},Bnt={key:1},Gnt={class:"font-thin"},qnt={key:2},Ynt={class:"font-thin"},Vnt={key:3},znt=["title"];function Hnt(t,e,n,r,s,o){const i=Pe("Step"),a=Pe("RenderHTMLJS"),l=Pe("MarkdownRenderer"),u=Pe("JsonViewer"),c=Pe("DynamicUIRenderer");return v(),T("div",ztt,[d("div",Htt,[d("div",$tt,[d("div",Wtt,[d("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=_=>o.defaultImg(_)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Ktt)])]),d("div",Qtt,[d("div",jtt,[d("div",Ztt,[d("div",Xtt,j(n.message.sender)+" ",1),n.message.created_at?(v(),T("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+o.created_at_parsed},j(o.created_at),9,Jtt)):U("",!0)]),ent,d("div",tnt,[d("div",nnt,[s.editMsgMode?(v(),T("div",rnt,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=_e(_=>s.editMsgMode=!1,["stop"]))},ont),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=_e((..._)=>o.updateMessage&&o.updateMessage(..._),["stop"]))},ant)])):U("",!0),s.editMsgMode?U("",!0):(v(),T("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Edit message",onClick:e[3]||(e[3]=_e(_=>s.editMsgMode=!0,["stop"]))},cnt)),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Copy message to clipboard",onClick:e[4]||(e[4]=_e(_=>o.copyContentToClipboard(),["stop"]))},unt),!s.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(v(),T("div",{key:2,class:Ae(["text-lg hover:text-secondary duration-75 active:scale-90 p-2",{"text-5xl":s.editMsgMode}]),title:"Resend message",onClick:e[5]||(e[5]=_e(_=>o.resendMessage(),["stop"]))},pnt,2)):U("",!0),!s.editMsgMode&&n.message.sender==this.$store.state.mountedPers.name?(v(),T("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[6]||(e[6]=_e(_=>o.continueMessage(),["stop"]))},gnt)):U("",!0),s.deleteMsgMode?(v(),T("div",fnt,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel removal",type:"button",onClick:e[7]||(e[7]=_e(_=>s.deleteMsgMode=!1,["stop"]))},Ent),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Confirm removal",type:"button",onClick:e[8]||(e[8]=_e(_=>o.deleteMsg(),["stop"]))},Snt)])):U("",!0),!s.editMsgMode&&!s.deleteMsgMode?(v(),T("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Remove message",onClick:e[9]||(e[9]=_=>s.deleteMsgMode=!0)},vnt)):U("",!0),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Upvote",onClick:e[10]||(e[10]=_e(_=>o.rankUp(),["stop"]))},Cnt),d("div",Rnt,[d("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote",onClick:e[11]||(e[11]=_e(_=>o.rankDown(),["stop"]))},Ont),n.message.rank!=0?(v(),T("div",{key:0,class:Ae(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},j(n.message.rank),3)):U("",!0)]),d("div",Ant,[d("div",{class:Ae(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2",{"text-red-500":o.isTalking}]),title:"speak",onClick:e[12]||(e[12]=_e(_=>o.speak(),["stop"]))},wnt,2)])])])]),d("div",Int,[d("div",Dnt,[(v(!0),T(we,null,Be(n.message.steps,(_,p)=>(v(),T("div",{key:"step-"+n.message.id+"-"+p,class:"step font-bold",style:ht({backgroundColor:_.done?"transparent":"inherit"})},[he(i,{done:_.done,message:_.message,status:_.status},null,8,["done","message","status"])],4))),128))]),d("div",knt,[(v(!0),T(we,null,Be(n.message.html_js_s,(_,p)=>(v(),T("div",{key:"htmljs-"+n.message.id+"-"+p,class:"htmljs font-bold",style:ht({backgroundColor:t.step.done?"transparent":"inherit"})},[he(a,{htmlContent:_},null,8,["htmlContent"])],4))),128))]),s.editMsgMode?U("",!0):(v(),nt(l,{key:0,ref:"mdRender","markdown-text":n.message.content,message_id:n.message.id},null,8,["markdown-text","message_id"])),d("div",null,[s.editMsgMode?ce((v(),T("textarea",{key:0,ref:"mdTextarea",onKeydown:e[13]||(e[13]=Wr(_e((..._)=>o.insertTab&&o.insertTab(..._),["prevent"]),["tab"])),class:"block p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll 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",rows:4,style:ht({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[14]||(e[14]=_=>n.message.content=_)},`\r - `,36)),[[De,n.message.content]]):U("",!0)]),n.message.metadata!==null?(v(),T("div",Mnt,[(v(!0),T(we,null,Be(n.message.metadata,(_,p)=>(v(),T("div",{key:"json-"+n.message.id+"-"+p,class:"json font-bold"},[he(u,{jsonFormText:_.title,jsonData:_.content},null,8,["jsonFormText","jsonData"])]))),128))])):U("",!0),n.message.ui!==null&&n.message.ui!==void 0&&n.message.ui!==""?(v(),nt(c,{key:2,class:"w-full h-full",code:o.message_ui},null,8,["code"])):U("",!0)]),d("div",Lnt,[d("div",Pnt,[n.message.binding?(v(),T("p",Fnt,[Re("Binding: "),d("span",Unt,j(n.message.binding),1)])):U("",!0),n.message.model?(v(),T("p",Bnt,[Re("Model: "),d("span",Gnt,j(n.message.model),1)])):U("",!0),n.message.seed?(v(),T("p",qnt,[Re("Seed: "),d("span",Ynt,j(n.message.seed),1)])):U("",!0),o.time_spent?(v(),T("p",Vnt,[Re("Time spent: "),d("span",{class:"font-thin",title:"Finished generating: "+o.finished_generating_at_parsed},j(o.time_spent),9,znt)])):U("",!0)])])])])])}const ET=qe(Vtt,[["render",Hnt]]),$nt="/";xe.defaults.baseURL="/";const Wnt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{UniversalForm:Tp},data(){return{bUrl:$nt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{onSettingsPersonality(t){try{xe.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+t.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_personality_settings",n).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. +You need to select model before you leave, or else.`,"Ok","Cancel"),!1}},ae=t=>(hr("data-v-9abe6333"),t=t(),Er(),t),bWe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},SWe={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"},yWe={key:0,class:"flex gap-3 flex-1 items-center duration-75"},vWe=ae(()=>d("i",{"data-feather":"x"},null,-1)),TWe=[vWe],CWe=ae(()=>d("i",{"data-feather":"check"},null,-1)),RWe=[CWe],xWe={key:1,class:"flex gap-3 flex-1 items-center"},OWe=ae(()=>d("i",{"data-feather":"save"},null,-1)),AWe=[OWe],NWe=ae(()=>d("i",{"data-feather":"refresh-ccw"},null,-1)),wWe=[NWe],IWe=ae(()=>d("i",{"data-feather":"list"},null,-1)),DWe=[IWe],kWe={class:"flex gap-3 flex-1 items-center justify-end"},MWe=ae(()=>d("i",{"data-feather":"trash-2"},null,-1)),LWe=[MWe],PWe=ae(()=>d("i",{"data-feather":"refresh-ccw"},null,-1)),FWe=[PWe],UWe=ae(()=>d("i",{"data-feather":"arrow-up-circle"},null,-1)),BWe={key:0},GWe=ae(()=>d("i",{"data-feather":"alert-circle"},null,-1)),qWe=[GWe],YWe={class:"flex gap-3 items-center"},VWe={key:0,class:"flex gap-3 items-center"},zWe=ae(()=>d("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),HWe=ae(()=>d("i",{"data-feather":"check"},null,-1)),$We=[HWe],WWe={key:1,role:"status"},KWe=ae(()=>d("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"},[d("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"}),d("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)),QWe=ae(()=>d("span",{class:"sr-only"},"Loading...",-1)),jWe={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"},ZWe={class:"flex flex-row p-3"},XWe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),JWe=[XWe],eKe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),tKe=[eKe],nKe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),rKe=ae(()=>d("div",{class:"mr-2"},"|",-1)),sKe={class:"text-base font-semibold cursor-pointer select-none items-center"},oKe={class:"flex gap-2 items-center"},iKe={key:0},aKe={class:"flex gap-2 items-center"},lKe=["src"],cKe={class:"font-bold font-large text-lg"},dKe={key:1},uKe={class:"flex gap-2 items-center"},_Ke=["src"],pKe={class:"font-bold font-large text-lg"},mKe=ae(()=>d("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),gKe={class:"font-bold font-large text-lg"},fKe=ae(()=>d("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),hKe={class:"font-bold font-large text-lg"},EKe={class:"mb-2"},bKe=ae(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[d("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"})]),Re(" CPU Ram usage: ")],-1)),SKe={class:"flex flex-col mx-2"},yKe=ae(()=>d("b",null,"Avaliable ram: ",-1)),vKe=ae(()=>d("b",null,"Ram usage: ",-1)),TKe={class:"p-2"},CKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},RKe={class:"mb-2"},xKe=ae(()=>d("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[d("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Re(" Disk usage: ")],-1)),OKe={class:"flex flex-col mx-2"},AKe=ae(()=>d("b",null,"Avaliable disk space: ",-1)),NKe=ae(()=>d("b",null,"Disk usage: ",-1)),wKe={class:"p-2"},IKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},DKe={class:"mb-2"},kKe={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},MKe=["src"],LKe={class:"flex flex-col mx-2"},PKe=ae(()=>d("b",null,"Model: ",-1)),FKe=ae(()=>d("b",null,"Avaliable vram: ",-1)),UKe=ae(()=>d("b",null,"GPU usage: ",-1)),BKe={class:"p-2"},GKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},qKe={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"},YKe={class:"flex flex-row p-3"},VKe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),zKe=[VKe],HKe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),$Ke=[HKe],WKe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),KKe={class:"flex flex-col mb-2 px-3 pb-2"},QKe={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"},jKe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),ZKe={style:{width:"100%"}},XKe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),JKe={style:{width:"100%"}},eQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),tQe={style:{width:"100%"}},nQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),rQe={class:"flex flex-row"},sQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"enable_gpu",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable GPU:")],-1)),oQe={class:"text-center items-center"},iQe={class:"flex flex-row"},aQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),lQe={class:"flex flex-row"},cQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),dQe={class:"flex flex-row"},uQe={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"},_Qe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),pQe={style:{width:"100%"}},mQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),gQe={style:{width:"100%"}},fQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),hQe={style:{width:"100%"}},EQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),bQe={style:{width:"100%"}},SQe={for:"avatar-upload"},yQe=["src"],vQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),TQe={class:"flex flex-row"},CQe={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"},RQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),xQe={class:"flex flex-row"},OQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),AQe={class:"flex flex-row"},NQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),wQe={class:"flex flex-row"},IQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),DQe={class:"flex flex-row"},kQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),MQe={class:"flex flex-row"},LQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),PQe=ae(()=>d("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),FQe=ae(()=>d("option",{value:"model_embedding"},"Model Embedding",-1)),UQe=[PQe,FQe],BQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),GQe=ae(()=>d("option",{value:"PCA"},"PCA",-1)),qQe=ae(()=>d("option",{value:"TSNE"},"TSNE",-1)),YQe=[GQe,qQe],VQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("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)),zQe={class:"flex flex-row"},HQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),$Qe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),WQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),KQe={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"},QQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),jQe={class:"flex flex-row"},ZQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),XQe={class:"flex flex-row"},JQe=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),eje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),tje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),nje=["value"],rje=ae(()=>d("td",{style:{"min-width":"200px"}},[d("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),sje=["value"],oje={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"},ije={class:"flex flex-row p-3"},aje=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),lje=[aje],cje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),dje=[cje],uje=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),_je={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},pje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),mje={key:1,class:"mr-2"},gje={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},fje={class:"flex gap-1 items-center"},hje=["src"],Eje={class:"font-bold font-large text-lg line-clamp-1"},bje={key:0,class:"mb-2"},Sje={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},yje=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),vje=[yje],Tje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),Cje=[Tje],Rje={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"},xje={class:"flex flex-row p-3"},Oje=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),Aje=[Oje],Nje=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),wje=[Nje],Ije=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),Dje={class:"flex flex-row items-center"},kje={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Mje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Lje={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Pje=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Fje={key:2,class:"mr-2"},Uje={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Bje={class:"flex gap-1 items-center"},Gje=["src"],qje={class:"font-bold font-large text-lg line-clamp-1"},Yje={class:"mx-2 mb-4"},Vje={class:"relative"},zje={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Hje={key:0},$je=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),Wje=[$je],Kje={key:1},Qje=ae(()=>d("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"},[d("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)),jje=[Qje],Zje=ae(()=>d("label",{for:"only_installed"},"Show only installed models",-1)),Xje=ae(()=>d("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)),Jje={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},eZe=ae(()=>d("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"},[d("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"}),d("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)),tZe=ae(()=>d("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),nZe=[eZe,tZe],rZe={key:1},sZe={key:0,class:"mb-2"},oZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},iZe={key:2},aZe={key:0,class:"mb-2"},lZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},cZe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),dZe=[cZe],uZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_Ze=[uZe],pZe={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"},mZe={class:"flex flex-row p-3"},gZe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),fZe=[gZe],hZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),EZe=[hZe],bZe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),SZe={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},yZe=ae(()=>d("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),vZe={key:1,class:"mr-2"},TZe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},CZe={class:"flex gap-1 items-center"},RZe=["src"],xZe={class:"font-bold font-large text-lg line-clamp-1"},OZe={class:"mb-2"},AZe={class:"p-2"},NZe={class:"mb-3"},wZe=ae(()=>d("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),IZe={key:0},DZe={class:"mb-3"},kZe=ae(()=>d("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),MZe={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},LZe=ae(()=>d("div",{role:"status",class:"justify-center"},null,-1)),PZe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},FZe={class:"w-full p-2"},UZe={class:"flex justify-between mb-1"},BZe=G_(' Downloading Loading...',1),GZe={class:"text-sm font-medium text-blue-700 dark:text-white"},qZe=["title"],YZe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},VZe={class:"flex justify-between mb-1"},zZe={class:"text-base font-medium text-blue-700 dark:text-white"},HZe={class:"text-sm font-medium text-blue-700 dark:text-white"},$Ze={class:"flex flex-grow"},WZe={class:"flex flex-row flex-grow gap-3"},KZe={class:"p-2 text-center grow"},QZe={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"},jZe={class:"flex flex-row p-3 items-center"},ZZe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),XZe=[ZZe],JZe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),eXe=[JZe],tXe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),nXe={key:0,class:"mr-2"},rXe={class:"mr-2 font-bold font-large text-lg line-clamp-1"},sXe={key:1,class:"mr-2"},oXe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},iXe={key:0,class:"flex -space-x-4 items-center"},aXe={class:"group items-center flex flex-row"},lXe=["onClick"],cXe=["src","title"],dXe=["onClick"],uXe=ae(()=>d("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"},[d("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"},[d("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)),_Xe=[uXe],pXe={class:"mx-2 mb-4"},mXe=ae(()=>d("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),gXe={class:"relative"},fXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},hXe={key:0},EXe=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),bXe=[EXe],SXe={key:1},yXe=ae(()=>d("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"},[d("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)),vXe=[yXe],TXe={key:0,class:"mx-2 mb-4"},CXe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},RXe=["selected"],xXe={key:0,class:"mb-2"},OXe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},AXe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),NXe=[AXe],wXe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),IXe=[wXe],DXe={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"},kXe={class:"flex flex-row p-3 items-center"},MXe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),LXe=[MXe],PXe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),FXe=[PXe],UXe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),BXe={key:0,class:"mr-2"},GXe={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},qXe={key:0,class:"flex -space-x-4 items-center"},YXe={class:"group items-center flex flex-row"},VXe=["onClick"],zXe=["src","title"],HXe=["onClick"],$Xe=ae(()=>d("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"},[d("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"},[d("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)),WXe=[$Xe],KXe={class:"mx-2 mb-4"},QXe=ae(()=>d("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),jXe={class:"relative"},ZXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},XXe={key:0},JXe=ae(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),eJe=[JXe],tJe={key:1},nJe=ae(()=>d("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"},[d("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)),rJe=[nJe],sJe={key:0,class:"mx-2 mb-4"},oJe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},iJe=["selected"],aJe={key:0,class:"mb-2"},lJe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},cJe=ae(()=>d("i",{"data-feather":"chevron-up"},null,-1)),dJe=[cJe],uJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_Je=[uJe],pJe={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"},mJe={class:"flex flex-row p-3 items-center"},gJe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),fJe=[gJe],hJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),EJe=[hJe],bJe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),SJe={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"},yJe={class:"flex flex-row"},vJe=ae(()=>d("i",{"data-feather":"chevron-right"},null,-1)),TJe=[vJe],CJe=ae(()=>d("i",{"data-feather":"chevron-down"},null,-1)),RJe=[CJe],xJe=ae(()=>d("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),OJe={class:"m-2"},AJe={class:"flex flex-row gap-2 items-center"},NJe=ae(()=>d("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),wJe={class:"m-2"},IJe=ae(()=>d("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),DJe={class:"m-2"},kJe={class:"flex flex-col align-bottom"},MJe={class:"relative"},LJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),PJe={class:"absolute right-0"},FJe={class:"m-2"},UJe={class:"flex flex-col align-bottom"},BJe={class:"relative"},GJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),qJe={class:"absolute right-0"},YJe={class:"m-2"},VJe={class:"flex flex-col align-bottom"},zJe={class:"relative"},HJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),$Je={class:"absolute right-0"},WJe={class:"m-2"},KJe={class:"flex flex-col align-bottom"},QJe={class:"relative"},jJe=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),ZJe={class:"absolute right-0"},XJe={class:"m-2"},JJe={class:"flex flex-col align-bottom"},eet={class:"relative"},tet=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),net={class:"absolute right-0"},ret={class:"m-2"},set={class:"flex flex-col align-bottom"},oet={class:"relative"},iet=ae(()=>d("p",{class:"absolute left-0 mt-6"},[d("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),aet={class:"absolute right-0"};function cet(t,e,n,r,s,o){const i=Pe("Card"),a=Pe("BindingEntry"),l=Pe("RadioOptions"),u=Pe("model-entry"),c=Pe("personality-entry"),_=Pe("ExtensionEntry"),p=Pe("Toast"),g=Pe("YesNoDialog"),f=Pe("AddModelDialog"),h=Pe("MessageBox"),E=Pe("UniversalForm"),b=Pe("ChoiceDialog");return v(),T(Ne,null,[d("div",bWe,[d("div",SWe,[s.showConfirmation?(v(),T("div",yWe,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=_e(m=>s.showConfirmation=!1,["stop"]))},TWe),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=_e(m=>o.save_configuration(),["stop"]))},RWe)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",xWe,[d("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=m=>s.showConfirmation=!0)},AWe),d("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=m=>o.reset_configuration())},wWe),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[4]||(e[4]=_e(m=>s.all_collapsed=!s.all_collapsed,["stop"]))},DWe)])),d("div",kWe,[d("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=m=>o.api_get_req("clear_uploads").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))},LWe),d("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=m=>o.api_get_req("restart_program").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast(["failed!"],4,!1)}))},FWe),d("button",{title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[7]||(e[7]=m=>o.api_get_req("update_software").then(S=>{S.status?this.$refs.toast.showToast("Success!",4,!0):this.$refs.toast.showToast("Success!",4,!0)}))},[UWe,s.has_updates?(v(),T("div",BWe,qWe)):U("",!0)]),d("div",YWe,[s.settingsChanged?(v(),T("div",VWe,[zWe,s.isLoading?U("",!0):(v(),T("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[8]||(e[8]=_e(m=>o.applyConfiguration(),["stop"]))},$We))])):U("",!0),s.isLoading?(v(),T("div",WWe,[d("p",null,j(s.loading_text),1),KWe,QWe])):U("",!0)])])]),d("div",{class:Ae(s.isLoading?"pointer-events-none opacity-30":"")},[d("div",jWe,[d("div",ZWe,[d("button",{onClick:e[9]||(e[9]=_e(m=>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"},[ce(d("div",null,JWe,512),[[We,s.sc_collapsed]]),ce(d("div",null,tKe,512),[[We,!s.sc_collapsed]]),nKe,rKe,d("div",sKe,[d("div",oKe,[d("div",null,[o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length==1?(v(),T("div",iKe,[(v(!0),T(Ne,null,Be(o.vramUsage.gpus,m=>(v(),T("div",aKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,lKe),d("h3",cKe,[d("div",null,j(o.computedFileSize(m.used_vram))+" / "+j(o.computedFileSize(m.total_vram))+" ("+j(m.percentage)+"%) ",1)])]))),256))])):U("",!0),o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length>1?(v(),T("div",dKe,[d("div",uKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,_Ke),d("h3",pKe,[d("div",null,j(o.vramUsage.gpus.length)+"x ",1)])])])):U("",!0)]),mKe,d("h3",gKe,[d("div",null,j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+"%)",1)]),fKe,d("h3",hKe,[d("div",null,j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])])])])]),d("div",{class:Ae([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",EKe,[bKe,d("div",SKe,[d("div",null,[yKe,Re(j(o.ram_available_space),1)]),d("div",null,[vKe,Re(" "+j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+")% ",1)])]),d("div",TKe,[d("div",CKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+o.ram_percent_usage+"%;")},null,4)])])]),d("div",RKe,[xKe,d("div",OKe,[d("div",null,[AKe,Re(j(o.disk_available_space),1)]),d("div",null,[NKe,Re(" "+j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])]),d("div",wKe,[d("div",IKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+o.disk_percent_usage+"%;")},null,4)])])]),(v(!0),T(Ne,null,Be(o.vramUsage.gpus,m=>(v(),T("div",DKe,[d("label",kKe,[d("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,MKe),Re(" GPU usage: ")]),d("div",LKe,[d("div",null,[PKe,Re(j(m.gpu_model),1)]),d("div",null,[FKe,Re(j(this.computedFileSize(m.available_space)),1)]),d("div",null,[UKe,Re(" "+j(this.computedFileSize(m.used_vram))+" / "+j(this.computedFileSize(m.total_vram))+" ("+j(m.percentage)+"%)",1)])]),d("div",BKe,[d("div",GKe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+m.percentage+"%;")},null,4)])])]))),256))],2)]),d("div",qKe,[d("div",YKe,[d("button",{onClick:e[10]||(e[10]=_e(m=>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"},[ce(d("div",null,zKe,512),[[We,s.minconf_collapsed]]),ce(d("div",null,$Ke,512),[[We,!s.minconf_collapsed]]),WKe])]),d("div",{class:Ae([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",KKe,[he(i,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",QKe,[d("tr",null,[jKe,d("td",ZKe,[ce(d("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[11]||(e[11]=m=>o.configFile.host=m),onChange:e[12]||(e[12]=m=>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),[[De,o.configFile.host]])])]),d("tr",null,[XKe,d("td",JKe,[ce(d("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[13]||(e[13]=m=>o.configFile.port=m),onChange:e[14]||(e[14]=m=>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),[[De,o.configFile.port]])])]),d("tr",null,[eQe,d("td",tQe,[ce(d("input",{type:"text",id:"db_path",required:"","onUpdate:modelValue":e[15]||(e[15]=m=>o.configFile.db_path=m),onChange:e[16]||(e[16]=m=>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),[[De,o.configFile.db_path]])])]),d("tr",null,[nQe,d("td",null,[d("div",rQe,[ce(d("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[17]||(e[17]=m=>o.configFile.auto_show_browser=m),onChange:e[18]||(e[18]=m=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_show_browser]])])])]),d("tr",null,[sQe,d("td",oQe,[d("div",iQe,[ce(d("input",{type:"checkbox",id:"enable_gpu",required:"","onUpdate:modelValue":e[19]||(e[19]=m=>o.configFile.enable_gpu=m),onChange:e[20]||(e[20]=m=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.enable_gpu]]),o.configFile.enable_gpu?U("",!0):(v(),T("button",{key:0,onClick:e[21]||(e[21]=_e((...m)=>o.upgrade2GPU&&o.upgrade2GPU(...m),["prevent"])),class:"w-100 text-center rounded m-2 bg-blue-300 hover:bg-blue-200 text-l hover:text-primary p-2 m-2 text-left flex flex-row"}," Upgrade from CPU to GPU "))])])]),d("tr",null,[aQe,d("td",null,[d("div",lQe,[ce(d("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[22]||(e[22]=m=>o.configFile.auto_save=m),onChange:e[23]||(e[23]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_save]])])])]),d("tr",null,[cQe,d("td",null,[d("div",dQe,[ce(d("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[24]||(e[24]=m=>o.configFile.auto_update=m),onChange:e[25]||(e[25]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_update]])])])])])]),_:1}),he(i,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",uQe,[d("tr",null,[_Qe,d("td",pQe,[ce(d("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[26]||(e[26]=m=>o.configFile.user_name=m),onChange:e[27]||(e[27]=m=>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),[[De,o.configFile.user_name]])])]),d("tr",null,[mQe,d("td",gQe,[ce(d("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[28]||(e[28]=m=>o.configFile.user_description=m),onChange:e[29]||(e[29]=m=>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),[[De,o.configFile.user_description]])])]),d("tr",null,[fQe,d("td",hQe,[ce(d("input",{type:"checkbox",id:"override_personality_model_parameters",required:"","onUpdate:modelValue":e[30]||(e[30]=m=>o.configFile.override_personality_model_parameters=m),onChange:e[31]||(e[31]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.override_personality_model_parameters]])])]),d("tr",null,[EQe,d("td",bQe,[d("label",SQe,[d("img",{src:"/user_infos/"+o.configFile.user_avatar,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yQe)]),d("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[32]||(e[32]=(...m)=>o.uploadAvatar&&o.uploadAvatar(...m))},null,32)])]),d("tr",null,[vQe,d("td",null,[d("div",TQe,[ce(d("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[33]||(e[33]=m=>o.configFile.use_user_name_in_discussions=m),onChange:e[34]||(e[34]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_user_name_in_discussions]])])])])])]),_:1}),he(i,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",CQe,[d("tr",null,[RQe,d("td",null,[d("div",xQe,[ce(d("input",{type:"checkbox",id:"use_files",required:"","onUpdate:modelValue":e[35]||(e[35]=m=>o.configFile.use_files=m),onChange:e[36]||(e[36]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_files]])])])]),d("tr",null,[OQe,d("td",null,[d("div",AQe,[ce(d("input",{type:"checkbox",id:"use_discussions_history",required:"","onUpdate:modelValue":e[37]||(e[37]=m=>o.configFile.use_discussions_history=m),onChange:e[38]||(e[38]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.use_discussions_history]])])])]),d("tr",null,[NQe,d("td",null,[d("div",wQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[39]||(e[39]=m=>o.configFile.data_vectorization_visualize_on_vectorization=m),onChange:e[40]||(e[40]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_visualize_on_vectorization]])])])]),d("tr",null,[IQe,d("td",null,[d("div",DQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_activate",required:"","onUpdate:modelValue":e[41]||(e[41]=m=>o.configFile.data_vectorization_activate=m),onChange:e[42]||(e[42]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_activate]])])])]),d("tr",null,[kQe,d("td",null,[d("div",MQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[43]||(e[43]=m=>o.configFile.data_vectorization_build_keys_words=m),onChange:e[44]||(e[44]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_build_keys_words]])])])]),d("tr",null,[LQe,d("td",null,[ce(d("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[45]||(e[45]=m=>o.configFile.data_vectorization_method=m),onChange:e[46]||(e[46]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},UQe,544),[[Kt,o.configFile.data_vectorization_method]])])]),d("tr",null,[BQe,d("td",null,[ce(d("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[47]||(e[47]=m=>o.configFile.data_visualization_method=m),onChange:e[48]||(e[48]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},YQe,544),[[Kt,o.configFile.data_visualization_method]])])]),d("tr",null,[VQe,d("td",null,[d("div",zQe,[ce(d("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[49]||(e[49]=m=>o.configFile.data_vectorization_save_db=m),onChange:e[50]||(e[50]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.data_vectorization_save_db]])])])]),d("tr",null,[HQe,d("td",null,[ce(d("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[51]||(e[51]=m=>o.configFile.data_vectorization_chunk_size=m),onChange:e[52]||(e[52]=m=>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),[[De,o.configFile.data_vectorization_chunk_size]]),ce(d("input",{"onUpdate:modelValue":e[53]||(e[53]=m=>o.configFile.data_vectorization_chunk_size=m),type:"number",onChange:e[54]||(e[54]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_chunk_size]])])]),d("tr",null,[$Qe,d("td",null,[ce(d("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[55]||(e[55]=m=>o.configFile.data_vectorization_overlap_size=m),onChange:e[56]||(e[56]=m=>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),[[De,o.configFile.data_vectorization_overlap_size]]),ce(d("input",{"onUpdate:modelValue":e[57]||(e[57]=m=>o.configFile.data_vectorization_overlap_size=m),type:"number",onChange:e[58]||(e[58]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_overlap_size]])])]),d("tr",null,[WQe,d("td",null,[ce(d("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[59]||(e[59]=m=>o.configFile.data_vectorization_nb_chunks=m),onChange:e[60]||(e[60]=m=>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),[[De,o.configFile.data_vectorization_nb_chunks]]),ce(d("input",{"onUpdate:modelValue":e[61]||(e[61]=m=>o.configFile.data_vectorization_nb_chunks=m),type:"number",onChange:e[62]||(e[62]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.data_vectorization_nb_chunks]])])])])]),_:1}),he(i,{title:"Audio",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[d("table",KQe,[d("tr",null,[QQe,d("td",null,[d("div",jQe,[ce(d("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[63]||(e[63]=m=>o.configFile.audio_auto_send_input=m),onChange:e[64]||(e[64]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.audio_auto_send_input]])])])]),d("tr",null,[ZQe,d("td",null,[d("div",XQe,[ce(d("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[65]||(e[65]=m=>o.configFile.auto_speak=m),onChange:e[66]||(e[66]=m=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[tt,o.configFile.auto_speak]])])])]),d("tr",null,[JQe,d("td",null,[ce(d("input",{id:"audio_pitch","onUpdate:modelValue":e[67]||(e[67]=m=>o.configFile.audio_pitch=m),onChange:e[68]||(e[68]=m=>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),[[De,o.configFile.audio_pitch]]),ce(d("input",{"onUpdate:modelValue":e[69]||(e[69]=m=>o.configFile.audio_pitch=m),onChange:e[70]||(e[70]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.audio_pitch]])])]),d("tr",null,[eje,d("td",null,[ce(d("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[71]||(e[71]=m=>o.configFile.audio_silenceTimer=m),onChange:e[72]||(e[72]=m=>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),[[De,o.configFile.audio_silenceTimer]]),ce(d("input",{"onUpdate:modelValue":e[73]||(e[73]=m=>o.configFile.audio_silenceTimer=m),onChange:e[74]||(e[74]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[De,o.configFile.audio_silenceTimer]])])]),d("tr",null,[tje,d("td",null,[ce(d("select",{id:"audio_in_language","onUpdate:modelValue":e[75]||(e[75]=m=>o.configFile.audio_in_language=m),onChange:e[76]||(e[76]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(v(!0),T(Ne,null,Be(o.audioLanguages,m=>(v(),T("option",{key:m.code,value:m.code},j(m.name),9,nje))),128))],544),[[Kt,o.configFile.audio_in_language]])])]),d("tr",null,[rje,d("td",null,[ce(d("select",{id:"audio_out_voice","onUpdate:modelValue":e[77]||(e[77]=m=>o.configFile.audio_out_voice=m),onChange:e[78]||(e[78]=m=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(v(!0),T(Ne,null,Be(s.audioVoices,m=>(v(),T("option",{key:m.name,value:m.name},j(m.name),9,sje))),128))],544),[[Kt,o.configFile.audio_out_voice]])])])])]),_:1})])],2)]),d("div",oje,[d("div",ije,[d("button",{onClick:e[79]||(e[79]=_e(m=>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"},[ce(d("div",null,lje,512),[[We,s.bzc_collapsed]]),ce(d("div",null,dje,512),[[We,!s.bzc_collapsed]]),uje,o.configFile.binding_name?U("",!0):(v(),T("div",_je,[pje,Re(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",mje,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",gje,[d("div",fje,[d("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,hje),d("h3",Eje,j(o.binding_name),1)])])):U("",!0)])]),d("div",{class:Ae([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[o.bindingsArr&&o.bindingsArr.length>0?(v(),T("div",bje,[d("label",Sje," Bindings: ("+j(o.bindingsArr.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"list"},{default:ke(()=>[(v(!0),T(Ne,null,Be(o.bindingsArr,(m,S)=>(v(),nt(a,{ref_for:!0,ref:"bindingZoo",key:"index-"+S+"-"+m.folder,binding:m,"on-selected":o.onSelectedBinding,"on-reinstall":o.onReinstallBinding,"on-unInstall":o.onUnInstallBinding,"on-install":o.onInstallBinding,"on-settings":o.onSettingsBinding,"on-reload-binding":o.onReloadBinding,selected:m.folder===o.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):U("",!0),s.bzl_collapsed?(v(),T("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[80]||(e[80]=m=>s.bzl_collapsed=!s.bzl_collapsed)},vje)):(v(),T("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[81]||(e[81]=m=>s.bzl_collapsed=!s.bzl_collapsed)},Cje))],2)]),d("div",Rje,[d("div",xje,[d("button",{onClick:e[82]||(e[82]=_e(m=>o.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,Aje,512),[[We,s.mzc_collapsed]]),ce(d("div",null,wje,512),[[We,!s.mzc_collapsed]]),Ije,d("div",Dje,[o.configFile.binding_name?U("",!0):(v(),T("div",kje,[Mje,Re(" Select binding first! ")])),!s.isModelSelected&&o.configFile.binding_name?(v(),T("div",Lje,[Pje,Re(" No model selected! ")])):U("",!0),o.configFile.model_name?(v(),T("div",Fje,"|")):U("",!0),o.configFile.model_name?(v(),T("div",Uje,[d("div",Bje,[d("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Gje),d("h3",qje,j(o.configFile.model_name),1)])])):U("",!0)])])]),d("div",{class:Ae([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",Yje,[d("div",Vje,[d("div",zje,[s.searchModelInProgress?(v(),T("div",Hje,Wje)):U("",!0),s.searchModelInProgress?U("",!0):(v(),T("div",Kje,jje))]),ce(d("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[83]||(e[83]=m=>s.searchModel=m),onKeyup:e[84]||(e[84]=Wr((...m)=>o.searchModel_func&&o.searchModel_func(...m),["enter"]))},null,544),[[De,s.searchModel]]),s.searchModel?(v(),T("button",{key:0,onClick:e[85]||(e[85]=_e(m=>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")):U("",!0)])]),d("div",null,[ce(d("input",{"onUpdate:modelValue":e[86]||(e[86]=m=>s.show_only_installed_models=m),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[tt,s.show_only_installed_models]]),Zje]),d("div",null,[he(l,{radioOptions:s.sortOptions,onRadioSelected:o.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),Xje,s.is_loading_zoo?(v(),T("div",Jje,nZe)):U("",!0),s.searchModel?(v(),T("div",rZe,[s.modelsFiltered.length>0?(v(),T("div",sZe,[d("label",oZe," Search results: ("+j(s.modelsFiltered.length)+") ",1),d("div",{class:Ae(["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"])},[(v(!0),T(Ne,null,Be(s.show_only_installed_models?o.filter_installed(s.modelsFiltered):s.modelsFiltered,(m,S)=>(v(),nt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+S+"-"+m.name,model:m,"is-installed":m.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onSelected,selected:m.name===o.configFile.model_name,model_type:m.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))],2)])):U("",!0)])):U("",!0),s.searchModel?U("",!0):(v(),T("div",iZe,[s.models_zoo&&s.models_zoo.length>0?(v(),T("div",aZe,[d("label",lZe," Models: ("+j(s.models_zoo.length)+") ",1),d("div",{class:Ae(["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"])},[(v(!0),T(Ne,null,Be(s.show_only_installed_models?o.filter_installed(s.models_zoo):s.models_zoo,(m,S)=>(v(),nt(u,{ref_for:!0,ref:"modelZoo",key:"index-"+S+"-"+m.name,model:m,"is-installed":m.isInstalled,"on-install":o.onInstall,"on-uninstall":o.onUninstall,"on-selected":o.onSelected,selected:m.name===o.configFile.model_name,model_type:m.model_type,"on-copy":o.onCopy,"on-copy-link":o.onCopyLink,"on-cancel-install":o.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128))],2)])):U("",!0)])),s.mzl_collapsed?(v(),T("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:"Collapse",type:"button",onClick:e[87]||(e[87]=(...m)=>o.open_mzl&&o.open_mzl(...m))},dZe)):(v(),T("button",{key:4,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[88]||(e[88]=(...m)=>o.open_mzl&&o.open_mzl(...m))},_Ze))],2)]),d("div",pZe,[d("div",mZe,[d("button",{onClick:e[89]||(e[89]=_e(m=>s.mzdc_collapsed=!s.mzdc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,fZe,512),[[We,s.mzdc_collapsed]]),ce(d("div",null,EZe,512),[[We,!s.mzdc_collapsed]]),bZe,o.binding_name?U("",!0):(v(),T("div",SZe,[yZe,Re(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",vZe,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",TZe,[d("div",CZe,[d("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,RZe),d("h3",xZe,j(o.binding_name),1)])])):U("",!0)])]),d("div",{class:Ae([{hidden:s.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",OZe,[d("div",AZe,[d("div",null,[d("div",NZe,[wZe,ce(d("input",{type:"text","onUpdate:modelValue":e[90]||(e[90]=m=>s.reference_path=m),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),[[De,s.reference_path]])]),d("button",{type:"button",onClick:e[91]||(e[91]=_e(m=>o.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?U("",!0):(v(),T("div",IZe,[d("div",DZe,[kZe,ce(d("input",{type:"text","onUpdate:modelValue":e[92]||(e[92]=m=>s.addModel.url=m),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),[[De,s.addModel.url]])]),d("button",{type:"button",onClick:e[93]||(e[93]=_e(m=>o.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?(v(),T("div",MZe,[LZe,d("div",PZe,[d("div",FZe,[d("div",UZe,[BZe,d("span",GZe,j(Math.floor(s.addModel.progress))+"%",1)]),d("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},j(s.addModel.url),9,qZe),d("div",YZe,[d("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht({width:s.addModel.progress+"%"})},null,4)]),d("div",VZe,[d("span",zZe,"Download speed: "+j(o.speed_computed)+"/s",1),d("span",HZe,j(o.downloaded_size_computed)+"/"+j(o.total_size_computed),1)])])]),d("div",$Ze,[d("div",WZe,[d("div",KZe,[d("button",{onClick:e[94]||(e[94]=_e((...m)=>o.onCancelInstall&&o.onCancelInstall(...m),["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 ")])])])])):U("",!0)])])],2)]),d("div",QZe,[d("div",jZe,[d("button",{onClick:e[96]||(e[96]=_e(m=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,XZe,512),[[We,s.pzc_collapsed]]),ce(d("div",null,eXe,512),[[We,!s.pzc_collapsed]]),tXe,o.configFile.personalities?(v(),T("div",nXe,"|")):U("",!0),d("div",rXe,j(o.active_pesonality),1),o.configFile.personalities?(v(),T("div",sXe,"|")):U("",!0),o.configFile.personalities?(v(),T("div",oXe,[o.mountedPersArr.length>0?(v(),T("div",iXe,[(v(!0),T(Ne,null,Be(o.mountedPersArr,(m,S)=>(v(),T("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:S+"-"+m.name,ref_for:!0,ref:"mountedPersonalities"},[d("div",aXe,[d("button",{onClick:_e(C=>o.onPersonalitySelected(m),["stop"])},[d("img",{src:s.bUrl+m.avatar,onError:e[95]||(e[95]=(...C)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...C)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(m.full_path)?"border-secondary":"border-transparent z-0"]),title:m.name},null,42,cXe)],8,lXe),d("button",{onClick:_e(C=>o.unmountPersonality(m),["stop"])},_Xe,8,dXe)])]))),128))])):U("",!0)])):U("",!0)])]),d("div",{class:Ae([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",pXe,[mXe,d("div",gXe,[d("div",fXe,[s.searchPersonalityInProgress?(v(),T("div",hXe,bXe)):U("",!0),s.searchPersonalityInProgress?U("",!0):(v(),T("div",SXe,vXe))]),ce(d("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[97]||(e[97]=m=>s.searchPersonality=m),onKeyup:e[98]||(e[98]=_e((...m)=>o.searchPersonality_func&&o.searchPersonality_func(...m),["stop"]))},null,544),[[De,s.searchPersonality]]),s.searchPersonality?(v(),T("button",{key:0,onClick:e[99]||(e[99]=_e(m=>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")):U("",!0)])]),s.searchPersonality?U("",!0):(v(),T("div",TXe,[d("label",CXe," Personalities Category: ("+j(s.persCatgArr.length)+") ",1),d("select",{id:"persCat",onChange:e[100]||(e[100]=m=>o.update_personality_category(m.target.value,o.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"},[(v(!0),T(Ne,null,Be(s.persCatgArr,(m,S)=>(v(),T("option",{key:S,selected:m==this.configFile.personality_category},j(m),9,RXe))),128))],32)])),d("div",null,[s.personalitiesFiltered.length>0?(v(),T("div",xXe,[d("label",OXe,j(s.searchPersonality?"Search results":"Personalities")+": ("+j(s.personalitiesFiltered.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(Ne,null,Be(s.personalitiesFiltered,(m,S)=>(v(),nt(c,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+S+"-"+m.name,personality:m,select_language:!0,full_path:m.full_path,selected:o.configFile.active_personality_id==o.configFile.personalities.findIndex(C=>C===m.full_path||C===m.full_path+":"+m.language),"on-selected":o.onPersonalitySelected,"on-mount":o.mountPersonality,"on-un-mount":o.unmountPersonality,"on-remount":o.remountPersonality,"on-reinstall":o.onPersonalityReinstall,"on-settings":o.onSettingsPersonality,"on-copy-personality-name":o.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)])):U("",!0)]),s.pzl_collapsed?(v(),T("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[101]||(e[101]=m=>s.pzl_collapsed=!s.pzl_collapsed)},NXe)):(v(),T("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[102]||(e[102]=m=>s.pzl_collapsed=!s.pzl_collapsed)},IXe))],2)]),d("div",DXe,[d("div",kXe,[d("button",{onClick:e[104]||(e[104]=_e(m=>s.ezc_collapsed=!s.ezc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,LXe,512),[[We,s.ezc_collapsed]]),ce(d("div",null,FXe,512),[[We,!s.ezc_collapsed]]),UXe,o.configFile.extensions?(v(),T("div",BXe,"|")):U("",!0),o.configFile.extensions?(v(),T("div",GXe,[o.mountedExtensions.length>0?(v(),T("div",qXe,[(v(!0),T(Ne,null,Be(o.mountedExtensions,(m,S)=>(v(),T("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:S+"-"+m.name,ref_for:!0,ref:"mountedExtensions"},[d("div",YXe,[d("button",{onClick:_e(C=>o.onPersonalitySelected(m),["stop"])},[d("img",{src:s.bUrl+m.avatar,onError:e[103]||(e[103]=(...C)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...C)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",o.configFile.active_personality_id==o.configFile.personalities.indexOf(m.full_path)?"border-secondary":"border-transparent z-0"]),title:m.name},null,42,zXe)],8,VXe),d("button",{onClick:_e(C=>o.unmountExtension(m),["stop"])},WXe,8,HXe)])]))),128))])):U("",!0)])):U("",!0)])]),d("div",{class:Ae([{hidden:s.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[d("div",KXe,[QXe,d("div",jXe,[d("div",ZXe,[s.searchExtensionInProgress?(v(),T("div",XXe,eJe)):U("",!0),s.searchExtensionInProgress?U("",!0):(v(),T("div",tJe,rJe))]),ce(d("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[105]||(e[105]=m=>s.searchPersonality=m),onKeyup:e[106]||(e[106]=_e((...m)=>o.searchPersonality_func&&o.searchPersonality_func(...m),["stop"]))},null,544),[[De,s.searchPersonality]]),s.searchPersonality?(v(),T("button",{key:0,onClick:e[107]||(e[107]=_e(m=>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")):U("",!0)])]),s.searchPersonality?U("",!0):(v(),T("div",sJe,[d("label",oJe," Extensions Category: ("+j(s.extCatgArr.length)+") ",1),d("select",{id:"persCat",onChange:e[108]||(e[108]=m=>o.update_extension_category(m.target.value,o.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"},[(v(!0),T(Ne,null,Be(s.extCatgArr,(m,S)=>(v(),T("option",{key:S,selected:m==this.extension_category},j(m),9,iJe))),128))],32)])),d("div",null,[s.extensionsFiltererd.length>0?(v(),T("div",aJe,[d("label",lJe,j(s.searchPersonality?"Search results":"Personalities")+": ("+j(s.extensionsFiltererd.length)+") ",1),d("div",{class:Ae(["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"])},[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(Ne,null,Be(s.extensionsFiltererd,(m,S)=>(v(),nt(_,{ref_for:!0,ref:"extensionsZoo",key:"index-"+S+"-"+m.name,extension:m,select_language:!0,full_path:m.full_path,"on-selected":o.onExtensionSelected,"on-mount":o.mountExtension,"on-un-mount":o.unmountExtension,"on-remount":o.remountExtension,"on-reinstall":t.onExtensionReinstall,"on-settings":t.onSettingsExtension},null,8,["extension","full_path","on-selected","on-mount","on-un-mount","on-remount","on-reinstall","on-settings"]))),128))]),_:1})],2)])):U("",!0)]),s.pzl_collapsed?(v(),T("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[109]||(e[109]=m=>s.pzl_collapsed=!s.pzl_collapsed)},dJe)):(v(),T("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[110]||(e[110]=m=>s.pzl_collapsed=!s.pzl_collapsed)},_Je))],2)]),d("div",pJe,[d("div",mJe,[d("button",{onClick:e[111]||(e[111]=_e(m=>s.mep_collapsed=!s.mep_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[ce(d("div",null,fJe,512),[[We,s.mep_collapsed]]),ce(d("div",null,EJe,512),[[We,!s.mep_collapsed]]),bJe])]),d("div",{class:Ae([{hidden:s.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),d("div",SJe,[d("div",yJe,[d("button",{onClick:e[112]||(e[112]=_e(m=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[ce(d("div",null,TJe,512),[[We,s.mc_collapsed]]),ce(d("div",null,RJe,512),[[We,!s.mc_collapsed]]),xJe])]),d("div",{class:Ae([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[d("div",OJe,[d("div",AJe,[ce(d("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[113]||(e[113]=_e(()=>{},["stop"])),"onUpdate:modelValue":e[114]||(e[114]=m=>o.configFile.override_personality_model_parameters=m),onChange:e[115]||(e[115]=m=>o.update_setting("override_personality_model_parameters",o.configFile.override_personality_model_parameters))},null,544),[[tt,o.configFile.override_personality_model_parameters]]),NJe])]),d("div",{class:Ae(o.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[d("div",wJe,[IJe,ce(d("input",{type:"text",id:"seed","onUpdate:modelValue":e[116]||(e[116]=m=>o.configFile.seed=m),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),[[De,o.configFile.seed]])]),d("div",DJe,[d("div",kJe,[d("div",MJe,[LJe,d("p",PJe,[ce(d("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[117]||(e[117]=m=>o.configFile.temperature=m),onChange:e[118]||(e[118]=m=>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),[[De,o.configFile.temperature]])])]),ce(d("input",{id:"temperature",onChange:e[119]||(e[119]=m=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[120]||(e[120]=m=>o.configFile.temperature=m),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),[[De,o.configFile.temperature]])])]),d("div",FJe,[d("div",UJe,[d("div",BJe,[GJe,d("p",qJe,[ce(d("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[121]||(e[121]=m=>o.configFile.n_predict=m),onChange:e[122]||(e[122]=m=>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),[[De,o.configFile.n_predict]])])]),ce(d("input",{id:"predict",type:"range",onChange:e[123]||(e[123]=m=>s.settingsChanged=!0),"onUpdate:modelValue":e[124]||(e[124]=m=>o.configFile.n_predict=m),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),[[De,o.configFile.n_predict]])])]),d("div",YJe,[d("div",VJe,[d("div",zJe,[HJe,d("p",$Je,[ce(d("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[125]||(e[125]=m=>o.configFile.top_k=m),onChange:e[126]||(e[126]=m=>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),[[De,o.configFile.top_k]])])]),ce(d("input",{id:"top_k",type:"range",onChange:e[127]||(e[127]=m=>s.settingsChanged=!0),"onUpdate:modelValue":e[128]||(e[128]=m=>o.configFile.top_k=m),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),[[De,o.configFile.top_k]])])]),d("div",WJe,[d("div",KJe,[d("div",QJe,[jJe,d("p",ZJe,[ce(d("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[129]||(e[129]=m=>o.configFile.top_p=m),onChange:e[130]||(e[130]=m=>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),[[De,o.configFile.top_p]])])]),ce(d("input",{id:"top_p",type:"range","onUpdate:modelValue":e[131]||(e[131]=m=>o.configFile.top_p=m),min:"0",max:"1",step:"0.01",onChange:e[132]||(e[132]=m=>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),[[De,o.configFile.top_p]])])]),d("div",XJe,[d("div",JJe,[d("div",eet,[tet,d("p",net,[ce(d("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[133]||(e[133]=m=>o.configFile.repeat_penalty=m),onChange:e[134]||(e[134]=m=>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),[[De,o.configFile.repeat_penalty]])])]),ce(d("input",{id:"repeat_penalty",onChange:e[135]||(e[135]=m=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[136]||(e[136]=m=>o.configFile.repeat_penalty=m),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),[[De,o.configFile.repeat_penalty]])])]),d("div",ret,[d("div",set,[d("div",oet,[iet,d("p",aet,[ce(d("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[137]||(e[137]=m=>o.configFile.repeat_last_n=m),onChange:e[138]||(e[138]=m=>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),[[De,o.configFile.repeat_last_n]])])]),ce(d("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[139]||(e[139]=m=>o.configFile.repeat_last_n=m),min:"0",max:"100",step:"1",onChange:e[140]||(e[140]=m=>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),[[De,o.configFile.repeat_last_n]])])])],2)],2)])],2)]),he(p,{ref:"toast"},null,512),he(g,{ref:"yesNoDialog",class:"z-20"},null,512),he(f,{ref:"addmodeldialog"},null,512),he(h,{ref:"messageBox"},null,512),he(E,{ref:"universalForm",class:"z-20"},null,512),he(b,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:o.onVariantChoiceSelected,onCloseDialog:o.oncloseVariantChoiceDialog,onChoiceValidated:o.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const det=qe(EWe,[["render",cet],["__scopeId","data-v-9abe6333"]]),uet={components:{ClipBoardTextInput:vp,Card:ao},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};xe.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},_et={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"},pet={class:"mb-4"},met=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),get=["value"],fet={class:"mb-4"},het=d("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),Eet={class:"mb-4"},bet=d("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),yet={class:"mb-4"},vet=d("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),Tet={class:"mb-4"},Cet=d("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Ret={class:"mb-4"},xet=d("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Oet={class:"mb-4"},Aet=d("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Net=d("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),wet={key:1};function Iet(t,e,n,r,s,o){const i=Pe("Card"),a=Pe("ClipBoardTextInput");return o.selectedModel!==null&&o.selectedModel.toLowerCase().includes("gptq")?(v(),T("div",_et,[d("form",{onSubmit:e[2]||(e[2]=_e((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:""},[he(i,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(i,{title:"Model",class:"",isHorizontal:!1},{default:ke(()=>[d("div",pet,[met,ce(d("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>o.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(v(!0),T(Ne,null,Be(o.models,l=>(v(),T("option",{key:l,value:l},j(l),9,get))),128))],544),[[Kt,o.selectedModel]])])]),_:1}),he(i,{title:"Data",isHorizontal:!1},{default:ke(()=>[d("div",fet,[het,he(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),he(i,{title:"Training",isHorizontal:!1},{default:ke(()=>[d("div",Eet,[bet,he(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),d("div",yet,[vet,he(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),d("div",Tet,[Cet,he(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),d("div",Ret,[xet,he(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),he(i,{title:"Output",isHorizontal:!1},{default:ke(()=>[d("div",Oet,[Aet,he(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Net]),_:1})],32)])):(v(),T("div",wet,[he(i,{title:"Info",class:"",isHorizontal:!1},{default:ke(()=>[Re(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const Det=qe(uet,[["render",Iet]]),ket={components:{ClipBoardTextInput:vp,Card:ao},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Met={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"},Let={class:"mb-4"},Pet=d("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Fet={class:"mb-4"},Uet=d("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Bet=d("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Get(t,e,n,r,s,o){const i=Pe("ClipBoardTextInput"),a=Pe("Card");return v(),T("div",Met,[d("form",{onSubmit:e[0]||(e[0]=_e((...l)=>o.submitForm&&o.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[he(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[he(a,{title:"Model",class:"",isHorizontal:!1},{default:ke(()=>[d("div",Let,[Pet,he(i,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),d("div",Fet,[Uet,he(i,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),he(a,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Bet]),_:1})],32)])}const qet=qe(ket,[["render",Get]]),Yet={name:"Discussion",emits:["delete","select","editTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,ve(()=>{Ce.replace()})},watch:{showConfirmation(){ve(()=>{Ce.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&ve(()=>{this.$refs.titleBox.focus()})},checkBoxValue(t,e){this.checkBoxValue_local=t}}},Vet=["id"],zet={class:"flex flex-row items-center gap-2"},Het={key:0},$et=["title"],Wet=["value"],Ket={class:"flex items-center flex-1 max-h-6"},Qet={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},jet=d("i",{"data-feather":"check"},null,-1),Zet=[jet],Xet=d("i",{"data-feather":"x"},null,-1),Jet=[Xet],ett={key:1,class:"flex gap-3 flex-1 items-center justify-end duration-75"},ttt=d("i",{"data-feather":"x"},null,-1),ntt=[ttt],rtt=d("i",{"data-feather":"check"},null,-1),stt=[rtt],ott={key:2,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},itt=d("i",{"data-feather":"edit-2"},null,-1),att=[itt],ltt=d("i",{"data-feather":"trash"},null,-1),ctt=[ltt];function dtt(t,e,n,r,s,o){return v(),T("div",{class:Ae([n.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-"+n.id,onClick:e[13]||(e[13]=_e(i=>o.selectEvent(),["stop"]))},[d("div",zet,[n.isCheckbox?(v(),T("div",Het,[ce(d("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]=_e(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=i=>s.checkBoxValue_local=i),onInput:e[2]||(e[2]=i=>o.checkedChangeEvent(i,n.id))},null,544),[[tt,s.checkBoxValue_local]])])):U("",!0),n.selected?(v(),T("div",{key:1,class:Ae(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent ":" bg-secondary "])},null,2)):U("",!0),n.selected?U("",!0):(v(),T("div",{key:2,class:Ae(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent ":" "])},null,2))]),s.editTitle?U("",!0):(v(),T("p",{key:0,title:n.title,class:"line-clamp-1 w-4/6 ml-1 -mx-5"},j(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,$et)),s.editTitle?(v(),T("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Wr(_e(i=>o.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Wr(_e(i=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=i=>o.chnageTitle(i.target.value)),onClick:e[6]||(e[6]=_e(()=>{},["stop"]))},null,40,Wet)):U("",!0),d("div",Ket,[s.showConfirmation&&!s.editTitleMode?(v(),T("div",Qet,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:e[7]||(e[7]=_e(i=>o.deleteEvent(),["stop"]))},Zet),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:e[8]||(e[8]=_e(i=>s.showConfirmation=!1,["stop"]))},Jet)])):U("",!0),s.showConfirmation&&s.editTitleMode?(v(),T("div",ett,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[9]||(e[9]=_e(i=>s.editTitleMode=!1,["stop"]))},ntt),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[10]||(e[10]=_e(i=>o.editTitleEvent(),["stop"]))},stt)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",ott,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=_e(i=>s.editTitleMode=!0,["stop"]))},att),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=_e(i=>s.showConfirmation=!0,["stop"]))},ctt)]))])],10,Vet)}const hT=qe(Yet,[["render",dtt]]),utt={props:{htmlContent:{type:String,required:!0}}},_tt=["innerHTML"];function ptt(t,e,n,r,s,o){return v(),T("div",null,[d("div",{innerHTML:n.htmlContent},null,8,_tt)])}const mtt=qe(utt,[["render",ptt]]);const gtt={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}}},ftt={key:0},htt={class:"toggle-icon mr-1"},Ett={key:0,class:"fas fa-plus-circle text-gray-600"},btt={key:1,class:"fas fa-minus-circle text-gray-600"},Stt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},ytt={key:0,class:"fas fa-plus-circle text-gray-600"},vtt={key:1,class:"fas fa-minus-circle text-gray-600"},Ttt=["innerHTML"];function Ctt(t,e,n,r,s,o){return o.isContentPresent?(v(),T("div",ftt,[d("div",{class:"collapsible-section cursor-pointer mb-4 font-bold hover:text-gray-900",onClick:e[0]||(e[0]=(...i)=>o.toggleCollapsible&&o.toggleCollapsible(...i))},[d("span",htt,[s.collapsed?(v(),T("i",Ett)):(v(),T("i",btt))]),Re(" "+j(n.jsonFormText),1)]),ce(d("div",null,[d("div",Stt,[o.isObject?(v(),T("span",{key:0,onClick:e[1]||(e[1]=(...i)=>o.toggleCollapsed&&o.toggleCollapsed(...i)),class:"toggle-icon cursor-pointer mr-1"},[s.collapsed?(v(),T("i",ytt)):(v(),T("i",vtt))])):U("",!0),d("pre",{innerHTML:o.formattedJson},null,8,Ttt)])],512),[[We,!s.collapsed]])])):U("",!0)}const Rtt=qe(gtt,[["render",Ctt]]),xtt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},Ott={class:"step flex items-center mb-4"},Att={class:"flex items-center justify-center w-6 h-6 mr-2"},Ntt={key:0},wtt=d("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),Itt=[wtt],Dtt={key:1},ktt=d("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Mtt=[ktt],Ltt={key:2},Ptt=d("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Ftt=[Ptt],Utt={key:0,role:"status"},Btt=d("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"},[d("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"}),d("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),Gtt=[Btt];function qtt(t,e,n,r,s,o){return v(),T("div",Ott,[d("div",Att,[n.done?U("",!0):(v(),T("div",Ntt,Itt)),n.done&&n.status?(v(),T("div",Dtt,Mtt)):U("",!0),n.done&&!n.status?(v(),T("div",Ltt,Ftt)):U("",!0)]),n.done?U("",!0):(v(),T("div",Utt,Gtt)),d("div",{class:Ae(["content flex-1 px-2",{"text-green-500":n.done,"text-yellow-500":!n.done}])},j(n.message),3)])}const Ytt=qe(xtt,[["render",qtt]]);const tS="/",Vtt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:_T,Step:Ytt,RenderHTMLJS:mtt,JsonViewer:Rtt,DynamicUIRenderer:fT},props:{message:Object,avatar:""},data(){return{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."),ve(()=>{Ce.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight})},methods:{insertTab(t){const e=t.target,n=e.selectionStart,r=e.selectionEnd,s=e.value.substring(0,n),o=e.value.substring(r),i=s+" "+o;this.message.content=i,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=n+4}),t.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let t=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.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 n=s=>{let o=this.message.content.substring(s,s+e);const i=[".","!","?",` +`];let a=-1;return i.forEach(l=>{const u=o.lastIndexOf(l);u>a&&(a=u)}),a==-1&&(a=o.length),console.log(a),a+s+1},r=()=>{if(this.message.content.includes(".")){const s=n(t),o=this.message.content.substring(t,s);this.msg.text=o,t=s+1,this.msg.onend=i=>{t{r()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length," ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{r()},1)};r()},toggleModel(){this.expanded=!this.expanded},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content),this.editMsgMode=!1},resendMessage(){this.$emit("resendMessage",this.message.id,this.message.content)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?(console.log("Avatar:",tS+this.avatar),tS+this.avatar):(console.log("No avatar found"),Ks)},defaultImg(t){t.target.src=Ks},parseDate(t){let e=new Date(Date.parse(t)),r=Math.floor((new Date-e)/1e3);return r<=1?"just now":r<20?r+" seconds ago":r<40?"half a minute ago":r<60?"less than a minute ago":r<=90?"one minute ago":r<=3540?Math.round(r/60)+" minutes ago":r<=5400?"1 hour ago":r<=86400?Math.round(r/3600)+" hours ago":r<=129600?"1 day ago":r<604800?Math.round(r/86400)+" days ago":r<=777600?"1 week ago":t},prettyDate(t){let e=new Date((t||"").replace(/-/g,"/").replace(/[TZ]/g," ")),n=(new Date().getTime()-e.getTime())/1e3,r=Math.floor(n/86400);if(!(isNaN(r)||r<0||r>=31))return r==0&&(n<60&&"just now"||n<120&&"1 minute ago"||n<3600&&Math.floor(n/60)+" minutes ago"||n<7200&&"1 hour ago"||n<86400&&Math.floor(n/3600)+" hours ago")||r==1&&"Yesterday"||r<7&&r+" days ago"||r<31&&Math.ceil(r/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{"message.content":function(t){this.$store.state.config.auto_speak&&(this.isSpeaking||this.checkForFullSentence())},"message.ui":function(t){console.log("ui changed"),console.log(this.message_ui)},showConfirmation(){ve(()=>{Ce.replace()})},editMsgMode(t){ve(()=>{Ce.replace()})},deleteMsgMode(){ve(()=>{Ce.replace()})}},computed:{message_ui:{get(){return this.message.ui}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===t.getTime()||!e.getTime())return;let r=e.getTime()-t.getTime();const s=Math.floor(r/(1e3*60*60));r-=s*(1e3*60*60);const o=Math.floor(r/(1e3*60));r-=o*(1e3*60);const i=Math.floor(r/1e3);r-=i*1e3;function a(u){return u<10&&(u="0"+u),u}return a(s)+"h:"+a(o)+"m:"+a(i)+"s"}}},ztt={class:"relative group rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Htt={class:"flex flex-row gap-2"},$tt={class:"flex-shrink-0"},Wtt={class:"group/avatar"},Ktt=["src","data-popover-target"],Qtt={class:"flex flex-col w-full flex-grow-0"},jtt={class:"flex flex-row flex-grow items-start"},Ztt={class:"flex flex-col mb-2"},Xtt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Jtt=["title"],ent=d("div",{class:"flex-grow"},null,-1),tnt={class:"flex-row justify-end mx-2"},nnt={class:"invisible group-hover:visible flex flex-row"},rnt={key:0,class:"flex items-center duration-75"},snt=d("i",{"data-feather":"x"},null,-1),ont=[snt],int=d("i",{"data-feather":"check"},null,-1),ant=[int],lnt=d("i",{"data-feather":"edit"},null,-1),cnt=[lnt],dnt=d("i",{"data-feather":"copy"},null,-1),unt=[dnt],_nt=d("i",{"data-feather":"refresh-cw"},null,-1),pnt=[_nt],mnt=d("i",{"data-feather":"fast-forward"},null,-1),gnt=[mnt],fnt={key:4,class:"flex items-center duration-75"},hnt=d("i",{"data-feather":"x"},null,-1),Ent=[hnt],bnt=d("i",{"data-feather":"check"},null,-1),Snt=[bnt],ynt=d("i",{"data-feather":"trash"},null,-1),vnt=[ynt],Tnt=d("i",{"data-feather":"thumbs-up"},null,-1),Cnt=[Tnt],Rnt={class:"flex flex-row items-center"},xnt=d("i",{"data-feather":"thumbs-down"},null,-1),Ont=[xnt],Ant={class:"flex flex-row items-center"},Nnt=d("i",{"data-feather":"volume-2"},null,-1),wnt=[Nnt],Int={class:"overflow-x-auto w-full"},Dnt={class:"flex flex-col items-start w-full"},knt={class:"flex flex-col items-start w-full"},Mnt={key:1},Lnt={class:"text-sm text-gray-400 mt-2"},Pnt={class:"flex flex-row items-center gap-2"},Fnt={key:0},Unt={class:"font-thin"},Bnt={key:1},Gnt={class:"font-thin"},qnt={key:2},Ynt={class:"font-thin"},Vnt={key:3},znt=["title"];function Hnt(t,e,n,r,s,o){const i=Pe("Step"),a=Pe("RenderHTMLJS"),l=Pe("MarkdownRenderer"),u=Pe("JsonViewer"),c=Pe("DynamicUIRenderer");return v(),T("div",ztt,[d("div",Htt,[d("div",$tt,[d("div",Wtt,[d("img",{src:o.getImgUrl(),onError:e[0]||(e[0]=_=>o.defaultImg(_)),"data-popover-target":"avatar"+n.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Ktt)])]),d("div",Qtt,[d("div",jtt,[d("div",Ztt,[d("div",Xtt,j(n.message.sender)+" ",1),n.message.created_at?(v(),T("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+o.created_at_parsed},j(o.created_at),9,Jtt)):U("",!0)]),ent,d("div",tnt,[d("div",nnt,[s.editMsgMode?(v(),T("div",rnt,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel edit",type:"button",onClick:e[1]||(e[1]=_e(_=>s.editMsgMode=!1,["stop"]))},ont),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Update message",type:"button",onClick:e[2]||(e[2]=_e((..._)=>o.updateMessage&&o.updateMessage(..._),["stop"]))},ant)])):U("",!0),s.editMsgMode?U("",!0):(v(),T("div",{key:1,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Edit message",onClick:e[3]||(e[3]=_e(_=>s.editMsgMode=!0,["stop"]))},cnt)),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Copy message to clipboard",onClick:e[4]||(e[4]=_e(_=>o.copyContentToClipboard(),["stop"]))},unt),!s.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(v(),T("div",{key:2,class:Ae(["text-lg hover:text-secondary duration-75 active:scale-90 p-2",{"text-5xl":s.editMsgMode}]),title:"Resend message",onClick:e[5]||(e[5]=_e(_=>o.resendMessage(),["stop"]))},pnt,2)):U("",!0),!s.editMsgMode&&n.message.sender==this.$store.state.mountedPers.name?(v(),T("div",{key:3,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[6]||(e[6]=_e(_=>o.continueMessage(),["stop"]))},gnt)):U("",!0),s.deleteMsgMode?(v(),T("div",fnt,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel removal",type:"button",onClick:e[7]||(e[7]=_e(_=>s.deleteMsgMode=!1,["stop"]))},Ent),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Confirm removal",type:"button",onClick:e[8]||(e[8]=_e(_=>o.deleteMsg(),["stop"]))},Snt)])):U("",!0),!s.editMsgMode&&!s.deleteMsgMode?(v(),T("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Remove message",onClick:e[9]||(e[9]=_=>s.deleteMsgMode=!0)},vnt)):U("",!0),d("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Upvote",onClick:e[10]||(e[10]=_e(_=>o.rankUp(),["stop"]))},Cnt),d("div",Rnt,[d("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote",onClick:e[11]||(e[11]=_e(_=>o.rankDown(),["stop"]))},Ont),n.message.rank!=0?(v(),T("div",{key:0,class:Ae(["rounded-full px-2 text-sm flex items-center justify-center font-bold",n.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},j(n.message.rank),3)):U("",!0)]),d("div",Ant,[d("div",{class:Ae(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2",{"text-red-500":o.isTalking}]),title:"speak",onClick:e[12]||(e[12]=_e(_=>o.speak(),["stop"]))},wnt,2)])])])]),d("div",Int,[d("div",Dnt,[(v(!0),T(Ne,null,Be(n.message.steps,(_,p)=>(v(),T("div",{key:"step-"+n.message.id+"-"+p,class:"step font-bold",style:ht({backgroundColor:_.done?"transparent":"inherit"})},[he(i,{done:_.done,message:_.message,status:_.status},null,8,["done","message","status"])],4))),128))]),d("div",knt,[(v(!0),T(Ne,null,Be(n.message.html_js_s,(_,p)=>(v(),T("div",{key:"htmljs-"+n.message.id+"-"+p,class:"htmljs font-bold",style:ht({backgroundColor:t.step.done?"transparent":"inherit"})},[he(a,{htmlContent:_},null,8,["htmlContent"])],4))),128))]),s.editMsgMode?U("",!0):(v(),nt(l,{key:0,ref:"mdRender","markdown-text":n.message.content,message_id:n.message.id},null,8,["markdown-text","message_id"])),d("div",null,[s.editMsgMode?ce((v(),T("textarea",{key:0,ref:"mdTextarea",onKeydown:e[13]||(e[13]=Wr(_e((..._)=>o.insertTab&&o.insertTab(..._),["prevent"]),["tab"])),class:"block p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll 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",rows:4,style:ht({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[14]||(e[14]=_=>n.message.content=_)},`\r + `,36)),[[De,n.message.content]]):U("",!0)]),n.message.metadata!==null?(v(),T("div",Mnt,[(v(!0),T(Ne,null,Be(n.message.metadata,(_,p)=>(v(),T("div",{key:"json-"+n.message.id+"-"+p,class:"json font-bold"},[he(u,{jsonFormText:_.title,jsonData:_.content},null,8,["jsonFormText","jsonData"])]))),128))])):U("",!0),n.message.ui!==null&&n.message.ui!==void 0&&n.message.ui!==""?(v(),nt(c,{key:2,class:"w-full h-full",code:o.message_ui},null,8,["code"])):U("",!0)]),d("div",Lnt,[d("div",Pnt,[n.message.binding?(v(),T("p",Fnt,[Re("Binding: "),d("span",Unt,j(n.message.binding),1)])):U("",!0),n.message.model?(v(),T("p",Bnt,[Re("Model: "),d("span",Gnt,j(n.message.model),1)])):U("",!0),n.message.seed?(v(),T("p",qnt,[Re("Seed: "),d("span",Ynt,j(n.message.seed),1)])):U("",!0),o.time_spent?(v(),T("p",Vnt,[Re("Time spent: "),d("span",{class:"font-thin",title:"Finished generating: "+o.finished_generating_at_parsed},j(o.time_spent),9,znt)])):U("",!0)])])])])])}const ET=qe(Vtt,[["render",Hnt]]),$nt="/";xe.defaults.baseURL="/";const Wnt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{UniversalForm:Tp},data(){return{bUrl:$nt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},mountedPers:{get(){return this.$store.state.mountedPers},set(t){this.$store.commit("setMountedPers",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{onSettingsPersonality(t){try{xe.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+t.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_personality_settings",n).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. `+r,4,!1)})}catch(r){this.$refs.toast.showToast(`Did not get Personality settings responses. - Endpoint error: `+r.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(ve(()=>{Ce.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms}}},Knt={class:"w-fit select-none"},Qnt={key:0,class:"flex -space-x-4"},jnt=["src","title"],Znt={key:1,class:"flex -space-x-4"},Xnt=["src","title"],Jnt={key:2,title:"Loading personalities"},ert=d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1),trt=[ert];function nrt(t,e,n,r,s,o){const i=Pe("UniversalForm");return v(),T(we,null,[d("div",Knt,[o.mountedPersArr.length>1?(v(),T("div",Qnt,[d("img",{src:s.bUrl+o.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+o.mountedPers.name,onClick:e[1]||(e[1]=a=>o.onSettingsPersonality(o.mountedPers))},null,40,jnt),d("div",{class:"flex items-center justify-center w-8 h-8 cursor-pointer text-xs font-medium bg-bg-light dark:bg-bg-dark border-2 hover:border-secondary rounded-full hover:bg-bg-light-tone dark:hover:bg-bg-dark-tone dark:border-gray-800 hover:z-20 hover:-translate-y-2 duration-150 active:scale-90",onClick:e[2]||(e[2]=_e((...a)=>o.toggleShowPersList&&o.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+j(o.mountedPersArr.length-1),1)])):U("",!0),o.mountedPersArr.length==1?(v(),T("div",Znt,[d("img",{src:s.bUrl+this.$store.state.mountedPers.avatar,onError:e[3]||(e[3]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 cursor-pointer border-secondary",title:"Active personality: "+this.$store.state.mountedPers.name,onClick:e[4]||(e[4]=_e((...a)=>o.toggleShowPersList&&o.toggleShowPersList(...a),["stop"]))},null,40,Xnt)])):U("",!0),o.mountedPersArr.length==0?(v(),T("div",Jnt,trt)):U("",!0)]),he(i,{ref:"universalForm",class:"z-20"},null,512)],64)}const rrt=qe(Wnt,[["render",nrt]]);const srt="/";xe.defaults.baseURL="/";const ort={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:gT,Toast:ds,UniversalForm:Tp},name:"MountedPersonalitiesList",data(){return{bUrl:srt,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,xe.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality + Endpoint error: `+r.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},toggleShowPersList(){this.onShowPersList()},async constructor(){for(ve(()=>{Ce.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms}}},Knt={class:"w-fit select-none"},Qnt={key:0,class:"flex -space-x-4"},jnt=["src","title"],Znt={key:1,class:"flex -space-x-4"},Xnt=["src","title"],Jnt={key:2,title:"Loading personalities"},ert=d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1),trt=[ert];function nrt(t,e,n,r,s,o){const i=Pe("UniversalForm");return v(),T(Ne,null,[d("div",Knt,[o.mountedPersArr.length>1?(v(),T("div",Qnt,[d("img",{src:s.bUrl+o.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-secondary cursor-pointer",title:"Active personality: "+o.mountedPers.name,onClick:e[1]||(e[1]=a=>o.onSettingsPersonality(o.mountedPers))},null,40,jnt),d("div",{class:"flex items-center justify-center w-8 h-8 cursor-pointer text-xs font-medium bg-bg-light dark:bg-bg-dark border-2 hover:border-secondary rounded-full hover:bg-bg-light-tone dark:hover:bg-bg-dark-tone dark:border-gray-800 hover:z-20 hover:-translate-y-2 duration-150 active:scale-90",onClick:e[2]||(e[2]=_e((...a)=>o.toggleShowPersList&&o.toggleShowPersList(...a),["stop"])),title:"Click to show more"},"+"+j(o.mountedPersArr.length-1),1)])):U("",!0),o.mountedPersArr.length==1?(v(),T("div",Znt,[d("img",{src:s.bUrl+this.$store.state.mountedPers.avatar,onError:e[3]||(e[3]=(...a)=>o.personalityImgPlacehodler&&o.personalityImgPlacehodler(...a)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:z-20 cursor-pointer border-secondary",title:"Active personality: "+this.$store.state.mountedPers.name,onClick:e[4]||(e[4]=_e((...a)=>o.toggleShowPersList&&o.toggleShowPersList(...a),["stop"]))},null,40,Xnt)])):U("",!0),o.mountedPersArr.length==0?(v(),T("div",Jnt,trt)):U("",!0)]),he(i,{ref:"universalForm",class:"z-20"},null,512)],64)}const rrt=qe(Wnt,[["render",nrt]]);const srt="/";xe.defaults.baseURL="/";const ort={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:gT,Toast:ds,UniversalForm:Tp},name:"MountedPersonalitiesList",data(){return{bUrl:srt,isMounted:!1,isLoading:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(t){this.$store.commit("setConfig",t)}},personalities:{get(){return this.$store.state.personalities},set(t){this.$store.commit("setPersonalities",t)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(t){this.$store.commit("setMountedPers",t)}}},methods:{toggleShowPersList(){this.onShowPersList()},async constructor(){},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,xe.post("/reinstall_personality",{name:t.personality.full_path}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$refs.toast.showToast("Personality reinstalled successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall personality `+e.message,4,!1),{status:!1}))},onPersonalityMounted(t){this.mountPersonality(t)},onPersonalityUnMounted(t){this.unmountPersonality(t)},onPersonalityRemount(t){this.reMountPersonality(t)},async handleOnTalk(t){if(Ce.replace(),console.log("ppa",t),t){if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t);this.onTalk(t)}},async onPersonalitySelected(t){if(Ce.replace(),console.log("Selected personality : ",JSON.stringify(t.personality)),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(t.isMounted){const e=await this.select_personality(t);e&&e.status&&(await this.constructor(),this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0))}else this.onPersonalityMounted(t)}},onSettingsPersonality(t){try{xe.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+t.personality.name,"Save changes","Cancel").then(n=>{try{xe.post("/set_active_personality_settings",n).then(r=>{r&&r.data?(console.log("personality set with new settings",r.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses. @@ -170,16 +170,15 @@ You need to select model before you leave, or else.`,"Ok","Cancel"),!1}},ae=t=>( Error: `+e.error,4,!1))},async reMountPersonality(t){if(console.log("remount pers",t),!t)return;if(!this.configFile.personalities.includes(t.personality.full_path)){this.$refs.toast.showToast("Personality not mounted",4,!1);return}const e=await this.remount_personality(t.personality);console.log("remount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality remounted",4,!0),t.isMounted=!0,this.onMounted(this),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality Error: `+e.error,4,!1))},async unmountPersonality(t){if(!t)return;console.log(`Unmounting ${JSON.stringify(t.personality)}`);const e=await this.unmount_personality(t.personality);if(e.status){console.log("unmount response",e),this.configFile.active_personality_id=e.active_personality_id,this.configFile.personalities=e.personalities;const n=this.configFile.personalities[this.configFile.active_personality_id],r=this.personalities.findIndex(a=>a.full_path==n),s=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path),o=this.personalities[r];o.isMounted=!1,o.selected=!0,this.$refs.personalitiesZoo[s].isMounted=!1,this.getMountedPersonalities(),(await this.select_personality(o)).status&&Ce.replace(),this.$refs.toast.showToast("Personality unmounted",4,!0),this.onUnMounted(this)}else this.$refs.toast.showToast(`Could not unmount personality -Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;eo.full_path==n),s=this.personalities[r];if(s)console.log("adding from config"),t.push(s);else{console.log("adding default");const o=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),i=this.personalities[o];t.push(i)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;es.full_path==n);if(console.log("discussionPersonalities -includes",r),console.log("discussionPersonalities -mounted list",this.mountedPersArr),r==-1){const s=this.personalities.findIndex(i=>i.full_path==n),o=this.personalities[s];console.log("adding discucc121",o,n),o&&(this.mountedPersArr.push(o),console.log("adding discucc",o))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},Rp=t=>(hr("data-v-d16a58b9"),t=t(),Er(),t),irt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},art={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},lrt=Rp(()=>d("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"},[d("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"}),d("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)),crt=Rp(()=>d("span",{class:"sr-only"},"Loading...",-1)),drt=[lrt,crt],urt=Rp(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_rt=[urt],prt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},mrt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function grt(t,e,n,r,s,o){const i=Pe("personality-entry"),a=Pe("Toast"),l=Pe("UniversalForm");return v(),T("div",irt,[s.isLoading?(v(),T("div",art,drt)):U("",!0),d("div",null,[o.mountedPersArr.length>0?(v(),T("div",{key:0,class:Ae(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[d("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=_e((...u)=>o.toggleShowPersList&&o.toggleShowPersList(...u),["stop"]))},_rt),d("label",prt," Mounted Personalities: ("+j(o.mountedPersArr.length)+") ",1),d("div",mrt,[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(u,c)=>(v(),nt(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+c+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:o.configFile.personalities[o.configFile.active_personality_id]===u.full_path||o.configFile.personalities[o.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":o.onPersonalitySelected,"on-mount":o.onPersonalityMounted,"on-un-mount":o.onPersonalityUnMounted,"on-remount":o.onPersonalityRemount,"on-settings":o.onSettingsPersonality,"on-reinstall":o.onPersonalityReinstall,"on-talk":o.handleOnTalk},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-settings","on-reinstall","on-talk"]))),128))]),_:1})])],2)):U("",!0)]),he(a,{ref:"toast"},null,512),he(l,{ref:"universalForm",class:"z-20"},null,512)])}const frt=qe(ort,[["render",grt],["__scopeId","data-v-d16a58b9"]]);const hrt={components:{InteractiveMenu:lo},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){nextTick(()=>{Ce.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};Ne.on("file_received",r=>{r.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file -`+r.error,4,!1),this.loading=!1,Ne.off("file_received")}),Ne.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){nextTick(()=>{Ce.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},mounted(){this.commands=this.commandsList,document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},Ert=t=>(hr("data-v-52cfa09c"),t=t(),Er(),t),brt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},Srt=Ert(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),yrt=[Srt];function vrt(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return s.loading?(v(),T("div",brt,yrt)):(v(),nt(i,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const Trt=qe(hrt,[["render",vrt],["__scopeId","data-v-52cfa09c"]]);console.log("modelImgPlaceholder:",zn);const Crt="/",Rrt={name:"ChatBox",emits:["messageSentEvent","stopGenerating","loaded","createEmptyMessage"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{Toast:ds,MountedPersonalities:rrt,MountedPersonalitiesList:frt,PersonalitiesCommands:Trt,InteractiveMenu:lo},setup(){},data(){return{modelImgPlaceholder:zn,bUrl:Crt,message:"",selecting_model:!1,selectedModel:"",isLesteningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:""}},computed:{config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;eo.full_path==n),s=this.personalities[r];if(s)console.log("adding from config"),t.push(s);else{console.log("adding default");const o=this.personalities.findIndex(a=>a.full_path=="english/generic/lollms"),i=this.personalities[o];t.push(i)}}if(this.mountedPersArr=[],this.mountedPersArr=t,console.log("discussionPersonalities",this.discussionPersonalities),this.discussionPersonalities!=null&&this.discussionPersonalities.length>0)for(let e=0;es.full_path==n);if(console.log("discussionPersonalities -includes",r),console.log("discussionPersonalities -mounted list",this.mountedPersArr),r==-1){const s=this.personalities.findIndex(i=>i.full_path==n),o=this.personalities[s];console.log("adding discucc121",o,n),o&&(this.mountedPersArr.push(o),console.log("adding discucc",o))}}this.isLoading=!1,console.log("getMountedPersonalities",this.mountedPersArr),console.log("fig",this.configFile)}}},Rp=t=>(hr("data-v-d16a58b9"),t=t(),Er(),t),irt={class:"text-left overflow-visible text-base font-semibold cursor-pointer select-none items-center flex flex-col flex-grow w-full overflow-x-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},art={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},lrt=Rp(()=>d("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"},[d("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"}),d("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)),crt=Rp(()=>d("span",{class:"sr-only"},"Loading...",-1)),drt=[lrt,crt],urt=Rp(()=>d("i",{"data-feather":"chevron-down"},null,-1)),_rt=[urt],prt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},mrt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function grt(t,e,n,r,s,o){const i=Pe("personality-entry"),a=Pe("Toast"),l=Pe("UniversalForm");return v(),T("div",irt,[s.isLoading?(v(),T("div",art,drt)):U("",!0),d("div",null,[o.mountedPersArr.length>0?(v(),T("div",{key:0,class:Ae(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[d("button",{class:"mt-0 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Close personality list",type:"button",onClick:e[0]||(e[0]=_e((...u)=>o.toggleShowPersList&&o.toggleShowPersList(...u),["stop"]))},_rt),d("label",prt," Mounted Personalities: ("+j(o.mountedPersArr.length)+") ",1),d("div",mrt,[he(gn,{name:"bounce"},{default:ke(()=>[(v(!0),T(Ne,null,Be(this.$store.state.mountedPersArr,(u,c)=>(v(),nt(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+c+"-"+u.name,personality:u,full_path:u.full_path,select_language:!1,selected:o.configFile.personalities[o.configFile.active_personality_id]===u.full_path||o.configFile.personalities[o.configFile.active_personality_id]===u.full_path+":"+u.language,"on-selected":o.onPersonalitySelected,"on-mount":o.onPersonalityMounted,"on-un-mount":o.onPersonalityUnMounted,"on-remount":o.onPersonalityRemount,"on-settings":o.onSettingsPersonality,"on-reinstall":o.onPersonalityReinstall,"on-talk":o.handleOnTalk},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-settings","on-reinstall","on-talk"]))),128))]),_:1})])],2)):U("",!0)]),he(a,{ref:"toast"},null,512),he(l,{ref:"universalForm",class:"z-20"},null,512)])}const frt=qe(ort,[["render",grt],["__scopeId","data-v-d16a58b9"]]);const hrt={components:{InteractiveMenu:lo},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){nextTick(()=>{Ce.replace()})},methods:{isHTML(t){const n=new DOMParser().parseFromString(t,"text/html");return Array.from(n.body.childNodes).some(r=>r.nodeType===Node.ELEMENT_NODE)},selectFile(t,e){const n=document.createElement("input");n.type="file",n.accept=t,n.onchange=r=>{this.selectedFile=r.target.files[0],console.log("File selected"),e()},n.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const n={filename:this.selectedFile.name,fileData:e.result};Ie.on("file_received",r=>{r.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file +`+r.error,4,!1),this.loading=!1,Ie.off("file_received")}),Ie.emit("send_file",n)},e.readAsDataURL(this.selectedFile)},async constructor(){nextTick(()=>{Ce.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(t){this.showMenu=!this.showMenu,t.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(t.hasOwnProperty("file_types")?t.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(t.value)},handleClickOutside(t){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(t.target)&&(this.showMenu=!1)}},mounted(){this.commands=this.commandsList,document.addEventListener("click",this.handleClickOutside)},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},Ert=t=>(hr("data-v-52cfa09c"),t=t(),Er(),t),brt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},Srt=Ert(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),yrt=[Srt];function vrt(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return s.loading?(v(),T("div",brt,yrt)):(v(),nt(i,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const Trt=qe(hrt,[["render",vrt],["__scopeId","data-v-52cfa09c"]]);console.log("modelImgPlaceholder:",zn);const Crt="/",Rrt={name:"ChatBox",emits:["messageSentEvent","stopGenerating","loaded","createEmptyMessage"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{Toast:ds,MountedPersonalities:rrt,MountedPersonalitiesList:frt,PersonalitiesCommands:Trt,InteractiveMenu:lo},setup(){},data(){return{modelImgPlaceholder:zn,bUrl:Crt,message:"",selecting_model:!1,selectedModel:"",isLesteningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:""}},computed:{config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},allDiscussionPersonalities(){if(this.discussionList.length>0){let t=[];for(let e=0;e-1?this.$refs.toast.showToast(`Selected personality: `+t.name,4,!0):this.$refs.toast.showToast(`Error on select personality: -`+t.name,4,!1)}else console.log("mounting pers"),this.mountPersonality(t);ve(()=>{Ce.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const n={id:this.$store.state.config.personalities.findIndex(r=>r===t.full_path)};try{const r=await xe.post("/select_personality",n);if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(t){t.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const n=new MouseEvent("click");e.dispatchEvent(n)},setModel(t){console.log("Setting model to "+t.name),this.selecting_model=!0,this.selectedModel=t,xe.post("/update_setting",{setting_name:"model_name",setting_value:t.name}).then(async e=>{console.log(e),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshConfig"),this.$refs.toast.showToast(`Model changed to ${t.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$refs.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){xe.get("/clear_personality_files_list").then(t=>{t.data.status?console.log("Files removed"):console.log("Files couldn't be removed")}),this.filesList=[],this.isFileSentList=[]},send_file(t,e){new FormData().append("file",t),console.log("Uploading file");const r=new FileReader;r.onload=()=>{const s={filename:t.name,fileData:r.result};Ne.on("file_received",o=>{if(o.status)console.log(o.filename),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.onShowToastMessage("File uploaded successfully",4,!0);else{this.onShowToastMessage(`Couldn't upload file -`+o.error,4,!1);try{this.filesList.removeItem(t)}catch{}}Ne.off("file_received"),e()}),Ne.emit("send_file",s)},r.readAsDataURL(t)},makeAnEmptyMessage(){this.$emit("createEmptyMessage")},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(t){this.showPersonalities=!this.showPersonalities},handleOnTalk(t){this.showPersonalities=!1,this.onTalk(t)},onMountFun(t){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(t){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(t){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(t){return ve(()=>{Ce.replace()}),Xt(t)},removeItem(t){this.filesList=this.filesList.filter(e=>e!=t)},sendMessageEvent(t){this.filesList=[],this.$emit("messageSentEvent",t)},submitOnEnter(t){t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){console.log("Adding files");const e=[...t.target.files];let n=0;const r=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[n];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{n++,r()})};r()}},watch:{showfilesList(){ve(()=>{Ce.replace()})},loading(t,e){ve(()=>{Ce.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Ce.replace()})},activated(){ve(()=>{Ce.replace()})}},dt=t=>(hr("data-v-7adef201"),t=t(),Er(),t),xrt={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Ort={key:0,class:"flex items-center justify-center w-full"},Art={class:"flex flex-row p-2 rounded-t-lg"},Nrt=dt(()=>d("label",{for:"chat",class:"sr-only"},"Send message",-1)),wrt={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Irt={class:"flex flex-col gap-2"},Drt={class:"flex"},krt=["title"],Mrt=dt(()=>d("i",{"data-feather":"list"},null,-1)),Lrt=[Mrt],Prt={key:0},Frt={class:"flex flex-col max-h-64"},Urt=["title"],Brt={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},Grt={key:0,filesList:"",role:"status"},qrt=dt(()=>d("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"},[d("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"}),d("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)),Yrt=dt(()=>d("span",{class:"sr-only"},"Loading...",-1)),Vrt=[qrt,Yrt],zrt=dt(()=>d("div",null,[d("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Hrt=dt(()=>d("div",{class:"grow"},null,-1)),$rt={class:"flex flex-row items-center"},Wrt={class:"whitespace-nowrap"},Krt=["onClick"],Qrt=dt(()=>d("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),jrt=[Qrt],Zrt={key:1,class:"flex items-center mx-1"},Xrt={class:"whitespace-nowrap flex flex-row gap-2"},Jrt=dt(()=>d("p",{class:"font-bold"}," Total size: ",-1)),est=dt(()=>d("div",{class:"grow"},null,-1)),tst=dt(()=>d("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),nst=[tst],rst={key:2,class:"mx-1"},sst={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},ost={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},ist=dt(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Selecting model...")],-1)),ast=[ist],lst={class:"w-fit group relative"},cst={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},dst={key:0,class:"group items-center flex flex-row"},ust=["onClick"],_st=["src","title"],pst={class:"group items-center flex flex-row"},mst=["src","title"],gst={class:"w-fit group relative"},fst={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},hst={key:0,class:"group items-center flex flex-row"},Est=["onClick"],bst=["src","title"],Sst={class:"w-fit"},yst={class:"relative grow"},vst=dt(()=>d("i",{"data-feather":"file-plus"},null,-1)),Tst=[vst],Cst={class:"inline-flex justify-center rounded-full"},Rst=dt(()=>d("i",{"data-feather":"mic"},null,-1)),xst=[Rst],Ost=dt(()=>d("i",{"data-feather":"message-square"},null,-1)),Ast=dt(()=>d("span",{class:"sr-only"},"New empty message",-1)),Nst=[Ost,Ast],wst=dt(()=>d("i",{"data-feather":"send"},null,-1)),Ist=dt(()=>d("span",{class:"sr-only"},"Send message",-1)),Dst=[wst,Ist],kst={key:2,title:"Waiting for reply"},Mst=dt(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),Lst=[Mst];function Pst(t,e,n,r,s,o){const i=Pe("MountedPersonalitiesList"),a=Pe("MountedPersonalities"),l=Pe("PersonalitiesCommands"),u=Pe("Toast");return v(),T(we,null,[d("div",xrt,[n.loading?(v(),T("div",Ort,[d("div",Art,[d("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=_e((...c)=>o.stopGenerating&&o.stopGenerating(...c),["stop"]))}," Stop generating ")])])):U("",!0),d("form",null,[Nrt,d("div",wrt,[d("div",Irt,[d("div",Drt,[s.filesList.length>0?(v(),T("button",{key:0,class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=_e(c=>s.showfilesList=!s.showfilesList,["stop"]))},Lrt,8,krt)):U("",!0)]),s.filesList.length>0&&s.showfilesList==!0?(v(),T("div",Prt,[d("div",Frt,[he(gn,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:ke(()=>[(v(!0),T(we,null,Be(s.filesList,(c,_)=>(v(),T("div",{key:_+"-"+c.name},[d("div",{class:"m-1",title:c.name},[d("div",Brt,[s.isFileSentList[_]?U("",!0):(v(),T("div",Grt,Vrt)),zrt,d("div",{class:Ae(["line-clamp-1 w-3/5",s.isFileSentList[_]?"text-green-200":"text-red-200"])},j(c.name),3),Hrt,d("div",$rt,[d("p",Wrt,j(o.computedFileSize(c.size)),1),d("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:p=>o.removeItem(c)},jrt,8,Krt)])])],8,Urt)]))),128))]),_:1})])])):U("",!0),s.filesList.length>0?(v(),T("div",Zrt,[d("div",Xrt,[Jrt,Re(" "+j(s.totalSize)+" ("+j(s.filesList.length)+") ",1)]),est,d("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>o.clear_files&&o.clear_files(...c))},nst)])):U("",!0),s.showPersonalities?(v(),T("div",rst,[he(i,{ref:"mountedPersList",onShowPersList:o.onShowPersListFun,"on-mounted":o.onMountFun,"on-un-mounted":o.onUnmountFun,"on-remounted":t.onRemountFun,"on-talk":o.handleOnTalk,discussionPersonalities:o.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):U("",!0),d("div",sst,[s.selecting_model?(v(),T("div",ost,ast)):U("",!0),d("div",lst,[d("div",cst,[(v(!0),T(we,null,Be(this.$store.state.installedModels,(c,_)=>(v(),T("div",{class:"w-full",key:_+"-"+c.name,ref_for:!0,ref:"installedModels"},[c.name!=this.$store.state.config.model_name?(v(),T("div",dst,[d("button",{onClick:_e(p=>o.setModel(c),["prevent"]),class:"w-8 h-8"},[d("img",{src:c.icon?c.icon:s.modelImgPlaceholder,onError:e[3]||(e[3]=(...p)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...p)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:c.name},null,40,_st)],8,ust)])):U("",!0)]))),128))]),d("div",pst,[d("button",{onClick:e[5]||(e[5]=_e(c=>o.showModelConfig(),["prevent"])),class:"w-8 h-8"},[d("img",{src:this.$store.state.currentModel.icon?this.$store.state.currentModel.icon:s.modelImgPlaceholder,onError:e[4]||(e[4]=(...c)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...c)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:this.$store.state.currentModel?this.$store.state.currentModel.name:"unknown"},null,40,mst)])])]),d("div",gst,[d("div",fst,[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(c,_)=>(v(),T("div",{class:"w-full",key:_+"-"+c.name,ref_for:!0,ref:"mountedPersonalities"},[_!=this.$store.state.config.active_personality_id?(v(),T("div",hst,[d("button",{onClick:_e(p=>o.onPersonalitySelected(c),["prevent"]),class:"w-8 h-8"},[d("img",{src:s.bUrl+c.avatar,onError:e[6]||(e[6]=(...p)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...p)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(c.full_path)?"border-secondary":"border-transparent z-0"]),title:c.name},null,42,bst)],8,Est)])):U("",!0)]))),128))]),he(a,{ref:"mountedPers",onShowPersList:o.onShowPersListFun,onReady:o.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),d("div",Sst,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(v(),nt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendMessageEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):U("",!0)]),d("div",yst,[ce(d("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=c=>s.message=c),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[8]||(e[8]=Wr(_e(c=>o.submitOnEnter(c),["exact"]),["enter"]))},`\r +`+t.name,4,!1)}else console.log("mounting pers"),this.mountPersonality(t);ve(()=>{Ce.replace()})}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};const n={id:this.$store.state.config.personalities.findIndex(r=>r===t.full_path)};try{const r=await xe.post("/select_personality",n);if(r)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),r.data}catch(r){console.log(r.message,"select_personality - settings");return}},emitloaded(){this.$emit("loaded")},showModels(t){t.preventDefault();const e=this.$refs.modelsSelectionList;console.log(e);const n=new MouseEvent("click");e.dispatchEvent(n)},setModel(t){console.log("Setting model to "+t.name),this.selecting_model=!0,this.selectedModel=t,xe.post("/update_setting",{setting_name:"model_name",setting_value:t.name}).then(async e=>{console.log(e),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshConfig"),this.$refs.toast.showToast(`Model changed to ${t.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$refs.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){xe.get("/clear_personality_files_list").then(t=>{t.data.status?console.log("Files removed"):console.log("Files couldn't be removed")}),this.filesList=[],this.isFileSentList=[]},send_file(t,e){const n=new FileReader,r=24*1024;let s=0,o=0;n.onloadend=()=>{if(n.error){console.error("Error reading file:",n.error);return}const a=n.result,l=s+a.byteLength>=t.size;Ie.emit("send_file_chunk",{filename:t.name,chunk:a,offset:s,isLastChunk:l,chunkIndex:o}),s+=a.byteLength,o++,l?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.onShowToastMessage("File uploaded successfully",4,!0),e()):i()};function i(){const a=t.slice(s,s+r);n.readAsArrayBuffer(a)}console.log("Uploading file"),i()},makeAnEmptyMessage(){this.$emit("createEmptyMessage")},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=t=>{let e="";for(let n=t.resultIndex;n{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=t=>{console.error("Speech recognition error:",t.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},onPersonalitiesReadyFun(){this.personalities_ready=!0},onShowPersListFun(t){this.showPersonalities=!this.showPersonalities},handleOnTalk(t){this.showPersonalities=!1,this.onTalk(t)},onMountFun(t){console.log("Mounting personality"),this.$refs.mountedPers.constructor()},onUnmountFun(t){console.log("Unmounting personality"),this.$refs.mountedPers.constructor()},onRemount(t){console.log("Remounting chat"),this.$refs.mountedPers.constructor()},computedFileSize(t){return ve(()=>{Ce.replace()}),Xt(t)},removeItem(t){this.filesList=this.filesList.filter(e=>e!=t)},sendMessageEvent(t){this.filesList=[],this.$emit("messageSentEvent",t)},submitOnEnter(t){t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){console.log("Adding files");const e=[...t.target.files];let n=0;const r=()=>{if(n>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[n];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{n++,r()})};r()}},watch:{showfilesList(){ve(()=>{Ce.replace()})},loading(t,e){ve(()=>{Ce.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Ce.replace()})},activated(){ve(()=>{Ce.replace()})}},dt=t=>(hr("data-v-358087cd"),t=t(),Er(),t),xrt={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Ort={key:0,class:"flex items-center justify-center w-full"},Art={class:"flex flex-row p-2 rounded-t-lg"},Nrt=dt(()=>d("label",{for:"chat",class:"sr-only"},"Send message",-1)),wrt={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Irt={class:"flex flex-col gap-2"},Drt={class:"flex"},krt=["title"],Mrt=dt(()=>d("i",{"data-feather":"list"},null,-1)),Lrt=[Mrt],Prt={key:0},Frt={class:"flex flex-col max-h-64"},Urt=["title"],Brt={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},Grt={key:0,filesList:"",role:"status"},qrt=dt(()=>d("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"},[d("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"}),d("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)),Yrt=dt(()=>d("span",{class:"sr-only"},"Loading...",-1)),Vrt=[qrt,Yrt],zrt=dt(()=>d("div",null,[d("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Hrt=dt(()=>d("div",{class:"grow"},null,-1)),$rt={class:"flex flex-row items-center"},Wrt={class:"whitespace-nowrap"},Krt=["onClick"],Qrt=dt(()=>d("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),jrt=[Qrt],Zrt={key:1,class:"flex items-center mx-1"},Xrt={class:"whitespace-nowrap flex flex-row gap-2"},Jrt=dt(()=>d("p",{class:"font-bold"}," Total size: ",-1)),est=dt(()=>d("div",{class:"grow"},null,-1)),tst=dt(()=>d("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),nst=[tst],rst={key:2,class:"mx-1"},sst={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},ost={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},ist=dt(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Selecting model...")],-1)),ast=[ist],lst={class:"w-fit group relative"},cst={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},dst={key:0,class:"group items-center flex flex-row"},ust=["onClick"],_st=["src","title"],pst={class:"group items-center flex flex-row"},mst=["src","title"],gst={class:"w-fit group relative"},fst={class:"group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300"},hst={key:0,class:"group items-center flex flex-row"},Est=["onClick"],bst=["src","title"],Sst={class:"w-fit"},yst={class:"relative grow"},vst=dt(()=>d("i",{"data-feather":"file-plus"},null,-1)),Tst=[vst],Cst={class:"inline-flex justify-center rounded-full"},Rst=dt(()=>d("i",{"data-feather":"mic"},null,-1)),xst=[Rst],Ost=dt(()=>d("i",{"data-feather":"message-square"},null,-1)),Ast=dt(()=>d("span",{class:"sr-only"},"New empty message",-1)),Nst=[Ost,Ast],wst=dt(()=>d("i",{"data-feather":"send"},null,-1)),Ist=dt(()=>d("span",{class:"sr-only"},"Send message",-1)),Dst=[wst,Ist],kst={key:2,title:"Waiting for reply"},Mst=dt(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),Lst=[Mst];function Pst(t,e,n,r,s,o){const i=Pe("MountedPersonalitiesList"),a=Pe("MountedPersonalities"),l=Pe("PersonalitiesCommands"),u=Pe("Toast");return v(),T(Ne,null,[d("div",xrt,[n.loading?(v(),T("div",Ort,[d("div",Art,[d("button",{type:"button",class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel hover:bg-bg-light-tone focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:hover:bg-bg-dark-tone focus:outline-none dark:focus:ring-blue-800",onClick:e[0]||(e[0]=_e((...c)=>o.stopGenerating&&o.stopGenerating(...c),["stop"]))}," Stop generating ")])])):U("",!0),d("form",null,[Nrt,d("div",wrt,[d("div",Irt,[d("div",Drt,[s.filesList.length>0?(v(),T("button",{key:0,class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[1]||(e[1]=_e(c=>s.showfilesList=!s.showfilesList,["stop"]))},Lrt,8,krt)):U("",!0)]),s.filesList.length>0&&s.showfilesList==!0?(v(),T("div",Prt,[d("div",Frt,[he(gn,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:ke(()=>[(v(!0),T(Ne,null,Be(s.filesList,(c,_)=>(v(),T("div",{key:_+"-"+c.name},[d("div",{class:"m-1",title:c.name},[d("div",Brt,[s.isFileSentList[_]?U("",!0):(v(),T("div",Grt,Vrt)),zrt,d("div",{class:Ae(["line-clamp-1 w-3/5",s.isFileSentList[_]?"text-green-200":"text-red-200"])},j(c.name),3),Hrt,d("div",$rt,[d("p",Wrt,j(o.computedFileSize(c.size)),1),d("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:p=>o.removeItem(c)},jrt,8,Krt)])])],8,Urt)]))),128))]),_:1})])])):U("",!0),s.filesList.length>0?(v(),T("div",Zrt,[d("div",Xrt,[Jrt,Re(" "+j(s.totalSize)+" ("+j(s.filesList.length)+") ",1)]),est,d("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>o.clear_files&&o.clear_files(...c))},nst)])):U("",!0),s.showPersonalities?(v(),T("div",rst,[he(i,{ref:"mountedPersList",onShowPersList:o.onShowPersListFun,"on-mounted":o.onMountFun,"on-un-mounted":o.onUnmountFun,"on-remounted":t.onRemountFun,"on-talk":o.handleOnTalk,discussionPersonalities:o.allDiscussionPersonalities},null,8,["onShowPersList","on-mounted","on-un-mounted","on-remounted","on-talk","discussionPersonalities"])])):U("",!0),d("div",sst,[s.selecting_model?(v(),T("div",ost,ast)):U("",!0),d("div",lst,[d("div",cst,[(v(!0),T(Ne,null,Be(this.$store.state.installedModels,(c,_)=>(v(),T("div",{class:"w-full",key:_+"-"+c.name,ref_for:!0,ref:"installedModels"},[c.name!=this.$store.state.config.model_name?(v(),T("div",dst,[d("button",{onClick:_e(p=>o.setModel(c),["prevent"]),class:"w-8 h-8"},[d("img",{src:c.icon?c.icon:s.modelImgPlaceholder,onError:e[3]||(e[3]=(...p)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...p)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:c.name},null,40,_st)],8,ust)])):U("",!0)]))),128))]),d("div",pst,[d("button",{onClick:e[5]||(e[5]=_e(c=>o.showModelConfig(),["prevent"])),class:"w-8 h-8"},[d("img",{src:this.$store.state.currentModel.icon?this.$store.state.currentModel.icon:s.modelImgPlaceholder,onError:e[4]||(e[4]=(...c)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...c)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:this.$store.state.currentModel?this.$store.state.currentModel.name:"unknown"},null,40,mst)])])]),d("div",gst,[d("div",fst,[(v(!0),T(Ne,null,Be(this.$store.state.mountedPersArr,(c,_)=>(v(),T("div",{class:"w-full",key:_+"-"+c.name,ref_for:!0,ref:"mountedPersonalities"},[_!=this.$store.state.config.active_personality_id?(v(),T("div",hst,[d("button",{onClick:_e(p=>o.onPersonalitySelected(c),["prevent"]),class:"w-8 h-8"},[d("img",{src:s.bUrl+c.avatar,onError:e[6]||(e[6]=(...p)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...p)),class:Ae(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",this.$store.state.active_personality_id==this.$store.state.personalities.indexOf(c.full_path)?"border-secondary":"border-transparent z-0"]),title:c.name},null,42,bst)],8,Est)])):U("",!0)]))),128))]),he(a,{ref:"mountedPers",onShowPersList:o.onShowPersListFun,onReady:o.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),d("div",Sst,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(v(),nt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendMessageEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):U("",!0)]),d("div",yst,[ce(d("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=c=>s.message=c),title:"Hold SHIFT + ENTER to add new line",class:"inline-block no-scrollbar p-2.5 w-full text-sm text-gray-900 bg-bg-light rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Send message...",onKeydown:e[8]||(e[8]=Wr(_e(c=>o.submitOnEnter(c),["exact"]),["enter"]))},`\r \r \r - `,544),[[De,s.message]]),d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[9]||(e[9]=(...c)=>o.addFiles&&o.addFiles(...c)),multiple:""},null,544),d("button",{type:"button",onClick:e[10]||(e[10]=_e(c=>t.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},Tst)]),d("div",Cst,[d("button",{type:"button",onClick:e[11]||(e[11]=(...c)=>o.startSpeechRecognition&&o.startSpeechRecognition(...c)),class:Ae([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},xst,2),n.loading?U("",!0):(v(),T("button",{key:0,type:"button",onClick:e[12]||(e[12]=(...c)=>o.makeAnEmptyMessage&&o.makeAnEmptyMessage(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},Nst)),n.loading?U("",!0):(v(),T("button",{key:1,type:"button",onClick:e[13]||(e[13]=(...c)=>o.submit&&o.submit(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},Dst)),n.loading?(v(),T("div",kst,Lst)):U("",!0)])])])])])]),he(u,{ref:"toast"},null,512)],64)}const bT=qe(Rrt,[["render",Pst],["__scopeId","data-v-7adef201"]]),Fst={name:"WelcomeComponent",setup(){return{}}},Ust={class:"flex flex-col text-center"},Bst=G_('
Logo

Lord of Large Language Models

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),Gst=[Bst];function qst(t,e,n,r,s,o){return v(),T("div",Ust,Gst)}const ST=qe(Fst,[["render",qst]]);const Yst={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){ve(()=>{Ce.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const r=[...t.dataTransfer.items].filter(o=>o.kind==="file").map(o=>e?o.getAsFileSystemHandle():o.webkitGetAsEntry());let s=[];for await(const o of r)(o.kind==="directory"||o.isDirectory)&&s.push(o.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(o=>{s.includes(o.name)||this.fileList.push(o)}),ve(()=>{Ce.replace()}),this.$emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this.$emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,ve(()=>{Ce.replace()})}}},Vst={class:"text-4xl text-center"};function zst(t,e,n,r,s,o){return v(),nt(gn,{name:"list",tag:"div"},{default:ke(()=>[s.show?(v(),T("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=_e(i=>o.panelLeave(i),["prevent"])),onDrop:e[1]||(e[1]=_e(i=>o.panelDrop(i),["stop","prevent"]))},[d("div",{class:Ae(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",s.dropRelease?"":"pointer-events-none"])},[d("div",Vst,[si(t.$slots,"default",{},()=>[Re(" Drop your files here ")])])],2)],32)):U("",!0)]),_:3})}const g_=qe(Yst,[["render",zst]]);var Hst=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),mi=globalThis&&globalThis.__assign||function(){return mi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u")return!1;var e=Tt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function sot(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},o=e.elements[n];!It(o)||!rn(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(i){var a=s[i];a===!1?o.removeAttribute(i):o.setAttribute(i,a===!0?"":a)}))})}function oot(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],o=e.attributes[r]||{},i=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=i.reduce(function(l,u){return l[u]="",l},{});!It(s)||!rn(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}const iot={name:"applyStyles",enabled:!0,phase:"write",fn:sot,effect:oot,requires:["computeStyles"]};function en(t){return t.split("-")[0]}var ur=Math.max,Ei=Math.min,es=Math.round;function f_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function OT(){return!/^((?!chrome|android).)*safari/i.test(f_())}function ts(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,o=1;e&&It(t)&&(s=t.offsetWidth>0&&es(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&es(r.height)/t.offsetHeight||1);var i=gr(t)?Tt(t):window,a=i.visualViewport,l=!OT()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,c=(r.top+(l&&a?a.offsetTop:0))/o,_=r.width/s,p=r.height/o;return{width:_,height:p,top:c,right:u+_,bottom:c+p,left:u,x:u,y:c}}function Dp(t){var e=ts(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function AT(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ip(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bn(t){return Tt(t).getComputedStyle(t)}function aot(t){return["table","td","th"].indexOf(rn(t))>=0}function Qn(t){return((gr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ta(t){return rn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ip(t)?t.host:null)||Qn(t)}function oS(t){return!It(t)||bn(t).position==="fixed"?null:t.offsetParent}function lot(t){var e=/firefox/i.test(f_()),n=/Trident/i.test(f_());if(n&&It(t)){var r=bn(t);if(r.position==="fixed")return null}var s=ta(t);for(Ip(s)&&(s=s.host);It(s)&&["html","body"].indexOf(rn(s))<0;){var o=bn(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function uo(t){for(var e=Tt(t),n=oS(t);n&&aot(n)&&bn(n).position==="static";)n=oS(n);return n&&(rn(n)==="html"||rn(n)==="body"&&bn(n).position==="static")?e:n||lot(t)||e}function kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ms(t,e,n){return ur(t,Ei(e,n))}function cot(t,e,n){var r=Ms(t,e,n);return r>n?n:r}function NT(){return{top:0,right:0,bottom:0,left:0}}function wT(t){return Object.assign({},NT(),t)}function IT(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var dot=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,wT(typeof e!="number"?e:IT(e,co))};function uot(t){var e,n=t.state,r=t.name,s=t.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=en(n.placement),l=kp(a),u=[bt,Mt].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!i)){var _=dot(s.padding,n),p=Dp(o),g=l==="y"?Et:bt,f=l==="y"?kt:Mt,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],E=i[l]-n.rects.reference[l],b=uo(o),m=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=h/2-E/2,C=_[g],A=m-p[c]-_[f],x=m/2-p[c]/2+S,k=Ms(C,x,A),y=l;n.modifiersData[r]=(e={},e[y]=k,e.centerOffset=k-x,e)}}function _ot(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||AT(e.elements.popper,s)&&(e.elements.arrow=s))}const pot={name:"arrow",enabled:!0,phase:"main",fn:uot,effect:_ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(t){return t.split("-")[1]}var mot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function got(t,e){var n=t.x,r=t.y,s=e.devicePixelRatio||1;return{x:es(n*s)/s||0,y:es(r*s)/s||0}}function iS(t){var e,n=t.popper,r=t.popperRect,s=t.placement,o=t.variation,i=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,_=t.isFixed,p=i.x,g=p===void 0?0:p,f=i.y,h=f===void 0?0:f,E=typeof c=="function"?c({x:g,y:h}):{x:g,y:h};g=E.x,h=E.y;var b=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),S=bt,C=Et,A=window;if(u){var x=uo(n),k="clientHeight",y="clientWidth";if(x===Tt(n)&&(x=Qn(n),bn(x).position!=="static"&&a==="absolute"&&(k="scrollHeight",y="scrollWidth")),x=x,s===Et||(s===bt||s===Mt)&&o===Xs){C=kt;var R=_&&x===A&&A.visualViewport?A.visualViewport.height:x[k];h-=R-r.height,h*=l?1:-1}if(s===bt||(s===Et||s===kt)&&o===Xs){S=Mt;var w=_&&x===A&&A.visualViewport?A.visualViewport.width:x[y];g-=w-r.width,g*=l?1:-1}}var L=Object.assign({position:a},u&&mot),M=c===!0?got({x:g,y:h},Tt(n)):{x:g,y:h};if(g=M.x,h=M.y,l){var Z;return Object.assign({},L,(Z={},Z[C]=m?"0":"",Z[S]=b?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",Z))}return Object.assign({},L,(e={},e[C]=m?h+"px":"",e[S]=b?g+"px":"",e.transform="",e))}function fot(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:en(e.placement),variation:ns(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,iS(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,iS(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const hot={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fot,data:{}};var Po={passive:!0};function Eot(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,o=s===void 0?!0:s,i=r.resize,a=i===void 0?!0:i,l=Tt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Po)}),a&&l.addEventListener("resize",n.update,Po),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Po)}),a&&l.removeEventListener("resize",n.update,Po)}}const bot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eot,data:{}};var Sot={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(t){return t.replace(/left|right|bottom|top/g,function(e){return Sot[e]})}var yot={start:"end",end:"start"};function aS(t){return t.replace(/start|end/g,function(e){return yot[e]})}function Mp(t){var e=Tt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lp(t){return ts(Qn(t)).left+Mp(t).scrollLeft}function vot(t,e){var n=Tt(t),r=Qn(t),s=n.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;var u=OT();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a+Lp(t),y:l}}function Tot(t){var e,n=Qn(t),r=Mp(t),s=(e=t.ownerDocument)==null?void 0:e.body,o=ur(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),i=ur(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+Lp(t),l=-r.scrollTop;return bn(s||n).direction==="rtl"&&(a+=ur(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:l}}function Pp(t){var e=bn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function DT(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:It(t)&&Pp(t)?t:DT(ta(t))}function Ls(t,e){var n;e===void 0&&(e=[]);var r=DT(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),o=Tt(r),i=s?[o].concat(o.visualViewport||[],Pp(r)?r:[]):r,a=e.concat(i);return s?a:a.concat(Ls(ta(i)))}function h_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Cot(t,e){var n=ts(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function lS(t,e,n){return e===RT?h_(vot(t,n)):gr(e)?Cot(e,n):h_(Tot(Qn(t)))}function Rot(t){var e=Ls(ta(t)),n=["absolute","fixed"].indexOf(bn(t).position)>=0,r=n&&It(t)?uo(t):t;return gr(r)?e.filter(function(s){return gr(s)&&AT(s,r)&&rn(s)!=="body"}):[]}function xot(t,e,n,r){var s=e==="clippingParents"?Rot(t):[].concat(e),o=[].concat(s,[n]),i=o[0],a=o.reduce(function(l,u){var c=lS(t,u,r);return l.top=ur(c.top,l.top),l.right=Ei(c.right,l.right),l.bottom=Ei(c.bottom,l.bottom),l.left=ur(c.left,l.left),l},lS(t,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function kT(t){var e=t.reference,n=t.element,r=t.placement,s=r?en(r):null,o=r?ns(r):null,i=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(s){case Et:l={x:i,y:e.y-n.height};break;case kt:l={x:i,y:e.y+e.height};break;case Mt:l={x:e.x+e.width,y:a};break;case bt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=s?kp(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Jr:l[u]=l[u]-(e[c]/2-n[c]/2);break;case Xs:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function Js(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,o=n.strategy,i=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?$st:a,u=n.rootBoundary,c=u===void 0?RT:u,_=n.elementContext,p=_===void 0?Cs:_,g=n.altBoundary,f=g===void 0?!1:g,h=n.padding,E=h===void 0?0:h,b=wT(typeof E!="number"?E:IT(E,co)),m=p===Cs?Wst:Cs,S=t.rects.popper,C=t.elements[f?m:p],A=xot(gr(C)?C:C.contextElement||Qn(t.elements.popper),l,c,i),x=ts(t.elements.reference),k=kT({reference:x,element:S,strategy:"absolute",placement:s}),y=h_(Object.assign({},S,k)),R=p===Cs?y:x,w={top:A.top-R.top+b.top,bottom:R.bottom-A.bottom+b.bottom,left:A.left-R.left+b.left,right:R.right-A.right+b.right},L=t.modifiersData.offset;if(p===Cs&&L){var M=L[s];Object.keys(w).forEach(function(Z){var B=[Mt,kt].indexOf(Z)>=0?1:-1,se=[Et,kt].indexOf(Z)>=0?"y":"x";w[Z]+=M[se]*B})}return w}function Oot(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,o=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?xT:l,c=ns(r),_=c?a?sS:sS.filter(function(f){return ns(f)===c}):co,p=_.filter(function(f){return u.indexOf(f)>=0});p.length===0&&(p=_);var g=p.reduce(function(f,h){return f[h]=Js(t,{placement:h,boundary:s,rootBoundary:o,padding:i})[en(h)],f},{});return Object.keys(g).sort(function(f,h){return g[f]-g[h]})}function Aot(t){if(en(t)===wp)return[];var e=Jo(t);return[aS(t),e,aS(e)]}function Not(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,_=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,f=g===void 0?!0:g,h=n.allowedAutoPlacements,E=e.options.placement,b=en(E),m=b===E,S=l||(m||!f?[Jo(E)]:Aot(E)),C=[E].concat(S).reduce(function(Te,fe){return Te.concat(en(fe)===wp?Oot(e,{placement:fe,boundary:c,rootBoundary:_,padding:u,flipVariations:f,allowedAutoPlacements:h}):fe)},[]),A=e.rects.reference,x=e.rects.popper,k=new Map,y=!0,R=C[0],w=0;w=0,se=B?"width":"height",H=Js(e,{placement:L,boundary:c,rootBoundary:_,altBoundary:p,padding:u}),I=B?Z?Mt:bt:Z?kt:Et;A[se]>x[se]&&(I=Jo(I));var Q=Jo(I),re=[];if(o&&re.push(H[M]<=0),a&&re.push(H[I]<=0,H[Q]<=0),re.every(function(Te){return Te})){R=L,y=!1;break}k.set(L,re)}if(y)for(var X=f?3:1,pe=function(fe){var Ee=C.find(function(z){var te=k.get(z);if(te)return te.slice(0,fe).every(function(Y){return Y})});if(Ee)return R=Ee,"break"},ee=X;ee>0;ee--){var be=pe(ee);if(be==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const wot={name:"flip",enabled:!0,phase:"main",fn:Not,requiresIfExists:["offset"],data:{_skip:!1}};function cS(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function dS(t){return[Et,Mt,kt,bt].some(function(e){return t[e]>=0})}function Iot(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,i=Js(e,{elementContext:"reference"}),a=Js(e,{altBoundary:!0}),l=cS(i,r),u=cS(a,s,o),c=dS(l),_=dS(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":_})}const Dot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Iot};function kot(t,e,n){var r=en(t),s=[bt,Et].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,i=o[0],a=o[1];return i=i||0,a=(a||0)*s,[bt,Mt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Mot(t){var e=t.state,n=t.options,r=t.name,s=n.offset,o=s===void 0?[0,0]:s,i=xT.reduce(function(c,_){return c[_]=kot(_,e.rects,o),c},{}),a=i[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=i}const Lot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mot};function Pot(t){var e=t.state,n=t.name;e.modifiersData[n]=kT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Fot={name:"popperOffsets",enabled:!0,phase:"read",fn:Pot,data:{}};function Uot(t){return t==="x"?"y":"x"}function Bot(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,_=n.padding,p=n.tether,g=p===void 0?!0:p,f=n.tetherOffset,h=f===void 0?0:f,E=Js(e,{boundary:l,rootBoundary:u,padding:_,altBoundary:c}),b=en(e.placement),m=ns(e.placement),S=!m,C=kp(b),A=Uot(C),x=e.modifiersData.popperOffsets,k=e.rects.reference,y=e.rects.popper,R=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,w=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(x){if(o){var Z,B=C==="y"?Et:bt,se=C==="y"?kt:Mt,H=C==="y"?"height":"width",I=x[C],Q=I+E[B],re=I-E[se],X=g?-y[H]/2:0,pe=m===Jr?k[H]:y[H],ee=m===Jr?-y[H]:-k[H],be=e.elements.arrow,Te=g&&be?Dp(be):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:NT(),Ee=fe[B],z=fe[se],te=Ms(0,k[H],Te[H]),Y=S?k[H]/2-X-te-Ee-w.mainAxis:pe-te-Ee-w.mainAxis,ue=S?-k[H]/2+X+te+z+w.mainAxis:ee+te+z+w.mainAxis,ye=e.elements.arrow&&uo(e.elements.arrow),O=ye?C==="y"?ye.clientTop||0:ye.clientLeft||0:0,N=(Z=L==null?void 0:L[C])!=null?Z:0,F=I+Y-N-O,$=I+ue-N,W=Ms(g?Ei(Q,F):Q,I,g?ur(re,$):re);x[C]=W,M[C]=W-I}if(a){var ie,me=C==="x"?Et:bt,D=C==="x"?kt:Mt,K=x[A],G=A==="y"?"height":"width",q=K+E[me],V=K-E[D],ne=[Et,bt].indexOf(b)!==-1,oe=(ie=L==null?void 0:L[A])!=null?ie:0,ge=ne?q:K-k[G]-y[G]-oe+w.altAxis,J=ne?K+k[G]+y[G]-oe-w.altAxis:V,le=g&&ne?cot(ge,K,J):Ms(g?ge:q,K,g?J:V);x[A]=le,M[A]=le-K}e.modifiersData[r]=M}}const Got={name:"preventOverflow",enabled:!0,phase:"main",fn:Bot,requiresIfExists:["offset"]};function qot(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yot(t){return t===Tt(t)||!It(t)?Mp(t):qot(t)}function Vot(t){var e=t.getBoundingClientRect(),n=es(e.width)/t.offsetWidth||1,r=es(e.height)/t.offsetHeight||1;return n!==1||r!==1}function zot(t,e,n){n===void 0&&(n=!1);var r=It(e),s=It(e)&&Vot(e),o=Qn(e),i=ts(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||Pp(o))&&(a=Yot(e)),It(e)?(l=ts(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Lp(o))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Hot(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function s(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&s(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||s(o)}),r}function $ot(t){var e=Hot(t);return rot.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function Wot(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Kot(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var uS={placement:"bottom",modifiers:[],strategy:"absolute"};function _S(){for(var t=arguments.length,e=new Array(t),n=0;n(hr("data-v-fe0b66bd"),t=t(),Er(),t),tit={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},nit={class:"flex flex-col text-center"},rit={class:"flex flex-col text-center items-center"},sit={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},oit=Qe(()=>d("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ks,alt:"Logo"},null,-1)),iit={class:"flex flex-col items-start"},ait={class:"text-2xl"},lit=Qe(()=>d("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),cit=Qe(()=>d("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),dit=Qe(()=>d("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),uit=Qe(()=>d("p",{class:"text-2xl"},"Welcome",-1)),_it=Qe(()=>d("div",{role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},[d("p",{class:"text-2xl animate-pulse"},"Loading ...")],-1)),pit=Qe(()=>d("i",{"data-feather":"chevron-right"},null,-1)),mit=[pit],git=Qe(()=>d("i",{"data-feather":"chevron-left"},null,-1)),fit=[git],hit={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},Eit={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},bit={class:"flex-row p-4 flex items-center gap-3 flex-0"},Sit=Qe(()=>d("i",{"data-feather":"plus"},null,-1)),yit=[Sit],vit=Qe(()=>d("i",{"data-feather":"check-square"},null,-1)),Tit=[vit],Cit=Qe(()=>d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[d("i",{"data-feather":"refresh-ccw"})],-1)),Rit=Qe(()=>d("i",{"data-feather":"database"},null,-1)),xit=[Rit],Oit=Qe(()=>d("i",{"data-feather":"log-in"},null,-1)),Ait=[Oit],Nit={key:0,class:"dropdown"},wit=Qe(()=>d("i",{"data-feather":"search"},null,-1)),Iit=[wit],Dit=Qe(()=>d("i",{"data-feather":"save"},null,-1)),kit=[Dit],Mit={key:2,class:"flex gap-3 flex-1 items-center duration-75"},Lit=Qe(()=>d("i",{"data-feather":"x"},null,-1)),Pit=[Lit],Fit=Qe(()=>d("i",{"data-feather":"check"},null,-1)),Uit=[Fit],Bit=["src"],Git=["src"],qit=["src"],Yit={key:4,title:"Loading..",class:"flex flex-row flex-grow justify-end"},Vit=Qe(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),zit=[Vit],Hit={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},$it={class:"p-4 pt-2"},Wit={class:"relative"},Kit=Qe(()=>d("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[d("div",{class:"scale-75"},[d("i",{"data-feather":"search"})])],-1)),Qit={class:"absolute inset-y-0 right-0 flex items-center pr-3"},jit=Qe(()=>d("i",{"data-feather":"x"},null,-1)),Zit=[jit],Xit={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},Jit={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},eat={class:"flex flex-row flex-grow"},tat={key:0},nat={class:"flex flex-row"},rat={key:0,class:"flex gap-3"},sat=Qe(()=>d("i",{"data-feather":"trash"},null,-1)),oat=[sat],iat={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},aat=Qe(()=>d("i",{"data-feather":"check"},null,-1)),lat=[aat],cat=Qe(()=>d("i",{"data-feather":"x"},null,-1)),dat=[cat],uat={class:"flex gap-3"},_at=Qe(()=>d("i",{"data-feather":"log-out"},null,-1)),pat=[_at],mat=Qe(()=>d("i",{"data-feather":"list"},null,-1)),gat=[mat],fat={class:"z-5"},hat={class:"relative flex flex-row flex-grow mb-10 z-0"},Eat={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},bat=Qe(()=>d("p",{class:"px-3"},"No discussions are found",-1)),Sat=[bat],yat=Qe(()=>d("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),vat={class:"z-20 h-max"},Tat={class:"container pt-4 pb-10 mb-28"},Cat=Qe(()=>d("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),Rat={key:0,class:"bottom-0 container flex flex-row items-center justify-center"},xat={setup(){},data(){return{msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1}},methods:{async ondatabase_selectorDialogSelected(t){console.log("Selected:",t)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(t){if(this.database_selectorDialogVisible=!1,(await xe.post("/select_database",{name:t})).status){console.log("Selected database"),this.$store.state.config=await xe.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let n=await xe.get("/list_databases").data;console.log("New list of database: ",n),this.$store.state.databases=n,console.log("New list of database: ",this.$store.state.databases),location.reload()}},toggleLTM(){this.$store.state.config.use_discussions_history=!this.$store.state.config.use_discussions_history,this.applyConfiguration()},applyConfiguration(){this.loading=!0,xe.post("/apply_settings",{config:this.$store.state.config}).then(t=>{this.loading=!1,t.data.status?this.$refs.toast.showToast("Configuration changed successfully.",4,!0):this.$refs.toast.showToast("Configuration change failed.",4,!1),ve(()=>{Ce.replace()})}).catch(t=>{this.loading=!1,this.$refs.toast.showToast("Configuration change failed.",4,!1)})},save_configuration(){this.showConfirmation=!1,xe.post("/save_settings",{}).then(t=>{if(t)return t.status?this.$refs.toast.showToast("Settings saved!",4,!0):this.$refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(t,e,n){console.log("sending",t),this.$refs.toast.showToast(t,e,n)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await xe.get("/list_discussions");if(t)return this.createDiscussionList(t.data),t.data}catch(t){return console.log("Error: Could not list discussions",t.message),[]}},load_discussion(t,e){t&&(console.log("Loading discussion",t),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(t,this.loading),Ne.on("discussion",n=>{this.loading=!1,this.setDiscussionLoading(t,this.loading),n&&(console.log("received discussion"),console.log(n),this.discussionArr=n.filter(r=>r.message_type==this.msgTypes.MSG_TYPE_CHUNK||r.message_type==this.msgTypes.MSG_TYPE_FULL||r.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||r.message_type==this.msgTypes.MSG_TYPE_CODE||r.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||r.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),Ne.off("discussion")}),Ne.emit("load_discussion",{id:t}))},recoverFiles(){console.log("Recovering files"),xe.get("/get_current_personality_files_list").then(t=>{this.$refs.chatBox.filesList=t.data.files,this.$refs.chatBox.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(t){try{this.loading=!0,Ne.on("discussion_created",e=>{Ne.off("discussion_created"),this.list_discussions().then(()=>{const n=this.list.findIndex(s=>s.id==e.id),r=this.list[n];this.selectDiscussion(r),this.load_discussion(e.id,()=>{this.loading=!1,xe.get("/get_current_personality_files_list").then(s=>{console.log("Files recovered"),this.fileList=s.files}),ve(()=>{const s=document.getElementById("dis-"+e.id);this.scrollToElement(s),console.log("Scrolling tp "+s)})})})}),console.log("new_discussion ",t),Ne.emit("new_discussion",{title:t})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(t){try{t&&(this.loading=!0,this.setDiscussionLoading(t,this.loading),await xe.post("/delete_discussion",{client_id:this.client_id,id:t}),this.loading=!1,this.setDiscussionLoading(t,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async edit_title(t,e){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const n=await xe.post("/edit_title",{client_id:this.client_id,id:t,title:e});if(this.loading=!1,this.setDiscussionLoading(t,this.loading),n.status==200){const r=this.list.findIndex(o=>o.id==t),s=this.list[r];s.title=e,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await xe.get("/delete_message",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(Ne.emit("cancel_generation"),res)return res.data}catch(t){return console.log("Error: Could not stop generating",t.message),{}}},async message_rank_up(t){try{const e=await xe.get("/message_rank_up",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(t){try{const e=await xe.get("/message_rank_down",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(t,e){try{const n=await xe.get("/edit_message",{params:{client_id:this.client_id,id:t,message:e}});if(n)return n.data}catch(n){return console.log("Error: Could not update message",n.message),{}}},async export_multiple_discussions(t){try{if(t.length>0){const e=await xe.post("/export_multiple_discussions",{discussion_ids:t});if(e)return e.data}}catch(e){return console.log("Error: Could not export multiple discussions",e.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await xe.post("/import_multiple_discussions",{jArray:t});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(t=>t.title&&t.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(t){if(this.isGenerating){this.$refs.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}t&&(this.currentDiscussion===void 0?(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(t.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})):this.currentDiscussion.id!=t.id&&(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(t.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})),ve(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const n=document.getElementById("messages-list");this.scrollBottom(n)}))},scrollToElement(t){t?t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(t,e){try{const n=t.offsetTop;document.getElementById(e).scrollTo({top:n,behavior:"smooth"})}catch{}},scrollBottom(t){t?t.scrollTo({top:t.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(t){t?t.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(t){let e={content:t.message,id:t.id,rank:0,sender:t.user,created_at:t.created_at,steps:[],html_js_s:[]};this.discussionArr.push(e),ve(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(t){const e=this.discussionArr.indexOf(r=>r.id=t.user_id),n={binding:t.binding,content:t.message,created_at:t.created_at,type:t.type,finished_generating_at:t.finished_generating_at,id:t.user_id,model:t.model,personality:t.personality,sender:t.user,steps:[]};e!==-1&&(this.discussionArr[e]=n)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(t){console.log("Making a new message"),console.log("New message",t);let e={sender:t.sender,message_type:t.message_type,sender_type:t.sender_type,content:t.content,id:t.id,parent_id:t.parent_id,binding:t.binding,model:t.model,personality:t.personality,created_at:t.created_at,finished_generating_at:t.finished_generating_at,rank:0,ui:t.ui,steps:[],parameters:t.parameters,metadata:t.metadata};console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,t.message),console.log("infos",t)},talk(t){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),Ne.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},createEmptyMessage(){Ne.emit("create_empty_message",{})},sendMsg(t){if(!t){this.$refs.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{Ne.emit("generate_msg",{prompt:t});let n=0;this.discussionArr.length>0&&(n=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let r={message:t,id:n,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:t,id:n,parent_id:n,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(r)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},notify(t){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),ve(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),this.$refs.toast.showToast(t.content,5,t.status),this.chime.play()},streamMessageContent(t){const e=t.discussion_id;if(this.setDiscussionLoading(e,!0),this.currentDiscussion.id==e){this.isGenerating=!0;const n=this.discussionArr.findIndex(s=>s.id==t.id),r=this.discussionArr[n];if(r&&(t.message_type==this.msgTypes.MSG_TYPE_FULL||t.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))r.content=t.content,r.finished_generating_at=t.finished_generating_at;else if(r&&t.message_type==this.msgTypes.MSG_TYPE_CHUNK)r.content+=t.content;else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_START)r.steps.push({message:t.content,done:!1,status:!0});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_END){const s=r.steps.find(o=>o.message===t.content);if(s){s.done=!0;try{console.log(t.parameters);const o=t.parameters;s.status=o.status,console.log(o)}catch(o){console.error("Error parsing JSON:",o.message)}}}else t.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(t.metadata),r.metadata=t.metadata):t.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),r.ui=t.ui,console.log(r.ui)):t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.content,5,!1)}this.$nextTick(()=>{Ce.replace()})},async changeTitleUsingUserMSG(t,e){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];e&&(r.title=e,this.tempList=this.list,await this.edit_title(t,e))},async createNewDiscussion(){this.new_discussion(null)},loadLastUsedDiscussion(){console.log("Loading last discussion");const t=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",t),t){const e=this.list.findIndex(r=>r.id==t),n=this.list[e];n&&this.selectDiscussion(n)}},onCopyPersonalityName(t){this.$refs.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},async deleteDiscussion(t){await this.delete_discussion(t),this.currentDiscussion.id==t&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==t),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const t=this.selectedDiscussions;for(let e=0;er.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$refs.toast.showToast("Removed ("+t.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(t){await this.delete_message(t).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==t),1)}).catch(()=>{this.$refs.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(t){const e=this.list.findIndex(r=>r.id==t.id),n=this.list[e];n.title=t.title,n.loading=!0,await this.edit_title(t.id,t.title),n.loading=!1},checkUncheckDiscussion(t,e){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];r.checkBoxValue=t.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(t=>t.checkBoxValue==!1).length>0;for(let t=0;t({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(n,r){return r.id-n.id});this.list=e,this.tempList=e}},setDiscussionLoading(t,e){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.loading=e},setPageTitle(t){if(t)if(t.id){const e=t.title?t.title==="untitled"?"New discussion":t.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(t){await this.message_rank_up(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(t){await this.message_rank_down(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(t,e){await this.edit_message(t,e).then(()=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.content=e}).catch(()=>{this.$refs.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(t,e){ve(()=>{Ce.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(n=>{n&&(n.data.status?console.log("Already generating"):Ne.emit("generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},continueMessage(t,e){ve(()=>{Ce.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(n=>{n&&(n.data.status?console.log("Already generating"):Ne.emit("continue_generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),ve(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},finalMsgEvent(t){console.log("final",t),t.parent_id;const e=t.discussion_id;if(this.currentDiscussion.id==e){const n=this.discussionArr.findIndex(r=>r.id==t.id);this.discussionArr[n].content=t.content,this.discussionArr[n].finished_generating_at=t.finished_generating_at}ve(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(t){this.$refs.toast.showToast("Copied to clipboard successfully",4,!0);let e="";t.message.binding&&(e=`Binding: ${t.message.binding}`);let n="";t.message.personality&&(n=` + `,544),[[De,s.message]]),d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[9]||(e[9]=(...c)=>o.addFiles&&o.addFiles(...c)),multiple:""},null,544),d("button",{type:"button",onClick:e[10]||(e[10]=_e(c=>t.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},Tst)]),d("div",Cst,[d("button",{type:"button",onClick:e[11]||(e[11]=(...c)=>o.startSpeechRecognition&&o.startSpeechRecognition(...c)),class:Ae([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},xst,2),n.loading?U("",!0):(v(),T("button",{key:0,type:"button",onClick:e[12]||(e[12]=(...c)=>o.makeAnEmptyMessage&&o.makeAnEmptyMessage(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},Nst)),n.loading?U("",!0):(v(),T("button",{key:1,type:"button",onClick:e[13]||(e[13]=(...c)=>o.submit&&o.submit(...c)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},Dst)),n.loading?(v(),T("div",kst,Lst)):U("",!0)])])])])])]),he(u,{ref:"toast"},null,512)],64)}const bT=qe(Rrt,[["render",Pst],["__scopeId","data-v-358087cd"]]),Fst={name:"WelcomeComponent",setup(){return{}}},Ust={class:"flex flex-col text-center"},Bst=G_('
Logo

Lord of Large Language Models

One tool to rule them all


Welcome

Please create a new discussion or select existing one to start

',1),Gst=[Bst];function qst(t,e,n,r,s,o){return v(),T("div",Ust,Gst)}const ST=qe(Fst,[["render",qst]]);const Yst={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){ve(()=>{Ce.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const r=[...t.dataTransfer.items].filter(o=>o.kind==="file").map(o=>e?o.getAsFileSystemHandle():o.webkitGetAsEntry());let s=[];for await(const o of r)(o.kind==="directory"||o.isDirectory)&&s.push(o.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(o=>{s.includes(o.name)||this.fileList.push(o)}),ve(()=>{Ce.replace()}),this.$emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this.$emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,ve(()=>{Ce.replace()})}}},Vst={class:"text-4xl text-center"};function zst(t,e,n,r,s,o){return v(),nt(gn,{name:"list",tag:"div"},{default:ke(()=>[s.show?(v(),T("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=_e(i=>o.panelLeave(i),["prevent"])),onDrop:e[1]||(e[1]=_e(i=>o.panelDrop(i),["stop","prevent"]))},[d("div",{class:Ae(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",s.dropRelease?"":"pointer-events-none"])},[d("div",Vst,[si(t.$slots,"default",{},()=>[Re(" Drop your files here ")])])],2)],32)):U("",!0)]),_:3})}const g_=qe(Yst,[["render",zst]]);var Hst=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),mi=globalThis&&globalThis.__assign||function(){return mi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u")return!1;var e=Tt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function sot(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},o=e.elements[n];!It(o)||!rn(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(i){var a=s[i];a===!1?o.removeAttribute(i):o.setAttribute(i,a===!0?"":a)}))})}function oot(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],o=e.attributes[r]||{},i=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=i.reduce(function(l,u){return l[u]="",l},{});!It(s)||!rn(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}const iot={name:"applyStyles",enabled:!0,phase:"write",fn:sot,effect:oot,requires:["computeStyles"]};function en(t){return t.split("-")[0]}var ur=Math.max,Ei=Math.min,es=Math.round;function f_(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function OT(){return!/^((?!chrome|android).)*safari/i.test(f_())}function ts(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,o=1;e&&It(t)&&(s=t.offsetWidth>0&&es(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&es(r.height)/t.offsetHeight||1);var i=gr(t)?Tt(t):window,a=i.visualViewport,l=!OT()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,c=(r.top+(l&&a?a.offsetTop:0))/o,_=r.width/s,p=r.height/o;return{width:_,height:p,top:c,right:u+_,bottom:c+p,left:u,x:u,y:c}}function Dp(t){var e=ts(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function AT(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Ip(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bn(t){return Tt(t).getComputedStyle(t)}function aot(t){return["table","td","th"].indexOf(rn(t))>=0}function Qn(t){return((gr(t)?t.ownerDocument:t.document)||window.document).documentElement}function ta(t){return rn(t)==="html"?t:t.assignedSlot||t.parentNode||(Ip(t)?t.host:null)||Qn(t)}function oS(t){return!It(t)||bn(t).position==="fixed"?null:t.offsetParent}function lot(t){var e=/firefox/i.test(f_()),n=/Trident/i.test(f_());if(n&&It(t)){var r=bn(t);if(r.position==="fixed")return null}var s=ta(t);for(Ip(s)&&(s=s.host);It(s)&&["html","body"].indexOf(rn(s))<0;){var o=bn(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function uo(t){for(var e=Tt(t),n=oS(t);n&&aot(n)&&bn(n).position==="static";)n=oS(n);return n&&(rn(n)==="html"||rn(n)==="body"&&bn(n).position==="static")?e:n||lot(t)||e}function kp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ms(t,e,n){return ur(t,Ei(e,n))}function cot(t,e,n){var r=Ms(t,e,n);return r>n?n:r}function NT(){return{top:0,right:0,bottom:0,left:0}}function wT(t){return Object.assign({},NT(),t)}function IT(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var dot=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,wT(typeof e!="number"?e:IT(e,co))};function uot(t){var e,n=t.state,r=t.name,s=t.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=en(n.placement),l=kp(a),u=[bt,Mt].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!i)){var _=dot(s.padding,n),p=Dp(o),g=l==="y"?Et:bt,f=l==="y"?kt:Mt,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],E=i[l]-n.rects.reference[l],b=uo(o),m=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=h/2-E/2,C=_[g],A=m-p[c]-_[f],x=m/2-p[c]/2+S,k=Ms(C,x,A),y=l;n.modifiersData[r]=(e={},e[y]=k,e.centerOffset=k-x,e)}}function _ot(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||AT(e.elements.popper,s)&&(e.elements.arrow=s))}const pot={name:"arrow",enabled:!0,phase:"main",fn:uot,effect:_ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(t){return t.split("-")[1]}var mot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function got(t,e){var n=t.x,r=t.y,s=e.devicePixelRatio||1;return{x:es(n*s)/s||0,y:es(r*s)/s||0}}function iS(t){var e,n=t.popper,r=t.popperRect,s=t.placement,o=t.variation,i=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,_=t.isFixed,p=i.x,g=p===void 0?0:p,f=i.y,h=f===void 0?0:f,E=typeof c=="function"?c({x:g,y:h}):{x:g,y:h};g=E.x,h=E.y;var b=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),S=bt,C=Et,A=window;if(u){var x=uo(n),k="clientHeight",y="clientWidth";if(x===Tt(n)&&(x=Qn(n),bn(x).position!=="static"&&a==="absolute"&&(k="scrollHeight",y="scrollWidth")),x=x,s===Et||(s===bt||s===Mt)&&o===Xs){C=kt;var R=_&&x===A&&A.visualViewport?A.visualViewport.height:x[k];h-=R-r.height,h*=l?1:-1}if(s===bt||(s===Et||s===kt)&&o===Xs){S=Mt;var w=_&&x===A&&A.visualViewport?A.visualViewport.width:x[y];g-=w-r.width,g*=l?1:-1}}var L=Object.assign({position:a},u&&mot),M=c===!0?got({x:g,y:h},Tt(n)):{x:g,y:h};if(g=M.x,h=M.y,l){var Z;return Object.assign({},L,(Z={},Z[C]=m?"0":"",Z[S]=b?"0":"",Z.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",Z))}return Object.assign({},L,(e={},e[C]=m?h+"px":"",e[S]=b?g+"px":"",e.transform="",e))}function fot(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:en(e.placement),variation:ns(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,iS(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,iS(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const hot={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fot,data:{}};var Po={passive:!0};function Eot(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,o=s===void 0?!0:s,i=r.resize,a=i===void 0?!0:i,l=Tt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Po)}),a&&l.addEventListener("resize",n.update,Po),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Po)}),a&&l.removeEventListener("resize",n.update,Po)}}const bot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eot,data:{}};var Sot={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(t){return t.replace(/left|right|bottom|top/g,function(e){return Sot[e]})}var yot={start:"end",end:"start"};function aS(t){return t.replace(/start|end/g,function(e){return yot[e]})}function Mp(t){var e=Tt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lp(t){return ts(Qn(t)).left+Mp(t).scrollLeft}function vot(t,e){var n=Tt(t),r=Qn(t),s=n.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;var u=OT();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a+Lp(t),y:l}}function Tot(t){var e,n=Qn(t),r=Mp(t),s=(e=t.ownerDocument)==null?void 0:e.body,o=ur(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),i=ur(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+Lp(t),l=-r.scrollTop;return bn(s||n).direction==="rtl"&&(a+=ur(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:l}}function Pp(t){var e=bn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function DT(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:It(t)&&Pp(t)?t:DT(ta(t))}function Ls(t,e){var n;e===void 0&&(e=[]);var r=DT(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),o=Tt(r),i=s?[o].concat(o.visualViewport||[],Pp(r)?r:[]):r,a=e.concat(i);return s?a:a.concat(Ls(ta(i)))}function h_(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Cot(t,e){var n=ts(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function lS(t,e,n){return e===RT?h_(vot(t,n)):gr(e)?Cot(e,n):h_(Tot(Qn(t)))}function Rot(t){var e=Ls(ta(t)),n=["absolute","fixed"].indexOf(bn(t).position)>=0,r=n&&It(t)?uo(t):t;return gr(r)?e.filter(function(s){return gr(s)&&AT(s,r)&&rn(s)!=="body"}):[]}function xot(t,e,n,r){var s=e==="clippingParents"?Rot(t):[].concat(e),o=[].concat(s,[n]),i=o[0],a=o.reduce(function(l,u){var c=lS(t,u,r);return l.top=ur(c.top,l.top),l.right=Ei(c.right,l.right),l.bottom=Ei(c.bottom,l.bottom),l.left=ur(c.left,l.left),l},lS(t,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function kT(t){var e=t.reference,n=t.element,r=t.placement,s=r?en(r):null,o=r?ns(r):null,i=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(s){case Et:l={x:i,y:e.y-n.height};break;case kt:l={x:i,y:e.y+e.height};break;case Mt:l={x:e.x+e.width,y:a};break;case bt:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=s?kp(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Jr:l[u]=l[u]-(e[c]/2-n[c]/2);break;case Xs:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function Js(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,o=n.strategy,i=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?$st:a,u=n.rootBoundary,c=u===void 0?RT:u,_=n.elementContext,p=_===void 0?Cs:_,g=n.altBoundary,f=g===void 0?!1:g,h=n.padding,E=h===void 0?0:h,b=wT(typeof E!="number"?E:IT(E,co)),m=p===Cs?Wst:Cs,S=t.rects.popper,C=t.elements[f?m:p],A=xot(gr(C)?C:C.contextElement||Qn(t.elements.popper),l,c,i),x=ts(t.elements.reference),k=kT({reference:x,element:S,strategy:"absolute",placement:s}),y=h_(Object.assign({},S,k)),R=p===Cs?y:x,w={top:A.top-R.top+b.top,bottom:R.bottom-A.bottom+b.bottom,left:A.left-R.left+b.left,right:R.right-A.right+b.right},L=t.modifiersData.offset;if(p===Cs&&L){var M=L[s];Object.keys(w).forEach(function(Z){var B=[Mt,kt].indexOf(Z)>=0?1:-1,se=[Et,kt].indexOf(Z)>=0?"y":"x";w[Z]+=M[se]*B})}return w}function Oot(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,o=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?xT:l,c=ns(r),_=c?a?sS:sS.filter(function(f){return ns(f)===c}):co,p=_.filter(function(f){return u.indexOf(f)>=0});p.length===0&&(p=_);var g=p.reduce(function(f,h){return f[h]=Js(t,{placement:h,boundary:s,rootBoundary:o,padding:i})[en(h)],f},{});return Object.keys(g).sort(function(f,h){return g[f]-g[h]})}function Aot(t){if(en(t)===wp)return[];var e=Jo(t);return[aS(t),e,aS(e)]}function Not(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,_=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,f=g===void 0?!0:g,h=n.allowedAutoPlacements,E=e.options.placement,b=en(E),m=b===E,S=l||(m||!f?[Jo(E)]:Aot(E)),C=[E].concat(S).reduce(function(Te,fe){return Te.concat(en(fe)===wp?Oot(e,{placement:fe,boundary:c,rootBoundary:_,padding:u,flipVariations:f,allowedAutoPlacements:h}):fe)},[]),A=e.rects.reference,x=e.rects.popper,k=new Map,y=!0,R=C[0],w=0;w=0,se=B?"width":"height",H=Js(e,{placement:L,boundary:c,rootBoundary:_,altBoundary:p,padding:u}),I=B?Z?Mt:bt:Z?kt:Et;A[se]>x[se]&&(I=Jo(I));var Q=Jo(I),re=[];if(o&&re.push(H[M]<=0),a&&re.push(H[I]<=0,H[Q]<=0),re.every(function(Te){return Te})){R=L,y=!1;break}k.set(L,re)}if(y)for(var X=f?3:1,pe=function(fe){var Ee=C.find(function(z){var te=k.get(z);if(te)return te.slice(0,fe).every(function(Y){return Y})});if(Ee)return R=Ee,"break"},ee=X;ee>0;ee--){var be=pe(ee);if(be==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const wot={name:"flip",enabled:!0,phase:"main",fn:Not,requiresIfExists:["offset"],data:{_skip:!1}};function cS(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function dS(t){return[Et,Mt,kt,bt].some(function(e){return t[e]>=0})}function Iot(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,i=Js(e,{elementContext:"reference"}),a=Js(e,{altBoundary:!0}),l=cS(i,r),u=cS(a,s,o),c=dS(l),_=dS(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":_})}const Dot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Iot};function kot(t,e,n){var r=en(t),s=[bt,Et].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,i=o[0],a=o[1];return i=i||0,a=(a||0)*s,[bt,Mt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Mot(t){var e=t.state,n=t.options,r=t.name,s=n.offset,o=s===void 0?[0,0]:s,i=xT.reduce(function(c,_){return c[_]=kot(_,e.rects,o),c},{}),a=i[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=i}const Lot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mot};function Pot(t){var e=t.state,n=t.name;e.modifiersData[n]=kT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Fot={name:"popperOffsets",enabled:!0,phase:"read",fn:Pot,data:{}};function Uot(t){return t==="x"?"y":"x"}function Bot(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,o=s===void 0?!0:s,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,_=n.padding,p=n.tether,g=p===void 0?!0:p,f=n.tetherOffset,h=f===void 0?0:f,E=Js(e,{boundary:l,rootBoundary:u,padding:_,altBoundary:c}),b=en(e.placement),m=ns(e.placement),S=!m,C=kp(b),A=Uot(C),x=e.modifiersData.popperOffsets,k=e.rects.reference,y=e.rects.popper,R=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,w=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(x){if(o){var Z,B=C==="y"?Et:bt,se=C==="y"?kt:Mt,H=C==="y"?"height":"width",I=x[C],Q=I+E[B],re=I-E[se],X=g?-y[H]/2:0,pe=m===Jr?k[H]:y[H],ee=m===Jr?-y[H]:-k[H],be=e.elements.arrow,Te=g&&be?Dp(be):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:NT(),Ee=fe[B],z=fe[se],te=Ms(0,k[H],Te[H]),Y=S?k[H]/2-X-te-Ee-w.mainAxis:pe-te-Ee-w.mainAxis,ue=S?-k[H]/2+X+te+z+w.mainAxis:ee+te+z+w.mainAxis,ye=e.elements.arrow&&uo(e.elements.arrow),O=ye?C==="y"?ye.clientTop||0:ye.clientLeft||0:0,N=(Z=L==null?void 0:L[C])!=null?Z:0,F=I+Y-N-O,$=I+ue-N,W=Ms(g?Ei(Q,F):Q,I,g?ur(re,$):re);x[C]=W,M[C]=W-I}if(a){var ie,me=C==="x"?Et:bt,D=C==="x"?kt:Mt,K=x[A],G=A==="y"?"height":"width",q=K+E[me],V=K-E[D],ne=[Et,bt].indexOf(b)!==-1,oe=(ie=L==null?void 0:L[A])!=null?ie:0,ge=ne?q:K-k[G]-y[G]-oe+w.altAxis,J=ne?K+k[G]+y[G]-oe-w.altAxis:V,le=g&&ne?cot(ge,K,J):Ms(g?ge:q,K,g?J:V);x[A]=le,M[A]=le-K}e.modifiersData[r]=M}}const Got={name:"preventOverflow",enabled:!0,phase:"main",fn:Bot,requiresIfExists:["offset"]};function qot(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yot(t){return t===Tt(t)||!It(t)?Mp(t):qot(t)}function Vot(t){var e=t.getBoundingClientRect(),n=es(e.width)/t.offsetWidth||1,r=es(e.height)/t.offsetHeight||1;return n!==1||r!==1}function zot(t,e,n){n===void 0&&(n=!1);var r=It(e),s=It(e)&&Vot(e),o=Qn(e),i=ts(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||Pp(o))&&(a=Yot(e)),It(e)?(l=ts(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Lp(o))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Hot(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function s(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&s(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||s(o)}),r}function $ot(t){var e=Hot(t);return rot.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function Wot(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Kot(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var uS={placement:"bottom",modifiers:[],strategy:"absolute"};function _S(){for(var t=arguments.length,e=new Array(t),n=0;n(hr("data-v-fe0b66bd"),t=t(),Er(),t),tit={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},nit={class:"flex flex-col text-center"},rit={class:"flex flex-col text-center items-center"},sit={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},oit=Qe(()=>d("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ks,alt:"Logo"},null,-1)),iit={class:"flex flex-col items-start"},ait={class:"text-2xl"},lit=Qe(()=>d("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),cit=Qe(()=>d("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),dit=Qe(()=>d("hr",{class:"mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"},null,-1)),uit=Qe(()=>d("p",{class:"text-2xl"},"Welcome",-1)),_it=Qe(()=>d("div",{role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},[d("p",{class:"text-2xl animate-pulse"},"Loading ...")],-1)),pit=Qe(()=>d("i",{"data-feather":"chevron-right"},null,-1)),mit=[pit],git=Qe(()=>d("i",{"data-feather":"chevron-left"},null,-1)),fit=[git],hit={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone"},Eit={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},bit={class:"flex-row p-4 flex items-center gap-3 flex-0"},Sit=Qe(()=>d("i",{"data-feather":"plus"},null,-1)),yit=[Sit],vit=Qe(()=>d("i",{"data-feather":"check-square"},null,-1)),Tit=[vit],Cit=Qe(()=>d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[d("i",{"data-feather":"refresh-ccw"})],-1)),Rit=Qe(()=>d("i",{"data-feather":"database"},null,-1)),xit=[Rit],Oit=Qe(()=>d("i",{"data-feather":"log-in"},null,-1)),Ait=[Oit],Nit={key:0,class:"dropdown"},wit=Qe(()=>d("i",{"data-feather":"search"},null,-1)),Iit=[wit],Dit=Qe(()=>d("i",{"data-feather":"save"},null,-1)),kit=[Dit],Mit={key:2,class:"flex gap-3 flex-1 items-center duration-75"},Lit=Qe(()=>d("i",{"data-feather":"x"},null,-1)),Pit=[Lit],Fit=Qe(()=>d("i",{"data-feather":"check"},null,-1)),Uit=[Fit],Bit=["src"],Git=["src"],qit=["src"],Yit={key:4,title:"Loading..",class:"flex flex-row flex-grow justify-end"},Vit=Qe(()=>d("div",{role:"status"},[d("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"},[d("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"}),d("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"})]),d("span",{class:"sr-only"},"Loading...")],-1)),zit=[Vit],Hit={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},$it={class:"p-4 pt-2"},Wit={class:"relative"},Kit=Qe(()=>d("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[d("div",{class:"scale-75"},[d("i",{"data-feather":"search"})])],-1)),Qit={class:"absolute inset-y-0 right-0 flex items-center pr-3"},jit=Qe(()=>d("i",{"data-feather":"x"},null,-1)),Zit=[jit],Xit={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},Jit={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},eat={class:"flex flex-row flex-grow"},tat={key:0},nat={class:"flex flex-row"},rat={key:0,class:"flex gap-3"},sat=Qe(()=>d("i",{"data-feather":"trash"},null,-1)),oat=[sat],iat={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},aat=Qe(()=>d("i",{"data-feather":"check"},null,-1)),lat=[aat],cat=Qe(()=>d("i",{"data-feather":"x"},null,-1)),dat=[cat],uat={class:"flex gap-3"},_at=Qe(()=>d("i",{"data-feather":"log-out"},null,-1)),pat=[_at],mat=Qe(()=>d("i",{"data-feather":"list"},null,-1)),gat=[mat],fat={class:"z-5"},hat={class:"relative flex flex-row flex-grow mb-10 z-0"},Eat={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},bat=Qe(()=>d("p",{class:"px-3"},"No discussions are found",-1)),Sat=[bat],yat=Qe(()=>d("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1)),vat={class:"z-20 h-max"},Tat={class:"container pt-4 pb-10 mb-28"},Cat=Qe(()=>d("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1)),Rat={key:0,class:"bottom-0 container flex flex-row items-center justify-center"},xat={setup(){},data(){return{msgTypes:{MSG_TYPE_CHUNK:0,MSG_TYPE_FULL:1,MSG_TYPE_FULL_INVISIBLE_TO_AI:2,MSG_TYPE_FULL_INVISIBLE_TO_USER:3,MSG_TYPE_EXCEPTION:4,MSG_TYPE_WARNING:5,MSG_TYPE_INFO:6,MSG_TYPE_STEP:7,MSG_TYPE_STEP_START:8,MSG_TYPE_STEP_PROGRESS:9,MSG_TYPE_STEP_END:10,MSG_TYPE_JSON_INFOS:11,MSG_TYPE_REF:12,MSG_TYPE_CODE:13,MSG_TYPE_UI:14,MSG_TYPE_NEW_MESSAGE:15,MSG_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isGenerating:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isSearch:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,panelCollapsed:!1,isOpen:!1}},methods:{async ondatabase_selectorDialogSelected(t){console.log("Selected:",t)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(t){if(this.database_selectorDialogVisible=!1,(await xe.post("/select_database",{name:t})).status){console.log("Selected database"),this.$store.state.config=await xe.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let n=await xe.get("/list_databases").data;console.log("New list of database: ",n),this.$store.state.databases=n,console.log("New list of database: ",this.$store.state.databases),location.reload()}},toggleLTM(){this.$store.state.config.use_discussions_history=!this.$store.state.config.use_discussions_history,this.applyConfiguration()},applyConfiguration(){this.loading=!0,xe.post("/apply_settings",{config:this.$store.state.config}).then(t=>{this.loading=!1,t.data.status?this.$refs.toast.showToast("Configuration changed successfully.",4,!0):this.$refs.toast.showToast("Configuration change failed.",4,!1),ve(()=>{Ce.replace()})}).catch(t=>{this.loading=!1,this.$refs.toast.showToast("Configuration change failed.",4,!1)})},save_configuration(){this.showConfirmation=!1,xe.post("/save_settings",{}).then(t=>{if(t)return t.status?this.$refs.toast.showToast("Settings saved!",4,!0):this.$refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t.message,"save_configuration"),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},showToastMessage(t,e,n){console.log("sending",t),this.$refs.toast.showToast(t,e,n)},togglePanel(){this.panelCollapsed=!this.panelCollapsed},toggleDropdown(){this.isOpen=!this.isOpen},importChatGPT(){},async api_get_req(t){try{const e=await xe.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await xe.get("/list_discussions");if(t)return this.createDiscussionList(t.data),t.data}catch(t){return console.log("Error: Could not list discussions",t.message),[]}},load_discussion(t,e){t&&(console.log("Loading discussion",t),this.loading=!0,this.discussionArr=[],this.setDiscussionLoading(t,this.loading),Ie.on("discussion",n=>{this.loading=!1,this.setDiscussionLoading(t,this.loading),n&&(console.log("received discussion"),console.log(n),this.discussionArr=n.filter(r=>r.message_type==this.msgTypes.MSG_TYPE_CHUNK||r.message_type==this.msgTypes.MSG_TYPE_FULL||r.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI||r.message_type==this.msgTypes.MSG_TYPE_CODE||r.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS||r.message_type==this.msgTypes.MSG_TYPE_UI),console.log("this.discussionArr"),console.log(this.discussionArr),e&&e()),Ie.off("discussion")}),Ie.emit("load_discussion",{id:t}))},recoverFiles(){console.log("Recovering files"),xe.get("/get_current_personality_files_list").then(t=>{this.$refs.chatBox.filesList=t.data.files,this.$refs.chatBox.isFileSentList=t.data.files.map(e=>!0),console.log(`Files recovered: ${this.$refs.chatBox.filesList}`)})},new_discussion(t){try{this.loading=!0,Ie.on("discussion_created",e=>{Ie.off("discussion_created"),this.list_discussions().then(()=>{const n=this.list.findIndex(s=>s.id==e.id),r=this.list[n];this.selectDiscussion(r),this.load_discussion(e.id,()=>{this.loading=!1,xe.get("/get_current_personality_files_list").then(s=>{console.log("Files recovered"),this.fileList=s.files}),ve(()=>{const s=document.getElementById("dis-"+e.id);this.scrollToElement(s),console.log("Scrolling tp "+s)})})})}),console.log("new_discussion ",t),Ie.emit("new_discussion",{title:t})}catch(e){return console.log("Error: Could not create new discussion",e.message),{}}},async delete_discussion(t){try{t&&(this.loading=!0,this.setDiscussionLoading(t,this.loading),await xe.post("/delete_discussion",{client_id:this.client_id,id:t}),this.loading=!1,this.setDiscussionLoading(t,this.loading))}catch(e){console.log("Error: Could not delete discussion",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async edit_title(t,e){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const n=await xe.post("/edit_title",{client_id:this.client_id,id:t,title:e});if(this.loading=!1,this.setDiscussionLoading(t,this.loading),n.status==200){const r=this.list.findIndex(o=>o.id==t),s=this.list[r];s.title=e,this.tempList=this.list}}}catch(n){console.log("Error: Could not edit title",n.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await xe.get("/delete_message",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could delete message",e.message),{}}},async stop_gen(){try{if(Ie.emit("cancel_generation"),res)return res.data}catch(t){return console.log("Error: Could not stop generating",t.message),{}}},async message_rank_up(t){try{const e=await xe.get("/message_rank_up",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank up message",e.message),{}}},async message_rank_down(t){try{const e=await xe.get("/message_rank_down",{params:{client_id:this.client_id,id:t}});if(e)return e.data}catch(e){return console.log("Error: Could not rank down message",e.message),{}}},async edit_message(t,e){try{const n=await xe.get("/edit_message",{params:{client_id:this.client_id,id:t,message:e}});if(n)return n.data}catch(n){return console.log("Error: Could not update message",n.message),{}}},async export_multiple_discussions(t){try{if(t.length>0){const e=await xe.post("/export_multiple_discussions",{discussion_ids:t});if(e)return e.data}}catch(e){return console.log("Error: Could not export multiple discussions",e.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await xe.post("/import_multiple_discussions",{jArray:t});if(e)return console.log("import response",e.data),e.data}}catch(e){console.log("Error: Could not import multiple discussions",e.message);return}},filterDiscussions(){this.filterInProgress||(this.filterInProgress=!0,setTimeout(()=>{this.filterTitle?this.list=this.tempList.filter(t=>t.title&&t.title.includes(this.filterTitle)):this.list=this.tempList,this.filterInProgress=!1},100))},async selectDiscussion(t){if(this.isGenerating){this.$refs.toast.showToast("You are currently generating a text. Please wait for text generation to finish or stop it before trying to select another discussion",4,!1);return}t&&(this.currentDiscussion===void 0?(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(t.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})):this.currentDiscussion.id!=t.id&&(this.currentDiscussion=t,this.setPageTitle(t),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(t.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)})),ve(()=>{const e=document.getElementById("dis-"+this.currentDiscussion.id);this.scrollToElementInContainer(e,"leftPanel");const n=document.getElementById("messages-list");this.scrollBottom(n)}))},scrollToElement(t){t?t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):console.log("Error: scrollToElement")},scrollToElementInContainer(t,e){try{const n=t.offsetTop;document.getElementById(e).scrollTo({top:n,behavior:"smooth"})}catch{}},scrollBottom(t){t?t.scrollTo({top:t.scrollHeight,behavior:"smooth"}):console.log("Error: scrollBottom")},scrollTop(t){t?t.scrollTo({top:0,behavior:"smooth"}):console.log("Error: scrollTop")},createUserMsg(t){let e={content:t.message,id:t.id,rank:0,sender:t.user,created_at:t.created_at,steps:[],html_js_s:[]};this.discussionArr.push(e),ve(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)})},updateLastUserMsg(t){const e=this.discussionArr.indexOf(r=>r.id=t.user_id),n={binding:t.binding,content:t.message,created_at:t.created_at,type:t.type,finished_generating_at:t.finished_generating_at,id:t.user_id,model:t.model,personality:t.personality,sender:t.user,steps:[]};e!==-1&&(this.discussionArr[e]=n)},socketIOConnected(){return console.log("socketIOConnected"),this.$store.state.isConnected=!0,!0},socketIODisconnected(){return console.log("socketIOConnected"),this.currentDiscussion=null,this.$store.dispatch("refreshModels"),this.$store.state.isConnected=!1,!0},new_message(t){console.log("Making a new message"),console.log("New message",t);let e={sender:t.sender,message_type:t.message_type,sender_type:t.sender_type,content:t.content,id:t.id,parent_id:t.parent_id,binding:t.binding,model:t.model,personality:t.personality,created_at:t.created_at,finished_generating_at:t.finished_generating_at,rank:0,ui:t.ui,steps:[],parameters:t.parameters,metadata:t.metadata};console.log(e),this.discussionArr.push(e),(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,t.message),console.log("infos",t)},talk(t){this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(e=>{e&&(e.data.status?console.log("Already generating"):(console.log("Generating message from ",e.data.status),Ie.emit("generate_msg_from",{id:-1}),this.discussionArr.length>0&&Number(this.discussionArr[this.discussionArr.length-1].id)+1))}).catch(e=>{console.log("Error: Could not get generation status",e)})},createEmptyMessage(){Ie.emit("create_empty_message",{})},sendMsg(t){if(!t){this.$refs.toast.showToast("Message contains no content!",4,!1);return}this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(e=>{if(e)if(e.data.status)console.log("Already generating");else{Ie.emit("generate_msg",{prompt:t});let n=0;this.discussionArr.length>0&&(n=Number(this.discussionArr[this.discussionArr.length-1].id)+1);let r={message:t,id:n,rank:0,user:this.$store.state.config.user_name,created_at:new Date().toLocaleString(),sender:this.$store.state.config.user_name,message_type:this.msgTypes.MSG_TYPE_FULL,sender_type:this.senderTypes.SENDER_TYPES_USER,content:t,id:n,parent_id:n,binding:"",model:"",personality:"",created_at:new Date().toLocaleString(),finished_generating_at:new Date().toLocaleString(),rank:0,steps:[],parameters:null,metadata:[],ui:null};this.createUserMsg(r)}}).catch(e=>{console.log("Error: Could not get generation status",e)})},notify(t){self.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),ve(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),this.$refs.toast.showToast(t.content,5,t.status),this.chime.play()},streamMessageContent(t){const e=t.discussion_id;if(this.setDiscussionLoading(e,!0),this.currentDiscussion.id==e){this.isGenerating=!0;const n=this.discussionArr.findIndex(s=>s.id==t.id),r=this.discussionArr[n];if(r&&(t.message_type==this.msgTypes.MSG_TYPE_FULL||t.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))r.content=t.content,r.finished_generating_at=t.finished_generating_at;else if(r&&t.message_type==this.msgTypes.MSG_TYPE_CHUNK)r.content+=t.content;else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_START)r.steps.push({message:t.content,done:!1,status:!0});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_END){const s=r.steps.find(o=>o.message===t.content);if(s){s.done=!0;try{console.log(t.parameters);const o=t.parameters;s.status=o.status,console.log(o)}catch(o){console.error("Error parsing JSON:",o.message)}}}else t.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(t.metadata),r.metadata=t.metadata):t.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),r.ui=t.ui,console.log(r.ui)):t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.content,5,!1)}this.$nextTick(()=>{Ce.replace()})},async changeTitleUsingUserMSG(t,e){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];e&&(r.title=e,this.tempList=this.list,await this.edit_title(t,e))},async createNewDiscussion(){this.new_discussion(null)},loadLastUsedDiscussion(){console.log("Loading last discussion");const t=localStorage.getItem("selected_discussion");if(console.log("Last discussion id: ",t),t){const e=this.list.findIndex(r=>r.id==t),n=this.list[e];n&&this.selectDiscussion(n)}},onCopyPersonalityName(t){this.$refs.toast.showToast("Copied name to clipboard!",4,!0),navigator.clipboard.writeText(t.name)},async deleteDiscussion(t){await this.delete_discussion(t),this.currentDiscussion.id==t&&(this.currentDiscussion={},this.discussionArr=[],this.setPageTitle()),this.list.splice(this.list.findIndex(e=>e.id==t),1),this.createDiscussionList(this.list)},async deleteDiscussionMulti(){const t=this.selectedDiscussions;for(let e=0;er.id==n.id),1)}this.tempList=this.list,this.isCheckbox=!1,this.$refs.toast.showToast("Removed ("+t.length+") items",4,!0),this.showConfirmation=!1,console.log("Multi delete done")},async deleteMessage(t){await this.delete_message(t).then(()=>{this.discussionArr.splice(this.discussionArr.findIndex(e=>e.id==t),1)}).catch(()=>{this.$refs.toast.showToast("Could not remove message",4,!1),console.log("Error: Could not delete message")})},async editTitle(t){const e=this.list.findIndex(r=>r.id==t.id),n=this.list[e];n.title=t.title,n.loading=!0,await this.edit_title(t.id,t.title),n.loading=!1},checkUncheckDiscussion(t,e){const n=this.list.findIndex(s=>s.id==e),r=this.list[n];r.checkBoxValue=t.target.checked,this.tempList=this.list},selectAllDiscussions(){this.isSelectAll=!this.tempList.filter(t=>t.checkBoxValue==!1).length>0;for(let t=0;t({id:n.id,title:n.title,selected:!1,loading:!1,checkBoxValue:!1})).sort(function(n,r){return r.id-n.id});this.list=e,this.tempList=e}},setDiscussionLoading(t,e){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.loading=e},setPageTitle(t){if(t)if(t.id){const e=t.title?t.title==="untitled"?"New discussion":t.title:"New discussion";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}else{const e=t||"Welcome";document.title="LoLLMS WebUI - "+e}},async rankUpMessage(t){await this.message_rank_up(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank up message",4,!1),console.log("Error: Could not rank up message")})},async rankDownMessage(t){await this.message_rank_down(t).then(e=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.rank=e.new_rank}).catch(()=>{this.$refs.toast.showToast("Could not rank down message",4,!1),console.log("Error: Could not rank down message")})},async updateMessage(t,e){await this.edit_message(t,e).then(()=>{const n=this.discussionArr[this.discussionArr.findIndex(r=>r.id==t)];n.content=e}).catch(()=>{this.$refs.toast.showToast("Could not update message",4,!1),console.log("Error: Could not update message")})},resendMessage(t,e){ve(()=>{Ce.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(n=>{n&&(n.data.status?console.log("Already generating"):Ie.emit("generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},continueMessage(t,e){ve(()=>{Ce.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),xe.get("/get_generation_status",{}).then(n=>{n&&(n.data.status?console.log("Already generating"):Ie.emit("continue_generate_msg_from",{prompt:e,id:t}))}).catch(n=>{console.log("Error: Could not get generation status",n)})},stopGenerating(){this.stop_gen(),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),console.log("Stopped generating"),ve(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},finalMsgEvent(t){console.log("final",t),t.parent_id;const e=t.discussion_id;if(this.currentDiscussion.id==e){const n=this.discussionArr.findIndex(r=>r.id==t.id);this.discussionArr[n].content=t.content,this.discussionArr[n].finished_generating_at=t.finished_generating_at}ve(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.isGenerating=!1,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),this.chime.play()},copyToClipBoard(t){this.$refs.toast.showToast("Copied to clipboard successfully",4,!0);let e="";t.message.binding&&(e=`Binding: ${t.message.binding}`);let n="";t.message.personality&&(n=` Personality: ${t.message.personality}`);let r="";t.created_at_parsed&&(r=` Created: ${t.created_at_parsed}`);let s="";t.message.content&&(s=t.message.content);let o="";t.message.model&&(o=`Model: ${t.message.model}`);let i="";t.message.seed&&(i=`Seed: ${t.message.seed}`);let a="";t.time_spent&&(a=` Time spent: ${t.time_spent}`);let l="";l=`${e} ${o} ${i} ${a}`.trim();const u=`${t.message.sender}${n}${r} @@ -188,4 +187,4 @@ ${s} ${l}`;navigator.clipboard.writeText(u),ve(()=>{Ce.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$refs.toast.showToast(`Could not parse JSON. `+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=s=>e(this.parseJsonObj(s.target.result)),r.onerror=s=>n(s),r.readAsText(t)})},async exportDiscussions(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),i=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),u="discussions_export_"+(n+"."+r+"."+s+"."+o+i+a)+".json";this.loading=!0;const c=await this.export_multiple_discussions(t);c?(this.saveJSONtoFile(c,u),this.$refs.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$refs.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let t=this.$store.state.personalities;this.personalityAvatars=t.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(t){if(t.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(r=>r.name===t),n=this.personalityAvatars[e];if(n)return console.log("Avatar",n.avatar),n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$refs.toast.showToast(`Failed to set filelist in chatbox -`+e.message,4,!1)}this.isDragOverChat=!1},setDropZoneChat(){this.isDragOverChat=!0,this.$refs.dragdropChat.show=!0},async setFileListDiscussion(t){if(t.length>1){this.$refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this.$refs.dragdropDiscussion.show=!0}},async created(){for(this.$nextTick(()=>{Ce.replace()}),Ne.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ne.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ne.disconnect()},Ne.on("connected",this.socketIOConnected),Ne.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100)),console.log(this.$store.state.ready);console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),Ne.on("notification",this.notify),Ne.on("new_message",this.new_message),Ne.on("update_message",this.streamMessageContent),Ne.on("close_message",this.finalMsgEvent),Ne.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.isCreated=!0},async mounted(){this.$nextTick(()=>{Ce.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&ve(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},components:{Discussion:hT,Message:ET,ChatBox:bT,WelcomeComponent:ST,Toast:ds,DragDrop:g_,ChoiceDialog:Cp},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){ve(()=>{Ce.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){ve(()=>{Ce.replace()})},isSearch(){ve(()=>{Ce.replace()})}},computed:{UseDiscussionHistory(){return this.$store.state.config.use_discussions_history},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return Ne.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return ve(()=>{Ce.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},Oat=Object.assign(xat,{__name:"DiscussionsView",setup(t){return to(()=>{GT()}),xe.defaults.baseURL="/",(e,n)=>(v(),T(we,null,[he(Hr,{name:"fade-and-fly"},{default:ke(()=>[e.isReady?U("",!0):(v(),T("div",tit,[d("div",nit,[d("div",rit,[d("div",sit,[oit,d("div",iit,[d("p",ait,"Lord of Large Language Models v "+j(lt(qT).state.version),1),lit,cit])]),dit,uit,_it])])]))]),_:1}),e.isReady?(v(),T("button",{key:0,onClick:n[0]||(n[0]=(...r)=>e.togglePanel&&e.togglePanel(...r)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[ce(d("div",null,mit,512),[[We,e.panelCollapsed]]),ce(d("div",null,fit,512),[[We,!e.panelCollapsed]])])):U("",!0),he(Hr,{name:"slide-right"},{default:ke(()=>[e.showPanel?(v(),T("div",hit,[d("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[21]||(n[21]=_e(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[d("div",Eit,[d("div",bit,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[1]||(n[1]=r=>e.createNewDiscussion())},yit),d("button",{class:Ae(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[2]||(n[2]=r=>e.isCheckbox=!e.isCheckbox)},Tit,2),Cit,d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:n[3]||(n[3]=_e(r=>e.database_selectorDialogVisible=!0,["stop"]))},xit),d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[4]||(n[4]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[5]||(n[5]=_e(r=>e.$refs.fileDialog.click(),["stop"]))},Ait),e.isOpen?(v(),T("div",Nit,[d("button",{onClick:n[6]||(n[6]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},"LOLLMS"),d("button",{onClick:n[7]||(n[7]=(...r)=>e.importChatGPT&&e.importChatGPT(...r))},"ChatGPT")])):U("",!0),d("button",{class:Ae(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[8]||(n[8]=r=>e.isSearch=!e.isSearch)},Iit,2),e.showSaveConfirmation?U("",!0):(v(),T("button",{key:1,title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:n[9]||(n[9]=r=>e.showSaveConfirmation=!0)},kit)),e.showSaveConfirmation?(v(),T("div",Mit,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:n[10]||(n[10]=_e(r=>e.showSaveConfirmation=!1,["stop"]))},Pit),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:n[11]||(n[11]=_e(r=>e.save_configuration(),["stop"]))},Uit)])):U("",!0),e.showBrainConfirmation?U("",!0):(v(),T("button",{key:3,title:"Activate Long term Memory",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:n[12]||(n[12]=r=>e.toggleLTM())},[e.loading?(v(),T("img",{key:0,src:lt(Jot),width:"25",height:"25",class:"animate-pulse",title:"Applying config, please stand by..."},null,8,Bit)):e.UseDiscussionHistory?(v(),T("img",{key:1,src:lt(eit),width:"25",height:"25"},null,8,Git)):(v(),T("img",{key:2,src:lt(Xot),width:"25",height:"25"},null,8,qit))])),e.loading?(v(),T("div",Yit,zit)):U("",!0)]),e.isSearch?(v(),T("div",Hit,[d("div",$it,[d("div",Wit,[Kit,d("div",Qit,[d("div",{class:Ae(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[13]||(n[13]=r=>e.filterTitle="")},Zit,2)]),ce(d("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[14]||(n[14]=r=>e.filterTitle=r),onInput:n[15]||(n[15]=r=>e.filterDiscussions())},null,544),[[De,e.filterTitle]])])])])):U("",!0),e.isCheckbox?(v(),T("hr",Xit)):U("",!0),e.isCheckbox?(v(),T("div",Jit,[d("div",eat,[e.selectedDiscussions.length>0?(v(),T("p",tat,"Selected: "+j(e.selectedDiscussions.length),1)):U("",!0)]),d("div",nat,[e.selectedDiscussions.length>0?(v(),T("div",rat,[e.showConfirmation?U("",!0):(v(),T("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[16]||(n[16]=_e(r=>e.showConfirmation=!0,["stop"]))},oat)),e.showConfirmation?(v(),T("div",iat,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[17]||(n[17]=_e((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},lat),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[18]||(n[18]=_e(r=>e.showConfirmation=!1,["stop"]))},dat)])):U("",!0)])):U("",!0),d("div",uat,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button",onClick:n[19]||(n[19]=_e((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},pat),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[20]||(n[20]=_e((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},gat)])])])):U("",!0)]),d("div",fat,[he(g_,{ref:"dragdropDiscussion",onPanelDrop:e.setFileListDiscussion},{default:ke(()=>[Re("Drop your discussion file here ")]),_:1},8,["onPanelDrop"])]),d("div",hat,[d("div",{class:Ae(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[d("div",{id:"dis-list",class:Ae([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(v(),nt(gn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.list,(r,s)=>(v(),nt(hT,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:o=>e.selectDiscussion(r),onDelete:o=>e.deleteDiscussion(r.id),onEditTitle:e.editTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128))]),_:1})):U("",!0),e.list.length<1?(v(),T("div",Eat,Sat)):U("",!0),yat],2)],2)])],32)])):U("",!0)]),_:1}),e.isReady?(v(),T("div",{key:1,class:"relative flex flex-col flex-grow",onDragover:n[22]||(n[22]=_e(r=>e.setDropZoneChat(),["stop","prevent"]))},[d("div",vat,[he(g_,{ref:"dragdropChat",onPanelDrop:e.setFileListChat},null,8,["onPanelDrop"])]),d("div",{id:"messages-list",class:Ae(["z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[d("div",Tat,[e.discussionArr.length>0?(v(),nt(gn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.discussionArr,(r,s)=>(v(),nt(ET,{key:r.id,message:r,id:"msg-"+r.id,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(r.sender)},null,8,["message","id","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):U("",!0),e.currentDiscussion.id?U("",!0):(v(),nt(ST,{key:1}))]),Cat,e.currentDiscussion.id?(v(),T("div",Rat,[he(bT,{ref:"chatBox",onMessageSentEvent:e.sendMsg,onCreateEmptyMessage:e.createEmptyMessage,loading:e.isGenerating,discussionList:e.discussionArr,onStopGenerating:e.stopGenerating,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onLoaded:e.recoverFiles},null,8,["onMessageSentEvent","onCreateEmptyMessage","loading","discussionList","onStopGenerating","on-show-toast-message","on-talk","onLoaded"])])):U("",!0)],2)],32)):U("",!0),he(ds,{ref:"toast"},null,512),he(mT,{ref:"messageBox"},null,512),he(Cp,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64))}}),Aat=qe(Oat,[["__scopeId","data-v-fe0b66bd"]]),Nat=IO({history:Qx("/"),routes:[{path:"/playground/",name:"playground",component:Aqe},{path:"/extensions/",name:"extensions",component:Bqe},{path:"/help/",name:"help",component:o7e},{path:"/settings/",name:"settings",component:det},{path:"/training/",name:"training",component:Det},{path:"/quantizing/",name:"quantizing",component:qet},{path:"/",name:"discussions",component:Aat}]});const na=VR(uA);console.log("Loaded main.js");function mS(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const qT=f1({state(){return{ready:!1,version:"unknown",settingsChanged:!1,isConnected:!1,config:null,mountedPers:null,mountedPersArr:[],mountedExtensions:[],bindingsArr:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],currentModel:null,extensionsZoo:[],databases:[]}},mutations:{setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setMountedExtensions(t,e){t.mountedExtensions=e},setBindingsArr(t,e){t.bindingsArr=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setExtensionsZoo(t,e){t.extensionsZoo=e},setDatabases(t,e){t.databases=e}},getters:{getIsConnected(t){return t.isConnected},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getmmountedExtensions(t){return t.mountedExtensions},getMountedPers(t){return t.mountedPers},getbindingsArr(t){return t.bindingsArr},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getExtensionsZoo(t){return t.extensionsZoo}},actions:{async getVersion(){let t=await xe.get("/get_lollms_webui_version",{});t&&(this.state.version=t.data.version)},async refreshConfig({commit:t}){console.log("Fetching configuration");try{const e=await Ht("get_config");e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],e.extensions.length>0?e.extension_category=e.extensions[-1]:e.extension_category="ai_sensors",console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Ht("list_databases");console.log("databases:",e),t("setDatabases",e)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Ht("get_all_personalities"),r=Object.keys(n);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s{let u=!1;for(const _ of this.state.config.personalities)if(_.includes(o+"/"+l.folder)&&(u=!0,_.includes(":"))){const p=_.split(":");l.language=p[1]}let c={};return c=l,c.category=o,c.full_path=o+"/"+l.folder,c.isMounted=u,c});e.length==0?e=a:e=e.concat(a)}e.sort((s,o)=>s.name.localeCompare(o.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let r=0;ra.full_path==s||a.full_path==o[0]);if(i>=0){let a=mS(this.state.personalities[i]);o.length>1&&(a.language=o[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else n.push(r),console.log("Couldn't load personality : ",s)}for(let r=n.length-1;r>=0;r--)console.log("Removing personality : ",this.state.config.personalities[n[r]]),this.state.config.personalities.splice(n[r],1),this.state.config.active_personality_id>n[r]&&(this.state.config.active_personality_id-=1);t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(r=>r.full_path==this.state.config.personalities[this.state.config.active_personality_id]||r.full_path+":"+r.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){let e=await Ht("list_bindings");t("setBindingsArr",e)},async refreshModelsZoo({commit:t}){console.log("Fetching models");const e=await xe.get("/get_available_models");t("setModelsZoo",e.data.filter(n=>n.variants&&n.variants.length>0))},async refreshModels({commit:t}){console.log("Fetching models");let e=await Ht("list_models");console.log(`Found ${e}`);let n=await Ht("get_active_model");n!=null&&t("setselectedModel",n.model),t("setModelsArr",e),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const r=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);r!=-1&&(this.state.currentModel=this.state.modelsZoo[r])},async refreshExtensionsZoo({commit:t}){let e=[],n=await Ht("list_extensions");const r=Object.keys(n);console.log("Extensions recovered:"+n);for(let s=0;s{let u=!1;for(const _ of this.state.config.extensions)_.includes(o+"/"+l.folder)&&(u=!0);let c={};return c=l,c.category=o,c.full_path=o+"/"+l.folder,c.isMounted=u,c});e.length==0?e=a:e=e.concat(a)}e.sort((s,o)=>s.name.localeCompare(o.name)),t("setActiveExtensions",this.state.config.extensions),console.log("Done loading extensions"),t("setExtensionsZoo",e)},refreshmountedExtensions({commit:t}){console.log("Mounting extensions");let e=[];const n=[];for(let r=0;ri.full_path==s);if(o>=0){let i=mS(this.state.config.extensions[o]);i&&e.push(i)}else n.push(r),console.log("Couldn't load extension : ",s)}for(let r=n.length-1;r>=0;r--)console.log("Removing extensions : ",this.state.config.extensions[n[r]]),this.state.config.extensions.splice(n[r],1);t("setMountedExtensions",e)},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Ht("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Ht("ram_usage")},async refreshVramUsage({commit:t}){const e=await Ht("vram_usage"),n=[];if(e.nb_gpus>0){for(let s=0;s1){this.$refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this.$refs.dragdropDiscussion.show=!0}},async created(){for(this.$nextTick(()=>{Ce.replace()}),Ie.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ie.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ie.disconnect()},Ie.on("connected",this.socketIOConnected),Ie.on("disconnected",this.socketIODisconnected),console.log("Added events"),console.log("Waiting to be ready");this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100)),console.log(this.$store.state.ready);console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),Ie.on("notification",this.notify),Ie.on("new_message",this.new_message),Ie.on("update_message",this.streamMessageContent),Ie.on("close_message",this.finalMsgEvent),Ie.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.isCreated=!0},async mounted(){this.$nextTick(()=>{Ce.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(t=>setTimeout(t,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&ve(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)})},components:{Discussion:hT,Message:ET,ChatBox:bT,WelcomeComponent:ST,Toast:ds,DragDrop:g_,ChoiceDialog:Cp},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){ve(()=>{Ce.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){ve(()=>{Ce.replace()})},isSearch(){ve(()=>{Ce.replace()})}},computed:{UseDiscussionHistory(){return this.$store.state.config.use_discussions_history},isReady:{get(){return this.$store.state.ready}},databases(){return this.$store.state.databases},client_id(){return Ie.id},isReady(){return console.log("verify ready",this.isCreated),this.isCreated},showPanel(){return this.$store.state.ready&&!this.panelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return ve(()=>{Ce.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},Oat=Object.assign(xat,{__name:"DiscussionsView",setup(t){return to(()=>{GT()}),xe.defaults.baseURL="/",(e,n)=>(v(),T(Ne,null,[he(Hr,{name:"fade-and-fly"},{default:ke(()=>[e.isReady?U("",!0):(v(),T("div",tit,[d("div",nit,[d("div",rit,[d("div",sit,[oit,d("div",iit,[d("p",ait,"Lord of Large Language Models v "+j(lt(qT).state.version),1),lit,cit])]),dit,uit,_it])])]))]),_:1}),e.isReady?(v(),T("button",{key:0,onClick:n[0]||(n[0]=(...r)=>e.togglePanel&&e.togglePanel(...r)),class:"absolute top-0 left-0 z-50 p-2 m-2 bg-white rounded-full shadow-md bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-primary-light dark:hover:bg-primary"},[ce(d("div",null,mit,512),[[We,e.panelCollapsed]]),ce(d("div",null,fit,512),[[We,!e.panelCollapsed]])])):U("",!0),he(Hr,{name:"slide-right"},{default:ke(()=>[e.showPanel?(v(),T("div",hit,[d("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[21]||(n[21]=_e(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[d("div",Eit,[d("div",bit,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[1]||(n[1]=r=>e.createNewDiscussion())},yit),d("button",{class:Ae(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[2]||(n[2]=r=>e.isCheckbox=!e.isCheckbox)},Tit,2),Cit,d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Export database",type:"button",onClick:n[3]||(n[3]=_e(r=>e.database_selectorDialogVisible=!0,["stop"]))},xit),d("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[4]||(n[4]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[5]||(n[5]=_e(r=>e.$refs.fileDialog.click(),["stop"]))},Ait),e.isOpen?(v(),T("div",Nit,[d("button",{onClick:n[6]||(n[6]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},"LOLLMS"),d("button",{onClick:n[7]||(n[7]=(...r)=>e.importChatGPT&&e.importChatGPT(...r))},"ChatGPT")])):U("",!0),d("button",{class:Ae(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[8]||(n[8]=r=>e.isSearch=!e.isSearch)},Iit,2),e.showSaveConfirmation?U("",!0):(v(),T("button",{key:1,title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:n[9]||(n[9]=r=>e.showSaveConfirmation=!0)},kit)),e.showSaveConfirmation?(v(),T("div",Mit,[d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:n[10]||(n[10]=_e(r=>e.showSaveConfirmation=!1,["stop"]))},Pit),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:n[11]||(n[11]=_e(r=>e.save_configuration(),["stop"]))},Uit)])):U("",!0),e.showBrainConfirmation?U("",!0):(v(),T("button",{key:3,title:"Activate Long term Memory",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:n[12]||(n[12]=r=>e.toggleLTM())},[e.loading?(v(),T("img",{key:0,src:lt(Jot),width:"25",height:"25",class:"animate-pulse",title:"Applying config, please stand by..."},null,8,Bit)):e.UseDiscussionHistory?(v(),T("img",{key:1,src:lt(eit),width:"25",height:"25"},null,8,Git)):(v(),T("img",{key:2,src:lt(Xot),width:"25",height:"25"},null,8,qit))])),e.loading?(v(),T("div",Yit,zit)):U("",!0)]),e.isSearch?(v(),T("div",Hit,[d("div",$it,[d("div",Wit,[Kit,d("div",Qit,[d("div",{class:Ae(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[13]||(n[13]=r=>e.filterTitle="")},Zit,2)]),ce(d("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[14]||(n[14]=r=>e.filterTitle=r),onInput:n[15]||(n[15]=r=>e.filterDiscussions())},null,544),[[De,e.filterTitle]])])])])):U("",!0),e.isCheckbox?(v(),T("hr",Xit)):U("",!0),e.isCheckbox?(v(),T("div",Jit,[d("div",eat,[e.selectedDiscussions.length>0?(v(),T("p",tat,"Selected: "+j(e.selectedDiscussions.length),1)):U("",!0)]),d("div",nat,[e.selectedDiscussions.length>0?(v(),T("div",rat,[e.showConfirmation?U("",!0):(v(),T("button",{key:0,class:"flex mx-3 flex-1 text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:n[16]||(n[16]=_e(r=>e.showConfirmation=!0,["stop"]))},oat)),e.showConfirmation?(v(),T("div",iat,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:n[17]||(n[17]=_e((...r)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...r),["stop"]))},lat),d("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:n[18]||(n[18]=_e(r=>e.showConfirmation=!1,["stop"]))},dat)])):U("",!0)])):U("",!0),d("div",uat,[d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a file",type:"button",onClick:n[19]||(n[19]=_e((...r)=>e.exportDiscussions&&e.exportDiscussions(...r),["stop"]))},pat),d("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[20]||(n[20]=_e((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},gat)])])])):U("",!0)]),d("div",fat,[he(g_,{ref:"dragdropDiscussion",onPanelDrop:e.setFileListDiscussion},{default:ke(()=>[Re("Drop your discussion file here ")]),_:1},8,["onPanelDrop"])]),d("div",hat,[d("div",{class:Ae(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[d("div",{id:"dis-list",class:Ae([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(v(),nt(gn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(Ne,null,Be(e.list,(r,s)=>(v(),nt(hT,{key:r.id,id:r.id,title:r.title,selected:e.currentDiscussion.id==r.id,loading:r.loading,isCheckbox:e.isCheckbox,checkBoxValue:r.checkBoxValue,onSelect:o=>e.selectDiscussion(r),onDelete:o=>e.deleteDiscussion(r.id),onEditTitle:e.editTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onChecked"]))),128))]),_:1})):U("",!0),e.list.length<1?(v(),T("div",Eat,Sat)):U("",!0),yat],2)],2)])],32)])):U("",!0)]),_:1}),e.isReady?(v(),T("div",{key:1,class:"relative flex flex-col flex-grow",onDragover:n[22]||(n[22]=_e(r=>e.setDropZoneChat(),["stop","prevent"]))},[d("div",vat,[he(g_,{ref:"dragdropChat",onPanelDrop:e.setFileListChat},null,8,["onPanelDrop"])]),d("div",{id:"messages-list",class:Ae(["z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",e.isDragOverChat?"pointer-events-none":""])},[d("div",Tat,[e.discussionArr.length>0?(v(),nt(gn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(Ne,null,Be(e.discussionArr,(r,s)=>(v(),nt(ET,{key:r.id,message:r,id:"msg-"+r.id,ref_for:!0,ref:"messages",onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(r.sender)},null,8,["message","id","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):U("",!0),e.currentDiscussion.id?U("",!0):(v(),nt(ST,{key:1}))]),Cat,e.currentDiscussion.id?(v(),T("div",Rat,[he(bT,{ref:"chatBox",onMessageSentEvent:e.sendMsg,onCreateEmptyMessage:e.createEmptyMessage,loading:e.isGenerating,discussionList:e.discussionArr,onStopGenerating:e.stopGenerating,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onLoaded:e.recoverFiles},null,8,["onMessageSentEvent","onCreateEmptyMessage","loading","discussionList","onStopGenerating","on-show-toast-message","on-talk","onLoaded"])])):U("",!0)],2)],32)):U("",!0),he(ds,{ref:"toast"},null,512),he(mT,{ref:"messageBox"},null,512),he(Cp,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64))}}),Aat=qe(Oat,[["__scopeId","data-v-fe0b66bd"]]),Nat=IO({history:Qx("/"),routes:[{path:"/playground/",name:"playground",component:Aqe},{path:"/extensions/",name:"extensions",component:Bqe},{path:"/help/",name:"help",component:o7e},{path:"/settings/",name:"settings",component:det},{path:"/training/",name:"training",component:Det},{path:"/quantizing/",name:"quantizing",component:qet},{path:"/",name:"discussions",component:Aat}]});const na=VR(uA);console.log("Loaded main.js");function mS(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const qT=f1({state(){return{ready:!1,version:"unknown",settingsChanged:!1,isConnected:!1,config:null,mountedPers:null,mountedPersArr:[],mountedExtensions:[],bindingsArr:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],currentModel:null,extensionsZoo:[],databases:[]}},mutations:{setIsReady(t,e){t.ready=e},setIsConnected(t,e){t.isConnected=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},setMountedExtensions(t,e){t.mountedExtensions=e},setBindingsArr(t,e){t.bindingsArr=e},setModelsArr(t,e){t.modelsArr=e},setselectedModel(t,e){t.selectedModel=e},setDiskUsage(t,e){t.diskUsage=e},setRamUsage(t,e){t.ramUsage=e},setVramUsage(t,e){t.vramUsage=e},setModelsZoo(t,e){t.modelsZoo=e},setExtensionsZoo(t,e){t.extensionsZoo=e},setDatabases(t,e){t.databases=e}},getters:{getIsConnected(t){return t.isConnected},getConfig(t){return t.config},getPersonalities(t){return t.personalities},getMountedPersArr(t){return t.mountedPersArr},getmmountedExtensions(t){return t.mountedExtensions},getMountedPers(t){return t.mountedPers},getbindingsArr(t){return t.bindingsArr},getModelsArr(t){return t.modelsArr},getDiskUsage(t){return t.diskUsage},getRamUsage(t){return t.ramUsage},getVramUsage(t){return t.vramUsage},getDatabasesList(t){return t.databases},getModelsZoo(t){return t.modelsZoo},getExtensionsZoo(t){return t.extensionsZoo}},actions:{async getVersion(){let t=await xe.get("/get_lollms_webui_version",{});t&&(this.state.version=t.data.version)},async refreshConfig({commit:t}){console.log("Fetching configuration");try{const e=await Ht("get_config");e.active_personality_id<0&&(e.active_personality_id=0);let n=e.personalities[e.active_personality_id].split("/");e.personality_category=n[0],e.personality_folder=n[1],e.extensions.length>0?e.extension_category=e.extensions[-1]:e.extension_category="ai_sensors",console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),t("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:t}){let e=await Ht("list_databases");console.log("databases:",e),t("setDatabases",e)},async refreshPersonalitiesZoo({commit:t}){let e=[];const n=await Ht("get_all_personalities"),r=Object.keys(n);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s{let u=!1;for(const _ of this.state.config.personalities)if(_.includes(o+"/"+l.folder)&&(u=!0,_.includes(":"))){const p=_.split(":");l.language=p[1]}let c={};return c=l,c.category=o,c.full_path=o+"/"+l.folder,c.isMounted=u,c});e.length==0?e=a:e=e.concat(a)}e.sort((s,o)=>s.name.localeCompare(o.name)),t("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:t}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const n=[];for(let r=0;ra.full_path==s||a.full_path==o[0]);if(i>=0){let a=mS(this.state.personalities[i]);o.length>1&&(a.language=o[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(l=>l.full_path=="generic/lollms")])}else n.push(r),console.log("Couldn't load personality : ",s)}for(let r=n.length-1;r>=0;r--)console.log("Removing personality : ",this.state.config.personalities[n[r]]),this.state.config.personalities.splice(n[r],1),this.state.config.active_personality_id>n[r]&&(this.state.config.active_personality_id-=1);t("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(r=>r.full_path==this.state.config.personalities[this.state.config.active_personality_id]||r.full_path+":"+r.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:t}){let e=await Ht("list_bindings");t("setBindingsArr",e)},async refreshModelsZoo({commit:t}){console.log("Fetching models");const e=await xe.get("/get_available_models");t("setModelsZoo",e.data.filter(n=>n.variants&&n.variants.length>0))},async refreshModels({commit:t}){console.log("Fetching models");let e=await Ht("list_models");console.log(`Found ${e}`);let n=await Ht("get_active_model");n!=null&&t("setselectedModel",n.model),t("setModelsArr",e),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const r=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);r!=-1&&(this.state.currentModel=this.state.modelsZoo[r])},async refreshExtensionsZoo({commit:t}){let e=[],n=await Ht("list_extensions");const r=Object.keys(n);console.log("Extensions recovered:"+n);for(let s=0;s{let u=!1;for(const _ of this.state.config.extensions)_.includes(o+"/"+l.folder)&&(u=!0);let c={};return c=l,c.category=o,c.full_path=o+"/"+l.folder,c.isMounted=u,c});e.length==0?e=a:e=e.concat(a)}e.sort((s,o)=>s.name.localeCompare(o.name)),t("setActiveExtensions",this.state.config.extensions),console.log("Done loading extensions"),t("setExtensionsZoo",e)},refreshmountedExtensions({commit:t}){console.log("Mounting extensions");let e=[];const n=[];for(let r=0;ri.full_path==s);if(o>=0){let i=mS(this.state.config.extensions[o]);i&&e.push(i)}else n.push(r),console.log("Couldn't load extension : ",s)}for(let r=n.length-1;r>=0;r--)console.log("Removing extensions : ",this.state.config.extensions[n[r]]),this.state.config.extensions.splice(n[r],1);t("setMountedExtensions",e)},async refreshDiskUsage({commit:t}){this.state.diskUsage=await Ht("disk_usage")},async refreshRamUsage({commit:t}){this.state.ramUsage=await Ht("ram_usage")},async refreshVramUsage({commit:t}){const e=await Ht("vram_usage"),n=[];if(e.nb_gpus>0){for(let s=0;s 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}.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-f0cce578]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-f0cce578]::-webkit-scrollbar{width:8px}.scrollbar[data-v-f0cce578]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-f0cce578]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-f0cce578]::-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-9abe6333]{font-size:24px;animation:pulsate-9abe6333 1.5s infinite}@keyframes pulsate-9abe6333{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-9abe6333],.list-enter-active[data-v-9abe6333],.list-leave-active[data-v-9abe6333]{transition:all .5s ease}.list-enter-from[data-v-9abe6333]{transform:translatey(-30px)}.list-leave-to[data-v-9abe6333]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-9abe6333]{position:absolute}.bounce-enter-active[data-v-9abe6333]{animation:bounce-in-9abe6333 .5s}.bounce-leave-active[data-v-9abe6333]{animation:bounce-in-9abe6333 .5s reverse}@keyframes bounce-in-9abe6333{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-9abe6333]{background-color:#0ff}.hover[data-v-9abe6333]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-9abe6333]{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-7adef201],.list-enter-active[data-v-7adef201],.list-leave-active[data-v-7adef201]{transition:all .5s ease}.list-enter-from[data-v-7adef201]{transform:translatey(-30px)}.list-leave-to[data-v-7adef201]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-7adef201]{position:absolute}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0}.list-leave-active{position:absolute}.slide-right-enter-active[data-v-fe0b66bd],.slide-right-leave-active[data-v-fe0b66bd]{transition:transform .3s ease}.slide-right-enter[data-v-fe0b66bd],.slide-right-leave-to[data-v-fe0b66bd]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-fe0b66bd]{animation:fade-and-fly-enter-fe0b66bd .5s ease}.fade-and-fly-leave-active[data-v-fe0b66bd]{animation:fade-and-fly-leave-fe0b66bd .5s ease}@keyframes fade-and-fly-enter-fe0b66bd{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-fe0b66bd{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-fe0b66bd],.list-enter-active[data-v-fe0b66bd],.list-leave-active[data-v-fe0b66bd]{transition:all .5s ease}.list-enter-from[data-v-fe0b66bd]{transform:translatey(-30px)}.list-leave-to[data-v-fe0b66bd]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-fe0b66bd]{position:absolute}*,: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-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}.-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-28{margin-bottom:7rem}.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-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-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-max{height:-moz-max-content;height:max-content}.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-full{max-height:100%}.max-h-screen{max-height:100vh}.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-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}.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-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.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}.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-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-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-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-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-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-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-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-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-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}.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-f0cce578]{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);white-space:pre-wrap;overflow-wrap:break-word}.scrollbar[data-v-f0cce578]::-webkit-scrollbar{width:8px}.scrollbar[data-v-f0cce578]::-webkit-scrollbar-track{background-color:var(--scrollbar-track-color)}.scrollbar[data-v-f0cce578]::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-color);border-radius:4px}.scrollbar[data-v-f0cce578]::-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-9abe6333]{font-size:24px;animation:pulsate-9abe6333 1.5s infinite}@keyframes pulsate-9abe6333{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-9abe6333],.list-enter-active[data-v-9abe6333],.list-leave-active[data-v-9abe6333]{transition:all .5s ease}.list-enter-from[data-v-9abe6333]{transform:translatey(-30px)}.list-leave-to[data-v-9abe6333]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-9abe6333]{position:absolute}.bounce-enter-active[data-v-9abe6333]{animation:bounce-in-9abe6333 .5s}.bounce-leave-active[data-v-9abe6333]{animation:bounce-in-9abe6333 .5s reverse}@keyframes bounce-in-9abe6333{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-9abe6333]{background-color:#0ff}.hover[data-v-9abe6333]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-9abe6333]{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-358087cd],.list-enter-active[data-v-358087cd],.list-leave-active[data-v-358087cd]{transition:all .5s ease}.list-enter-from[data-v-358087cd]{transform:translatey(-30px)}.list-leave-to[data-v-358087cd]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-358087cd]{position:absolute}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0}.list-leave-active{position:absolute}.slide-right-enter-active[data-v-fe0b66bd],.slide-right-leave-active[data-v-fe0b66bd]{transition:transform .3s ease}.slide-right-enter[data-v-fe0b66bd],.slide-right-leave-to[data-v-fe0b66bd]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-fe0b66bd]{animation:fade-and-fly-enter-fe0b66bd .5s ease}.fade-and-fly-leave-active[data-v-fe0b66bd]{animation:fade-and-fly-leave-fe0b66bd .5s ease}@keyframes fade-and-fly-enter-fe0b66bd{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-fe0b66bd{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-fe0b66bd],.list-enter-active[data-v-fe0b66bd],.list-leave-active[data-v-fe0b66bd]{transition:all .5s ease}.list-enter-from[data-v-fe0b66bd]{transform:translatey(-30px)}.list-leave-to[data-v-fe0b66bd]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-fe0b66bd]{position:absolute}*,: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-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}.-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-28{margin-bottom:7rem}.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-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-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-max{height:-moz-max-content;height:max-content}.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-full{max-height:100%}.max-h-screen{max-height:100vh}.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-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}.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-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.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}.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-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-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-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-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-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-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-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-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-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 f911c6a0..c4dd7c86 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,8 +6,8 @@ LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/components/ChatBox.vue b/web/src/components/ChatBox.vue index ae9913fc..119e149a 100644 --- a/web/src/components/ChatBox.vue +++ b/web/src/components/ChatBox.vue @@ -552,42 +552,81 @@ export default { this.filesList = [] this.isFileSentList = [] }, - send_file(file, next){ - const formData = new FormData(); - formData.append('file', file); - console.log("Uploading file") - // Read the file as a data URL and emit it to the server - const reader = new FileReader(); - reader.onload = () => { - const data = { - filename: file.name, - fileData: reader.result, - }; - socket.on('file_received',(resp)=>{ - if(resp.status){ - console.log(resp.filename) - this.isFileSentList[this.filesList.length-1]=true; - console.log(this.isFileSentList) - this.onShowToastMessage("File uploaded successfully",4,true); - } - else{ - this.onShowToastMessage("Couldn't upload file\n"+resp.error,4,false); - try{ - this.filesList.removeItem(file) - } - catch{ + // send_file(file, next){ + // const formData = new FormData(); + // formData.append('file', file); + // console.log("Uploading file") + // // Read the file as a data URL and emit it to the server + // const reader = new FileReader(); + // reader.onload = () => { + // const data = { + // filename: file.name, + // fileData: reader.result, + // }; + // socket.on('file_received',(resp)=>{ + // if(resp.status){ + // console.log(resp.filename) + // this.isFileSentList[this.filesList.length-1]=true; + // console.log(this.isFileSentList) + // this.onShowToastMessage("File uploaded successfully",4,true); + // } + // else{ + // this.onShowToastMessage("Couldn't upload file\n"+resp.error,4,false); + // try{ + // this.filesList.removeItem(file) + // } + // catch{ - } + // } - } - socket.off('file_received') - next() + // } + // socket.off('file_received') + // next() - }) - socket.emit('send_file', data); + // }) + // console.log("Sending file") + // socket.emit('send_file', data); + // }; + // reader.readAsDataURL(file); + // }, + send_file(file, next) { + const fileReader = new FileReader(); + const chunkSize = 24 * 1024; // Chunk size in bytes (e.g., 1MB) + let offset = 0; + let chunkIndex = 0; + fileReader.onloadend = () => { + if (fileReader.error) { + console.error('Error reading file:', fileReader.error); + return; + } + const chunk = fileReader.result; + const isLastChunk = offset + chunk.byteLength >= file.size; + socket.emit('send_file_chunk', { + filename: file.name, + chunk: chunk, + offset: offset, + isLastChunk: isLastChunk, + chunkIndex: chunkIndex + }); + offset += chunk.byteLength; + chunkIndex++; + if (!isLastChunk) { + readNextChunk(); + } else { + console.log('File sent successfully'); + this.isFileSentList[this.filesList.length-1]=true; + console.log(this.isFileSentList) + this.onShowToastMessage("File uploaded successfully",4,true); + next(); + } }; - reader.readAsDataURL(file); - }, + function readNextChunk() { + const blob = file.slice(offset, offset + chunkSize); + fileReader.readAsArrayBuffer(blob); + } + console.log('Uploading file'); + readNextChunk(); + }, makeAnEmptyMessage() { this.$emit('createEmptyMessage') }, diff --git a/web/src/services/websocket.js b/web/src/services/websocket.js index 4064624e..2672694c 100644 --- a/web/src/services/websocket.js +++ b/web/src/services/websocket.js @@ -10,7 +10,7 @@ import io from 'socket.io-client'; const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_LOLLMS_API); const socket = new io(URL,{ reconnection: true, // Enable reconnection - reconnectionAttempts: 3, // Maximum reconnection attempts + reconnectionAttempts: 10, // Maximum reconnection attempts reconnectionDelay: 1000, // Delay between reconnection attempts (in milliseconds) }); diff --git a/zoos/bindings_zoo b/zoos/bindings_zoo index cc80d4f3..002376c6 160000 --- a/zoos/bindings_zoo +++ b/zoos/bindings_zoo @@ -1 +1 @@ -Subproject commit cc80d4f303fc1027b1cbe24b7f6bd8be7e4e7f95 +Subproject commit 002376c68bb41ac07a363e8d37db557c52e057a1 diff --git a/zoos/models_zoo b/zoos/models_zoo index 7b06d5cb..ddd8c60e 160000 --- a/zoos/models_zoo +++ b/zoos/models_zoo @@ -1 +1 @@ -Subproject commit 7b06d5cbddf4cebaca27aad62f399b5f059fbb84 +Subproject commit ddd8c60e32cc21d4a6a1eec599b29377fbcc5ed5 diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 0f23b008..d9400f76 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 0f23b00853064b6bff8ba30cc78d0d9c4c0070bb +Subproject commit d9400f76f34505b1005a1ed0cc8d82d6443b980d