From f57c7817ed4798b467e368230ed20572301a9f50 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 25 Nov 2023 00:03:43 +0100 Subject: [PATCH] Enhanced stuff --- api/__init__.py | 117 +++++++++++------- utilities/safe_store | 2 +- ...{index-62d6a6f7.css => index-0e906c43.css} | 2 +- .../{index-50afe6ea.js => index-2bec6d32.js} | 18 +-- web/dist/index.html | 4 +- web/src/components/Message.vue | 18 ++- web/src/views/DiscussionsView.vue | 11 +- zoos/personalities_zoo | 2 +- 8 files changed, 102 insertions(+), 72 deletions(-) rename web/dist/assets/{index-62d6a6f7.css => index-0e906c43.css} (99%) rename web/dist/assets/{index-50afe6ea.js => index-2bec6d32.js} (97%) diff --git a/api/__init__.py b/api/__init__.py index f55c75b6..071639d4 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -2641,6 +2641,7 @@ class LoLLMsAPPI(LollmsApplication): self.start_time = datetime.now() self.personality.processor.callback = partial(self.process_chunk, client_id=client_id) self.personality.processor.execute_command(command, parameters) + self.close_message(client_id) else: self.notify("Non scripted personalities do not support commands",False,client_id) @@ -2702,13 +2703,14 @@ class LoLLMsAPPI(LollmsApplication): self.notify("Please select a discussion first", False, client_id) return id_ = data['id'] + generation_type = data.get('msg_type',None) if id_==-1: message = self.connections[client_id]["current_discussion"].current_message else: message = self.connections[client_id]["current_discussion"].load_message(id_) if message is None: return - self.connections[client_id]['generation_thread'] = threading.Thread(target=self.start_message_generation, args=(message, message.id, client_id)) + self.connections[client_id]['generation_thread'] = threading.Thread(target=self.start_message_generation, args=(message, message.id, client_id, False, generation_type)) self.connections[client_id]['generation_thread'].start() @socketio.on('continue_generate_msg_from') @@ -3009,7 +3011,7 @@ class LoLLMsAPPI(LollmsApplication): - def prepare_query(self, client_id: str, message_id: int = -1, is_continue: bool = False, n_tokens: int = 0) -> Tuple[str, str, List[str]]: + def prepare_query(self, client_id: str, message_id: int = -1, is_continue: bool = False, n_tokens: int = 0, generation_type = None) -> Tuple[str, str, List[str]]: """ Prepares the query for the model. @@ -3041,43 +3043,45 @@ class LoLLMsAPPI(LollmsApplication): # Check if there are document files to add to the prompt documentation = "" - if self.personality.persona_data_vectorizer: - if documentation=="": - documentation="!@>Documentation:\n" - - if self.config.data_vectorization_build_keys_words: - query = self.personality.fast_gen("!@>prompt:"+current_message.content+"\n!@>instruction: Convert the prompt to a web search query."+"\nDo not answer the prompt. Do not add explanations. Use comma separated syntax to make a list of keywords in the same line.\nThe keywords should reflect the ideas written in the prompt so that a seach engine can process them efficiently.\n!@>query: ", max_generation_size=256, show_progress=True) - ASCIIColors.cyan(f"Query:{query}") - else: - query = current_message.content - - docs, sorted_similarities = self.personality.persona_data_vectorizer.recover_text(query, top_k=self.config.data_vectorization_nb_chunks) - for doc, infos in zip(docs, sorted_similarities): - documentation += f"document chunk:\n{doc}" - - - if len(self.personality.text_files) > 0 and self.personality.vectorizer: - if documentation=="": - documentation="!@>Documentation:\n" - - if self.config.data_vectorization_build_keys_words: - query = self.personality.fast_gen("!@>prompt:"+current_message.content+"\n!@>instruction: Convert the prompt to a web search query."+"\nDo not answer the prompt. Do not add explanations. Use comma separated syntax to make a list of keywords in the same line.\nThe keywords should reflect the ideas written in the prompt so that a seach engine can process them efficiently.\n!@>query: ", max_generation_size=256, show_progress=True) - ASCIIColors.cyan(f"Query:{query}") - else: - query = current_message.content - - docs, sorted_similarities = self.personality.vectorizer.recover_text(query, top_k=self.config.data_vectorization_nb_chunks) - for doc, infos in zip(docs, sorted_similarities): - documentation += f"document chunk:\nchunk path: {infos[0]}\nchunk content:{doc}" - - # Check if there is discussion history to add to the prompt history = "" - if self.config.use_discussions_history and self.discussions_store is not None: - if history=="": - documentation="!@>History:\n" - docs, sorted_similarities = self.discussions_store.recover_text(current_message.content, top_k=self.config.data_vectorization_nb_chunks) - for doc, infos in zip(docs, sorted_similarities): - history += f"!@>discussion chunk:\n!@>discussion title: {infos[0]}\nchunk content:{doc}" + + if generation_type != "simple_question": + if self.personality.persona_data_vectorizer: + if documentation=="": + documentation="!@>Documentation:\n" + + if self.config.data_vectorization_build_keys_words: + query = self.personality.fast_gen("!@>prompt:"+current_message.content+"\n!@>instruction: Convert the prompt to a web search query."+"\nDo not answer the prompt. Do not add explanations. Use comma separated syntax to make a list of keywords in the same line.\nThe keywords should reflect the ideas written in the prompt so that a seach engine can process them efficiently.\n!@>query: ", max_generation_size=256, show_progress=True) + ASCIIColors.cyan(f"Query:{query}") + else: + query = current_message.content + + docs, sorted_similarities = self.personality.persona_data_vectorizer.recover_text(query, top_k=self.config.data_vectorization_nb_chunks) + for doc, infos in zip(docs, sorted_similarities): + documentation += f"document chunk:\n{doc}" + + + if len(self.personality.text_files) > 0 and self.personality.vectorizer: + if documentation=="": + documentation="!@>Documentation:\n" + + if self.config.data_vectorization_build_keys_words: + query = self.personality.fast_gen("!@>prompt:"+current_message.content+"\n!@>instruction: Convert the prompt to a web search query."+"\nDo not answer the prompt. Do not add explanations. Use comma separated syntax to make a list of keywords in the same line.\nThe keywords should reflect the ideas written in the prompt so that a seach engine can process them efficiently.\n!@>query: ", max_generation_size=256, show_progress=True) + ASCIIColors.cyan(f"Query:{query}") + else: + query = current_message.content + + docs, sorted_similarities = self.personality.vectorizer.recover_text(query, top_k=self.config.data_vectorization_nb_chunks) + for doc, infos in zip(docs, sorted_similarities): + documentation += f"document chunk:\nchunk path: {infos[0]}\nchunk content:{doc}" + + # Check if there is discussion history to add to the prompt + if self.config.use_discussions_history and self.discussions_store is not None: + if history=="": + documentation="!@>History:\n" + docs, sorted_similarities = self.discussions_store.recover_text(current_message.content, top_k=self.config.data_vectorization_nb_chunks) + for doc, infos in zip(docs, sorted_similarities): + history += f"!@>discussion chunk:\n!@>discussion title: {infos[0]}\nchunk content:{doc}" # Add information about the user user_description="" @@ -3141,9 +3145,30 @@ class LoLLMsAPPI(LollmsApplication): tokens_accumulated += len(message_tokenized) - # Accumulate messages starting from message_index - for i in range(message_index, -1, -1): - message = messages[i] + if generation_type != "simple_question": + # Accumulate messages starting from message_index + for i in range(message_index, -1, -1): + message = messages[i] + + # Check if the message content is not empty and visible to the AI + if message.content != '' and ( + message.message_type <= MSG_TYPE.MSG_TYPE_FULL_INVISIBLE_TO_USER.value and message.message_type != MSG_TYPE.MSG_TYPE_FULL_INVISIBLE_TO_AI.value): + + # Tokenize the message content + message_tokenized = self.model.tokenize( + "\n" + self.config.discussion_prompt_separator + message.sender + ": " + message.content.strip()) + + # Check if adding the message will exceed the available space + if tokens_accumulated + len(message_tokenized) > available_space: + break + + # Add the tokenized message to the full_message_list + full_message_list.insert(0, message_tokenized) + + # Update the cumulative number of tokens + tokens_accumulated += len(message_tokenized) + else: + message = messages[message_index] # Check if the message content is not empty and visible to the AI if message.content != '' and ( @@ -3153,10 +3178,6 @@ class LoLLMsAPPI(LollmsApplication): message_tokenized = self.model.tokenize( "\n" + self.config.discussion_prompt_separator + message.sender + ": " + message.content.strip()) - # Check if adding the message will exceed the available space - if tokens_accumulated + len(message_tokenized) > available_space: - break - # Add the tokenized message to the full_message_list full_message_list.insert(0, message_tokenized) @@ -3217,7 +3238,7 @@ class LoLLMsAPPI(LollmsApplication): - def notify(self, content, status, client_id=None): + def notify(self, content, status=True, client_id=None): self.socketio.emit('notification', { 'content': content,# self.connections[client_id]["generated_text"], 'status': status @@ -3534,7 +3555,7 @@ class LoLLMsAPPI(LollmsApplication): output = "" return output - def start_message_generation(self, message, message_id, client_id, is_continue=False): + def start_message_generation(self, message, message_id, client_id, is_continue=False, generation_type=None): if self.personality is None: self.notify("Select a personality",False,None) return @@ -3555,7 +3576,7 @@ class LoLLMsAPPI(LollmsApplication): self.socketio.sleep(0.01) # prepare query and reception - self.discussion_messages, self.current_message, tokens = self.prepare_query(client_id, message_id, is_continue) + self.discussion_messages, self.current_message, tokens = self.prepare_query(client_id, message_id, is_continue, generation_type=generation_type) self.prepare_reception(client_id) self.generating = True self.connections[client_id]["processing"]=True diff --git a/utilities/safe_store b/utilities/safe_store index b5f5386e..708548fc 160000 --- a/utilities/safe_store +++ b/utilities/safe_store @@ -1 +1 @@ -Subproject commit b5f5386efd6fd0916188f225080e1700288df3a0 +Subproject commit 708548fcd776162aca4abac930c0dcdb6a36d84e diff --git a/web/dist/assets/index-62d6a6f7.css b/web/dist/assets/index-0e906c43.css similarity index 99% rename from web/dist/assets/index-62d6a6f7.css rename to web/dist/assets/index-0e906c43.css index 682563a4..18390123 100644 --- a/web/dist/assets/index-62d6a6f7.css +++ b/web/dist/assets/index-0e906c43.css @@ -5,4 +5,4 @@ Author: (c) Henri Vandersleyen License: see project LICENSE Touched: 2022 -*/.hljs-meta,.hljs-comment{color:#565f89}.hljs-tag,.hljs-doctag,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-template-tag,.hljs-selector-pseudo,.hljs-selector-attr,.hljs-variable.language_,.hljs-deletion{color:#f7768e}.hljs-variable,.hljs-template-variable,.hljs-number,.hljs-literal,.hljs-type,.hljs-params,.hljs-link{color:#ff9e64}.hljs-built_in,.hljs-attribute{color:#e0af68}.hljs-selector-tag{color:#2ac3de}.hljs-keyword,.hljs-title.function_,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-subst,.hljs-property{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-quote,.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-name,.hljs-keyword,.hljs-operator,.hljs-char.escape_,.hljs-attr{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.code-container{display:flex;margin:0}.line-numbers{flex-shrink:0;padding-right:5px;color:#999;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;margin:0}.code-content{flex-grow:1;margin:0}.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-0a233bdf]{font-size:24px;animation:pulsate-0a233bdf 1.5s infinite}@keyframes pulsate-0a233bdf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-0a233bdf],.list-enter-active[data-v-0a233bdf],.list-leave-active[data-v-0a233bdf]{transition:all .5s ease}.list-enter-from[data-v-0a233bdf]{transform:translatey(-30px)}.list-leave-to[data-v-0a233bdf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-0a233bdf]{position:absolute}.bounce-enter-active[data-v-0a233bdf]{animation:bounce-in-0a233bdf .5s}.bounce-leave-active[data-v-0a233bdf]{animation:bounce-in-0a233bdf .5s reverse}@keyframes bounce-in-0a233bdf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-0a233bdf]{background-color:#0ff}.hover[data-v-0a233bdf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-0a233bdf]{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-424e1da1],.list-enter-active[data-v-424e1da1],.list-leave-active[data-v-424e1da1]{transition:all .5s ease}.list-enter-from[data-v-424e1da1]{transform:translatey(-30px)}.list-leave-to[data-v-424e1da1]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-424e1da1]{position:absolute}.slide-right-enter-active[data-v-409a8e0c],.slide-right-leave-active[data-v-409a8e0c]{transition:transform .3s ease}.slide-right-enter[data-v-409a8e0c],.slide-right-leave-to[data-v-409a8e0c]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-409a8e0c]{animation:fade-and-fly-enter-409a8e0c .5s ease}.fade-and-fly-leave-active[data-v-409a8e0c]{animation:fade-and-fly-leave-409a8e0c .5s ease}@keyframes fade-and-fly-enter-409a8e0c{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-409a8e0c{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-409a8e0c],.list-enter-active[data-v-409a8e0c],.list-leave-active[data-v-409a8e0c]{transition:all .5s ease}.list-enter-from[data-v-409a8e0c]{transform:translatey(-30px)}.list-leave-to[data-v-409a8e0c]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-409a8e0c]{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-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-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-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-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: #0fd974 !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-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-0a233bdf]{font-size:24px;animation:pulsate-0a233bdf 1.5s infinite}@keyframes pulsate-0a233bdf{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.list-move[data-v-0a233bdf],.list-enter-active[data-v-0a233bdf],.list-leave-active[data-v-0a233bdf]{transition:all .5s ease}.list-enter-from[data-v-0a233bdf]{transform:translatey(-30px)}.list-leave-to[data-v-0a233bdf]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-0a233bdf]{position:absolute}.bounce-enter-active[data-v-0a233bdf]{animation:bounce-in-0a233bdf .5s}.bounce-leave-active[data-v-0a233bdf]{animation:bounce-in-0a233bdf .5s reverse}@keyframes bounce-in-0a233bdf{0%{transform:scale(0)}50%{transform:scale(1.25)}to{transform:scale(1)}}.bg-primary-light[data-v-0a233bdf]{background-color:#0ff}.hover[data-v-0a233bdf]:bg-primary-light:hover{background-color:#7fffd4}.font-bold[data-v-0a233bdf]{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-424e1da1],.list-enter-active[data-v-424e1da1],.list-leave-active[data-v-424e1da1]{transition:all .5s ease}.list-enter-from[data-v-424e1da1]{transform:translatey(-30px)}.list-leave-to[data-v-424e1da1]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-424e1da1]{position:absolute}.slide-right-enter-active[data-v-fabac0ac],.slide-right-leave-active[data-v-fabac0ac]{transition:transform .3s ease}.slide-right-enter[data-v-fabac0ac],.slide-right-leave-to[data-v-fabac0ac]{transform:translate(-100%)}.fade-and-fly-enter-active[data-v-fabac0ac]{animation:fade-and-fly-enter-fabac0ac .5s ease}.fade-and-fly-leave-active[data-v-fabac0ac]{animation:fade-and-fly-leave-fabac0ac .5s ease}@keyframes fade-and-fly-enter-fabac0ac{0%{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fade-and-fly-leave-fabac0ac{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-20px) scale(1.2)}}.list-move[data-v-fabac0ac],.list-enter-active[data-v-fabac0ac],.list-leave-active[data-v-fabac0ac]{transition:all .5s ease}.list-enter-from[data-v-fabac0ac]{transform:translatey(-30px)}.list-leave-to[data-v-fabac0ac]{opacity:0;transform:translatey(30px)}.list-leave-active[data-v-fabac0ac]{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-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-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-secondary{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-slate-950{--tw-text-opacity: 1;color:rgb(2 6 23 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.text-opacity-95{--tw-text-opacity: .95}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale-0{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar{scrollbar-width:auto}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-bg-light{--scrollbar-track: #e2edff !important}.scrollbar-track-bg-light-tone{--scrollbar-track: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone{--scrollbar-thumb: #b9d2f7 !important}.scrollbar-thumb-bg-light-tone-panel{--scrollbar-thumb: #8fb5ef !important}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.display-none{display:none}h1{font-size:36px;font-weight:700}h2{font-size:24px;font-weight:700}h3{font-size:18px;font-weight:700}h4{font-size:18px;font-style:italic}p{font-size:16px;word-wrap:break-word;overflow-wrap:break-word;white-space:normal}ul{list-style-type:disc;margin-left:0}li{list-style-type:disc;margin-left:20px}ol{list-style-type:decimal;margin-left:20px}.odd\:bg-bg-light-tone:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(185 210 247 / var(--tw-bg-opacity))}.even\:bg-bg-light-discussion-odd:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(214 231 255 / var(--tw-bg-opacity))}.even\:bg-bg-light-tone-panel:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(143 181 239 / var(--tw-bg-opacity))}.group\/avatar:hover .group-hover\/avatar\:visible,.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-secondary{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group\/avatar:hover .group-hover\/avatar\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:text-primary{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:z-10:hover{z-index:10}.hover\:z-20:hover{z-index:20}.hover\:block:hover{display:block}.hover\:h-8:hover{height:2rem}.hover\:-translate-y-2:hover{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-95:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-2:hover{border-width:2px}.hover\:border-solid:hover{border-style:solid}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:border-gray-600:hover{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.hover\:border-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-green-500:hover{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(14 142 240 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.hover\:text-secondary:hover{--tw-text-opacity: 1;color:rgb(15 217 116 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:scrollbar-thumb-primary{--scrollbar-thumb-hover: #0e8ef0 !important}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:border-secondary:focus{--tw-border-opacity: 1;border-color:rgb(15 217 116 / var(--tw-border-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(195 221 253 / var(--tw-ring-opacity))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(15 217 116 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.active\:scale-75:active{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-90:active{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scrollbar-thumb-secondary{--scrollbar-thumb-active: #0fd974 !important}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-bg-light){--tw-border-opacity: 1;border-color:rgb(226 237 255 / var(--tw-border-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-bg-dark){--tw-bg-opacity: 1;background-color:rgb(19 46 89 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-discussion){--tw-bg-opacity: 1;background-color:rgb(67 94 138 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone){--tw-bg-opacity: 1;background-color:rgb(37 71 125 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-bg-dark-tone-panel){--tw-bg-opacity: 1;background-color:rgb(67 103 163 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-500){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-700){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-800){--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-500){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-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/assets/index-50afe6ea.js b/web/dist/assets/index-2bec6d32.js similarity index 97% rename from web/dist/assets/index-50afe6ea.js rename to web/dist/assets/index-2bec6d32.js index b797174c..bc4f4fe6 100644 --- a/web/dist/assets/index-50afe6ea.js +++ b/web/dist/assets/index-2bec6d32.js @@ -154,10 +154,10 @@ Error: `+e.error,4,!1);this.isLoading=!1},async remountExtension(t){await this.u `+e.message,4,!1),{status:!1}))},onPersonalityReinstall(t){console.log("on reinstall ",t),this.isLoading=!0,Te.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(),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 console.log("this.$store.state.mountedExtensions:",this.$store.state.mountedExtensions),this.$store.state.mountedExtensions},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(()=>{Re.replace()})},pc_collapsed(){ve(()=>{Re.replace()})},mc_collapsed(){ve(()=>{Re.replace()})},sc_collapsed(){ve(()=>{Re.replace()})},showConfirmation(){ve(()=>{Re.replace()})},mzl_collapsed(){ve(()=>{Re.replace()})},pzl_collapsed(){ve(()=>{Re.replace()})},bzl_collapsed(){ve(()=>{Re.replace()})},all_collapsed(t){this.collapseAll(t),ve(()=>{Re.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,ve(()=>{Re.replace()})},isLoading(){ve(()=>{Re.replace()})},searchPersonality(t){t==""&&this.filterPersonalities()},searchModel(t){t==""&&this.filterModels()},mzdc_collapsed(){ve(()=>{Re.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}},ae=t=>(hr("data-v-0a233bdf"),t=t(),Er(),t),hWe={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"},EWe={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"},bWe={key:0,class:"flex gap-3 flex-1 items-center duration-75"},SWe=ae(()=>c("i",{"data-feather":"x"},null,-1)),yWe=[SWe],vWe=ae(()=>c("i",{"data-feather":"check"},null,-1)),TWe=[vWe],CWe={key:1,class:"flex gap-3 flex-1 items-center"},RWe=ae(()=>c("i",{"data-feather":"save"},null,-1)),xWe=[RWe],OWe=ae(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),AWe=[OWe],NWe=ae(()=>c("i",{"data-feather":"list"},null,-1)),wWe=[NWe],IWe={class:"flex gap-3 flex-1 items-center justify-end"},DWe=ae(()=>c("i",{"data-feather":"trash-2"},null,-1)),kWe=[DWe],MWe=ae(()=>c("i",{"data-feather":"refresh-ccw"},null,-1)),LWe=[MWe],PWe=ae(()=>c("i",{"data-feather":"arrow-up-circle"},null,-1)),FWe={key:0},UWe=ae(()=>c("i",{"data-feather":"alert-circle"},null,-1)),BWe=[UWe],GWe={class:"flex gap-3 items-center"},qWe={key:0,class:"flex gap-3 items-center"},YWe=ae(()=>c("p",{class:"text-red-600 font-bold"},"Apply changes:",-1)),VWe=ae(()=>c("i",{"data-feather":"check"},null,-1)),zWe=[VWe],HWe={key:1,role:"status"},$We=ae(()=>c("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"},[c("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"}),c("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)),WWe=ae(()=>c("span",{class:"sr-only"},"Loading...",-1)),KWe={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"},QWe={class:"flex flex-row p-3"},jWe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),ZWe=[jWe],XWe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),JWe=[XWe],eKe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),tKe=ae(()=>c("div",{class:"mr-2"},"|",-1)),nKe={class:"text-base font-semibold cursor-pointer select-none items-center"},rKe={class:"flex gap-2 items-center"},sKe={key:0},oKe={class:"flex gap-2 items-center"},iKe=["src"],aKe={class:"font-bold font-large text-lg"},lKe={key:1},cKe={class:"flex gap-2 items-center"},dKe=["src"],uKe={class:"font-bold font-large text-lg"},_Ke=ae(()=>c("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),pKe={class:"font-bold font-large text-lg"},mKe=ae(()=>c("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),gKe={class:"font-bold font-large text-lg"},fKe={class:"mb-2"},hKe=ae(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[c("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"})]),xe(" CPU Ram usage: ")],-1)),EKe={class:"flex flex-col mx-2"},bKe=ae(()=>c("b",null,"Avaliable ram: ",-1)),SKe=ae(()=>c("b",null,"Ram usage: ",-1)),yKe={class:"p-2"},vKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},TKe={class:"mb-2"},CKe=ae(()=>c("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[c("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),xe(" Disk usage: ")],-1)),RKe={class:"flex flex-col mx-2"},xKe=ae(()=>c("b",null,"Avaliable disk space: ",-1)),OKe=ae(()=>c("b",null,"Disk usage: ",-1)),AKe={class:"p-2"},NKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},wKe={class:"mb-2"},IKe={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},DKe=["src"],kKe={class:"flex flex-col mx-2"},MKe=ae(()=>c("b",null,"Model: ",-1)),LKe=ae(()=>c("b",null,"Avaliable vram: ",-1)),PKe=ae(()=>c("b",null,"GPU usage: ",-1)),FKe={class:"p-2"},UKe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},BKe={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"},GKe={class:"flex flex-row p-3"},qKe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),YKe=[qKe],VKe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),zKe=[VKe],HKe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1)),$Ke={class:"flex flex-col mb-2 px-3 pb-2"},WKe={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"},KKe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),QKe={style:{width:"100%"}},jKe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),ZKe={style:{width:"100%"}},XKe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"db_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),JKe={style:{width:"100%"}},eQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),tQe={class:"flex flex-row"},nQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"enable_gpu",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable GPU:")],-1)),rQe={class:"text-center items-center"},sQe={class:"flex flex-row"},oQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),iQe={class:"flex flex-row"},aQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),lQe={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"},dQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),uQe={style:{width:"100%"}},_Qe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),pQe={style:{width:"100%"}},mQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),gQe={style:{width:"100%"}},fQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),hQe={style:{width:"100%"}},EQe={for:"avatar-upload"},bQe=["src"],SQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),yQe={class:"flex flex-row"},vQe={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"},TQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_files",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate files support:")],-1)),CQe={class:"flex flex-row"},RQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"use_discussions_history",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate discussion vectorization:")],-1)),xQe={class:"flex flex-row"},OQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),AQe={class:"flex flex-row"},NQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate data Vectorization:")],-1)),wQe={class:"flex flex-row"},IQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Build keywords when querying the vectorized database:")],-1)),DQe={class:"flex flex-row"},kQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),MQe=ae(()=>c("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1)),LQe=ae(()=>c("option",{value:"model_embedding"},"Model Embedding",-1)),PQe=[MQe,LQe],FQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),UQe=ae(()=>c("option",{value:"PCA"},"PCA",-1)),BQe=ae(()=>c("option",{value:"TSNE"},"TSNE",-1)),GQe=[UQe,BQe],qQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("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)),YQe={class:"flex flex-row"},VQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),zQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),HQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),$Qe={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"},WQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),KQe={class:"flex flex-row"},QQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),jQe={class:"flex flex-row"},ZQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),XQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),JQe=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),eje=["value"],tje=ae(()=>c("td",{style:{"min-width":"200px"}},[c("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),nje=["value"],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"},sje={class:"flex flex-row p-3"},oje=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),ije=[oje],aje=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),lje=[aje],cje=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),dje={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},uje=ae(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),_je={key:1,class:"mr-2"},pje={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},mje={class:"flex gap-1 items-center"},gje=["src"],fje={class:"font-bold font-large text-lg line-clamp-1"},hje={key:0,class:"mb-2"},Eje={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},bje=ae(()=>c("i",{"data-feather":"chevron-up"},null,-1)),Sje=[bje],yje=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),vje=[yje],Tje={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"},Cje={class:"flex flex-row p-3"},Rje=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),xje=[Rje],Oje=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),Aje=[Oje],Nje=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),wje={class:"flex flex-row items-center"},Ije={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Dje=ae(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),kje={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Mje=ae(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),Lje={key:2,class:"mr-2"},Pje={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Fje={class:"flex gap-1 items-center"},Uje=["src"],Bje={class:"font-bold font-large text-lg line-clamp-1"},Gje={class:"mx-2 mb-4"},qje={class:"relative"},Yje={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Vje={key:0},zje=ae(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Hje=[zje],$je={key:1},Wje=ae(()=>c("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"},[c("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)),Kje=[Wje],Qje=ae(()=>c("label",{for:"only_installed"},"Show only installed models",-1)),jje=ae(()=>c("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)),Zje={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},Xje=ae(()=>c("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"},[c("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"}),c("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)),Jje=ae(()=>c("p",{class:"heartbeat-text"},"Loading models Zoo",-1)),eZe=[Xje,Jje],tZe={key:1},nZe={key:0,class:"mb-2"},rZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},sZe={key:2},oZe={key:0,class:"mb-2"},iZe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},aZe=ae(()=>c("i",{"data-feather":"chevron-up"},null,-1)),lZe=[aZe],cZe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),dZe=[cZe],uZe={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"},_Ze={class:"flex flex-row p-3"},pZe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),mZe=[pZe],gZe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),fZe=[gZe],hZe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Add models for binding",-1)),EZe={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},bZe=ae(()=>c("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1)),SZe={key:1,class:"mr-2"},yZe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},vZe={class:"flex gap-1 items-center"},TZe=["src"],CZe={class:"font-bold font-large text-lg line-clamp-1"},RZe={class:"mb-2"},xZe={class:"p-2"},OZe={class:"mb-3"},AZe=ae(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),NZe={key:0},wZe={class:"mb-3"},IZe=ae(()=>c("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),DZe={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},kZe=ae(()=>c("div",{role:"status",class:"justify-center"},null,-1)),MZe={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},LZe={class:"w-full p-2"},PZe={class:"flex justify-between mb-1"},FZe=G_(' Downloading Loading...',1),UZe={class:"text-sm font-medium text-blue-700 dark:text-white"},BZe=["title"],GZe={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},qZe={class:"flex justify-between mb-1"},YZe={class:"text-base font-medium text-blue-700 dark:text-white"},VZe={class:"text-sm font-medium text-blue-700 dark:text-white"},zZe={class:"flex flex-grow"},HZe={class:"flex flex-row flex-grow gap-3"},$Ze={class:"p-2 text-center grow"},WZe={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"},KZe={class:"flex flex-row p-3 items-center"},QZe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),jZe=[QZe],ZZe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),XZe=[ZZe],JZe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),eXe={key:0,class:"mr-2"},tXe={class:"mr-2 font-bold font-large text-lg line-clamp-1"},nXe={key:1,class:"mr-2"},rXe={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},sXe={key:0,class:"flex -space-x-4 items-center"},oXe={class:"group items-center flex flex-row"},iXe=["onClick"],aXe=["src","title"],lXe=["onClick"],cXe=ae(()=>c("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"},[c("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"},[c("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)),dXe=[cXe],uXe={class:"mx-2 mb-4"},_Xe=ae(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),pXe={class:"relative"},mXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},gXe={key:0},fXe=ae(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),hXe=[fXe],EXe={key:1},bXe=ae(()=>c("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"},[c("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)),SXe=[bXe],yXe={key:0,class:"mx-2 mb-4"},vXe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},TXe=["selected"],CXe={key:0,class:"mb-2"},RXe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},xXe=ae(()=>c("i",{"data-feather":"chevron-up"},null,-1)),OXe=[xXe],AXe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),NXe=[AXe],wXe={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"},IXe={class:"flex flex-row p-3 items-center"},DXe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),kXe=[DXe],MXe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),LXe=[MXe],PXe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Extensions zoo",-1)),FXe={key:0,class:"mr-2"},UXe={key:1,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},BXe={key:0,class:"flex -space-x-4 items-center"},GXe={class:"group items-center flex flex-row"},qXe=["onClick"],YXe=["src","title"],VXe=["onClick"],zXe=ae(()=>c("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"},[c("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"},[c("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)),HXe=[zXe],$Xe={class:"mx-2 mb-4"},WXe=ae(()=>c("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),KXe={class:"relative"},QXe={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},jXe={key:0},ZXe=ae(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),XXe=[ZXe],JXe={key:1},eJe=ae(()=>c("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"},[c("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)),tJe=[eJe],nJe={key:0,class:"mx-2 mb-4"},rJe={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},sJe=["selected"],oJe={key:0,class:"mb-2"},iJe={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},aJe=ae(()=>c("i",{"data-feather":"chevron-up"},null,-1)),lJe=[aJe],cJe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),dJe=[cJe],uJe={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"},_Je={class:"flex flex-row p-3 items-center"},pJe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),mJe=[pJe],gJe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),fJe=[gJe],hJe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Mounted Extensions Priority",-1)),EJe={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"},bJe={class:"flex flex-row"},SJe=ae(()=>c("i",{"data-feather":"chevron-right"},null,-1)),yJe=[SJe],vJe=ae(()=>c("i",{"data-feather":"chevron-down"},null,-1)),TJe=[vJe],CJe=ae(()=>c("h3",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1)),RJe={class:"m-2"},xJe={class:"flex flex-row gap-2 items-center"},OJe=ae(()=>c("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1)),AJe={class:"m-2"},NJe=ae(()=>c("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),wJe={class:"m-2"},IJe={class:"flex flex-col align-bottom"},DJe={class:"relative"},kJe=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),MJe={class:"absolute right-0"},LJe={class:"m-2"},PJe={class:"flex flex-col align-bottom"},FJe={class:"relative"},UJe=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),BJe={class:"absolute right-0"},GJe={class:"m-2"},qJe={class:"flex flex-col align-bottom"},YJe={class:"relative"},VJe=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),zJe={class:"absolute right-0"},HJe={class:"m-2"},$Je={class:"flex flex-col align-bottom"},WJe={class:"relative"},KJe=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),QJe={class:"absolute right-0"},jJe={class:"m-2"},ZJe={class:"flex flex-col align-bottom"},XJe={class:"relative"},JJe=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),eet={class:"absolute right-0"},tet={class:"m-2"},net={class:"flex flex-col align-bottom"},ret={class:"relative"},set=ae(()=>c("p",{class:"absolute left-0 mt-6"},[c("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),oet={class:"absolute right-0"};function iet(t,e,n,r,s,o){const i=Pe("Card"),a=Pe("BindingEntry"),l=Pe("RadioOptions"),u=Pe("model-entry"),d=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,[c("div",hWe,[c("div",EWe,[s.showConfirmation?(v(),T("div",bWe,[c("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"]))},yWe),c("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"]))},TWe)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",CWe,[c("button",{title:"Save configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=m=>s.showConfirmation=!0)},xWe),c("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[3]||(e[3]=m=>o.reset_configuration())},AWe),c("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"]))},wWe)])),c("div",IWe,[c("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)}))},kWe),c("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)}))},LWe),c("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)}))},[PWe,s.has_updates?(v(),T("div",FWe,BWe)):U("",!0)]),c("div",GWe,[s.settingsChanged?(v(),T("div",qWe,[YWe,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"]))},zWe))])):U("",!0),s.isLoading?(v(),T("div",HWe,[c("p",null,j(s.loading_text),1),$We,WWe])):U("",!0)])])]),c("div",{class:Ae(s.isLoading?"pointer-events-none opacity-30":"")},[c("div",KWe,[c("div",QWe,[c("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(c("div",null,ZWe,512),[[We,s.sc_collapsed]]),ce(c("div",null,JWe,512),[[We,!s.sc_collapsed]]),eKe,tKe,c("div",nKe,[c("div",rKe,[c("div",null,[o.vramUsage&&o.vramUsage.gpus&&o.vramUsage.gpus.length==1?(v(),T("div",sKe,[(v(!0),T(we,null,Be(o.vramUsage.gpus,m=>(v(),T("div",oKe,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,iKe),c("h3",aKe,[c("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",lKe,[c("div",cKe,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,dKe),c("h3",uKe,[c("div",null,j(o.vramUsage.gpus.length)+"x ",1)])])])):U("",!0)]),_Ke,c("h3",pKe,[c("div",null,j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+"%)",1)]),mKe,c("h3",gKe,[c("div",null,j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])])])])]),c("div",{class:Ae([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",fKe,[hKe,c("div",EKe,[c("div",null,[bKe,xe(j(o.ram_available_space),1)]),c("div",null,[SKe,xe(" "+j(o.ram_usage)+" / "+j(o.ram_total_space)+" ("+j(o.ram_percent_usage)+")% ",1)])]),c("div",yKe,[c("div",vKe,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+o.ram_percent_usage+"%;")},null,4)])])]),c("div",TKe,[CKe,c("div",RKe,[c("div",null,[xKe,xe(j(o.disk_available_space),1)]),c("div",null,[OKe,xe(" "+j(o.disk_binding_models_usage)+" / "+j(o.disk_total_space)+" ("+j(o.disk_percent_usage)+"%)",1)])]),c("div",AKe,[c("div",NKe,[c("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",wKe,[c("label",IKe,[c("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,DKe),xe(" GPU usage: ")]),c("div",kKe,[c("div",null,[MKe,xe(j(m.gpu_model),1)]),c("div",null,[LKe,xe(j(this.computedFileSize(m.available_space)),1)]),c("div",null,[PKe,xe(" "+j(this.computedFileSize(m.used_vram))+" / "+j(this.computedFileSize(m.total_vram))+" ("+j(m.percentage)+"%)",1)])]),c("div",FKe,[c("div",UKe,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht("width: "+m.percentage+"%;")},null,4)])])]))),256))],2)]),c("div",BKe,[c("div",GKe,[c("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(c("div",null,YKe,512),[[We,s.minconf_collapsed]]),ce(c("div",null,zKe,512),[[We,!s.minconf_collapsed]]),HKe])]),c("div",{class:Ae([{hidden:s.minconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",$Ke,[he(i,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:ke(()=>[c("table",WKe,[c("tr",null,[KKe,c("td",QKe,[ce(c("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]])])]),c("tr",null,[jKe,c("td",ZKe,[ce(c("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]])])]),c("tr",null,[XKe,c("td",JKe,[ce(c("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]])])]),c("tr",null,[eQe,c("td",null,[c("div",tQe,[ce(c("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]])])])]),c("tr",null,[nQe,c("td",rQe,[c("div",sQe,[ce(c("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 "))])])]),c("tr",null,[oQe,c("td",null,[c("div",iQe,[ce(c("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]])])])]),c("tr",null,[aQe,c("td",null,[c("div",lQe,[ce(c("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(()=>[c("table",cQe,[c("tr",null,[dQe,c("td",uQe,[ce(c("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]])])]),c("tr",null,[_Qe,c("td",pQe,[ce(c("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]])])]),c("tr",null,[mQe,c("td",gQe,[ce(c("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]])])]),c("tr",null,[fQe,c("td",hQe,[c("label",EQe,[c("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,bQe)]),c("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[32]||(e[32]=(...m)=>o.uploadAvatar&&o.uploadAvatar(...m))},null,32)])]),c("tr",null,[SQe,c("td",null,[c("div",yQe,[ce(c("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(()=>[c("table",vQe,[c("tr",null,[TQe,c("td",null,[c("div",CQe,[ce(c("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]])])])]),c("tr",null,[RQe,c("td",null,[c("div",xQe,[ce(c("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]])])])]),c("tr",null,[OQe,c("td",null,[c("div",AQe,[ce(c("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]])])])]),c("tr",null,[NQe,c("td",null,[c("div",wQe,[ce(c("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]])])])]),c("tr",null,[IQe,c("td",null,[c("div",DQe,[ce(c("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]])])])]),c("tr",null,[kQe,c("td",null,[ce(c("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"},PQe,544),[[Kt,o.configFile.data_vectorization_method]])])]),c("tr",null,[FQe,c("td",null,[ce(c("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"},GQe,544),[[Kt,o.configFile.data_visualization_method]])])]),c("tr",null,[qQe,c("td",null,[c("div",YQe,[ce(c("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]])])])]),c("tr",null,[VQe,c("td",null,[ce(c("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(c("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]])])]),c("tr",null,[zQe,c("td",null,[ce(c("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(c("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]])])]),c("tr",null,[HQe,c("td",null,[ce(c("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(c("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(()=>[c("table",$Qe,[c("tr",null,[WQe,c("td",null,[c("div",KQe,[ce(c("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]])])])]),c("tr",null,[QQe,c("td",null,[c("div",jQe,[ce(c("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]])])])]),c("tr",null,[ZQe,c("td",null,[ce(c("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(c("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]])])]),c("tr",null,[XQe,c("td",null,[ce(c("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(c("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]])])]),c("tr",null,[JQe,c("td",null,[ce(c("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,eje))),128))],544),[[Kt,o.configFile.audio_in_language]])])]),c("tr",null,[tje,c("td",null,[ce(c("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,nje))),128))],544),[[Kt,o.configFile.audio_out_voice]])])])])]),_:1})])],2)]),c("div",rje,[c("div",sje,[c("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(c("div",null,ije,512),[[We,s.bzc_collapsed]]),ce(c("div",null,lje,512),[[We,!s.bzc_collapsed]]),cje,o.configFile.binding_name?U("",!0):(v(),T("div",dje,[uje,xe(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",_je,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",pje,[c("div",mje,[c("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,gje),c("h3",fje,j(o.binding_name),1)])])):U("",!0)])]),c("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",hje,[c("label",Eje," Bindings: ("+j(o.bindingsArr.length)+") ",1),c("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(Vn,{name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(o.bindingsArr,(m,S)=>(v(),rt(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)},Sje)):(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)},vje))],2)]),c("div",Tje,[c("div",Cje,[c("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(c("div",null,xje,512),[[We,s.mzc_collapsed]]),ce(c("div",null,Aje,512),[[We,!s.mzc_collapsed]]),Nje,c("div",wje,[o.configFile.binding_name?U("",!0):(v(),T("div",Ije,[Dje,xe(" Select binding first! ")])),!s.isModelSelected&&o.configFile.binding_name?(v(),T("div",kje,[Mje,xe(" No model selected! ")])):U("",!0),o.configFile.model_name?(v(),T("div",Lje,"|")):U("",!0),o.configFile.model_name?(v(),T("div",Pje,[c("div",Fje,[c("img",{src:s.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Uje),c("h3",Bje,j(o.configFile.model_name),1)])])):U("",!0)])])]),c("div",{class:Ae([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",Gje,[c("div",qje,[c("div",Yje,[s.searchModelInProgress?(v(),T("div",Vje,Hje)):U("",!0),s.searchModelInProgress?U("",!0):(v(),T("div",$je,Kje))]),ce(c("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]=Kr((...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)])]),c("div",null,[ce(c("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]]),Qje]),c("div",null,[he(l,{radioOptions:s.sortOptions,onRadioSelected:o.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),jje,s.is_loading_zoo?(v(),T("div",Zje,eZe)):U("",!0),s.searchModel?(v(),T("div",tZe,[s.modelsFiltered.length>0?(v(),T("div",nZe,[c("label",rZe," Search results: ("+j(s.modelsFiltered.length)+") ",1),c("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(),rt(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",sZe,[s.models_zoo&&s.models_zoo.length>0?(v(),T("div",oZe,[c("label",iZe," Models: ("+j(s.models_zoo.length)+") ",1),c("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(),rt(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))},lZe)):(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))},dZe))],2)]),c("div",uZe,[c("div",_Ze,[c("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(c("div",null,mZe,512),[[We,s.mzdc_collapsed]]),ce(c("div",null,fZe,512),[[We,!s.mzdc_collapsed]]),hZe,o.binding_name?U("",!0):(v(),T("div",EZe,[bZe,xe(" No binding selected! ")])),o.configFile.binding_name?(v(),T("div",SZe,"|")):U("",!0),o.configFile.binding_name?(v(),T("div",yZe,[c("div",vZe,[c("img",{src:o.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,TZe),c("h3",CZe,j(o.binding_name),1)])])):U("",!0)])]),c("div",{class:Ae([{hidden:s.mzdc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",RZe,[c("div",xZe,[c("div",null,[c("div",OZe,[AZe,ce(c("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]])]),c("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",NZe,[c("div",wZe,[IZe,ce(c("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]])]),c("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",DZe,[kZe,c("div",MZe,[c("div",LZe,[c("div",PZe,[FZe,c("span",UZe,j(Math.floor(s.addModel.progress))+"%",1)]),c("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},j(s.addModel.url),9,BZe),c("div",GZe,[c("div",{class:"bg-blue-600 h-2.5 rounded-full",style:ht({width:s.addModel.progress+"%"})},null,4)]),c("div",qZe,[c("span",YZe,"Download speed: "+j(o.speed_computed)+"/s",1),c("span",VZe,j(o.downloaded_size_computed)+"/"+j(o.total_size_computed),1)])])]),c("div",zZe,[c("div",HZe,[c("div",$Ze,[c("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)]),c("div",WZe,[c("div",KZe,[c("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(c("div",null,jZe,512),[[We,s.pzc_collapsed]]),ce(c("div",null,XZe,512),[[We,!s.pzc_collapsed]]),JZe,o.configFile.personalities?(v(),T("div",eXe,"|")):U("",!0),c("div",tXe,j(o.active_pesonality),1),o.configFile.personalities?(v(),T("div",nXe,"|")):U("",!0),o.configFile.personalities?(v(),T("div",rXe,[o.mountedPersArr.length>0?(v(),T("div",sXe,[(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"},[c("div",oXe,[c("button",{onClick:_e(C=>o.onPersonalitySelected(m),["stop"])},[c("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,aXe)],8,iXe),c("button",{onClick:_e(C=>o.unmountPersonality(m),["stop"])},dXe,8,lXe)])]))),128))])):U("",!0)])):U("",!0)])]),c("div",{class:Ae([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",uXe,[_Xe,c("div",pXe,[c("div",mXe,[s.searchPersonalityInProgress?(v(),T("div",gXe,hXe)):U("",!0),s.searchPersonalityInProgress?U("",!0):(v(),T("div",EXe,SXe))]),ce(c("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",yXe,[c("label",vXe," Personalities Category: ("+j(s.persCatgArr.length)+") ",1),c("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,TXe))),128))],32)])),c("div",null,[s.personalitiesFiltered.length>0?(v(),T("div",CXe,[c("label",RXe,j(s.searchPersonality?"Search results":"Personalities")+": ("+j(s.personalitiesFiltered.length)+") ",1),c("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(Vn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(s.personalitiesFiltered,(m,S)=>(v(),rt(d,{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)},OXe)):(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)},NXe))],2)]),c("div",wXe,[c("div",IXe,[c("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(c("div",null,kXe,512),[[We,s.ezc_collapsed]]),ce(c("div",null,LXe,512),[[We,!s.ezc_collapsed]]),PXe,o.configFile.extensions?(v(),T("div",FXe,"|")):U("",!0),o.configFile.extensions?(v(),T("div",UXe,[o.mountedExtensions.length>0?(v(),T("div",BXe,[(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"},[c("div",GXe,[c("button",{onClick:_e(C=>o.onExtensionSelected(m),["stop"])},[c("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.extensions.indexOf(m.full_path)?"border-secondary":"border-transparent z-0"]),title:m.name},null,42,YXe)],8,qXe),c("button",{onClick:_e(C=>o.unmountExtension(m),["stop"])},HXe,8,VXe)])]))),128))])):U("",!0)])):U("",!0)])]),c("div",{class:Ae([{hidden:s.ezc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[c("div",$Xe,[WXe,c("div",KXe,[c("div",QXe,[s.searchExtensionInProgress?(v(),T("div",jXe,XXe)):U("",!0),s.searchExtensionInProgress?U("",!0):(v(),T("div",JXe,tJe))]),ce(c("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search extension...",required:"","onUpdate:modelValue":e[105]||(e[105]=m=>s.searchExtension=m),onKeyup:e[106]||(e[106]=_e((...m)=>t.searchExtension_func&&t.searchExtension_func(...m),["stop"]))},null,544),[[De,s.searchExtension]]),s.searchExtension?(v(),T("button",{key:0,onClick:e[107]||(e[107]=_e(m=>s.searchExtension="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):U("",!0)])]),s.searchExtension?U("",!0):(v(),T("div",nJe,[c("label",rJe," Extensions Category: ("+j(s.extCatgArr.length)+") ",1),c("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,sJe))),128))],32)])),c("div",null,[s.extensionsFiltererd.length>0?(v(),T("div",oJe,[c("label",iJe,j(s.searchExtension?"Search results":"Personalities")+": ("+j(s.extensionsFiltererd.length)+") ",1),c("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(Vn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(s.extensionsFiltererd,(m,S)=>(v(),rt(_,{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":o.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)},lJe)):(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)},dJe))],2)]),c("div",uJe,[c("div",_Je,[c("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(c("div",null,mJe,512),[[We,s.mep_collapsed]]),ce(c("div",null,fJe,512),[[We,!s.mep_collapsed]]),hJe])]),c("div",{class:Ae([{hidden:s.mep_collapsed},"flex flex-col mb-2 px-3 pb-0"])},null,2)]),c("div",EJe,[c("div",bJe,[c("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(c("div",null,yJe,512),[[We,s.mc_collapsed]]),ce(c("div",null,TJe,512),[[We,!s.mc_collapsed]]),CJe])]),c("div",{class:Ae([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[c("div",RJe,[c("div",xJe,[ce(c("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]]),OJe])]),c("div",{class:Ae(o.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[c("div",AJe,[NJe,ce(c("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]])]),c("div",wJe,[c("div",IJe,[c("div",DJe,[kJe,c("p",MJe,[ce(c("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(c("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]])])]),c("div",LJe,[c("div",PJe,[c("div",FJe,[UJe,c("p",BJe,[ce(c("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(c("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]])])]),c("div",GJe,[c("div",qJe,[c("div",YJe,[VJe,c("p",zJe,[ce(c("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(c("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]])])]),c("div",HJe,[c("div",$Je,[c("div",WJe,[KJe,c("p",QJe,[ce(c("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(c("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]])])]),c("div",jJe,[c("div",ZJe,[c("div",XJe,[JJe,c("p",eet,[ce(c("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(c("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]])])]),c("div",tet,[c("div",net,[c("div",ret,[set,c("p",oet,[ce(c("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(c("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 aet=Ye(fWe,[["render",iet],["__scopeId","data-v-0a233bdf"]]),cet={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};Te.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}}},det={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"},uet={class:"mb-4"},_et=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),pet=["value"],met={class:"mb-4"},get=c("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1),fet={class:"mb-4"},het=c("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1),Eet={class:"mb-4"},bet=c("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1),yet={class:"mb-4"},vet=c("label",{for:"max_length",class:"text-sm"},"Max Length:",-1),Tet={class:"mb-4"},Cet=c("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1),Ret={class:"mb-4"},xet=c("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1),Oet=c("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1),Aet={key:1};function Net(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",det,[c("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(()=>[c("div",uet,[_et,ce(c("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,pet))),128))],544),[[Kt,o.selectedModel]])])]),_:1}),he(i,{title:"Data",isHorizontal:!1},{default:ke(()=>[c("div",met,[get,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(()=>[c("div",fet,[het,he(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),c("div",Eet,[bet,he(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),c("div",yet,[vet,he(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),c("div",Tet,[Cet,he(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),he(i,{title:"Output",isHorizontal:!1},{default:ke(()=>[c("div",Ret,[xet,he(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),he(i,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Oet]),_:1})],32)])):(v(),T("div",Aet,[he(i,{title:"Info",class:"",isHorizontal:!1},{default:ke(()=>[xe(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")]),_:1})]))}const wet=Ye(cet,[["render",Net]]),Iet={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)}}},Det={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"},ket={class:"mb-4"},Met=c("label",{for:"model_name",class:"text-sm"},"Model Name:",-1),Let={class:"mb-4"},Pet=c("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1),Fet=c("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1);function Uet(t,e,n,r,s,o){const i=Pe("ClipBoardTextInput"),a=Pe("Card");return v(),T("div",Det,[c("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(()=>[c("div",ket,[Met,he(i,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),c("div",Let,[Pet,he(i,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),he(a,{disableHoverAnimation:!0,disableFocus:!0},{default:ke(()=>[Fet]),_:1})],32)])}const Bet=Ye(Iet,[["render",Uet]]),Get={name:"Discussion",emits:["delete","select","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,ve(()=>{Re.replace()})},watch:{showConfirmation(){ve(()=>{Re.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&ve(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&ve(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},qet=["id"],Yet={class:"flex flex-row items-center gap-2"},Vet={key:0},zet=["title"],Het=["value"],$et={class:"flex items-center flex-1 max-h-6"},Wet={key:0,class:"flex gap-3 flex-1 items-center justify-end duration-75"},Ket=c("i",{"data-feather":"x"},null,-1),Qet=[Ket],jet=c("i",{"data-feather":"check"},null,-1),Zet=[jet],Xet={key:1,class:"flex gap-3 flex-1 items-center justify-end invisible group-hover:visible duration-75"},Jet=c("i",{"data-feather":"type"},null,-1),ett=[Jet],ttt=c("i",{"data-feather":"edit-2"},null,-1),ntt=[ttt],rtt=c("i",{"data-feather":"trash"},null,-1),stt=[rtt];function ott(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[12]||(e[12]=_e(i=>o.selectEvent(),["stop"]))},[c("div",Yet,[n.isCheckbox?(v(),T("div",Vet,[ce(c("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,zet)),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]=Kr(_e(i=>o.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Kr(_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,Het)):U("",!0),c("div",$et,[s.showConfirmation?(v(),T("div",Wet,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=_e(i=>o.cancel(),["stop"]))},Qet),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=_e(i=>s.editTitleMode?o.editTitleEvent():s.deleteMode?o.deleteEvent():o.makeTitleEvent(),["stop"]))},Zet)])):U("",!0),s.showConfirmation?U("",!0):(v(),T("div",Xet,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[9]||(e[9]=_e(i=>s.makeTitleMode=!0,["stop"]))},ett),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[10]||(e[10]=_e(i=>s.editTitleMode=!0,["stop"]))},ntt),c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[11]||(e[11]=_e(i=>s.deleteMode=!0,["stop"]))},stt)]))])],10,qet)}const fT=Ye(Get,[["render",ott]]),itt={props:{htmlContent:{type:String,required:!0}}},att=["innerHTML"];function ltt(t,e,n,r,s,o){return v(),T("div",null,[c("div",{innerHTML:n.htmlContent},null,8,att)])}const ctt=Ye(itt,[["render",ltt]]);const dtt={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}}},utt={key:0},_tt={class:"toggle-icon mr-1"},ptt={key:0,class:"fas fa-plus-circle text-gray-600"},mtt={key:1,class:"fas fa-minus-circle text-gray-600"},gtt={class:"json-viewer max-h-64 overflow-auto p-4 bg-gray-100 border border-gray-300 rounded dark:bg-gray-600"},ftt={key:0,class:"fas fa-plus-circle text-gray-600"},htt={key:1,class:"fas fa-minus-circle text-gray-600"},Ett=["innerHTML"];function btt(t,e,n,r,s,o){return o.isContentPresent?(v(),T("div",utt,[c("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))},[c("span",_tt,[s.collapsed?(v(),T("i",ptt)):(v(),T("i",mtt))]),xe(" "+j(n.jsonFormText),1)]),ce(c("div",null,[c("div",gtt,[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",ftt)):(v(),T("i",htt))])):U("",!0),c("pre",{innerHTML:o.formattedJson},null,8,Ett)])],512),[[We,!s.collapsed]])])):U("",!0)}const Stt=Ye(dtt,[["render",btt]]),ytt={props:{done:{type:Boolean,required:!0},message:{type:String,required:!0},status:{type:Boolean,required:!0}}},vtt={class:"step flex items-center mb-4"},Ttt={class:"flex items-center justify-center w-6 h-6 mr-2"},Ctt={key:0},Rtt=c("i",{"data-feather":"square",class:"text-gray-400 w-4 h-4"},null,-1),xtt=[Rtt],Ott={key:1},Att=c("i",{"data-feather":"check-square",class:"text-green-500 w-4 h-4"},null,-1),Ntt=[Att],wtt={key:2},Itt=c("i",{"data-feather":"x-square",class:"text-red-500 w-4 h-4"},null,-1),Dtt=[Itt],ktt={key:0,role:"status"},Mtt=c("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"},[c("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"}),c("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),Ltt=[Mtt];function Ptt(t,e,n,r,s,o){return v(),T("div",vtt,[c("div",Ttt,[n.done?U("",!0):(v(),T("div",Ctt,xtt)),n.done&&n.status?(v(),T("div",Ott,Ntt)):U("",!0),n.done&&!n.status?(v(),T("div",wtt,Dtt)):U("",!0)]),n.done?U("",!0):(v(),T("div",ktt,Ltt)),c("div",{class:Ae(["content flex-1 px-2",{"text-green-500":n.done,"text-yellow-500":!n.done}])},j(n.message),3)])}const Ftt=Ye(ytt,[["render",Ptt]]);const eS="/",Utt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:uT,Step:Ftt,RenderHTMLJS:ctt,JsonViewer:Stt,DynamicUIRenderer:gT},props:{host:{type:String,required:!1,default:"http://localhost:9600"},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(()=>{Re.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:",eS+this.avatar),eS+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(()=>{Re.replace()})},deleteMsgMode(){ve(()=>{Re.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,ve(()=>{Re.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.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"}}},Btt={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"},Gtt={class:"flex flex-row gap-2"},qtt={class:"flex-shrink-0"},Ytt={class:"group/avatar"},Vtt=["src","data-popover-target"],ztt={class:"flex flex-col w-full flex-grow-0"},Htt={class:"flex flex-row flex-grow items-start"},$tt={class:"flex flex-col mb-2"},Wtt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Ktt=["title"],Qtt=c("div",{class:"flex-grow"},null,-1),jtt={class:"flex-row justify-end mx-2"},Ztt={class:"invisible group-hover:visible flex flex-row"},Xtt={key:0,class:"flex items-center duration-75"},Jtt=c("i",{"data-feather":"x"},null,-1),ent=[Jtt],tnt=c("i",{"data-feather":"check"},null,-1),nnt=[tnt],rnt=c("i",{"data-feather":"edit"},null,-1),snt=[rnt],ont=c("i",{"data-feather":"copy"},null,-1),int=[ont],ant=c("i",{"data-feather":"refresh-cw"},null,-1),lnt=[ant],cnt=c("i",{"data-feather":"fast-forward"},null,-1),dnt=[cnt],unt={key:4,class:"flex items-center duration-75"},_nt=c("i",{"data-feather":"x"},null,-1),pnt=[_nt],mnt=c("i",{"data-feather":"check"},null,-1),gnt=[mnt],fnt=c("i",{"data-feather":"trash"},null,-1),hnt=[fnt],Ent=c("i",{"data-feather":"thumbs-up"},null,-1),bnt=[Ent],Snt={class:"flex flex-row items-center"},ynt=c("i",{"data-feather":"thumbs-down"},null,-1),vnt=[ynt],Tnt={class:"flex flex-row items-center"},Cnt=c("i",{"data-feather":"volume-2"},null,-1),Rnt=[Cnt],xnt={class:"overflow-x-auto w-full"},Ont={class:"flex flex-col items-start w-full"},Ant={class:"flex flex-col items-start w-full"},Nnt={key:1},wnt={class:"text-sm text-gray-400 mt-2"},Int={class:"flex flex-row items-center gap-2"},Dnt={key:0},knt={class:"font-thin"},Mnt={key:1},Lnt={class:"font-thin"},Pnt={key:2},Fnt={class:"font-thin"},Unt={key:3},Bnt=["title"];function Gnt(t,e,n,r,s,o){const i=Pe("Step"),a=Pe("RenderHTMLJS"),l=Pe("MarkdownRenderer"),u=Pe("JsonViewer"),d=Pe("DynamicUIRenderer");return v(),T("div",Btt,[c("div",Gtt,[c("div",qtt,[c("div",Ytt,[c("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,Vtt)])]),c("div",ztt,[c("div",Htt,[c("div",$tt,[c("div",Wtt,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,Ktt)):U("",!0)]),Qtt,c("div",jtt,[c("div",Ztt,[o.editMsgMode?(v(),T("div",Xtt,[c("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(_=>o.editMsgMode=!1,["stop"]))},ent),c("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"]))},nnt)])):U("",!0),o.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(_=>o.editMsgMode=!0,["stop"]))},snt)),c("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"]))},int),!o.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":o.editMsgMode}]),title:"Resend message",onClick:e[5]||(e[5]=_e(_=>o.resendMessage(),["stop"]))},lnt,2)):U("",!0),!o.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"]))},dnt)):U("",!0),s.deleteMsgMode?(v(),T("div",unt,[c("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"]))},pnt),c("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"]))},gnt)])):U("",!0),!o.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)},hnt)):U("",!0),c("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"]))},bnt),c("div",Snt,[c("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"]))},vnt),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)]),c("div",Tnt,[c("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"]))},Rnt,2)])])])]),c("div",xnt,[c("div",Ont,[(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))]),c("div",Ant,[(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))]),o.editMsgMode?U("",!0):(v(),rt(l,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id},null,8,["host","markdown-text","message_id","discussion_id"])),c("div",null,[n.message.open?ce((v(),T("textarea",{key:0,ref:"mdTextarea",onKeydown:e[13]||(e[13]=Kr(_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",Nnt,[(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(),rt(d,{key:2,class:"w-full h-full",code:n.message.ui},null,8,["code"])):U("",!0)]),c("div",wnt,[c("div",Int,[n.message.binding?(v(),T("p",Dnt,[xe("Binding: "),c("span",knt,j(n.message.binding),1)])):U("",!0),n.message.model?(v(),T("p",Mnt,[xe("Model: "),c("span",Lnt,j(n.message.model),1)])):U("",!0),n.message.seed?(v(),T("p",Pnt,[xe("Seed: "),c("span",Fnt,j(n.message.seed),1)])):U("",!0),o.time_spent?(v(),T("p",Unt,[xe("Time spent: "),c("span",{class:"font-thin",title:"Finished generating: "+o.finished_generating_at_parsed},j(o.time_spent),9,Bnt)])):U("",!0)])])])])])}const hT=Ye(Utt,[["render",Gnt]]),qnt="/";Te.defaults.baseURL="/";const Ynt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Sr,UniversalForm:ea},data(){return{bUrl:qnt,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{Te.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{Te.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. +`];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(t){this.$emit("resendMessage",this.message.id,this.message.content,t)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?(console.log("Avatar:",eS+this.avatar),eS+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(()=>{Re.replace()})},deleteMsgMode(){ve(()=>{Re.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(t){this.message.open=t,this.editMsgMode_=t,ve(()=>{Re.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const t=new Date(Date.parse(this.message.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"}}},Btt={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"},Gtt={class:"flex flex-row gap-2"},qtt={class:"flex-shrink-0"},Ytt={class:"group/avatar"},Vtt=["src","data-popover-target"],ztt={class:"flex flex-col w-full flex-grow-0"},Htt={class:"flex flex-row flex-grow items-start"},$tt={class:"flex flex-col mb-2"},Wtt={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},Ktt=["title"],Qtt=c("div",{class:"flex-grow"},null,-1),jtt={class:"flex-row justify-end mx-2"},Ztt={class:"invisible group-hover:visible flex flex-row"},Xtt={key:0,class:"flex items-center duration-75"},Jtt=c("i",{"data-feather":"x"},null,-1),ent=[Jtt],tnt=c("i",{"data-feather":"check"},null,-1),nnt=[tnt],rnt=c("i",{"data-feather":"edit"},null,-1),snt=[rnt],ont=c("i",{"data-feather":"copy"},null,-1),int=[ont],ant=c("i",{"data-feather":"send"},null,-1),lnt=[ant],cnt=c("i",{"data-feather":"send"},null,-1),dnt=[cnt],unt=c("i",{"data-feather":"fast-forward"},null,-1),_nt=[unt],pnt={key:5,class:"flex items-center duration-75"},mnt=c("i",{"data-feather":"x"},null,-1),gnt=[mnt],fnt=c("i",{"data-feather":"check"},null,-1),hnt=[fnt],Ent=c("i",{"data-feather":"trash"},null,-1),bnt=[Ent],Snt=c("i",{"data-feather":"thumbs-up"},null,-1),ynt=[Snt],vnt={class:"flex flex-row items-center"},Tnt=c("i",{"data-feather":"thumbs-down"},null,-1),Cnt=[Tnt],Rnt={class:"flex flex-row items-center"},xnt=c("i",{"data-feather":"volume-2"},null,-1),Ont=[xnt],Ant={class:"overflow-x-auto w-full"},Nnt={class:"flex flex-col items-start w-full"},wnt={class:"flex flex-col items-start w-full"},Int={key:1},Dnt={class:"text-sm text-gray-400 mt-2"},knt={class:"flex flex-row items-center gap-2"},Mnt={key:0},Lnt={class:"font-thin"},Pnt={key:1},Fnt={class:"font-thin"},Unt={key:2},Bnt={class:"font-thin"},Gnt={key:3},qnt=["title"];function Ynt(t,e,n,r,s,o){const i=Pe("Step"),a=Pe("RenderHTMLJS"),l=Pe("MarkdownRenderer"),u=Pe("JsonViewer"),d=Pe("DynamicUIRenderer");return v(),T("div",Btt,[c("div",Gtt,[c("div",qtt,[c("div",Ytt,[c("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,Vtt)])]),c("div",ztt,[c("div",Htt,[c("div",$tt,[c("div",Wtt,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,Ktt)):U("",!0)]),Qtt,c("div",jtt,[c("div",Ztt,[o.editMsgMode?(v(),T("div",Xtt,[c("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(_=>o.editMsgMode=!1,["stop"]))},ent),c("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"]))},nnt)])):U("",!0),o.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(_=>o.editMsgMode=!0,["stop"]))},snt)),c("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"]))},int),!o.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(v(),T("div",{key:2,class:Ae(["text-lg text-red-500 hover:text-secondary duration-75 active:scale-90 p-2",{"text-5xl":o.editMsgMode}]),title:"Resend message with full context",onClick:e[5]||(e[5]=_e(_=>o.resendMessage("full_context"),["stop"]))},lnt,2)):U("",!0),!o.editMsgMode&&n.message.sender!=this.$store.state.mountedPers.name?(v(),T("div",{key:3,class:Ae(["text-lg hover:text-secondary duration-75 active:scale-90 p-2",{"text-5xl":o.editMsgMode}]),title:"Resend message without the full context",onClick:e[6]||(e[6]=_e(_=>o.resendMessage("simple_question"),["stop"]))},dnt,2)):U("",!0),!o.editMsgMode&&n.message.sender==this.$store.state.mountedPers.name?(v(),T("div",{key:4,class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Resend message",onClick:e[7]||(e[7]=_e(_=>o.continueMessage(),["stop"]))},_nt)):U("",!0),s.deleteMsgMode?(v(),T("div",pnt,[c("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2",title:"Cancel removal",type:"button",onClick:e[8]||(e[8]=_e(_=>s.deleteMsgMode=!1,["stop"]))},gnt),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2",title:"Confirm removal",type:"button",onClick:e[9]||(e[9]=_e(_=>o.deleteMsg(),["stop"]))},hnt)])):U("",!0),!o.editMsgMode&&!s.deleteMsgMode?(v(),T("div",{key:6,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Remove message",onClick:e[10]||(e[10]=_=>s.deleteMsgMode=!0)},bnt)):U("",!0),c("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2",title:"Upvote",onClick:e[11]||(e[11]=_e(_=>o.rankUp(),["stop"]))},ynt),c("div",vnt,[c("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2",title:"Downvote",onClick:e[12]||(e[12]=_e(_=>o.rankDown(),["stop"]))},Cnt),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)]),c("div",Rnt,[c("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[13]||(e[13]=_e(_=>o.speak(),["stop"]))},Ont,2)])])])]),c("div",Ant,[c("div",Nnt,[(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))]),c("div",wnt,[(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))]),o.editMsgMode?U("",!0):(v(),rt(l,{key:0,ref:"mdRender",host:n.host,"markdown-text":n.message.content,message_id:n.message.id,discussion_id:n.message.discussion_id},null,8,["host","markdown-text","message_id","discussion_id"])),c("div",null,[n.message.open?ce((v(),T("textarea",{key:0,ref:"mdTextarea",onKeydown:e[14]||(e[14]=Kr(_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[15]||(e[15]=_=>n.message.content=_)},`\r + `,36)),[[De,n.message.content]]):U("",!0)]),n.message.metadata!==null?(v(),T("div",Int,[(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(),rt(d,{key:2,class:"w-full h-full",code:n.message.ui},null,8,["code"])):U("",!0)]),c("div",Dnt,[c("div",knt,[n.message.binding?(v(),T("p",Mnt,[xe("Binding: "),c("span",Lnt,j(n.message.binding),1)])):U("",!0),n.message.model?(v(),T("p",Pnt,[xe("Model: "),c("span",Fnt,j(n.message.model),1)])):U("",!0),n.message.seed?(v(),T("p",Unt,[xe("Seed: "),c("span",Bnt,j(n.message.seed),1)])):U("",!0),o.time_spent?(v(),T("p",Gnt,[xe("Time spent: "),c("span",{class:"font-thin",title:"Finished generating: "+o.finished_generating_at_parsed},j(o.time_spent),9,qnt)])):U("",!0)])])])])])}const hT=Ye(Utt,[["render",Ynt]]),Vnt="/";Te.defaults.baseURL="/";const znt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Sr,UniversalForm:ea},data(){return{bUrl:Vnt,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{Te.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{Te.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(()=>{Re.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await Te.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms}}},Vnt={class:"w-fit select-none"},znt={key:0,class:"flex -space-x-4"},Hnt=["src","title"],$nt={key:1,class:"flex -space-x-4"},Wnt=["src","title"],Knt={key:2,title:"Loading personalities"},Qnt=c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1),jnt=[Qnt];function Znt(t,e,n,r,s,o){const i=Pe("UniversalForm");return v(),T(we,null,[c("div",Vnt,[o.mountedPersArr.length>1?(v(),T("div",znt,[c("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,Hnt),c("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",$nt,[c("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,Wnt)])):U("",!0),o.mountedPersArr.length==0?(v(),T("div",Knt,jnt)):U("",!0)]),he(i,{ref:"universalForm",class:"z-20"},null,512)],64)}const Xnt=Ye(Ynt,[["render",Znt]]);const Jnt="/";Te.defaults.baseURL="/";const ert={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:mT,Toast:Sr,UniversalForm:ea},name:"MountedPersonalitiesList",data(){return{bUrl:Jnt,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 Te.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,Te.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(()=>{Re.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady()},async api_get_req(t){try{const e=await Te.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(t){t.target.src=ms}}},Hnt={class:"w-fit select-none"},$nt={key:0,class:"flex -space-x-4"},Wnt=["src","title"],Knt={key:1,class:"flex -space-x-4"},Qnt=["src","title"],jnt={key:2,title:"Loading personalities"},Znt=c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1),Xnt=[Znt];function Jnt(t,e,n,r,s,o){const i=Pe("UniversalForm");return v(),T(we,null,[c("div",Hnt,[o.mountedPersArr.length>1?(v(),T("div",$nt,[c("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,Wnt),c("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",Knt,[c("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,Qnt)])):U("",!0),o.mountedPersArr.length==0?(v(),T("div",jnt,Xnt)):U("",!0)]),he(i,{ref:"universalForm",class:"z-20"},null,512)],64)}const ert=Ye(znt,[["render",Jnt]]);const trt="/";Te.defaults.baseURL="/";const nrt={props:{onTalk:Function,onMounted:Function,onUnmounted:Function,onRemounted:Function,discussionPersonalities:Array,onShowPersList:Function},components:{PersonalityEntry:mT,Toast:Sr,UniversalForm:ea},name:"MountedPersonalitiesList",data(){return{bUrl:trt,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 Te.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,Te.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(Re.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(Re.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{Te.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{Te.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. @@ -167,19 +167,19 @@ You need to apply changes before you leave, or else.`,"Apply configuration","Can 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&&Re.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)}}},Cp=t=>(hr("data-v-d16a58b9"),t=t(),Er(),t),trt={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"},nrt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},rrt=Cp(()=>c("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"},[c("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"}),c("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)),srt=Cp(()=>c("span",{class:"sr-only"},"Loading...",-1)),ort=[rrt,srt],irt=Cp(()=>c("i",{"data-feather":"chevron-down"},null,-1)),art=[irt],lrt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},crt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function drt(t,e,n,r,s,o){const i=Pe("personality-entry"),a=Pe("Toast"),l=Pe("UniversalForm");return v(),T("div",trt,[s.isLoading?(v(),T("div",nrt,ort)):U("",!0),c("div",null,[o.mountedPersArr.length>0?(v(),T("div",{key:0,class:Ae(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("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"]))},art),c("label",lrt," Mounted Personalities: ("+j(o.mountedPersArr.length)+") ",1),c("div",crt,[he(Vn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(u,d)=>(v(),rt(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+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 urt=Ye(ert,[["render",drt],["__scopeId","data-v-d16a58b9"]]);const _rt={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(()=>{Re.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(()=>{Re.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)}},prt=t=>(hr("data-v-52cfa09c"),t=t(),Er(),t),mrt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},grt=prt(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),frt=[grt];function hrt(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return s.loading?(v(),T("div",mrt,frt)):(v(),rt(i,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const Ert=Ye(_rt,[["render",hrt],["__scopeId","data-v-52cfa09c"]]);console.log("modelImgPlaceholder:",zn);const brt="/",Srt={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{Toast:Sr,UniversalForm:ea,MountedPersonalities:Xnt,MountedPersonalitiesList:urt,PersonalitiesCommands:Ert,InteractiveMenu:lo},setup(){},data(){return{modelImgPlaceholder:zn,bUrl:brt,message:"",selecting_model:!1,selectedModel:"",isLesteningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:""}},computed:{currentModel(){return this.$store.state.currentModel},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},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{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{Te.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. +Error: `+e.error,4,!1)},getMountedPersonalities(){this.isLoading=!0;let t=[];console.log(this.configFile.personalities.length);for(let e=0;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)}}},Cp=t=>(hr("data-v-d16a58b9"),t=t(),Er(),t),rrt={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"},srt={key:0,role:"status",class:"flex justify-center overflow-y-hidden"},ort=Cp(()=>c("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"},[c("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"}),c("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)),irt=Cp(()=>c("span",{class:"sr-only"},"Loading...",-1)),art=[ort,irt],lrt=Cp(()=>c("i",{"data-feather":"chevron-down"},null,-1)),crt=[lrt],drt={class:"block my-2 text-sm font-medium text-gray-900 dark:text-white"},urt={class:"overflow-y-auto no-scrollbar pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 max-h-96"};function _rt(t,e,n,r,s,o){const i=Pe("personality-entry"),a=Pe("Toast"),l=Pe("UniversalForm");return v(),T("div",rrt,[s.isLoading?(v(),T("div",srt,art)):U("",!0),c("div",null,[o.mountedPersArr.length>0?(v(),T("div",{key:0,class:Ae(s.isLoading?"pointer-events-none opacity-30 cursor-default":"")},[c("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"]))},crt),c("label",drt," Mounted Personalities: ("+j(o.mountedPersArr.length)+") ",1),c("div",urt,[he(Vn,{name:"bounce"},{default:ke(()=>[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(u,d)=>(v(),rt(i,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+d+"-"+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 prt=Ye(nrt,[["render",_rt],["__scopeId","data-v-d16a58b9"]]);const mrt={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(()=>{Re.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(()=>{Re.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)}},grt=t=>(hr("data-v-52cfa09c"),t=t(),Er(),t),frt={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"},hrt=grt(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Ert=[hrt];function brt(t,e,n,r,s,o){const i=Pe("InteractiveMenu");return s.loading?(v(),T("div",frt,Ert)):(v(),rt(i,{key:1,commands:n.commandsList,execute_cmd:o.execute_cmd},null,8,["commands","execute_cmd"]))}const Srt=Ye(mrt,[["render",brt],["__scopeId","data-v-52cfa09c"]]);console.log("modelImgPlaceholder:",zn);const yrt="/",vrt={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage"],props:{onTalk:Function,discussionList:Array,loading:!1,onShowToastMessage:Function},components:{Toast:Sr,UniversalForm:ea,MountedPersonalities:ert,MountedPersonalitiesList:prt,PersonalitiesCommands:Srt,InteractiveMenu:lo},setup(){},data(){return{modelImgPlaceholder:zn,bUrl:yrt,message:"",selecting_model:!1,selectedModel:"",isLesteningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,showPersonalities:!1,personalities_ready:!1,models_menu_icon:""}},computed:{currentModel(){return this.$store.state.currentModel},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},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{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings ","Save changes","Cancel").then(e=>{try{Te.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. `+n,4,!1),this.isLoading=!1)})}catch(n){this.$refs.toast.showToast(`Did not get binding settings responses. Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$refs.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$refs.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},async unmountPersonality(t){if(this.loading=!0,!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.$store.state.config.personalities=e.personalities,this.$refs.toast.showToast("Personality unmounted",4,!0),this.$store.dispatch("refreshMountedPersonalities");const n=this.$store.state.mountedPersArr[this.$store.state.mountedPersArr.length-1];console.log(n,this.$store.state.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality: `+n.name,4,!0)}else this.$refs.toast.showToast(`Could not unmount personality Error: `+e.error,4,!1);this.loading=!1},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await Te.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async onPersonalitySelected(t){if(console.log("on pers",t),console.log("selecting ",t),t){if(t.selected){this.$refs.toast.showToast("Personality already selected",4,!0);return}if(t.isMounted&&this.$store.state.config.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: -`+t.name,4,!1)}else console.log("mounting pers"),this.mountPersonality(t);ve(()=>{Re.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 Te.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,Te.post("/update_setting",{setting_name:"model_name",setting_value:t.name}).then(async e=>{console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$refs.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$refs.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){Te.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;Ne.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),this.loading=!1,e()):i()};function i(){const a=t.slice(s,s+r);n.readAsArrayBuffer(a)}console.log("Uploading file"),i()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage")},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},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(()=>{Re.replace()}),Xt(t)},removeItem(t){this.filesList=this.filesList.filter(e=>e!=t)},sendMessageEvent(t){this.filesList=[],this.$emit("messageSentEvent",t)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},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:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){ve(()=>{Re.replace()})},loading(t,e){ve(()=>{Re.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Re.replace()})},activated(){ve(()=>{Re.replace()})}},it=t=>(hr("data-v-424e1da1"),t=t(),Er(),t),yrt={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},vrt={key:0,class:"flex items-center justify-center w-full"},Trt={class:"flex flex-row p-2 rounded-t-lg"},Crt=it(()=>c("label",{for:"chat",class:"sr-only"},"Send message",-1)),Rrt={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},xrt={class:"flex flex-col gap-2"},Ort={class:"flex"},Art=["title"],Nrt=it(()=>c("i",{"data-feather":"list"},null,-1)),wrt=[Nrt],Irt={key:0},Drt={class:"flex flex-col max-h-64"},krt=["title"],Mrt={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"},Lrt={key:0,filesList:"",role:"status"},Prt=it(()=>c("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"},[c("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"}),c("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)),Frt=it(()=>c("span",{class:"sr-only"},"Loading...",-1)),Urt=[Prt,Frt],Brt=it(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Grt=it(()=>c("div",{class:"grow"},null,-1)),qrt={class:"flex flex-row items-center"},Yrt={class:"whitespace-nowrap"},Vrt=["onClick"],zrt=it(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Hrt=[zrt],$rt={key:1,class:"flex items-center mx-1"},Wrt={class:"whitespace-nowrap flex flex-row gap-2"},Krt=it(()=>c("p",{class:"font-bold"}," Total size: ",-1)),Qrt=it(()=>c("div",{class:"grow"},null,-1)),jrt=it(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Zrt=[jrt],Xrt={key:2,class:"mx-1"},Jrt={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},est={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},tst=it(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Selecting model...")],-1)),nst=[tst],rst={key:1,class:"w-fit group relative"},sst={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"},ost={key:0,class:"group items-center flex flex-row"},ist=["onClick"],ast=["src","title"],lst={class:"group items-center flex flex-row"},cst=["src","title"],dst={class:"w-fit group relative"},ust={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"},_st={key:0,class:"group items-center flex flex-row"},pst=["onClick"],mst=["src","title"],gst=["onClick"],fst=it(()=>c("span",{class:"hidden hover:block top-3 left-9 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[c("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"},[c("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)),hst=[fst],Est={class:"w-fit"},bst={class:"relative grow"},Sst=it(()=>c("i",{"data-feather":"file-plus"},null,-1)),yst=[Sst],vst={class:"inline-flex justify-center rounded-full"},Tst=it(()=>c("i",{"data-feather":"mic"},null,-1)),Cst=[Tst],Rst=it(()=>c("i",{"data-feather":"message-square"},null,-1)),xst=it(()=>c("span",{class:"sr-only"},"New empty User message",-1)),Ost=[Rst,xst],Ast=it(()=>c("i",{"data-feather":"message-square"},null,-1)),Nst=it(()=>c("span",{class:"sr-only"},"New empty message",-1)),wst=[Ast,Nst],Ist=it(()=>c("i",{"data-feather":"send"},null,-1)),Dst=it(()=>c("span",{class:"sr-only"},"Send message",-1)),kst=[Ist,Dst],Mst={key:4,title:"Waiting for reply"},Lst=it(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Pst=[Lst];function Fst(t,e,n,r,s,o){const i=Pe("MountedPersonalitiesList"),a=Pe("MountedPersonalities"),l=Pe("PersonalitiesCommands"),u=Pe("Toast"),d=Pe("UniversalForm");return v(),T(we,null,[c("div",yrt,[n.loading?(v(),T("div",vrt,[c("div",Trt,[c("button",{type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 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((..._)=>o.stopGenerating&&o.stopGenerating(..._),["stop"]))}," Stop generating ")])])):U("",!0),c("form",null,[Crt,c("div",Rrt,[c("div",xrt,[c("div",Ort,[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(_=>s.showfilesList=!s.showfilesList,["stop"]))},wrt,8,Art)):U("",!0)]),s.filesList.length>0&&s.showfilesList==!0?(v(),T("div",Irt,[c("div",Drt,[he(Vn,{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,(_,p)=>(v(),T("div",{key:p+"-"+_.name},[c("div",{class:"m-1",title:_.name},[c("div",Mrt,[s.isFileSentList[p]?U("",!0):(v(),T("div",Lrt,Urt)),Brt,c("div",{class:Ae(["line-clamp-1 w-3/5",s.isFileSentList[p]?"text-green-200":"text-red-200"])},j(_.name),3),Grt,c("div",qrt,[c("p",Yrt,j(o.computedFileSize(_.size)),1),c("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:g=>o.removeItem(_)},Hrt,8,Vrt)])])],8,krt)]))),128))]),_:1})])])):U("",!0),s.filesList.length>0?(v(),T("div",$rt,[c("div",Wrt,[Krt,xe(" "+j(s.totalSize)+" ("+j(s.filesList.length)+") ",1)]),Qrt,c("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]=(..._)=>o.clear_files&&o.clear_files(..._))},Zrt)])):U("",!0),s.showPersonalities?(v(),T("div",Xrt,[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),c("div",Jrt,[s.selecting_model?(v(),T("div",est,nst)):U("",!0),n.loading?U("",!0):(v(),T("div",rst,[c("div",sst,[(v(!0),T(we,null,Be(o.installedModels,(_,p)=>(v(),T("div",{class:"w-full",key:p+"-"+_.name,ref_for:!0,ref:"installedModels"},[_.name!=o.model_name?(v(),T("div",ost,[c("button",{onClick:_e(g=>o.setModel(_),["prevent"]),class:"w-8 h-8"},[c("img",{src:_.icon?_.icon:s.modelImgPlaceholder,onError:e[3]||(e[3]=(...g)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...g)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:_.name},null,40,ast)],8,ist)])):U("",!0)]))),128))]),c("div",lst,[c("button",{onClick:e[5]||(e[5]=_e(_=>o.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:o.currentModel.icon?o.currentModel.icon:s.modelImgPlaceholder,onError:e[4]||(e[4]=(..._)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(..._)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:o.currentModel?o.currentModel.name:"unknown"},null,40,cst)])])])),c("div",dst,[c("div",ust,[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(_,p)=>(v(),T("div",{class:"w-full",key:p+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[p!=this.$store.state.config.active_personality_id?(v(),T("div",_st,[c("button",{onClick:_e(g=>o.onPersonalitySelected(_),["prevent"]),class:"w-8 h-8"},[c("img",{src:s.bUrl+_.avatar,onError:e[6]||(e[6]=(...g)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...g)),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(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,mst)],8,pst),c("button",{onClick:_e(g=>o.unmountPersonality(_),["prevent"])},hst,8,gst)])):U("",!0)]))),128))]),he(a,{ref:"mountedPers",onShowPersList:o.onShowPersListFun,onReady:o.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),c("div",Est,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(v(),rt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):U("",!0)]),c("div",bst,[ce(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=_=>s.message=_),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]=Kr(_e(_=>o.submitOnEnter(_),["exact"]),["enter"]))},`\r +`+t.name,4,!1)}else console.log("mounting pers"),this.mountPersonality(t);ve(()=>{Re.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 Te.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,Te.post("/update_setting",{setting_name:"model_name",setting_value:t.name}).then(async e=>{console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$refs.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$refs.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},clear_files(){Te.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;Ne.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),this.loading=!1,e()):i()};function i(){const a=t.slice(s,s+r);n.readAsArrayBuffer(a)}console.log("Uploading file"),i()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage")},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},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(()=>{Re.replace()}),Xt(t)},removeItem(t){this.filesList=this.filesList.filter(e=>e!=t)},sendMessageEvent(t){this.filesList=[],this.$emit("messageSentEvent",t)},sendCMDEvent(t){this.$emit("sendCMDEvent",t)},submitOnEnter(t){this.loading||t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},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:{installedModels:{immediate:!0,handler(t){this.$nextTick(()=>{this.installedModels=t})}},model_name:{immediate:!0,handler(t){this.$nextTick(()=>{this.model_name=t})}},showfilesList(){ve(()=>{Re.replace()})},loading(t,e){ve(()=>{Re.replace()})},filesList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r{Re.replace()})},activated(){ve(()=>{Re.replace()})}},it=t=>(hr("data-v-424e1da1"),t=t(),Er(),t),Trt={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},Crt={key:0,class:"flex items-center justify-center w-full"},Rrt={class:"flex flex-row p-2 rounded-t-lg"},xrt=it(()=>c("label",{for:"chat",class:"sr-only"},"Send message",-1)),Ort={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Art={class:"flex flex-col gap-2"},Nrt={class:"flex"},wrt=["title"],Irt=it(()=>c("i",{"data-feather":"list"},null,-1)),Drt=[Irt],krt={key:0},Mrt={class:"flex flex-col max-h-64"},Lrt=["title"],Prt={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"},Frt={key:0,filesList:"",role:"status"},Urt=it(()=>c("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"},[c("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"}),c("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)),Brt=it(()=>c("span",{class:"sr-only"},"Loading...",-1)),Grt=[Urt,Brt],qrt=it(()=>c("div",null,[c("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),Yrt=it(()=>c("div",{class:"grow"},null,-1)),Vrt={class:"flex flex-row items-center"},zrt={class:"whitespace-nowrap"},Hrt=["onClick"],$rt=it(()=>c("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)),Wrt=[$rt],Krt={key:1,class:"flex items-center mx-1"},Qrt={class:"whitespace-nowrap flex flex-row gap-2"},jrt=it(()=>c("p",{class:"font-bold"}," Total size: ",-1)),Zrt=it(()=>c("div",{class:"grow"},null,-1)),Xrt=it(()=>c("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)),Jrt=[Xrt],est={key:2,class:"mx-1"},tst={class:"flex flex-row flex-grow items-center gap-2 overflow-visible"},nst={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},rst=it(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Selecting model...")],-1)),sst=[rst],ost={key:1,class:"w-fit group relative"},ist={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"},ast={key:0,class:"group items-center flex flex-row"},lst=["onClick"],cst=["src","title"],dst={class:"group items-center flex flex-row"},ust=["src","title"],_st={class:"w-fit group relative"},pst={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"},mst={key:0,class:"group items-center flex flex-row"},gst=["onClick"],fst=["src","title"],hst=["onClick"],Est=it(()=>c("span",{class:"hidden hover:block top-3 left-9 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[c("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"},[c("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)),bst=[Est],Sst={class:"w-fit"},yst={class:"relative grow"},vst=it(()=>c("i",{"data-feather":"file-plus"},null,-1)),Tst=[vst],Cst={class:"inline-flex justify-center rounded-full"},Rst=it(()=>c("i",{"data-feather":"mic"},null,-1)),xst=[Rst],Ost=it(()=>c("i",{"data-feather":"message-square"},null,-1)),Ast=it(()=>c("span",{class:"sr-only"},"New empty User message",-1)),Nst=[Ost,Ast],wst=it(()=>c("i",{"data-feather":"message-square"},null,-1)),Ist=it(()=>c("span",{class:"sr-only"},"New empty message",-1)),Dst=[wst,Ist],kst=it(()=>c("i",{"data-feather":"send"},null,-1)),Mst=it(()=>c("span",{class:"sr-only"},"Send message",-1)),Lst=[kst,Mst],Pst={key:4,title:"Waiting for reply"},Fst=it(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Ust=[Fst];function Bst(t,e,n,r,s,o){const i=Pe("MountedPersonalitiesList"),a=Pe("MountedPersonalities"),l=Pe("PersonalitiesCommands"),u=Pe("Toast"),d=Pe("UniversalForm");return v(),T(we,null,[c("div",Trt,[n.loading?(v(),T("div",Crt,[c("div",Rrt,[c("button",{type:"button",class:"bg-red-500 dark:bg-red-800 hover:bg-red-600 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((..._)=>o.stopGenerating&&o.stopGenerating(..._),["stop"]))}," Stop generating ")])])):U("",!0),c("form",null,[xrt,c("div",Ort,[c("div",Art,[c("div",Nrt,[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(_=>s.showfilesList=!s.showfilesList,["stop"]))},Drt,8,wrt)):U("",!0)]),s.filesList.length>0&&s.showfilesList==!0?(v(),T("div",krt,[c("div",Mrt,[he(Vn,{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,(_,p)=>(v(),T("div",{key:p+"-"+_.name},[c("div",{class:"m-1",title:_.name},[c("div",Prt,[s.isFileSentList[p]?U("",!0):(v(),T("div",Frt,Grt)),qrt,c("div",{class:Ae(["line-clamp-1 w-3/5",s.isFileSentList[p]?"text-green-200":"text-red-200"])},j(_.name),3),Yrt,c("div",Vrt,[c("p",zrt,j(o.computedFileSize(_.size)),1),c("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:g=>o.removeItem(_)},Wrt,8,Hrt)])])],8,Lrt)]))),128))]),_:1})])])):U("",!0),s.filesList.length>0?(v(),T("div",Krt,[c("div",Qrt,[jrt,xe(" "+j(s.totalSize)+" ("+j(s.filesList.length)+") ",1)]),Zrt,c("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]=(..._)=>o.clear_files&&o.clear_files(..._))},Jrt)])):U("",!0),s.showPersonalities?(v(),T("div",est,[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),c("div",tst,[s.selecting_model?(v(),T("div",nst,sst)):U("",!0),n.loading?U("",!0):(v(),T("div",ost,[c("div",ist,[(v(!0),T(we,null,Be(o.installedModels,(_,p)=>(v(),T("div",{class:"w-full",key:p+"-"+_.name,ref_for:!0,ref:"installedModels"},[_.name!=o.model_name?(v(),T("div",ast,[c("button",{onClick:_e(g=>o.setModel(_),["prevent"]),class:"w-8 h-8"},[c("img",{src:_.icon?_.icon:s.modelImgPlaceholder,onError:e[3]||(e[3]=(...g)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(...g)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:_.name},null,40,cst)],8,lst)])):U("",!0)]))),128))]),c("div",dst,[c("button",{onClick:e[5]||(e[5]=_e(_=>o.showModelConfig(),["prevent"])),class:"w-8 h-8"},[c("img",{src:o.currentModel.icon?o.currentModel.icon:s.modelImgPlaceholder,onError:e[4]||(e[4]=(..._)=>s.modelImgPlaceholder&&s.modelImgPlaceholder(..._)),class:"w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary",title:o.currentModel?o.currentModel.name:"unknown"},null,40,ust)])])])),c("div",_st,[c("div",pst,[(v(!0),T(we,null,Be(this.$store.state.mountedPersArr,(_,p)=>(v(),T("div",{class:"w-full",key:p+"-"+_.name,ref_for:!0,ref:"mountedPersonalities"},[p!=this.$store.state.config.active_personality_id?(v(),T("div",mst,[c("button",{onClick:_e(g=>o.onPersonalitySelected(_),["prevent"]),class:"w-8 h-8"},[c("img",{src:s.bUrl+_.avatar,onError:e[6]||(e[6]=(...g)=>t.personalityImgPlacehodler&&t.personalityImgPlacehodler(...g)),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(_.full_path)?"border-secondary":"border-transparent z-0"]),title:_.name},null,42,fst)],8,gst),c("button",{onClick:_e(g=>o.unmountPersonality(_),["prevent"])},bst,8,hst)])):U("",!0)]))),128))]),he(a,{ref:"mountedPers",onShowPersList:o.onShowPersListFun,onReady:o.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])]),c("div",Sst,[s.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(v(),rt(l,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:o.sendCMDEvent,"on-show-toast-message":n.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):U("",!0)]),c("div",yst,[ce(c("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[7]||(e[7]=_=>s.message=_),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]=Kr(_e(_=>o.submitOnEnter(_),["exact"]),["enter"]))},`\r \r \r - `,544),[[De,s.message]]),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[9]||(e[9]=(..._)=>o.addFiles&&o.addFiles(..._)),multiple:""},null,544),c("button",{type:"button",onClick:e[10]||(e[10]=_e(_=>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"},yst)]),c("div",vst,[n.loading?U("",!0):(v(),T("button",{key:0,type:"button",onClick:e[11]||(e[11]=(..._)=>o.startSpeechRecognition&&o.startSpeechRecognition(..._)),class:Ae([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},Cst,2)),n.loading?U("",!0):(v(),T("button",{key:1,type:"button",onClick:e[12]||(e[12]=(..._)=>o.makeAnEmptyUserMessage&&o.makeAnEmptyUserMessage(..._)),title:"New empty user message",class:"w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90"},Ost)),n.loading?U("",!0):(v(),T("button",{key:2,type:"button",onClick:e[13]||(e[13]=(..._)=>o.makeAnEmptyAIMessage&&o.makeAnEmptyAIMessage(..._)),title:"New empty ai message",class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90"},wst)),n.loading?U("",!0):(v(),T("button",{key:3,type:"button",onClick:e[14]||(e[14]=(..._)=>o.submit&&o.submit(..._)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},kst)),n.loading?(v(),T("div",Mst,Pst)):U("",!0)])])])])])]),he(u,{ref:"toast"},null,512),he(d,{ref:"universalForm",class:"z-20"},null,512)],64)}const ET=Ye(Srt,[["render",Fst],["__scopeId","data-v-424e1da1"]]),Ust={name:"WelcomeComponent",setup(){return{}}},Bst={class:"flex flex-col text-center"},Gst=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),qst=[Gst];function Yst(t,e,n,r,s,o){return v(),T("div",Bst,qst)}const bT=Ye(Ust,[["render",Yst]]);var Vst=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}(),pi=globalThis&&globalThis.__assign||function(){return pi=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 not(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 rot(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 sot={name:"applyStyles",enabled:!0,phase:"write",fn:not,effect:rot,requires:["computeStyles"]};function en(t){return t.split("-")[0]}var ur=Math.max,hi=Math.min,ts=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 xT(){return!/^((?!chrome|android).)*safari/i.test(f_())}function ns(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&&ts(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&ts(r.height)/t.offsetHeight||1);var i=gr(t)?Tt(t):window,a=i.visualViewport,l=!xT()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,d=(r.top+(l&&a?a.offsetTop:0))/o,_=r.width/s,p=r.height/o;return{width:_,height:p,top:d,right:u+_,bottom:d+p,left:u,x:u,y:d}}function Ip(t){var e=ns(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 OT(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&wp(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function En(t){return Tt(t).getComputedStyle(t)}function oot(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||(wp(t)?t.host:null)||Qn(t)}function sS(t){return!It(t)||En(t).position==="fixed"?null:t.offsetParent}function iot(t){var e=/firefox/i.test(f_()),n=/Trident/i.test(f_());if(n&&It(t)){var r=En(t);if(r.position==="fixed")return null}var s=ta(t);for(wp(s)&&(s=s.host);It(s)&&["html","body"].indexOf(rn(s))<0;){var o=En(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=sS(t);n&&oot(n)&&En(n).position==="static";)n=sS(n);return n&&(rn(n)==="html"||rn(n)==="body"&&En(n).position==="static")?e:n||iot(t)||e}function Dp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ms(t,e,n){return ur(t,hi(e,n))}function aot(t,e,n){var r=Ms(t,e,n);return r>n?n:r}function AT(){return{top:0,right:0,bottom:0,left:0}}function NT(t){return Object.assign({},AT(),t)}function wT(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var lot=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,NT(typeof e!="number"?e:wT(e,co))};function cot(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=Dp(a),u=[bt,Mt].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!i)){var _=lot(s.padding,n),p=Ip(o),g=l==="y"?Et:bt,f=l==="y"?kt:Mt,h=n.rects.reference[d]+n.rects.reference[l]-i[l]-n.rects.popper[d],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[d]-_[f],x=m/2-p[d]/2+S,k=Ms(C,x,A),y=l;n.modifiersData[r]=(e={},e[y]=k,e.centerOffset=k-x,e)}}function dot(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)||OT(e.elements.popper,s)&&(e.elements.arrow=s))}const uot={name:"arrow",enabled:!0,phase:"main",fn:cot,effect:dot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rs(t){return t.split("-")[1]}var _ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pot(t,e){var n=t.x,r=t.y,s=e.devicePixelRatio||1;return{x:ts(n*s)/s||0,y:ts(r*s)/s||0}}function oS(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,d=t.roundOffsets,_=t.isFixed,p=i.x,g=p===void 0?0:p,f=i.y,h=f===void 0?0:f,E=typeof d=="function"?d({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),En(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&&_ot),M=d===!0?pot({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 mot(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:rs(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,oS(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,oS(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 got={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mot,data:{}};var Po={passive:!0};function fot(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(d){d.addEventListener("scroll",n.update,Po)}),a&&l.addEventListener("resize",n.update,Po),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Po)}),a&&l.removeEventListener("resize",n.update,Po)}}const hot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fot,data:{}};var Eot={left:"right",right:"left",bottom:"top",top:"bottom"};function Jo(t){return t.replace(/left|right|bottom|top/g,function(e){return Eot[e]})}var bot={start:"end",end:"start"};function iS(t){return t.replace(/start|end/g,function(e){return bot[e]})}function kp(t){var e=Tt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mp(t){return ns(Qn(t)).left+kp(t).scrollLeft}function Sot(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=xT();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a+Mp(t),y:l}}function yot(t){var e,n=Qn(t),r=kp(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+Mp(t),l=-r.scrollTop;return En(s||n).direction==="rtl"&&(a+=ur(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:l}}function Lp(t){var e=En(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function IT(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:It(t)&&Lp(t)?t:IT(ta(t))}function Ls(t,e){var n;e===void 0&&(e=[]);var r=IT(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),o=Tt(r),i=s?[o].concat(o.visualViewport||[],Lp(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 vot(t,e){var n=ns(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 aS(t,e,n){return e===CT?h_(Sot(t,n)):gr(e)?vot(e,n):h_(yot(Qn(t)))}function Tot(t){var e=Ls(ta(t)),n=["absolute","fixed"].indexOf(En(t).position)>=0,r=n&&It(t)?uo(t):t;return gr(r)?e.filter(function(s){return gr(s)&&OT(s,r)&&rn(s)!=="body"}):[]}function Cot(t,e,n,r){var s=e==="clippingParents"?Tot(t):[].concat(e),o=[].concat(s,[n]),i=o[0],a=o.reduce(function(l,u){var d=aS(t,u,r);return l.top=ur(d.top,l.top),l.right=hi(d.right,l.right),l.bottom=hi(d.bottom,l.bottom),l.left=ur(d.left,l.left),l},aS(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 DT(t){var e=t.reference,n=t.element,r=t.placement,s=r?en(r):null,o=r?rs(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?Dp(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case es:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Xs:l[u]=l[u]+(e[d]/2-n[d]/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?zst:a,u=n.rootBoundary,d=u===void 0?CT: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=NT(typeof E!="number"?E:wT(E,co)),m=p===Cs?Hst:Cs,S=t.rects.popper,C=t.elements[f?m:p],A=Cot(gr(C)?C:C.contextElement||Qn(t.elements.popper),l,d,i),x=ns(t.elements.reference),k=DT({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 Rot(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?RT:l,d=rs(r),_=d?a?rS:rS.filter(function(f){return rs(f)===d}):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 xot(t){if(en(t)===Np)return[];var e=Jo(t);return[iS(t),e,iS(e)]}function Oot(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,d=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)]:xot(E)),C=[E].concat(S).reduce(function(Ce,fe){return Ce.concat(en(fe)===Np?Rot(e,{placement:fe,boundary:d,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:d,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(Ce){return Ce})){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 Aot={name:"flip",enabled:!0,phase:"main",fn:Oot,requiresIfExists:["offset"],data:{_skip:!1}};function lS(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 cS(t){return[Et,Mt,kt,bt].some(function(e){return t[e]>=0})}function Not(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=lS(i,r),u=lS(a,s,o),d=cS(l),_=cS(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":_})}const wot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Not};function Iot(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 Dot(t){var e=t.state,n=t.options,r=t.name,s=n.offset,o=s===void 0?[0,0]:s,i=RT.reduce(function(d,_){return d[_]=Iot(_,e.rects,o),d},{}),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 kot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dot};function Mot(t){var e=t.state,n=t.name;e.modifiersData[n]=DT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Lot={name:"popperOffsets",enabled:!0,phase:"read",fn:Mot,data:{}};function Pot(t){return t==="x"?"y":"x"}function Fot(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,d=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:d}),b=en(e.placement),m=rs(e.placement),S=!m,C=Dp(b),A=Pot(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===es?k[H]:y[H],ee=m===es?-y[H]:-k[H],be=e.elements.arrow,Ce=g&&be?Ip(be):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:AT(),Ee=fe[B],z=fe[se],te=Ms(0,k[H],Ce[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?hi(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?aot(ge,K,J):Ms(g?ge:q,K,g?J:V);x[A]=le,M[A]=le-K}e.modifiersData[r]=M}}const Uot={name:"preventOverflow",enabled:!0,phase:"main",fn:Fot,requiresIfExists:["offset"]};function Bot(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Got(t){return t===Tt(t)||!It(t)?kp(t):Bot(t)}function qot(t){var e=t.getBoundingClientRect(),n=ts(e.width)/t.offsetWidth||1,r=ts(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Yot(t,e,n){n===void 0&&(n=!1);var r=It(e),s=It(e)&&qot(e),o=Qn(e),i=ns(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||Lp(o))&&(a=Got(e)),It(e)?(l=ns(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Mp(o))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Vot(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 zot(t){var e=Vot(t);return tot.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function Hot(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function $ot(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 dS={placement:"bottom",modifiers:[],strategy:"absolute"};function uS(){for(var t=arguments.length,e=new Array(t),n=0;n(hr("data-v-409a8e0c"),t=t(),Er(),t),Jot={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center"},eit={class:"flex flex-col text-center"},tit={class:"flex flex-col text-center items-center"},nit={class:"flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"},rit=Qe(()=>c("img",{class:"w-24 animate-bounce",title:"LoLLMS WebUI",src:Ks,alt:"Logo"},null,-1)),sit={class:"flex flex-col items-start"},oit={class:"text-2xl"},iit=Qe(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),ait=Qe(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),lit=Qe(()=>c("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)),cit=Qe(()=>c("p",{class:"text-2xl"},"Welcome",-1)),dit=Qe(()=>c("div",{role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},[c("p",{class:"text-2xl animate-pulse"},"Loading ...")],-1)),uit=Qe(()=>c("i",{"data-feather":"chevron-right"},null,-1)),_it=[uit],pit=Qe(()=>c("i",{"data-feather":"chevron-left"},null,-1)),mit=[pit],git={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"},fit={class:"sticky z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md"},hit={class:"flex-row p-4 flex items-center gap-3 flex-0"},Eit=Qe(()=>c("i",{"data-feather":"plus"},null,-1)),bit=[Eit],Sit=Qe(()=>c("i",{"data-feather":"check-square"},null,-1)),yit=[Sit],vit=Qe(()=>c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[c("i",{"data-feather":"refresh-ccw"})],-1)),Tit=Qe(()=>c("i",{"data-feather":"database"},null,-1)),Cit=[Tit],Rit=Qe(()=>c("i",{"data-feather":"log-in"},null,-1)),xit=[Rit],Oit={key:0,class:"dropdown"},Ait=Qe(()=>c("i",{"data-feather":"search"},null,-1)),Nit=[Ait],wit=Qe(()=>c("i",{"data-feather":"save"},null,-1)),Iit=[wit],Dit={key:2,class:"flex gap-3 flex-1 items-center duration-75"},kit=Qe(()=>c("i",{"data-feather":"x"},null,-1)),Mit=[kit],Lit=Qe(()=>c("i",{"data-feather":"check"},null,-1)),Pit=[Lit],Fit=["src"],Uit=["src"],Bit=["src"],Git={key:4,title:"Loading..",class:"flex flex-row flex-grow justify-end"},qit=Qe(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("span",{class:"sr-only"},"Loading...")],-1)),Yit=[qit],Vit={key:0,class:"flex-row items-center gap-3 flex-0 w-full"},zit={class:"p-4 pt-2"},Hit={class:"relative"},$it=Qe(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),Wit={class:"absolute inset-y-0 right-0 flex items-center pr-3"},Kit=Qe(()=>c("i",{"data-feather":"x"},null,-1)),Qit=[Kit],jit={key:1,class:"h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark"},Zit={key:2,class:"flex flex-row flex-grow p-4 pt-0 items-center"},Xit={class:"flex flex-row flex-grow"},Jit={key:0},eat={class:"flex flex-row"},tat={key:0,class:"flex gap-3"},nat=Qe(()=>c("i",{"data-feather":"trash"},null,-1)),rat=[nat],sat={key:1,class:"flex gap-3 mx-3 flex-1 items-center justify-end group-hover:visible duration-75"},oat=Qe(()=>c("i",{"data-feather":"check"},null,-1)),iat=[oat],aat=Qe(()=>c("i",{"data-feather":"x"},null,-1)),lat=[aat],cat={class:"flex gap-3"},dat=Qe(()=>c("i",{"data-feather":"log-out"},null,-1)),uat=[dat],_at=Qe(()=>c("i",{"data-feather":"bookmark"},null,-1)),pat=[_at],mat=Qe(()=>c("i",{"data-feather":"list"},null,-1)),gat=[mat],fat={class:"relative flex flex-row flex-grow mb-10 z-0"},hat={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"},Eat=Qe(()=>c("p",{class:"px-3"},"No discussions are found",-1)),bat=[Eat],Sat=Qe(()=>c("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)),yat={class:"ml-2"},vat={key:1,class:"relative flex flex-col flex-grow"},Tat={class:"container pt-4 pb-10 mb-28"},Cat=Qe(()=>c("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{host:"",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,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,discussion_id:0}},methods:{onSettingsBinding(){try{this.isLoading=!0,Te.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Te.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. + `,544),[[De,s.message]]),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[9]||(e[9]=(..._)=>o.addFiles&&o.addFiles(..._)),multiple:""},null,544),c("button",{type:"button",onClick:e[10]||(e[10]=_e(_=>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)]),c("div",Cst,[n.loading?U("",!0):(v(),T("button",{key:0,type:"button",onClick:e[11]||(e[11]=(..._)=>o.startSpeechRecognition&&o.startSpeechRecognition(..._)),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:1,type:"button",onClick:e[12]||(e[12]=(..._)=>o.makeAnEmptyUserMessage&&o.makeAnEmptyUserMessage(..._)),title:"New empty user message",class:"w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90"},Nst)),n.loading?U("",!0):(v(),T("button",{key:2,type:"button",onClick:e[13]||(e[13]=(..._)=>o.makeAnEmptyAIMessage&&o.makeAnEmptyAIMessage(..._)),title:"New empty ai message",class:"w-6 text-red-400 hover:text-secondary duration-75 active:scale-90"},Dst)),n.loading?U("",!0):(v(),T("button",{key:3,type:"button",onClick:e[14]||(e[14]=(..._)=>o.submit&&o.submit(..._)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},Lst)),n.loading?(v(),T("div",Pst,Ust)):U("",!0)])])])])])]),he(u,{ref:"toast"},null,512),he(d,{ref:"universalForm",class:"z-20"},null,512)],64)}const ET=Ye(vrt,[["render",Bst],["__scopeId","data-v-424e1da1"]]),Gst={name:"WelcomeComponent",setup(){return{}}},qst={class:"flex flex-col text-center"},Yst=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),Vst=[Yst];function zst(t,e,n,r,s,o){return v(),T("div",qst,Vst)}const bT=Ye(Gst,[["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}(),pi=globalThis&&globalThis.__assign||function(){return pi=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,hi=Math.min,ts=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 xT(){return!/^((?!chrome|android).)*safari/i.test(f_())}function ns(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&&ts(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&ts(r.height)/t.offsetHeight||1);var i=gr(t)?Tt(t):window,a=i.visualViewport,l=!xT()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/s,d=(r.top+(l&&a?a.offsetTop:0))/o,_=r.width/s,p=r.height/o;return{width:_,height:p,top:d,right:u+_,bottom:d+p,left:u,x:u,y:d}}function Ip(t){var e=ns(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 OT(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&wp(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function En(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||(wp(t)?t.host:null)||Qn(t)}function sS(t){return!It(t)||En(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=En(t);if(r.position==="fixed")return null}var s=ta(t);for(wp(s)&&(s=s.host);It(s)&&["html","body"].indexOf(rn(s))<0;){var o=En(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=sS(t);n&&aot(n)&&En(n).position==="static";)n=sS(n);return n&&(rn(n)==="html"||rn(n)==="body"&&En(n).position==="static")?e:n||lot(t)||e}function Dp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ms(t,e,n){return ur(t,hi(e,n))}function cot(t,e,n){var r=Ms(t,e,n);return r>n?n:r}function AT(){return{top:0,right:0,bottom:0,left:0}}function NT(t){return Object.assign({},AT(),t)}function wT(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,NT(typeof e!="number"?e:wT(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=Dp(a),u=[bt,Mt].indexOf(a)>=0,d=u?"height":"width";if(!(!o||!i)){var _=dot(s.padding,n),p=Ip(o),g=l==="y"?Et:bt,f=l==="y"?kt:Mt,h=n.rects.reference[d]+n.rects.reference[l]-i[l]-n.rects.popper[d],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[d]-_[f],x=m/2-p[d]/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)||OT(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 rs(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:ts(n*s)/s||0,y:ts(r*s)/s||0}}function oS(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,d=t.roundOffsets,_=t.isFixed,p=i.x,g=p===void 0?0:p,f=i.y,h=f===void 0?0:f,E=typeof d=="function"?d({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),En(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=d===!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:rs(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,oS(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,oS(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(d){d.addEventListener("scroll",n.update,Po)}),a&&l.addEventListener("resize",n.update,Po),function(){o&&u.forEach(function(d){d.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 iS(t){return t.replace(/start|end/g,function(e){return yot[e]})}function kp(t){var e=Tt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mp(t){return ns(Qn(t)).left+kp(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=xT();(u||!u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:i,x:a+Mp(t),y:l}}function Tot(t){var e,n=Qn(t),r=kp(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+Mp(t),l=-r.scrollTop;return En(s||n).direction==="rtl"&&(a+=ur(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:l}}function Lp(t){var e=En(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function IT(t){return["html","body","#document"].indexOf(rn(t))>=0?t.ownerDocument.body:It(t)&&Lp(t)?t:IT(ta(t))}function Ls(t,e){var n;e===void 0&&(e=[]);var r=IT(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),o=Tt(r),i=s?[o].concat(o.visualViewport||[],Lp(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=ns(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 aS(t,e,n){return e===CT?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(En(t).position)>=0,r=n&&It(t)?uo(t):t;return gr(r)?e.filter(function(s){return gr(s)&&OT(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 d=aS(t,u,r);return l.top=ur(d.top,l.top),l.right=hi(d.right,l.right),l.bottom=hi(d.bottom,l.bottom),l.left=ur(d.left,l.left),l},aS(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 DT(t){var e=t.reference,n=t.element,r=t.placement,s=r?en(r):null,o=r?rs(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?Dp(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case es:l[u]=l[u]-(e[d]/2-n[d]/2);break;case Xs:l[u]=l[u]+(e[d]/2-n[d]/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,d=u===void 0?CT: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=NT(typeof E!="number"?E:wT(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,d,i),x=ns(t.elements.reference),k=DT({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?RT:l,d=rs(r),_=d?a?rS:rS.filter(function(f){return rs(f)===d}):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)===Np)return[];var e=Jo(t);return[iS(t),e,iS(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,d=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(Ce,fe){return Ce.concat(en(fe)===Np?Oot(e,{placement:fe,boundary:d,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:d,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(Ce){return Ce})){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 lS(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 cS(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=lS(i,r),u=lS(a,s,o),d=cS(l),_=cS(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"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=RT.reduce(function(d,_){return d[_]=kot(_,e.rects,o),d},{}),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]=DT({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,d=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:d}),b=en(e.placement),m=rs(e.placement),S=!m,C=Dp(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===es?k[H]:y[H],ee=m===es?-y[H]:-k[H],be=e.elements.arrow,Ce=g&&be?Ip(be):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:AT(),Ee=fe[B],z=fe[se],te=Ms(0,k[H],Ce[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?hi(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)?kp(t):qot(t)}function Vot(t){var e=t.getBoundingClientRect(),n=ts(e.width)/t.offsetWidth||1,r=ts(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=ns(t,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rn(e)!=="body"||Lp(o))&&(a=Yot(e)),It(e)?(l=ns(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Mp(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 dS={placement:"bottom",modifiers:[],strategy:"absolute"};function uS(){for(var t=arguments.length,e=new Array(t),n=0;n(hr("data-v-fabac0ac"),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(()=>c("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(()=>c("p",{class:"text-gray-400 text-base"},"One tool to rule them all",-1)),cit=Qe(()=>c("p",{class:"text-gray-400 text-base"},"by ParisNeo",-1)),dit=Qe(()=>c("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(()=>c("p",{class:"text-2xl"},"Welcome",-1)),_it=Qe(()=>c("div",{role:"status",class:"text-center w-full display: flex; flex-row align-items: center;"},[c("p",{class:"text-2xl animate-pulse"},"Loading ...")],-1)),pit=Qe(()=>c("i",{"data-feather":"chevron-right"},null,-1)),mit=[pit],git=Qe(()=>c("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(()=>c("i",{"data-feather":"plus"},null,-1)),yit=[Sit],vit=Qe(()=>c("i",{"data-feather":"check-square"},null,-1)),Tit=[vit],Cit=Qe(()=>c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Reset database, remove all discussions"},[c("i",{"data-feather":"refresh-ccw"})],-1)),Rit=Qe(()=>c("i",{"data-feather":"database"},null,-1)),xit=[Rit],Oit=Qe(()=>c("i",{"data-feather":"log-in"},null,-1)),Ait=[Oit],Nit={key:0,class:"dropdown"},wit=Qe(()=>c("i",{"data-feather":"search"},null,-1)),Iit=[wit],Dit=Qe(()=>c("i",{"data-feather":"save"},null,-1)),kit=[Dit],Mit={key:2,class:"flex gap-3 flex-1 items-center duration-75"},Lit=Qe(()=>c("i",{"data-feather":"x"},null,-1)),Pit=[Lit],Fit=Qe(()=>c("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(()=>c("div",{role:"status"},[c("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"},[c("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"}),c("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"})]),c("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(()=>c("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[c("div",{class:"scale-75"},[c("i",{"data-feather":"search"})])],-1)),Qit={class:"absolute inset-y-0 right-0 flex items-center pr-3"},jit=Qe(()=>c("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(()=>c("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(()=>c("i",{"data-feather":"check"},null,-1)),lat=[aat],cat=Qe(()=>c("i",{"data-feather":"x"},null,-1)),dat=[cat],uat={class:"flex gap-3"},_at=Qe(()=>c("i",{"data-feather":"log-out"},null,-1)),pat=[_at],mat=Qe(()=>c("i",{"data-feather":"bookmark"},null,-1)),gat=[mat],fat=Qe(()=>c("i",{"data-feather":"list"},null,-1)),hat=[fat],Eat={class:"relative flex flex-row flex-grow mb-10 z-0"},bat={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"},Sat=Qe(()=>c("p",{class:"px-3"},"No discussions are found",-1)),yat=[Sat],vat=Qe(()=>c("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)),Tat={class:"ml-2"},Cat={key:1,class:"relative flex flex-col flex-grow"},Rat={class:"container pt-4 pb-10 mb-28"},xat=Qe(()=>c("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)),Oat={key:0,class:"bottom-0 container flex flex-row items-center justify-center"},Aat={setup(){},data(){return{host:"",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,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,discussion_id:0}},methods:{onSettingsBinding(){try{this.isLoading=!0,Te.get("/get_active_binding_settings").then(t=>{this.isLoading=!1,t&&(console.log("binding sett",t),t.data&&Object.keys(t.data).length>0?this.$refs.universalForm.showForm(t.data,"Binding settings - "+bindingEntry.binding.name,"Save changes","Cancel").then(e=>{try{Te.post("/set_active_binding_settings",e).then(n=>{n&&n.data?(console.log("binding set with new settings",n.data),this.$refs.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$refs.toast.showToast(`Did not get binding settings responses. `+n,4,!1),this.isLoading=!1)})}catch(n){this.$refs.toast.showToast(`Did not get binding settings responses. - Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$refs.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$refs.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(t){console.log("Selected:",t)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(t){if(this.database_selectorDialogVisible=!1,(await Te.post("/select_database",{name:t})).status){console.log("Selected database"),this.$store.state.config=await Te.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let n=await Te.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,Te.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(()=>{Re.replace()})}).catch(t=>{this.loading=!1,this.$refs.toast.showToast("Configuration change failed.",4,!1)})},save_configuration(){this.showConfirmation=!1,Te.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 Te.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await Te.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&&(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"),Te.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,Te.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 Te.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 Te.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 make_title(t){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const e=await Te.post("/make_title",{client_id:this.client_id,id:t});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(t,this.loading),e.status==200){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await Te.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 Te.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 Te.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 Te.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,e){try{if(t.length>0){const n=await Te.post("/export_multiple_discussions",{discussion_ids:t,export_format:e});if(n)return n.data}}catch(n){return console.log("Error: Could not export multiple discussions",n.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await Te.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,discussion_id:t.discussion_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,open:t.open};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),Te.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)})},createEmptyUserMessage(){Ne.emit("create_empty_message",{type:0})},createEmptyAIMessage(){Ne.emit("create_empty_message",{type:1})},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),Te.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,discussion_id:this.discussion_id,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)})},sendCmd(t){this.isGenerating=!0,Ne.emit("execute_command",{command:t,parameters:[]})},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){if(this.discussion_id=t.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(r=>r.id==t.id),n=this.discussionArr[e];if(n&&(t.message_type==this.msgTypes.MSG_TYPE_FULL||t.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))n.content=t.content,n.finished_generating_at=t.finished_generating_at;else if(n&&t.message_type==this.msgTypes.MSG_TYPE_CHUNK)n.content+=t.content;else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_START)n.steps.push({message:t.content,done:!1,status:!0});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_END){const r=n.steps.find(s=>s.message===t.content);if(r){r.done=!0;try{console.log(t.parameters);const s=t.parameters;r.status=s.status,console.log(s)}catch(s){console.error("Error parsing JSON:",s.message)}}}else t.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(t.metadata),n.metadata=t.metadata):t.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),n.ui=t.ui,console.log(n.ui)):t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.content,5,!1)}this.$nextTick(()=>{Re.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},async makeTitle(t){this.list.findIndex(e=>e.id==t.id),await this.make_title(t.id)},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(()=>{Re.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Te.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(()=>{Re.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Te.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){if(console.log("final",t),t.parent_id,this.discussion_id=t.discussion_id,this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(n=>n.id==t.id);this.discussionArr[e].content=t.content,this.discussionArr[e].finished_generating_at=t.finished_generating_at}ve(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),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=` + Endpoint error: `+n.message,4,!1),this.isLoading=!1}}):(this.$refs.toast.showToast("Binding has no settings",4,!1),this.isLoading=!1))})}catch(t){this.isLoading=!1,this.$refs.toast.showToast("Could not open binding settings. Endpoint error: "+t.message,4,!1)}},showDatabaseSelector(){this.database_selectorDialogVisible=!0},async ondatabase_selectorDialogSelected(t){console.log("Selected:",t)},onclosedatabase_selectorDialog(){this.database_selectorDialogVisible=!1},async onvalidatedatabase_selectorChoice(t){if(this.database_selectorDialogVisible=!1,(await Te.post("/select_database",{name:t})).status){console.log("Selected database"),this.$store.state.config=await Te.get("/get_config"),console.log("new config loaded :",this.$store.state.config);let n=await Te.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,Te.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(()=>{Re.replace()})}).catch(t=>{this.loading=!1,this.$refs.toast.showToast("Configuration change failed.",4,!1)})},save_configuration(){this.showConfirmation=!1,Te.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 Te.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req");return}},async list_discussions(){try{const t=await Te.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&&(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"),Te.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,Te.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 Te.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 Te.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 make_title(t){try{if(t){this.loading=!0,this.setDiscussionLoading(t,this.loading);const e=await Te.post("/make_title",{client_id:this.client_id,id:t});if(console.log("Making title:",e),this.loading=!1,this.setDiscussionLoading(t,this.loading),e.status==200){const n=this.list.findIndex(s=>s.id==t),r=this.list[n];r.title=e.data.title,this.tempList=this.list}}}catch(e){console.log("Error: Could not edit title",e.message),this.loading=!1,this.setDiscussionLoading(t,this.loading)}},async delete_message(t){try{const e=await Te.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 Te.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 Te.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 Te.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,e){try{if(t.length>0){const n=await Te.post("/export_multiple_discussions",{discussion_ids:t,export_format:e});if(n)return n.data}}catch(n){return console.log("Error: Could not export multiple discussions",n.message),{}}},async import_multiple_discussions(t){try{if(t.length>0){console.log("sending import",t);const e=await Te.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,discussion_id:t.discussion_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,open:t.open};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),Te.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)})},createEmptyUserMessage(){Ne.emit("create_empty_message",{type:0})},createEmptyAIMessage(){Ne.emit("create_empty_message",{type:1})},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),Te.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,discussion_id:this.discussion_id,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)})},sendCmd(t){this.isGenerating=!0,Ne.emit("execute_command",{command:t,parameters:[]})},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){if(this.discussion_id=t.discussion_id,this.setDiscussionLoading(this.discussion_id,!0),this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(r=>r.id==t.id),n=this.discussionArr[e];if(n&&(t.message_type==this.msgTypes.MSG_TYPE_FULL||t.message_type==this.msgTypes.MSG_TYPE_FULL_INVISIBLE_TO_AI))n.content=t.content,n.finished_generating_at=t.finished_generating_at;else if(n&&t.message_type==this.msgTypes.MSG_TYPE_CHUNK)n.content+=t.content;else if(t.message_type==this.msgTypes.MSG_TYPE_STEP)n.steps.push({message:t.content,done:!0,status:!0});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_START)n.steps.push({message:t.content,done:!1,status:!0});else if(t.message_type==this.msgTypes.MSG_TYPE_STEP_END){const r=n.steps.find(s=>s.message===t.content);if(r){r.done=!0;try{console.log(t.parameters);const s=t.parameters;r.status=s.status,console.log(s)}catch(s){console.error("Error parsing JSON:",s.message)}}}else t.message_type==this.msgTypes.MSG_TYPE_JSON_INFOS?(console.log("JSON message"),console.log(t.metadata),n.metadata=t.metadata):t.message_type==this.msgTypes.MSG_TYPE_UI?(console.log("UI message"),n.ui=t.ui,console.log(n.ui)):t.message_type==this.msgTypes.MSG_TYPE_EXCEPTION&&this.$refs.toast.showToast(t.content,5,!1)}this.$nextTick(()=>{Re.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},async makeTitle(t){this.list.findIndex(e=>e.id==t.id),await this.make_title(t.id)},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,n){ve(()=>{Re.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Te.get("/get_generation_status",{}).then(r=>{r&&(r.data.status?(this.$refs.toast.showToast("The server is busy. Wait",4,!1),console.log("Already generating")):Ne.emit("generate_msg_from",{prompt:e,id:t,msg_type:n}))}).catch(r=>{console.log("Error: Could not get generation status",r)})},continueMessage(t,e){ve(()=>{Re.replace()}),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating),Te.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){if(console.log("final",t),t.parent_id,this.discussion_id=t.discussion_id,this.currentDiscussion.id==this.discussion_id){const e=this.discussionArr.findIndex(n=>n.id==t.id);this.discussionArr[e].content=t.content,this.discussionArr[e].finished_generating_at=t.finished_generating_at}ve(()=>{const e=document.getElementById("messages-list");this.scrollBottom(e)}),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 +188,4 @@ ${s} ${l}`;navigator.clipboard.writeText(u),ve(()=>{Re.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},saveMarkdowntoFile(t,e){e=e||"data.md";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([t],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$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 exportDiscussionsAsMarkdown(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),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)+".md";this.loading=!0;const d=await this.export_multiple_discussions(t,"markdown");d?(this.saveMarkdowntoFile(d,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 exportDiscussionsAsJson(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),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 d=await this.export_multiple_discussions(t,"json");d?(this.saveJSONtoFile(d,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},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}},async created(){for(this.$nextTick(()=>{Re.replace()}),Ne.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ne.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),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(){try{const e=await(await fetch("/get_server_address")).text();if(e.includes("<"))return console.log("Server address not found"),"http://localhost:9600/";console.log(`Server address: ${e}`),this.host=`${e}`}catch(t){console.error("Error fetching server address:",t),this.host="http://localhost:9600/"}this.$nextTick(()=>{Re.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:fT,Message:hT,ChatBox:ET,WelcomeComponent:bT,Toast:Sr,ChoiceDialog:Tp},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){ve(()=>{Re.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){ve(()=>{Re.replace()})},isSearch(){ve(()=>{Re.replace()})}},computed:{isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},formatted_database_name(){const t=this.$store.state.config.db_path;return t.slice(0,t.length-3)},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(()=>{Re.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},Oat=Object.assign(xat,{__name:"DiscussionsView",setup(t){return to(()=>{BT()}),Te.defaults.baseURL="/",(e,n)=>(v(),T(we,null,[he($r,{name:"fade-and-fly"},{default:ke(()=>[e.isReady?U("",!0):(v(),T("div",Jot,[c("div",eit,[c("div",tit,[c("div",nit,[rit,c("div",sit,[c("p",oit,"Lord of Large Language Models v "+j(ct(GT).state.version),1),iit,ait])]),lit,cit,dit])])]))]),_: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(c("div",null,_it,512),[[We,e.panelCollapsed]]),ce(c("div",null,mit,512),[[We,!e.panelCollapsed]])])):U("",!0),he($r,{name:"slide-right"},{default:ke(()=>[e.showPanel?(v(),T("div",git,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[22]||(n[22]=_e(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",fit,[c("div",hit,[c("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())},bit),c("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)},yit,2),vit,c("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"]))},Cit),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[4]||(n[4]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),c("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"]))},xit),e.isOpen?(v(),T("div",Oit,[c("button",{onClick:n[6]||(n[6]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},"LOLLMS"),c("button",{onClick:n[7]||(n[7]=(...r)=>e.importChatGPT&&e.importChatGPT(...r))},"ChatGPT")])):U("",!0),c("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)},Nit,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)},Iit)),e.showSaveConfirmation?(v(),T("div",Dit,[c("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"]))},Mit),c("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"]))},Pit)])):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:ct(Zot),width:"25",height:"25",class:"animate-pulse",title:"Applying config, please stand by..."},null,8,Fit)):e.UseDiscussionHistory?(v(),T("img",{key:1,src:ct(Xot),width:"25",height:"25"},null,8,Uit)):(v(),T("img",{key:2,src:ct(jot),width:"25",height:"25"},null,8,Bit))])),e.loading?(v(),T("div",Git,Yit)):U("",!0)]),e.isSearch?(v(),T("div",Vit,[c("div",zit,[c("div",Hit,[$it,c("div",Wit,[c("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="")},Qit,2)]),ce(c("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",jit)):U("",!0),e.isCheckbox?(v(),T("div",Zit,[c("div",Xit,[e.selectedDiscussions.length>0?(v(),T("p",Jit,"Selected: "+j(e.selectedDiscussions.length),1)):U("",!0)]),c("div",eat,[e.selectedDiscussions.length>0?(v(),T("div",tat,[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"]))},rat)),e.showConfirmation?(v(),T("div",sat,[c("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"]))},iat),c("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"]))},lat)])):U("",!0)])):U("",!0),c("div",cat,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:n[19]||(n[19]=_e((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},uat),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[20]||(n[20]=_e((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},pat),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[21]||(n[21]=_e((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},gat)])])])):U("",!0)]),c("div",fat,[c("div",{class:Ae(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:Ae([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(v(),rt(Vn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.list,(r,s)=>(v(),rt(fT,{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,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):U("",!0),e.list.length<1?(v(),T("div",hat,bat)):U("",!0),Sat],2)],2)])],32),c("div",{class:"absolute bottom-0 left-0 w-full bg-blue-200 dark:bg-blue-800 text-white py-2 cursor-pointer hover:text-green-500",onClick:n[23]||(n[23]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[c("p",yat,"Current database: "+j(e.formatted_database_name),1)])])):U("",!0)]),_:1}),e.isReady?(v(),T("div",vat,[c("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":""])},[c("div",Tat,[e.discussionArr.length>0?(v(),rt(Vn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.discussionArr,(r,s)=>(v(),rt(hT,{key:r.id,message:r,id:"msg-"+r.id,host:e.host,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","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):U("",!0),e.currentDiscussion.id?U("",!0):(v(),rt(bT,{key:1}))]),Cat,e.currentDiscussion.id?(v(),T("div",Rat,[he(ET,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onMessageSentEvent","onSendCMDEvent","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):U("",!0)],2)])):U("",!0),he(Sr,{ref:"toast"},null,512),he(pT,{ref:"messageBox"},null,512),he(Tp,{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=Ye(Oat,[["__scopeId","data-v-409a8e0c"]]),Nat=wO({history:Kx("/"),routes:[{path:"/playground/",name:"playground",component:kqe},{path:"/extensions/",name:"extensions",component:zqe},{path:"/help/",name:"help",component:d7e},{path:"/settings/",name:"settings",component:aet},{path:"/training/",name:"training",component:wet},{path:"/quantizing/",name:"quantizing",component:Bet},{path:"/",name:"discussions",component:Aat}]});const na=Y1(fA);console.log("Loaded main.js");function pS(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const GT=gR({state(){return{ready:!1,version:"unknown",settingsChanged:!1,isConnected:!1,isGenerating:!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},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},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},setCurrentModel(t,e){t.currentModel=e},setExtensionsZoo(t,e){t.extensionsZoo=e},setDatabases(t,e){t.databases=e}},getters:{getIsConnected(t){return t.isConnected},getIsGenerating(t){return t.isGenerating},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},getCurrentModel(t){return t.currentModel},getExtensionsZoo(t){return t.extensionsZoo}},actions:{async getVersion(){let t=await Te.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 d={};return d=l,d.category=o,d.full_path=o+"/"+l.folder,d.isMounted=u,d});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=pS(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 Te.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&&t("setCurrentModel",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 d={};return d=l,d.category=o,d.full_path=o+"/"+l.folder,d.isMounted=u,d});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=pS(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}},async created(){for(this.$nextTick(()=>{Re.replace()}),Ne.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ne.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),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(){try{let e=await(await fetch("/get_server_address")).text();e.includes("<")&&(console.log("Server address not found"),e="http://localhost:9600/"),console.log(`Server address: ${e}`),this.host=`${e}`}catch(t){console.error("Error fetching server address:",t),this.host="http://localhost:9600/"}this.$nextTick(()=>{Re.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:fT,Message:hT,ChatBox:ET,WelcomeComponent:bT,Toast:Sr,ChoiceDialog:Tp},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){ve(()=>{Re.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){ve(()=>{Re.replace()})},isSearch(){ve(()=>{Re.replace()})}},computed:{isGenerating:{get(){return this.$store.state.isGenerating},set(t){this.$store.state.isGenerating=t}},formatted_database_name(){const t=this.$store.state.config.db_path;return t.slice(0,t.length-3)},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(()=>{Re.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},Nat=Object.assign(Aat,{__name:"DiscussionsView",setup(t){return to(()=>{BT()}),Te.defaults.baseURL="/",(e,n)=>(v(),T(we,null,[he($r,{name:"fade-and-fly"},{default:ke(()=>[e.isReady?U("",!0):(v(),T("div",tit,[c("div",nit,[c("div",rit,[c("div",sit,[oit,c("div",iit,[c("p",ait,"Lord of Large Language Models v "+j(ct(GT).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(c("div",null,mit,512),[[We,e.panelCollapsed]]),ce(c("div",null,fit,512),[[We,!e.panelCollapsed]])])):U("",!0),he($r,{name:"slide-right"},{default:ke(()=>[e.showPanel?(v(),T("div",hit,[c("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[22]||(n[22]=_e(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[c("div",Eit,[c("div",bit,[c("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),c("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,c("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),c("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[4]||(n[4]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),c("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,[c("button",{onClick:n[6]||(n[6]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},"LOLLMS"),c("button",{onClick:n[7]||(n[7]=(...r)=>e.importChatGPT&&e.importChatGPT(...r))},"ChatGPT")])):U("",!0),c("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,[c("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),c("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:ct(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:ct(eit),width:"25",height:"25"},null,8,Git)):(v(),T("img",{key:2,src:ct(Xot),width:"25",height:"25"},null,8,qit))])),e.loading?(v(),T("div",Yit,zit)):U("",!0)]),e.isSearch?(v(),T("div",Hit,[c("div",$it,[c("div",Wit,[Kit,c("div",Qit,[c("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(c("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,[c("div",eat,[e.selectedDiscussions.length>0?(v(),T("p",tat,"Selected: "+j(e.selectedDiscussions.length),1)):U("",!0)]),c("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,[c("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),c("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),c("div",uat,[c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:n[19]||(n[19]=_e((...r)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...r),["stop"]))},pat),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a martkdown file",type:"button",onClick:n[20]||(n[20]=_e((...r)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...r),["stop"]))},gat),c("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:n[21]||(n[21]=_e((...r)=>e.selectAllDiscussions&&e.selectAllDiscussions(...r),["stop"]))},hat)])])])):U("",!0)]),c("div",Eat,[c("div",{class:Ae(["mx-4 flex flex-col flex-grow",e.isDragOverDiscussion?"pointer-events-none":""])},[c("div",{id:"dis-list",class:Ae([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow"])},[e.list.length>0?(v(),rt(Vn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.list,(r,s)=>(v(),rt(fT,{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,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):U("",!0),e.list.length<1?(v(),T("div",bat,yat)):U("",!0),vat],2)],2)])],32),c("div",{class:"absolute bottom-0 left-0 w-full bg-blue-200 dark:bg-blue-800 text-white py-2 cursor-pointer hover:text-green-500",onClick:n[23]||(n[23]=(...r)=>e.showDatabaseSelector&&e.showDatabaseSelector(...r))},[c("p",Tat,"Current database: "+j(e.formatted_database_name),1)])])):U("",!0)]),_:1}),e.isReady?(v(),T("div",Cat,[c("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":""])},[c("div",Rat,[e.discussionArr.length>0?(v(),rt(Vn,{key:0,name:"list"},{default:ke(()=>[(v(!0),T(we,null,Be(e.discussionArr,(r,s)=>(v(),rt(hT,{key:r.id,message:r,id:"msg-"+r.id,host:e.host,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","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128))]),_:1})):U("",!0),e.currentDiscussion.id?U("",!0):(v(),rt(bT,{key:1}))]),xat,e.currentDiscussion.id?(v(),T("div",Oat,[he(ET,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onMessageSentEvent","onSendCMDEvent","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):U("",!0)],2)])):U("",!0),he(Sr,{ref:"toast"},null,512),he(pT,{ref:"messageBox"},null,512),he(Tp,{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))}}),wat=Ye(Nat,[["__scopeId","data-v-fabac0ac"]]),Iat=wO({history:Kx("/"),routes:[{path:"/playground/",name:"playground",component:kqe},{path:"/extensions/",name:"extensions",component:zqe},{path:"/help/",name:"help",component:d7e},{path:"/settings/",name:"settings",component:aet},{path:"/training/",name:"training",component:wet},{path:"/quantizing/",name:"quantizing",component:Bet},{path:"/",name:"discussions",component:wat}]});const na=Y1(fA);console.log("Loaded main.js");function pS(t){const e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}const GT=gR({state(){return{ready:!1,version:"unknown",settingsChanged:!1,isConnected:!1,isGenerating:!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},setIsGenerating(t,e){t.isGenerating=e},setConfig(t,e){t.config=e},setPersonalities(t,e){t.personalities=e},setMountedPers(t,e){t.mountedPers=e},setMountedPersArr(t,e){t.mountedPersArr=e},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},setCurrentModel(t,e){t.currentModel=e},setExtensionsZoo(t,e){t.extensionsZoo=e},setDatabases(t,e){t.databases=e}},getters:{getIsConnected(t){return t.isConnected},getIsGenerating(t){return t.isGenerating},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},getCurrentModel(t){return t.currentModel},getExtensionsZoo(t){return t.extensionsZoo}},actions:{async getVersion(){let t=await Te.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 d={};return d=l,d.category=o,d.full_path=o+"/"+l.folder,d.isMounted=u,d});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=pS(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 Te.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&&t("setCurrentModel",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 d={};return d=l,d.category=o,d.full_path=o+"/"+l.folder,d.isMounted=u,d});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=pS(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 LoLLMS WebUI - Welcome - - + +
diff --git a/web/src/components/Message.vue b/web/src/components/Message.vue index 68719100..007037b8 100644 --- a/web/src/components/Message.vue +++ b/web/src/components/Message.vue @@ -76,11 +76,17 @@ title="Copy message to clipboard" @click.stop="copyContentToClipboard()"> -
- + +
+
+
{ feather.replace() @@ -1456,9 +1458,10 @@ export default { axios.get('/get_generation_status', {}).then((res) => { if (res) { if (!res.data.status) { - socket.emit('generate_msg_from', { prompt: msg, id: msgId }); + socket.emit('generate_msg_from', { prompt: msg, id: msgId, msg_type: msg_type }); } else { + this.$refs.toast.showToast("The server is busy. Wait", 4, false) console.log("Already generating"); } } @@ -1846,11 +1849,11 @@ export default { async mounted() { try { const response = await fetch('/get_server_address'); // Replace with the actual endpoint on your Flask server - const serverAddress = await response.text(); + let serverAddress = await response.text(); if(serverAddress.includes('<')){ console.log(`Server address not found`) - return "http://localhost:9600/"//process.env.VITE_LOLLMS_API + serverAddress = "http://localhost:9600/"//process.env.VITE_LOLLMS_API } diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 1ce2660d..bcdf010a 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 1ce2660d1076a381177d64aec2495dd97765f488 +Subproject commit bcdf010ad9338f1cc48ff486273e01b62c6af42f