totem-llm 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1703,8 +1703,8 @@ Aquesta acció és irreversible.`,"toast-deleted":"Router eliminat","toast-delet
1703
1703
  * {@link https://github.com/ReactTooltip/react-tooltip}
1704
1704
  * @copyright ReactTooltip Team
1705
1705
  * @license MIT
1706
- */const eC="react-tooltip-core-styles",tC="react-tooltip-base-styles",s0={core:!1,base:!1};function l0({css:e,id:t=tC,type:i="base",ref:a}){var n,r;if(!e||typeof document>"u"||s0[i]||i==="core"&&typeof process<"u"&&(!((n=process==null?void 0:{GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",PYTHON_BASIC_REPL:"1",LESSOPEN:"| /usr/bin/lesspipe %s",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_devDependencies__types_react_router_dom:"^5.3.3",npm_package_dependencies_cronstrue:"^2.50.0",USER:"mike-diker",npm_config_user_agent:"yarn/1.22.22 npm/? node/v24.10.0 linux x64",npm_package_devDependencies__esbuild_plugins_node_globals_polyfill:"^0.1.1",npm_package_dependencies_react_toastify:"^9.1.3",npm_package_dependencies_js_levenshtein:"^1.1.6",npm_config_version_commit_hooks:"true",FONTCONFIG_PATH:"/etc/fonts",GIO_MODULE_DIR:"/home/mike-diker/snap/code/common/.cache/gio-modules",npm_package_devDependencies_buffer:"^6.0.3",npm_package_dependencies_text_case:"^1.0.9",npm_package_dependencies_react_device_detect:"^2.2.2",npm_package_dependencies__lobehub_icons:"^4.0.3",npm_config_bin_links:"true",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass.sh",GTK_EXE_PREFIX_VSCODE_SNAP_ORIG:"",npm_node_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",npm_package_devDependencies_vite:"^4.3.0",npm_config_init_version:"1.0.0",GDK_BACKEND_VSCODE_SNAP_ORIG:"",CLUTTER_DISABLE_MIPMAPPED_TEXT:"1",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/mike-diker",CHROME_DESKTOP:"code.desktop",LOCPATH_VSCODE_SNAP_ORIG:"",npm_package_devDependencies__eslint_js:"^9.39.2",TERM_PROGRAM_VERSION:"1.121.0",DESKTOP_SESSION:"ubuntu",GTK_PATH:"/snap/code/241/usr/lib/x86_64-linux-gnu/gtk-3.0",NVM_BIN:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin",npm_package_json:"/home/mike-diker/git-repos/totem-llm/package.json",npm_package_devDependencies_eslint_config_prettier:"^9.0.0",NVM_INC:"/home/mike-diker/.nvm/versions/node/v24.10.0/include/node",XDG_DATA_HOME_VSCODE_SNAP_ORIG:"",GTK_IM_MODULE_FILE:"/home/mike-diker/snap/code/common/.cache/immodules/immodules.cache",GIO_LAUNCHED_DESKTOP_FILE:"/var/lib/snapd/desktop/applications/code_code.desktop",npm_package_engines_node:">=18",npm_config_init_license:"MIT",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG:"",VSCODE_GIT_ASKPASS_MAIN:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",YARN_WRAP_OUTPUT:"false",npm_package_devDependencies_flow_remove_types:"^2.217.1",npm_config_version_tag_prefix:"v",VSCODE_GIT_ASKPASS_NODE:"/snap/code/241/usr/share/code/code",MANAGERPID:"3558",npm_config_userconfig:"/home/mike-diker/.npmrc",npm_config_local_prefix:"/home/mike-diker/git-repos/totem-llm",npm_package_dependencies_react_i18next:"^14.1.1",SYSTEMD_EXEC_PID:"4202",VSCODE_PYTHON_AUTOACTIVATE_GUARD:"1",GSM_SKIP_SSH_AGENT_WORKAROUND:"true",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_dependencies_moment:"^2.30.1",COLORTERM:"truecolor",GIO_LAUNCHED_DESKTOP_FILE_PID:"5033",COLOR:"1",npm_package_devDependencies_tailwindcss:"^3.3.1",npm_package_dependencies_react_router_dom:"^6.3.0",npm_package_dependencies_react_error_boundary:"^6.0.0",npm_package_dependencies_i18next:"^23.11.3",NVM_DIR:"/home/mike-diker/.nvm",DEBUGINFOD_URLS:"https://debuginfod.ubuntu.com ",npm_package_devDependencies__types_react_dom:"^18.2.8",npm_package_dependencies_katex:"^0.6.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_dependencies_react_confetti_explosion:"^2.1.2",npm_package_scripts_dev:"cross-env NODE_ENV=development vite --debug --host=0.0.0.0",LOGNAME:"mike-diker",npm_package_devDependencies__vitejs_plugin_react:"^4.0.0-beta.0",npm_package_dependencies_react_tooltip:"^5.25.2",npm_package_type:"module",JOURNAL_STREAM:"9:33800",_:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/npm",npm_config_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_config_npm_version:"11.6.1",npm_package_devDependencies_autoprefixer:"^10.4.14",npm_package_dependencies_onnxruntime_web:"^1.18.0",npm_package_dependencies_i18next_browser_languagedetector:"^7.2.1",npm_package_private:"false",XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG:"/etc/xdg/xdg-ubuntu:/etc/xdg",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@x11.service/memory.pressure",XDG_SESSION_CLASS:"user",XDG_DATA_DIRS_VSCODE_SNAP_ORIG:"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_package_dependencies_react_speech_recognition:"^3.10.0",npm_package_dependencies_react_beautiful_dnd:"13.1.1",npm_package_scripts_lint:"eslint --fix src",npm_config_registry:"https://registry.yarnpkg.com",USERNAME:"mike-diker",TERM:"xterm-256color",npm_config_cache:"/home/mike-diker/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",FC_FONTATIONS:"1",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.3",npm_package_scripts_start:"vite --open",npm_config_ignore_scripts:"",WINDOWPATH:"2",npm_config_node_gyp:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_recharts:"^2.12.5",PATH:"/tmp/yarn--1780627688803-0.19399038405742697:/home/mike-diker/git-repos/totem-llm/frontend/node_modules/.bin:/home/mike-diker/snap/code/241/.local/share/yarn/link/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/git-repos/totem-llm/node_modules/.bin:/home/mike-diker/git-repos/node_modules/.bin:/home/mike-diker/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/debugCommand:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/copilotCli:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.cargo/bin:/home/mike-diker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin",NODE:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",SESSION_MANAGER:"local/mike-diker-Precision-7530:@/tmp/.ICE-unix/4176,unix/mike-diker-Precision-7530:/tmp/.ICE-unix/4176",GTK_EXE_PREFIX:"/snap/code/241/usr",INVOCATION_ID:"64c065948fa541279cfe1dc565c1037d",npm_package_name:"anything-llm-frontend",npm_package_dependencies_recharts_to_png:"^2.3.1",npm_package_dependencies_file_saver:"^2.0.5",XDG_MENU_PREFIX:"gnome-",XDG_RUNTIME_DIR:"/run/user/1000",GDK_BACKEND:"x11",npm_package_devDependencies_hermes_eslint:"^0.15.0",npm_package_devDependencies_flow_bin:"^0.217.0",DISPLAY:":1",LOCPATH:"/snap/code/241/usr/lib/locale",npm_package_devDependencies_eslint_plugin_ft_flow:"^3.0.0",npm_package_dependencies_react_highlight_words:"^0.21.0",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",PYTHONSTARTUP:"/home/mike-diker/.config/Code/User/workspaceStorage/e3f9de5e65c351ebaea57871eb56e5ba/ms-python.python/pythonrc.py",npm_package_devDependencies_eslint:"^9.39.2",npm_package_dependencies_react_dom:"^18.2.0",npm_package_dependencies__microsoft_fetch_event_source:"^2.0.1",GIO_MODULE_DIR_VSCODE_SNAP_ORIG:"",XDG_DATA_HOME:"/home/mike-diker/snap/code/241/.local/share",XMODIFIERS:"@im=ibus",XDG_SESSION_DESKTOP:"ubuntu",XAUTHORITY:"/run/user/1000/gdm/Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-9b67e3720d.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"vite build && node scripts/postbuild.js",npm_package_dependencies_lodash_debounce:"^4.0.8",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",GSETTINGS_SCHEMA_DIR:"/home/mike-diker/snap/code/241/.local/share/glib-2.0/schemas",npm_config_version_git_message:"v%s",SHELL:"/bin/bash",npm_package_version:"",npm_lifecycle_event:"build",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_package_devDependencies__types_react:"^18.2.23",npm_package_dependencies_pluralize:"^8.0.0",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_uuid:"^9.0.0",npm_package_dependencies_he:"^1.2.0",npm_package_scripts_build:"vite build && node scripts/postbuild.js",LESSCLOSE:"/usr/bin/lesspipe %s %s",GTK_PATH_VSCODE_SNAP_ORIG:"",FONTCONFIG_FILE:"/etc/fonts/fonts.conf",GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG:"",npm_package_dependencies_truncate:"^3.0.0",npm_package_dependencies_qrcode_react:"^4.2.0",npm_package_dependencies__phosphor_icons_react:"^2.1.7",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",GJS_DEBUG_OUTPUT:"stderr",npm_package_devDependencies_globals:"^16.5.0",npm_package_devDependencies_eslint_plugin_react:"^7.37.5",npm_package_dependencies_markdown_it:"^13.0.1",npm_package_license:"MIT",npm_config_strict_ssl:"true",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/mike-diker/.nvm/versions/node/v24.10.0/etc/npmrc",npm_config_init_module:"/home/mike-diker/.npm-init.js",npm_package_devDependencies_eslint_plugin_prettier:"^5.0.0",PWD:"/home/mike-diker/git-repos/totem-llm/frontend",npm_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/npm-cli.js",npm_package_dependencies_react_tag_input_component:"^2.0.2",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/home/mike-diker/snap/code/241/.local/share:/home/mike-diker/snap/code/241:/snap/code/241/usr/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_package_dependencies_dompurify:"^3.0.8",npm_command:"publish",npm_package_devDependencies_postcss:"^8.4.23",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies__tremor_react:"^3.15.1",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_devDependencies_rollup_plugin_visualizer:"^5.9.0",npm_package_scripts_preview:"vite preview",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",npm_package_dependencies_react_loading_skeleton:"^3.1.0",npm_package_dependencies__mintplex_labs_piper_tts_web:"^1.0.4",npm_package_scripts_lint_check:"eslint src",INIT_CWD:"/home/mike-diker/git-repos/totem-llm",EDITOR:"vi",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_highlight_js:"^11.9.0",NODE_ENV:"production"})===null||n===void 0)&&n.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((r=process==null?void 0:{GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",PYTHON_BASIC_REPL:"1",LESSOPEN:"| /usr/bin/lesspipe %s",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_devDependencies__types_react_router_dom:"^5.3.3",npm_package_dependencies_cronstrue:"^2.50.0",USER:"mike-diker",npm_config_user_agent:"yarn/1.22.22 npm/? node/v24.10.0 linux x64",npm_package_devDependencies__esbuild_plugins_node_globals_polyfill:"^0.1.1",npm_package_dependencies_react_toastify:"^9.1.3",npm_package_dependencies_js_levenshtein:"^1.1.6",npm_config_version_commit_hooks:"true",FONTCONFIG_PATH:"/etc/fonts",GIO_MODULE_DIR:"/home/mike-diker/snap/code/common/.cache/gio-modules",npm_package_devDependencies_buffer:"^6.0.3",npm_package_dependencies_text_case:"^1.0.9",npm_package_dependencies_react_device_detect:"^2.2.2",npm_package_dependencies__lobehub_icons:"^4.0.3",npm_config_bin_links:"true",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass.sh",GTK_EXE_PREFIX_VSCODE_SNAP_ORIG:"",npm_node_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",npm_package_devDependencies_vite:"^4.3.0",npm_config_init_version:"1.0.0",GDK_BACKEND_VSCODE_SNAP_ORIG:"",CLUTTER_DISABLE_MIPMAPPED_TEXT:"1",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/mike-diker",CHROME_DESKTOP:"code.desktop",LOCPATH_VSCODE_SNAP_ORIG:"",npm_package_devDependencies__eslint_js:"^9.39.2",TERM_PROGRAM_VERSION:"1.121.0",DESKTOP_SESSION:"ubuntu",GTK_PATH:"/snap/code/241/usr/lib/x86_64-linux-gnu/gtk-3.0",NVM_BIN:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin",npm_package_json:"/home/mike-diker/git-repos/totem-llm/package.json",npm_package_devDependencies_eslint_config_prettier:"^9.0.0",NVM_INC:"/home/mike-diker/.nvm/versions/node/v24.10.0/include/node",XDG_DATA_HOME_VSCODE_SNAP_ORIG:"",GTK_IM_MODULE_FILE:"/home/mike-diker/snap/code/common/.cache/immodules/immodules.cache",GIO_LAUNCHED_DESKTOP_FILE:"/var/lib/snapd/desktop/applications/code_code.desktop",npm_package_engines_node:">=18",npm_config_init_license:"MIT",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG:"",VSCODE_GIT_ASKPASS_MAIN:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",YARN_WRAP_OUTPUT:"false",npm_package_devDependencies_flow_remove_types:"^2.217.1",npm_config_version_tag_prefix:"v",VSCODE_GIT_ASKPASS_NODE:"/snap/code/241/usr/share/code/code",MANAGERPID:"3558",npm_config_userconfig:"/home/mike-diker/.npmrc",npm_config_local_prefix:"/home/mike-diker/git-repos/totem-llm",npm_package_dependencies_react_i18next:"^14.1.1",SYSTEMD_EXEC_PID:"4202",VSCODE_PYTHON_AUTOACTIVATE_GUARD:"1",GSM_SKIP_SSH_AGENT_WORKAROUND:"true",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_dependencies_moment:"^2.30.1",COLORTERM:"truecolor",GIO_LAUNCHED_DESKTOP_FILE_PID:"5033",COLOR:"1",npm_package_devDependencies_tailwindcss:"^3.3.1",npm_package_dependencies_react_router_dom:"^6.3.0",npm_package_dependencies_react_error_boundary:"^6.0.0",npm_package_dependencies_i18next:"^23.11.3",NVM_DIR:"/home/mike-diker/.nvm",DEBUGINFOD_URLS:"https://debuginfod.ubuntu.com ",npm_package_devDependencies__types_react_dom:"^18.2.8",npm_package_dependencies_katex:"^0.6.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_dependencies_react_confetti_explosion:"^2.1.2",npm_package_scripts_dev:"cross-env NODE_ENV=development vite --debug --host=0.0.0.0",LOGNAME:"mike-diker",npm_package_devDependencies__vitejs_plugin_react:"^4.0.0-beta.0",npm_package_dependencies_react_tooltip:"^5.25.2",npm_package_type:"module",JOURNAL_STREAM:"9:33800",_:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/npm",npm_config_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_config_npm_version:"11.6.1",npm_package_devDependencies_autoprefixer:"^10.4.14",npm_package_dependencies_onnxruntime_web:"^1.18.0",npm_package_dependencies_i18next_browser_languagedetector:"^7.2.1",npm_package_private:"false",XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG:"/etc/xdg/xdg-ubuntu:/etc/xdg",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@x11.service/memory.pressure",XDG_SESSION_CLASS:"user",XDG_DATA_DIRS_VSCODE_SNAP_ORIG:"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_package_dependencies_react_speech_recognition:"^3.10.0",npm_package_dependencies_react_beautiful_dnd:"13.1.1",npm_package_scripts_lint:"eslint --fix src",npm_config_registry:"https://registry.yarnpkg.com",USERNAME:"mike-diker",TERM:"xterm-256color",npm_config_cache:"/home/mike-diker/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",FC_FONTATIONS:"1",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.3",npm_package_scripts_start:"vite --open",npm_config_ignore_scripts:"",WINDOWPATH:"2",npm_config_node_gyp:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_recharts:"^2.12.5",PATH:"/tmp/yarn--1780627688803-0.19399038405742697:/home/mike-diker/git-repos/totem-llm/frontend/node_modules/.bin:/home/mike-diker/snap/code/241/.local/share/yarn/link/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/git-repos/totem-llm/node_modules/.bin:/home/mike-diker/git-repos/node_modules/.bin:/home/mike-diker/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/debugCommand:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/copilotCli:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.cargo/bin:/home/mike-diker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin",NODE:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",SESSION_MANAGER:"local/mike-diker-Precision-7530:@/tmp/.ICE-unix/4176,unix/mike-diker-Precision-7530:/tmp/.ICE-unix/4176",GTK_EXE_PREFIX:"/snap/code/241/usr",INVOCATION_ID:"64c065948fa541279cfe1dc565c1037d",npm_package_name:"anything-llm-frontend",npm_package_dependencies_recharts_to_png:"^2.3.1",npm_package_dependencies_file_saver:"^2.0.5",XDG_MENU_PREFIX:"gnome-",XDG_RUNTIME_DIR:"/run/user/1000",GDK_BACKEND:"x11",npm_package_devDependencies_hermes_eslint:"^0.15.0",npm_package_devDependencies_flow_bin:"^0.217.0",DISPLAY:":1",LOCPATH:"/snap/code/241/usr/lib/locale",npm_package_devDependencies_eslint_plugin_ft_flow:"^3.0.0",npm_package_dependencies_react_highlight_words:"^0.21.0",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",PYTHONSTARTUP:"/home/mike-diker/.config/Code/User/workspaceStorage/e3f9de5e65c351ebaea57871eb56e5ba/ms-python.python/pythonrc.py",npm_package_devDependencies_eslint:"^9.39.2",npm_package_dependencies_react_dom:"^18.2.0",npm_package_dependencies__microsoft_fetch_event_source:"^2.0.1",GIO_MODULE_DIR_VSCODE_SNAP_ORIG:"",XDG_DATA_HOME:"/home/mike-diker/snap/code/241/.local/share",XMODIFIERS:"@im=ibus",XDG_SESSION_DESKTOP:"ubuntu",XAUTHORITY:"/run/user/1000/gdm/Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-9b67e3720d.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"vite build && node scripts/postbuild.js",npm_package_dependencies_lodash_debounce:"^4.0.8",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",GSETTINGS_SCHEMA_DIR:"/home/mike-diker/snap/code/241/.local/share/glib-2.0/schemas",npm_config_version_git_message:"v%s",SHELL:"/bin/bash",npm_package_version:"",npm_lifecycle_event:"build",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_package_devDependencies__types_react:"^18.2.23",npm_package_dependencies_pluralize:"^8.0.0",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_uuid:"^9.0.0",npm_package_dependencies_he:"^1.2.0",npm_package_scripts_build:"vite build && node scripts/postbuild.js",LESSCLOSE:"/usr/bin/lesspipe %s %s",GTK_PATH_VSCODE_SNAP_ORIG:"",FONTCONFIG_FILE:"/etc/fonts/fonts.conf",GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG:"",npm_package_dependencies_truncate:"^3.0.0",npm_package_dependencies_qrcode_react:"^4.2.0",npm_package_dependencies__phosphor_icons_react:"^2.1.7",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",GJS_DEBUG_OUTPUT:"stderr",npm_package_devDependencies_globals:"^16.5.0",npm_package_devDependencies_eslint_plugin_react:"^7.37.5",npm_package_dependencies_markdown_it:"^13.0.1",npm_package_license:"MIT",npm_config_strict_ssl:"true",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/mike-diker/.nvm/versions/node/v24.10.0/etc/npmrc",npm_config_init_module:"/home/mike-diker/.npm-init.js",npm_package_devDependencies_eslint_plugin_prettier:"^5.0.0",PWD:"/home/mike-diker/git-repos/totem-llm/frontend",npm_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/npm-cli.js",npm_package_dependencies_react_tag_input_component:"^2.0.2",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/home/mike-diker/snap/code/241/.local/share:/home/mike-diker/snap/code/241:/snap/code/241/usr/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_package_dependencies_dompurify:"^3.0.8",npm_command:"publish",npm_package_devDependencies_postcss:"^8.4.23",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies__tremor_react:"^3.15.1",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_devDependencies_rollup_plugin_visualizer:"^5.9.0",npm_package_scripts_preview:"vite preview",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",npm_package_dependencies_react_loading_skeleton:"^3.1.0",npm_package_dependencies__mintplex_labs_piper_tts_web:"^1.0.4",npm_package_scripts_lint_check:"eslint src",INIT_CWD:"/home/mike-diker/git-repos/totem-llm",EDITOR:"vi",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_highlight_js:"^11.9.0",NODE_ENV:"production"})===null||r===void 0)&&r.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(t=eC),a||(a={});const{insertAt:s}=a;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.id=t,d.type="text/css",s==="top"&&l.firstChild?l.insertBefore(d,l.firstChild):l.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),s0[i]=!0}const c0=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:i=null,place:a="top",offset:n=10,strategy:r="absolute",middlewares:s=[Z5(Number(n)),Q5({fallbackAxisSideDirection:"start"}),J5({padding:5})],border:l})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};const d=s;return i?(d.push(Y5({element:i,padding:5})),o0(e,t,{placement:a,strategy:r,middleware:d}).then(({x:u,y:h,placement:g,middlewareData:p})=>{var v,f;const b={left:`${u}px`,top:`${h}px`,border:l},{x:w,y}=(v=p.arrow)!==null&&v!==void 0?v:{x:0,y:0},k=(f={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]])!==null&&f!==void 0?f:"bottom",_=l&&{borderBottom:l,borderRight:l};let x=0;if(l){const A=`${l}`.match(/(\d+)px/);x=A!=null&&A[1]?Number(A[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:y!=null?`${y}px`:"",right:"",bottom:"",..._,[k]:`-${4+x}px`},place:g}})):o0(e,t,{placement:"bottom",strategy:r,middleware:d}).then(({x:u,y:h,placement:g})=>({tooltipStyles:{left:`${u}px`,top:`${h}px`},tooltipArrowStyles:{},place:g}))},d0=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),u0=(e,t,i)=>{let a=null;const n=function(...r){const s=()=>{a=null,i||e.apply(this,r)};i&&!a&&(e.apply(this,r),a=setTimeout(s,t)),i||(a&&clearTimeout(a),a=setTimeout(s,t))};return n.cancel=()=>{a&&(clearTimeout(a),a=null)},n},p0=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",ep=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((n,r)=>ep(n,t[r]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!p0(e)||!p0(t))return e===t;const i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(n=>ep(e[n],t[n]))},iC=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(i=>{const a=t.getPropertyValue(i);return a==="auto"||a==="scroll"})},m0=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(iC(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},aC=typeof window<"u"?m.useLayoutEffect:m.useEffect,mi=e=>{e.current&&(clearTimeout(e.current),e.current=null)},nC="DEFAULT_TOOLTIP_ID",rC={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},oC=m.createContext({getTooltipData:()=>rC});function Oy(e=nC){return m.useContext(oC).getTooltipData(e)}var Bn={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},bd={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const sC=({forwardRef:e,id:t,className:i,classNameArrow:a,variant:n="dark",anchorId:r,anchorSelect:s,place:l="top",offset:d=10,events:u=["hover"],openOnClick:h=!1,positionStrategy:g="absolute",middlewares:p,wrapper:v,delayShow:f=0,delayHide:b=0,float:w=!1,hidden:y=!1,noArrow:k=!1,clickable:_=!1,closeOnEsc:x=!1,closeOnScroll:A=!1,closeOnResize:z=!1,openEvents:S,closeEvents:M,globalCloseEvents:T,imperativeModeOnly:D,style:F,position:O,afterShow:Z,afterHide:R,content:ce,contentWrapperRef:ae,isOpen:Q,defaultIsOpen:I=!1,setIsOpen:U,activeAnchor:B,setActiveAnchor:me,border:ze,opacity:ct,arrowColor:He,role:dt="tooltip"})=>{var Ve;const Ie=m.useRef(null),Yt=m.useRef(null),jt=m.useRef(null),Xt=m.useRef(null),na=m.useRef(null),[Pe,ei]=m.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[Ye,La]=m.useState(!1),[ht,Dt]=m.useState(!1),[Ce,Hi]=m.useState(null),Vi=m.useRef(!1),qi=m.useRef(null),{anchorRefs:gt,setActiveAnchor:ti}=Oy(t),wt=m.useRef(!1),[se,_e]=m.useState([]),ne=m.useRef(!1),fe=h||u.includes("click"),qe=fe||(S==null?void 0:S.click)||(S==null?void 0:S.dblclick)||(S==null?void 0:S.mousedown),ut=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&fe&&Object.assign(ut,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const be=M?{...M}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!M&&fe&&Object.assign(be,{mouseleave:!1,blur:!1,mouseout:!1});const ee=T?{...T}:{escape:x||!1,scroll:A||!1,resize:z||!1,clickOutsideAnchor:qe||!1};D&&(Object.assign(ut,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(be,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ee,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),aC(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ve=W=>{ne.current&&(W&&Dt(!0),setTimeout(()=>{ne.current&&(U==null||U(W),Q===void 0&&La(W))},10))};m.useEffect(()=>{if(Q===void 0)return()=>null;Q&&Dt(!0);const W=setTimeout(()=>{La(Q)},10);return()=>{clearTimeout(W)}},[Q]),m.useEffect(()=>{if(Ye!==Vi.current)if(mi(na),Vi.current=Ye,Ye)Z==null||Z();else{const W=(le=>{const pe=le.match(/^([\d.]+)(ms|s)$/);if(!pe)return 0;const[,j,L]=pe;return Number(j)*(L==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));na.current=setTimeout(()=>{Dt(!1),Hi(null),R==null||R()},W+25)}},[Ye]);const _i=W=>{ei(le=>ep(le,W)?le:W)},xi=(W=f)=>{mi(jt),ht?ve(!0):jt.current=setTimeout(()=>{ve(!0)},W)},ra=(W=b)=>{mi(Xt),Xt.current=setTimeout(()=>{wt.current||ve(!1)},W)},nn=W=>{var le;if(!W)return;const pe=(le=W.currentTarget)!==null&&le!==void 0?le:W.target;if(!(pe!=null&&pe.isConnected))return me(null),void ti({current:null});f?xi():ve(!0),me(pe),ti({current:pe}),mi(Xt)},oa=()=>{_?ra(b||100):b?ra():ve(!1),mi(jt)},zi=({x:W,y:le})=>{var pe;const j={getBoundingClientRect:()=>({x:W,y:le,width:0,height:0,top:le,left:W,right:W,bottom:le})};c0({place:(pe=Ce==null?void 0:Ce.place)!==null&&pe!==void 0?pe:l,offset:d,elementReference:j,tooltipReference:Ie.current,tooltipArrowReference:Yt.current,strategy:g,middlewares:p,border:ze}).then(L=>{_i(L)})},sa=W=>{if(!W)return;const le=W,pe={x:le.clientX,y:le.clientY};zi(pe),qi.current=pe},la=W=>{var le;if(!Ye)return;const pe=W.target;pe.isConnected&&(!((le=Ie.current)===null||le===void 0)&&le.contains(pe)||[document.querySelector(`[id='${r}']`),...se].some(j=>j==null?void 0:j.contains(pe))||(ve(!1),mi(jt)))},ca=u0(nn,50,!0),Xe=u0(oa,50,!0),Ut=W=>{Xe.cancel(),ca(W)},oe=()=>{ca.cancel(),Xe()},Ae=m.useCallback(()=>{var W,le;const pe=(W=Ce==null?void 0:Ce.position)!==null&&W!==void 0?W:O;pe?zi(pe):w?qi.current&&zi(qi.current):B!=null&&B.isConnected&&c0({place:(le=Ce==null?void 0:Ce.place)!==null&&le!==void 0?le:l,offset:d,elementReference:B,tooltipReference:Ie.current,tooltipArrowReference:Yt.current,strategy:g,middlewares:p,border:ze}).then(j=>{ne.current&&_i(j)})},[Ye,B,ce,F,l,Ce==null?void 0:Ce.place,d,g,O,Ce==null?void 0:Ce.position,w]);m.useEffect(()=>{var W,le;const pe=new Set(gt);se.forEach(re=>{pe.add({current:re})});const j=document.querySelector(`[id='${r}']`);j&&pe.add({current:j});const L=()=>{ve(!1)},P=m0(B),C=m0(Ie.current);ee.scroll&&(window.addEventListener("scroll",L),P==null||P.addEventListener("scroll",L),C==null||C.addEventListener("scroll",L));let V=null;ee.resize?window.addEventListener("resize",L):B&&Ie.current&&(V=$5(B,Ie.current,Ae,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const J=re=>{re.key==="Escape"&&ve(!1)};ee.escape&&window.addEventListener("keydown",J),ee.clickOutsideAnchor&&window.addEventListener("click",la);const $=[],q=re=>{Ye&&(re==null?void 0:re.target)===B||nn(re)},he=re=>{Ye&&(re==null?void 0:re.target)===B&&oa()},te=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ie=["click","dblclick","mousedown","mouseup"];Object.entries(ut).forEach(([re,ke])=>{ke&&(te.includes(re)?$.push({event:re,listener:Ut}):ie.includes(re)&&$.push({event:re,listener:q}))}),Object.entries(be).forEach(([re,ke])=>{ke&&(te.includes(re)?$.push({event:re,listener:oe}):ie.includes(re)&&$.push({event:re,listener:he}))}),w&&$.push({event:"pointermove",listener:sa});const Me=()=>{wt.current=!0},Le=()=>{wt.current=!1,oa()};return _&&!qe&&((W=Ie.current)===null||W===void 0||W.addEventListener("mouseenter",Me),(le=Ie.current)===null||le===void 0||le.addEventListener("mouseleave",Le)),$.forEach(({event:re,listener:ke})=>{pe.forEach(rt=>{var Ne;(Ne=rt.current)===null||Ne===void 0||Ne.addEventListener(re,ke)})}),()=>{var re,ke;ee.scroll&&(window.removeEventListener("scroll",L),P==null||P.removeEventListener("scroll",L),C==null||C.removeEventListener("scroll",L)),ee.resize?window.removeEventListener("resize",L):V==null||V(),ee.clickOutsideAnchor&&window.removeEventListener("click",la),ee.escape&&window.removeEventListener("keydown",J),_&&!qe&&((re=Ie.current)===null||re===void 0||re.removeEventListener("mouseenter",Me),(ke=Ie.current)===null||ke===void 0||ke.removeEventListener("mouseleave",Le)),$.forEach(({event:rt,listener:Ne})=>{pe.forEach(rn=>{var pi;(pi=rn.current)===null||pi===void 0||pi.removeEventListener(rt,Ne)})})}},[B,Ae,ht,gt,se,S,M,T,fe,f,b]),m.useEffect(()=>{var W,le;let pe=(le=(W=Ce==null?void 0:Ce.anchorSelect)!==null&&W!==void 0?W:s)!==null&&le!==void 0?le:"";!pe&&t&&(pe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const j=new MutationObserver(L=>{const P=[],C=[];L.forEach(V=>{if(V.type==="attributes"&&V.attributeName==="data-tooltip-id"&&(V.target.getAttribute("data-tooltip-id")===t?P.push(V.target):V.oldValue===t&&C.push(V.target)),V.type==="childList"){if(B){const J=[...V.removedNodes].filter($=>$.nodeType===1);if(pe)try{C.push(...J.filter($=>$.matches(pe))),C.push(...J.flatMap($=>[...$.querySelectorAll(pe)]))}catch{}J.some($=>{var q;return!!(!((q=$==null?void 0:$.contains)===null||q===void 0)&&q.call($,B))&&(Dt(!1),ve(!1),me(null),mi(jt),mi(Xt),!0)})}if(pe)try{const J=[...V.addedNodes].filter($=>$.nodeType===1);P.push(...J.filter($=>$.matches(pe))),P.push(...J.flatMap($=>[...$.querySelectorAll(pe)]))}catch{}}}),(P.length||C.length)&&_e(V=>[...V.filter(J=>!C.includes(J)),...P])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{j.disconnect()}},[t,s,Ce==null?void 0:Ce.anchorSelect,B]),m.useEffect(()=>{Ae()},[Ae]),m.useEffect(()=>{if(!(ae!=null&&ae.current))return()=>null;const W=new ResizeObserver(()=>{setTimeout(()=>Ae())});return W.observe(ae.current),()=>{W.disconnect()}},[ce,ae==null?void 0:ae.current]),m.useEffect(()=>{var W;const le=document.querySelector(`[id='${r}']`),pe=[...se,le];B&&pe.includes(B)||me((W=se[0])!==null&&W!==void 0?W:le)},[r,se,B]),m.useEffect(()=>(I&&ve(!0),()=>{mi(jt),mi(Xt)}),[]),m.useEffect(()=>{var W;let le=(W=Ce==null?void 0:Ce.anchorSelect)!==null&&W!==void 0?W:s;if(!le&&t&&(le=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),le)try{const pe=Array.from(document.querySelectorAll(le));_e(pe)}catch{_e([])}},[t,s,Ce==null?void 0:Ce.anchorSelect]),m.useEffect(()=>{jt.current&&(mi(jt),xi(f))},[f]);const Lt=(Ve=Ce==null?void 0:Ce.content)!==null&&Ve!==void 0?Ve:ce,Ai=Ye&&Object.keys(Pe.tooltipStyles).length>0;return m.useImperativeHandle(e,()=>({open:W=>{if(W!=null&&W.anchorSelect)try{document.querySelector(W.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${W.anchorSelect}" is not a valid CSS selector`)}Hi(W??null),W!=null&&W.delay?xi(W.delay):ve(!0)},close:W=>{W!=null&&W.delay?ra(W.delay):ve(!1)},activeAnchor:B,place:Pe.place,isOpen:!!(ht&&!y&&Lt&&Ai)})),ht&&!y&&Lt?c.createElement(v,{id:t,role:dt,className:Xu("react-tooltip",Bn.tooltip,bd.tooltip,bd[n],i,`react-tooltip__place-${Pe.place}`,Bn[Ai?"show":"closing"],Ai?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&Bn.fixed,_&&Bn.clickable),onTransitionEnd:W=>{mi(na),Ye||W.propertyName!=="opacity"||(Dt(!1),Hi(null),R==null||R())},style:{...F,...Pe.tooltipStyles,opacity:ct!==void 0&&Ai?ct:void 0},ref:Ie},Lt,c.createElement(v,{className:Xu("react-tooltip-arrow",Bn.arrow,bd.arrow,a,k&&Bn.noArrow),style:{...Pe.tooltipArrowStyles,background:He?`linear-gradient(to right bottom, transparent 50%, ${He} 50%)`:void 0},ref:Yt})):null},lC=({content:e})=>c.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),lt=c.forwardRef(({id:e,anchorId:t,anchorSelect:i,content:a,html:n,render:r,className:s,classNameArrow:l,variant:d="dark",place:u="top",offset:h=10,wrapper:g="div",children:p=null,events:v=["hover"],openOnClick:f=!1,positionStrategy:b="absolute",middlewares:w,delayShow:y=0,delayHide:k=0,float:_=!1,hidden:x=!1,noArrow:A=!1,clickable:z=!1,closeOnEsc:S=!1,closeOnScroll:M=!1,closeOnResize:T=!1,openEvents:D,closeEvents:F,globalCloseEvents:O,imperativeModeOnly:Z=!1,style:R,position:ce,isOpen:ae,defaultIsOpen:Q=!1,disableStyleInjection:I=!1,border:U,opacity:B,arrowColor:me,setIsOpen:ze,afterShow:ct,afterHide:He,role:dt="tooltip"},Ve)=>{const[Ie,Yt]=m.useState(a),[jt,Xt]=m.useState(n),[na,Pe]=m.useState(u),[ei,Ye]=m.useState(d),[La,ht]=m.useState(h),[Dt,Ce]=m.useState(y),[Hi,Vi]=m.useState(k),[qi,gt]=m.useState(_),[ti,wt]=m.useState(x),[se,_e]=m.useState(g),[ne,fe]=m.useState(v),[qe,ut]=m.useState(b),[be,ee]=m.useState(null),[ve,_i]=m.useState(null),xi=m.useRef(I),{anchorRefs:ra,activeAnchor:nn}=Oy(e),oa=Xe=>Xe==null?void 0:Xe.getAttributeNames().reduce((Ut,oe)=>{var Ae;return oe.startsWith("data-tooltip-")&&(Ut[oe.replace(/^data-tooltip-/,"")]=(Ae=Xe==null?void 0:Xe.getAttribute(oe))!==null&&Ae!==void 0?Ae:null),Ut},{}),zi=Xe=>{const Ut={place:oe=>{var Ae;Pe((Ae=oe)!==null&&Ae!==void 0?Ae:u)},content:oe=>{Yt(oe??a)},html:oe=>{Xt(oe??n)},variant:oe=>{var Ae;Ye((Ae=oe)!==null&&Ae!==void 0?Ae:d)},offset:oe=>{ht(oe===null?h:Number(oe))},wrapper:oe=>{var Ae;_e((Ae=oe)!==null&&Ae!==void 0?Ae:g)},events:oe=>{const Ae=oe==null?void 0:oe.split(" ");fe(Ae??v)},"position-strategy":oe=>{var Ae;ut((Ae=oe)!==null&&Ae!==void 0?Ae:b)},"delay-show":oe=>{Ce(oe===null?y:Number(oe))},"delay-hide":oe=>{Vi(oe===null?k:Number(oe))},float:oe=>{gt(oe===null?_:oe==="true")},hidden:oe=>{wt(oe===null?x:oe==="true")},"class-name":oe=>{ee(oe)}};Object.values(Ut).forEach(oe=>oe(null)),Object.entries(Xe).forEach(([oe,Ae])=>{var Lt;(Lt=Ut[oe])===null||Lt===void 0||Lt.call(Ut,Ae)})};m.useEffect(()=>{Yt(a)},[a]),m.useEffect(()=>{Xt(n)},[n]),m.useEffect(()=>{Pe(u)},[u]),m.useEffect(()=>{Ye(d)},[d]),m.useEffect(()=>{ht(h)},[h]),m.useEffect(()=>{Ce(y)},[y]),m.useEffect(()=>{Vi(k)},[k]),m.useEffect(()=>{gt(_)},[_]),m.useEffect(()=>{wt(x)},[x]),m.useEffect(()=>{ut(b)},[b]),m.useEffect(()=>{xi.current!==I&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[I]),m.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:I==="core",disableBase:I}}))},[]),m.useEffect(()=>{var Xe;const Ut=new Set(ra);let oe=i;if(!oe&&e&&(oe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),oe)try{document.querySelectorAll(oe).forEach(le=>{Ut.add({current:le})})}catch{console.warn(`[react-tooltip] "${oe}" is not a valid CSS selector`)}const Ae=document.querySelector(`[id='${t}']`);if(Ae&&Ut.add({current:Ae}),!Ut.size)return()=>null;const Lt=(Xe=ve??Ae)!==null&&Xe!==void 0?Xe:nn.current,Ai=new MutationObserver(le=>{le.forEach(pe=>{var j;if(!Lt||pe.type!=="attributes"||!(!((j=pe.attributeName)===null||j===void 0)&&j.startsWith("data-tooltip-")))return;const L=oa(Lt);zi(L)})}),W={attributes:!0,childList:!1,subtree:!1};if(Lt){const le=oa(Lt);zi(le),Ai.observe(Lt,W)}return()=>{Ai.disconnect()}},[ra,nn,ve,t,i]),m.useEffect(()=>{R!=null&&R.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),U&&!d0("border",`${U}`)&&console.warn(`[react-tooltip] "${U}" is not a valid \`border\`.`),R!=null&&R.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),B&&!d0("opacity",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`)},[]);let sa=p;const la=m.useRef(null);if(r){const Xe=r({content:(ve==null?void 0:ve.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:ve});sa=Xe?c.createElement("div",{ref:la,className:"react-tooltip-content-wrapper"},Xe):null}else Ie&&(sa=Ie);jt&&(sa=c.createElement(lC,{content:jt}));const ca={forwardRef:Ve,id:e,anchorId:t,anchorSelect:i,className:Xu(s,be),classNameArrow:l,content:sa,contentWrapperRef:la,place:na,variant:ei,offset:La,wrapper:se,events:ne,openOnClick:f,positionStrategy:qe,middlewares:w,delayShow:Dt,delayHide:Hi,float:qi,hidden:ti,noArrow:A,clickable:z,closeOnEsc:S,closeOnScroll:M,closeOnResize:T,openEvents:D,closeEvents:F,globalCloseEvents:O,imperativeModeOnly:Z,style:R,position:ce,isOpen:ae,defaultIsOpen:Q,border:U,opacity:B,arrowColor:me,setIsOpen:ze,afterShow:ct,afterHide:He,activeAnchor:ve,setActiveAnchor:Xe=>_i(Xe),role:dt};return c.createElement(sC,{...ca})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||l0({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||l0({css:`
1707
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const cC=["azure","textgenwebui","generic-openai","bedrock"],h0={openai:[],gemini:[],anthropic:[],azure:[],lmstudio:[],localai:[],ollama:[],togetherai:[],fireworksai:[],"nvidia-nim":[],groq:[],cohere:["command-r","command-r-plus","command","command-light","command-nightly","command-light-nightly"],textgenwebui:[],"generic-openai":[],bedrock:[],xai:["grok-beta"]};function dC(e){return e.reduce((t,i)=>(t[i.organization]=t[i.organization]||[],t[i.organization].push(i),t),{})}const g0=["togetherai","fireworksai","openai","novita","openrouter","ppio","docker-model-runner","sambanova"];function ID(e=null){const[t,i]=m.useState([]),[a,n]=m.useState([]),[r,s]=m.useState(!0);return m.useEffect(()=>{async function l(){if(!e)return;s(!0);const{models:d=[]}=await K.customModels(e);h0.hasOwnProperty(e)&&!g0.includes(e)?i(h0[e]):i([]),g0.includes(e)?n(dC(d)):n(d),s(!1)}l()},[e]),{defaultModels:t,customModels:a,loading:r}}const uC={getAll:async()=>await fetch(`${E}/model-routers`,{method:"GET",headers:N()}).then(e=>e.json()).then(e=>(e==null?void 0:e.routers)||[]).catch(e=>(console.error(e),[])),get:async e=>await fetch(`${E}/model-routers/${e}`,{method:"GET",headers:N()}).then(t=>t.json()).catch(t=>(console.error(t),{router:null,error:t.message})),create:async e=>await fetch(`${E}/model-routers/new`,{method:"POST",headers:N(),body:JSON.stringify(e)}).then(t=>t.json()).catch(t=>(console.error(t),{router:null,error:t.message})),update:async(e,t)=>await fetch(`${E}/model-routers/${e}`,{method:"PUT",headers:N(),body:JSON.stringify(t)}).then(i=>i.json()).catch(i=>(console.error(i),{router:null,error:i.message})),delete:async e=>await fetch(`${E}/model-routers/${e}`,{method:"DELETE",headers:N()}).then(t=>t.json()).catch(t=>(console.error(t),{success:!1,error:t.message})),createRule:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/new`,{method:"POST",headers:N(),body:JSON.stringify(t)}).then(i=>i.json()).catch(i=>(console.error(i),{rule:null,error:i.message})),updateRule:async(e,t,i)=>await fetch(`${E}/model-routers/${e}/rules/${t}`,{method:"PUT",headers:N(),body:JSON.stringify(i)}).then(a=>a.json()).catch(a=>(console.error(a),{rule:null,error:a.message})),deleteRule:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/${t}`,{method:"DELETE",headers:N()}).then(i=>i.json()).catch(i=>(console.error(i),{success:!1,error:i.message})),reorderRules:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/reorder`,{method:"PUT",headers:N(),body:JSON.stringify({ruleUpdates:t})}).then(i=>i.json()).catch(i=>(console.error(i),{success:!1,error:i.message}))};function Ry(){const{logo:e,setLogo:t,loginLogo:i,isCustomLogo:a}=m.useContext(K1);return{logo:e,setLogo:t,loginLogo:i,isCustomLogo:a}}const pC="/agent-static.png",mC="/community-hub.png",Hy=typeof{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!1,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}<"u"?{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!1,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}:{},Vy=m.createContext(Hy);function hC({children:e}){return o.jsx(Vy.Provider,{value:Hy,children:e})}function qy(){return m.useContext(Vy)}function pt(e){return qy()[e]??{enabled:!1,label:e,tier:"free"}}var X={},tp={exports:{}};(function(e,t){(function(i,a){var n="1.0.38",r="",s="?",l="function",d="undefined",u="object",h="string",g="major",p="model",v="name",f="type",b="vendor",w="version",y="architecture",k="console",_="mobile",x="tablet",A="smarttv",z="wearable",S="embedded",M=500,T="Amazon",D="Apple",F="ASUS",O="BlackBerry",Z="Browser",R="Chrome",ce="Edge",ae="Firefox",Q="Google",I="Huawei",U="LG",B="Microsoft",me="Motorola",ze="Opera",ct="Samsung",He="Sharp",dt="Sony",Ve="Xiaomi",Ie="Zebra",Yt="Facebook",jt="Chromium OS",Xt="Mac OS",na=function(se,_e){var ne={};for(var fe in se)_e[fe]&&_e[fe].length%2===0?ne[fe]=_e[fe].concat(se[fe]):ne[fe]=se[fe];return ne},Pe=function(se){for(var _e={},ne=0;ne<se.length;ne++)_e[se[ne].toUpperCase()]=se[ne];return _e},ei=function(se,_e){return typeof se===h?Ye(_e).indexOf(Ye(se))!==-1:!1},Ye=function(se){return se.toLowerCase()},La=function(se){return typeof se===h?se.replace(/[^\d\.]/g,r).split(".")[0]:a},ht=function(se,_e){if(typeof se===h)return se=se.replace(/^\s\s*/,r),typeof _e===d?se:se.substring(0,M)},Dt=function(se,_e){for(var ne=0,fe,qe,ut,be,ee,ve;ne<_e.length&&!ee;){var _i=_e[ne],xi=_e[ne+1];for(fe=qe=0;fe<_i.length&&!ee&&_i[fe];)if(ee=_i[fe++].exec(se),ee)for(ut=0;ut<xi.length;ut++)ve=ee[++qe],be=xi[ut],typeof be===u&&be.length>0?be.length===2?typeof be[1]==l?this[be[0]]=be[1].call(this,ve):this[be[0]]=be[1]:be.length===3?typeof be[1]===l&&!(be[1].exec&&be[1].test)?this[be[0]]=ve?be[1].call(this,ve,be[2]):a:this[be[0]]=ve?ve.replace(be[1],be[2]):a:be.length===4&&(this[be[0]]=ve?be[3].call(this,ve.replace(be[1],be[2])):a):this[be]=ve||a;ne+=2}},Ce=function(se,_e){for(var ne in _e)if(typeof _e[ne]===u&&_e[ne].length>0){for(var fe=0;fe<_e[ne].length;fe++)if(ei(_e[ne][fe],se))return ne===s?a:ne}else if(ei(_e[ne],se))return ne===s?a:ne;return se},Hi={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Vi={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},qi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,w],[/opios[\/ ]+([\w\.]+)/i],[w,[v,ze+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[v,ze+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[v,ze]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[v,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,w],[/\bddg\/([\w\.]+)/i],[w,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[v,"UC"+Z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[v,"Smart Lenovo "+Z]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+Z],w],[/\bfocus\/([\w\.]+)/i],[w,[v,ae+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[v,ze+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[v,ze+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[v,"MIUI "+Z]],[/fxios\/([-\w\.]+)/i],[w,[v,ae]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+Z]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+Z],w],[/samsungbrowser\/([\w\.]+)/i],[w,[v,ct+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[v,w],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,Yt],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[v,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,R+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[v,"Android "+Z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[w,Ce,Hi]],[/(webkit|khtml)\/([\w\.]+)/i],[v,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[v,ae+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[v,w],[/(cobalt)\/([\w\.]+)/i],[v,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Ye]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,r,Ye]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Ye]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[b,ct],[f,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[b,ct],[f,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[b,D],[f,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[b,D],[f,x]],[/(macintosh);/i],[p,[b,D]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[b,He],[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[b,I],[f,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[b,I],[f,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[b,Ve],[f,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[b,Ve],[f,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[b,"OPPO"],[f,_]],[/\b(opd2\d{3}a?) bui/i],[p,[b,"OPPO"],[f,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[b,"Vivo"],[f,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[b,"Realme"],[f,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[b,me],[f,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[b,me],[f,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[b,U],[f,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[b,U],[f,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[b,"Lenovo"],[f,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[b,"Nokia"],[f,_]],[/(pixel c)\b/i],[p,[b,Q],[f,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[b,Q],[f,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[b,dt],[f,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[b,dt],[f,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[b,"OnePlus"],[f,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[b,T],[f,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[b,T],[f,_]],[/(playbook);[-\w\),; ]+(rim)/i],[p,b,[f,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[b,O],[f,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[b,F],[f,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[b,F],[f,_]],[/(nexus 9)/i],[p,[b,"HTC"],[f,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[p,/_/g," "],[f,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[b,"Acer"],[f,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[b,"Meizu"],[f,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[b,"Ulefone"],[f,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,p,[f,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,p,[f,x]],[/(surface duo)/i],[p,[b,B],[f,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[b,"Fairphone"],[f,_]],[/(u304aa)/i],[p,[b,"AT&T"],[f,_]],[/\bsie-(\w*)/i],[p,[b,"Siemens"],[f,_]],[/\b(rct\w+) b/i],[p,[b,"RCA"],[f,x]],[/\b(venue[\d ]{2,7}) b/i],[p,[b,"Dell"],[f,x]],[/\b(q(?:mv|ta)\w+) b/i],[p,[b,"Verizon"],[f,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[b,"Barnes & Noble"],[f,x]],[/\b(tm\d{3}\w+) b/i],[p,[b,"NuVision"],[f,x]],[/\b(k88) b/i],[p,[b,"ZTE"],[f,x]],[/\b(nx\d{3}j) b/i],[p,[b,"ZTE"],[f,_]],[/\b(gen\d{3}) b.+49h/i],[p,[b,"Swiss"],[f,_]],[/\b(zur\d{3}) b/i],[p,[b,"Swiss"],[f,x]],[/\b((zeki)?tb.*\b) b/i],[p,[b,"Zeki"],[f,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],p,[f,x]],[/\b(ns-?\w{0,9}) b/i],[p,[b,"Insignia"],[f,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[b,"NextBook"],[f,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],p,[f,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],p,[f,_]],[/\b(ph-1) /i],[p,[b,"Essential"],[f,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[b,"Envizen"],[f,x]],[/\b(trio[-\w\. ]+) b/i],[p,[b,"MachSpeed"],[f,x]],[/\btu_(1491) b/i],[p,[b,"Rotor"],[f,x]],[/(shield[\w ]+) b/i],[p,[b,"Nvidia"],[f,x]],[/(sprint) (\w+)/i],[b,p,[f,_]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[b,B],[f,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[b,Ie],[f,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[b,Ie],[f,_]],[/smart-tv.+(samsung)/i],[b,[f,A]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[b,ct],[f,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,U],[f,A]],[/(apple) ?tv/i],[b,[p,D+" TV"],[f,A]],[/crkey/i],[[p,R+"cast"],[b,Q],[f,A]],[/droid.+aft(\w+)( bui|\))/i],[p,[b,T],[f,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[b,He],[f,A]],[/(bravia[\w ]+)( bui|\))/i],[p,[b,dt],[f,A]],[/(mitv-\w{5}) bui/i],[p,[b,Ve],[f,A]],[/Hbbtv.*(technisat) (.*);/i],[b,p,[f,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,ht],[p,ht],[f,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,p,[f,k]],[/droid.+; (shield) bui/i],[p,[b,"Nvidia"],[f,k]],[/(playstation [345portablevi]+)/i],[p,[b,dt],[f,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[b,B],[f,k]],[/((pebble))app/i],[b,p,[f,z]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[b,D],[f,z]],[/droid.+; (glass) \d/i],[p,[b,Q],[f,z]],[/droid.+; (wt63?0{2,3})\)/i],[p,[b,Ie],[f,z]],[/(quest( \d| pro)?)/i],[p,[b,Yt],[f,z]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,S]],[/(aeobc)\b/i],[p,[b,T],[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[f,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,_]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[v,ce+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[v,[w,Ce,Vi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Ce,Vi],[v,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Xt],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,w],[/\(bb(10);/i],[w,[v,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[v,ae+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[v,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,jt],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,w],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,w]]},gt=function(se,_e){if(typeof se===u&&(_e=se,se=a),!(this instanceof gt))return new gt(se,_e).getResult();var ne=typeof i!==d&&i.navigator?i.navigator:a,fe=se||(ne&&ne.userAgent?ne.userAgent:r),qe=ne&&ne.userAgentData?ne.userAgentData:a,ut=_e?na(qi,_e):qi,be=ne&&ne.userAgent==fe;return this.getBrowser=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.browser),ee[g]=La(ee[w]),be&&ne&&ne.brave&&typeof ne.brave.isBrave==l&&(ee[v]="Brave"),ee},this.getCPU=function(){var ee={};return ee[y]=a,Dt.call(ee,fe,ut.cpu),ee},this.getDevice=function(){var ee={};return ee[b]=a,ee[p]=a,ee[f]=a,Dt.call(ee,fe,ut.device),be&&!ee[f]&&qe&&qe.mobile&&(ee[f]=_),be&&ee[p]=="Macintosh"&&ne&&typeof ne.standalone!==d&&ne.maxTouchPoints&&ne.maxTouchPoints>2&&(ee[p]="iPad",ee[f]=x),ee},this.getEngine=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.engine),ee},this.getOS=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.os),be&&!ee[v]&&qe&&qe.platform&&qe.platform!="Unknown"&&(ee[v]=qe.platform.replace(/chrome os/i,jt).replace(/macos/i,Xt)),ee},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return fe},this.setUA=function(ee){return fe=typeof ee===h&&ee.length>M?ht(ee,M):ee,this},this.setUA(fe),this};gt.VERSION=n,gt.BROWSER=Pe([v,w,g]),gt.CPU=Pe([y]),gt.DEVICE=Pe([p,b,f,k,_,A,x,z,S]),gt.ENGINE=gt.OS=Pe([v,w]),e.exports&&(t=e.exports=gt),t.UAParser=gt;var ti=typeof i!==d&&(i.jQuery||i.Zepto);if(ti&&!ti.ua){var wt=new gt;ti.ua=wt.getResult(),ti.ua.get=function(){return wt.getUA()},ti.ua.set=function(se){wt.setUA(se);var _e=wt.getResult();for(var ne in _e)ti.ua[ne]=_e[ne]}}})(typeof window=="object"?window:Ti)})(tp,tp.exports);var gC=tp.exports;Object.defineProperty(X,"__esModule",{value:!0});function fC(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Tt=m,Re=fC(Tt),Fy=gC,en=new Fy,Nt=en.getBrowser(),bC=en.getCPU(),ui=en.getDevice(),Pm=en.getEngine(),tn=en.getOS(),us=en.getUA(),Uy=function(t){return en.setUA(t)},ps=function(t){if(!t){console.error("No userAgent string was provided");return}var i=new Fy(t);return{UA:i,browser:i.getBrowser(),cpu:i.getCPU(),device:i.getDevice(),engine:i.getEngine(),os:i.getOS(),ua:i.getUA(),setUserAgent:function(n){return i.setUA(n)}}},By=Object.freeze({ClientUAInstance:en,browser:Nt,cpu:bC,device:ui,engine:Pm,os:tn,ua:us,setUa:Uy,parseUserAgent:ps});function f0(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,a)}return i}function vC(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(i),!0).forEach(function(a){wC(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f0(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function co(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?co=function(t){return typeof t}:co=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b0(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function yC(e,t,i){return t&&b0(e.prototype,t),i&&b0(e,i),e}function wC(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},ip.apply(this,arguments)}function _C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&np(e,t)}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ap(e)}function np(e,t){return np=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},np(e,t)}function xC(e,t){if(e==null)return{};var i={},a=Object.keys(e),n,r;for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}function wi(e,t){if(e==null)return{};var i=xC(e,t),a,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)a=r[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}function tl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zC(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tl(e)}function AC(e,t){return jC(e)||LC(e,t)||SC(e,t)||MC()}function jC(e){if(Array.isArray(e))return e}function LC(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a=[],n=!0,r=!1,s,l;try{for(i=i.call(e);!(n=(s=i.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(d){r=!0,l=d}finally{try{!n&&i.return!=null&&i.return()}finally{if(r)throw l}}return a}}function SC(e,t){if(e){if(typeof e=="string")return v0(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return v0(e,t)}}function v0(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function MC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1706
+ */const eC="react-tooltip-core-styles",tC="react-tooltip-base-styles",s0={core:!1,base:!1};function l0({css:e,id:t=tC,type:i="base",ref:a}){var n,r;if(!e||typeof document>"u"||s0[i]||i==="core"&&typeof process<"u"&&(!((n=process==null?void 0:{GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",PYTHON_BASIC_REPL:"1",LESSOPEN:"| /usr/bin/lesspipe %s",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_devDependencies__types_react_router_dom:"^5.3.3",npm_package_dependencies_cronstrue:"^2.50.0",USER:"mike-diker",npm_config_user_agent:"yarn/1.22.22 npm/? node/v24.10.0 linux x64",npm_package_devDependencies__esbuild_plugins_node_globals_polyfill:"^0.1.1",npm_package_dependencies_react_toastify:"^9.1.3",npm_package_dependencies_js_levenshtein:"^1.1.6",npm_config_version_commit_hooks:"true",FONTCONFIG_PATH:"/etc/fonts",GIO_MODULE_DIR:"/home/mike-diker/snap/code/common/.cache/gio-modules",npm_package_devDependencies_buffer:"^6.0.3",npm_package_dependencies_text_case:"^1.0.9",npm_package_dependencies_react_device_detect:"^2.2.2",npm_package_dependencies__lobehub_icons:"^4.0.3",npm_config_bin_links:"true",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass.sh",GTK_EXE_PREFIX_VSCODE_SNAP_ORIG:"",npm_node_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",npm_package_devDependencies_vite:"^4.3.0",npm_config_init_version:"1.0.0",GDK_BACKEND_VSCODE_SNAP_ORIG:"",CLUTTER_DISABLE_MIPMAPPED_TEXT:"1",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/mike-diker",CHROME_DESKTOP:"code.desktop",LOCPATH_VSCODE_SNAP_ORIG:"",npm_package_devDependencies__eslint_js:"^9.39.2",TERM_PROGRAM_VERSION:"1.121.0",DESKTOP_SESSION:"ubuntu",GTK_PATH:"/snap/code/241/usr/lib/x86_64-linux-gnu/gtk-3.0",NVM_BIN:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin",npm_package_json:"/home/mike-diker/git-repos/totem-llm/package.json",npm_package_devDependencies_eslint_config_prettier:"^9.0.0",NVM_INC:"/home/mike-diker/.nvm/versions/node/v24.10.0/include/node",XDG_DATA_HOME_VSCODE_SNAP_ORIG:"",GTK_IM_MODULE_FILE:"/home/mike-diker/snap/code/common/.cache/immodules/immodules.cache",GIO_LAUNCHED_DESKTOP_FILE:"/var/lib/snapd/desktop/applications/code_code.desktop",npm_package_engines_node:">=18",npm_config_init_license:"MIT",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG:"",VSCODE_GIT_ASKPASS_MAIN:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",YARN_WRAP_OUTPUT:"false",npm_package_devDependencies_flow_remove_types:"^2.217.1",npm_config_version_tag_prefix:"v",VSCODE_GIT_ASKPASS_NODE:"/snap/code/241/usr/share/code/code",MANAGERPID:"3558",npm_config_userconfig:"/home/mike-diker/.npmrc",npm_config_local_prefix:"/home/mike-diker/git-repos/totem-llm",npm_package_dependencies_react_i18next:"^14.1.1",SYSTEMD_EXEC_PID:"4202",VSCODE_PYTHON_AUTOACTIVATE_GUARD:"1",GSM_SKIP_SSH_AGENT_WORKAROUND:"true",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_dependencies_moment:"^2.30.1",COLORTERM:"truecolor",GIO_LAUNCHED_DESKTOP_FILE_PID:"5033",COLOR:"1",npm_package_devDependencies_tailwindcss:"^3.3.1",npm_package_dependencies_react_router_dom:"^6.3.0",npm_package_dependencies_react_error_boundary:"^6.0.0",npm_package_dependencies_i18next:"^23.11.3",NVM_DIR:"/home/mike-diker/.nvm",DEBUGINFOD_URLS:"https://debuginfod.ubuntu.com ",npm_package_devDependencies__types_react_dom:"^18.2.8",npm_package_dependencies_katex:"^0.6.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_dependencies_react_confetti_explosion:"^2.1.2",npm_package_scripts_dev:"cross-env NODE_ENV=development vite --debug --host=0.0.0.0",LOGNAME:"mike-diker",npm_package_devDependencies__vitejs_plugin_react:"^4.0.0-beta.0",npm_package_dependencies_react_tooltip:"^5.25.2",npm_package_type:"module",JOURNAL_STREAM:"9:33800",_:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/npm",npm_config_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_config_npm_version:"11.6.1",npm_package_devDependencies_autoprefixer:"^10.4.14",npm_package_dependencies_onnxruntime_web:"^1.18.0",npm_package_dependencies_i18next_browser_languagedetector:"^7.2.1",npm_package_private:"false",XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG:"/etc/xdg/xdg-ubuntu:/etc/xdg",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@x11.service/memory.pressure",XDG_SESSION_CLASS:"user",XDG_DATA_DIRS_VSCODE_SNAP_ORIG:"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_package_dependencies_react_speech_recognition:"^3.10.0",npm_package_dependencies_react_beautiful_dnd:"13.1.1",npm_package_scripts_lint:"eslint --fix src",npm_config_registry:"https://registry.yarnpkg.com",USERNAME:"mike-diker",TERM:"xterm-256color",npm_config_cache:"/home/mike-diker/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",FC_FONTATIONS:"1",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.3",npm_package_scripts_start:"vite --open",npm_config_ignore_scripts:"",WINDOWPATH:"2",npm_config_node_gyp:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_recharts:"^2.12.5",PATH:"/tmp/yarn--1780628840853-0.6162297143874302:/home/mike-diker/git-repos/totem-llm/frontend/node_modules/.bin:/home/mike-diker/snap/code/241/.local/share/yarn/link/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/git-repos/totem-llm/node_modules/.bin:/home/mike-diker/git-repos/node_modules/.bin:/home/mike-diker/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/debugCommand:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/copilotCli:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.cargo/bin:/home/mike-diker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin",NODE:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",SESSION_MANAGER:"local/mike-diker-Precision-7530:@/tmp/.ICE-unix/4176,unix/mike-diker-Precision-7530:/tmp/.ICE-unix/4176",GTK_EXE_PREFIX:"/snap/code/241/usr",INVOCATION_ID:"64c065948fa541279cfe1dc565c1037d",npm_package_name:"anything-llm-frontend",npm_package_dependencies_recharts_to_png:"^2.3.1",npm_package_dependencies_file_saver:"^2.0.5",XDG_MENU_PREFIX:"gnome-",XDG_RUNTIME_DIR:"/run/user/1000",GDK_BACKEND:"x11",npm_package_devDependencies_hermes_eslint:"^0.15.0",npm_package_devDependencies_flow_bin:"^0.217.0",DISPLAY:":1",LOCPATH:"/snap/code/241/usr/lib/locale",npm_package_devDependencies_eslint_plugin_ft_flow:"^3.0.0",npm_package_dependencies_react_highlight_words:"^0.21.0",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",PYTHONSTARTUP:"/home/mike-diker/.config/Code/User/workspaceStorage/e3f9de5e65c351ebaea57871eb56e5ba/ms-python.python/pythonrc.py",npm_package_devDependencies_eslint:"^9.39.2",npm_package_dependencies_react_dom:"^18.2.0",npm_package_dependencies__microsoft_fetch_event_source:"^2.0.1",GIO_MODULE_DIR_VSCODE_SNAP_ORIG:"",XDG_DATA_HOME:"/home/mike-diker/snap/code/241/.local/share",XMODIFIERS:"@im=ibus",XDG_SESSION_DESKTOP:"ubuntu",XAUTHORITY:"/run/user/1000/gdm/Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-9b67e3720d.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"vite build && node scripts/postbuild.js",npm_package_dependencies_lodash_debounce:"^4.0.8",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",GSETTINGS_SCHEMA_DIR:"/home/mike-diker/snap/code/241/.local/share/glib-2.0/schemas",npm_config_version_git_message:"v%s",SHELL:"/bin/bash",npm_package_version:"",npm_lifecycle_event:"build",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_package_devDependencies__types_react:"^18.2.23",npm_package_dependencies_pluralize:"^8.0.0",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_uuid:"^9.0.0",npm_package_dependencies_he:"^1.2.0",npm_package_scripts_build:"vite build && node scripts/postbuild.js",LESSCLOSE:"/usr/bin/lesspipe %s %s",GTK_PATH_VSCODE_SNAP_ORIG:"",FONTCONFIG_FILE:"/etc/fonts/fonts.conf",GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG:"",npm_package_dependencies_truncate:"^3.0.0",npm_package_dependencies_qrcode_react:"^4.2.0",npm_package_dependencies__phosphor_icons_react:"^2.1.7",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",GJS_DEBUG_OUTPUT:"stderr",npm_package_devDependencies_globals:"^16.5.0",npm_package_devDependencies_eslint_plugin_react:"^7.37.5",npm_package_dependencies_markdown_it:"^13.0.1",npm_package_license:"MIT",npm_config_strict_ssl:"true",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/mike-diker/.nvm/versions/node/v24.10.0/etc/npmrc",npm_config_init_module:"/home/mike-diker/.npm-init.js",npm_package_devDependencies_eslint_plugin_prettier:"^5.0.0",PWD:"/home/mike-diker/git-repos/totem-llm/frontend",npm_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/npm-cli.js",npm_package_dependencies_react_tag_input_component:"^2.0.2",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/home/mike-diker/snap/code/241/.local/share:/home/mike-diker/snap/code/241:/snap/code/241/usr/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_package_dependencies_dompurify:"^3.0.8",npm_command:"publish",npm_package_devDependencies_postcss:"^8.4.23",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies__tremor_react:"^3.15.1",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_devDependencies_rollup_plugin_visualizer:"^5.9.0",npm_package_scripts_preview:"vite preview",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",npm_package_dependencies_react_loading_skeleton:"^3.1.0",npm_package_dependencies__mintplex_labs_piper_tts_web:"^1.0.4",npm_package_scripts_lint_check:"eslint src",INIT_CWD:"/home/mike-diker/git-repos/totem-llm",EDITOR:"vi",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_highlight_js:"^11.9.0",NODE_ENV:"production"})===null||n===void 0)&&n.REACT_TOOLTIP_DISABLE_CORE_STYLES)||i!=="base"&&typeof process<"u"&&(!((r=process==null?void 0:{GJS_DEBUG_TOPICS:"JS ERROR;JS LOG",PYTHON_BASIC_REPL:"1",LESSOPEN:"| /usr/bin/lesspipe %s",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_devDependencies__types_react_router_dom:"^5.3.3",npm_package_dependencies_cronstrue:"^2.50.0",USER:"mike-diker",npm_config_user_agent:"yarn/1.22.22 npm/? node/v24.10.0 linux x64",npm_package_devDependencies__esbuild_plugins_node_globals_polyfill:"^0.1.1",npm_package_dependencies_react_toastify:"^9.1.3",npm_package_dependencies_js_levenshtein:"^1.1.6",npm_config_version_commit_hooks:"true",FONTCONFIG_PATH:"/etc/fonts",GIO_MODULE_DIR:"/home/mike-diker/snap/code/common/.cache/gio-modules",npm_package_devDependencies_buffer:"^6.0.3",npm_package_dependencies_text_case:"^1.0.9",npm_package_dependencies_react_device_detect:"^2.2.2",npm_package_dependencies__lobehub_icons:"^4.0.3",npm_config_bin_links:"true",XDG_SESSION_TYPE:"x11",GIT_ASKPASS:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass.sh",GTK_EXE_PREFIX_VSCODE_SNAP_ORIG:"",npm_node_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",npm_package_devDependencies_vite:"^4.3.0",npm_config_init_version:"1.0.0",GDK_BACKEND_VSCODE_SNAP_ORIG:"",CLUTTER_DISABLE_MIPMAPPED_TEXT:"1",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/mike-diker",CHROME_DESKTOP:"code.desktop",LOCPATH_VSCODE_SNAP_ORIG:"",npm_package_devDependencies__eslint_js:"^9.39.2",TERM_PROGRAM_VERSION:"1.121.0",DESKTOP_SESSION:"ubuntu",GTK_PATH:"/snap/code/241/usr/lib/x86_64-linux-gnu/gtk-3.0",NVM_BIN:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin",npm_package_json:"/home/mike-diker/git-repos/totem-llm/package.json",npm_package_devDependencies_eslint_config_prettier:"^9.0.0",NVM_INC:"/home/mike-diker/.nvm/versions/node/v24.10.0/include/node",XDG_DATA_HOME_VSCODE_SNAP_ORIG:"",GTK_IM_MODULE_FILE:"/home/mike-diker/snap/code/common/.cache/immodules/immodules.cache",GIO_LAUNCHED_DESKTOP_FILE:"/var/lib/snapd/desktop/applications/code_code.desktop",npm_package_engines_node:">=18",npm_config_init_license:"MIT",GNOME_SHELL_SESSION_MODE:"ubuntu",GTK_MODULES:"gail:atk-bridge",GSETTINGS_SCHEMA_DIR_VSCODE_SNAP_ORIG:"",VSCODE_GIT_ASKPASS_MAIN:"/snap/code/241/usr/share/code/resources/app/extensions/git/dist/askpass-main.js",YARN_WRAP_OUTPUT:"false",npm_package_devDependencies_flow_remove_types:"^2.217.1",npm_config_version_tag_prefix:"v",VSCODE_GIT_ASKPASS_NODE:"/snap/code/241/usr/share/code/code",MANAGERPID:"3558",npm_config_userconfig:"/home/mike-diker/.npmrc",npm_config_local_prefix:"/home/mike-diker/git-repos/totem-llm",npm_package_dependencies_react_i18next:"^14.1.1",SYSTEMD_EXEC_PID:"4202",VSCODE_PYTHON_AUTOACTIVATE_GUARD:"1",GSM_SKIP_SSH_AGENT_WORKAROUND:"true",DBUS_SESSION_BUS_ADDRESS:"unix:path=/run/user/1000/bus",npm_package_devDependencies_eslint_plugin_react_hooks:"^7.0.1",npm_package_dependencies_moment:"^2.30.1",COLORTERM:"truecolor",GIO_LAUNCHED_DESKTOP_FILE_PID:"5033",COLOR:"1",npm_package_devDependencies_tailwindcss:"^3.3.1",npm_package_dependencies_react_router_dom:"^6.3.0",npm_package_dependencies_react_error_boundary:"^6.0.0",npm_package_dependencies_i18next:"^23.11.3",NVM_DIR:"/home/mike-diker/.nvm",DEBUGINFOD_URLS:"https://debuginfod.ubuntu.com ",npm_package_devDependencies__types_react_dom:"^18.2.8",npm_package_dependencies_katex:"^0.6.0",npm_package_devDependencies_prettier:"^3.0.3",npm_package_dependencies_react_confetti_explosion:"^2.1.2",npm_package_scripts_dev:"cross-env NODE_ENV=development vite --debug --host=0.0.0.0",LOGNAME:"mike-diker",npm_package_devDependencies__vitejs_plugin_react:"^4.0.0-beta.0",npm_package_dependencies_react_tooltip:"^5.25.2",npm_package_type:"module",JOURNAL_STREAM:"9:33800",_:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/npm",npm_config_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_config_npm_version:"11.6.1",npm_package_devDependencies_autoprefixer:"^10.4.14",npm_package_dependencies_onnxruntime_web:"^1.18.0",npm_package_dependencies_i18next_browser_languagedetector:"^7.2.1",npm_package_private:"false",XDG_CONFIG_DIRS_VSCODE_SNAP_ORIG:"/etc/xdg/xdg-ubuntu:/etc/xdg",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@x11.service/memory.pressure",XDG_SESSION_CLASS:"user",XDG_DATA_DIRS_VSCODE_SNAP_ORIG:"/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_package_dependencies_react_speech_recognition:"^3.10.0",npm_package_dependencies_react_beautiful_dnd:"13.1.1",npm_package_scripts_lint:"eslint --fix src",npm_config_registry:"https://registry.yarnpkg.com",USERNAME:"mike-diker",TERM:"xterm-256color",npm_config_cache:"/home/mike-diker/.npm",GNOME_DESKTOP_SESSION_ID:"this-is-deprecated",FC_FONTATIONS:"1",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.3",npm_package_scripts_start:"vite --open",npm_config_ignore_scripts:"",WINDOWPATH:"2",npm_config_node_gyp:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_dependencies_recharts:"^2.12.5",PATH:"/tmp/yarn--1780628840853-0.6162297143874302:/home/mike-diker/git-repos/totem-llm/frontend/node_modules/.bin:/home/mike-diker/snap/code/241/.local/share/yarn/link/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node_modules/npm/bin/node-gyp-bin:/home/mike-diker/git-repos/totem-llm/node_modules/.bin:/home/mike-diker/git-repos/node_modules/.bin:/home/mike-diker/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/debugCommand:/home/mike-diker/.config/Code/User/globalStorage/github.copilot-chat/copilotCli:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.nvm/versions/node/v24.10.0/bin:/home/mike-diker/.local/share/solana/install/active_release/bin:/home/mike-diker/.cargo/bin:/home/mike-diker/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin:/home/mike-diker/.local/bin",NODE:"/home/mike-diker/.nvm/versions/node/v24.10.0/bin/node",SESSION_MANAGER:"local/mike-diker-Precision-7530:@/tmp/.ICE-unix/4176,unix/mike-diker-Precision-7530:/tmp/.ICE-unix/4176",GTK_EXE_PREFIX:"/snap/code/241/usr",INVOCATION_ID:"64c065948fa541279cfe1dc565c1037d",npm_package_name:"anything-llm-frontend",npm_package_dependencies_recharts_to_png:"^2.3.1",npm_package_dependencies_file_saver:"^2.0.5",XDG_MENU_PREFIX:"gnome-",XDG_RUNTIME_DIR:"/run/user/1000",GDK_BACKEND:"x11",npm_package_devDependencies_hermes_eslint:"^0.15.0",npm_package_devDependencies_flow_bin:"^0.217.0",DISPLAY:":1",LOCPATH:"/snap/code/241/usr/lib/locale",npm_package_devDependencies_eslint_plugin_ft_flow:"^3.0.0",npm_package_dependencies_react_highlight_words:"^0.21.0",LANG:"en_US.UTF-8",XDG_CURRENT_DESKTOP:"ubuntu:GNOME",PYTHONSTARTUP:"/home/mike-diker/.config/Code/User/workspaceStorage/e3f9de5e65c351ebaea57871eb56e5ba/ms-python.python/pythonrc.py",npm_package_devDependencies_eslint:"^9.39.2",npm_package_dependencies_react_dom:"^18.2.0",npm_package_dependencies__microsoft_fetch_event_source:"^2.0.1",GIO_MODULE_DIR_VSCODE_SNAP_ORIG:"",XDG_DATA_HOME:"/home/mike-diker/snap/code/241/.local/share",XMODIFIERS:"@im=ibus",XDG_SESSION_DESKTOP:"ubuntu",XAUTHORITY:"/run/user/1000/gdm/Xauthority",LS_COLORS:"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:",VSCODE_GIT_IPC_HANDLE:"/run/user/1000/vscode-git-9b67e3720d.sock",TERM_PROGRAM:"vscode",npm_lifecycle_script:"vite build && node scripts/postbuild.js",npm_package_dependencies_lodash_debounce:"^4.0.8",SSH_AUTH_SOCK:"/run/user/1000/keyring/ssh",GSETTINGS_SCHEMA_DIR:"/home/mike-diker/snap/code/241/.local/share/glib-2.0/schemas",npm_config_version_git_message:"v%s",SHELL:"/bin/bash",npm_package_version:"",npm_lifecycle_event:"build",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_package_devDependencies__types_react:"^18.2.23",npm_package_dependencies_pluralize:"^8.0.0",QT_ACCESSIBILITY:"1",GDMSESSION:"ubuntu",npm_config_argv:'{"remain":[],"cooked":["run","build"],"original":["build"]}',npm_package_dependencies_uuid:"^9.0.0",npm_package_dependencies_he:"^1.2.0",npm_package_scripts_build:"vite build && node scripts/postbuild.js",LESSCLOSE:"/usr/bin/lesspipe %s %s",GTK_PATH_VSCODE_SNAP_ORIG:"",FONTCONFIG_FILE:"/etc/fonts/fonts.conf",GTK_IM_MODULE_FILE_VSCODE_SNAP_ORIG:"",npm_package_dependencies_truncate:"^3.0.0",npm_package_dependencies_qrcode_react:"^4.2.0",npm_package_dependencies__phosphor_icons_react:"^2.1.7",npm_config_version_git_tag:"true",npm_config_version_git_sign:"",GPG_AGENT_INFO:"/run/user/1000/gnupg/S.gpg-agent:0:1",GJS_DEBUG_OUTPUT:"stderr",npm_package_devDependencies_globals:"^16.5.0",npm_package_devDependencies_eslint_plugin_react:"^7.37.5",npm_package_dependencies_markdown_it:"^13.0.1",npm_package_license:"MIT",npm_config_strict_ssl:"true",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",QT_IM_MODULE:"ibus",npm_config_globalconfig:"/home/mike-diker/.nvm/versions/node/v24.10.0/etc/npmrc",npm_config_init_module:"/home/mike-diker/.npm-init.js",npm_package_devDependencies_eslint_plugin_prettier:"^5.0.0",PWD:"/home/mike-diker/git-repos/totem-llm/frontend",npm_execpath:"/home/mike-diker/.nvm/versions/node/v24.10.0/lib/node_modules/npm/bin/npm-cli.js",npm_package_dependencies_react_tag_input_component:"^2.0.2",XDG_CONFIG_DIRS:"/etc/xdg/xdg-ubuntu:/etc/xdg",NVM_CD_FLAGS:"",XDG_DATA_DIRS:"/home/mike-diker/snap/code/241/.local/share:/home/mike-diker/snap/code/241:/snap/code/241/usr/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/mike-diker/.nvm/versions/node/v24.10.0",npm_package_dependencies_dompurify:"^3.0.8",npm_command:"publish",npm_package_devDependencies_postcss:"^8.4.23",npm_package_devDependencies_cross_env:"^7.0.3",npm_package_dependencies__tremor_react:"^3.15.1",npm_config_save_prefix:"^",npm_config_ignore_optional:"",npm_package_devDependencies_rollup_plugin_visualizer:"^5.9.0",npm_package_scripts_preview:"vite preview",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",npm_package_dependencies_react_loading_skeleton:"^3.1.0",npm_package_dependencies__mintplex_labs_piper_tts_web:"^1.0.4",npm_package_scripts_lint_check:"eslint src",INIT_CWD:"/home/mike-diker/git-repos/totem-llm",EDITOR:"vi",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_highlight_js:"^11.9.0",NODE_ENV:"production"})===null||r===void 0)&&r.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;i==="core"&&(t=eC),a||(a={});const{insertAt:s}=a;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.id=t,d.type="text/css",s==="top"&&l.firstChild?l.insertBefore(d,l.firstChild):l.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),s0[i]=!0}const c0=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:i=null,place:a="top",offset:n=10,strategy:r="absolute",middlewares:s=[Z5(Number(n)),Q5({fallbackAxisSideDirection:"start"}),J5({padding:5})],border:l})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};const d=s;return i?(d.push(Y5({element:i,padding:5})),o0(e,t,{placement:a,strategy:r,middleware:d}).then(({x:u,y:h,placement:g,middlewareData:p})=>{var v,f;const b={left:`${u}px`,top:`${h}px`,border:l},{x:w,y}=(v=p.arrow)!==null&&v!==void 0?v:{x:0,y:0},k=(f={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]])!==null&&f!==void 0?f:"bottom",_=l&&{borderBottom:l,borderRight:l};let x=0;if(l){const A=`${l}`.match(/(\d+)px/);x=A!=null&&A[1]?Number(A[1]):1}return{tooltipStyles:b,tooltipArrowStyles:{left:w!=null?`${w}px`:"",top:y!=null?`${y}px`:"",right:"",bottom:"",..._,[k]:`-${4+x}px`},place:g}})):o0(e,t,{placement:"bottom",strategy:r,middleware:d}).then(({x:u,y:h,placement:g})=>({tooltipStyles:{left:`${u}px`,top:`${h}px`},tooltipArrowStyles:{},place:g}))},d0=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),u0=(e,t,i)=>{let a=null;const n=function(...r){const s=()=>{a=null,i||e.apply(this,r)};i&&!a&&(e.apply(this,r),a=setTimeout(s,t)),i||(a&&clearTimeout(a),a=setTimeout(s,t))};return n.cancel=()=>{a&&(clearTimeout(a),a=null)},n},p0=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",ep=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((n,r)=>ep(n,t[r]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!p0(e)||!p0(t))return e===t;const i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(n=>ep(e[n],t[n]))},iC=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(i=>{const a=t.getPropertyValue(i);return a==="auto"||a==="scroll"})},m0=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(iC(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},aC=typeof window<"u"?m.useLayoutEffect:m.useEffect,mi=e=>{e.current&&(clearTimeout(e.current),e.current=null)},nC="DEFAULT_TOOLTIP_ID",rC={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},oC=m.createContext({getTooltipData:()=>rC});function Oy(e=nC){return m.useContext(oC).getTooltipData(e)}var Bn={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},bd={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const sC=({forwardRef:e,id:t,className:i,classNameArrow:a,variant:n="dark",anchorId:r,anchorSelect:s,place:l="top",offset:d=10,events:u=["hover"],openOnClick:h=!1,positionStrategy:g="absolute",middlewares:p,wrapper:v,delayShow:f=0,delayHide:b=0,float:w=!1,hidden:y=!1,noArrow:k=!1,clickable:_=!1,closeOnEsc:x=!1,closeOnScroll:A=!1,closeOnResize:z=!1,openEvents:S,closeEvents:M,globalCloseEvents:T,imperativeModeOnly:D,style:F,position:O,afterShow:Z,afterHide:R,content:ce,contentWrapperRef:ae,isOpen:Q,defaultIsOpen:I=!1,setIsOpen:U,activeAnchor:B,setActiveAnchor:me,border:ze,opacity:ct,arrowColor:He,role:dt="tooltip"})=>{var Ve;const Ie=m.useRef(null),Yt=m.useRef(null),jt=m.useRef(null),Xt=m.useRef(null),na=m.useRef(null),[Pe,ei]=m.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[Ye,La]=m.useState(!1),[ht,Dt]=m.useState(!1),[Ce,Hi]=m.useState(null),Vi=m.useRef(!1),qi=m.useRef(null),{anchorRefs:gt,setActiveAnchor:ti}=Oy(t),wt=m.useRef(!1),[se,_e]=m.useState([]),ne=m.useRef(!1),fe=h||u.includes("click"),qe=fe||(S==null?void 0:S.click)||(S==null?void 0:S.dblclick)||(S==null?void 0:S.mousedown),ut=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&fe&&Object.assign(ut,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const be=M?{...M}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!M&&fe&&Object.assign(be,{mouseleave:!1,blur:!1,mouseout:!1});const ee=T?{...T}:{escape:x||!1,scroll:A||!1,resize:z||!1,clickOutsideAnchor:qe||!1};D&&(Object.assign(ut,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(be,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ee,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),aC(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ve=W=>{ne.current&&(W&&Dt(!0),setTimeout(()=>{ne.current&&(U==null||U(W),Q===void 0&&La(W))},10))};m.useEffect(()=>{if(Q===void 0)return()=>null;Q&&Dt(!0);const W=setTimeout(()=>{La(Q)},10);return()=>{clearTimeout(W)}},[Q]),m.useEffect(()=>{if(Ye!==Vi.current)if(mi(na),Vi.current=Ye,Ye)Z==null||Z();else{const W=(le=>{const pe=le.match(/^([\d.]+)(ms|s)$/);if(!pe)return 0;const[,j,L]=pe;return Number(j)*(L==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));na.current=setTimeout(()=>{Dt(!1),Hi(null),R==null||R()},W+25)}},[Ye]);const _i=W=>{ei(le=>ep(le,W)?le:W)},xi=(W=f)=>{mi(jt),ht?ve(!0):jt.current=setTimeout(()=>{ve(!0)},W)},ra=(W=b)=>{mi(Xt),Xt.current=setTimeout(()=>{wt.current||ve(!1)},W)},nn=W=>{var le;if(!W)return;const pe=(le=W.currentTarget)!==null&&le!==void 0?le:W.target;if(!(pe!=null&&pe.isConnected))return me(null),void ti({current:null});f?xi():ve(!0),me(pe),ti({current:pe}),mi(Xt)},oa=()=>{_?ra(b||100):b?ra():ve(!1),mi(jt)},zi=({x:W,y:le})=>{var pe;const j={getBoundingClientRect:()=>({x:W,y:le,width:0,height:0,top:le,left:W,right:W,bottom:le})};c0({place:(pe=Ce==null?void 0:Ce.place)!==null&&pe!==void 0?pe:l,offset:d,elementReference:j,tooltipReference:Ie.current,tooltipArrowReference:Yt.current,strategy:g,middlewares:p,border:ze}).then(L=>{_i(L)})},sa=W=>{if(!W)return;const le=W,pe={x:le.clientX,y:le.clientY};zi(pe),qi.current=pe},la=W=>{var le;if(!Ye)return;const pe=W.target;pe.isConnected&&(!((le=Ie.current)===null||le===void 0)&&le.contains(pe)||[document.querySelector(`[id='${r}']`),...se].some(j=>j==null?void 0:j.contains(pe))||(ve(!1),mi(jt)))},ca=u0(nn,50,!0),Xe=u0(oa,50,!0),Ut=W=>{Xe.cancel(),ca(W)},oe=()=>{ca.cancel(),Xe()},Ae=m.useCallback(()=>{var W,le;const pe=(W=Ce==null?void 0:Ce.position)!==null&&W!==void 0?W:O;pe?zi(pe):w?qi.current&&zi(qi.current):B!=null&&B.isConnected&&c0({place:(le=Ce==null?void 0:Ce.place)!==null&&le!==void 0?le:l,offset:d,elementReference:B,tooltipReference:Ie.current,tooltipArrowReference:Yt.current,strategy:g,middlewares:p,border:ze}).then(j=>{ne.current&&_i(j)})},[Ye,B,ce,F,l,Ce==null?void 0:Ce.place,d,g,O,Ce==null?void 0:Ce.position,w]);m.useEffect(()=>{var W,le;const pe=new Set(gt);se.forEach(re=>{pe.add({current:re})});const j=document.querySelector(`[id='${r}']`);j&&pe.add({current:j});const L=()=>{ve(!1)},P=m0(B),C=m0(Ie.current);ee.scroll&&(window.addEventListener("scroll",L),P==null||P.addEventListener("scroll",L),C==null||C.addEventListener("scroll",L));let V=null;ee.resize?window.addEventListener("resize",L):B&&Ie.current&&(V=$5(B,Ie.current,Ae,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const J=re=>{re.key==="Escape"&&ve(!1)};ee.escape&&window.addEventListener("keydown",J),ee.clickOutsideAnchor&&window.addEventListener("click",la);const $=[],q=re=>{Ye&&(re==null?void 0:re.target)===B||nn(re)},he=re=>{Ye&&(re==null?void 0:re.target)===B&&oa()},te=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],ie=["click","dblclick","mousedown","mouseup"];Object.entries(ut).forEach(([re,ke])=>{ke&&(te.includes(re)?$.push({event:re,listener:Ut}):ie.includes(re)&&$.push({event:re,listener:q}))}),Object.entries(be).forEach(([re,ke])=>{ke&&(te.includes(re)?$.push({event:re,listener:oe}):ie.includes(re)&&$.push({event:re,listener:he}))}),w&&$.push({event:"pointermove",listener:sa});const Me=()=>{wt.current=!0},Le=()=>{wt.current=!1,oa()};return _&&!qe&&((W=Ie.current)===null||W===void 0||W.addEventListener("mouseenter",Me),(le=Ie.current)===null||le===void 0||le.addEventListener("mouseleave",Le)),$.forEach(({event:re,listener:ke})=>{pe.forEach(rt=>{var Ne;(Ne=rt.current)===null||Ne===void 0||Ne.addEventListener(re,ke)})}),()=>{var re,ke;ee.scroll&&(window.removeEventListener("scroll",L),P==null||P.removeEventListener("scroll",L),C==null||C.removeEventListener("scroll",L)),ee.resize?window.removeEventListener("resize",L):V==null||V(),ee.clickOutsideAnchor&&window.removeEventListener("click",la),ee.escape&&window.removeEventListener("keydown",J),_&&!qe&&((re=Ie.current)===null||re===void 0||re.removeEventListener("mouseenter",Me),(ke=Ie.current)===null||ke===void 0||ke.removeEventListener("mouseleave",Le)),$.forEach(({event:rt,listener:Ne})=>{pe.forEach(rn=>{var pi;(pi=rn.current)===null||pi===void 0||pi.removeEventListener(rt,Ne)})})}},[B,Ae,ht,gt,se,S,M,T,fe,f,b]),m.useEffect(()=>{var W,le;let pe=(le=(W=Ce==null?void 0:Ce.anchorSelect)!==null&&W!==void 0?W:s)!==null&&le!==void 0?le:"";!pe&&t&&(pe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const j=new MutationObserver(L=>{const P=[],C=[];L.forEach(V=>{if(V.type==="attributes"&&V.attributeName==="data-tooltip-id"&&(V.target.getAttribute("data-tooltip-id")===t?P.push(V.target):V.oldValue===t&&C.push(V.target)),V.type==="childList"){if(B){const J=[...V.removedNodes].filter($=>$.nodeType===1);if(pe)try{C.push(...J.filter($=>$.matches(pe))),C.push(...J.flatMap($=>[...$.querySelectorAll(pe)]))}catch{}J.some($=>{var q;return!!(!((q=$==null?void 0:$.contains)===null||q===void 0)&&q.call($,B))&&(Dt(!1),ve(!1),me(null),mi(jt),mi(Xt),!0)})}if(pe)try{const J=[...V.addedNodes].filter($=>$.nodeType===1);P.push(...J.filter($=>$.matches(pe))),P.push(...J.flatMap($=>[...$.querySelectorAll(pe)]))}catch{}}}),(P.length||C.length)&&_e(V=>[...V.filter(J=>!C.includes(J)),...P])});return j.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{j.disconnect()}},[t,s,Ce==null?void 0:Ce.anchorSelect,B]),m.useEffect(()=>{Ae()},[Ae]),m.useEffect(()=>{if(!(ae!=null&&ae.current))return()=>null;const W=new ResizeObserver(()=>{setTimeout(()=>Ae())});return W.observe(ae.current),()=>{W.disconnect()}},[ce,ae==null?void 0:ae.current]),m.useEffect(()=>{var W;const le=document.querySelector(`[id='${r}']`),pe=[...se,le];B&&pe.includes(B)||me((W=se[0])!==null&&W!==void 0?W:le)},[r,se,B]),m.useEffect(()=>(I&&ve(!0),()=>{mi(jt),mi(Xt)}),[]),m.useEffect(()=>{var W;let le=(W=Ce==null?void 0:Ce.anchorSelect)!==null&&W!==void 0?W:s;if(!le&&t&&(le=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),le)try{const pe=Array.from(document.querySelectorAll(le));_e(pe)}catch{_e([])}},[t,s,Ce==null?void 0:Ce.anchorSelect]),m.useEffect(()=>{jt.current&&(mi(jt),xi(f))},[f]);const Lt=(Ve=Ce==null?void 0:Ce.content)!==null&&Ve!==void 0?Ve:ce,Ai=Ye&&Object.keys(Pe.tooltipStyles).length>0;return m.useImperativeHandle(e,()=>({open:W=>{if(W!=null&&W.anchorSelect)try{document.querySelector(W.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${W.anchorSelect}" is not a valid CSS selector`)}Hi(W??null),W!=null&&W.delay?xi(W.delay):ve(!0)},close:W=>{W!=null&&W.delay?ra(W.delay):ve(!1)},activeAnchor:B,place:Pe.place,isOpen:!!(ht&&!y&&Lt&&Ai)})),ht&&!y&&Lt?c.createElement(v,{id:t,role:dt,className:Xu("react-tooltip",Bn.tooltip,bd.tooltip,bd[n],i,`react-tooltip__place-${Pe.place}`,Bn[Ai?"show":"closing"],Ai?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&Bn.fixed,_&&Bn.clickable),onTransitionEnd:W=>{mi(na),Ye||W.propertyName!=="opacity"||(Dt(!1),Hi(null),R==null||R())},style:{...F,...Pe.tooltipStyles,opacity:ct!==void 0&&Ai?ct:void 0},ref:Ie},Lt,c.createElement(v,{className:Xu("react-tooltip-arrow",Bn.arrow,bd.arrow,a,k&&Bn.noArrow),style:{...Pe.tooltipArrowStyles,background:He?`linear-gradient(to right bottom, transparent 50%, ${He} 50%)`:void 0},ref:Yt})):null},lC=({content:e})=>c.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),lt=c.forwardRef(({id:e,anchorId:t,anchorSelect:i,content:a,html:n,render:r,className:s,classNameArrow:l,variant:d="dark",place:u="top",offset:h=10,wrapper:g="div",children:p=null,events:v=["hover"],openOnClick:f=!1,positionStrategy:b="absolute",middlewares:w,delayShow:y=0,delayHide:k=0,float:_=!1,hidden:x=!1,noArrow:A=!1,clickable:z=!1,closeOnEsc:S=!1,closeOnScroll:M=!1,closeOnResize:T=!1,openEvents:D,closeEvents:F,globalCloseEvents:O,imperativeModeOnly:Z=!1,style:R,position:ce,isOpen:ae,defaultIsOpen:Q=!1,disableStyleInjection:I=!1,border:U,opacity:B,arrowColor:me,setIsOpen:ze,afterShow:ct,afterHide:He,role:dt="tooltip"},Ve)=>{const[Ie,Yt]=m.useState(a),[jt,Xt]=m.useState(n),[na,Pe]=m.useState(u),[ei,Ye]=m.useState(d),[La,ht]=m.useState(h),[Dt,Ce]=m.useState(y),[Hi,Vi]=m.useState(k),[qi,gt]=m.useState(_),[ti,wt]=m.useState(x),[se,_e]=m.useState(g),[ne,fe]=m.useState(v),[qe,ut]=m.useState(b),[be,ee]=m.useState(null),[ve,_i]=m.useState(null),xi=m.useRef(I),{anchorRefs:ra,activeAnchor:nn}=Oy(e),oa=Xe=>Xe==null?void 0:Xe.getAttributeNames().reduce((Ut,oe)=>{var Ae;return oe.startsWith("data-tooltip-")&&(Ut[oe.replace(/^data-tooltip-/,"")]=(Ae=Xe==null?void 0:Xe.getAttribute(oe))!==null&&Ae!==void 0?Ae:null),Ut},{}),zi=Xe=>{const Ut={place:oe=>{var Ae;Pe((Ae=oe)!==null&&Ae!==void 0?Ae:u)},content:oe=>{Yt(oe??a)},html:oe=>{Xt(oe??n)},variant:oe=>{var Ae;Ye((Ae=oe)!==null&&Ae!==void 0?Ae:d)},offset:oe=>{ht(oe===null?h:Number(oe))},wrapper:oe=>{var Ae;_e((Ae=oe)!==null&&Ae!==void 0?Ae:g)},events:oe=>{const Ae=oe==null?void 0:oe.split(" ");fe(Ae??v)},"position-strategy":oe=>{var Ae;ut((Ae=oe)!==null&&Ae!==void 0?Ae:b)},"delay-show":oe=>{Ce(oe===null?y:Number(oe))},"delay-hide":oe=>{Vi(oe===null?k:Number(oe))},float:oe=>{gt(oe===null?_:oe==="true")},hidden:oe=>{wt(oe===null?x:oe==="true")},"class-name":oe=>{ee(oe)}};Object.values(Ut).forEach(oe=>oe(null)),Object.entries(Xe).forEach(([oe,Ae])=>{var Lt;(Lt=Ut[oe])===null||Lt===void 0||Lt.call(Ut,Ae)})};m.useEffect(()=>{Yt(a)},[a]),m.useEffect(()=>{Xt(n)},[n]),m.useEffect(()=>{Pe(u)},[u]),m.useEffect(()=>{Ye(d)},[d]),m.useEffect(()=>{ht(h)},[h]),m.useEffect(()=>{Ce(y)},[y]),m.useEffect(()=>{Vi(k)},[k]),m.useEffect(()=>{gt(_)},[_]),m.useEffect(()=>{wt(x)},[x]),m.useEffect(()=>{ut(b)},[b]),m.useEffect(()=>{xi.current!==I&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[I]),m.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:I==="core",disableBase:I}}))},[]),m.useEffect(()=>{var Xe;const Ut=new Set(ra);let oe=i;if(!oe&&e&&(oe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),oe)try{document.querySelectorAll(oe).forEach(le=>{Ut.add({current:le})})}catch{console.warn(`[react-tooltip] "${oe}" is not a valid CSS selector`)}const Ae=document.querySelector(`[id='${t}']`);if(Ae&&Ut.add({current:Ae}),!Ut.size)return()=>null;const Lt=(Xe=ve??Ae)!==null&&Xe!==void 0?Xe:nn.current,Ai=new MutationObserver(le=>{le.forEach(pe=>{var j;if(!Lt||pe.type!=="attributes"||!(!((j=pe.attributeName)===null||j===void 0)&&j.startsWith("data-tooltip-")))return;const L=oa(Lt);zi(L)})}),W={attributes:!0,childList:!1,subtree:!1};if(Lt){const le=oa(Lt);zi(le),Ai.observe(Lt,W)}return()=>{Ai.disconnect()}},[ra,nn,ve,t,i]),m.useEffect(()=>{R!=null&&R.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),U&&!d0("border",`${U}`)&&console.warn(`[react-tooltip] "${U}" is not a valid \`border\`.`),R!=null&&R.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),B&&!d0("opacity",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`)},[]);let sa=p;const la=m.useRef(null);if(r){const Xe=r({content:(ve==null?void 0:ve.getAttribute("data-tooltip-content"))||Ie||null,activeAnchor:ve});sa=Xe?c.createElement("div",{ref:la,className:"react-tooltip-content-wrapper"},Xe):null}else Ie&&(sa=Ie);jt&&(sa=c.createElement(lC,{content:jt}));const ca={forwardRef:Ve,id:e,anchorId:t,anchorSelect:i,className:Xu(s,be),classNameArrow:l,content:sa,contentWrapperRef:la,place:na,variant:ei,offset:La,wrapper:se,events:ne,openOnClick:f,positionStrategy:qe,middlewares:w,delayShow:Dt,delayHide:Hi,float:qi,hidden:ti,noArrow:A,clickable:z,closeOnEsc:S,closeOnScroll:M,closeOnResize:T,openEvents:D,closeEvents:F,globalCloseEvents:O,imperativeModeOnly:Z,style:R,position:ce,isOpen:ae,defaultIsOpen:Q,border:U,opacity:B,arrowColor:me,setIsOpen:ze,afterShow:ct,afterHide:He,activeAnchor:ve,setActiveAnchor:Xe=>_i(Xe),role:dt};return c.createElement(sC,{...ca})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||l0({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||l0({css:`
1707
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const cC=["azure","textgenwebui","generic-openai","bedrock"],h0={openai:[],gemini:[],anthropic:[],azure:[],lmstudio:[],localai:[],ollama:[],togetherai:[],fireworksai:[],"nvidia-nim":[],groq:[],cohere:["command-r","command-r-plus","command","command-light","command-nightly","command-light-nightly"],textgenwebui:[],"generic-openai":[],bedrock:[],xai:["grok-beta"]};function dC(e){return e.reduce((t,i)=>(t[i.organization]=t[i.organization]||[],t[i.organization].push(i),t),{})}const g0=["togetherai","fireworksai","openai","novita","openrouter","ppio","docker-model-runner","sambanova"];function ID(e=null){const[t,i]=m.useState([]),[a,n]=m.useState([]),[r,s]=m.useState(!0);return m.useEffect(()=>{async function l(){if(!e)return;s(!0);const{models:d=[]}=await K.customModels(e);h0.hasOwnProperty(e)&&!g0.includes(e)?i(h0[e]):i([]),g0.includes(e)?n(dC(d)):n(d),s(!1)}l()},[e]),{defaultModels:t,customModels:a,loading:r}}const uC={getAll:async()=>await fetch(`${E}/model-routers`,{method:"GET",headers:N()}).then(e=>e.json()).then(e=>(e==null?void 0:e.routers)||[]).catch(e=>(console.error(e),[])),get:async e=>await fetch(`${E}/model-routers/${e}`,{method:"GET",headers:N()}).then(t=>t.json()).catch(t=>(console.error(t),{router:null,error:t.message})),create:async e=>await fetch(`${E}/model-routers/new`,{method:"POST",headers:N(),body:JSON.stringify(e)}).then(t=>t.json()).catch(t=>(console.error(t),{router:null,error:t.message})),update:async(e,t)=>await fetch(`${E}/model-routers/${e}`,{method:"PUT",headers:N(),body:JSON.stringify(t)}).then(i=>i.json()).catch(i=>(console.error(i),{router:null,error:i.message})),delete:async e=>await fetch(`${E}/model-routers/${e}`,{method:"DELETE",headers:N()}).then(t=>t.json()).catch(t=>(console.error(t),{success:!1,error:t.message})),createRule:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/new`,{method:"POST",headers:N(),body:JSON.stringify(t)}).then(i=>i.json()).catch(i=>(console.error(i),{rule:null,error:i.message})),updateRule:async(e,t,i)=>await fetch(`${E}/model-routers/${e}/rules/${t}`,{method:"PUT",headers:N(),body:JSON.stringify(i)}).then(a=>a.json()).catch(a=>(console.error(a),{rule:null,error:a.message})),deleteRule:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/${t}`,{method:"DELETE",headers:N()}).then(i=>i.json()).catch(i=>(console.error(i),{success:!1,error:i.message})),reorderRules:async(e,t)=>await fetch(`${E}/model-routers/${e}/rules/reorder`,{method:"PUT",headers:N(),body:JSON.stringify({ruleUpdates:t})}).then(i=>i.json()).catch(i=>(console.error(i),{success:!1,error:i.message}))};function Ry(){const{logo:e,setLogo:t,loginLogo:i,isCustomLogo:a}=m.useContext(K1);return{logo:e,setLogo:t,loginLogo:i,isCustomLogo:a}}const pC="/agent-static.png",mC="/community-hub.png",Hy=typeof{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!0,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}<"u"?{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!0,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}:{},Vy=m.createContext(Hy);function hC({children:e}){const[t,i]=m.useState(Hy);return m.useEffect(()=>{fetch("http://localhost:3001/api/features").then(n=>n.json()).then(({features:n})=>{n&&Object.keys(n).length>0&&i(n)}).catch(()=>{})},[]),o.jsx(Vy.Provider,{value:t,children:e})}function qy(){return m.useContext(Vy)}function pt(e){return qy()[e]??{enabled:!1,label:e,tier:"free"}}var X={},tp={exports:{}};(function(e,t){(function(i,a){var n="1.0.38",r="",s="?",l="function",d="undefined",u="object",h="string",g="major",p="model",v="name",f="type",b="vendor",w="version",y="architecture",k="console",_="mobile",x="tablet",A="smarttv",z="wearable",S="embedded",M=500,T="Amazon",D="Apple",F="ASUS",O="BlackBerry",Z="Browser",R="Chrome",ce="Edge",ae="Firefox",Q="Google",I="Huawei",U="LG",B="Microsoft",me="Motorola",ze="Opera",ct="Samsung",He="Sharp",dt="Sony",Ve="Xiaomi",Ie="Zebra",Yt="Facebook",jt="Chromium OS",Xt="Mac OS",na=function(se,_e){var ne={};for(var fe in se)_e[fe]&&_e[fe].length%2===0?ne[fe]=_e[fe].concat(se[fe]):ne[fe]=se[fe];return ne},Pe=function(se){for(var _e={},ne=0;ne<se.length;ne++)_e[se[ne].toUpperCase()]=se[ne];return _e},ei=function(se,_e){return typeof se===h?Ye(_e).indexOf(Ye(se))!==-1:!1},Ye=function(se){return se.toLowerCase()},La=function(se){return typeof se===h?se.replace(/[^\d\.]/g,r).split(".")[0]:a},ht=function(se,_e){if(typeof se===h)return se=se.replace(/^\s\s*/,r),typeof _e===d?se:se.substring(0,M)},Dt=function(se,_e){for(var ne=0,fe,qe,ut,be,ee,ve;ne<_e.length&&!ee;){var _i=_e[ne],xi=_e[ne+1];for(fe=qe=0;fe<_i.length&&!ee&&_i[fe];)if(ee=_i[fe++].exec(se),ee)for(ut=0;ut<xi.length;ut++)ve=ee[++qe],be=xi[ut],typeof be===u&&be.length>0?be.length===2?typeof be[1]==l?this[be[0]]=be[1].call(this,ve):this[be[0]]=be[1]:be.length===3?typeof be[1]===l&&!(be[1].exec&&be[1].test)?this[be[0]]=ve?be[1].call(this,ve,be[2]):a:this[be[0]]=ve?ve.replace(be[1],be[2]):a:be.length===4&&(this[be[0]]=ve?be[3].call(this,ve.replace(be[1],be[2])):a):this[be]=ve||a;ne+=2}},Ce=function(se,_e){for(var ne in _e)if(typeof _e[ne]===u&&_e[ne].length>0){for(var fe=0;fe<_e[ne].length;fe++)if(ei(_e[ne][fe],se))return ne===s?a:ne}else if(ei(_e[ne],se))return ne===s?a:ne;return se},Hi={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Vi={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},qi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,w],[/opios[\/ ]+([\w\.]+)/i],[w,[v,ze+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[v,ze+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[v,ze]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[v,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,w],[/\bddg\/([\w\.]+)/i],[w,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[v,"UC"+Z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[v,"Smart Lenovo "+Z]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+Z],w],[/\bfocus\/([\w\.]+)/i],[w,[v,ae+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[v,ze+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[v,ze+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[v,"MIUI "+Z]],[/fxios\/([-\w\.]+)/i],[w,[v,ae]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+Z]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+Z],w],[/samsungbrowser\/([\w\.]+)/i],[w,[v,ct+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],w],[/metasr[\/ ]?([\d\.]+)/i],[w,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[v,w],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,Yt],w],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[v,R+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,R+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[v,"Android "+Z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[w,Ce,Hi]],[/(webkit|khtml)\/([\w\.]+)/i],[v,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[v,ae+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[v,w],[/(cobalt)\/([\w\.]+)/i],[v,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Ye]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,r,Ye]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Ye]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[b,ct],[f,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[b,ct],[f,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[b,D],[f,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[b,D],[f,x]],[/(macintosh);/i],[p,[b,D]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[b,He],[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[b,I],[f,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[b,I],[f,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[b,Ve],[f,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[b,Ve],[f,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[b,"OPPO"],[f,_]],[/\b(opd2\d{3}a?) bui/i],[p,[b,"OPPO"],[f,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[b,"Vivo"],[f,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[b,"Realme"],[f,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[b,me],[f,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[b,me],[f,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[b,U],[f,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[b,U],[f,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[b,"Lenovo"],[f,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[b,"Nokia"],[f,_]],[/(pixel c)\b/i],[p,[b,Q],[f,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[b,Q],[f,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[b,dt],[f,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[b,dt],[f,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[b,"OnePlus"],[f,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[b,T],[f,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[b,T],[f,_]],[/(playbook);[-\w\),; ]+(rim)/i],[p,b,[f,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[b,O],[f,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[b,F],[f,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[b,F],[f,_]],[/(nexus 9)/i],[p,[b,"HTC"],[f,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[p,/_/g," "],[f,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[b,"Acer"],[f,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[b,"Meizu"],[f,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[b,"Ulefone"],[f,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[b,p,[f,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[b,p,[f,x]],[/(surface duo)/i],[p,[b,B],[f,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[b,"Fairphone"],[f,_]],[/(u304aa)/i],[p,[b,"AT&T"],[f,_]],[/\bsie-(\w*)/i],[p,[b,"Siemens"],[f,_]],[/\b(rct\w+) b/i],[p,[b,"RCA"],[f,x]],[/\b(venue[\d ]{2,7}) b/i],[p,[b,"Dell"],[f,x]],[/\b(q(?:mv|ta)\w+) b/i],[p,[b,"Verizon"],[f,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[b,"Barnes & Noble"],[f,x]],[/\b(tm\d{3}\w+) b/i],[p,[b,"NuVision"],[f,x]],[/\b(k88) b/i],[p,[b,"ZTE"],[f,x]],[/\b(nx\d{3}j) b/i],[p,[b,"ZTE"],[f,_]],[/\b(gen\d{3}) b.+49h/i],[p,[b,"Swiss"],[f,_]],[/\b(zur\d{3}) b/i],[p,[b,"Swiss"],[f,x]],[/\b((zeki)?tb.*\b) b/i],[p,[b,"Zeki"],[f,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],p,[f,x]],[/\b(ns-?\w{0,9}) b/i],[p,[b,"Insignia"],[f,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[b,"NextBook"],[f,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],p,[f,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],p,[f,_]],[/\b(ph-1) /i],[p,[b,"Essential"],[f,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[b,"Envizen"],[f,x]],[/\b(trio[-\w\. ]+) b/i],[p,[b,"MachSpeed"],[f,x]],[/\btu_(1491) b/i],[p,[b,"Rotor"],[f,x]],[/(shield[\w ]+) b/i],[p,[b,"Nvidia"],[f,x]],[/(sprint) (\w+)/i],[b,p,[f,_]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[b,B],[f,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[b,Ie],[f,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[b,Ie],[f,_]],[/smart-tv.+(samsung)/i],[b,[f,A]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[b,ct],[f,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,U],[f,A]],[/(apple) ?tv/i],[b,[p,D+" TV"],[f,A]],[/crkey/i],[[p,R+"cast"],[b,Q],[f,A]],[/droid.+aft(\w+)( bui|\))/i],[p,[b,T],[f,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[b,He],[f,A]],[/(bravia[\w ]+)( bui|\))/i],[p,[b,dt],[f,A]],[/(mitv-\w{5}) bui/i],[p,[b,Ve],[f,A]],[/Hbbtv.*(technisat) (.*);/i],[b,p,[f,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,ht],[p,ht],[f,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,p,[f,k]],[/droid.+; (shield) bui/i],[p,[b,"Nvidia"],[f,k]],[/(playstation [345portablevi]+)/i],[p,[b,dt],[f,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[b,B],[f,k]],[/((pebble))app/i],[b,p,[f,z]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[b,D],[f,z]],[/droid.+; (glass) \d/i],[p,[b,Q],[f,z]],[/droid.+; (wt63?0{2,3})\)/i],[p,[b,Ie],[f,z]],[/(quest( \d| pro)?)/i],[p,[b,Yt],[f,z]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,S]],[/(aeobc)\b/i],[p,[b,T],[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[f,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,_]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[v,ce+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,w],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[v,[w,Ce,Vi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Ce,Vi],[v,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Xt],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,w],[/\(bb(10);/i],[w,[v,O]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[v,ae+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[v,R+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,jt],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,w],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,w]]},gt=function(se,_e){if(typeof se===u&&(_e=se,se=a),!(this instanceof gt))return new gt(se,_e).getResult();var ne=typeof i!==d&&i.navigator?i.navigator:a,fe=se||(ne&&ne.userAgent?ne.userAgent:r),qe=ne&&ne.userAgentData?ne.userAgentData:a,ut=_e?na(qi,_e):qi,be=ne&&ne.userAgent==fe;return this.getBrowser=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.browser),ee[g]=La(ee[w]),be&&ne&&ne.brave&&typeof ne.brave.isBrave==l&&(ee[v]="Brave"),ee},this.getCPU=function(){var ee={};return ee[y]=a,Dt.call(ee,fe,ut.cpu),ee},this.getDevice=function(){var ee={};return ee[b]=a,ee[p]=a,ee[f]=a,Dt.call(ee,fe,ut.device),be&&!ee[f]&&qe&&qe.mobile&&(ee[f]=_),be&&ee[p]=="Macintosh"&&ne&&typeof ne.standalone!==d&&ne.maxTouchPoints&&ne.maxTouchPoints>2&&(ee[p]="iPad",ee[f]=x),ee},this.getEngine=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.engine),ee},this.getOS=function(){var ee={};return ee[v]=a,ee[w]=a,Dt.call(ee,fe,ut.os),be&&!ee[v]&&qe&&qe.platform&&qe.platform!="Unknown"&&(ee[v]=qe.platform.replace(/chrome os/i,jt).replace(/macos/i,Xt)),ee},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return fe},this.setUA=function(ee){return fe=typeof ee===h&&ee.length>M?ht(ee,M):ee,this},this.setUA(fe),this};gt.VERSION=n,gt.BROWSER=Pe([v,w,g]),gt.CPU=Pe([y]),gt.DEVICE=Pe([p,b,f,k,_,A,x,z,S]),gt.ENGINE=gt.OS=Pe([v,w]),e.exports&&(t=e.exports=gt),t.UAParser=gt;var ti=typeof i!==d&&(i.jQuery||i.Zepto);if(ti&&!ti.ua){var wt=new gt;ti.ua=wt.getResult(),ti.ua.get=function(){return wt.getUA()},ti.ua.set=function(se){wt.setUA(se);var _e=wt.getResult();for(var ne in _e)ti.ua[ne]=_e[ne]}}})(typeof window=="object"?window:Ti)})(tp,tp.exports);var gC=tp.exports;Object.defineProperty(X,"__esModule",{value:!0});function fC(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Tt=m,Re=fC(Tt),Fy=gC,en=new Fy,Nt=en.getBrowser(),bC=en.getCPU(),ui=en.getDevice(),Pm=en.getEngine(),tn=en.getOS(),us=en.getUA(),Uy=function(t){return en.setUA(t)},ps=function(t){if(!t){console.error("No userAgent string was provided");return}var i=new Fy(t);return{UA:i,browser:i.getBrowser(),cpu:i.getCPU(),device:i.getDevice(),engine:i.getEngine(),os:i.getOS(),ua:i.getUA(),setUserAgent:function(n){return i.setUA(n)}}},By=Object.freeze({ClientUAInstance:en,browser:Nt,cpu:bC,device:ui,engine:Pm,os:tn,ua:us,setUa:Uy,parseUserAgent:ps});function f0(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,a)}return i}function vC(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(i),!0).forEach(function(a){wC(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f0(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function co(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?co=function(t){return typeof t}:co=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function kC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b0(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function yC(e,t,i){return t&&b0(e.prototype,t),i&&b0(e,i),e}function wC(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},ip.apply(this,arguments)}function _C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&np(e,t)}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ap(e)}function np(e,t){return np=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},np(e,t)}function xC(e,t){if(e==null)return{};var i={},a=Object.keys(e),n,r;for(r=0;r<a.length;r++)n=a[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}function wi(e,t){if(e==null)return{};var i=xC(e,t),a,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)a=r[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}function tl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zC(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tl(e)}function AC(e,t){return jC(e)||LC(e,t)||SC(e,t)||MC()}function jC(e){if(Array.isArray(e))return e}function LC(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a=[],n=!0,r=!1,s,l;try{for(i=i.call(e);!(n=(s=i.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(d){r=!0,l=d}finally{try{!n&&i.return!=null&&i.return()}finally{if(r)throw l}}return a}}function SC(e,t){if(e){if(typeof e=="string")return v0(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return v0(e,t)}}function v0(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function MC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1708
1708
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pt={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Qt={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},Pr={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},PC={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},CC=function(t){switch(t){case Pt.Mobile:return{isMobile:!0};case Pt.Tablet:return{isTablet:!0};case Pt.SmartTv:return{isSmartTV:!0};case Pt.Console:return{isConsole:!0};case Pt.Wearable:return{isWearable:!0};case Pt.Browser:return{isBrowser:!0};case Pt.Embedded:return{isEmbedded:!0};default:return PC}},EC=function(t){return Uy(t)},de=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||i},Cm=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},Em=function(t){var i=Cm();return i&&i.platform&&(i.platform.indexOf(t)!==-1||i.platform==="MacIntel"&&i.maxTouchPoints>1&&!window.MSStream)},TC=function(t,i,a,n,r){return{isBrowser:t,browserMajorVersion:de(i.major),browserFullVersion:de(i.version),browserName:de(i.name),engineName:de(a.name),engineVersion:de(a.version),osName:de(n.name),osVersion:de(n.version),userAgent:de(r)}},k0=function(t,i,a,n){return vC({},t,{vendor:de(i.vendor),model:de(i.model),os:de(a.name),osVersion:de(a.version),ua:de(n)})},IC=function(t,i,a,n){return{isSmartTV:t,engineName:de(i.name),engineVersion:de(i.version),osName:de(a.name),osVersion:de(a.version),userAgent:de(n)}},NC=function(t,i,a,n){return{isConsole:t,engineName:de(i.name),engineVersion:de(i.version),osName:de(a.name),osVersion:de(a.version),userAgent:de(n)}},DC=function(t,i,a,n){return{isWearable:t,engineName:de(i.name),engineVersion:de(i.version),osName:de(a.name),osVersion:de(a.version),userAgent:de(n)}},OC=function(t,i,a,n,r){return{isEmbedded:t,vendor:de(i.vendor),model:de(i.model),engineName:de(a.name),engineVersion:de(a.version),osName:de(n.name),osVersion:de(n.version),userAgent:de(r)}};function RC(e){var t=e?ps(e):By,i=t.device,a=t.browser,n=t.engine,r=t.os,s=t.ua,l=CC(i.type),d=l.isBrowser,u=l.isMobile,h=l.isTablet,g=l.isSmartTV,p=l.isConsole,v=l.isWearable,f=l.isEmbedded;if(d)return TC(d,a,n,r,s);if(g)return IC(g,n,r,s);if(p)return NC(p,n,r,s);if(u||h)return k0(l,i,r,s);if(v)return DC(v,n,r,s);if(f)return OC(f,i,n,r,s)}var Gy=function(t){var i=t.type;return i===Pt.Mobile},Ky=function(t){var i=t.type;return i===Pt.Tablet},Wy=function(t){var i=t.type;return i===Pt.Mobile||i===Pt.Tablet},$y=function(t){var i=t.type;return i===Pt.SmartTv},Rl=function(t){var i=t.type;return i===Pt.Browser},Zy=function(t){var i=t.type;return i===Pt.Wearable},Jy=function(t){var i=t.type;return i===Pt.Console},Qy=function(t){var i=t.type;return i===Pt.Embedded},Yy=function(t){var i=t.vendor;return de(i)},Xy=function(t){var i=t.model;return de(i)},ew=function(t){var i=t.type;return de(i,"browser")},tw=function(t){var i=t.name;return i===Pr.Android},iw=function(t){var i=t.name;return i===Pr.Windows},aw=function(t){var i=t.name;return i===Pr.MAC_OS},nw=function(t){var i=t.name;return i===Pr.WindowsPhone},rw=function(t){var i=t.name;return i===Pr.IOS},ow=function(t){var i=t.version;return de(i)},sw=function(t){var i=t.name;return de(i)},lw=function(t){var i=t.name;return i===Qt.Chrome},cw=function(t){var i=t.name;return i===Qt.Firefox},dw=function(t){var i=t.name;return i===Qt.Chromium},Hl=function(t){var i=t.name;return i===Qt.Edge},uw=function(t){var i=t.name;return i===Qt.Yandex},pw=function(t){var i=t.name;return i===Qt.Safari||i===Qt.MobileSafari},mw=function(t){var i=t.name;return i===Qt.MobileSafari},hw=function(t){var i=t.name;return i===Qt.Opera},gw=function(t){var i=t.name;return i===Qt.InternetExplorer||i===Qt.Ie},fw=function(t){var i=t.name;return i===Qt.MIUI},bw=function(t){var i=t.name;return i===Qt.SamsungBrowser},vw=function(t){var i=t.version;return de(i)},kw=function(t){var i=t.major;return de(i)},yw=function(t){var i=t.name;return de(i)},ww=function(t){var i=t.name;return de(i)},_w=function(t){var i=t.version;return de(i)},xw=function(){var t=Cm(),i=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof i=="string"?/electron/.test(i):!1},ur=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},zw=function(){var t=Cm();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Wi=function(){return Em("iPad")},Aw=function(){return Em("iPhone")},jw=function(){return Em("iPod")},Lw=function(t){return de(t)};function Sw(e){var t=e||By,i=t.device,a=t.browser,n=t.os,r=t.engine,s=t.ua;return{isSmartTV:$y(i),isConsole:Jy(i),isWearable:Zy(i),isEmbedded:Qy(i),isMobileSafari:mw(a)||Wi(),isChromium:dw(a),isMobile:Wy(i)||Wi(),isMobileOnly:Gy(i),isTablet:Ky(i)||Wi(),isBrowser:Rl(i),isDesktop:Rl(i),isAndroid:tw(n),isWinPhone:nw(n),isIOS:rw(n)||Wi(),isChrome:lw(a),isFirefox:cw(a),isSafari:pw(a),isOpera:hw(a),isIE:gw(a),osVersion:ow(n),osName:sw(n),fullBrowserVersion:vw(a),browserVersion:kw(a),browserName:yw(a),mobileVendor:Yy(i),mobileModel:Xy(i),engineName:ww(r),engineVersion:_w(r),getUA:Lw(s),isEdge:Hl(a)||ur(s),isYandex:uw(a),deviceType:ew(i),isIOS13:zw(),isIPad13:Wi(),isIPhone13:Aw(),isIPod13:jw(),isElectron:xw(),isEdgeChromium:ur(s),isLegacyEdge:Hl(a)&&!ur(s),isWindows:iw(n),isMacOs:aw(n),isMIUI:fw(a),isSamsungBrowser:bw(a)}}var Mw=$y(ui),Pw=Jy(ui),Cw=Zy(ui),HC=Qy(ui),VC=mw(Nt)||Wi(),qC=dw(Nt),kc=Wy(ui)||Wi(),Ew=Gy(ui),Tw=Ky(ui)||Wi(),Iw=Rl(ui),FC=Rl(ui),Nw=tw(tn),Dw=nw(tn),Ow=rw(tn)||Wi(),UC=lw(Nt),BC=cw(Nt),GC=pw(Nt),KC=hw(Nt),Rw=gw(Nt),WC=ow(tn),$C=sw(tn),ZC=vw(Nt),JC=kw(Nt),QC=yw(Nt),YC=Yy(ui),XC=Xy(ui),eE=ww(Pm),tE=_w(Pm),iE=Lw(us),aE=Hl(Nt)||ur(us),nE=uw(Nt),rE=ew(ui),oE=zw(),sE=Wi(),lE=Aw(),cE=jw(),dE=xw(),uE=ur(us),pE=Hl(Nt)&&!ur(us),mE=iw(tn),hE=aw(tn),gE=fw(Nt),fE=bw(Nt),bE=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var i=ps(t),a=i.device,n=i.browser,r=i.os,s=i.engine,l=i.ua;return Sw({device:a,browser:n,os:r,engine:s,ua:l})},vE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Nw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},kE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Iw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},yE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Rw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},wE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Ow?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},_E=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return kc?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},xE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Tw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},zE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Dw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},AE=function(t){var i=t.renderWithFragment,a=t.children;t.viewClassName,t.style;var n=wi(t,["renderWithFragment","children","viewClassName","style"]);return Ew?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},jE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Mw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},LE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Pw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},SE=function(t){var i=t.renderWithFragment,a=t.children,n=wi(t,["renderWithFragment","children"]);return Cw?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",n,a):null},ME=function(t){var i=t.renderWithFragment,a=t.children;t.viewClassName,t.style;var n=t.condition,r=wi(t,["renderWithFragment","children","viewClassName","style","condition"]);return n?i?Re.createElement(Tt.Fragment,null,a):Re.createElement("div",r,a):null};function PE(e){return function(t){_C(i,t);function i(a){var n;return kC(this,i),n=zC(this,ap(i).call(this,a)),n.isEventListenerAdded=!1,n.handleOrientationChange=n.handleOrientationChange.bind(tl(n)),n.onOrientationChange=n.onOrientationChange.bind(tl(n)),n.onPageLoad=n.onPageLoad.bind(tl(n)),n.state={isLandscape:!1,isPortrait:!1},n}return yC(i,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var n=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:n===0,isLandscape:n===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":co(window))!==void 0&&kc&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return Re.createElement(e,ip({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),i}(Re.Component)}function CE(){var e=Tt.useState(function(){var r=window.innerWidth>window.innerHeight?90:0;return{isPortrait:r===0,isLandscape:r===90,orientation:r===0?"portrait":"landscape"}}),t=AC(e,2),i=t[0],a=t[1],n=Tt.useCallback(function(){var r=window.innerWidth>window.innerHeight?90:0,s={isPortrait:r===0,isLandscape:r===90,orientation:r===0?"portrait":"landscape"};i.orientation!==s.orientation&&a(s)},[i.orientation]);return Tt.useEffect(function(){return(typeof window>"u"?"undefined":co(window))!==void 0&&kc&&(n(),window.addEventListener("load",n,!1),window.addEventListener("resize",n,!1)),function(){window.removeEventListener("resize",n,!1),window.removeEventListener("load",n,!1)}},[n]),i}function Hw(e){var t=e||window.navigator.userAgent;return ps(t)}function EE(e){var t=e||window.navigator.userAgent,i=Hw(t),a=Sw(i);return[a,i]}X.AndroidView=vE;X.BrowserTypes=Qt;X.BrowserView=kE;X.ConsoleView=LE;X.CustomView=ME;X.IEView=yE;X.IOSView=wE;X.MobileOnlyView=AE;X.MobileView=_E;X.OsTypes=Pr;X.SmartTVView=jE;X.TabletView=xE;X.WearableView=SE;X.WinPhoneView=zE;X.browserName=QC;X.browserVersion=JC;X.deviceDetect=RC;X.deviceType=rE;X.engineName=eE;X.engineVersion=tE;X.fullBrowserVersion=ZC;X.getSelectorsByUserAgent=bE;X.getUA=iE;X.isAndroid=Nw;X.isBrowser=Iw;X.isChrome=UC;X.isChromium=qC;X.isConsole=Pw;X.isDesktop=FC;X.isEdge=aE;X.isEdgeChromium=uE;X.isElectron=dE;X.isEmbedded=HC;X.isFirefox=BC;X.isIE=Rw;X.isIOS=Ow;X.isIOS13=oE;X.isIPad13=sE;X.isIPhone13=lE;X.isIPod13=cE;X.isLegacyEdge=pE;X.isMIUI=gE;X.isMacOs=hE;var Mn=X.isMobile=kc,ND=X.isMobileOnly=Ew;X.isMobileSafari=VC;X.isOpera=KC;X.isSafari=GC;X.isSamsungBrowser=fE;X.isSmartTV=Mw;X.isTablet=Tw;X.isWearable=Cw;X.isWinPhone=Dw;X.isWindows=mE;X.isYandex=nE;X.mobileModel=XC;X.mobileVendor=YC;X.osName=$C;X.osVersion=WC;X.parseUserAgent=ps;X.setUserAgent=EC;X.useDeviceData=Hw;X.useDeviceSelectors=EE;X.useMobileOrientation=CE;X.withOrientationChange=PE;function y0(){const e=!!E4("/settings/*"),{user:t}=hc();return t&&(t==null?void 0:t.role)==="default"?null:e?o.jsx("div",{className:"flex w-fit",children:o.jsx(Vt,{to:G.home(),className:"transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover","aria-label":"Home","data-tooltip-id":"footer-item","data-tooltip-content":"Back to workspaces",children:o.jsx(Q1,{className:"h-5 w-5 text-white light:text-slate-800",weight:"fill"})})}):o.jsx("div",{className:"flex w-fit",children:o.jsx(Vt,{to:G.settings.interface(),className:"transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover","aria-label":"Settings","data-tooltip-id":"footer-item","data-tooltip-content":"Open settings",children:o.jsx(Ay,{className:"h-5 w-5 text-white light:text-slate-800",weight:"fill"})})})}const Os={BookOpen:ym,DiscordLogo:ry,GithubLogo:wm,Envelope:cy,LinkSimple:gy,HouseLine:my,Globe:py,Briefcase:Y1,Info:nt};function w0(){const[e,t]=m.useState(!1),{enabled:i}=pt("documentationLink");return m.useEffect(()=>{async function a(){const{footerData:n}=await K.fetchCustomFooterIcons();t(n)}a()},[]),e===!1?null:!Array.isArray(e)||e.length===0?o.jsxs("div",{className:"flex justify-center mb-2",children:[o.jsxs("div",{className:"flex space-x-4",children:[o.jsx("div",{className:"flex w-fit",children:o.jsx(Vt,{to:G.github(),target:"_blank",rel:"noreferrer",className:"transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover","aria-label":"Find us on GitHub","data-tooltip-id":"footer-item","data-tooltip-content":"View Source Code",children:o.jsx(wm,{weight:"fill",className:"h-5 w-5 text-white light:text-slate-800"})})}),i&&o.jsx("div",{className:"flex w-fit",children:o.jsx(Vt,{to:G.docs(),target:"_blank",rel:"noreferrer",className:"transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover","aria-label":"Docs","data-tooltip-id":"footer-item","data-tooltip-content":"Open AnythingLLM help docs",children:o.jsx(ym,{weight:"fill",className:"h-5 w-5 text-white light:text-slate-800"})})}),!Mn&&o.jsx(y0,{})]}),o.jsx(lt,{id:"footer-item",place:"top",delayShow:300,className:"tooltip !text-xs z-99"})]}):o.jsxs("div",{className:"flex justify-center mb-2",children:[o.jsxs("div",{className:"flex space-x-4",children:[e.map((a,n)=>o.jsx("a",{href:a.url,target:"_blank",rel:"noreferrer",className:"transition-all duration-300 flex w-fit h-fit p-2 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover hover:border-slate-100",children:c.createElement((Os==null?void 0:Os[a.icon])??Os.Info,{weight:"fill",className:"h-5 w-5",color:"var(--theme-sidebar-footer-icon-fill)"})},n)),!Mn&&o.jsx(y0,{})]}),o.jsx(lt,{id:"footer-item",place:"top",delayShow:300,className:"tooltip !text-xs z-99"})]})}function Vw({isActive:e,behavior:t,block:i}){const a=m.useRef(null);return m.useEffect(()=>{var n;e&&((n=a.current)==null||n.scrollIntoView({behavior:t,block:i}))},[e]),{ref:a}}function Bi({btnText:e,icon:t,href:i,childOptions:a=[],flex:n=!1,user:r=null,roles:s=[],hidden:l=!1,isChild:d=!1}){const u=NE({key:e}),h=ta(),g=a.length>0,p=IE(r,a),{isExpanded:v,setIsExpanded:f}=TE({storageKey:u,hasVisibleChildren:p,childOptions:a,location:h.pathname}),b=g?!v&&a.some(k=>Il(k.href,h.pathname))||h.pathname===i:Il(i,h.pathname),{ref:w}=Vw({isActive:b,behavior:"instant",block:"center"});if(l)return null;if(d){if(!n&&!s.includes(r==null?void 0:r.role)||n&&r&&!s.includes(r==null?void 0:r.role))return null}else if(!g&&(!n&&!s.includes(r==null?void 0:r.role)||n&&r&&!s.includes(r==null?void 0:r.role))||g&&!p)return null;const y=k=>{if(g){k.preventDefault();const _=!v;f(_),localStorage.setItem(u,JSON.stringify(_))}};return o.jsxs("div",{children:[o.jsxs("div",{className:`
1709
1709
  flex items-center justify-between w-full
1710
1710
  transition-all duration-300
@@ -1736,4 +1736,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1736
1736
  `})})}const rh=2,oh=32,Y2="[a-z][a-z0-9._@-]*";function hN({user:e,hideModal:t}){const{pfp:i,setPfp:a}=Q2(),{t:n}=Qe(),r=async d=>{const u=d.target.files[0];if(!u)return!1;const h=new FormData;h.append("file",u);const{success:g,error:p}=await K.uploadPfp(h);if(!g){Se(n("profile_settings.failed_upload",{error:p}),"error");return}const v=await K.fetchPfp(e.id);a(v),Se(n("profile_settings.upload_success"),"success")},s=async()=>{const{success:d,error:u}=await K.removePfp();if(!d){Se(n("profile_settings.failed_remove",{error:u}),"error");return}a(null)},l=async d=>{d.preventDefault();const u={},h=new FormData(d.target);for(var[g,p]of h.entries())!p||p===null||(u[g]=p);const{success:v,error:f}=await K.updateUser(u);if(v){let b=Et(localStorage.getItem(at),null);b&&(b.username=u.username,b.bio=u.bio,localStorage.setItem(at,JSON.stringify(b))),Se(n("profile_settings.profile_updated"),"success",{clear:!0}),t()}else Se(n("profile_settings.failed_update_user",{error:f}),"error")};return o.jsx(Tc,{isOpen:!0,children:o.jsxs("div",{className:"w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden",children:[o.jsxs("div",{className:"relative p-6 border-b rounded-t border-theme-modal-border",children:[o.jsx("div",{className:"w-full flex gap-x-2 items-center",children:o.jsx("h3",{className:"text-xl font-semibold text-white overflow-hidden overflow-ellipsis whitespace-nowrap",children:n("profile_settings.edit_account")})}),o.jsx("button",{onClick:t,type:"button",className:"absolute top-4 right-4 transition-all duration-300 bg-transparent rounded-lg text-sm p-1 inline-flex items-center hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border",children:o.jsx(Sr,{size:24,weight:"bold",className:"text-white"})})]}),o.jsx("div",{className:"h-full w-full overflow-y-auto",style:{maxHeight:"calc(100vh - 200px)"},children:o.jsxs("form",{onSubmit:l,className:"space-y-6",children:[o.jsx("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8",children:o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsxs("label",{className:"group w-48 h-48 flex flex-col items-center justify-center bg-theme-bg-primary hover:bg-theme-bg-secondary transition-colors duration-300 rounded-full mt-8 border-2 border-dashed border-white light:border-[#686C6F] light:bg-[#E0F2FE] light:hover:bg-transparent cursor-pointer hover:opacity-60",children:[o.jsx("input",{id:"logo-upload",type:"file",accept:"image/*",className:"hidden",onChange:r}),i?o.jsx("img",{src:i,alt:"User profile picture",className:"w-48 h-48 rounded-full object-cover bg-white"}):o.jsxs("div",{className:"flex flex-col items-center justify-center p-3",children:[o.jsx(xm,{className:"w-8 h-8 text-theme-text-secondary m-2"}),o.jsx("span",{className:"text-theme-text-secondary text-opacity-80 text-sm font-semibold",children:n("profile_settings.profile_picture")}),o.jsx("span",{className:"text-theme-text-secondary text-opacity-60 text-xs",children:"800 x 800"})]})]}),i&&o.jsx("button",{type:"button",onClick:s,className:"mt-3 text-theme-text-secondary text-opacity-60 text-sm font-medium hover:underline",children:n("profile_settings.remove_profile_picture")})]})}),o.jsxs("div",{className:"flex flex-col gap-y-4 px-6",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"username",className:"block mb-2 text-sm font-medium text-theme-text-primary",children:n("profile_settings.username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-theme-settings-input-bg placeholder:text-theme-settings-input-placeholder border-gray-500 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5",placeholder:"User's username",minLength:rh,maxLength:oh,pattern:Y2,defaultValue:e.username,required:!0,autoComplete:"off"}),o.jsx("p",{className:"mt-2 text-xs text-white/60",children:n("common.username_requirements")})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"block mb-2 text-sm font-medium text-white",children:n("profile_settings.new_password")}),o.jsx("input",{name:"password",type:"text",className:"border-none bg-theme-settings-input-bg placeholder:text-theme-settings-input-placeholder border-gray-500 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5",placeholder:`${e.username}'s new password`,minLength:8}),o.jsx("p",{className:"mt-2 text-xs text-white/60",children:n("profile_settings.password_description")})]}),o.jsxs("div",{children:[o.jsx("label",{htmlFor:"bio",className:"block mb-2 text-sm font-medium text-white",children:"Bio"}),o.jsx("textarea",{name:"bio",className:"border-none bg-theme-settings-input-bg placeholder:text-theme-settings-input-placeholder border-gray-500 text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 min-h-[100px] resize-y",placeholder:"Tell us about yourself...",defaultValue:e.bio})]}),o.jsxs("div",{className:"flex gap-x-16",children:[o.jsxs("div",{className:"flex flex-col gap-y-6",children:[o.jsx(fN,{}),o.jsx(gN,{})]}),o.jsxs("div",{className:"flex flex-col gap-y-6",children:[o.jsx(bN,{}),o.jsx(vN,{})]})]})]}),o.jsxs("div",{className:"flex justify-between items-center border-t border-theme-modal-border pt-4 p-6",children:[o.jsx("button",{onClick:t,type:"button",className:"transition-all duration-300 text-white hover:bg-zinc-700 px-4 py-2 rounded-lg text-sm",children:n("profile_settings.cancel")}),o.jsx("button",{type:"submit",className:"transition-all duration-300 bg-white text-black hover:opacity-60 px-4 py-2 rounded-lg text-sm",children:n("profile_settings.update_account")})]})]})})]})})}function gN(){const{currentLanguage:e,supportedLanguages:t,getLanguageName:i,changeLanguage:a}=mN(),{t:n}=Qe();return o.jsxs("div",{children:[o.jsx("label",{htmlFor:"userLang",className:"block mb-2 text-sm font-medium text-white",children:n("profile_settings.language")}),o.jsx("select",{name:"userLang",className:"border-none bg-theme-settings-input-bg w-fit mt-2 px-4 focus:outline-primary-button active:outline-primary-button outline-none text-white text-sm rounded-lg block py-2",defaultValue:e||"en",onChange:r=>a(r.target.value),children:t.map(r=>o.jsx("option",{value:r,children:i(r)},r))})]})}function fN(){const{theme:e,setTheme:t,availableThemes:i}=bm(),{t:a}=Qe();return o.jsxs("div",{children:[o.jsx("label",{htmlFor:"theme",className:"block mb-2 text-sm font-medium text-white",children:a("profile_settings.theme")}),o.jsx("select",{name:"theme",value:e,onChange:n=>t(n.target.value),className:"border-none bg-theme-settings-input-bg w-fit px-4 focus:outline-primary-button active:outline-primary-button outline-none text-white text-sm rounded-lg block py-2",children:Object.entries(i).map(([n,r])=>o.jsx("option",{value:n,children:r},n))})]})}function bN(){const[e,t]=m.useState(!0),{t:i}=Qe();m.useEffect(()=>{const n=Ei.getSettings();t(n.autoSubmitSttInput??!0)},[]);const a=n=>{t(n),Ei.updateSettings({autoSubmitSttInput:n})};return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-x-1 mb-2",children:[o.jsx("label",{htmlFor:"autoSubmit",className:"block text-sm font-medium text-white",children:i("customization.chat.auto_submit.title")}),o.jsx("div",{"data-tooltip-id":"auto-submit-info","data-tooltip-content":i("customization.chat.auto_submit.description"),className:"cursor-pointer h-fit",children:o.jsx(nt,{size:16,weight:"bold",className:"text-white"})})]}),o.jsx(Ic,{size:"lg",enabled:e,onChange:a}),o.jsx(lt,{id:"auto-submit-info",place:"bottom",delayShow:300,className:"allm-tooltip !allm-text-xs"})]})}function vN(){const[e,t]=m.useState(!1),{t:i}=Qe();m.useEffect(()=>{const n=Ei.getSettings();t(n.autoPlayAssistantTtsResponse??!1)},[]);const a=n=>{t(n),Ei.updateSettings({autoPlayAssistantTtsResponse:n})};return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-x-1 mb-2",children:[o.jsx("label",{htmlFor:"autoSpeak",className:"block text-sm font-medium text-white",children:i("customization.chat.auto_speak.title")}),o.jsx("div",{"data-tooltip-id":"auto-speak-info","data-tooltip-content":i("customization.chat.auto_speak.description"),className:"cursor-pointer h-fit",children:o.jsx(nt,{size:16,weight:"bold",className:"text-white"})})]}),o.jsx(Ic,{size:"lg",enabled:e,onChange:a}),o.jsx(lt,{id:"auto-speak-info",place:"bottom",delayShow:300,className:"allm-tooltip !allm-text-xs"})]})}function kN(){const{t:e}=Qe(),t=pN(),{user:i}=hc(),a=m.useRef(),n=m.useRef(),[r,s]=m.useState(!1),[l,d]=m.useState(!1),[u,h]=m.useState(""),g=v=>{a.current&&!a.current.contains(v.target)&&!n.current.contains(v.target)&&s(!1)},p=()=>{d(!0),s(!1)};return m.useEffect(()=>(r&&document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[r]),m.useEffect(()=>{(async()=>{const f=await K.fetchSupportEmail();h(f!=null&&f.email?`mailto:${f.email}`:G.mailToMintplex())})()},[]),t===null?null:o.jsxs("div",{className:"absolute top-3 right-4 md:top-9 md:right-10 w-fit h-fit z-40",children:[o.jsx("button",{ref:n,onClick:()=>s(!r),type:"button",className:"uppercase transition-all duration-300 w-[35px] h-[35px] text-base font-semibold rounded-full flex items-center bg-theme-action-menu-bg hover:bg-theme-action-menu-item-hover justify-center text-white p-2 hover:border-slate-100 hover:border-opacity-50 border-transparent border",children:t==="multi"?o.jsx(yN,{}):o.jsx(yy,{size:14})}),r&&o.jsx("div",{ref:a,className:"w-fit rounded-lg absolute top-12 right-0 bg-theme-action-menu-bg p-2 flex items-center-justify-center",children:o.jsxs("div",{className:"flex flex-col gap-y-2",children:[t==="multi"&&!!i&&o.jsx("button",{onClick:p,className:"border-none text-white hover:bg-theme-action-menu-item-hover w-full text-left px-4 py-1.5 rounded-md",children:e("profile_settings.account")}),o.jsx("a",{href:u,className:"text-white hover:bg-theme-action-menu-item-hover w-full text-left px-4 py-1.5 rounded-md",children:e("profile_settings.support")}),o.jsx("button",{onClick:()=>{window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),window.localStorage.removeItem(O6),window.localStorage.removeItem(Bu),window.location.replace(G.home())},type:"button",className:"text-white hover:bg-theme-action-menu-item-hover w-full text-left px-4 py-1.5 rounded-md",children:e("profile_settings.signout")})]})}),i&&l&&o.jsx(hN,{user:i,hideModal:()=>d(!1)})]})}function yN(){var i;const{pfp:e}=Q2(),t=dc();return e?o.jsx("div",{className:"w-[35px] h-[35px] rounded-full flex-shrink-0 overflow-hidden transition-all duration-300 bg-gray-100 hover:border-slate-100 hover:border-opacity-50 border-transparent border hover:opacity-60",children:o.jsx("img",{src:e,alt:"User profile picture",className:"w-full h-full object-cover"})}):((i=t==null?void 0:t.username)==null?void 0:i.slice(0,2))||"AA"}function sh({children:e}){return o.jsxs("div",{className:"w-auto h-auto",children:[o.jsx(kN,{}),e]})}function Nc(){const[e,t]=m.useState(null),[i,a]=m.useState(!1),[n,r]=m.useState(!1);return m.useEffect(()=>{(async()=>{const l=await K.isOnboardingComplete(),{MultiUserMode:d,RequiresAuth:u}=await K.keys();if(r(d),l===!1){a(!0),t(!0);return}if(!d&&!u){t(!0);return}if(!d&&u){if(!localStorage.getItem(Ke)){t(!1);return}const f=await W0();t(f);return}const h=localStorage.getItem(at),g=localStorage.getItem(Ke);if(!h||!g){t(!1);return}if(!await W0()){localStorage.removeItem(at),localStorage.removeItem(Ke),localStorage.removeItem(Jt),t(!1);return}t(!0)})()},[]),{isAuthd:e,shouldRedirectToOnboarding:i,multiUserMode:n}}function tt({Component:e,hideUserMenu:t=!1}){const{isAuthd:i,shouldRedirectToOnboarding:a,multiUserMode:n}=Nc();if(i===null)return o.jsx(_a,{});if(a)return o.jsx(Qi,{to:G.onboarding.home()});const r=dc();return i&&((r==null?void 0:r.role)==="admin"||!n)?t?o.jsx(es,{children:o.jsx(e,{})}):o.jsx(es,{children:o.jsx(sh,{children:o.jsx(e,{})})}):o.jsx(Qi,{to:G.home()})}function Li({Component:e}){const{isAuthd:t,shouldRedirectToOnboarding:i,multiUserMode:a}=Nc();if(t===null)return o.jsx(_a,{});if(i)return o.jsx(Qi,{to:G.onboarding.home()});const n=dc();return t&&((n==null?void 0:n.role)!=="default"||!a)?o.jsx(es,{children:o.jsx(sh,{children:o.jsx(e,{})})}):o.jsx(Qi,{to:G.home()})}function Vd({Component:e}){const{isAuthd:t,shouldRedirectToOnboarding:i,multiUserMode:a}=Nc();return t===null?o.jsx(_a,{}):i?o.jsx(Qi,{to:G.onboarding.home()}):t&&!a?o.jsx(es,{children:o.jsx(e,{})}):o.jsx(Qi,{to:G.home()})}function Y0({Component:e}){const{isAuthd:t,shouldRedirectToOnboarding:i}=Nc();return t===null?o.jsx(_a,{}):i?o.jsx(Qi,{to:"/onboarding"}):t?o.jsx(es,{children:o.jsx(sh,{children:o.jsx(e,{})})}):o.jsx(Qi,{to:G.login(!0)})}var X2={exports:{}};(function(e,t){(function(i,a){a()})(Ti,function(){function i(u,h){return typeof h>"u"?h={autoBom:!1}:typeof h!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),h={autoBom:!h}),h.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function a(u,h,g){var p=new XMLHttpRequest;p.open("GET",u),p.responseType="blob",p.onload=function(){d(p.response,h,g)},p.onerror=function(){console.error("could not download file")},p.send()}function n(u){var h=new XMLHttpRequest;h.open("HEAD",u,!1);try{h.send()}catch{}return 200<=h.status&&299>=h.status}function r(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(h)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ti=="object"&&Ti.global===Ti?Ti:void 0,l=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),d=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(u,h,g){var p=s.URL||s.webkitURL,v=document.createElement("a");h=h||u.name||"download",v.download=h,v.rel="noopener",typeof u=="string"?(v.href=u,v.origin===location.origin?r(v):n(v.href)?a(u,h,g):r(v,v.target="_blank")):(v.href=p.createObjectURL(u),setTimeout(function(){p.revokeObjectURL(v.href)},4e4),setTimeout(function(){r(v)},0))}:"msSaveOrOpenBlob"in navigator?function(u,h,g){if(h=h||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(i(u,g),h);else if(n(u))a(u,h,g);else{var p=document.createElement("a");p.href=u,p.target="_blank",setTimeout(function(){r(p)})}}:function(u,h,g,p){if(p=p||open("","_blank"),p&&(p.document.title=p.document.body.innerText="downloading..."),typeof u=="string")return a(u,h,g);var v=u.type==="application/octet-stream",f=/constructor/i.test(s.HTMLElement)||s.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||v&&f||l)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var _=w.result;_=b?_:_.replace(/^data:[^;]*;/,"data:attachment/file;"),p?p.location.href=_:location=_,p=null},w.readAsDataURL(u)}else{var y=s.URL||s.webkitURL,k=y.createObjectURL(u);p?p.location=k:location.href=k,p=null,setTimeout(function(){y.revokeObjectURL(k)},4e4)}});s.saveAs=d.saveAs=d,e.exports=d})})(X2);var lh=X2.exports;const wN=Cn(lh),aO=bp({__proto__:null,default:wN},[lh]);function e_({recoveryCodes:e,onDownloadComplete:t,onClose:i}){const[a,n]=m.useState(!1),r=()=>{const d=new Blob([e.join(`
1737
1737
  `)],{type:"text/plain"});lh.saveAs(d,"recovery_codes.txt"),n(!0)},s=()=>{a&&(t(),i())},l=()=>{navigator.clipboard.writeText(e.join(`,
1738
1738
  `)).then(()=>{Se("Recovery codes copied to clipboard","success",{clear:!0})})};return o.jsx(Tc,{isOpen:!0,children:o.jsxs("div",{className:"w-full max-w-2xl bg-theme-bg-secondary rounded-lg shadow border-2 border-theme-modal-border overflow-hidden",children:[o.jsx("div",{className:"relative p-6 border-b rounded-t border-theme-modal-border",children:o.jsxs("div",{className:"w-full flex gap-x-2 items-center",children:[o.jsx(hy,{size:24,className:"text-white",weight:"bold"}),o.jsx("h3",{className:"text-xl font-semibold text-white overflow-hidden overflow-ellipsis whitespace-nowrap",children:"Recovery Codes"})]})}),o.jsxs("div",{className:"h-full w-full overflow-y-auto",style:{maxHeight:"calc(100vh - 200px)"},children:[o.jsxs("div",{className:"py-7 px-9 space-y-2 flex-col",children:[o.jsxs("p",{className:"text-sm text-white flex flex-col",children:["In order to reset your password in the future, you will need these recovery codes. Download or copy your recovery codes to save them."," ",o.jsx("br",{}),o.jsx("b",{className:"mt-4",children:"These recovery codes are only shown once!"})]}),o.jsx("div",{className:`border-none bg-theme-settings-input-bg text-white hover:text-primary-button
1739
- flex items-center justify-center rounded-md mt-6 cursor-pointer`,onClick:l,children:o.jsx("ul",{className:"space-y-2 md:p-6 p-4",children:e.map((d,u)=>o.jsx("li",{className:"md:text-sm text-xs",children:d},u))})})]}),o.jsx("div",{className:"flex w-full justify-end items-center p-6 space-x-2 border-t border-theme-modal-border rounded-b",children:o.jsx("button",{type:"button",className:"transition-all duration-300 bg-white text-black hover:opacity-60 px-4 py-2 rounded-lg text-sm flex items-center gap-x-2",onClick:a?s:r,children:a?"Close":o.jsxs(o.Fragment,{children:[o.jsx(ly,{weight:"bold",size:18}),o.jsx("p",{children:"Download"})]})})})]})]})})}function _N(){const{t:e}=Qe(),[t,i]=m.useState(!1),[a,n]=m.useState(null),[r,s]=m.useState([]),[l,d]=m.useState(!1),[u,h]=m.useState(null),[g,p]=m.useState(null),{isOpen:v,openModal:f,closeModal:b}=W2(),w=async k=>{n(null),i(!0),k.preventDefault();const _={},x=new FormData(k.target);for(var[A,z]of x.entries())_[A]=z;const{valid:S,token:M,message:T,recoveryCodes:D}=await K.requestToken(_);S&&M?(h(M),D?(s(D),f()):(window.localStorage.setItem(Ke,M),window.location=G.home())):(n(T),i(!1)),i(!1)},y=()=>{d(!0)};return m.useEffect(()=>{l&&u&&(window.localStorage.setItem(Ke,u),window.location=G.home())},[l,u]),m.useEffect(()=>{(async()=>{const{appName:_}=await K.fetchCustomAppName();p(_||""),i(!1)})()},[]),o.jsxs(o.Fragment,{children:[o.jsxs("form",{onSubmit:w,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-3xl leading-[28px] font-medium text-center white-space-nowrap block",children:e("login.multi-user.welcome")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:e("login.sign-in",{appName:g||"AnythingLLM"})})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"Password"}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),a&&o.jsxs("p",{className:"text-red-400 text-sm",children:["Error: ",a]})]})}),o.jsx("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:o.jsx("button",{disabled:t,type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:e(t?"login.multi-user.validating":"login.multi-user.login")})})]}),o.jsx(Tc,{isOpen:v,noPortal:!0,children:o.jsx(e_,{recoveryCodes:r,onDownloadComplete:y,onClose:b})})]})}const xN=({onSubmit:e,setShowRecoveryForm:t})=>{const[i,a]=m.useState(""),[n,r]=m.useState(Array(2).fill("")),s=(d,u)=>{const h=[...n];h[d]=u,r(h)},l=d=>{d.preventDefault();const u=n.filter(h=>h.trim()!=="");e(i,u)};return o.jsxs("form",{onSubmit:l,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-3xl leading-[28px] font-medium text-center white-space-nowrap block",children:Un("login.password-reset.title")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:Un("login.password-reset.description")})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:Un("login.multi-user.placeholder-username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:i,onChange:d=>a(d.target.value),required:!0,autoComplete:"off"})]}),o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:Un("login.password-reset.recovery-codes")}),n.map((d,u)=>o.jsx("input",{type:"text",name:`recoveryCode${u+1}`,className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:d,onChange:h=>s(u,h.target.value),required:!0,autoComplete:"off"},u))]})]})}),o.jsxs("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:[o.jsx("button",{type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:Un("login.password-reset.title")}),o.jsx("button",{type:"button",className:"text-zinc-200 light:text-zinc-600 hover:text-sky-300 light:hover:text-sky-600 hover:underline text-sm flex gap-x-1",onClick:()=>t(!1),children:Un("login.password-reset.back-to-login")})]})]})},zN=({onSubmit:e})=>{const[t,i]=m.useState(""),[a,n]=m.useState(""),r=s=>{s.preventDefault(),e(t,a)};return o.jsxs("form",{onSubmit:r,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-[38px] leading-[28px] font-medium text-center white-space-nowrap block",children:"Reset Password"})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:"Enter your new password."})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"New Password"}),o.jsx("input",{type:"password",name:"newPassword",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:t,onChange:s=>i(s.target.value),required:!0})]}),o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"Confirm Password"}),o.jsx("input",{type:"password",name:"confirmPassword",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:a,onChange:s=>n(s.target.value),required:!0})]})]})}),o.jsx("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:o.jsx("button",{type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:"Reset Password"})})]})};function AN(){const{t:e}=Qe(),[t,i]=m.useState(!1),[a,n]=m.useState(null),[r,s]=m.useState([]),[l,d]=m.useState(!1),[u,h]=m.useState(null),[g,p]=m.useState(null),[v,f]=m.useState(!1),[b,w]=m.useState(!1),[y,k]=m.useState(null),{isOpen:_,openModal:x,closeModal:A}=W2(),z=async F=>{n(null),i(!0),F.preventDefault();const O={},Z=new FormData(F.target);for(var[R,ce]of Z.entries())O[R]=ce;const{valid:ae,user:Q,token:I,message:U,recoveryCodes:B}=await K.requestToken(O);ae&&I&&Q?(h(Q),p(I),B?(s(B),x()):(window.localStorage.setItem(at,JSON.stringify(Q)),window.localStorage.setItem(Ke,I),window.location=G.home())):(n(U),i(!1)),i(!1)},S=()=>d(!0),M=()=>f(!0),T=async(F,O)=>{const{success:Z,resetToken:R,error:ce}=await K.recoverAccount(F,O);Z&&R?(window.localStorage.setItem("resetToken",R),f(!1),w(!0)):Se(ce,"error",{clear:!0})},D=async(F,O)=>{const Z=window.localStorage.getItem("resetToken");if(Z){const{success:R,error:ce}=await K.resetPassword(Z,F,O);R?(window.localStorage.removeItem("resetToken"),w(!1),Se("Password reset successful","success",{clear:!0})):Se(ce,"error",{clear:!0})}else Se("Invalid reset token","error",{clear:!0})};return m.useEffect(()=>{l&&u&&g&&(window.localStorage.setItem(at,JSON.stringify(u)),window.localStorage.setItem(Ke,g),window.location=G.home())},[l,u,g]),m.useEffect(()=>{(async()=>{const{appName:O}=await K.fetchCustomAppName();k(O||""),i(!1)})()},[]),v?o.jsx(xN,{onSubmit:T,setShowRecoveryForm:f}):b?o.jsx(zN,{onSubmit:D}):o.jsxs(o.Fragment,{children:[o.jsxs("form",{onSubmit:z,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-[38px] leading-[28px] font-medium text-center white-space-nowrap block",children:e("login.multi-user.welcome")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:e("login.sign-in",{appName:y||"AnythingLLM"})})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:e("login.multi-user.placeholder-username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),o.jsxs("div",{className:"w-full px-0 flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:e("login.multi-user.placeholder-password")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),a&&o.jsxs("p",{className:"text-red-400 text-sm",children:["Error: ",a]})]})}),o.jsxs("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:[o.jsx("button",{disabled:t,type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:e(t?"login.multi-user.validating":"login.multi-user.login")}),o.jsxs("button",{type:"button",className:"text-zinc-200 light:text-zinc-600 hover:text-sky-300 light:hover:text-sky-600 hover:underline text-sm flex gap-x-1",onClick:M,children:[e("login.multi-user.forgot-pass"),"?",o.jsx("b",{className:"font-semibold text-sky-300 light:text-sky-600",children:e("login.multi-user.reset")})]})]})]}),o.jsx(Tc,{isOpen:_,noPortal:!0,children:o.jsx(e_,{recoveryCodes:r,onDownloadComplete:S,onClose:A})})]})}function jN({mode:e="single"}){const{loginLogo:t,isCustomLogo:i}=Ry();return o.jsxs("div",{className:"fixed inset-0 bg-zinc-950 light:bg-slate-50 flex flex-col items-center justify-center overflow-hidden",children:[o.jsx("img",{src:t,alt:"Logo",className:`max-h-[80px] ${i?"rounded-lg":""}`,style:{objectFit:"contain"}}),e==="single"?o.jsx(_N,{}):o.jsx(AN,{})]})}function LN(e=!1){const[t,i]=m.useState({loading:!0,requiresAuth:!1,mode:"single"});return m.useEffect(()=>{async function a(){if(!window)return;if(!K.needsAuthCheck()&&e===!1){i({loading:!1,requiresAuth:!1,mode:"multi"});return}const n=await K.keys();if(n!=null&&n.MultiUserMode){const r=window.localStorage.getItem(Ke);if(r)if(e?!1:await K.checkAuth(r)){i({loading:!1,requiresAuth:!1,mode:"multi"});return}else{i({loading:!1,requiresAuth:!0,mode:"multi"}),window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt);return}else{i({loading:!1,requiresAuth:!0,mode:"multi"});return}}else{if(!((n==null?void 0:n.RequiresAuth)||!1)){i({loading:!1,requiresAuth:!1,mode:"single"});return}const s=window.localStorage.getItem(Ke);if(s)if(e?!1:await K.checkAuth(s)){i({loading:!1,requiresAuth:!1,mode:"single"});return}else{i({loading:!1,requiresAuth:!0,mode:"single"}),window.localStorage.removeItem(Ke),window.localStorage.removeItem(at),window.localStorage.removeItem(Jt);return}else{i({loading:!1,requiresAuth:!0,mode:"single"});return}}}a()},[]),t}function t_(){return new URLSearchParams(window.location.search)}function SN(){const[e,t]=m.useState(!0),[i,a]=m.useState({enabled:!1,noLogin:!1,noLoginRedirect:null});return m.useEffect(()=>{async function n(){try{const r=await K.keys();a({enabled:r==null?void 0:r.SimpleSSOEnabled,noLogin:r==null?void 0:r.SimpleSSONoLogin,noLoginRedirect:r==null?void 0:r.SimpleSSONoLoginRedirect})}catch(r){console.error(r)}finally{t(!1)}}n()},[]),{loading:e,ssoConfig:i}}function MN(){const e=t_(),{loading:t,ssoConfig:i}=SN(),{loading:a,requiresAuth:n,mode:r}=LN(!!e.get("nt"));return a||t?o.jsx(_a,{}):i.enabled&&i.noLogin?i.noLoginRedirect&&!e.has("token")?window.location.replace(i.noLoginRedirect):o.jsx(Qi,{to:G.sso.login()}):n===!1?o.jsx(Qi,{to:G.home()}):o.jsx(jN,{mode:r})}function PN(){const e=t_(),t=e.get("redirectTo")||G.home(),[i,a]=m.useState(!1),[n,r]=m.useState(null);return m.useEffect(()=>{try{if(!e.get("token"))throw new Error("No token provided.");window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),K.simpleSSOLogin(e.get("token")).then(s=>{if(!s.valid)throw new Error(s.message);window.localStorage.setItem(at,JSON.stringify(s.user)),window.localStorage.setItem(Ke,s.token),window.localStorage.setItem(Jt,Number(new Date)),a(s.valid)}).catch(s=>{r(s.message)})}catch(s){r(s.message)}},[]),n?o.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-primary flex items-center justify-center flex-col gap-4",children:[o.jsx("p",{className:"text-theme-text-primary font-mono text-lg",children:n}),o.jsx("p",{className:"text-theme-text-secondary font-mono text-sm",children:"Please contact the system administrator about this error."})]}):i?window.location.replace(t):o.jsx(_a,{})}function i_(){const e=ia();m.useEffect(()=>{async function t(){await K.isOnboardingComplete()!==!1&&e(G.home())}t()},[])}function CN(){const{isLight:e}=bm();return o.jsxs("svg",{viewBox:"0 0 818 514",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-auto",children:[o.jsx("g",{filter:"url(#filter0_i_onboarding)",children:o.jsx("path",{d:"M817.643 77.9966V435.862C817.643 478.86 782.656 513.847 739.646 513.847H598.7C575.046 513.847 552.952 503.3 538.072 484.907L478.122 410.756C470.908 401.84 470.837 389.328 477.943 380.329L499.609 352.901C504.264 347.009 511.228 343.628 518.739 343.628C526.251 343.628 533.143 346.973 537.798 352.818L595.593 425.47C598.391 428.969 602.557 430.981 607.033 430.981H715.243C726.004 430.981 734.766 422.22 734.766 411.458V102.4C734.766 91.627 726.004 82.8773 715.243 82.8773H606.938C602.462 82.8773 598.295 84.8773 595.498 88.3771L279.643 484.479C264.75 503.145 242.525 513.847 218.657 513.847H77.9847C34.9866 513.847 0 478.86 0 435.862V77.9966C0 34.9866 34.9866 0 77.9847 0H219.681C243.716 0 266.036 10.8329 280.928 29.7249L338.426 103.115C345.437 112.019 345.425 124.435 338.39 133.328L316.57 160.898C311.927 166.767 304.963 170.147 297.463 170.147C289.964 170.147 283.059 166.802 278.405 160.957L220.764 88.3771C217.979 84.8773 213.812 82.8773 209.336 82.8773H102.388C91.627 82.8773 82.8654 91.627 82.8654 102.4V411.458C82.8654 422.22 91.627 430.981 102.388 430.981H209.289C213.765 430.981 217.931 428.969 220.717 425.482L536.727 29.3559C551.607 10.7019 573.832 0 597.7 0H739.646C782.656 0 817.643 34.9866 817.643 77.9966Z",fill:"url(#paint0_linear_onboarding)",fillOpacity:e?.5:.28})}),o.jsxs("defs",{children:[o.jsxs("filter",{id:"filter0_i_onboarding",x:"0",y:"0",width:"817.643",height:"525.847",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[o.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),o.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.jsx("feOffset",{dy:"12"}),o.jsx("feGaussianBlur",{stdDeviation:"6"}),o.jsx("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.jsx("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})]}),o.jsx("linearGradient",{id:"paint0_linear_onboarding",x1:"15.9568",y1:"-4.97115",x2:"720.527",y2:"514.346",gradientUnits:"userSpaceOnUse",children:e?o.jsxs(o.Fragment,{children:[o.jsx("stop",{stopColor:"#B0BAC5"}),o.jsx("stop",{offset:"0.538462",stopColor:"#FFFFFF",stopOpacity:"0.4"}),o.jsx("stop",{offset:"1",stopColor:"#A8B0BE"})]}):o.jsxs(o.Fragment,{children:[o.jsx("stop",{stopColor:"#3C5769"}),o.jsx("stop",{offset:"0.538462",stopColor:"#9FA5C2",stopOpacity:"0.253846"}),o.jsx("stop",{offset:"1",stopColor:"#40435E"})]})})]})]})}function EN(){const e=ia();i_();const{t}=Qe();return o.jsxs("div",{className:"relative w-screen h-screen flex flex-col overflow-hidden bg-zinc-950 light:bg-slate-50",children:[o.jsx("div",{className:"absolute inset-0 light:hidden",style:{background:"radial-gradient(ellipse 160% 100% at 50% 0%, rgba(130, 152, 178, 0.45) 0%, rgba(60, 87, 105, 0.25) 45%, transparent 90%)"}}),o.jsx("div",{className:"absolute inset-0 hidden light:block",style:{background:"radial-gradient(ellipse 160% 100% at 50% 0%, rgba(176, 200, 224, 0.7) 0%, rgba(195, 213, 230, 0.45) 50%, transparent 90%)"}}),o.jsx("div",{className:"relative z-10 flex justify-center pt-[58px]",children:o.jsx("p",{className:"text-white/80 light:text-slate-600 text-3xl font-semibold",children:"AnythingLLM"})}),o.jsxs("div",{className:"relative z-10 flex-1 flex flex-col items-center justify-center -mt-8",children:[o.jsx("div",{className:"absolute flex items-center justify-center w-full px-4 md:px-0 md:max-w-[852px] md:w-[56%]",children:o.jsx(CN,{})}),o.jsx("h1",{className:"relative font-medium text-white light:text-slate-700 text-[64px] md:text-[96px] lg:text-[160px] leading-none tracking-[-0.06em] select-none",children:t("onboarding.home.welcome")}),o.jsx("button",{type:"button",onClick:()=>e(G.onboarding.llmPreference()),className:"relative border-none z-10 h-[36px] w-[300px] py-2.5 px-5 rounded-lg bg-slate-50 hover:bg-slate-300 font-medium text-sm mt-[42px] text-zinc-900 light:text-white light:bg-slate-900 light:hover:bg-slate-800 text-center flex justify-center items-center transition-colors duration-200",children:t("onboarding.home.getStarted")})]})]})}const X0=[{name:"OpenAI",value:"openai",logo:wc,options:e=>o.jsx(Bw,{settings:e}),description:"The standard option for most non-commercial use."},{name:"Azure OpenAI",value:"azure",logo:xc,options:e=>o.jsx(Kw,{settings:e}),description:"The enterprise option of OpenAI hosted on Azure services."},{name:"Anthropic",value:"anthropic",logo:Tm,options:e=>o.jsx(Ww,{settings:e}),description:"A friendly AI Assistant hosted by Anthropic."},{name:"Gemini",value:"gemini",logo:zc,options:e=>o.jsx(Jw,{settings:e}),description:"Google's largest and most capable AI model"},{name:"NVIDIA NIM",value:"nvidia-nim",logo:Wm,options:e=>o.jsx(f2,{settings:e}),description:"Run full parameter LLMs directly on your NVIDIA RTX GPU using NVIDIA NIM."},{name:"HuggingFace",value:"huggingface",logo:Om,options:e=>o.jsx(a2,{settings:e}),description:"Access 150,000+ open-source LLMs and the world's AI community"},{name:"Ollama",value:"ollama",logo:Ac,options:e=>o.jsx(Qw,{settings:e}),description:"Run LLMs locally on your own machine."},{name:"Dell Pro AI Studio",value:"dpais",logo:Zm,options:e=>o.jsx(v2,{settings:e}),description:"Run powerful LLMs quickly on NPU powered by Dell Pro AI Studio."},{name:"LM Studio",value:"lmstudio",logo:jc,options:e=>o.jsx($w,{settings:e}),description:"Discover, download, and run thousands of cutting edge LLMs in a few clicks."},{name:"Docker Model Runner",value:"docker-model-runner",logo:Xm,options:e=>o.jsx(O2,{settings:e}),description:"Run LLMs using Docker Model Runner."},{name:"Lemonade",value:"lemonade",logo:Ec,options:e=>o.jsx(V2,{settings:e}),description:"Run local LLMs, ASR, TTS, and more in a single unified AI runtime."},{name:"Local AI",value:"localai",logo:Lc,options:e=>o.jsx(Zw,{settings:e}),description:"Run LLMs locally on your own machine."},{name:"SambaNova",value:"sambanova",logo:th,options:e=>o.jsx(H2,{settings:e}),description:"Run open source models from SambaNova."},{name:"Novita AI",value:"novita",logo:Im,options:e=>o.jsx(Yw,{settings:e}),description:"Reliable, Scalable, and Cost-Effective for LLMs from Novita AI"},{name:"KoboldCPP",value:"koboldcpp",logo:Vm,options:e=>o.jsx(l2,{settings:e}),description:"Run local LLMs using koboldcpp."},{name:"Oobabooga Web UI",value:"textgenwebui",logo:qm,options:e=>o.jsx(c2,{settings:e}),description:"Run local LLMs using Oobabooga's Text Generation Web UI."},{name:"Together AI",value:"togetherai",logo:Nm,options:e=>o.jsx(e2,{settings:e}),description:"Run open source models from Together AI."},{name:"Fireworks AI",value:"fireworksai",logo:Dm,options:e=>o.jsx(t2,{settings:e}),description:"The fastest and most efficient inference engine to build production-ready, compound AI systems."},{name:"Mistral",value:"mistral",logo:Sc,options:e=>o.jsx(i2,{settings:e}),description:"Run open source models from Mistral AI."},{name:"Perplexity AI",value:"perplexity",logo:Rm,options:e=>o.jsx(n2,{settings:e}),description:"Run powerful and internet-connected models hosted by Perplexity AI."},{name:"OpenRouter",value:"openrouter",logo:Mc,options:e=>o.jsx(r2,{settings:e}),description:"A unified interface for LLMs."},{name:"Groq",value:"groq",logo:Hm,options:e=>o.jsx(o2,{settings:e}),description:"The fastest LLM inferencing available for real-time AI applications."},{name:"Cohere",value:"cohere",logo:Pc,options:e=>o.jsx(s2,{settings:e}),description:"Run Cohere's powerful Command models."},{name:"LiteLLM",value:"litellm",logo:Cc,options:e=>o.jsx(d2,{settings:e}),description:"Run LiteLLM's OpenAI compatible proxy for various LLMs."},{name:"DeepSeek",value:"deepseek",logo:Um,options:e=>o.jsx(p2,{settings:e}),description:"Run DeepSeek's powerful LLMs."},{name:"PPIO",value:"ppio",logo:$m,options:e=>o.jsx(b2,{settings:e}),description:"Run stable and cost-efficient open-source LLM APIs, such as DeepSeek, Llama, Qwen etc."},{name:"APIpie",value:"apipie",logo:Bm,options:e=>o.jsx(m2,{settings:e}),description:"A unified API of AI services from leading providers"},{name:"Generic OpenAI",value:"generic-openai",logo:_c,options:e=>o.jsx(Gw,{settings:e}),description:"Connect to any OpenAi-compatible service via a custom configuration"},{name:"AWS Bedrock",value:"bedrock",logo:Fm,options:e=>o.jsx(u2,{settings:e}),description:"Run powerful foundation models privately with AWS Bedrock."},{name:"Privatemode",value:"privatemode",logo:eh,options:e=>o.jsx(R2,{settings:e}),description:"Run LLMs with end-to-end encryption."},{name:"xAI",value:"xai",logo:Gm,options:e=>o.jsx(h2,{settings:e}),description:"Run xAI's powerful LLMs like Grok-2 and more."},{name:"Z.AI",value:"zai",logo:Km,options:e=>o.jsx(g2,{settings:e}),description:"Run Z.AI's powerful GLM models."},{name:"Moonshot AI",value:"moonshotai",logo:Jm,options:e=>o.jsx(k2,{settings:e}),description:"Run Moonshot AI's powerful LLMs."},{name:"CometAPI",value:"cometapi",logo:Qm,options:e=>o.jsx(Xw,{settings:e}),description:"500+ AI Models all in one API."},{name:"GiteeAI",value:"giteeai",logo:Ym,options:e=>o.jsx(y2,{settings:e}),description:"Run GiteeAI's powerful LLMs."},{name:"Minimax",value:"minimax",logo:ih,options:e=>o.jsx(q2,{settings:e}),description:"Run Minimax's powerful M2 LLMs."},{name:"Cerebras",value:"cerebras",logo:ah,options:e=>o.jsx(F2,{settings:e}),description:"Run models at instant speed on Cerebras inference."}];function TN({setHeader:e,setForwardBtn:t,setBackBtn:i}){var A;const{t:a}=Qe(),[n,r]=m.useState(""),[s,l]=m.useState([]),[d,u]=m.useState(null),[h,g]=m.useState(null),p=m.useRef(null),v=m.useRef(null),f=window.location.hostname.includes("useanything.com"),b=ia(),w=a("onboarding.llm.title"),y=a("onboarding.llm.description");m.useEffect(()=>{async function z(){const S=await K.keys();g(S),u((S==null?void 0:S.LLMProvider)||"openai")}z()},[]);async function k(){try{await K.markOnboardingComplete(),console.log("Onboarding complete")}catch(z){console.error("Onboarding complete failed",z)}finally{v.current&&v.current.click()}}function _(){b(G.onboarding.home())}const x=async z=>{z.preventDefault();const S=z.target,M={},T=new FormData(S);M.LLMProvider=d,M.EmbeddingEngine="native",M.VectorDB="lancedb";for(var[D,F]of T.entries())M[D]=F;const{error:O}=await K.updateSystem(M);if(O){Se(`Failed to save LLM settings: ${O}`,"error");return}b(G.onboarding.userSetup())};return m.useEffect(()=>{e({title:w,description:y}),t({showing:!0,disabled:!1,onClick:k}),i({showing:!0,disabled:!1,onClick:_})},[]),m.useEffect(()=>{const z=X0.filter(S=>S.name.toLowerCase().includes(n.toLowerCase()));l(z)},[n,d]),o.jsx("div",{children:o.jsxs("form",{ref:p,onSubmit:x,className:"w-full",children:[o.jsxs("div",{className:"w-full relative border-theme-chat-input-border shadow border-2 rounded-lg text-white",children:[o.jsx("div",{className:"w-full p-4 absolute top-0 rounded-t-lg backdrop-blur-sm",children:o.jsxs("div",{className:"w-full flex items-center sticky top-0",children:[o.jsx(fc,{size:16,weight:"bold",className:"absolute left-4 z-30 text-theme-text-primary"}),o.jsx("input",{type:"text",placeholder:"Search LLM providers",className:"bg-theme-bg-secondary placeholder:text-theme-text-secondary z-20 pl-10 h-[38px] rounded-full w-full px-4 py-1 text-sm border border-theme-chat-input-border outline-none focus:outline-primary-button active:outline-primary-button outline-none text-theme-text-primary",onChange:z=>r(z.target.value),autoComplete:"off",onKeyDown:z=>{z.key==="Enter"&&z.preventDefault()}})]})}),o.jsx("div",{className:"px-4 pt-[70px] flex flex-col gap-y-1 max-h-[390px] overflow-y-auto no-scroll pb-4",children:s.map(z=>z.value==="native"&&f?null:o.jsx(U2,{name:z.name,value:z.value,image:z.logo,description:z.description,checked:d===z.value,onClick:()=>u(z.value)},z.name))})]}),o.jsx("div",{className:"mt-4 flex flex-col gap-y-1",children:d&&((A=X0.find(z=>z.value===d))==null?void 0:A.options(h))}),o.jsx("button",{type:"submit",ref:v,hidden:!0,"aria-hidden":"true"})]})})}var IN="Expected a function",ev=0/0,NN="[object Symbol]",DN=/^\s+|\s+$/g,ON=/^[-+]0x[0-9a-f]+$/i,RN=/^0b[01]+$/i,HN=/^0o[0-7]+$/i,VN=parseInt,qN=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,FN=typeof self=="object"&&self&&self.Object===Object&&self,UN=qN||FN||Function("return this")(),BN=Object.prototype,GN=BN.toString,KN=Math.max,WN=Math.min,qd=function(){return UN.Date.now()};function $N(e,t,i){var a,n,r,s,l,d,u=0,h=!1,g=!1,p=!0;if(typeof e!="function")throw new TypeError(IN);t=tv(t)||0,gp(i)&&(h=!!i.leading,g="maxWait"in i,r=g?KN(tv(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function v(z){var S=a,M=n;return a=n=void 0,u=z,s=e.apply(M,S),s}function f(z){return u=z,l=setTimeout(y,t),h?v(z):s}function b(z){var S=z-d,M=z-u,T=t-S;return g?WN(T,r-M):T}function w(z){var S=z-d,M=z-u;return d===void 0||S>=t||S<0||g&&M>=r}function y(){var z=qd();if(w(z))return k(z);l=setTimeout(y,b(z))}function k(z){return l=void 0,p&&a?v(z):(a=n=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,a=d=n=l=void 0}function x(){return l===void 0?s:k(qd())}function A(){var z=qd(),S=w(z);if(a=arguments,n=this,d=z,S){if(l===void 0)return f(d);if(g)return l=setTimeout(y,t),v(d)}return l===void 0&&(l=setTimeout(y,t)),s}return A.cancel=_,A.flush=x,A}function gp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ZN(e){return!!e&&typeof e=="object"}function JN(e){return typeof e=="symbol"||ZN(e)&&GN.call(e)==NN}function tv(e){if(typeof e=="number")return e;if(JN(e))return ev;if(gp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(DN,"");var i=RN.test(e);return i||HN.test(e)?VN(e.slice(2),i?2:8):ON.test(e)?ev:+e}var QN=$N;const fp=Cn(QN);function YN(){const{t:e}=Qe(),{enabled:t}=pt("multiUser");return o.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-container flex",children:[o.jsx(Fw,{}),o.jsxs("div",{style:{height:Mn?"100%":"calc(100% - 32px)"},className:"relative md:ml-[2px] md:mr-[16px] md:my-[16px] md:rounded-[16px] bg-theme-bg-secondary w-full h-full overflow-y-scroll p-4 md:p-0",children:[o.jsx("div",{className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px] md:pt-6",children:o.jsx("p",{className:"text-lg leading-6 font-bold text-theme-text-primary md-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10 py-4",children:e("security.title")})}),t&&o.jsx(XN,{}),o.jsx(eD,{})]})]})}function XN(){const[e,t]=m.useState(!1),[i,a]=m.useState(!1),[n,r]=m.useState(!1),[s,l]=m.useState(!1),[d,u]=m.useState(!0),{t:h}=Qe(),g=async p=>{if(p.preventDefault(),t(!0),a(!1),n){const v=new FormData(p.target),f={username:v.get("username"),password:v.get("password")},{success:b,error:w}=await K.setupMultiUser(f);if(b){Se("Multi-User mode enabled successfully.","success"),t(!1),setTimeout(()=>{window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),window.location=G.settings.users()},2e3);return}Se(`Failed to enable Multi-User mode: ${w}`,"error"),t(!1);return}};return m.useEffect(()=>{async function p(){u(!0);const v=await K.isMultiUserMode();l(v),u(!1)}p()},[]),d?o.jsx("div",{className:"h-1/2 transition-all duration-500 relative md:ml-[2px] md:mr-[8px] md:my-[16px] md:rounded-[26px] p-[18px] h-full overflow-y-scroll",children:o.jsx("div",{className:"w-full h-full flex justify-center items-center",children:o.jsx(Nn,{})})}):o.jsx("form",{onSubmit:g,onChange:()=>a(!0),className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px]",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-1 w-full flex flex-col gap-y-1 pb-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-1",children:[o.jsx("div",{className:"items-center flex gap-x-4",children:o.jsx("p",{className:"text-base font-bold text-white mt-6",children:h("security.multiuser.title")})}),o.jsx("p",{className:"text-xs leading-[18px] font-base text-white text-opacity-60",children:h("security.multiuser.description")})]}),i&&o.jsx("div",{className:"flex justify-end",children:o.jsx(nh,{onClick:()=>g(),className:"mt-3 mr-0 -mb-20 z-10",children:h(e?"common.saving":"common.save")})}),o.jsx("div",{className:"relative w-full max-h-full",children:o.jsxs("div",{className:"relative rounded-lg",children:[o.jsx("div",{className:"flex items-start justify-between px-6 py-4"}),o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[s?o.jsx("p",{className:"text-white text-sm font-semibold",children:h("security.multiuser.enable.is-enable")}):o.jsx(Ic,{size:"lg",className:"mb-4",label:h("security.multiuser.enable.enable"),enabled:n,onChange:p=>r(p)}),n&&o.jsxs("div",{className:"w-full flex flex-col gap-y-2 my-5",children:[o.jsxs("div",{className:"w-80",children:[o.jsx("label",{htmlFor:"username",className:"text-white text-sm font-semibold block mb-3",children:h("security.multiuser.enable.username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder focus:ring-blue-500",placeholder:"Your admin username",minLength:rh,maxLength:oh,pattern:Y2,required:!0,autoComplete:"off",disabled:s,defaultValue:s?"********":""}),o.jsx("p",{className:"text-white text-opacity-60 text-xs mt-2",children:h("common.username_requirements")})]}),o.jsxs("div",{className:"mt-4 w-80",children:[o.jsx("label",{htmlFor:"password",className:"text-white text-sm font-semibold block mb-3",children:h("security.multiuser.enable.password")}),o.jsx("input",{name:"password",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder focus:ring-blue-500",placeholder:"Your admin password",minLength:8,required:!0,autoComplete:"off",defaultValue:s?"********":""})]})]})]})}),o.jsx("div",{className:"flex items-center justify-between space-x-14",children:o.jsx("p",{className:"text-white text-opacity-80 text-xs rounded-lg w-96",children:h("security.multiuser.enable.description")})})]})})]})})}const ch=new RegExp(/^[a-zA-Z0-9_\-!@$%^&*();]+$/);function eD(){const[e,t]=m.useState(!1),[i,a]=m.useState(!1),[n,r]=m.useState(!1),[s,l]=m.useState(!1),[d,u]=m.useState(!0),{t:h}=Qe(),g=async p=>{if(p.preventDefault(),n)return!1;const v=new FormData(p.target);if(!ch.test(v.get("password"))){Se("Your password has restricted characters in it. Allowed symbols are _,-,!,@,$,%,^,&,*,(,),;","error"),t(!1);return}t(!0),a(!1);const f={usePassword:s,newPassword:v.get("password")},{success:b,error:w}=await K.updateSystemPassword(f);if(b){Se("Your page will refresh in a few seconds.","success"),t(!1),setTimeout(()=>{window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),window.location.reload()},3e3);return}else Se(`Failed to update password: ${w}`,"error"),t(!1)};return m.useEffect(()=>{async function p(){u(!0);const v=await K.isMultiUserMode(),f=await K.keys();r(v),l(f==null?void 0:f.RequiresAuth),u(!1)}p()},[]),d?o.jsx("div",{className:"h-1/2 transition-all duration-500 relative md:ml-[2px] md:mr-[8px] md:my-[16px] md:rounded-[26px] p-[18px] h-full overflow-y-scroll",children:o.jsx("div",{className:"w-full h-full flex justify-center items-center",children:o.jsx(Nn,{})})}):n?null:o.jsx("form",{onSubmit:g,onChange:()=>a(!0),className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px]",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-1 pb-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-1",children:[o.jsx("div",{className:"items-center flex gap-x-4",children:o.jsx("p",{className:"text-base font-bold text-white mt-6",children:h("security.password.title")})}),o.jsx("p",{className:"text-xs leading-[18px] font-base text-white text-opacity-60",children:h("security.password.description")})]}),i&&o.jsx("div",{className:"flex justify-end",children:o.jsx(nh,{onClick:()=>g(),className:"mt-3 mr-0 -mb-20 z-10",children:h(e?"common.saving":"common.save")})}),o.jsx("div",{className:"relative w-full max-h-full",children:o.jsxs("div",{className:"relative rounded-lg",children:[o.jsx("div",{className:"flex items-start justify-between px-6 py-4"}),o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[o.jsx(Ic,{size:"lg",className:"mb-4",label:h("security.password.title"),enabled:s,onChange:p=>l(p)}),s&&o.jsx("div",{className:"w-full flex flex-col gap-y-2 my-5",children:o.jsxs("div",{className:"mt-4 w-80",children:[o.jsx("label",{htmlFor:"password",className:"text-white text-sm font-semibold block mb-3",children:h("security.password.password-label")}),o.jsx("input",{name:"password",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder",placeholder:"Your Instance Password",minLength:8,required:!0,autoComplete:"off",defaultValue:s?"********":""})]})})]})}),o.jsx("div",{className:"flex items-center justify-between space-x-14",children:o.jsx("p",{className:"text-white text-opacity-80 light:text-theme-text text-xs rounded-lg w-96",children:h("security.password.description")})})]})})]})})}const tD=Object.freeze(Object.defineProperty({__proto__:null,PW_REGEX:ch,default:YN},Symbol.toStringTag,{value:"Module"}));function iD({setHeader:e,setForwardBtn:t,setBackBtn:i}){const{t:a}=Qe(),{enabled:n}=pt("multiUser"),[r,s]=m.useState(""),[l,d]=m.useState(!1),[u,h]=m.useState(!1),[g,p]=m.useState(!1),v=m.useRef(null),f=m.useRef(null),b=ia(),w=a("onboarding.userSetup.title"),y=a("onboarding.userSetup.description");function k(){var x,A;r==="just_me"&&g?(x=f.current)==null||x.click():r==="just_me"&&!g?b(G.onboarding.dataHandling()):r==="my_team"&&((A=v.current)==null||A.click())}function _(){b(G.onboarding.llmPreference())}return m.useEffect(()=>{let x=!0;r==="just_me"?x=!l:r==="my_team"&&(x=!u),t({showing:!0,disabled:x,onClick:k})},[r,l,u]),m.useEffect(()=>{e({title:w,description:y}),i({showing:!0,disabled:!1,onClick:_})},[]),o.jsxs("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:[o.jsxs("div",{className:"flex flex-col border rounded-lg border-white/20 light:border-theme-sidebar-border p-8 items-center gap-y-4 w-full max-w-[600px]",children:[o.jsx("div",{className:" text-white text-sm font-semibold md:-ml-44",children:a("onboarding.userSetup.howManyUsers")}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 w-full justify-center",children:[o.jsx("button",{onClick:()=>s("just_me"),className:`${r==="just_me"?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:a("onboarding.userSetup.justMe")})}),n&&o.jsx("button",{onClick:()=>s("my_team"),className:`${r==="my_team"?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:a("onboarding.userSetup.myTeam")})})]})]}),r==="just_me"&&o.jsx(aD,{setSingleUserPasswordValid:d,enablePassword:g,setEnablePassword:p,justMeSubmitRef:f,navigate:b}),r==="my_team"&&n&&o.jsx(nD,{setMultiUserLoginValid:h,myTeamSubmitRef:v,navigate:b})]})}const aD=({setSingleUserPasswordValid:e,enablePassword:t,setEnablePassword:i,justMeSubmitRef:a,navigate:n})=>{const{t:r}=Qe(),[s,l]=m.useState(!1),[d,u]=m.useState(""),h=async b=>{b.preventDefault();const w=b.target,y=new FormData(w);if(!ch.test(y.get("password"))){Se("Your password has restricted characters in it. Allowed symbols are _,-,!,@,$,%,^,&,*,(,),;","error");return}const{error:k}=await K.updateSystemPassword({usePassword:!0,newPassword:y.get("password")});if(k){Se(`Failed to set password: ${k}`,"error");return}const{token:_}=await K.requestToken({password:y.get("password")});window.localStorage.removeItem(at),window.localStorage.removeItem(Jt),window.localStorage.setItem(Ke,_),n(G.onboarding.dataHandling())},p=fp(b=>u(b.target.value),500);function v(){l(!0),i(!0)}function f(){l(!0),i(!1)}return m.useEffect(()=>{t&&s&&d.length>=8?e(!0):e(!!(!t&&s))}),o.jsx("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:o.jsxs("div",{className:"flex flex-col border rounded-lg border-white/20 light:border-theme-sidebar-border p-8 items-center gap-y-4 w-full max-w-[600px]",children:[o.jsx("div",{className:" text-white text-sm font-semibold md:-ml-56",children:r("onboarding.userSetup.setPassword")}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 w-full justify-center",children:[o.jsx("button",{onClick:v,className:`${t&&s?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:r("common.yes")})}),o.jsx("button",{onClick:f,className:`${!t&&s?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:r("common.no")})})]}),t&&o.jsxs("form",{className:"w-full mt-4",onSubmit:h,children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:r("onboarding.userSetup.instancePassword")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button outline-none placeholder:text-theme-text-secondary",placeholder:"Your admin password",minLength:6,required:!0,autoComplete:"off",onChange:p}),o.jsxs("div",{className:"mt-4 text-white text-opacity-80 text-xs font-base -mb-2",children:[r("onboarding.userSetup.passwordReq"),o.jsx("br",{}),o.jsx("i",{children:r("onboarding.userSetup.passwordWarn")})," "]}),o.jsx("button",{type:"submit",ref:a,hidden:!0,"aria-hidden":"true"})]})]})})},nD=({setMultiUserLoginValid:e,myTeamSubmitRef:t,navigate:i})=>{const{t:a}=Qe(),[n,r]=m.useState(""),[s,l]=m.useState(""),d=async v=>{v.preventDefault();const f=v.target,b=new FormData(f),w={username:b.get("username"),password:b.get("password")},{success:y,error:k}=await K.setupMultiUser(w);if(!y){Se(`Error: ${k}`,"error");return}i(G.onboarding.dataHandling());const{user:_,token:x}=await K.requestToken(w);window.localStorage.setItem(at,JSON.stringify(_)),window.localStorage.setItem(Ke,x),window.localStorage.removeItem(Jt)},u=v=>r(v.target.value),h=v=>l(v.target.value),g=fp(u,500),p=fp(h,500);return m.useEffect(()=>{n.trim().length>0&&s.length>0?e(!0):e(!1)},[n,s]),o.jsx("div",{className:"w-full flex items-center justify-center border max-w-[600px] rounded-lg border-white/20 light:border-theme-sidebar-border",children:o.jsxs("form",{onSubmit:d,children:[o.jsx("div",{className:"flex flex-col w-full md:px-8 px-2 py-4",children:o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:a("onboarding.userSetup.adminUsername")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button placeholder:text-theme-text-secondary outline-none",placeholder:"Your admin username",minLength:rh,maxLength:oh,required:!0,autoComplete:"off",onChange:g})]}),o.jsx("p",{className:" text-white text-opacity-80 text-xs font-base",children:a("common.username_requirements")}),o.jsxs("div",{className:"mt-4",children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:a("onboarding.userSetup.adminPassword")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button placeholder:text-theme-text-secondary outline-none",placeholder:"Your admin password",minLength:8,required:!0,autoComplete:"off",onChange:p})]}),o.jsx("p",{className:" text-white text-opacity-80 text-xs font-base",children:a("onboarding.userSetup.adminPasswordReq")})]})})}),o.jsx("div",{className:"flex w-full justify-between items-center px-6 py-4 space-x-6 border-t rounded-b border-theme-sidebar-border",children:o.jsx("div",{className:"text-theme-text-secondary text-opacity-80 text-xs font-base",children:a("onboarding.userSetup.teamHint")})}),o.jsx("button",{type:"submit",ref:t,hidden:!0,"aria-hidden":"true"})]})})},rD="/zilliz.png",oD="data:image/png;base64,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",iv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUoAAAFKCAMAAABM9+Y3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAATVQTFRF////8vf/2Of/ss//pcb/mL7/i7b/f67/y9///+vo/9jR/8W5/7ut/7Gi/56L/6aJ/+p8/+yJ/+6W//Cj//W9//fL//3y5e//ZZ7/P4b/Mn7/WJb/cqb//+Ld/4Fp/2RG/3ND/94t/+A6/+Zi//vlTI7/ss7///X0/4t0/25R/+JH/5V/i5nc//3xv9f/P330pm+X//KwZXjR5WddTHvo2WlpWHnc/+hvf3S6mXGj2ef///nXjHOuf3S5sm6LzGt0WZb/pW+X//nY2GlpcnbFWHnd/+RVi3OumHGiv9b//3tB/4JA/5I9/6E6/6k4/78z/8cy/5k7/7g1/88w/+JIzN///7A2/++W//GjjLb/psf//6E5/+A7mb///9cv/4p0/9Bm//Ow/5SA/7uu/4Bp/+Lc8p+XBNvEXwAABhNJREFUeJzt3XtbG0UYhnFSIKGUYsLBAKJ0ObQSFbViUTygqFXrsQpWK4qI+v0/goTQFpLsZt6H7i7v7v37P9cF9zU7szPZJENDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUR+Xa8MhotdY2Ojo8di3sVdfHb0zcnJx8oV5vTE3PzL6Y7t949TWHq3PzC91eWhwZS3rVyxOTryyduRWdWV5pzKxm9XdfMZWx6lpPxafmF283+73qzsSr60vnPE15qlWfyfrfyN9YrXc0dpvrrnnScanLxZTt0Vmfzec/ykdldHDHjtq5K338tfXukH1StsfmdFmu9GY1NGRnaHZeNd4zIGNTnqiXIWazZuh4au12bMjYlCWIGX5pn/d6XMiElFE09Ube/22aNhLW7FhvvhUbMjFl1Ho77/83NZVFIeTC3XcSSiamLO5VPqYMyYWkITkwZdQq5H3mqBJy893kkoNSnsyYef/fz11lTil5L/HiDkoZbRVs9WlKF/d7g0KGpIxahZowtZLvDy4ZkrJQLbeVm8mgkkEpo+UP8i7wvKRYMixlYVqmd3UHp4yWC3GNayU/DCsZmrIQ82VFKnk3sGRwyqjl/55I2ixuDryfNKeMtvIucVnSHmchuKQhZTSdd4vL2ZZKDth3iykj1+9UaBPlR+ElTSldT5fmE/O28InSmDJq5N1DN6aUXPjYUNKW0vElLl3e9ywljSlbeRdRjUiD0nJ5W1N6Pb3UtjmWNceectnnypP2LaWS0uewbEoljYPSnNLlsMxkUJpTuhyWWcyUQkqHw3JYGpQ7qad0uBX/RCm5aS0ppFzJu4yVtuiYNjpiSndbnqqU0rroSCm9LTzpnp1fKqWz3eO2NCg/zSRltJt3HRNt+/1ZNil9reHSE0L29VtL6WsNlx4i+DyjlMt517HQznyFqVJK6Wqy1KbKnaxSepostbtKoaSWsp53HwNp1fkis5T38+5jIK06wg26mNLRulNRSi58mVnKyM9B27aU8qvsUvp5rC2D978vl9LP4dDXUsqd7FL6+ZhZRifopCSlgfZmo3AupKb0s93J4gmXMw+klH4O0rULXEr5jZTSzwVOyufmyqf089Fm7RZdSvmtlNLPLbr2JriU8jsppZ+zX+04Q0r5vZTSz3GGdsgmpfxBKenokE17YEhK+aOS0tNbjtKHTKSUSklXHzqRtjtKSu1eyM++UTz7VVI+lFL6uRca0tYdJeVPSklPq472lqOS8mclpadVR5sshZTauZCnqVKbLIWU2lTpZ69zSnhUVUgp3aDv5d3GSDhIz+Tp6cjXXWXbfhYptWMhP2+Cn7Gv4faU0vrt6YGhDvsabk5Z9BP0Jyrmu3Rzyl+Ukt4WnTbzwpP6J0VPPcq7i8A8LK0ppUHpb9Fpsw7LlD9U73dQ2oelMaU2U7oclOZhmer3j5z5Ne8mKtvu0ZZSeifC4/LdYdvymFIW/f3vHr+llfKWtNHx9CGTbqavt7Ok1NYc1z9gZrnEDSlLcU7Z7XEaKct0S3lO+BfUhn8prTRRuv+CWsN0GZxSOzt3PVF2BH/LXWhK6Ykrr9uci5qBG8jAlL+Xt2TwDx+EpZRKHjhfvJ8JaxmUsuQlA+fLkJSlvro7QloGpCzVwVqcgF/LG/zjWdpzqQW4C+ryx2VTPpDuzN3vcfoZ9HuYA1JK++49x8dqSQb83G3yT19KW5yt4l3cTwwnDcyklA//VIaknw+NCSoJM2Z8ysO/hJAHj4o7JDvir/K4lIfjQ0NHe9aSRf252wviYvZP2Q7ZdrRiGZGNMoRsaz7uN2f2Sbn+9/izV83WubT72a/17Mt7Uh4e37n4otWAoXlQL+j9T5KN2lp8yvWejh2rR1sH8R1bjdlSDchzmhvVufmelP9MHv+b9KrZ6a37vaNxpXFUlgkyVmV/Y2S0Wqv9Nzl58/jG+PWwV+3OHk1N1dsaU9NHu2UdjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAcvofjSLbR/4YdaIAAAAASUVORK5CYII=",sD="data:image/png;base64,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",lD="/lancedb.png",cD="/weaviate.png",dD="/qdrant.png",uD="/milvus.png",pD="/voyageai.png",mD="/pgvector.png",hD={openai:{name:"OpenAI",policyUrl:"https://openai.com/policies/privacy-policy/",logo:wc},azure:{name:"Azure OpenAI",policyUrl:"https://privacy.microsoft.com/privacystatement",logo:xc},anthropic:{name:"Anthropic",policyUrl:"https://www.anthropic.com/privacy",logo:Tm},gemini:{name:"Google Gemini",policyUrl:"https://policies.google.com/privacy",logo:zc},"nvidia-nim":{name:"NVIDIA NIM",description:["Your model and chats are only accessible on the machine running the NVIDIA NIM."],logo:Wm},lmstudio:{name:"LMStudio",description:["Your model and chats are only accessible on the server running LMStudio."],logo:jc},localai:{name:"LocalAI",description:["Your model and chats are only accessible on the server running LocalAI."],logo:Lc},ollama:{name:"Ollama",description:["Your model and chats are only accessible on the machine running Ollama models."],logo:Ac},togetherai:{name:"TogetherAI",policyUrl:"https://www.together.ai/privacy",logo:Nm},fireworksai:{name:"FireworksAI",policyUrl:"https://fireworks.ai/privacy-policy",logo:Dm},mistral:{name:"Mistral",policyUrl:"https://legal.mistral.ai/terms/privacy-policy",logo:Sc},huggingface:{name:"HuggingFace",policyUrl:"https://huggingface.co/privacy",logo:Om},perplexity:{name:"Perplexity AI",policyUrl:"https://www.perplexity.ai/privacy",logo:Rm},openrouter:{name:"OpenRouter",policyUrl:"https://openrouter.ai/privacy",logo:Mc},novita:{name:"Novita AI",policyUrl:"https://novita.ai/legal/privacy-policy",logo:Im},groq:{name:"Groq",policyUrl:"https://groq.com/privacy-policy/",logo:Hm},koboldcpp:{name:"KoboldCPP",description:["Your model and chats are only accessible on the server running KoboldCPP"],logo:Vm},textgenwebui:{name:"Oobabooga Web UI",description:["Your model and chats are only accessible on the server running the Oobabooga Text Generation Web UI"],logo:qm},"generic-openai":{name:"Generic OpenAI compatible service",description:["Data is shared according to the terms of service applicable with your generic endpoint provider."],logo:_c},cohere:{name:"Cohere",policyUrl:"https://cohere.com/privacy",logo:Pc},litellm:{name:"LiteLLM",description:["Your model and chats are only accessible on the server running LiteLLM"],logo:Cc},bedrock:{name:"AWS Bedrock",policyUrl:"https://aws.amazon.com/bedrock/security-compliance/",logo:Fm},deepseek:{name:"DeepSeek",policyUrl:"https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html",logo:Um},apipie:{name:"APIpie.AI",policyUrl:"https://apipie.ai/docs/Terms/privacy",logo:Bm},xai:{name:"xAI",policyUrl:"https://x.ai/legal/privacy-policy",logo:Gm},zai:{name:"Z.AI",policyUrl:"https://docs.z.ai/legal-agreement/privacy-policy",logo:Km},ppio:{name:"PPIO",policyUrl:"https://www.pipio.ai/privacy-policy",logo:$m},dpais:{name:"Dell Pro AI Studio",description:["Your model and chat contents are only accessible on the computer running Dell Pro AI Studio."],logo:Zm},moonshotai:{name:"Moonshot AI",policyUrl:"https://platform.moonshot.ai/docs/agreement/userprivacy",logo:Jm},cometapi:{name:"CometAPI",policyUrl:"https://apidoc.cometapi.com/privacy-policy-873819m0",logo:Qm},foundry:{name:"Microsoft Foundry Local",description:["Your model and chats are only accessible on the machine running Foundry Local."],logo:Uw},giteeai:{name:"GiteeAI",policyUrl:"https://ai.gitee.com/docs/appendix/privacy",logo:Ym},"docker-model-runner":{name:"Docker Model Runner",description:["Your model and chats are only accessible on the machine running Docker Model Runner."],logo:Xm},privatemode:{name:"Privatemode",policyUrl:"https://docs.privatemode.ai/getting-started/faq#q2",logo:eh},sambanova:{name:"SambaNova",policyUrl:"https://sambanova.ai/privacy-policy",logo:th},lemonade:{name:"Lemonade",description:["Your model and chats are only accessible on the machine running the Lemonade server."],logo:Ec},minimax:{name:"Minimax",policyUrl:"https://platform.minimax.io/protocol/privacy-policy",logo:ih},cerebras:{name:"Cerebras",policyUrl:"https://www.cerebras.ai/privacy-policy",logo:ah}},gD={pgvector:{name:"PGVector",description:["Your vectors and document text are stored on your PostgreSQL instance.","Access to your instance is managed by you."],logo:mD},chroma:{name:"Chroma",description:["Your vectors and document text are stored on your Chroma instance.","Access to your instance is managed by you."],logo:iv},chromacloud:{name:"Chroma Cloud",policyUrl:"https://www.trychroma.com/privacy",logo:iv},pinecone:{name:"Pinecone",policyUrl:"https://www.pinecone.io/privacy/",logo:sD},qdrant:{name:"Qdrant",policyUrl:"https://qdrant.tech/legal/privacy-policy/",logo:dD},weaviate:{name:"Weaviate",policyUrl:"https://weaviate.io/privacy",logo:cD},milvus:{name:"Milvus",description:["Your vectors and document text are stored on your Milvus instance (cloud or self-hosted)."],logo:uD},zilliz:{name:"Zilliz Cloud",policyUrl:"https://zilliz.com/privacy-policy",logo:rD},astra:{name:"AstraDB",policyUrl:"https://www.ibm.com/us-en/privacy",logo:oD},lancedb:{name:"LanceDB",description:["Your vectors and document text are stored privately on this instance of AnythingLLM."],logo:lD}},fD={native:{name:"AnythingLLM Embedder",description:["Your document text is embedded privately on this instance of AnythingLLM."],logo:yc},openai:{name:"OpenAI",policyUrl:"https://openai.com/policies/privacy-policy/",logo:wc},azure:{name:"Azure OpenAI",policyUrl:"https://privacy.microsoft.com/privacystatement",logo:xc},localai:{name:"LocalAI",description:["Your document text is embedded privately on the server running LocalAI."],logo:Lc},ollama:{name:"Ollama",description:["Your document text is embedded privately on the server running Ollama."],logo:Ac},lmstudio:{name:"LMStudio",description:["Your document text is embedded privately on the server running LMStudio."],logo:jc},openrouter:{name:"OpenRouter",policyUrl:"https://openrouter.ai/privacy",logo:Mc},cohere:{name:"Cohere",policyUrl:"https://cohere.com/privacy",logo:Pc},voyageai:{name:"Voyage AI",policyUrl:"https://www.voyageai.com/privacy",logo:pD},mistral:{name:"Mistral AI",policyUrl:"https://legal.mistral.ai/terms/privacy-policy",logo:Sc},litellm:{name:"LiteLLM",description:["Your document text is only accessible on the server running LiteLLM and to the providers you configured in LiteLLM."],logo:Cc},"generic-openai":{name:"Generic OpenAI compatible service",description:["Data is shared according to the terms of service applicable with your generic endpoint provider."],logo:_c},gemini:{name:"Google Gemini",policyUrl:"https://policies.google.com/privacy",logo:zc},lemonade:{name:"Lemonade",description:["Your document text is embedded privately on the machine running the Lemonade server."],logo:Ec}},Fd={llm:hD,embeddingEngine:fD,vectorDb:gD};function Ud(e){return{name:e?_2(S7(String(e))):"Unknown",description:[`"${e}" has no known data handling policy defined in AnythingLLM.`],logo:yc}}function bD(){const[e,t]=m.useState(!0),[i,a]=m.useState({llmProvider:null,embeddingEngine:null,vectorDb:null});return m.useEffect(()=>{async function n(){const r=await K.keys(),s=Fd.llm[r==null?void 0:r.LLMProvider]||Ud(r==null?void 0:r.LLMProvider),l=Fd.embeddingEngine[r==null?void 0:r.EmbeddingEngine]||Ud(r==null?void 0:r.EmbeddingEngine),d=Fd.vectorDb[r==null?void 0:r.VectorDB]||Ud(r==null?void 0:r.VectorDB);a({llmProvider:s,embeddingEngine:l,vectorDb:d}),t(!1)}n()},[]),e?null:o.jsxs("div",{className:"flex flex-col gap-8 w-full max-w-2xl",children:[o.jsx(Bd,{title:"LLM Provider",provider:i.llmProvider,altText:"LLM Logo"}),o.jsx(Bd,{title:"Embedding Preference",provider:i.embeddingEngine,altText:"Embedding Logo"}),o.jsx(Bd,{title:"Vector Database",provider:i.vectorDb,altText:"Vector DB Logo"})]})}function Bd({title:e,provider:t,altText:i}){return o.jsxs("div",{className:"flex flex-col items-start gap-y-3 pb-4 border-b border-theme-sidebar-border",children:[o.jsx("div",{className:"text-theme-text-primary text-base font-bold",children:e}),o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("img",{src:t.logo,alt:i,className:"w-8 h-8 rounded flex-shrink-0 mt-0.5"}),o.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[o.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:o.jsx("span",{className:"text-theme-text-primary text-sm font-semibold",children:t.name})}),t.policyUrl?o.jsxs("div",{className:"text-theme-text-secondary text-sm",children:["Your usage, chats, and data are subject to the service's"," ",o.jsxs(Vt,{className:"text-theme-text-secondary hover:text-theme-text-primary text-sm font-medium underline transition-colors inline-flex items-center gap-1",to:t.policyUrl,target:"_blank",rel:"noopener noreferrer",children:["privacy policy",o.jsx(km,{size:12})]}),"."]}):t.description&&o.jsx("ul",{className:"flex flex-col list-none gap-1",children:t.description.map((a,n)=>o.jsx("li",{className:"text-theme-text-secondary text-sm",children:a},n))})]})]})]})}function vD({setHeader:e,setForwardBtn:t,setBackBtn:i}){const{t:a}=Qe(),n=ia(),r=a("onboarding.data.title"),s=a("onboarding.data.description");m.useEffect(()=>{e({title:r,description:s}),t({showing:!0,disabled:!1,onClick:l}),i({showing:!1,disabled:!1,onClick:d})},[]);function l(){n(G.onboarding.survey())}function d(){n(G.onboarding.userSetup())}return o.jsxs("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:[o.jsx(bD,{}),o.jsx("p",{className:"text-theme-text-secondary text-sm font-medium py-1",children:a("onboarding.data.settingsHint")})]})}async function kD({email:e,useCase:t,comment:i}){const a=JSON.stringify({email:e,useCase:t,comment:i,sourceId:"0VRjqHh6Vukqi0x0Vd0n/m8JuT7k8nOz"});if(!navigator.sendBeacon)return console.log("navigator.sendBeacon not supported, falling back to fetch"),fetch(Gg,{method:"POST",body:a}).then(()=>{window.localStorage.setItem(Ll,!0),console.log("✅ Questionnaire responses sent.")}).catch(n=>{console.error("sendQuestionnaire",n.message)});navigator.sendBeacon(Gg,a),window.localStorage.setItem(Ll,!0),console.log("✅ Questionnaire responses sent.")}function yD({setHeader:e,setForwardBtn:t,setBackBtn:i}){var b;const{t:a}=Qe(),[n,r]=m.useState(""),s=m.useRef(null),l=ia(),d=m.useRef(null),u=a("onboarding.survey.title"),h=a("onboarding.survey.description");function g(){var y;if((y=window==null?void 0:window.localStorage)!=null&&y.getItem(Ll)){l(G.home());return}if(!s.current){p();return}const w=new FormData(s.current);if(w.get("email")||w.get("use_case")||w.get("comment")){s.current.requestSubmit();return}p()}function p(){l(G.home())}function v(){l(G.onboarding.dataHandling())}m.useEffect(()=>{e({title:u,description:h}),t({showing:!0,disabled:!1,onClick:g}),i({showing:!0,disabled:!1,onClick:v})},[]),m.useEffect(()=>{async function w(){(await Pn.all()).length===0&&await Pn.new({name:a("new-workspace.placeholder"),onboardingComplete:!0})}w()},[]);const f=async w=>{w.preventDefault();const y=w.target,k=new FormData(y);await kD({email:k.get("email"),useCase:k.get("use_case")||"other",comment:k.get("comment")||null}),l(G.home())};return(b=window==null?void 0:window.localStorage)!=null&&b.getItem(Ll)?o.jsx("div",{className:"w-full flex justify-center items-center py-40",children:o.jsx("div",{className:"w-full flex items-center justify-center px-1 md:px-8 py-4",children:o.jsxs("div",{className:"w-auto flex flex-col gap-y-1 items-center",children:[o.jsx(ty,{size:60,className:"text-green-500"}),o.jsx("p",{className:"text-white text-lg",children:a("onboarding.survey.thankYou")}),o.jsx("a",{href:G.mailToMintplex(),className:"text-sky-400 underline text-xs",children:"team@mintplexlabs.com"})]})})}):o.jsx("div",{className:"w-full flex justify-center bo",children:o.jsxs("form",{onSubmit:f,ref:s,className:"",children:[o.jsxs("div",{className:"md:min-w-[400px]",children:[o.jsxs("label",{htmlFor:"email",className:"text-theme-text-primary text-base font-medium",children:[a("onboarding.survey.email")," "]}),o.jsx("input",{name:"email",type:"email",placeholder:"you@gmail.com",required:!0,className:"mt-2 bg-theme-settings-input-bg text-white focus:outline-primary-button active:outline-primary-button placeholder:text-theme-settings-input-placeholder outline-none text-sm font-medium font-['Plus Jakarta Sans'] leading-tight w-full h-11 p-2.5 bg-theme-settings-input-bg rounded-lg"})]}),o.jsxs("div",{className:"mt-8",children:[o.jsxs("label",{className:"text-theme-text-primary text-base font-medium",htmlFor:"use_case",children:[a("onboarding.survey.useCase")," "]}),o.jsxs("div",{className:"mt-2 gap-y-3 flex flex-col",children:[o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border ${n==="job"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"job",checked:n==="job",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="job"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCaseWork")})]}),o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border-[1px] ${n==="personal"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"personal",checked:n==="personal",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="personal"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCasePersonal")})]}),o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border-[1px] ${n==="other"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"other",checked:n==="other",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="other"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCaseOther")})]})]})]}),o.jsxs("div",{className:"mt-8",children:[o.jsxs("label",{htmlFor:"comment",className:"text-white text-base font-medium",children:[a("onboarding.survey.comment")," ",o.jsxs("span",{className:"text-neutral-400 text-base font-light",children:["(",a("common.optional"),")"]})]}),o.jsx("textarea",{name:"comment",rows:5,className:"mt-2 bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button placeholder:text-theme-settings-input-placeholder outline-none block w-full p-2.5",placeholder:a("onboarding.survey.commentPlaceholder"),wrap:"soft",autoComplete:"off"})]}),o.jsx("button",{type:"submit",ref:d,hidden:!0,"aria-hidden":"true"}),o.jsx("div",{className:"w-full flex items-center justify-center",children:o.jsx("button",{type:"button",onClick:p,className:"text-white text-base font-medium text-opacity-30 hover:text-opacity-100 hover:text-teal mt-8",children:a("onboarding.survey.skip")})})]})})}const wD={home:EN,"llm-preference":TN,"user-setup":iD,"data-handling":vD,survey:yD};function _D({children:e}){i_();const[t,i]=m.useState({title:"",description:""}),[a,n]=m.useState({showing:!1,disabled:!0,onClick:()=>null}),[r,s]=m.useState({showing:!1,disabled:!0,onClick:()=>null});return Mn?o.jsx("div",{"data-layout":"onboarding",className:"w-screen h-screen overflow-y-auto bg-theme-bg-primary overflow-hidden",children:o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("div",{className:"w-full relative py-10 px-2",children:[o.jsxs("div",{className:"flex flex-col w-fit mx-auto gap-y-1 mb-[55px]",children:[o.jsx("h1",{className:"text-theme-text-primary font-semibold text-center text-2xl",children:t.title}),o.jsx("p",{className:"text-theme-text-secondary text-base text-center",children:t.description})]}),e(i,n,s)]}),o.jsxs("div",{className:"flex w-full justify-center gap-x-4 pb-20",children:[o.jsx("div",{className:"flex justify-center items-center",children:a.showing&&o.jsx("button",{disabled:a.disabled,onClick:a.onClick,className:"group p-2 rounded-lg border-2 border-zinc-300 disabled:border-zinc-600 h-fit w-fit disabled:not-allowed hover:bg-zinc-100 disabled:hover:bg-transparent",children:o.jsx(Zu,{className:"text-white group-hover:text-black group-disabled:text-gray-500",size:30})})}),o.jsx("div",{className:"flex justify-center items-center",children:r.showing&&o.jsx("button",{disabled:r.disabled,onClick:r.onClick,className:"group p-2 rounded-lg border-2 border-zinc-300 disabled:border-zinc-600 h-fit w-fit disabled:not-allowed hover:bg-teal disabled:hover:bg-transparent",children:o.jsx(Ju,{className:"text-white group-hover:text-teal group-disabled:text-gray-500",size:30})})})]})]})}):o.jsxs("div",{"data-layout":"onboarding",className:"w-screen overflow-y-auto bg-theme-bg-primary flex justify-center overflow-hidden",children:[o.jsx("div",{className:"flex w-1/5 h-screen justify-center items-center",children:a.showing&&o.jsx("button",{disabled:a.disabled,onClick:a.onClick,className:"group p-2 rounded-lg border-2 border-theme-sidebar-border h-fit w-fit disabled:cursor-not-allowed hover:bg-theme-bg-secondary disabled:hover:bg-transparent","aria-label":"Back",children:o.jsx(Zu,{className:"text-theme-text-secondary group-hover:text-theme-text-primary group-disabled:text-gray-500",size:30})})}),o.jsxs("div",{className:"w-full md:w-3/5 relative h-full py-10",children:[o.jsxs("div",{className:"flex flex-col w-fit mx-auto gap-y-1 mb-[55px]",children:[o.jsx("h1",{className:"text-theme-text-primary font-semibold text-center text-2xl",children:t.title}),o.jsx("p",{className:"text-theme-text-secondary text-base text-center",children:t.description})]}),e(i,n,s)]}),o.jsx("div",{className:"flex w-1/5 h-screen justify-center items-center",children:r.showing&&o.jsx("button",{disabled:r.disabled,onClick:r.onClick,className:"group p-2 rounded-lg border-2 border-theme-sidebar-border h-fit w-fit disabled:cursor-not-allowed hover:bg-teal disabled:hover:bg-transparent","aria-label":"Continue",children:o.jsx(Ju,{className:"text-theme-text-secondary group-hover:text-white group-disabled:text-gray-500",size:30})})})]})}function av(){const{step:e}=fm(),t=wD[e||"home"];return e==="home"||!e?o.jsx(t,{}):o.jsx(_D,{children:(i,a,n)=>o.jsx(t,{setHeader:i,setBackBtn:a,setForwardBtn:n})})}const xD=c.StrictMode,zD=typeof{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!1,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}<"u"?{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!1,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}:{},on=e=>{var t;return((t=zD[e])==null?void 0:t.enabled)===!0},AD=a6([{path:"/",element:o.jsx(uN,{}),children:[{path:"/",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d1d3d69a.js"),["assets/index-d1d3d69a.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/index-dcc00e8c.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Copy-d323e545.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/WarningCircle-27467274.js"]);return{element:o.jsx(Y0,{Component:e})}}},{path:"/login",element:o.jsx(MN,{})},{path:"/sso/simple",element:o.jsx(PN,{})},{path:"/workspace/:slug/settings/:tab",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d29fdeda.js"),["assets/index-d29fdeda.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/ChatText-35275002.js","assets/Database-f1a76329.js","assets/types-e90e1137.js","assets/main-0b9e408b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/Trans-820f1dad.js","assets/admin-04b020fe.js","assets/Gauge-e6762f4d.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/workspace/:slug",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-e9761a1b.js"),["assets/index-e9761a1b.js","assets/index-cf613bb3.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/index-dcc00e8c.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/WarningCircle-27467274.js","assets/index-8ba96f42.js","assets/Hammer-05b5ccc7.js"]);return{element:o.jsx(Y0,{Component:e})}},children:[{path:"t/:threadSlug"}]},{path:"/accept-invite/:code",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-166e238c.js"),[]);return{element:o.jsx(e,{})}}},{path:"/settings/llm-preference",lazy:async()=>{const{default:e}=await we(()=>Promise.resolve().then(()=>RI),void 0);return{element:o.jsx(tt,{Component:e})}}},...on("transcription")?[{path:"/settings/transcription-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-83825216.js"),["assets/index-83825216.js","assets/Gauge-e6762f4d.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/audio-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-1fe43260.js"),["assets/index-1fe43260.js","assets/index-8ba96f42.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("embedder")?[{path:"/settings/embedding-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-fce187ac.js"),["assets/index-fce187ac.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],...on("textSplitter")?[{path:"/settings/text-splitter-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-80edec8f.js"),["assets/index-80edec8f.js","assets/admin-04b020fe.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],...on("vectorDB")?[{path:"/settings/vector-database",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-2d84e5fe.js"),["assets/index-2d84e5fe.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/agents",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-882e468e.js"),["assets/index-882e468e.js","assets/admin-04b020fe.js","assets/mcpServers-1686e782.js","assets/Database-f1a76329.js","assets/Copy-d323e545.js","assets/File-b92df2f3.js","assets/XCircle-edfe554c.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/Hammer-05b5ccc7.js","assets/Plug-7d951c7d.js","assets/types-e90e1137.js","assets/index-efee6d1f.js","assets/agentFlows-e4124dd3.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/agents/builder",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-0bf4fb6b.js"),["assets/index-0bf4fb6b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/anything-llm-infinity-0d7244a1.js"]);return{element:o.jsx(tt,{Component:e,hideUserMenu:!0})}}},{path:"/settings/agents/builder/:flowId",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-0bf4fb6b.js"),["assets/index-0bf4fb6b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/anything-llm-infinity-0d7244a1.js"]);return{element:o.jsx(tt,{Component:e,hideUserMenu:!0})}}},{path:"/settings/event-logs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ec3efa1e.js"),[]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/embed-chat-widgets",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-6d56c896.js"),["assets/index-6d56c896.js","assets/index-4fb4d421.js","assets/purify-eb750cf4.js","assets/moment-75486807.js","assets/truncate-06273256.js","assets/github-dark-57c241de.js","github-dark.css","github.css"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/security",lazy:async()=>{const{default:e}=await we(()=>Promise.resolve().then(()=>tD),void 0);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/interface",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-f9305828.js"),[]);return{element:o.jsx(Li,{Component:e})}}},...on("brandingWhitelabel")?[{path:"/settings/branding",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d54b0575.js"),["assets/index-d54b0575.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}}]:[],{path:"/settings/default-system-prompt",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-e58bf860.js"),["assets/index-e58bf860.js","assets/main-0b9e408b.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/chat",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-841db586.js"),[]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/beta-features",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-44ab5f11.js"),["assets/index-44ab5f11.js","assets/admin-04b020fe.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/api-keys",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-65184421.js"),["assets/index-65184421.js","assets/PlusCircle-31c6a8d8.js","assets/admin-04b020fe.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("modelRouter")?[{path:"/settings/model-routers",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-01932fa1.js"),["assets/index-01932fa1.js","assets/index-8c2371f5.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/model-routers/:id",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-33ded078.js"),["assets/index-33ded078.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/index-8c2371f5.js","assets/truncate-06273256.js","assets/Trans-820f1dad.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/system-prompt-variables",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-72544df5.js"),["assets/index-72544df5.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/browser-extension",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ae4f557d.js"),["assets/index-ae4f557d.js","assets/PlusCircle-31c6a8d8.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/Plug-7d951c7d.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/workspace-chats",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-2aac91d0.js"),["assets/index-2aac91d0.js","assets/truncate-06273256.js","assets/purify-eb750cf4.js","assets/github-dark-57c241de.js","github-dark.css"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/invites",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-574ed823.js"),["assets/index-574ed823.js","assets/admin-04b020fe.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/users",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-a2978aa0.js"),["assets/index-a2978aa0.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/workspaces",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-1c653bbf.js"),["assets/index-1c653bbf.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/onboarding",element:o.jsx(av,{})},{path:"/onboarding/:step",element:o.jsx(av,{})},{path:"/settings/beta-features/live-document-sync/manage",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-631fc042.js"),["assets/index-631fc042.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("communityHub")?[{path:"/settings/community-hub/trending",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-4750915e.js"),["assets/index-4750915e.js","assets/index-b49f94f1.js","assets/communityHub-aba61686.js","assets/Eye-9f033dc0.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/community-hub/authentication",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-27cc497c.js"),["assets/index-27cc497c.js","assets/communityHub-aba61686.js","assets/index-efee6d1f.js","assets/index-b49f94f1.js","assets/Eye-9f033dc0.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/community-hub/import-item",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-6adfbee1.js"),["assets/index-6adfbee1.js","assets/communityHub-aba61686.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/index-cf613bb3.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/index-dcc00e8c.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/WarningCircle-27467274.js","assets/index-8ba96f42.js","assets/Hammer-05b5ccc7.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/mobile-connections",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-6679334a.js"),["assets/index-6679334a.js","assets/index-08cd0bc2.js","assets/anything-llm-infinity-0d7244a1.js","assets/moment-75486807.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/external-connections/telegram",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ed9034ac.js"),["assets/index-ed9034ac.js","assets/Check-7e83fb0d.js","assets/Eye-9f033dc0.js","assets/index-08cd0bc2.js","assets/anything-llm-infinity-0d7244a1.js","assets/Trans-820f1dad.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/scheduled-jobs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-cd6bc090.js"),["assets/index-cd6bc090.js","assets/usePolling-417bb099.js","assets/WarningCircle-27467274.js","assets/cron-307d3fc6.js","assets/moment-75486807.js","assets/Check-7e83fb0d.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"/settings/scheduled-jobs/:id/runs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/RunHistoryPage-2fcb4325.js"),["assets/RunHistoryPage-2fcb4325.js","assets/usePolling-417bb099.js","assets/Stop-4b47ae05.js","assets/moment-75486807.js","assets/cron-307d3fc6.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"/settings/scheduled-jobs/:id/runs/:runId",lazy:async()=>{const{default:e}=await we(()=>import("./assets/RunDetailPage-da6aa377.js"),["assets/RunDetailPage-da6aa377.js","assets/Brain-24e386d5.js","assets/ChatText-35275002.js","assets/File-b92df2f3.js","assets/Stop-4b47ae05.js","assets/usePolling-417bb099.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/Copy-d323e545.js","assets/truncate-06273256.js","assets/moment-75486807.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"*",lazy:async()=>{const{default:e}=await we(()=>import("./assets/404-56d107aa.js"),[]);return{element:o.jsx(e,{})}}}]}]);Gd.createRoot(document.getElementById("root")).render(o.jsx(xD,{children:o.jsx(hC,{children:o.jsx(u6,{router:AD})})}));export{at as $,E as A,ID as B,nh as C,sy as D,cC as E,aO as F,uC as G,pr as H,xm as I,yc as J,fc as K,O6 as L,Tc as M,ey as N,YD as O,CD as P,_2 as Q,c as R,MI as S,Qi as T,Q1 as U,Ay as V,Pn as W,f6 as X,rh as Y,oh as Z,Y2 as _,hc as a,Xs as a$,Ke as a0,Fw as a1,U2 as a2,wc as a3,Xa as a4,N7 as a5,nt as a6,lt as a7,an as a8,q6 as a9,cD as aA,uD as aB,oD as aC,S7 as aD,gc as aE,Ic as aF,vm as aG,iO as aH,fp as aI,X1 as aJ,bm as aK,t_ as aL,ty as aM,RD as aN,lh as aO,mN as aP,Os as aQ,Ry as aR,Cn as aS,Ei as aT,km as aU,dy as aV,zm as aW,dc as aX,vy as aY,Zu as aZ,ED as a_,aa,Ri as ab,R6 as ac,H6 as ad,zy as ae,G6 as af,TI as ag,xc as ah,zc as ai,Lc as aj,Ac as ak,jc as al,Ec as am,Mc as an,Cc as ao,Pc as ap,pD as aq,Sc as ar,_c as as,OD as at,lD as au,mD as av,iv as aw,sD as ax,rD as ay,dD as az,ia as b,we as b$,DD as b0,gy as b1,ym as b2,VD as b3,Oa as b4,Vl as b5,B2 as b6,MD as b7,PD as b8,w7 as b9,vn as bA,y6 as bB,x6 as bC,C6 as bD,N1 as bE,k7 as bF,qD as bG,HD as bH,wm as bI,$D as bJ,ly as bK,pC as bL,Ju as bM,Ti as bN,o0 as bO,Io as bP,x_ as bQ,$5 as bR,Z5 as bS,Q5 as bT,J5 as bU,$2 as bV,JD as bW,ZD as bX,WD as bY,LD as bZ,iy as b_,ND as ba,E4 as bb,KD as bc,w0 as bd,fy as be,y0 as bf,qy as bg,GD as bh,FD as bi,BD as bj,eO as bk,UD as bl,XD as bm,K2 as bn,tO as bo,Bu as bp,iz as bq,up as br,G0 as bs,oy as bt,pN as bu,xy as bv,I8 as bw,py as bx,Fu as by,M6 as bz,Se as c,_m as c0,LN as d,_a as e,jN as f,ue as g,Nn as h,Mn as i,o as j,Sr as k,fm as l,N as m,SD as n,QD as o,G as p,W2 as q,m as r,Et as s,K as t,Qe as u,Vt as v,az as w,pt as x,uy as y,os as z};
1739
+ flex items-center justify-center rounded-md mt-6 cursor-pointer`,onClick:l,children:o.jsx("ul",{className:"space-y-2 md:p-6 p-4",children:e.map((d,u)=>o.jsx("li",{className:"md:text-sm text-xs",children:d},u))})})]}),o.jsx("div",{className:"flex w-full justify-end items-center p-6 space-x-2 border-t border-theme-modal-border rounded-b",children:o.jsx("button",{type:"button",className:"transition-all duration-300 bg-white text-black hover:opacity-60 px-4 py-2 rounded-lg text-sm flex items-center gap-x-2",onClick:a?s:r,children:a?"Close":o.jsxs(o.Fragment,{children:[o.jsx(ly,{weight:"bold",size:18}),o.jsx("p",{children:"Download"})]})})})]})]})})}function _N(){const{t:e}=Qe(),[t,i]=m.useState(!1),[a,n]=m.useState(null),[r,s]=m.useState([]),[l,d]=m.useState(!1),[u,h]=m.useState(null),[g,p]=m.useState(null),{isOpen:v,openModal:f,closeModal:b}=W2(),w=async k=>{n(null),i(!0),k.preventDefault();const _={},x=new FormData(k.target);for(var[A,z]of x.entries())_[A]=z;const{valid:S,token:M,message:T,recoveryCodes:D}=await K.requestToken(_);S&&M?(h(M),D?(s(D),f()):(window.localStorage.setItem(Ke,M),window.location=G.home())):(n(T),i(!1)),i(!1)},y=()=>{d(!0)};return m.useEffect(()=>{l&&u&&(window.localStorage.setItem(Ke,u),window.location=G.home())},[l,u]),m.useEffect(()=>{(async()=>{const{appName:_}=await K.fetchCustomAppName();p(_||""),i(!1)})()},[]),o.jsxs(o.Fragment,{children:[o.jsxs("form",{onSubmit:w,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-3xl leading-[28px] font-medium text-center white-space-nowrap block",children:e("login.multi-user.welcome")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:e("login.sign-in",{appName:g||"AnythingLLM"})})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"Password"}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),a&&o.jsxs("p",{className:"text-red-400 text-sm",children:["Error: ",a]})]})}),o.jsx("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:o.jsx("button",{disabled:t,type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:e(t?"login.multi-user.validating":"login.multi-user.login")})})]}),o.jsx(Tc,{isOpen:v,noPortal:!0,children:o.jsx(e_,{recoveryCodes:r,onDownloadComplete:y,onClose:b})})]})}const xN=({onSubmit:e,setShowRecoveryForm:t})=>{const[i,a]=m.useState(""),[n,r]=m.useState(Array(2).fill("")),s=(d,u)=>{const h=[...n];h[d]=u,r(h)},l=d=>{d.preventDefault();const u=n.filter(h=>h.trim()!=="");e(i,u)};return o.jsxs("form",{onSubmit:l,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-3xl leading-[28px] font-medium text-center white-space-nowrap block",children:Un("login.password-reset.title")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:Un("login.password-reset.description")})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:Un("login.multi-user.placeholder-username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:i,onChange:d=>a(d.target.value),required:!0,autoComplete:"off"})]}),o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:Un("login.password-reset.recovery-codes")}),n.map((d,u)=>o.jsx("input",{type:"text",name:`recoveryCode${u+1}`,className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:d,onChange:h=>s(u,h.target.value),required:!0,autoComplete:"off"},u))]})]})}),o.jsxs("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:[o.jsx("button",{type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:Un("login.password-reset.title")}),o.jsx("button",{type:"button",className:"text-zinc-200 light:text-zinc-600 hover:text-sky-300 light:hover:text-sky-600 hover:underline text-sm flex gap-x-1",onClick:()=>t(!1),children:Un("login.password-reset.back-to-login")})]})]})},zN=({onSubmit:e})=>{const[t,i]=m.useState(""),[a,n]=m.useState(""),r=s=>{s.preventDefault(),e(t,a)};return o.jsxs("form",{onSubmit:r,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-[38px] leading-[28px] font-medium text-center white-space-nowrap block",children:"Reset Password"})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:"Enter your new password."})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"New Password"}),o.jsx("input",{type:"password",name:"newPassword",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:t,onChange:s=>i(s.target.value),required:!0})]}),o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:"Confirm Password"}),o.jsx("input",{type:"password",name:"confirmPassword",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",value:a,onChange:s=>n(s.target.value),required:!0})]})]})}),o.jsx("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:o.jsx("button",{type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:"Reset Password"})})]})};function AN(){const{t:e}=Qe(),[t,i]=m.useState(!1),[a,n]=m.useState(null),[r,s]=m.useState([]),[l,d]=m.useState(!1),[u,h]=m.useState(null),[g,p]=m.useState(null),[v,f]=m.useState(!1),[b,w]=m.useState(!1),[y,k]=m.useState(null),{isOpen:_,openModal:x,closeModal:A}=W2(),z=async F=>{n(null),i(!0),F.preventDefault();const O={},Z=new FormData(F.target);for(var[R,ce]of Z.entries())O[R]=ce;const{valid:ae,user:Q,token:I,message:U,recoveryCodes:B}=await K.requestToken(O);ae&&I&&Q?(h(Q),p(I),B?(s(B),x()):(window.localStorage.setItem(at,JSON.stringify(Q)),window.localStorage.setItem(Ke,I),window.location=G.home())):(n(U),i(!1)),i(!1)},S=()=>d(!0),M=()=>f(!0),T=async(F,O)=>{const{success:Z,resetToken:R,error:ce}=await K.recoverAccount(F,O);Z&&R?(window.localStorage.setItem("resetToken",R),f(!1),w(!0)):Se(ce,"error",{clear:!0})},D=async(F,O)=>{const Z=window.localStorage.getItem("resetToken");if(Z){const{success:R,error:ce}=await K.resetPassword(Z,F,O);R?(window.localStorage.removeItem("resetToken"),w(!1),Se("Password reset successful","success",{clear:!0})):Se(ce,"error",{clear:!0})}else Se("Invalid reset token","error",{clear:!0})};return m.useEffect(()=>{l&&u&&g&&(window.localStorage.setItem(at,JSON.stringify(u)),window.localStorage.setItem(Ke,g),window.location=G.home())},[l,u,g]),m.useEffect(()=>{(async()=>{const{appName:O}=await K.fetchCustomAppName();k(O||""),i(!1)})()},[]),v?o.jsx(xN,{onSubmit:T,setShowRecoveryForm:f}):b?o.jsx(zN,{onSubmit:D}):o.jsxs(o.Fragment,{children:[o.jsxs("form",{onSubmit:z,className:"flex flex-col justify-center items-center",children:[o.jsx("div",{className:"flex items-start justify-between pt-7 pb-9",children:o.jsxs("div",{className:"flex items-center flex-col gap-y-[18px] max-w-[300px]",children:[o.jsx("div",{className:"flex gap-x-1",children:o.jsx("h3",{className:"text-white light:text-slate-950 text-[38px] leading-[28px] font-medium text-center white-space-nowrap block",children:e("login.multi-user.welcome")})}),o.jsx("p",{className:"text-zinc-400 light:text-zinc-600 text-sm text-center",children:e("login.sign-in",{appName:y||"AnythingLLM"})})]})}),o.jsx("div",{className:"w-full px-12",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-3",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:e("login.multi-user.placeholder-username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),o.jsxs("div",{className:"w-full px-0 flex flex-col gap-y-2",children:[o.jsx("label",{className:"text-zinc-300 light:text-slate-800 text-sm",children:e("login.multi-user.placeholder-password")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-zinc-800 light:bg-slate-200 text-zinc-200 light:text-zinc-600 text-sm rounded-lg p-2.5 w-[300px] h-[34px] focus:outline-none focus:ring-1 focus:ring-sky-300",required:!0,autoComplete:"off"})]}),a&&o.jsxs("p",{className:"text-red-400 text-sm",children:["Error: ",a]})]})}),o.jsxs("div",{className:"flex items-center px-12 mt-9 space-x-2 w-full flex-col gap-y-6",children:[o.jsx("button",{disabled:t,type:"submit",className:"text-zinc-950 bg-white hover:bg-zinc-300 light:bg-sky-200 light:text-slate-950 light:hover:bg-sky-300 text-sm font-semibold rounded-lg border-primary-button h-[34px] w-full",children:e(t?"login.multi-user.validating":"login.multi-user.login")}),o.jsxs("button",{type:"button",className:"text-zinc-200 light:text-zinc-600 hover:text-sky-300 light:hover:text-sky-600 hover:underline text-sm flex gap-x-1",onClick:M,children:[e("login.multi-user.forgot-pass"),"?",o.jsx("b",{className:"font-semibold text-sky-300 light:text-sky-600",children:e("login.multi-user.reset")})]})]})]}),o.jsx(Tc,{isOpen:_,noPortal:!0,children:o.jsx(e_,{recoveryCodes:r,onDownloadComplete:S,onClose:A})})]})}function jN({mode:e="single"}){const{loginLogo:t,isCustomLogo:i}=Ry();return o.jsxs("div",{className:"fixed inset-0 bg-zinc-950 light:bg-slate-50 flex flex-col items-center justify-center overflow-hidden",children:[o.jsx("img",{src:t,alt:"Logo",className:`max-h-[80px] ${i?"rounded-lg":""}`,style:{objectFit:"contain"}}),e==="single"?o.jsx(_N,{}):o.jsx(AN,{})]})}function LN(e=!1){const[t,i]=m.useState({loading:!0,requiresAuth:!1,mode:"single"});return m.useEffect(()=>{async function a(){if(!window)return;if(!K.needsAuthCheck()&&e===!1){i({loading:!1,requiresAuth:!1,mode:"multi"});return}const n=await K.keys();if(n!=null&&n.MultiUserMode){const r=window.localStorage.getItem(Ke);if(r)if(e?!1:await K.checkAuth(r)){i({loading:!1,requiresAuth:!1,mode:"multi"});return}else{i({loading:!1,requiresAuth:!0,mode:"multi"}),window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt);return}else{i({loading:!1,requiresAuth:!0,mode:"multi"});return}}else{if(!((n==null?void 0:n.RequiresAuth)||!1)){i({loading:!1,requiresAuth:!1,mode:"single"});return}const s=window.localStorage.getItem(Ke);if(s)if(e?!1:await K.checkAuth(s)){i({loading:!1,requiresAuth:!1,mode:"single"});return}else{i({loading:!1,requiresAuth:!0,mode:"single"}),window.localStorage.removeItem(Ke),window.localStorage.removeItem(at),window.localStorage.removeItem(Jt);return}else{i({loading:!1,requiresAuth:!0,mode:"single"});return}}}a()},[]),t}function t_(){return new URLSearchParams(window.location.search)}function SN(){const[e,t]=m.useState(!0),[i,a]=m.useState({enabled:!1,noLogin:!1,noLoginRedirect:null});return m.useEffect(()=>{async function n(){try{const r=await K.keys();a({enabled:r==null?void 0:r.SimpleSSOEnabled,noLogin:r==null?void 0:r.SimpleSSONoLogin,noLoginRedirect:r==null?void 0:r.SimpleSSONoLoginRedirect})}catch(r){console.error(r)}finally{t(!1)}}n()},[]),{loading:e,ssoConfig:i}}function MN(){const e=t_(),{loading:t,ssoConfig:i}=SN(),{loading:a,requiresAuth:n,mode:r}=LN(!!e.get("nt"));return a||t?o.jsx(_a,{}):i.enabled&&i.noLogin?i.noLoginRedirect&&!e.has("token")?window.location.replace(i.noLoginRedirect):o.jsx(Qi,{to:G.sso.login()}):n===!1?o.jsx(Qi,{to:G.home()}):o.jsx(jN,{mode:r})}function PN(){const e=t_(),t=e.get("redirectTo")||G.home(),[i,a]=m.useState(!1),[n,r]=m.useState(null);return m.useEffect(()=>{try{if(!e.get("token"))throw new Error("No token provided.");window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),K.simpleSSOLogin(e.get("token")).then(s=>{if(!s.valid)throw new Error(s.message);window.localStorage.setItem(at,JSON.stringify(s.user)),window.localStorage.setItem(Ke,s.token),window.localStorage.setItem(Jt,Number(new Date)),a(s.valid)}).catch(s=>{r(s.message)})}catch(s){r(s.message)}},[]),n?o.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-primary flex items-center justify-center flex-col gap-4",children:[o.jsx("p",{className:"text-theme-text-primary font-mono text-lg",children:n}),o.jsx("p",{className:"text-theme-text-secondary font-mono text-sm",children:"Please contact the system administrator about this error."})]}):i?window.location.replace(t):o.jsx(_a,{})}function i_(){const e=ia();m.useEffect(()=>{async function t(){await K.isOnboardingComplete()!==!1&&e(G.home())}t()},[])}function CN(){const{isLight:e}=bm();return o.jsxs("svg",{viewBox:"0 0 818 514",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-auto",children:[o.jsx("g",{filter:"url(#filter0_i_onboarding)",children:o.jsx("path",{d:"M817.643 77.9966V435.862C817.643 478.86 782.656 513.847 739.646 513.847H598.7C575.046 513.847 552.952 503.3 538.072 484.907L478.122 410.756C470.908 401.84 470.837 389.328 477.943 380.329L499.609 352.901C504.264 347.009 511.228 343.628 518.739 343.628C526.251 343.628 533.143 346.973 537.798 352.818L595.593 425.47C598.391 428.969 602.557 430.981 607.033 430.981H715.243C726.004 430.981 734.766 422.22 734.766 411.458V102.4C734.766 91.627 726.004 82.8773 715.243 82.8773H606.938C602.462 82.8773 598.295 84.8773 595.498 88.3771L279.643 484.479C264.75 503.145 242.525 513.847 218.657 513.847H77.9847C34.9866 513.847 0 478.86 0 435.862V77.9966C0 34.9866 34.9866 0 77.9847 0H219.681C243.716 0 266.036 10.8329 280.928 29.7249L338.426 103.115C345.437 112.019 345.425 124.435 338.39 133.328L316.57 160.898C311.927 166.767 304.963 170.147 297.463 170.147C289.964 170.147 283.059 166.802 278.405 160.957L220.764 88.3771C217.979 84.8773 213.812 82.8773 209.336 82.8773H102.388C91.627 82.8773 82.8654 91.627 82.8654 102.4V411.458C82.8654 422.22 91.627 430.981 102.388 430.981H209.289C213.765 430.981 217.931 428.969 220.717 425.482L536.727 29.3559C551.607 10.7019 573.832 0 597.7 0H739.646C782.656 0 817.643 34.9866 817.643 77.9966Z",fill:"url(#paint0_linear_onboarding)",fillOpacity:e?.5:.28})}),o.jsxs("defs",{children:[o.jsxs("filter",{id:"filter0_i_onboarding",x:"0",y:"0",width:"817.643",height:"525.847",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[o.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),o.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),o.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o.jsx("feOffset",{dy:"12"}),o.jsx("feGaussianBlur",{stdDeviation:"6"}),o.jsx("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),o.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),o.jsx("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})]}),o.jsx("linearGradient",{id:"paint0_linear_onboarding",x1:"15.9568",y1:"-4.97115",x2:"720.527",y2:"514.346",gradientUnits:"userSpaceOnUse",children:e?o.jsxs(o.Fragment,{children:[o.jsx("stop",{stopColor:"#B0BAC5"}),o.jsx("stop",{offset:"0.538462",stopColor:"#FFFFFF",stopOpacity:"0.4"}),o.jsx("stop",{offset:"1",stopColor:"#A8B0BE"})]}):o.jsxs(o.Fragment,{children:[o.jsx("stop",{stopColor:"#3C5769"}),o.jsx("stop",{offset:"0.538462",stopColor:"#9FA5C2",stopOpacity:"0.253846"}),o.jsx("stop",{offset:"1",stopColor:"#40435E"})]})})]})]})}function EN(){const e=ia();i_();const{t}=Qe();return o.jsxs("div",{className:"relative w-screen h-screen flex flex-col overflow-hidden bg-zinc-950 light:bg-slate-50",children:[o.jsx("div",{className:"absolute inset-0 light:hidden",style:{background:"radial-gradient(ellipse 160% 100% at 50% 0%, rgba(130, 152, 178, 0.45) 0%, rgba(60, 87, 105, 0.25) 45%, transparent 90%)"}}),o.jsx("div",{className:"absolute inset-0 hidden light:block",style:{background:"radial-gradient(ellipse 160% 100% at 50% 0%, rgba(176, 200, 224, 0.7) 0%, rgba(195, 213, 230, 0.45) 50%, transparent 90%)"}}),o.jsx("div",{className:"relative z-10 flex justify-center pt-[58px]",children:o.jsx("p",{className:"text-white/80 light:text-slate-600 text-3xl font-semibold",children:"AnythingLLM"})}),o.jsxs("div",{className:"relative z-10 flex-1 flex flex-col items-center justify-center -mt-8",children:[o.jsx("div",{className:"absolute flex items-center justify-center w-full px-4 md:px-0 md:max-w-[852px] md:w-[56%]",children:o.jsx(CN,{})}),o.jsx("h1",{className:"relative font-medium text-white light:text-slate-700 text-[64px] md:text-[96px] lg:text-[160px] leading-none tracking-[-0.06em] select-none",children:t("onboarding.home.welcome")}),o.jsx("button",{type:"button",onClick:()=>e(G.onboarding.llmPreference()),className:"relative border-none z-10 h-[36px] w-[300px] py-2.5 px-5 rounded-lg bg-slate-50 hover:bg-slate-300 font-medium text-sm mt-[42px] text-zinc-900 light:text-white light:bg-slate-900 light:hover:bg-slate-800 text-center flex justify-center items-center transition-colors duration-200",children:t("onboarding.home.getStarted")})]})]})}const X0=[{name:"OpenAI",value:"openai",logo:wc,options:e=>o.jsx(Bw,{settings:e}),description:"The standard option for most non-commercial use."},{name:"Azure OpenAI",value:"azure",logo:xc,options:e=>o.jsx(Kw,{settings:e}),description:"The enterprise option of OpenAI hosted on Azure services."},{name:"Anthropic",value:"anthropic",logo:Tm,options:e=>o.jsx(Ww,{settings:e}),description:"A friendly AI Assistant hosted by Anthropic."},{name:"Gemini",value:"gemini",logo:zc,options:e=>o.jsx(Jw,{settings:e}),description:"Google's largest and most capable AI model"},{name:"NVIDIA NIM",value:"nvidia-nim",logo:Wm,options:e=>o.jsx(f2,{settings:e}),description:"Run full parameter LLMs directly on your NVIDIA RTX GPU using NVIDIA NIM."},{name:"HuggingFace",value:"huggingface",logo:Om,options:e=>o.jsx(a2,{settings:e}),description:"Access 150,000+ open-source LLMs and the world's AI community"},{name:"Ollama",value:"ollama",logo:Ac,options:e=>o.jsx(Qw,{settings:e}),description:"Run LLMs locally on your own machine."},{name:"Dell Pro AI Studio",value:"dpais",logo:Zm,options:e=>o.jsx(v2,{settings:e}),description:"Run powerful LLMs quickly on NPU powered by Dell Pro AI Studio."},{name:"LM Studio",value:"lmstudio",logo:jc,options:e=>o.jsx($w,{settings:e}),description:"Discover, download, and run thousands of cutting edge LLMs in a few clicks."},{name:"Docker Model Runner",value:"docker-model-runner",logo:Xm,options:e=>o.jsx(O2,{settings:e}),description:"Run LLMs using Docker Model Runner."},{name:"Lemonade",value:"lemonade",logo:Ec,options:e=>o.jsx(V2,{settings:e}),description:"Run local LLMs, ASR, TTS, and more in a single unified AI runtime."},{name:"Local AI",value:"localai",logo:Lc,options:e=>o.jsx(Zw,{settings:e}),description:"Run LLMs locally on your own machine."},{name:"SambaNova",value:"sambanova",logo:th,options:e=>o.jsx(H2,{settings:e}),description:"Run open source models from SambaNova."},{name:"Novita AI",value:"novita",logo:Im,options:e=>o.jsx(Yw,{settings:e}),description:"Reliable, Scalable, and Cost-Effective for LLMs from Novita AI"},{name:"KoboldCPP",value:"koboldcpp",logo:Vm,options:e=>o.jsx(l2,{settings:e}),description:"Run local LLMs using koboldcpp."},{name:"Oobabooga Web UI",value:"textgenwebui",logo:qm,options:e=>o.jsx(c2,{settings:e}),description:"Run local LLMs using Oobabooga's Text Generation Web UI."},{name:"Together AI",value:"togetherai",logo:Nm,options:e=>o.jsx(e2,{settings:e}),description:"Run open source models from Together AI."},{name:"Fireworks AI",value:"fireworksai",logo:Dm,options:e=>o.jsx(t2,{settings:e}),description:"The fastest and most efficient inference engine to build production-ready, compound AI systems."},{name:"Mistral",value:"mistral",logo:Sc,options:e=>o.jsx(i2,{settings:e}),description:"Run open source models from Mistral AI."},{name:"Perplexity AI",value:"perplexity",logo:Rm,options:e=>o.jsx(n2,{settings:e}),description:"Run powerful and internet-connected models hosted by Perplexity AI."},{name:"OpenRouter",value:"openrouter",logo:Mc,options:e=>o.jsx(r2,{settings:e}),description:"A unified interface for LLMs."},{name:"Groq",value:"groq",logo:Hm,options:e=>o.jsx(o2,{settings:e}),description:"The fastest LLM inferencing available for real-time AI applications."},{name:"Cohere",value:"cohere",logo:Pc,options:e=>o.jsx(s2,{settings:e}),description:"Run Cohere's powerful Command models."},{name:"LiteLLM",value:"litellm",logo:Cc,options:e=>o.jsx(d2,{settings:e}),description:"Run LiteLLM's OpenAI compatible proxy for various LLMs."},{name:"DeepSeek",value:"deepseek",logo:Um,options:e=>o.jsx(p2,{settings:e}),description:"Run DeepSeek's powerful LLMs."},{name:"PPIO",value:"ppio",logo:$m,options:e=>o.jsx(b2,{settings:e}),description:"Run stable and cost-efficient open-source LLM APIs, such as DeepSeek, Llama, Qwen etc."},{name:"APIpie",value:"apipie",logo:Bm,options:e=>o.jsx(m2,{settings:e}),description:"A unified API of AI services from leading providers"},{name:"Generic OpenAI",value:"generic-openai",logo:_c,options:e=>o.jsx(Gw,{settings:e}),description:"Connect to any OpenAi-compatible service via a custom configuration"},{name:"AWS Bedrock",value:"bedrock",logo:Fm,options:e=>o.jsx(u2,{settings:e}),description:"Run powerful foundation models privately with AWS Bedrock."},{name:"Privatemode",value:"privatemode",logo:eh,options:e=>o.jsx(R2,{settings:e}),description:"Run LLMs with end-to-end encryption."},{name:"xAI",value:"xai",logo:Gm,options:e=>o.jsx(h2,{settings:e}),description:"Run xAI's powerful LLMs like Grok-2 and more."},{name:"Z.AI",value:"zai",logo:Km,options:e=>o.jsx(g2,{settings:e}),description:"Run Z.AI's powerful GLM models."},{name:"Moonshot AI",value:"moonshotai",logo:Jm,options:e=>o.jsx(k2,{settings:e}),description:"Run Moonshot AI's powerful LLMs."},{name:"CometAPI",value:"cometapi",logo:Qm,options:e=>o.jsx(Xw,{settings:e}),description:"500+ AI Models all in one API."},{name:"GiteeAI",value:"giteeai",logo:Ym,options:e=>o.jsx(y2,{settings:e}),description:"Run GiteeAI's powerful LLMs."},{name:"Minimax",value:"minimax",logo:ih,options:e=>o.jsx(q2,{settings:e}),description:"Run Minimax's powerful M2 LLMs."},{name:"Cerebras",value:"cerebras",logo:ah,options:e=>o.jsx(F2,{settings:e}),description:"Run models at instant speed on Cerebras inference."}];function TN({setHeader:e,setForwardBtn:t,setBackBtn:i}){var A;const{t:a}=Qe(),[n,r]=m.useState(""),[s,l]=m.useState([]),[d,u]=m.useState(null),[h,g]=m.useState(null),p=m.useRef(null),v=m.useRef(null),f=window.location.hostname.includes("useanything.com"),b=ia(),w=a("onboarding.llm.title"),y=a("onboarding.llm.description");m.useEffect(()=>{async function z(){const S=await K.keys();g(S),u((S==null?void 0:S.LLMProvider)||"openai")}z()},[]);async function k(){try{await K.markOnboardingComplete(),console.log("Onboarding complete")}catch(z){console.error("Onboarding complete failed",z)}finally{v.current&&v.current.click()}}function _(){b(G.onboarding.home())}const x=async z=>{z.preventDefault();const S=z.target,M={},T=new FormData(S);M.LLMProvider=d,M.EmbeddingEngine="native",M.VectorDB="lancedb";for(var[D,F]of T.entries())M[D]=F;const{error:O}=await K.updateSystem(M);if(O){Se(`Failed to save LLM settings: ${O}`,"error");return}b(G.onboarding.userSetup())};return m.useEffect(()=>{e({title:w,description:y}),t({showing:!0,disabled:!1,onClick:k}),i({showing:!0,disabled:!1,onClick:_})},[]),m.useEffect(()=>{const z=X0.filter(S=>S.name.toLowerCase().includes(n.toLowerCase()));l(z)},[n,d]),o.jsx("div",{children:o.jsxs("form",{ref:p,onSubmit:x,className:"w-full",children:[o.jsxs("div",{className:"w-full relative border-theme-chat-input-border shadow border-2 rounded-lg text-white",children:[o.jsx("div",{className:"w-full p-4 absolute top-0 rounded-t-lg backdrop-blur-sm",children:o.jsxs("div",{className:"w-full flex items-center sticky top-0",children:[o.jsx(fc,{size:16,weight:"bold",className:"absolute left-4 z-30 text-theme-text-primary"}),o.jsx("input",{type:"text",placeholder:"Search LLM providers",className:"bg-theme-bg-secondary placeholder:text-theme-text-secondary z-20 pl-10 h-[38px] rounded-full w-full px-4 py-1 text-sm border border-theme-chat-input-border outline-none focus:outline-primary-button active:outline-primary-button outline-none text-theme-text-primary",onChange:z=>r(z.target.value),autoComplete:"off",onKeyDown:z=>{z.key==="Enter"&&z.preventDefault()}})]})}),o.jsx("div",{className:"px-4 pt-[70px] flex flex-col gap-y-1 max-h-[390px] overflow-y-auto no-scroll pb-4",children:s.map(z=>z.value==="native"&&f?null:o.jsx(U2,{name:z.name,value:z.value,image:z.logo,description:z.description,checked:d===z.value,onClick:()=>u(z.value)},z.name))})]}),o.jsx("div",{className:"mt-4 flex flex-col gap-y-1",children:d&&((A=X0.find(z=>z.value===d))==null?void 0:A.options(h))}),o.jsx("button",{type:"submit",ref:v,hidden:!0,"aria-hidden":"true"})]})})}var IN="Expected a function",ev=0/0,NN="[object Symbol]",DN=/^\s+|\s+$/g,ON=/^[-+]0x[0-9a-f]+$/i,RN=/^0b[01]+$/i,HN=/^0o[0-7]+$/i,VN=parseInt,qN=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,FN=typeof self=="object"&&self&&self.Object===Object&&self,UN=qN||FN||Function("return this")(),BN=Object.prototype,GN=BN.toString,KN=Math.max,WN=Math.min,qd=function(){return UN.Date.now()};function $N(e,t,i){var a,n,r,s,l,d,u=0,h=!1,g=!1,p=!0;if(typeof e!="function")throw new TypeError(IN);t=tv(t)||0,gp(i)&&(h=!!i.leading,g="maxWait"in i,r=g?KN(tv(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function v(z){var S=a,M=n;return a=n=void 0,u=z,s=e.apply(M,S),s}function f(z){return u=z,l=setTimeout(y,t),h?v(z):s}function b(z){var S=z-d,M=z-u,T=t-S;return g?WN(T,r-M):T}function w(z){var S=z-d,M=z-u;return d===void 0||S>=t||S<0||g&&M>=r}function y(){var z=qd();if(w(z))return k(z);l=setTimeout(y,b(z))}function k(z){return l=void 0,p&&a?v(z):(a=n=void 0,s)}function _(){l!==void 0&&clearTimeout(l),u=0,a=d=n=l=void 0}function x(){return l===void 0?s:k(qd())}function A(){var z=qd(),S=w(z);if(a=arguments,n=this,d=z,S){if(l===void 0)return f(d);if(g)return l=setTimeout(y,t),v(d)}return l===void 0&&(l=setTimeout(y,t)),s}return A.cancel=_,A.flush=x,A}function gp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ZN(e){return!!e&&typeof e=="object"}function JN(e){return typeof e=="symbol"||ZN(e)&&GN.call(e)==NN}function tv(e){if(typeof e=="number")return e;if(JN(e))return ev;if(gp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(DN,"");var i=RN.test(e);return i||HN.test(e)?VN(e.slice(2),i?2:8):ON.test(e)?ev:+e}var QN=$N;const fp=Cn(QN);function YN(){const{t:e}=Qe(),{enabled:t}=pt("multiUser");return o.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-container flex",children:[o.jsx(Fw,{}),o.jsxs("div",{style:{height:Mn?"100%":"calc(100% - 32px)"},className:"relative md:ml-[2px] md:mr-[16px] md:my-[16px] md:rounded-[16px] bg-theme-bg-secondary w-full h-full overflow-y-scroll p-4 md:p-0",children:[o.jsx("div",{className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px] md:pt-6",children:o.jsx("p",{className:"text-lg leading-6 font-bold text-theme-text-primary md-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10 py-4",children:e("security.title")})}),t&&o.jsx(XN,{}),o.jsx(eD,{})]})]})}function XN(){const[e,t]=m.useState(!1),[i,a]=m.useState(!1),[n,r]=m.useState(!1),[s,l]=m.useState(!1),[d,u]=m.useState(!0),{t:h}=Qe(),g=async p=>{if(p.preventDefault(),t(!0),a(!1),n){const v=new FormData(p.target),f={username:v.get("username"),password:v.get("password")},{success:b,error:w}=await K.setupMultiUser(f);if(b){Se("Multi-User mode enabled successfully.","success"),t(!1),setTimeout(()=>{window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),window.location=G.settings.users()},2e3);return}Se(`Failed to enable Multi-User mode: ${w}`,"error"),t(!1);return}};return m.useEffect(()=>{async function p(){u(!0);const v=await K.isMultiUserMode();l(v),u(!1)}p()},[]),d?o.jsx("div",{className:"h-1/2 transition-all duration-500 relative md:ml-[2px] md:mr-[8px] md:my-[16px] md:rounded-[26px] p-[18px] h-full overflow-y-scroll",children:o.jsx("div",{className:"w-full h-full flex justify-center items-center",children:o.jsx(Nn,{})})}):o.jsx("form",{onSubmit:g,onChange:()=>a(!0),className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px]",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-1 w-full flex flex-col gap-y-1 pb-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-1",children:[o.jsx("div",{className:"items-center flex gap-x-4",children:o.jsx("p",{className:"text-base font-bold text-white mt-6",children:h("security.multiuser.title")})}),o.jsx("p",{className:"text-xs leading-[18px] font-base text-white text-opacity-60",children:h("security.multiuser.description")})]}),i&&o.jsx("div",{className:"flex justify-end",children:o.jsx(nh,{onClick:()=>g(),className:"mt-3 mr-0 -mb-20 z-10",children:h(e?"common.saving":"common.save")})}),o.jsx("div",{className:"relative w-full max-h-full",children:o.jsxs("div",{className:"relative rounded-lg",children:[o.jsx("div",{className:"flex items-start justify-between px-6 py-4"}),o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[s?o.jsx("p",{className:"text-white text-sm font-semibold",children:h("security.multiuser.enable.is-enable")}):o.jsx(Ic,{size:"lg",className:"mb-4",label:h("security.multiuser.enable.enable"),enabled:n,onChange:p=>r(p)}),n&&o.jsxs("div",{className:"w-full flex flex-col gap-y-2 my-5",children:[o.jsxs("div",{className:"w-80",children:[o.jsx("label",{htmlFor:"username",className:"text-white text-sm font-semibold block mb-3",children:h("security.multiuser.enable.username")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder focus:ring-blue-500",placeholder:"Your admin username",minLength:rh,maxLength:oh,pattern:Y2,required:!0,autoComplete:"off",disabled:s,defaultValue:s?"********":""}),o.jsx("p",{className:"text-white text-opacity-60 text-xs mt-2",children:h("common.username_requirements")})]}),o.jsxs("div",{className:"mt-4 w-80",children:[o.jsx("label",{htmlFor:"password",className:"text-white text-sm font-semibold block mb-3",children:h("security.multiuser.enable.password")}),o.jsx("input",{name:"password",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder focus:ring-blue-500",placeholder:"Your admin password",minLength:8,required:!0,autoComplete:"off",defaultValue:s?"********":""})]})]})]})}),o.jsx("div",{className:"flex items-center justify-between space-x-14",children:o.jsx("p",{className:"text-white text-opacity-80 text-xs rounded-lg w-96",children:h("security.multiuser.enable.description")})})]})})]})})}const ch=new RegExp(/^[a-zA-Z0-9_\-!@$%^&*();]+$/);function eD(){const[e,t]=m.useState(!1),[i,a]=m.useState(!1),[n,r]=m.useState(!1),[s,l]=m.useState(!1),[d,u]=m.useState(!0),{t:h}=Qe(),g=async p=>{if(p.preventDefault(),n)return!1;const v=new FormData(p.target);if(!ch.test(v.get("password"))){Se("Your password has restricted characters in it. Allowed symbols are _,-,!,@,$,%,^,&,*,(,),;","error"),t(!1);return}t(!0),a(!1);const f={usePassword:s,newPassword:v.get("password")},{success:b,error:w}=await K.updateSystemPassword(f);if(b){Se("Your page will refresh in a few seconds.","success"),t(!1),setTimeout(()=>{window.localStorage.removeItem(at),window.localStorage.removeItem(Ke),window.localStorage.removeItem(Jt),window.location.reload()},3e3);return}else Se(`Failed to update password: ${w}`,"error"),t(!1)};return m.useEffect(()=>{async function p(){u(!0);const v=await K.isMultiUserMode(),f=await K.keys();r(v),l(f==null?void 0:f.RequiresAuth),u(!1)}p()},[]),d?o.jsx("div",{className:"h-1/2 transition-all duration-500 relative md:ml-[2px] md:mr-[8px] md:my-[16px] md:rounded-[26px] p-[18px] h-full overflow-y-scroll",children:o.jsx("div",{className:"w-full h-full flex justify-center items-center",children:o.jsx(Nn,{})})}):n?null:o.jsx("form",{onSubmit:g,onChange:()=>a(!0),className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px]",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-1 pb-6 border-white light:border-theme-sidebar-border border-b-2 border-opacity-10",children:[o.jsxs("div",{className:"w-full flex flex-col gap-y-1",children:[o.jsx("div",{className:"items-center flex gap-x-4",children:o.jsx("p",{className:"text-base font-bold text-white mt-6",children:h("security.password.title")})}),o.jsx("p",{className:"text-xs leading-[18px] font-base text-white text-opacity-60",children:h("security.password.description")})]}),i&&o.jsx("div",{className:"flex justify-end",children:o.jsx(nh,{onClick:()=>g(),className:"mt-3 mr-0 -mb-20 z-10",children:h(e?"common.saving":"common.save")})}),o.jsx("div",{className:"relative w-full max-h-full",children:o.jsxs("div",{className:"relative rounded-lg",children:[o.jsx("div",{className:"flex items-start justify-between px-6 py-4"}),o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[o.jsx(Ic,{size:"lg",className:"mb-4",label:h("security.password.title"),enabled:s,onChange:p=>l(p)}),s&&o.jsx("div",{className:"w-full flex flex-col gap-y-2 my-5",children:o.jsxs("div",{className:"mt-4 w-80",children:[o.jsx("label",{htmlFor:"password",className:"text-white text-sm font-semibold block mb-3",children:h("security.password.password-label")}),o.jsx("input",{name:"password",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5 placeholder:text-theme-settings-input-placeholder",placeholder:"Your Instance Password",minLength:8,required:!0,autoComplete:"off",defaultValue:s?"********":""})]})})]})}),o.jsx("div",{className:"flex items-center justify-between space-x-14",children:o.jsx("p",{className:"text-white text-opacity-80 light:text-theme-text text-xs rounded-lg w-96",children:h("security.password.description")})})]})})]})})}const tD=Object.freeze(Object.defineProperty({__proto__:null,PW_REGEX:ch,default:YN},Symbol.toStringTag,{value:"Module"}));function iD({setHeader:e,setForwardBtn:t,setBackBtn:i}){const{t:a}=Qe(),{enabled:n}=pt("multiUser"),[r,s]=m.useState(""),[l,d]=m.useState(!1),[u,h]=m.useState(!1),[g,p]=m.useState(!1),v=m.useRef(null),f=m.useRef(null),b=ia(),w=a("onboarding.userSetup.title"),y=a("onboarding.userSetup.description");function k(){var x,A;r==="just_me"&&g?(x=f.current)==null||x.click():r==="just_me"&&!g?b(G.onboarding.dataHandling()):r==="my_team"&&((A=v.current)==null||A.click())}function _(){b(G.onboarding.llmPreference())}return m.useEffect(()=>{let x=!0;r==="just_me"?x=!l:r==="my_team"&&(x=!u),t({showing:!0,disabled:x,onClick:k})},[r,l,u]),m.useEffect(()=>{e({title:w,description:y}),i({showing:!0,disabled:!1,onClick:_})},[]),o.jsxs("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:[o.jsxs("div",{className:"flex flex-col border rounded-lg border-white/20 light:border-theme-sidebar-border p-8 items-center gap-y-4 w-full max-w-[600px]",children:[o.jsx("div",{className:" text-white text-sm font-semibold md:-ml-44",children:a("onboarding.userSetup.howManyUsers")}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 w-full justify-center",children:[o.jsx("button",{onClick:()=>s("just_me"),className:`${r==="just_me"?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:a("onboarding.userSetup.justMe")})}),n&&o.jsx("button",{onClick:()=>s("my_team"),className:`${r==="my_team"?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:a("onboarding.userSetup.myTeam")})})]})]}),r==="just_me"&&o.jsx(aD,{setSingleUserPasswordValid:d,enablePassword:g,setEnablePassword:p,justMeSubmitRef:f,navigate:b}),r==="my_team"&&n&&o.jsx(nD,{setMultiUserLoginValid:h,myTeamSubmitRef:v,navigate:b})]})}const aD=({setSingleUserPasswordValid:e,enablePassword:t,setEnablePassword:i,justMeSubmitRef:a,navigate:n})=>{const{t:r}=Qe(),[s,l]=m.useState(!1),[d,u]=m.useState(""),h=async b=>{b.preventDefault();const w=b.target,y=new FormData(w);if(!ch.test(y.get("password"))){Se("Your password has restricted characters in it. Allowed symbols are _,-,!,@,$,%,^,&,*,(,),;","error");return}const{error:k}=await K.updateSystemPassword({usePassword:!0,newPassword:y.get("password")});if(k){Se(`Failed to set password: ${k}`,"error");return}const{token:_}=await K.requestToken({password:y.get("password")});window.localStorage.removeItem(at),window.localStorage.removeItem(Jt),window.localStorage.setItem(Ke,_),n(G.onboarding.dataHandling())},p=fp(b=>u(b.target.value),500);function v(){l(!0),i(!0)}function f(){l(!0),i(!1)}return m.useEffect(()=>{t&&s&&d.length>=8?e(!0):e(!!(!t&&s))}),o.jsx("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:o.jsxs("div",{className:"flex flex-col border rounded-lg border-white/20 light:border-theme-sidebar-border p-8 items-center gap-y-4 w-full max-w-[600px]",children:[o.jsx("div",{className:" text-white text-sm font-semibold md:-ml-56",children:r("onboarding.userSetup.setPassword")}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 w-full justify-center",children:[o.jsx("button",{onClick:v,className:`${t&&s?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:r("common.yes")})}),o.jsx("button",{onClick:f,className:`${!t&&s?"text-sky-400 border-sky-400/70":"text-theme-text-primary border-theme-sidebar-border"} min-w-[230px] h-11 p-4 rounded-[10px] border-2 justify-center items-center gap-[100px] inline-flex hover:border-sky-400/70 hover:text-sky-400 transition-all duration-300`,children:o.jsx("div",{className:"text-center text-sm font-bold",children:r("common.no")})})]}),t&&o.jsxs("form",{className:"w-full mt-4",onSubmit:h,children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:r("onboarding.userSetup.instancePassword")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button outline-none placeholder:text-theme-text-secondary",placeholder:"Your admin password",minLength:6,required:!0,autoComplete:"off",onChange:p}),o.jsxs("div",{className:"mt-4 text-white text-opacity-80 text-xs font-base -mb-2",children:[r("onboarding.userSetup.passwordReq"),o.jsx("br",{}),o.jsx("i",{children:r("onboarding.userSetup.passwordWarn")})," "]}),o.jsx("button",{type:"submit",ref:a,hidden:!0,"aria-hidden":"true"})]})]})})},nD=({setMultiUserLoginValid:e,myTeamSubmitRef:t,navigate:i})=>{const{t:a}=Qe(),[n,r]=m.useState(""),[s,l]=m.useState(""),d=async v=>{v.preventDefault();const f=v.target,b=new FormData(f),w={username:b.get("username"),password:b.get("password")},{success:y,error:k}=await K.setupMultiUser(w);if(!y){Se(`Error: ${k}`,"error");return}i(G.onboarding.dataHandling());const{user:_,token:x}=await K.requestToken(w);window.localStorage.setItem(at,JSON.stringify(_)),window.localStorage.setItem(Ke,x),window.localStorage.removeItem(Jt)},u=v=>r(v.target.value),h=v=>l(v.target.value),g=fp(u,500),p=fp(h,500);return m.useEffect(()=>{n.trim().length>0&&s.length>0?e(!0):e(!1)},[n,s]),o.jsx("div",{className:"w-full flex items-center justify-center border max-w-[600px] rounded-lg border-white/20 light:border-theme-sidebar-border",children:o.jsxs("form",{onSubmit:d,children:[o.jsx("div",{className:"flex flex-col w-full md:px-8 px-2 py-4",children:o.jsx("div",{className:"space-y-6 flex h-full w-full",children:o.jsxs("div",{className:"w-full flex flex-col gap-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:a("onboarding.userSetup.adminUsername")}),o.jsx("input",{name:"username",type:"text",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button placeholder:text-theme-text-secondary outline-none",placeholder:"Your admin username",minLength:rh,maxLength:oh,required:!0,autoComplete:"off",onChange:g})]}),o.jsx("p",{className:" text-white text-opacity-80 text-xs font-base",children:a("common.username_requirements")}),o.jsxs("div",{className:"mt-4",children:[o.jsx("label",{htmlFor:"name",className:"block mb-3 text-sm font-medium text-white",children:a("onboarding.userSetup.adminPassword")}),o.jsx("input",{name:"password",type:"password",className:"border-none bg-theme-settings-input-bg text-white text-sm rounded-lg block w-full p-2.5 focus:outline-primary-button active:outline-primary-button placeholder:text-theme-text-secondary outline-none",placeholder:"Your admin password",minLength:8,required:!0,autoComplete:"off",onChange:p})]}),o.jsx("p",{className:" text-white text-opacity-80 text-xs font-base",children:a("onboarding.userSetup.adminPasswordReq")})]})})}),o.jsx("div",{className:"flex w-full justify-between items-center px-6 py-4 space-x-6 border-t rounded-b border-theme-sidebar-border",children:o.jsx("div",{className:"text-theme-text-secondary text-opacity-80 text-xs font-base",children:a("onboarding.userSetup.teamHint")})}),o.jsx("button",{type:"submit",ref:t,hidden:!0,"aria-hidden":"true"})]})})},rD="/zilliz.png",oD="data:image/png;base64,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",iv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUoAAAFKCAMAAABM9+Y3AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAATVQTFRF////8vf/2Of/ss//pcb/mL7/i7b/f67/y9///+vo/9jR/8W5/7ut/7Gi/56L/6aJ/+p8/+yJ/+6W//Cj//W9//fL//3y5e//ZZ7/P4b/Mn7/WJb/cqb//+Ld/4Fp/2RG/3ND/94t/+A6/+Zi//vlTI7/ss7///X0/4t0/25R/+JH/5V/i5nc//3xv9f/P330pm+X//KwZXjR5WddTHvo2WlpWHnc/+hvf3S6mXGj2ef///nXjHOuf3S5sm6LzGt0WZb/pW+X//nY2GlpcnbFWHnd/+RVi3OumHGiv9b//3tB/4JA/5I9/6E6/6k4/78z/8cy/5k7/7g1/88w/+JIzN///7A2/++W//GjjLb/psf//6E5/+A7mb///9cv/4p0/9Bm//Ow/5SA/7uu/4Bp/+Lc8p+XBNvEXwAABhNJREFUeJzt3XtbG0UYhnFSIKGUYsLBAKJ0ObQSFbViUTygqFXrsQpWK4qI+v0/goTQFpLsZt6H7i7v7v37P9cF9zU7szPZJENDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUR+Xa8MhotdY2Ojo8di3sVdfHb0zcnJx8oV5vTE3PzL6Y7t949TWHq3PzC91eWhwZS3rVyxOTryyduRWdWV5pzKxm9XdfMZWx6lpPxafmF283+73qzsSr60vnPE15qlWfyfrfyN9YrXc0dpvrrnnScanLxZTt0Vmfzec/ykdldHDHjtq5K338tfXukH1StsfmdFmu9GY1NGRnaHZeNd4zIGNTnqiXIWazZuh4au12bMjYlCWIGX5pn/d6XMiElFE09Ube/22aNhLW7FhvvhUbMjFl1Ho77/83NZVFIeTC3XcSSiamLO5VPqYMyYWkITkwZdQq5H3mqBJy893kkoNSnsyYef/fz11lTil5L/HiDkoZbRVs9WlKF/d7g0KGpIxahZowtZLvDy4ZkrJQLbeVm8mgkkEpo+UP8i7wvKRYMixlYVqmd3UHp4yWC3GNayU/DCsZmrIQ82VFKnk3sGRwyqjl/55I2ixuDryfNKeMtvIucVnSHmchuKQhZTSdd4vL2ZZKDth3iykj1+9UaBPlR+ElTSldT5fmE/O28InSmDJq5N1DN6aUXPjYUNKW0vElLl3e9ywljSlbeRdRjUiD0nJ5W1N6Pb3UtjmWNceectnnypP2LaWS0uewbEoljYPSnNLlsMxkUJpTuhyWWcyUQkqHw3JYGpQ7qad0uBX/RCm5aS0ppFzJu4yVtuiYNjpiSndbnqqU0rroSCm9LTzpnp1fKqWz3eO2NCg/zSRltJt3HRNt+/1ZNil9reHSE0L29VtL6WsNlx4i+DyjlMt517HQznyFqVJK6Wqy1KbKnaxSepostbtKoaSWsp53HwNp1fkis5T38+5jIK06wg26mNLRulNRSi58mVnKyM9B27aU8qvsUvp5rC2D978vl9LP4dDXUsqd7FL6+ZhZRifopCSlgfZmo3AupKb0s93J4gmXMw+klH4O0rULXEr5jZTSzwVOyufmyqf089Fm7RZdSvmtlNLPLbr2JriU8jsppZ+zX+04Q0r5vZTSz3GGdsgmpfxBKenokE17YEhK+aOS0tNbjtKHTKSUSklXHzqRtjtKSu1eyM++UTz7VVI+lFL6uRca0tYdJeVPSklPq472lqOS8mclpadVR5sshZTauZCnqVKbLIWU2lTpZ69zSnhUVUgp3aDv5d3GSDhIz+Tp6cjXXWXbfhYptWMhP2+Cn7Gv4faU0vrt6YGhDvsabk5Z9BP0Jyrmu3Rzyl+Ukt4WnTbzwpP6J0VPPcq7i8A8LK0ppUHpb9Fpsw7LlD9U73dQ2oelMaU2U7oclOZhmer3j5z5Ne8mKtvu0ZZSeifC4/LdYdvymFIW/f3vHr+llfKWtNHx9CGTbqavt7Ok1NYc1z9gZrnEDSlLcU7Z7XEaKct0S3lO+BfUhn8prTRRuv+CWsN0GZxSOzt3PVF2BH/LXWhK6Ykrr9uci5qBG8jAlL+Xt2TwDx+EpZRKHjhfvJ8JaxmUsuQlA+fLkJSlvro7QloGpCzVwVqcgF/LG/zjWdpzqQW4C+ryx2VTPpDuzN3vcfoZ9HuYA1JK++49x8dqSQb83G3yT19KW5yt4l3cTwwnDcyklA//VIaknw+NCSoJM2Z8ysO/hJAHj4o7JDvir/K4lIfjQ0NHe9aSRf252wviYvZP2Q7ZdrRiGZGNMoRsaz7uN2f2Sbn+9/izV83WubT72a/17Mt7Uh4e37n4otWAoXlQL+j9T5KN2lp8yvWejh2rR1sH8R1bjdlSDchzmhvVufmelP9MHv+b9KrZ6a37vaNxpXFUlgkyVmV/Y2S0Wqv9Nzl58/jG+PWwV+3OHk1N1dsaU9NHu2UdjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAcvofjSLbR/4YdaIAAAAASUVORK5CYII=",sD="data:image/png;base64,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",lD="/lancedb.png",cD="/weaviate.png",dD="/qdrant.png",uD="/milvus.png",pD="/voyageai.png",mD="/pgvector.png",hD={openai:{name:"OpenAI",policyUrl:"https://openai.com/policies/privacy-policy/",logo:wc},azure:{name:"Azure OpenAI",policyUrl:"https://privacy.microsoft.com/privacystatement",logo:xc},anthropic:{name:"Anthropic",policyUrl:"https://www.anthropic.com/privacy",logo:Tm},gemini:{name:"Google Gemini",policyUrl:"https://policies.google.com/privacy",logo:zc},"nvidia-nim":{name:"NVIDIA NIM",description:["Your model and chats are only accessible on the machine running the NVIDIA NIM."],logo:Wm},lmstudio:{name:"LMStudio",description:["Your model and chats are only accessible on the server running LMStudio."],logo:jc},localai:{name:"LocalAI",description:["Your model and chats are only accessible on the server running LocalAI."],logo:Lc},ollama:{name:"Ollama",description:["Your model and chats are only accessible on the machine running Ollama models."],logo:Ac},togetherai:{name:"TogetherAI",policyUrl:"https://www.together.ai/privacy",logo:Nm},fireworksai:{name:"FireworksAI",policyUrl:"https://fireworks.ai/privacy-policy",logo:Dm},mistral:{name:"Mistral",policyUrl:"https://legal.mistral.ai/terms/privacy-policy",logo:Sc},huggingface:{name:"HuggingFace",policyUrl:"https://huggingface.co/privacy",logo:Om},perplexity:{name:"Perplexity AI",policyUrl:"https://www.perplexity.ai/privacy",logo:Rm},openrouter:{name:"OpenRouter",policyUrl:"https://openrouter.ai/privacy",logo:Mc},novita:{name:"Novita AI",policyUrl:"https://novita.ai/legal/privacy-policy",logo:Im},groq:{name:"Groq",policyUrl:"https://groq.com/privacy-policy/",logo:Hm},koboldcpp:{name:"KoboldCPP",description:["Your model and chats are only accessible on the server running KoboldCPP"],logo:Vm},textgenwebui:{name:"Oobabooga Web UI",description:["Your model and chats are only accessible on the server running the Oobabooga Text Generation Web UI"],logo:qm},"generic-openai":{name:"Generic OpenAI compatible service",description:["Data is shared according to the terms of service applicable with your generic endpoint provider."],logo:_c},cohere:{name:"Cohere",policyUrl:"https://cohere.com/privacy",logo:Pc},litellm:{name:"LiteLLM",description:["Your model and chats are only accessible on the server running LiteLLM"],logo:Cc},bedrock:{name:"AWS Bedrock",policyUrl:"https://aws.amazon.com/bedrock/security-compliance/",logo:Fm},deepseek:{name:"DeepSeek",policyUrl:"https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html",logo:Um},apipie:{name:"APIpie.AI",policyUrl:"https://apipie.ai/docs/Terms/privacy",logo:Bm},xai:{name:"xAI",policyUrl:"https://x.ai/legal/privacy-policy",logo:Gm},zai:{name:"Z.AI",policyUrl:"https://docs.z.ai/legal-agreement/privacy-policy",logo:Km},ppio:{name:"PPIO",policyUrl:"https://www.pipio.ai/privacy-policy",logo:$m},dpais:{name:"Dell Pro AI Studio",description:["Your model and chat contents are only accessible on the computer running Dell Pro AI Studio."],logo:Zm},moonshotai:{name:"Moonshot AI",policyUrl:"https://platform.moonshot.ai/docs/agreement/userprivacy",logo:Jm},cometapi:{name:"CometAPI",policyUrl:"https://apidoc.cometapi.com/privacy-policy-873819m0",logo:Qm},foundry:{name:"Microsoft Foundry Local",description:["Your model and chats are only accessible on the machine running Foundry Local."],logo:Uw},giteeai:{name:"GiteeAI",policyUrl:"https://ai.gitee.com/docs/appendix/privacy",logo:Ym},"docker-model-runner":{name:"Docker Model Runner",description:["Your model and chats are only accessible on the machine running Docker Model Runner."],logo:Xm},privatemode:{name:"Privatemode",policyUrl:"https://docs.privatemode.ai/getting-started/faq#q2",logo:eh},sambanova:{name:"SambaNova",policyUrl:"https://sambanova.ai/privacy-policy",logo:th},lemonade:{name:"Lemonade",description:["Your model and chats are only accessible on the machine running the Lemonade server."],logo:Ec},minimax:{name:"Minimax",policyUrl:"https://platform.minimax.io/protocol/privacy-policy",logo:ih},cerebras:{name:"Cerebras",policyUrl:"https://www.cerebras.ai/privacy-policy",logo:ah}},gD={pgvector:{name:"PGVector",description:["Your vectors and document text are stored on your PostgreSQL instance.","Access to your instance is managed by you."],logo:mD},chroma:{name:"Chroma",description:["Your vectors and document text are stored on your Chroma instance.","Access to your instance is managed by you."],logo:iv},chromacloud:{name:"Chroma Cloud",policyUrl:"https://www.trychroma.com/privacy",logo:iv},pinecone:{name:"Pinecone",policyUrl:"https://www.pinecone.io/privacy/",logo:sD},qdrant:{name:"Qdrant",policyUrl:"https://qdrant.tech/legal/privacy-policy/",logo:dD},weaviate:{name:"Weaviate",policyUrl:"https://weaviate.io/privacy",logo:cD},milvus:{name:"Milvus",description:["Your vectors and document text are stored on your Milvus instance (cloud or self-hosted)."],logo:uD},zilliz:{name:"Zilliz Cloud",policyUrl:"https://zilliz.com/privacy-policy",logo:rD},astra:{name:"AstraDB",policyUrl:"https://www.ibm.com/us-en/privacy",logo:oD},lancedb:{name:"LanceDB",description:["Your vectors and document text are stored privately on this instance of AnythingLLM."],logo:lD}},fD={native:{name:"AnythingLLM Embedder",description:["Your document text is embedded privately on this instance of AnythingLLM."],logo:yc},openai:{name:"OpenAI",policyUrl:"https://openai.com/policies/privacy-policy/",logo:wc},azure:{name:"Azure OpenAI",policyUrl:"https://privacy.microsoft.com/privacystatement",logo:xc},localai:{name:"LocalAI",description:["Your document text is embedded privately on the server running LocalAI."],logo:Lc},ollama:{name:"Ollama",description:["Your document text is embedded privately on the server running Ollama."],logo:Ac},lmstudio:{name:"LMStudio",description:["Your document text is embedded privately on the server running LMStudio."],logo:jc},openrouter:{name:"OpenRouter",policyUrl:"https://openrouter.ai/privacy",logo:Mc},cohere:{name:"Cohere",policyUrl:"https://cohere.com/privacy",logo:Pc},voyageai:{name:"Voyage AI",policyUrl:"https://www.voyageai.com/privacy",logo:pD},mistral:{name:"Mistral AI",policyUrl:"https://legal.mistral.ai/terms/privacy-policy",logo:Sc},litellm:{name:"LiteLLM",description:["Your document text is only accessible on the server running LiteLLM and to the providers you configured in LiteLLM."],logo:Cc},"generic-openai":{name:"Generic OpenAI compatible service",description:["Data is shared according to the terms of service applicable with your generic endpoint provider."],logo:_c},gemini:{name:"Google Gemini",policyUrl:"https://policies.google.com/privacy",logo:zc},lemonade:{name:"Lemonade",description:["Your document text is embedded privately on the machine running the Lemonade server."],logo:Ec}},Fd={llm:hD,embeddingEngine:fD,vectorDb:gD};function Ud(e){return{name:e?_2(S7(String(e))):"Unknown",description:[`"${e}" has no known data handling policy defined in AnythingLLM.`],logo:yc}}function bD(){const[e,t]=m.useState(!0),[i,a]=m.useState({llmProvider:null,embeddingEngine:null,vectorDb:null});return m.useEffect(()=>{async function n(){const r=await K.keys(),s=Fd.llm[r==null?void 0:r.LLMProvider]||Ud(r==null?void 0:r.LLMProvider),l=Fd.embeddingEngine[r==null?void 0:r.EmbeddingEngine]||Ud(r==null?void 0:r.EmbeddingEngine),d=Fd.vectorDb[r==null?void 0:r.VectorDB]||Ud(r==null?void 0:r.VectorDB);a({llmProvider:s,embeddingEngine:l,vectorDb:d}),t(!1)}n()},[]),e?null:o.jsxs("div",{className:"flex flex-col gap-8 w-full max-w-2xl",children:[o.jsx(Bd,{title:"LLM Provider",provider:i.llmProvider,altText:"LLM Logo"}),o.jsx(Bd,{title:"Embedding Preference",provider:i.embeddingEngine,altText:"Embedding Logo"}),o.jsx(Bd,{title:"Vector Database",provider:i.vectorDb,altText:"Vector DB Logo"})]})}function Bd({title:e,provider:t,altText:i}){return o.jsxs("div",{className:"flex flex-col items-start gap-y-3 pb-4 border-b border-theme-sidebar-border",children:[o.jsx("div",{className:"text-theme-text-primary text-base font-bold",children:e}),o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("img",{src:t.logo,alt:i,className:"w-8 h-8 rounded flex-shrink-0 mt-0.5"}),o.jsxs("div",{className:"flex flex-col gap-2 flex-1",children:[o.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:o.jsx("span",{className:"text-theme-text-primary text-sm font-semibold",children:t.name})}),t.policyUrl?o.jsxs("div",{className:"text-theme-text-secondary text-sm",children:["Your usage, chats, and data are subject to the service's"," ",o.jsxs(Vt,{className:"text-theme-text-secondary hover:text-theme-text-primary text-sm font-medium underline transition-colors inline-flex items-center gap-1",to:t.policyUrl,target:"_blank",rel:"noopener noreferrer",children:["privacy policy",o.jsx(km,{size:12})]}),"."]}):t.description&&o.jsx("ul",{className:"flex flex-col list-none gap-1",children:t.description.map((a,n)=>o.jsx("li",{className:"text-theme-text-secondary text-sm",children:a},n))})]})]})]})}function vD({setHeader:e,setForwardBtn:t,setBackBtn:i}){const{t:a}=Qe(),n=ia(),r=a("onboarding.data.title"),s=a("onboarding.data.description");m.useEffect(()=>{e({title:r,description:s}),t({showing:!0,disabled:!1,onClick:l}),i({showing:!1,disabled:!1,onClick:d})},[]);function l(){n(G.onboarding.survey())}function d(){n(G.onboarding.userSetup())}return o.jsxs("div",{className:"w-full flex items-center justify-center flex-col gap-y-6",children:[o.jsx(bD,{}),o.jsx("p",{className:"text-theme-text-secondary text-sm font-medium py-1",children:a("onboarding.data.settingsHint")})]})}async function kD({email:e,useCase:t,comment:i}){const a=JSON.stringify({email:e,useCase:t,comment:i,sourceId:"0VRjqHh6Vukqi0x0Vd0n/m8JuT7k8nOz"});if(!navigator.sendBeacon)return console.log("navigator.sendBeacon not supported, falling back to fetch"),fetch(Gg,{method:"POST",body:a}).then(()=>{window.localStorage.setItem(Ll,!0),console.log("✅ Questionnaire responses sent.")}).catch(n=>{console.error("sendQuestionnaire",n.message)});navigator.sendBeacon(Gg,a),window.localStorage.setItem(Ll,!0),console.log("✅ Questionnaire responses sent.")}function yD({setHeader:e,setForwardBtn:t,setBackBtn:i}){var b;const{t:a}=Qe(),[n,r]=m.useState(""),s=m.useRef(null),l=ia(),d=m.useRef(null),u=a("onboarding.survey.title"),h=a("onboarding.survey.description");function g(){var y;if((y=window==null?void 0:window.localStorage)!=null&&y.getItem(Ll)){l(G.home());return}if(!s.current){p();return}const w=new FormData(s.current);if(w.get("email")||w.get("use_case")||w.get("comment")){s.current.requestSubmit();return}p()}function p(){l(G.home())}function v(){l(G.onboarding.dataHandling())}m.useEffect(()=>{e({title:u,description:h}),t({showing:!0,disabled:!1,onClick:g}),i({showing:!0,disabled:!1,onClick:v})},[]),m.useEffect(()=>{async function w(){(await Pn.all()).length===0&&await Pn.new({name:a("new-workspace.placeholder"),onboardingComplete:!0})}w()},[]);const f=async w=>{w.preventDefault();const y=w.target,k=new FormData(y);await kD({email:k.get("email"),useCase:k.get("use_case")||"other",comment:k.get("comment")||null}),l(G.home())};return(b=window==null?void 0:window.localStorage)!=null&&b.getItem(Ll)?o.jsx("div",{className:"w-full flex justify-center items-center py-40",children:o.jsx("div",{className:"w-full flex items-center justify-center px-1 md:px-8 py-4",children:o.jsxs("div",{className:"w-auto flex flex-col gap-y-1 items-center",children:[o.jsx(ty,{size:60,className:"text-green-500"}),o.jsx("p",{className:"text-white text-lg",children:a("onboarding.survey.thankYou")}),o.jsx("a",{href:G.mailToMintplex(),className:"text-sky-400 underline text-xs",children:"team@mintplexlabs.com"})]})})}):o.jsx("div",{className:"w-full flex justify-center bo",children:o.jsxs("form",{onSubmit:f,ref:s,className:"",children:[o.jsxs("div",{className:"md:min-w-[400px]",children:[o.jsxs("label",{htmlFor:"email",className:"text-theme-text-primary text-base font-medium",children:[a("onboarding.survey.email")," "]}),o.jsx("input",{name:"email",type:"email",placeholder:"you@gmail.com",required:!0,className:"mt-2 bg-theme-settings-input-bg text-white focus:outline-primary-button active:outline-primary-button placeholder:text-theme-settings-input-placeholder outline-none text-sm font-medium font-['Plus Jakarta Sans'] leading-tight w-full h-11 p-2.5 bg-theme-settings-input-bg rounded-lg"})]}),o.jsxs("div",{className:"mt-8",children:[o.jsxs("label",{className:"text-theme-text-primary text-base font-medium",htmlFor:"use_case",children:[a("onboarding.survey.useCase")," "]}),o.jsxs("div",{className:"mt-2 gap-y-3 flex flex-col",children:[o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border ${n==="job"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"job",checked:n==="job",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="job"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCaseWork")})]}),o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border-[1px] ${n==="personal"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"personal",checked:n==="personal",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="personal"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCasePersonal")})]}),o.jsxs("label",{className:`border-solid transition-all duration-300 w-full h-11 p-2.5 rounded-lg flex justify-start items-center gap-2.5 cursor-pointer border-[1px] ${n==="other"?"border-theme-sidebar-item-workspace-active bg-theme-bg-secondary":"border-theme-sidebar-border"} hover:border-theme-sidebar-border hover:bg-theme-bg-secondary`,children:[o.jsx("input",{type:"radio",name:"use_case",value:"other",checked:n==="other",onChange:w=>r(w.target.value),className:"hidden"}),o.jsx("div",{className:`w-4 h-4 rounded-full border-2 border-theme-sidebar-border mr-2 ${n==="other"?"bg-[var(--theme-sidebar-item-workspace-active)]":""}`}),o.jsx("div",{className:"text-theme-text-primary text-sm font-medium font-['Plus Jakarta Sans'] leading-tight",children:a("onboarding.survey.useCaseOther")})]})]})]}),o.jsxs("div",{className:"mt-8",children:[o.jsxs("label",{htmlFor:"comment",className:"text-white text-base font-medium",children:[a("onboarding.survey.comment")," ",o.jsxs("span",{className:"text-neutral-400 text-base font-light",children:["(",a("common.optional"),")"]})]}),o.jsx("textarea",{name:"comment",rows:5,className:"mt-2 bg-theme-settings-input-bg text-white text-sm rounded-lg focus:outline-primary-button active:outline-primary-button placeholder:text-theme-settings-input-placeholder outline-none block w-full p-2.5",placeholder:a("onboarding.survey.commentPlaceholder"),wrap:"soft",autoComplete:"off"})]}),o.jsx("button",{type:"submit",ref:d,hidden:!0,"aria-hidden":"true"}),o.jsx("div",{className:"w-full flex items-center justify-center",children:o.jsx("button",{type:"button",onClick:p,className:"text-white text-base font-medium text-opacity-30 hover:text-opacity-100 hover:text-teal mt-8",children:a("onboarding.survey.skip")})})]})})}const wD={home:EN,"llm-preference":TN,"user-setup":iD,"data-handling":vD,survey:yD};function _D({children:e}){i_();const[t,i]=m.useState({title:"",description:""}),[a,n]=m.useState({showing:!1,disabled:!0,onClick:()=>null}),[r,s]=m.useState({showing:!1,disabled:!0,onClick:()=>null});return Mn?o.jsx("div",{"data-layout":"onboarding",className:"w-screen h-screen overflow-y-auto bg-theme-bg-primary overflow-hidden",children:o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("div",{className:"w-full relative py-10 px-2",children:[o.jsxs("div",{className:"flex flex-col w-fit mx-auto gap-y-1 mb-[55px]",children:[o.jsx("h1",{className:"text-theme-text-primary font-semibold text-center text-2xl",children:t.title}),o.jsx("p",{className:"text-theme-text-secondary text-base text-center",children:t.description})]}),e(i,n,s)]}),o.jsxs("div",{className:"flex w-full justify-center gap-x-4 pb-20",children:[o.jsx("div",{className:"flex justify-center items-center",children:a.showing&&o.jsx("button",{disabled:a.disabled,onClick:a.onClick,className:"group p-2 rounded-lg border-2 border-zinc-300 disabled:border-zinc-600 h-fit w-fit disabled:not-allowed hover:bg-zinc-100 disabled:hover:bg-transparent",children:o.jsx(Zu,{className:"text-white group-hover:text-black group-disabled:text-gray-500",size:30})})}),o.jsx("div",{className:"flex justify-center items-center",children:r.showing&&o.jsx("button",{disabled:r.disabled,onClick:r.onClick,className:"group p-2 rounded-lg border-2 border-zinc-300 disabled:border-zinc-600 h-fit w-fit disabled:not-allowed hover:bg-teal disabled:hover:bg-transparent",children:o.jsx(Ju,{className:"text-white group-hover:text-teal group-disabled:text-gray-500",size:30})})})]})]})}):o.jsxs("div",{"data-layout":"onboarding",className:"w-screen overflow-y-auto bg-theme-bg-primary flex justify-center overflow-hidden",children:[o.jsx("div",{className:"flex w-1/5 h-screen justify-center items-center",children:a.showing&&o.jsx("button",{disabled:a.disabled,onClick:a.onClick,className:"group p-2 rounded-lg border-2 border-theme-sidebar-border h-fit w-fit disabled:cursor-not-allowed hover:bg-theme-bg-secondary disabled:hover:bg-transparent","aria-label":"Back",children:o.jsx(Zu,{className:"text-theme-text-secondary group-hover:text-theme-text-primary group-disabled:text-gray-500",size:30})})}),o.jsxs("div",{className:"w-full md:w-3/5 relative h-full py-10",children:[o.jsxs("div",{className:"flex flex-col w-fit mx-auto gap-y-1 mb-[55px]",children:[o.jsx("h1",{className:"text-theme-text-primary font-semibold text-center text-2xl",children:t.title}),o.jsx("p",{className:"text-theme-text-secondary text-base text-center",children:t.description})]}),e(i,n,s)]}),o.jsx("div",{className:"flex w-1/5 h-screen justify-center items-center",children:r.showing&&o.jsx("button",{disabled:r.disabled,onClick:r.onClick,className:"group p-2 rounded-lg border-2 border-theme-sidebar-border h-fit w-fit disabled:cursor-not-allowed hover:bg-teal disabled:hover:bg-transparent","aria-label":"Continue",children:o.jsx(Ju,{className:"text-theme-text-secondary group-hover:text-white group-disabled:text-gray-500",size:30})})})]})}function av(){const{step:e}=fm(),t=wD[e||"home"];return e==="home"||!e?o.jsx(t,{}):o.jsx(_D,{children:(i,a,n)=>o.jsx(t,{setHeader:i,setBackBtn:a,setForwardBtn:n})})}const xD=c.StrictMode,zD=typeof{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!0,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}<"u"?{communityHub:{label:"Community Hub",tier:"L2",enabled:!1,allowlist:null},modelRouter:{label:"Model Router",tier:"L2",enabled:!1,allowlist:null},llmProviders:{label:"LLM Provider Allowlist",tier:"L1",enabled:!0,allowlist:["ollama","openrouter"]},brandingWhitelabel:{label:"Branding & Whitelabeling",tier:"L2",enabled:!1,allowlist:null},filesystemAgent:{label:"File System Access",tier:"L2",enabled:!0,allowlist:null},documentationLink:{label:"Documentation Link",tier:"L2",enabled:!1,allowlist:null},multiUser:{label:"Multi-User Mode",tier:"L2",enabled:!1,allowlist:null},browserExtension:{label:"Browser Extension",tier:"L2",enabled:!1,allowlist:null},chatEmbed:{label:"Chat Embed",tier:"L2",enabled:!1,allowlist:null},scheduledJobs:{label:"Scheduled Jobs",tier:"L2",enabled:!1,allowlist:null},developerApi:{label:"Developer API",tier:"L2",enabled:!1,allowlist:null},mobile:{label:"Totem LLM Mobile",tier:"L2",enabled:!1,allowlist:null},agentMode:{label:"Agent Mode",tier:"L2",enabled:!0,allowlist:null},memories:{label:"Memories Feature",tier:"L2",enabled:!1,allowlist:null},vectorDB:{label:"Vector Database Integrations",tier:"L2",enabled:!1,allowlist:null},embedder:{label:"Embedder Integrations",tier:"L2",enabled:!1,allowlist:null},textSplitter:{label:"Text Splitter Integrations",tier:"L2",enabled:!1,allowlist:null},transcription:{label:"Audio Transcription",tier:"L2",enabled:!1,allowlist:null}}:{},on=e=>{var t;return((t=zD[e])==null?void 0:t.enabled)===!0},AD=a6([{path:"/",element:o.jsx(uN,{}),children:[{path:"/",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d1d3d69a.js"),["assets/index-d1d3d69a.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/index-dcc00e8c.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Copy-d323e545.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/WarningCircle-27467274.js"]);return{element:o.jsx(Y0,{Component:e})}}},{path:"/login",element:o.jsx(MN,{})},{path:"/sso/simple",element:o.jsx(PN,{})},{path:"/workspace/:slug/settings/:tab",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d29fdeda.js"),["assets/index-d29fdeda.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/ChatText-35275002.js","assets/Database-f1a76329.js","assets/types-e90e1137.js","assets/main-0b9e408b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/Trans-820f1dad.js","assets/admin-04b020fe.js","assets/Gauge-e6762f4d.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/workspace/:slug",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-558f988a.js"),["assets/index-558f988a.js","assets/index-9a279a2e.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/index-dcc00e8c.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/WarningCircle-27467274.js","assets/index-8ba96f42.js","assets/Hammer-05b5ccc7.js"]);return{element:o.jsx(Y0,{Component:e})}},children:[{path:"t/:threadSlug"}]},{path:"/accept-invite/:code",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-166e238c.js"),[]);return{element:o.jsx(e,{})}}},{path:"/settings/llm-preference",lazy:async()=>{const{default:e}=await we(()=>Promise.resolve().then(()=>RI),void 0);return{element:o.jsx(tt,{Component:e})}}},...on("transcription")?[{path:"/settings/transcription-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-83825216.js"),["assets/index-83825216.js","assets/Gauge-e6762f4d.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/audio-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-1fe43260.js"),["assets/index-1fe43260.js","assets/index-8ba96f42.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("embedder")?[{path:"/settings/embedding-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-fce187ac.js"),["assets/index-fce187ac.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],...on("textSplitter")?[{path:"/settings/text-splitter-preference",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-80edec8f.js"),["assets/index-80edec8f.js","assets/admin-04b020fe.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],...on("vectorDB")?[{path:"/settings/vector-database",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-2d84e5fe.js"),["assets/index-2d84e5fe.js","assets/index-4277cf52.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/agents",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-882e468e.js"),["assets/index-882e468e.js","assets/admin-04b020fe.js","assets/mcpServers-1686e782.js","assets/Database-f1a76329.js","assets/Copy-d323e545.js","assets/File-b92df2f3.js","assets/XCircle-edfe554c.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/Hammer-05b5ccc7.js","assets/Plug-7d951c7d.js","assets/types-e90e1137.js","assets/index-efee6d1f.js","assets/agentFlows-e4124dd3.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/agents/builder",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-0bf4fb6b.js"),["assets/index-0bf4fb6b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/anything-llm-infinity-0d7244a1.js"]);return{element:o.jsx(tt,{Component:e,hideUserMenu:!0})}}},{path:"/settings/agents/builder/:flowId",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-0bf4fb6b.js"),["assets/index-0bf4fb6b.js","assets/index-3cb59d82.js","assets/communityHub-aba61686.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/agentFlows-e4124dd3.js","assets/anything-llm-infinity-0d7244a1.js"]);return{element:o.jsx(tt,{Component:e,hideUserMenu:!0})}}},{path:"/settings/event-logs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ec3efa1e.js"),[]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/embed-chat-widgets",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-6d56c896.js"),["assets/index-6d56c896.js","assets/index-4fb4d421.js","assets/purify-eb750cf4.js","assets/moment-75486807.js","assets/truncate-06273256.js","assets/github-dark-57c241de.js","github-dark.css","github.css"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/security",lazy:async()=>{const{default:e}=await we(()=>Promise.resolve().then(()=>tD),void 0);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/interface",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-f9305828.js"),[]);return{element:o.jsx(Li,{Component:e})}}},...on("brandingWhitelabel")?[{path:"/settings/branding",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-d54b0575.js"),["assets/index-d54b0575.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}}]:[],{path:"/settings/default-system-prompt",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-e58bf860.js"),["assets/index-e58bf860.js","assets/main-0b9e408b.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/chat",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-841db586.js"),[]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/beta-features",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-44ab5f11.js"),["assets/index-44ab5f11.js","assets/admin-04b020fe.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/api-keys",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-65184421.js"),["assets/index-65184421.js","assets/PlusCircle-31c6a8d8.js","assets/admin-04b020fe.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("modelRouter")?[{path:"/settings/model-routers",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-01932fa1.js"),["assets/index-01932fa1.js","assets/index-8c2371f5.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/model-routers/:id",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-33ded078.js"),["assets/index-33ded078.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/index-8c2371f5.js","assets/truncate-06273256.js","assets/Trans-820f1dad.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/system-prompt-variables",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-72544df5.js"),["assets/index-72544df5.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/browser-extension",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ae4f557d.js"),["assets/index-ae4f557d.js","assets/PlusCircle-31c6a8d8.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/Plug-7d951c7d.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/workspace-chats",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-2aac91d0.js"),["assets/index-2aac91d0.js","assets/truncate-06273256.js","assets/purify-eb750cf4.js","assets/github-dark-57c241de.js","github-dark.css"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/invites",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-574ed823.js"),["assets/index-574ed823.js","assets/admin-04b020fe.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/users",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-a2978aa0.js"),["assets/index-a2978aa0.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/workspaces",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-1c653bbf.js"),["assets/index-1c653bbf.js","assets/admin-04b020fe.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/onboarding",element:o.jsx(av,{})},{path:"/onboarding/:step",element:o.jsx(av,{})},{path:"/settings/beta-features/live-document-sync/manage",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-631fc042.js"),["assets/index-631fc042.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js"]);return{element:o.jsx(tt,{Component:e})}}},...on("communityHub")?[{path:"/settings/community-hub/trending",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-4750915e.js"),["assets/index-4750915e.js","assets/index-b49f94f1.js","assets/communityHub-aba61686.js","assets/Eye-9f033dc0.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/community-hub/authentication",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-27cc497c.js"),["assets/index-27cc497c.js","assets/communityHub-aba61686.js","assets/index-efee6d1f.js","assets/index-b49f94f1.js","assets/Eye-9f033dc0.js","assets/truncate-06273256.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/community-hub/import-item",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-3051865c.js"),["assets/index-3051865c.js","assets/communityHub-aba61686.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/index-9a279a2e.js","assets/Check-7e83fb0d.js","assets/Copy-d323e545.js","assets/index-6bd7928a.js","assets/truncate-06273256.js","assets/XCircle-edfe554c.js","assets/moment-75486807.js","assets/File-b92df2f3.js","assets/Eye-9f033dc0.js","assets/index-4fb4d421.js","assets/react-beautiful-dnd.esm-bb85eef1.js","assets/mcpServers-1686e782.js","assets/admin-04b020fe.js","assets/Database-f1a76329.js","assets/Trans-820f1dad.js","assets/Brain-24e386d5.js","assets/Browser-1820fad0.js","assets/index-dcc00e8c.js","assets/agentFlows-e4124dd3.js","assets/index-3cb59d82.js","assets/WarningCircle-27467274.js","assets/index-8ba96f42.js","assets/Hammer-05b5ccc7.js"]);return{element:o.jsx(tt,{Component:e})}}}]:[],{path:"/settings/mobile-connections",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-6679334a.js"),["assets/index-6679334a.js","assets/index-08cd0bc2.js","assets/anything-llm-infinity-0d7244a1.js","assets/moment-75486807.js"]);return{element:o.jsx(Li,{Component:e})}}},{path:"/settings/external-connections/telegram",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-ed9034ac.js"),["assets/index-ed9034ac.js","assets/Check-7e83fb0d.js","assets/Eye-9f033dc0.js","assets/index-08cd0bc2.js","assets/anything-llm-infinity-0d7244a1.js","assets/Trans-820f1dad.js"]);return{element:o.jsx(tt,{Component:e})}}},{path:"/settings/scheduled-jobs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/index-cd6bc090.js"),["assets/index-cd6bc090.js","assets/usePolling-417bb099.js","assets/WarningCircle-27467274.js","assets/cron-307d3fc6.js","assets/moment-75486807.js","assets/Check-7e83fb0d.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"/settings/scheduled-jobs/:id/runs",lazy:async()=>{const{default:e}=await we(()=>import("./assets/RunHistoryPage-2fcb4325.js"),["assets/RunHistoryPage-2fcb4325.js","assets/usePolling-417bb099.js","assets/Stop-4b47ae05.js","assets/moment-75486807.js","assets/cron-307d3fc6.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"/settings/scheduled-jobs/:id/runs/:runId",lazy:async()=>{const{default:e}=await we(()=>import("./assets/RunDetailPage-da6aa377.js"),["assets/RunDetailPage-da6aa377.js","assets/Brain-24e386d5.js","assets/ChatText-35275002.js","assets/File-b92df2f3.js","assets/Stop-4b47ae05.js","assets/usePolling-417bb099.js","assets/files-676613ed.js","assets/purify-eb750cf4.js","files.css","github.css","assets/Copy-d323e545.js","assets/truncate-06273256.js","assets/moment-75486807.js"]);return{element:o.jsx(Vd,{Component:e})}}},{path:"*",lazy:async()=>{const{default:e}=await we(()=>import("./assets/404-56d107aa.js"),[]);return{element:o.jsx(e,{})}}}]}]);Gd.createRoot(document.getElementById("root")).render(o.jsx(xD,{children:o.jsx(hC,{children:o.jsx(u6,{router:AD})})}));export{at as $,E as A,ID as B,nh as C,sy as D,cC as E,aO as F,uC as G,pr as H,xm as I,yc as J,fc as K,O6 as L,Tc as M,ey as N,YD as O,CD as P,_2 as Q,c as R,MI as S,Qi as T,Q1 as U,Ay as V,Pn as W,f6 as X,rh as Y,oh as Z,Y2 as _,hc as a,Xs as a$,Ke as a0,Fw as a1,U2 as a2,wc as a3,Xa as a4,N7 as a5,nt as a6,lt as a7,an as a8,q6 as a9,cD as aA,uD as aB,oD as aC,S7 as aD,gc as aE,Ic as aF,vm as aG,iO as aH,fp as aI,X1 as aJ,bm as aK,t_ as aL,ty as aM,RD as aN,lh as aO,mN as aP,Os as aQ,Ry as aR,Cn as aS,Ei as aT,km as aU,dy as aV,zm as aW,dc as aX,vy as aY,Zu as aZ,ED as a_,aa,Ri as ab,R6 as ac,H6 as ad,zy as ae,G6 as af,TI as ag,xc as ah,zc as ai,Lc as aj,Ac as ak,jc as al,Ec as am,Mc as an,Cc as ao,Pc as ap,pD as aq,Sc as ar,_c as as,OD as at,lD as au,mD as av,iv as aw,sD as ax,rD as ay,dD as az,ia as b,we as b$,DD as b0,gy as b1,ym as b2,VD as b3,Oa as b4,Vl as b5,B2 as b6,MD as b7,PD as b8,w7 as b9,vn as bA,y6 as bB,x6 as bC,C6 as bD,N1 as bE,k7 as bF,qD as bG,HD as bH,wm as bI,$D as bJ,ly as bK,pC as bL,Ju as bM,Ti as bN,o0 as bO,Io as bP,x_ as bQ,$5 as bR,Z5 as bS,Q5 as bT,J5 as bU,$2 as bV,JD as bW,ZD as bX,WD as bY,LD as bZ,iy as b_,ND as ba,E4 as bb,KD as bc,w0 as bd,fy as be,y0 as bf,qy as bg,GD as bh,FD as bi,BD as bj,eO as bk,UD as bl,XD as bm,K2 as bn,tO as bo,Bu as bp,iz as bq,up as br,G0 as bs,oy as bt,pN as bu,xy as bv,I8 as bw,py as bx,Fu as by,M6 as bz,Se as c,_m as c0,LN as d,_a as e,jN as f,ue as g,Nn as h,Mn as i,o as j,Sr as k,fm as l,N as m,SD as n,QD as o,G as p,W2 as q,m as r,Et as s,K as t,Qe as u,Vt as v,az as w,pt as x,uy as y,os as z};