@100mslive/roomkit-react 0.3.17-alpha.1 → 0.3.17-alpha.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/{HLSView-O4KQ2SQJ.js → HLSView-42EL65Z3.js} +2 -2
  2. package/dist/{HLSView-DIQJQC42.css → HLSView-7NVZOZKG.css} +3 -3
  3. package/dist/{HLSView-DIQJQC42.css.map → HLSView-7NVZOZKG.css.map} +1 -1
  4. package/dist/Prebuilt/components/MoreSettings/constants.d.ts +4 -0
  5. package/dist/Prebuilt/components/Notifications/ReconnectNotifications.d.ts +1 -2
  6. package/dist/{chunk-SCKPBPAN.js → chunk-Y4ZC5NAS.js} +774 -773
  7. package/dist/chunk-Y4ZC5NAS.js.map +7 -0
  8. package/dist/index.cjs.css +2 -2
  9. package/dist/index.cjs.css.map +1 -1
  10. package/dist/index.cjs.js +589 -593
  11. package/dist/index.cjs.js.map +4 -4
  12. package/dist/index.css +2 -2
  13. package/dist/index.css.map +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/meta.cjs.json +83 -68
  16. package/dist/meta.esbuild.json +95 -80
  17. package/package.json +7 -7
  18. package/src/Prebuilt/components/AppData/AppData.tsx +8 -2
  19. package/src/Prebuilt/components/AudioVideoToggle.tsx +31 -18
  20. package/src/Prebuilt/components/MoreSettings/constants.ts +2 -0
  21. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +10 -37
  22. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +13 -14
  23. package/src/Prebuilt/components/Toast/ToastConfig.jsx +2 -2
  24. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +1 -2
  25. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +2 -1
  26. package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +9 -2
  27. package/dist/chunk-SCKPBPAN.js.map +0 -7
  28. /package/dist/{HLSView-O4KQ2SQJ.js.map → HLSView-42EL65Z3.js.map} +0 -0
package/dist/index.cjs.js CHANGED
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.1", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.1", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.3.11579264", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "589", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240721.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:1839", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.1", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10143763991", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "643ed4a2d79963ce78c8539272c639d33ab5a93b977b148da9d4cd26f3365d28", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722254244580-0.7597921654222386:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254244381-0.5197699882516091:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218535-0.07559875299263608:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722254218346-0.7948146992289666:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_5d9ac9a8-777a-47cd-b693-6136da04d5f6", INVOCATION_ID: "b157570d98a943c18f1a5bbcd1444fa2", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "618", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 6", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.1", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.1", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "4d8b6da71642585295d7dfc3b05c43809f35ea8c", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_847b959f-ef0c-4a4f-aa8b-cb5aa548be8f" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_678376b7-39c7-4c79-a79d-d94706415f6b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.7-alpha.11", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.17-alpha.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_678376b7-39c7-4c79-a79d-d94706415f6b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.17-alpha.11", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.11", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.9", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.12/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240730.2.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.5/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:19686", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.17-alpha.11", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "10248733141", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "7d0349d2bb115d00c57dc2fcac070126c245bcb0", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "6a887f103db2917f2a496284081c00019394b9074cd08dfe5e31ec367b0b185f", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1722860719486-0.9552513369331563:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860719288-0.2156573562815316:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860693619-0.142751730822414:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1722860693439-0.6275329753081282:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_84f2a973-fe9d-452c-86c0-d648ca3cba92", INVOCATION_ID: "eddff20419a44923af6102264daf5923", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "628", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 50", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.17-alpha.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.17-alpha.11", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "7d0349d2bb115d00c57dc2fcac070126c245bcb0", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_678376b7-39c7-4c79-a79d-d94706415f6b", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_678376b7-39c7-4c79-a79d-d94706415f6b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.0.12077973", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.0.12077973", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_678376b7-39c7-4c79-a79d-d94706415f6b" };
113
113
  }
114
114
  });
115
115
 
@@ -2635,8 +2635,8 @@ var init_useBorderAudioLevel = __esm({
2635
2635
  import_react19 = require("react");
2636
2636
  import_react_sdk3 = require("@100mslive/react-sdk");
2637
2637
  init_Theme();
2638
- sigmoid = (z) => {
2639
- return 1 / (1 + Math.exp(-z));
2638
+ sigmoid = (z2) => {
2639
+ return 1 / (1 + Math.exp(-z2));
2640
2640
  };
2641
2641
  }
2642
2642
  });
@@ -2790,12 +2790,12 @@ var init_formatBytes = __esm({
2790
2790
  if (!bytes) {
2791
2791
  return "-";
2792
2792
  }
2793
- const k2 = 1024;
2793
+ const k = 1024;
2794
2794
  const dm2 = decimals < 0 ? 0 : decimals;
2795
2795
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
2796
- let i = Math.floor(Math.log(bytes) / Math.log(k2));
2796
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
2797
2797
  i === 0 && i++;
2798
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm2))} ${sizes[i]}`;
2798
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
2799
2799
  };
2800
2800
  }
2801
2801
  });
@@ -10059,20 +10059,45 @@ var init_useSidepane = __esm({
10059
10059
  }
10060
10060
  });
10061
10061
 
10062
+ // src/Prebuilt/components/MoreSettings/constants.ts
10063
+ var trackSourceOptions, trackTypeOptions, DEFAULT_TILES_IN_VIEW;
10064
+ var init_constants3 = __esm({
10065
+ "src/Prebuilt/components/MoreSettings/constants.ts"() {
10066
+ "use strict";
10067
+ init_define_process_env();
10068
+ trackSourceOptions = [
10069
+ { label: "All Track Sources", value: "" },
10070
+ { label: "regular", value: "regular" },
10071
+ { label: "screen", value: "screen" },
10072
+ { label: "audioplaylist", value: "audioplaylist" },
10073
+ { label: "videoplaylist", value: "videoplaylist" }
10074
+ ];
10075
+ trackTypeOptions = [
10076
+ { label: "All Track Types", value: "" },
10077
+ { label: "audio", value: "audio" },
10078
+ { label: "video", value: "video" }
10079
+ ];
10080
+ DEFAULT_TILES_IN_VIEW = { MWEB: 4, DESKTOP: 9 };
10081
+ }
10082
+ });
10083
+
10062
10084
  // src/Prebuilt/components/AppData/AppData.tsx
10063
- var import_react35, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
10085
+ var import_react35, import_react_use3, import_react_sdk11, initialAppData, AppData, ResetStreamingStart;
10064
10086
  var init_AppData = __esm({
10065
10087
  "src/Prebuilt/components/AppData/AppData.tsx"() {
10066
10088
  "use strict";
10067
10089
  init_define_process_env();
10068
10090
  import_react35 = __toESM(require("react"));
10091
+ import_react_use3 = require("react-use");
10069
10092
  import_react_sdk11 = require("@100mslive/react-sdk");
10093
+ init_Theme();
10070
10094
  init_LayoutSettings();
10071
10095
  init_useRoomLayoutScreen();
10072
10096
  init_useUserPreferences();
10073
10097
  init_useSidepane();
10074
10098
  init_useUISettings();
10075
10099
  init_constants();
10100
+ init_constants3();
10076
10101
  initialAppData = {
10077
10102
  [APP_DATA.uiSettings]: {
10078
10103
  [UI_SETTINGS.isAudioOnly]: false,
@@ -10126,6 +10151,7 @@ var init_AppData = __esm({
10126
10151
  const { isLocalVideoEnabled } = (0, import_react_sdk11.useAVToggle)();
10127
10152
  const sidepaneOpenedRef = (0, import_react35.useRef)(false);
10128
10153
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
10154
+ const isMobile = (0, import_react_use3.useMedia)(config.media.md);
10129
10155
  (0, import_react35.useEffect)(() => {
10130
10156
  var _a8;
10131
10157
  if ((_a8 = elements == null ? void 0 : elements.noise_cancellation) == null ? void 0 : _a8.enabled_by_default) {
@@ -10156,10 +10182,10 @@ var init_AppData = __esm({
10156
10182
  const updatedSettings = __spreadProps(__spreadValues({}, uiSettings), {
10157
10183
  [UI_SETTINGS.isAudioOnly]: void 0,
10158
10184
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
10159
- [UI_SETTINGS.maxTileCount]: ((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || 9
10185
+ [UI_SETTINGS.maxTileCount]: isMobile ? DEFAULT_TILES_IN_VIEW.MWEB : Number((_b8 = (_a8 = elements == null ? void 0 : elements.video_tile_layout) == null ? void 0 : _a8.grid) == null ? void 0 : _b8.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP
10160
10186
  });
10161
10187
  hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
10162
- }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout]);
10188
+ }, [preferences, hmsActions, elements == null ? void 0 : elements.video_tile_layout, isMobile]);
10163
10189
  (0, import_react35.useEffect)(() => {
10164
10190
  if (!preferences.subscribedNotifications) {
10165
10191
  return;
@@ -10259,13 +10285,13 @@ var init_transaction_error = __esm({
10259
10285
  });
10260
10286
 
10261
10287
  // src/Prebuilt/components/AuthToken.jsx
10262
- var import_react37, import_react_use3, import_ts_pattern2, import_uuid, import_react_sdk12, AuthToken, convertError, AuthToken_default;
10288
+ var import_react37, import_react_use4, import_ts_pattern2, import_uuid, import_react_sdk12, AuthToken, convertError, AuthToken_default;
10263
10289
  var init_AuthToken = __esm({
10264
10290
  "src/Prebuilt/components/AuthToken.jsx"() {
10265
10291
  "use strict";
10266
10292
  init_define_process_env();
10267
10293
  import_react37 = __toESM(require("react"));
10268
- import_react_use3 = require("react-use");
10294
+ import_react_use4 = require("react-use");
10269
10295
  import_ts_pattern2 = require("ts-pattern");
10270
10296
  import_uuid = require("uuid");
10271
10297
  import_react_sdk12 = require("@100mslive/react-sdk");
@@ -10282,7 +10308,7 @@ var init_AuthToken = __esm({
10282
10308
  const [error, setError] = (0, import_react37.useState)({ title: "", body: "" });
10283
10309
  let authToken = defaultAuthToken;
10284
10310
  const [, setAuthTokenInAppData] = useSetAppDataByKey(APP_DATA.authToken);
10285
- const [savedUserId, setSavedUserId] = (0, import_react_use3.useSessionStorage)(UserPreferencesKeys.USER_ID);
10311
+ const [savedUserId, setSavedUserId] = (0, import_react_use4.useSessionStorage)(UserPreferencesKeys.USER_ID);
10286
10312
  (0, import_react37.useEffect)(() => {
10287
10313
  if (authToken) {
10288
10314
  setAuthTokenInAppData(authToken);
@@ -10824,13 +10850,13 @@ var init_useDropdownSelection = __esm({
10824
10850
  });
10825
10851
 
10826
10852
  // src/Prebuilt/components/Settings/DeviceSettings.jsx
10827
- var import_react43, import_react_use4, import_react_sdk13, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
10853
+ var import_react43, import_react_use5, import_react_sdk13, import_react_icons10, Settings, DeviceSelector, TestAudio, DeviceSettings_default;
10828
10854
  var init_DeviceSettings = __esm({
10829
10855
  "src/Prebuilt/components/Settings/DeviceSettings.jsx"() {
10830
10856
  "use strict";
10831
10857
  init_define_process_env();
10832
10858
  import_react43 = __toESM(require("react"));
10833
- import_react_use4 = require("react-use");
10859
+ import_react_use5 = require("react-use");
10834
10860
  import_react_sdk13 = require("@100mslive/react-sdk");
10835
10861
  import_react_icons10 = require("@100mslive/react-icons");
10836
10862
  init_src();
@@ -10852,7 +10878,7 @@ var init_DeviceSettings = __esm({
10852
10878
  const trackSelector = (0, import_react_sdk13.selectVideoTrackByID)(videoTrackId);
10853
10879
  const hmsActions = (0, import_react_sdk13.useHMSActions)();
10854
10880
  const track = (0, import_react_sdk13.useHMSStore)(trackSelector);
10855
- const isMobile = (0, import_react_use4.useMedia)(config.media.md);
10881
+ const isMobile = (0, import_react_use5.useMedia)(config.media.md);
10856
10882
  (0, import_react43.useEffect)(() => {
10857
10883
  if (isMobile) {
10858
10884
  hmsActions.refreshDevices();
@@ -11081,13 +11107,13 @@ var init_NotificationSettings = __esm({
11081
11107
  });
11082
11108
 
11083
11109
  // src/Prebuilt/components/Settings/SettingsModal.jsx
11084
- var import_react45, import_react_use5, import_react_icons12, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
11110
+ var import_react45, import_react_use6, import_react_icons12, settingsList, SettingsModal, MobileSettingModal, DesktopSettingModal, SettingsContentHeader, SettingsModal_default;
11085
11111
  var init_SettingsModal = __esm({
11086
11112
  "src/Prebuilt/components/Settings/SettingsModal.jsx"() {
11087
11113
  "use strict";
11088
11114
  init_define_process_env();
11089
11115
  import_react45 = __toESM(require("react"));
11090
- import_react_use5 = require("react-use");
11116
+ import_react_use6 = require("react-use");
11091
11117
  import_react_icons12 = require("@100mslive/react-icons");
11092
11118
  init_Divider2();
11093
11119
  init_IconButton2();
@@ -11123,7 +11149,7 @@ var init_SettingsModal = __esm({
11123
11149
  ];
11124
11150
  SettingsModal = ({ open, onOpenChange, screenType, children = /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null) }) => {
11125
11151
  const mediaQueryLg = config.media.md;
11126
- const isMobile = (0, import_react_use5.useMedia)(mediaQueryLg);
11152
+ const isMobile = (0, import_react_use6.useMedia)(mediaQueryLg);
11127
11153
  const [showSetting, setShowSetting] = (0, import_react45.useState)(
11128
11154
  () => settingsList.reduce((obj, { tabName }) => __spreadProps(__spreadValues({}, obj), { [tabName]: true }), {})
11129
11155
  );
@@ -11446,25 +11472,30 @@ var init_AudioVideoToggle = __esm({
11446
11472
  );
11447
11473
  };
11448
11474
  useNoiseCancellationWithPlugin = () => {
11475
+ var _a7;
11449
11476
  const actions = (0, import_react_sdk14.useHMSActions)();
11450
11477
  const [inProgress, setInProgress] = (0, import_react46.useState)(false);
11451
11478
  const [, setNoiseCancellationEnabled] = useSetNoiseCancellation();
11452
- const setNoiseCancellationWithPlugin = (enabled) => __async(void 0, null, function* () {
11453
- if (inProgress) {
11454
- return;
11455
- }
11456
- if (!krispPlugin.checkSupport().isSupported) {
11457
- throw Error("Krisp plugin is not supported");
11458
- }
11459
- setInProgress(true);
11460
- if (enabled) {
11461
- yield actions.addPluginToAudioTrack(krispPlugin);
11462
- } else {
11463
- yield actions.removePluginFromAudioTrack(krispPlugin);
11464
- }
11465
- setNoiseCancellationEnabled(enabled);
11466
- setInProgress(false);
11467
- });
11479
+ const isEnabledForRoom = (_a7 = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
11480
+ const setNoiseCancellationWithPlugin = (0, import_react46.useCallback)(
11481
+ (enabled) => __async(void 0, null, function* () {
11482
+ if (!isEnabledForRoom || inProgress) {
11483
+ return;
11484
+ }
11485
+ if (!krispPlugin.checkSupport().isSupported) {
11486
+ throw Error("Krisp plugin is not supported");
11487
+ }
11488
+ setInProgress(true);
11489
+ if (enabled) {
11490
+ yield actions.addPluginToAudioTrack(krispPlugin);
11491
+ } else {
11492
+ yield actions.removePluginFromAudioTrack(krispPlugin);
11493
+ }
11494
+ setNoiseCancellationEnabled(enabled);
11495
+ setInProgress(false);
11496
+ }),
11497
+ [actions, inProgress, isEnabledForRoom, setNoiseCancellationEnabled]
11498
+ );
11468
11499
  return {
11469
11500
  setNoiseCancellationWithPlugin,
11470
11501
  inProgress
@@ -11602,6 +11633,7 @@ var init_AudioVideoToggle = __esm({
11602
11633
  const localPeer = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalPeer);
11603
11634
  const { isLocalVideoEnabled, isLocalAudioEnabled, toggleAudio, toggleVideo } = (0, import_react_sdk14.useAVToggle)();
11604
11635
  const actions = (0, import_react_sdk14.useHMSActions)();
11636
+ const vanillaStore = (0, import_react_sdk14.useHMSVanillaStore)();
11605
11637
  const videoTrackId = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectLocalVideoTrackID);
11606
11638
  const localVideoTrack = (0, import_react_sdk14.useHMSStore)((0, import_react_sdk14.selectVideoTrackByID)(videoTrackId));
11607
11639
  const roomState = (0, import_react_sdk14.useHMSStore)(import_react_sdk14.selectRoomState);
@@ -11616,7 +11648,9 @@ var init_AudioVideoToggle = __esm({
11616
11648
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
11617
11649
  (0, import_react46.useEffect)(() => {
11618
11650
  (() => __async(void 0, null, function* () {
11619
- if (isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
11651
+ var _a7;
11652
+ const isEnabledForRoom = (_a7 = vanillaStore.getState(import_react_sdk14.selectRoom)) == null ? void 0 : _a7.isNoiseCancellationEnabled;
11653
+ if (isEnabledForRoom && isNoiseCancellationEnabled && !isKrispPluginAdded && !inProgress && (localPeer == null ? void 0 : localPeer.audioTrack)) {
11620
11654
  try {
11621
11655
  yield setNoiseCancellationWithPlugin(true);
11622
11656
  ToastManager.addToast({
@@ -11830,13 +11864,13 @@ function useWaitingRoomInfo() {
11830
11864
  hasSubscribedRolePublishing
11831
11865
  };
11832
11866
  }
11833
- var import_react50, import_react_use6, import_join_form2, import_react_sdk16, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
11867
+ var import_react50, import_react_use7, import_join_form2, import_react_sdk16, useFilteredRoles, useDefaultChatSelection, useShowStreamingUI, useParticipants, useIsLandscape, useLandscapeHLSStream, useMobileHLSStream, useKeyboardHandler, useRecordingHandler;
11834
11868
  var init_hooks = __esm({
11835
11869
  "src/Prebuilt/common/hooks.ts"() {
11836
11870
  "use strict";
11837
11871
  init_define_process_env();
11838
11872
  import_react50 = require("react");
11839
- import_react_use6 = require("react-use");
11873
+ import_react_use7 = require("react-use");
11840
11874
  import_join_form2 = require("@100mslive/types-prebuilt/elements/join_form");
11841
11875
  import_react_sdk16 = require("@100mslive/react-sdk");
11842
11876
  init_ToastManager();
@@ -11893,7 +11927,7 @@ var init_hooks = __esm({
11893
11927
  };
11894
11928
  useIsLandscape = () => {
11895
11929
  const isMobile = import_react_sdk16.parsedUserAgent.getDevice().type === "mobile";
11896
- const isLandscape = (0, import_react_use6.useMedia)(config.media.ls);
11930
+ const isLandscape = (0, import_react_use7.useMedia)(config.media.ls);
11897
11931
  return isMobile && isLandscape;
11898
11932
  };
11899
11933
  useLandscapeHLSStream = () => {
@@ -11902,7 +11936,7 @@ var init_hooks = __esm({
11902
11936
  return isLandscape && screenType === "hls_live_streaming";
11903
11937
  };
11904
11938
  useMobileHLSStream = () => {
11905
- const isMobile = (0, import_react_use6.useMedia)(config.media.md);
11939
+ const isMobile = (0, import_react_use7.useMedia)(config.media.md);
11906
11940
  const { screenType } = useRoomLayoutConferencingScreen();
11907
11941
  return isMobile && screenType === "hls_live_streaming";
11908
11942
  };
@@ -11977,13 +12011,13 @@ var init_hooks = __esm({
11977
12011
  });
11978
12012
 
11979
12013
  // src/Prebuilt/components/EmojiReaction.jsx
11980
- var import_react51, import_react_use7, import_apple, import_emoji_mart, import_react_sdk17, import_react_icons15, EmojiReaction;
12014
+ var import_react51, import_react_use8, import_apple, import_emoji_mart, import_react_sdk17, import_react_icons15, EmojiReaction;
11981
12015
  var init_EmojiReaction = __esm({
11982
12016
  "src/Prebuilt/components/EmojiReaction.jsx"() {
11983
12017
  "use strict";
11984
12018
  init_define_process_env();
11985
12019
  import_react51 = __toESM(require("react"));
11986
- import_react_use7 = require("react-use");
12020
+ import_react_use8 = require("react-use");
11987
12021
  import_apple = __toESM(require("@emoji-mart/data/sets/14/apple.json"));
11988
12022
  import_emoji_mart = require("emoji-mart");
11989
12023
  import_react_sdk17 = require("@100mslive/react-sdk");
@@ -12006,8 +12040,8 @@ var init_EmojiReaction = __esm({
12006
12040
  useDropdownList({ open, name: "EmojiReaction" });
12007
12041
  const roles = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectAvailableRoleNames);
12008
12042
  const localPeerId = (0, import_react_sdk17.useHMSStore)(import_react_sdk17.selectLocalPeerID);
12009
- const isMobile = (0, import_react_use7.useMedia)(config.media.md);
12010
- const isLandscape = (0, import_react_use7.useMedia)(config.media.ls);
12043
+ const isMobile = (0, import_react_use8.useMedia)(config.media.md);
12044
+ const isLandscape = (0, import_react_use8.useMedia)(config.media.ls);
12011
12045
  const isMobileHLSStream = useMobileHLSStream();
12012
12046
  const isLandscapeStream = useLandscapeHLSStream();
12013
12047
  const { sendEvent } = (0, import_react_sdk17.useCustomEvent)({
@@ -12450,13 +12484,13 @@ var init_MwebLeaveRoom = __esm({
12450
12484
  });
12451
12485
 
12452
12486
  // src/Prebuilt/components/Leave/LeaveRoom.tsx
12453
- var import_react57, import_react_use8, import_react_sdk20, LeaveRoom;
12487
+ var import_react57, import_react_use9, import_react_sdk20, LeaveRoom;
12454
12488
  var init_LeaveRoom = __esm({
12455
12489
  "src/Prebuilt/components/Leave/LeaveRoom.tsx"() {
12456
12490
  "use strict";
12457
12491
  init_define_process_env();
12458
12492
  import_react57 = __toESM(require("react"));
12459
- import_react_use8 = require("react-use");
12493
+ import_react_use9 = require("react-use");
12460
12494
  import_react_sdk20 = require("@100mslive/react-sdk");
12461
12495
  init_Theme();
12462
12496
  init_ToastManager();
@@ -12469,7 +12503,7 @@ var init_LeaveRoom = __esm({
12469
12503
  }) => {
12470
12504
  const isConnected = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectIsConnectedToRoom);
12471
12505
  const permissions = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectPermissions);
12472
- const isMobile = (0, import_react_use8.useMedia)(config.media.md);
12506
+ const isMobile = (0, import_react_use9.useMedia)(config.media.md);
12473
12507
  const rolesMap = (0, import_react_sdk20.useHMSStore)(import_react_sdk20.selectRolesMap);
12474
12508
  const streamingPermissionRoles = Object.keys(rolesMap).filter((roleName) => {
12475
12509
  const roleObj = rolesMap[roleName];
@@ -13462,13 +13496,13 @@ var init_empty_chat = __esm({
13462
13496
  });
13463
13497
 
13464
13498
  // src/Prebuilt/components/Chat/EmptyChat.tsx
13465
- var import_react64, import_react_use9, EmptyChat;
13499
+ var import_react64, import_react_use10, EmptyChat;
13466
13500
  var init_EmptyChat = __esm({
13467
13501
  "src/Prebuilt/components/Chat/EmptyChat.tsx"() {
13468
13502
  "use strict";
13469
13503
  init_define_process_env();
13470
13504
  import_react64 = __toESM(require("react"));
13471
- import_react_use9 = require("react-use");
13505
+ import_react_use10 = require("react-use");
13472
13506
  init_Layout();
13473
13507
  init_Text2();
13474
13508
  init_Theme();
@@ -13480,7 +13514,7 @@ var init_EmptyChat = __esm({
13480
13514
  var _a7;
13481
13515
  const { elements } = useRoomLayoutConferencingScreen();
13482
13516
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
13483
- const isMobile = (0, import_react_use9.useMedia)(config.media.md);
13517
+ const isMobile = (0, import_react_use10.useMedia)(config.media.md);
13484
13518
  const canSendMessages = elements.chat && (elements.chat.public_chat_enabled || elements.chat.private_chat_enabled || elements.chat.roles_whitelist && elements.chat.roles_whitelist.length) && !isLocalPeerBlacklisted;
13485
13519
  const isMobileHLSStream = useMobileHLSStream();
13486
13520
  const isLandscapeStream = useLandscapeHLSStream();
@@ -13561,13 +13595,13 @@ function getRowHeight(index) {
13561
13595
  var _a7;
13562
13596
  return ((_a7 = rowHeights[index]) == null ? void 0 : _a7.size) || 72;
13563
13597
  }
13564
- var import_react66, import_react_use10, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk27, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
13598
+ var import_react66, import_react_use11, import_react_virtualized_auto_sizer, import_react_window, import_react_sdk27, import_react_icons22, rowHeights, listInstance, setRowHeight, getMessageBackgroundColor, MessageTypeContainer, MessageType, URL_REGEX, Link2, AnnotisedMessage, getMessageType, SenderName, ChatMessage, MessageWrapper, VirtualizedChatMessages, ChatBody, PinnedBy;
13565
13599
  var init_ChatBody = __esm({
13566
13600
  "src/Prebuilt/components/Chat/ChatBody.tsx"() {
13567
13601
  "use strict";
13568
13602
  init_define_process_env();
13569
13603
  import_react66 = __toESM(require("react"));
13570
- import_react_use10 = require("react-use");
13604
+ import_react_use11 = require("react-use");
13571
13605
  import_react_virtualized_auto_sizer = __toESM(require("react-virtualized-auto-sizer"));
13572
13606
  import_react_window = require("react-window");
13573
13607
  import_react_sdk27 = require("@100mslive/react-sdk");
@@ -13691,7 +13725,7 @@ var init_ChatBody = __esm({
13691
13725
  var _a7, _b7, _c;
13692
13726
  const { elements } = useRoomLayoutConferencingScreen();
13693
13727
  const rowRef = (0, import_react66.useRef)(null);
13694
- const isMobile = (0, import_react_use10.useMedia)(config.media.md);
13728
+ const isMobile = (0, import_react_use11.useMedia)(config.media.md);
13695
13729
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
13696
13730
  const isOverlay = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
13697
13731
  const localPeerId = (0, import_react_sdk27.useHMSStore)(import_react_sdk27.selectLocalPeerID);
@@ -13999,7 +14033,7 @@ var init_PIPChat = __esm({
13999
14033
  init_useChatBlacklist();
14000
14034
  init_utils3();
14001
14035
  PIPChat = () => {
14002
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i, _j;
14036
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i, _j;
14003
14037
  const messages = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectHMSMessages);
14004
14038
  const localPeerID = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectLocalPeerID);
14005
14039
  const count = (0, import_react_sdk28.useHMSStore)(import_react_sdk28.selectUnreadHMSMessagesCount);
@@ -14137,7 +14171,7 @@ var init_PIPChat = __esm({
14137
14171
  borderRadius: "4px",
14138
14172
  padding: "0 2px"
14139
14173
  },
14140
- defaultValue: ((_e2 = elements.chat) == null ? void 0 : _e2.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
14174
+ defaultValue: ((_e = elements.chat) == null ? void 0 : _e.public_chat_enabled) ? "Everyone" : (_g = (_f = elements.chat) == null ? void 0 : _f.roles_whitelist) == null ? void 0 : _g[0]
14141
14175
  },
14142
14176
  (_i = (_h = elements.chat) == null ? void 0 : _h.roles_whitelist) == null ? void 0 : _i.map((role) => /* @__PURE__ */ import_react67.default.createElement("option", { key: role, value: role }, role)),
14143
14177
  ((_j = elements.chat) == null ? void 0 : _j.public_chat_enabled) ? /* @__PURE__ */ import_react67.default.createElement("option", { value: "Everyone" }, "Everyone") : ""
@@ -14240,13 +14274,13 @@ var init_PIPWindow = __esm({
14240
14274
  });
14241
14275
 
14242
14276
  // src/Prebuilt/components/RoleChangeModal.tsx
14243
- var import_react69, import_react_use11, import_react_sdk29, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
14277
+ var import_react69, import_react_use12, import_react_sdk29, import_react_icons25, HighlightTerm, RoleChangeContent, RoleChangeModal;
14244
14278
  var init_RoleChangeModal = __esm({
14245
14279
  "src/Prebuilt/components/RoleChangeModal.tsx"() {
14246
14280
  "use strict";
14247
14281
  init_define_process_env();
14248
14282
  import_react69 = __toESM(require("react"));
14249
- import_react_use11 = require("react-use");
14283
+ import_react_use12 = require("react-use");
14250
14284
  import_react_sdk29 = require("@100mslive/react-sdk");
14251
14285
  import_react_icons25 = require("@100mslive/react-icons");
14252
14286
  init_Button2();
@@ -14380,7 +14414,7 @@ var init_RoleChangeModal = __esm({
14380
14414
  onOpenChange
14381
14415
  }) => {
14382
14416
  const peer = (0, import_react_sdk29.useHMSStore)((0, import_react_sdk29.selectPeerByID)(peerId));
14383
- const isMobile = (0, import_react_use11.useMedia)(config.media.md);
14417
+ const isMobile = (0, import_react_use12.useMedia)(config.media.md);
14384
14418
  if (!peer) {
14385
14419
  return null;
14386
14420
  }
@@ -14849,7 +14883,7 @@ var init_StatsForNerds = __esm({
14849
14883
  return tracksWithLabels;
14850
14884
  };
14851
14885
  LocalPeerStats = () => {
14852
- var _a7, _b7, _c, _d, _e2, _f, _g, _h, _i;
14886
+ var _a7, _b7, _c, _d, _e, _f, _g, _h, _i;
14853
14887
  const stats = (0, import_react_sdk31.useHMSStatsStore)(import_react_sdk31.selectHMSStats.localPeerStats);
14854
14888
  if (!stats) {
14855
14889
  return null;
@@ -14858,7 +14892,7 @@ var init_StatsForNerds = __esm({
14858
14892
  StatsRow2,
14859
14893
  {
14860
14894
  label: "Available Outgoing Bitrate",
14861
- value: formatBytes((_e2 = stats.publish) == null ? void 0 : _e2.availableOutgoingBitrate, "b/s")
14895
+ value: formatBytes((_e = stats.publish) == null ? void 0 : _e.availableOutgoingBitrate, "b/s")
14862
14896
  }
14863
14897
  ), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Sent", value: formatBytes((_f = stats.publish) == null ? void 0 : _f.bytesSent) }), /* @__PURE__ */ import_react73.default.createElement(StatsRow2, { label: "Total Bytes Received", value: formatBytes((_g = stats.subscribe) == null ? void 0 : _g.bytesReceived) }), /* @__PURE__ */ import_react73.default.createElement(
14864
14898
  StatsRow2,
@@ -15164,18 +15198,18 @@ var init_CaptionContent = __esm({
15164
15198
  });
15165
15199
 
15166
15200
  // src/Prebuilt/components/MoreSettings/CaptionModal.tsx
15167
- var import_react76, import_react_use12, CaptionModal;
15201
+ var import_react76, import_react_use13, CaptionModal;
15168
15202
  var init_CaptionModal = __esm({
15169
15203
  "src/Prebuilt/components/MoreSettings/CaptionModal.tsx"() {
15170
15204
  "use strict";
15171
15205
  init_define_process_env();
15172
15206
  import_react76 = __toESM(require("react"));
15173
- import_react_use12 = require("react-use");
15207
+ import_react_use13 = require("react-use");
15174
15208
  init_src();
15175
15209
  init_Sheet2();
15176
15210
  init_CaptionContent();
15177
15211
  CaptionModal = ({ onOpenChange }) => {
15178
- const isMobile = (0, import_react_use12.useMedia)(config.media.md);
15212
+ const isMobile = (0, import_react_use13.useMedia)(config.media.md);
15179
15213
  const props = {
15180
15214
  isMobile,
15181
15215
  onExit: () => {
@@ -15270,27 +15304,6 @@ var init_FullScreenItem = __esm({
15270
15304
  }
15271
15305
  });
15272
15306
 
15273
- // src/Prebuilt/components/MoreSettings/constants.ts
15274
- var trackSourceOptions, trackTypeOptions;
15275
- var init_constants3 = __esm({
15276
- "src/Prebuilt/components/MoreSettings/constants.ts"() {
15277
- "use strict";
15278
- init_define_process_env();
15279
- trackSourceOptions = [
15280
- { label: "All Track Sources", value: "" },
15281
- { label: "regular", value: "regular" },
15282
- { label: "screen", value: "screen" },
15283
- { label: "audioplaylist", value: "audioplaylist" },
15284
- { label: "videoplaylist", value: "videoplaylist" }
15285
- ];
15286
- trackTypeOptions = [
15287
- { label: "All Track Types", value: "" },
15288
- { label: "audio", value: "audio" },
15289
- { label: "video", value: "video" }
15290
- ];
15291
- }
15292
- });
15293
-
15294
15307
  // src/Prebuilt/components/MoreSettings/MuteAllContent.tsx
15295
15308
  var import_react79, import_react_sdk34, MuteAllContent;
15296
15309
  var init_MuteAllContent = __esm({
@@ -15874,10 +15887,10 @@ var require_ua_parser = __commonJS({
15874
15887
  }
15875
15888
  };
15876
15889
  var rgxMapper = function(ua2, arrays) {
15877
- var i = 0, j2, k2, p, q2, matches, match18;
15890
+ var i = 0, j2, k, p, q2, matches, match18;
15878
15891
  while (i < arrays.length && !matches) {
15879
15892
  var regex = arrays[i], props = arrays[i + 1];
15880
- j2 = k2 = 0;
15893
+ j2 = k = 0;
15881
15894
  while (j2 < regex.length && !matches) {
15882
15895
  if (!regex[j2]) {
15883
15896
  break;
@@ -15885,7 +15898,7 @@ var require_ua_parser = __commonJS({
15885
15898
  matches = regex[j2++].exec(ua2);
15886
15899
  if (!!matches) {
15887
15900
  for (p = 0; p < props.length; p++) {
15888
- match18 = matches[++k2];
15901
+ match18 = matches[++k];
15889
15902
  q2 = props[p];
15890
15903
  if (typeof q2 === OBJ_TYPE && q2.length > 0) {
15891
15904
  if (q2.length === 2) {
@@ -18087,8 +18100,8 @@ function shimGetUserMedia(window2, browserDetails) {
18087
18100
  }
18088
18101
  if (matches) {
18089
18102
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
18090
- devices = devices.filter((d2) => d2.kind === "videoinput");
18091
- let dev = devices.find((d2) => matches.some((match18) => d2.label.toLowerCase().includes(match18)));
18103
+ devices = devices.filter((d) => d.kind === "videoinput");
18104
+ let dev = devices.find((d) => matches.some((match18) => d.label.toLowerCase().includes(match18)));
18092
18105
  if (!dev && devices.length && matches.includes("back")) {
18093
18106
  dev = devices[devices.length - 1];
18094
18107
  }
@@ -18244,15 +18257,15 @@ function shimOnTrack(window2) {
18244
18257
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
18245
18258
  if (!this._ontrackpoly) {
18246
18259
  this._ontrackpoly = (e) => {
18247
- e.stream.addEventListener("addtrack", (te2) => {
18260
+ e.stream.addEventListener("addtrack", (te) => {
18248
18261
  let receiver;
18249
18262
  if (window2.RTCPeerConnection.prototype.getReceivers) {
18250
- receiver = this.getReceivers().find((r) => r.track && r.track.id === te2.track.id);
18263
+ receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
18251
18264
  } else {
18252
- receiver = { track: te2.track };
18265
+ receiver = { track: te.track };
18253
18266
  }
18254
18267
  const event = new Event("track");
18255
- event.track = te2.track;
18268
+ event.track = te.track;
18256
18269
  event.receiver = receiver;
18257
18270
  event.transceiver = { receiver };
18258
18271
  event.streams = [e.stream];
@@ -20428,7 +20441,7 @@ function shimParameterlessSetLocalDescription(window2, browserDetails) {
20428
20441
  return nativeSetLocalDescription.apply(this, [desc]);
20429
20442
  }
20430
20443
  const func = desc.type === "offer" ? this.createOffer : this.createAnswer;
20431
- return func.apply(this).then((d2) => nativeSetLocalDescription.apply(this, [d2]));
20444
+ return func.apply(this).then((d) => nativeSetLocalDescription.apply(this, [d]));
20432
20445
  };
20433
20446
  }
20434
20447
  var import_sdp;
@@ -21073,9 +21086,9 @@ var require_parser = __commonJS({
21073
21086
  var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);
21074
21087
  exports.parse = function(sdp2) {
21075
21088
  var session = {}, media = [], location = session;
21076
- sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l) {
21077
- var type = l[0];
21078
- var content = l.slice(2);
21089
+ sdp2.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function(l2) {
21090
+ var type = l2[0];
21091
+ var content = l2.slice(2);
21079
21092
  if (type === "m") {
21080
21093
  media.push({ rtp: [], fmtp: [] });
21081
21094
  location = media[media.length - 1];
@@ -21268,7 +21281,7 @@ var require_lib = __commonJS({
21268
21281
  });
21269
21282
 
21270
21283
  // ../hms-video-store/dist/index.js
21271
- function xe(a2, e) {
21284
+ function Be(a2, e) {
21272
21285
  let t, i;
21273
21286
  if (e)
21274
21287
  for (let r of e.auxiliaryTracks) {
@@ -21286,16 +21299,16 @@ function pt(a2) {
21286
21299
  function eo(a2) {
21287
21300
  return a2 && a2.source === "screen";
21288
21301
  }
21289
- function ri(a2) {
21302
+ function ii(a2) {
21290
21303
  return a2 && a2.source === "audioplaylist";
21291
21304
  }
21292
21305
  function ht(a2) {
21293
21306
  return a2 && a2.source === "videoplaylist";
21294
21307
  }
21295
- function ds(a2) {
21308
+ function cs(a2) {
21296
21309
  return a2 ? !!(a2 != null && a2.degraded) : false;
21297
21310
  }
21298
- function je(a2, e) {
21311
+ function Je(a2, e) {
21299
21312
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21300
21313
  }
21301
21314
  function mt(a2) {
@@ -21304,26 +21317,26 @@ function mt(a2) {
21304
21317
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21305
21318
  }
21306
21319
  function so() {
21307
- if (O && window) {
21320
+ if (U && window) {
21308
21321
  let a2 = window.location.hostname;
21309
21322
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21310
21323
  }
21311
21324
  return "CUSTOM";
21312
21325
  }
21313
- function oe(a2) {
21326
+ function ne(a2) {
21314
21327
  return a2 != null;
21315
21328
  }
21316
- function ft(a2 = "prod", e) {
21317
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21318
- if (Ue)
21319
- return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21320
- let r = ge.getOS(), s = ge.getDevice(), o = ge.getBrowser(), n = yr(`web_${r.name}`), l = r.version || "", u = yr(`${o.name}_${o.version}`), p = u;
21321
- return s.type && (p = `${yr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: l, sdk: t, sdk_version: ys, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21329
+ function Tt(a2 = "prod", e) {
21330
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21331
+ if (Ve)
21332
+ return ks({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ys, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21333
+ let r = fe.getOS(), s = fe.getDevice(), o = fe.getBrowser(), n = Mr(`web_${r.name}`), d = r.version || "", u = Mr(`${o.name}_${o.version}`), p = u;
21334
+ return s.type && (p = `${Mr(`${s.vendor}_${s.type}`)}/${u}`), ks({ os: n, os_version: d, sdk: t, sdk_version: ys, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21322
21335
  }
21323
- function yr(a2) {
21336
+ function Mr(a2) {
21324
21337
  return a2.replace(/ /g, "_");
21325
21338
  }
21326
- function oi(a2, e = 300) {
21339
+ function ai(a2, e = 300) {
21327
21340
  let t;
21328
21341
  return function(...i) {
21329
21342
  clearTimeout(t), t = void 0;
@@ -21333,25 +21346,25 @@ function oi(a2, e = 300) {
21333
21346
  }, e);
21334
21347
  };
21335
21348
  }
21336
- function I(a2) {
21349
+ function A(a2) {
21337
21350
  return (e) => (t) => a2(t, e);
21338
21351
  }
21339
- function Bm(a2) {
21352
+ function Vm(a2) {
21340
21353
  return (e) => {
21341
21354
  if (e.sessionStore)
21342
21355
  return a2 ? e.sessionStore[a2] : e.sessionStore;
21343
21356
  };
21344
21357
  }
21345
- var import_ua_parser_js, import_lodash3, import_uuid3, import_uuid4, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Kt, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, ei, as, os, ss, m, M, Sr, Xa, Mr, gr, Za, ns, Tr, cs, us, to, d, ge, O, ps, Ue, ro, ic, hs, ms, gs, Ts, Qe, k, f, ao, S, vr, fs, le, vs, ys, ks, H, y, kr, Q, Pr, Er, Ar, Rs, As, Is, Hs, Cs, Ir, Ls, Hr, Ns, Cr, Os, Lr, Dr, Bs, Vs, Pt, rt, B, Ho, Kh, qh, K, fi, Qs, N, Fr, Co, _e, Qh, Lo, me, Do, te, ye, zh, Yh, ae, Y, wo, Ys, Xh, Zh, Wr, _o, tm, im, rm, sm, am, om, nm, cm, At, No, dm, ie, Zs, lm, um, Se, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, ia, Rm, xo, Am, sa, $r, aa, oa, na, ca, da, la, ua, pa, It, b, Kr, Ht, ha, Uo, Bo, q, qr, Vo, Fo, Go, Wo, $o, X, Um, Fm, Gm, vi, ma, Wm, $m, Km, Ko, qo, jm, Sa, Jm, jo, Qm, zm, Ym, Xm, Zm, eS, ga, Ta, iS, rS, fa, sS, aS, va, oS, nS, cS, Ma, ya, Jo, Qo, zo, dS, lS, uS, pS, hS, ka, bS, Yo, RS, AS, IS, Zo, en, sn, Yr, Pe, j, ir, ur, Pn, En, bn, Rn, Ka, An, qa, is, be, In, Hn, Cn, Ln, Dn, wn, _n, Nn, On, xn, rs, Un, Bn, Vn, Fn, Gn, Wn;
21358
+ var import_ua_parser_js, import_uuid3, import_uuid4, import_lodash3, import_lodash4, import_uuid5, import_uuid6, import_uuid7, import_eventemitter2, import_eventemitter22, import_uuid8, import_eventemitter23, Kt, import_eventemitter24, import_uuid9, import_uuid10, ja, Ja, Qa, Zt, ss, as, rs, m, M, mr, Xa, vr, Sr, Za, os, gr, ns, ls, to, l, fe, U, us, Ve, ro, ic, ps, hs, gs, Ts, ze, P3, f, ao, S, fr, fs, pe, vs, ys, ks, H, y, yr, J, kr, Pr, Ir, Is, Rs, As, Hs, Cs, Rr, Ls, Ar, Ns, Hr, Os, Cr, Lr, Bs, Vs, Pt, rt, B, Ho, Kh, qh, K, Ti, Qs, N, Vr, Co, Oe, Qh, Lo, ge, wo, ie, Pe, zh, Yh, oe, z, Do, Ys, Xh, Zh, Gr, _o, tm, im, rm, sm, am, om, nm, cm, Rt, No, dm, re, Zs, lm, um, Te, pm, at, Oo, ea, hm, ta, mm, Sm, gm, Tm, fm, vm, Mm, ym, km, Pm, ia, Rm, xo, Am, sa, Wr, aa, oa, na, ca, da, la, ua, pa, At, b, $r, Ht, ha, Uo, Bo, q, Kr, Vo, Fo, Go, Wo, $o, Y, Bm, Gm, Wm, fi, ma, $m, Km, qm, Ko, qo, Jm, Sa, Qm, jo, zm, Ym, Xm, Zm, eS, tS, ga, Ta, rS, sS, fa, aS, oS, va, nS, cS, dS, Ma, ya, Jo, Qo, zo, lS, uS, pS, hS, mS, ka, IS, Yo, RS, AS, HS, Zo, en, sn, zr, be, j, tr, lr, Pn, En, bn, In, Ka, Rn, qa, ts, Re, An, Hn, Cn, Ln, wn, Dn, _n, Nn, On, xn, is, Un, Bn, Vn, Fn, Gn, Wn;
21346
21359
  var init_dist = __esm({
21347
21360
  "../hms-video-store/dist/index.js"() {
21348
21361
  "use strict";
21349
21362
  init_define_process_env();
21350
21363
  init_es();
21351
21364
  import_ua_parser_js = __toESM(require_ua_parser());
21352
- import_lodash3 = __toESM(require_lodash2());
21353
21365
  import_uuid3 = require("uuid");
21354
21366
  import_uuid4 = require("uuid");
21367
+ import_lodash3 = __toESM(require_lodash2());
21355
21368
  init_adapter_core();
21356
21369
  import_lodash4 = __toESM(require_lodash2());
21357
21370
  import_uuid5 = require("uuid");
@@ -21373,40 +21386,40 @@ var init_dist = __esm({
21373
21386
  ja = Object.defineProperty;
21374
21387
  Ja = Object.defineProperties;
21375
21388
  Qa = Object.getOwnPropertyDescriptors;
21376
- ei = Object.getOwnPropertySymbols;
21377
- as = Object.prototype.hasOwnProperty;
21378
- os = Object.prototype.propertyIsEnumerable;
21379
- ss = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21389
+ Zt = Object.getOwnPropertySymbols;
21390
+ ss = Object.prototype.hasOwnProperty;
21391
+ as = Object.prototype.propertyIsEnumerable;
21392
+ rs = (a2, e, t) => e in a2 ? ja(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21380
21393
  m = (a2, e) => {
21381
21394
  for (var t in e || (e = {}))
21382
- as.call(e, t) && ss(a2, t, e[t]);
21383
- if (ei)
21384
- for (var t of ei(e))
21385
- os.call(e, t) && ss(a2, t, e[t]);
21395
+ ss.call(e, t) && rs(a2, t, e[t]);
21396
+ if (Zt)
21397
+ for (var t of Zt(e))
21398
+ as.call(e, t) && rs(a2, t, e[t]);
21386
21399
  return a2;
21387
21400
  };
21388
21401
  M = (a2, e) => Ja(a2, Qa(e));
21389
- Sr = (a2, e) => {
21402
+ mr = (a2, e) => {
21390
21403
  var t = {};
21391
21404
  for (var i in a2)
21392
- as.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21393
- if (a2 != null && ei)
21394
- for (var i of ei(a2))
21395
- e.indexOf(i) < 0 && os.call(a2, i) && (t[i] = a2[i]);
21405
+ ss.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21406
+ if (a2 != null && Zt)
21407
+ for (var i of Zt(a2))
21408
+ e.indexOf(i) < 0 && as.call(a2, i) && (t[i] = a2[i]);
21396
21409
  return t;
21397
21410
  };
21398
21411
  Xa = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21399
- Mr = Xa((Fc, no) => {
21400
- no.exports = { version: "0.12.17-alpha.1", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21412
+ vr = Xa((Ac, no) => {
21413
+ no.exports = { version: "0.12.17-alpha.11", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21401
21414
  });
21402
- gr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(gr || {});
21415
+ Sr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Sr || {});
21403
21416
  Za = ((e) => (e.CHAT = "chat", e))(Za || {});
21404
- ns = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ns || {});
21405
- Tr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(Tr || {});
21406
- cs = ((t) => (t.audio = "audio", t.video = "video", t))(cs || {});
21407
- us = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(us || {});
21417
+ os = ((t) => (t.INFO = "info", t.ERROR = "error", t))(os || {});
21418
+ gr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(gr || {});
21419
+ ns = ((t) => (t.audio = "audio", t.video = "video", t))(ns || {});
21420
+ ls = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(ls || {});
21408
21421
  to = typeof window != "undefined" && typeof window.expect != "undefined";
21409
- d = class {
21422
+ l = class {
21410
21423
  static v(e, ...t) {
21411
21424
  this.log(0, e, ...t);
21412
21425
  }
@@ -21471,16 +21484,16 @@ var init_dist = __esm({
21471
21484
  }
21472
21485
  }
21473
21486
  };
21474
- d.level = to ? 7 : 0;
21475
- ge = new import_ua_parser_js.UAParser();
21476
- O = typeof window != "undefined";
21477
- Ue = typeof window == "undefined" && !((ps = ge.getBrowser().name) != null && ps.toLowerCase().includes("electron"));
21478
- ro = () => !Ue;
21487
+ l.level = to ? 7 : 0;
21488
+ fe = new import_ua_parser_js.UAParser();
21489
+ U = typeof window != "undefined";
21490
+ Ve = typeof window == "undefined" && !((us = fe.getBrowser().name) != null && us.toLowerCase().includes("electron"));
21491
+ ro = () => !Ve;
21479
21492
  ic = ro();
21480
- gs = ((ms = (hs = ge.getBrowser()) == null ? void 0 : hs.name) == null ? void 0 : ms.toLowerCase()) === "firefox";
21493
+ gs = ((hs = (ps = fe.getBrowser()) == null ? void 0 : ps.name) == null ? void 0 : hs.toLowerCase()) === "firefox";
21481
21494
  Ts = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ts || {});
21482
- Qe = so();
21483
- k = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21495
+ ze = so();
21496
+ P3 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21484
21497
  f = class a extends Error {
21485
21498
  constructor(t, i, r, s, o, n = false) {
21486
21499
  super(s);
@@ -21512,97 +21525,97 @@ var init_dist = __esm({
21512
21525
  };
21513
21526
  ao = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21514
21527
  S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21515
- return new f(k.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21528
+ return new f(P3.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21516
21529
  }, WebSocketConnectionLost(a2, e = "") {
21517
- return new f(k.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21530
+ return new f(P3.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21518
21531
  }, AbnormalClose(a2, e = "") {
21519
- return new f(k.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21532
+ return new f(P3.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21520
21533
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21521
21534
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21522
21535
  }, EndpointUnreachable(a2, e = "") {
21523
- return new f(k.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21536
+ return new f(P3.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21524
21537
  }, InvalidTokenFormat(a2, e = "") {
21525
- return new f(k.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21538
+ return new f(P3.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21526
21539
  }, InitConfigNotAvailable(a2, e = "") {
21527
- return new f(k.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21540
+ return new f(P3.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21528
21541
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21529
- return new f(k.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21542
+ return new f(P3.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21530
21543
  }, CantAccessCaptureDevice(a2, e, t = "") {
21531
- return new f(k.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21544
+ return new f(P3.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21532
21545
  }, DeviceNotAvailable(a2, e, t = "") {
21533
- return new f(k.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21546
+ return new f(P3.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21534
21547
  }, DeviceInUse(a2, e, t = "") {
21535
- return new f(k.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21548
+ return new f(P3.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21536
21549
  }, DeviceLostMidway(a2, e, t = "") {
21537
- return new f(k.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21550
+ return new f(P3.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21538
21551
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21539
- return new f(k.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21552
+ return new f(P3.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21540
21553
  }, InvalidVideoSettings(a2, e = "") {
21541
- return new f(k.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21554
+ return new f(P3.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21542
21555
  }, AutoplayBlocked(a2, e = "") {
21543
- return new f(k.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21556
+ return new f(P3.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21544
21557
  }, CodecChangeNotPermitted(a2, e = "") {
21545
- return new f(k.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21558
+ return new f(P3.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21546
21559
  }, OverConstrained(a2, e, t = "") {
21547
- return new f(k.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21560
+ return new f(P3.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21548
21561
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21549
- return new f(k.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21562
+ return new f(P3.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21550
21563
  }, SystemDeniedPermission(a2, e, t = "") {
21551
- return new f(k.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21564
+ return new f(P3.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21552
21565
  }, CurrentTabNotShared() {
21553
- return new f(k.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21566
+ return new f(P3.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21554
21567
  }, AudioPlaybackError(a2) {
21555
- return new f(k.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21568
+ return new f(P3.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21556
21569
  }, SelectedDeviceMissing(a2) {
21557
- return new f(k.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21570
+ return new f(P3.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21558
21571
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21559
- return new f(k.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21572
+ return new f(P3.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21560
21573
  }, CreateAnswerFailed(a2, e = "") {
21561
- return new f(k.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21574
+ return new f(P3.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21562
21575
  }, SetLocalDescriptionFailed(a2, e = "") {
21563
- return new f(k.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21576
+ return new f(P3.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21564
21577
  }, SetRemoteDescriptionFailed(a2, e = "") {
21565
- return new f(k.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21578
+ return new f(P3.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21566
21579
  }, ICEFailure(a2, e = "", t = false) {
21567
- return new f(k.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21580
+ return new f(P3.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21568
21581
  }, ICEDisconnected(a2, e = "") {
21569
- return new f(k.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21582
+ return new f(P3.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21570
21583
  }, StatsFailed(a2, e = "") {
21571
- return new f(k.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21584
+ return new f(P3.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21572
21585
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21573
21586
  return new f(a2, "ServerErrors", e, t, t, ao.includes(e));
21574
21587
  }, AlreadyJoined(a2, e = "") {
21575
- return new f(k.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21588
+ return new f(P3.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21576
21589
  }, CannotJoinPreviewInProgress(a2, e = "") {
21577
- return new f(k.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21590
+ return new f(P3.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21578
21591
  } }, GenericErrors: { NotConnected(a2, e = "") {
21579
- return new f(k.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21592
+ return new f(P3.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21580
21593
  }, Signalling(a2, e) {
21581
- return new f(k.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21594
+ return new f(P3.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21582
21595
  }, Unknown(a2, e) {
21583
- return new f(k.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21596
+ return new f(P3.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21584
21597
  }, NotReady(a2, e = "") {
21585
- return new f(k.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21598
+ return new f(P3.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21586
21599
  }, JsonParsingFailed(a2, e, t = "") {
21587
- return new f(k.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21600
+ return new f(P3.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21588
21601
  }, TrackMetadataMissing(a2, e = "") {
21589
- return new f(k.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21602
+ return new f(P3.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21590
21603
  }, RTCTrackMissing(a2, e = "") {
21591
- return new f(k.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21604
+ return new f(P3.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21592
21605
  }, PeerMetadataMissing(a2, e = "") {
21593
- return new f(k.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21606
+ return new f(P3.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21594
21607
  }, ValidationFailed(a2, e) {
21595
- return new f(k.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21608
+ return new f(P3.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21596
21609
  }, InvalidRole(a2, e) {
21597
- return new f(k.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21610
+ return new f(P3.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21598
21611
  }, PreviewAlreadyInProgress(a2, e = "") {
21599
- return new f(k.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21612
+ return new f(P3.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21600
21613
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21601
- return new f(k.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21614
+ return new f(P3.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21602
21615
  }, MissingMediaDevices() {
21603
- return new f(k.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21616
+ return new f(P3.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21604
21617
  }, MissingRTCPeerConnection() {
21605
- return new f(k.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21618
+ return new f(P3.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21606
21619
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21607
21620
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21608
21621
  }, InitFailed(a2, e = "") {
@@ -21614,11 +21627,11 @@ var init_dist = __esm({
21614
21627
  }, DeviceNotSupported(a2, e = "") {
21615
21628
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21616
21629
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21617
- return new f(k.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21630
+ return new f(P3.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21618
21631
  }, NoEntryPlaying(a2, e) {
21619
- return new f(k.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21632
+ return new f(P3.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21620
21633
  } } };
21621
- vr = class {
21634
+ fr = class {
21622
21635
  constructor() {
21623
21636
  this.valuesMap = /* @__PURE__ */ new Map();
21624
21637
  }
@@ -21645,21 +21658,21 @@ var init_dist = __esm({
21645
21658
  };
21646
21659
  fs = () => {
21647
21660
  try {
21648
- O && !localStorage && (window.localStorage = new vr());
21661
+ U && !localStorage && (window.localStorage = new fr());
21649
21662
  } catch (a2) {
21650
- d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21663
+ l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21651
21664
  }
21652
21665
  };
21653
- le = class {
21666
+ pe = class {
21654
21667
  constructor(e) {
21655
21668
  this.key = e;
21656
21669
  this.storage = null;
21657
21670
  }
21658
21671
  getStorage() {
21659
21672
  try {
21660
- return O && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21673
+ return U && !this.storage && (fs(), this.storage = window.localStorage), this.storage;
21661
21674
  } catch (e) {
21662
- return d.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21675
+ return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21663
21676
  }
21664
21677
  }
21665
21678
  get() {
@@ -21678,36 +21691,36 @@ var init_dist = __esm({
21678
21691
  }
21679
21692
  };
21680
21693
  vs = () => {
21681
- let a2, e = new le("hms-analytics-deviceId"), t = e.get();
21694
+ let a2, e = new pe("hms-analytics-deviceId"), t = e.get();
21682
21695
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21683
21696
  };
21684
- ys = Mr().version;
21685
- ks = (a2, e = ",") => Object.keys(a2).filter((t) => oe(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21697
+ ys = vr().version;
21698
+ ks = (a2, e = ",") => Object.keys(a2).filter((t) => ne(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21686
21699
  H = class {
21687
21700
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21688
- this.metadata = { peer: {}, userAgent: ft() };
21701
+ this.metadata = { peer: {}, userAgent: Tt() };
21689
21702
  this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = vs();
21690
21703
  }
21691
21704
  toSignalParams() {
21692
- return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21705
+ return { name: this.name, info: M(m({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21693
21706
  }
21694
21707
  };
21695
21708
  y = class {
21696
21709
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21697
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21698
- return new H({ name: o, level: n, properties: l });
21710
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21711
+ return new H({ name: o, level: n, properties: d });
21699
21712
  }
21700
21713
  static disconnect(e, t) {
21701
21714
  let i = "disconnected", r = e ? 2 : 1, s = this.getPropertiesWithError(t, e);
21702
21715
  return new H({ name: i, level: r, properties: s });
21703
21716
  }
21704
21717
  static preview(i) {
21705
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21718
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21706
21719
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21707
21720
  return new H({ name: s, level: o, properties: n });
21708
21721
  }
21709
21722
  static join(i) {
21710
- var r = i, { error: e } = r, t = Sr(r, ["error"]);
21723
+ var r = i, { error: e } = r, t = mr(r, ["error"]);
21711
21724
  let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21712
21725
  return new H({ name: s, level: o, properties: n });
21713
21726
  }
@@ -21732,8 +21745,8 @@ var init_dist = __esm({
21732
21745
  return new H({ name: "audioPlaybackError", level: 2, properties: this.getErrorProperties(e) });
21733
21746
  }
21734
21747
  static deviceChange({ isUserSelection: e, selection: t, type: i, devices: r, error: s }) {
21735
- let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, l = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21736
- return new H({ name: o, level: n, properties: l });
21748
+ let o = this.eventNameFor(s ? "publish" : `device.${i}`, s === void 0), n = s ? 2 : 1, d = this.getPropertiesWithError({ selection: t, devices: r, isUserSelection: e }, s);
21749
+ return new H({ name: o, level: n, properties: d });
21737
21750
  }
21738
21751
  static performance(e) {
21739
21752
  let t = "perf.stats", i = 1, r = e.toAnalyticsProperties();
@@ -21777,6 +21790,9 @@ var init_dist = __esm({
21777
21790
  static krispStop() {
21778
21791
  return new H({ name: "krisp.stop", level: 1 });
21779
21792
  }
21793
+ static interruption(e, t, i) {
21794
+ return new H({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ type: t }, i) });
21795
+ }
21780
21796
  static eventNameFor(e, t) {
21781
21797
  return `${e}.${t ? "success" : "failed"}`;
21782
21798
  }
@@ -21789,9 +21805,9 @@ var init_dist = __esm({
21789
21805
  }
21790
21806
  };
21791
21807
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21792
- kr = class {
21808
+ yr = class {
21793
21809
  constructor() {
21794
- this.storage = new le("hms-device-selection");
21810
+ this.storage = new pe("hms-device-selection");
21795
21811
  this.remember = false;
21796
21812
  this.TAG = "[HMSDeviceStorage]";
21797
21813
  }
@@ -21806,7 +21822,7 @@ var init_dist = __esm({
21806
21822
  return;
21807
21823
  let r = this.devices[e].find((o) => this.isSame({ deviceId: t, groupId: i }, o));
21808
21824
  if (!r) {
21809
- d.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21825
+ l.w(this.TAG, `Could not find device with deviceId: ${t}, groupId: ${i}`);
21810
21826
  return;
21811
21827
  }
21812
21828
  let s = this.storage.get() || {};
@@ -21823,18 +21839,18 @@ var init_dist = __esm({
21823
21839
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21824
21840
  }
21825
21841
  };
21826
- Q = new kr();
21827
- Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21828
- Er = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Er || {});
21829
- Ar = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ar || {});
21830
- Rs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Rs || {});
21831
- As = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(As || {});
21832
- Is = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Is || {});
21842
+ J = new yr();
21843
+ kr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(kr || {});
21844
+ Pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Pr || {});
21845
+ Ir = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Ir || {});
21846
+ Is = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Is || {});
21847
+ Rs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Rs || {});
21848
+ As = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(As || {});
21833
21849
  Hs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Hs || {});
21834
21850
  Cs = ((e) => (e.CAPTION = "caption", e))(Cs || {});
21835
- Ir = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Ir || {});
21851
+ Rr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Rr || {});
21836
21852
  Ls = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ls || {});
21837
- Hr = class {
21853
+ Ar = class {
21838
21854
  constructor() {
21839
21855
  this.TAG = "[HMSIntersectionObserverWrapper]";
21840
21856
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21857,12 +21873,12 @@ var init_dist = __esm({
21857
21873
  this.createObserver();
21858
21874
  }
21859
21875
  isSupported() {
21860
- let e = O && typeof window.IntersectionObserver != "undefined";
21861
- return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21876
+ let e = U && typeof window.IntersectionObserver != "undefined";
21877
+ return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21862
21878
  }
21863
21879
  };
21864
- Ns = new Hr();
21865
- Cr = class {
21880
+ Ns = new Ar();
21881
+ Hr = class {
21866
21882
  constructor() {
21867
21883
  this.TAG = "[HMSResizeObserverWrapper]";
21868
21884
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21875,7 +21891,7 @@ var init_dist = __esm({
21875
21891
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21876
21892
  };
21877
21893
  this.createObserver = () => {
21878
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(oi(this.handleResize, 300)));
21894
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ai(this.handleResize, 300)));
21879
21895
  };
21880
21896
  this.handleResize = (e) => {
21881
21897
  var t;
@@ -21885,13 +21901,13 @@ var init_dist = __esm({
21885
21901
  this.createObserver();
21886
21902
  }
21887
21903
  isSupported() {
21888
- let e = O && typeof window.ResizeObserver != "undefined";
21889
- return e || d.w(this.TAG, "Resize Observer is not supported"), e;
21904
+ let e = U && typeof window.ResizeObserver != "undefined";
21905
+ return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21890
21906
  }
21891
21907
  };
21892
- Os = new Cr();
21893
- Lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Lr || {});
21894
- Dr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Dr || {});
21908
+ Os = new Hr();
21909
+ Cr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Cr || {});
21910
+ Lr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Lr || {});
21895
21911
  Bs = "https://event.100ms.live/v2/client/report";
21896
21912
  Vs = "https://event-nonprod.100ms.live/v2/client/report";
21897
21913
  Pt = Math.pow(2, 31) - 1;
@@ -21903,33 +21919,33 @@ var init_dist = __esm({
21903
21919
  Kh = createSelector(Ho, (a2) => a2.length === 0 ? null : a2.at(-1));
21904
21920
  qh = createSelector(B, (a2) => a2.id);
21905
21921
  K = (a2) => a2.peers;
21906
- fi = (a2) => a2.messages.byID;
21922
+ Ti = (a2) => a2.messages.byID;
21907
21923
  Qs = (a2) => a2.messages.allIDs;
21908
21924
  N = (a2) => a2.tracks;
21909
- Fr = (a2) => a2.appData;
21925
+ Vr = (a2) => a2.appData;
21910
21926
  Co = (a2) => a2.speakers;
21911
- _e = createSelector([B], (a2) => a2 && a2.isConnected);
21912
- Qh = createSelector([_e, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21927
+ Oe = createSelector([B], (a2) => a2 && a2.isConnected);
21928
+ Qh = createSelector([Oe, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21913
21929
  Lo = (a2) => a2.hideLocalPeer;
21914
- me = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21915
- Do = createSelector(N, (a2) => Object.values(a2));
21916
- te = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21917
- ye = createSelector(B, (a2) => a2.localPeer);
21918
- zh = createSelector(te, (a2) => a2 == null ? void 0 : a2.name);
21919
- Yh = createSelector(te, (a2) => a2 == null ? void 0 : a2.roleName);
21920
- ae = createSelector(te, (a2) => a2 == null ? void 0 : a2.audioTrack);
21921
- Y = createSelector(te, (a2) => a2 == null ? void 0 : a2.videoTrack);
21922
- wo = createSelector(te, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21923
- Ys = createSelector([ae, Y, wo], (a2, e, t) => {
21930
+ ge = createSelector([B, K, Lo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21931
+ wo = createSelector(N, (a2) => Object.values(a2));
21932
+ ie = createSelector(B, K, (a2, e) => e[a2.localPeer]);
21933
+ Pe = createSelector(B, (a2) => a2.localPeer);
21934
+ zh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21935
+ Yh = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21936
+ oe = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21937
+ z = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21938
+ Do = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21939
+ Ys = createSelector([oe, z, Do], (a2, e, t) => {
21924
21940
  let i = t ? [...t] : [];
21925
21941
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21926
21942
  });
21927
- Xh = createSelector(me, (a2) => a2.filter((e) => !e.isLocal));
21943
+ Xh = createSelector(ge, (a2) => a2.filter((e) => !e.isLocal));
21928
21944
  Zh = createSelector(K, Co, (a2, e) => {
21929
21945
  let t = Object.entries(e).sort((i, r) => {
21930
- var n, l;
21946
+ var n, d;
21931
21947
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
21932
- return (((l = r[1]) == null ? void 0 : l.audioLevel) || 0) > s ? 1 : -1;
21948
+ return (((d = r[1]) == null ? void 0 : d.audioLevel) || 0) > s ? 1 : -1;
21933
21949
  });
21934
21950
  if (t.length > 0 && t[0][1].audioLevel && t[0][1].audioLevel > 0) {
21935
21951
  let i = t[0][1].peerID;
@@ -21938,14 +21954,14 @@ var init_dist = __esm({
21938
21954
  }
21939
21955
  return null;
21940
21956
  });
21941
- Wr = createSelector(te, N, (a2, e) => {
21942
- let { video: t, audio: i } = xe(e, a2);
21957
+ Gr = createSelector(ie, N, (a2, e) => {
21958
+ let { video: t, audio: i } = Be(e, a2);
21943
21959
  return !!(t || i);
21944
21960
  });
21945
21961
  _o = createSelector(K, N, (a2, e) => {
21946
21962
  let t;
21947
21963
  for (let i in a2) {
21948
- let r = a2[i], { video: s, audio: o } = xe(e, r);
21964
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
21949
21965
  if (s)
21950
21966
  return r;
21951
21967
  o && !t && (t = r);
@@ -21955,7 +21971,7 @@ var init_dist = __esm({
21955
21971
  tm = createSelector(_o, (a2) => !!a2);
21956
21972
  im = createSelector(K, N, (a2, e) => {
21957
21973
  for (let t in a2) {
21958
- let i = a2[t], { audio: r, video: s } = xe(e, i);
21974
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
21959
21975
  if (!s && r)
21960
21976
  return i;
21961
21977
  }
@@ -21963,7 +21979,7 @@ var init_dist = __esm({
21963
21979
  rm = createSelector(K, N, (a2, e) => {
21964
21980
  let t = [], i = [];
21965
21981
  for (let r in a2) {
21966
- let s = a2[r], { video: o, audio: n } = xe(e, s);
21982
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
21967
21983
  o ? t.push(s) : n && i.push(s);
21968
21984
  }
21969
21985
  return t.concat(i);
@@ -21978,36 +21994,36 @@ var init_dist = __esm({
21978
21994
  am = createSelector(K, N, (a2, e) => {
21979
21995
  for (let t in e) {
21980
21996
  let i = e[t];
21981
- if (ri(i) && i.peerId)
21997
+ if (ii(i) && i.peerId)
21982
21998
  return a2[i.peerId];
21983
21999
  }
21984
22000
  });
21985
- om = createSelector(Do, (a2) => a2.filter(ds));
22001
+ om = createSelector(wo, (a2) => a2.filter(cs));
21986
22002
  nm = createSelector(Qs, (a2) => a2.length);
21987
- cm = createSelector(fi, (a2) => Object.values(a2).filter((e) => !e.read).length);
21988
- At = createSelector(Qs, fi, (a2, e) => {
22003
+ cm = createSelector(Ti, (a2) => Object.values(a2).filter((e) => !e.read).length);
22004
+ Rt = createSelector(Qs, Ti, (a2, e) => {
21989
22005
  let t = [];
21990
22006
  return a2.forEach((i) => {
21991
22007
  t.push(e[i]);
21992
22008
  }), t;
21993
22009
  });
21994
- No = createSelector(At, (a2) => a2.filter((e) => {
22010
+ No = createSelector(Rt, (a2) => a2.filter((e) => {
21995
22011
  var t;
21996
22012
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
21997
22013
  }));
21998
22014
  dm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
21999
- ie = createSelector([B], (a2) => a2 && a2.roomState);
22000
- Zs = createSelector(ie, (a2) => a2 === "Preview");
22015
+ re = createSelector([B], (a2) => a2 && a2.roomState);
22016
+ Zs = createSelector(re, (a2) => a2 === "Preview");
22001
22017
  lm = createSelector(B, (a2) => a2.roomState !== "Disconnected");
22002
22018
  um = createSelector(B, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22003
- Se = (a2) => a2.roles;
22004
- pm = createSelector([Se], (a2) => Object.keys(a2));
22005
- at = createSelector([te, Se], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22019
+ Te = (a2) => a2.roles;
22020
+ pm = createSelector([Te], (a2) => Object.keys(a2));
22021
+ at = createSelector([ie, Te], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22006
22022
  Oo = (a2) => {
22007
22023
  var e;
22008
22024
  return (e = a2.preview) == null ? void 0 : e.asRole;
22009
22025
  };
22010
- ea = createSelector([Oo, Se], (a2, e) => a2 ? e[a2] : null);
22026
+ ea = createSelector([Oo, Te], (a2, e) => a2 ? e[a2] : null);
22011
22027
  hm = createSelector([at], (a2) => {
22012
22028
  var e;
22013
22029
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
@@ -22021,25 +22037,26 @@ var init_dist = __esm({
22021
22037
  vm = createSelector(B, (a2) => a2.startedAt);
22022
22038
  Mm = createSelector(B, (a2) => !!a2.isLargeRoom);
22023
22039
  ym = createSelector(B, (a2) => !!a2.isEffectsEnabled);
22024
- km = createSelector(B, (a2) => a2.effectsKey);
22040
+ km = createSelector(B, (a2) => !!a2.isVBEnabled);
22041
+ Pm = createSelector(B, (a2) => a2.effectsKey);
22025
22042
  ia = (a2) => a2.polls;
22026
- Rm = createSelector(me, (a2) => a2.filter((e) => e.isHandRaised));
22043
+ Rm = createSelector(ge, (a2) => a2.filter((e) => e.isHandRaised));
22027
22044
  xo = (a2) => a2.whiteboards;
22028
22045
  Am = createSelector(xo, (a2) => Object.values(a2)[0]);
22029
22046
  sa = (a2 = "audio") => (e) => e.playlist[a2].list;
22030
- $r = (a2 = "audio") => (e) => e.playlist[a2].selection;
22047
+ Wr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22031
22048
  aa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22032
22049
  oa = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22033
22050
  na = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22034
22051
  ca = (a2 = "audio") => (e) => e.playlist[a2].volume;
22035
22052
  da = (a2 = "audio") => createSelector(sa(a2), (e) => Object.values(e));
22036
- la = (a2 = "audio") => createSelector(sa(a2), $r(a2), (e, t) => {
22053
+ la = (a2 = "audio") => createSelector(sa(a2), Wr(a2), (e, t) => {
22037
22054
  if (t.id)
22038
22055
  return e[t.id];
22039
22056
  });
22040
- ua = { selection: $r("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22041
- pa = { selection: $r("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22042
- It = "HMS-Store:";
22057
+ ua = { selection: Wr("audio"), progress: aa("audio"), currentTime: oa("audio"), playbackRate: na("audio"), volume: ca("audio"), list: da("audio"), selectedItem: la("audio") };
22058
+ pa = { selection: Wr("video"), progress: aa("video"), currentTime: oa("video"), playbackRate: na("video"), volume: ca("video"), list: da("video"), selectedItem: la("video") };
22059
+ At = "HMS-Store:";
22043
22060
  b = class {
22044
22061
  static v(e, ...t) {
22045
22062
  this.log(0, e, ...t);
@@ -22069,23 +22086,23 @@ var init_dist = __esm({
22069
22086
  if (!(this.level.valueOf() > e.valueOf()))
22070
22087
  switch (e) {
22071
22088
  case 0: {
22072
- console.log(It, ...t);
22089
+ console.log(At, ...t);
22073
22090
  break;
22074
22091
  }
22075
22092
  case 1: {
22076
- console.debug(It, ...t);
22093
+ console.debug(At, ...t);
22077
22094
  break;
22078
22095
  }
22079
22096
  case 2: {
22080
- console.info(It, ...t);
22097
+ console.info(At, ...t);
22081
22098
  break;
22082
22099
  }
22083
22100
  case 3: {
22084
- console.warn(It, ...t);
22101
+ console.warn(At, ...t);
22085
22102
  break;
22086
22103
  }
22087
22104
  case 6: {
22088
- console.error(It, ...t);
22105
+ console.error(At, ...t);
22089
22106
  break;
22090
22107
  }
22091
22108
  case 4: {
@@ -22106,13 +22123,13 @@ var init_dist = __esm({
22106
22123
  }
22107
22124
  };
22108
22125
  b.level = 0;
22109
- Kr = (a2, e) => e;
22126
+ $r = (a2, e) => e;
22110
22127
  Ht = (a2, e) => e;
22111
22128
  ha = (a2, e) => e;
22112
22129
  Uo = (a2, e) => e;
22113
22130
  Bo = (a2, e) => e;
22114
- q = createSelector([K, Kr], (a2, e) => e ? a2[e] : null);
22115
- qr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
22131
+ q = createSelector([K, $r], (a2, e) => e ? a2[e] : null);
22132
+ Kr = createSelector([N, Ht], (a2, e) => e ? a2[e] : null);
22116
22133
  Vo = createSelector([N, Ht], (a2, e) => {
22117
22134
  if (!e)
22118
22135
  return null;
@@ -22138,95 +22155,95 @@ var init_dist = __esm({
22138
22155
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22139
22156
  });
22140
22157
  $o = createSelector([ia, Bo], (a2, e) => e ? a2[e] : null);
22141
- X = I(q);
22142
- Um = I(createSelector([Fr, Uo], (a2, e) => {
22158
+ Y = A(q);
22159
+ Bm = A(createSelector([Vr, Uo], (a2, e) => {
22143
22160
  if (a2)
22144
22161
  return e ? a2[e] : a2;
22145
22162
  }));
22146
- Fm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22147
- Gm = I(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22148
- vi = I(qr);
22149
- ma = I(Vo);
22150
- Wm = I(Fo);
22151
- $m = I(Go);
22152
- Km = I(Wo);
22153
- Ko = I((a2, e) => {
22163
+ Gm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.name));
22164
+ Wm = A(createSelector(q, (a2) => a2 == null ? void 0 : a2.type));
22165
+ fi = A(Kr);
22166
+ ma = A(Vo);
22167
+ $m = A(Fo);
22168
+ Km = A(Go);
22169
+ qm = A(Wo);
22170
+ Ko = A((a2, e) => {
22154
22171
  let t = q(a2, e);
22155
22172
  if (t && t.videoTrack && t.videoTrack !== "")
22156
22173
  return a2.tracks[t.videoTrack];
22157
22174
  });
22158
- qo = I((a2, e) => {
22175
+ qo = A((a2, e) => {
22159
22176
  let t = q(a2, e);
22160
22177
  if (t && t.audioTrack && t.audioTrack !== "")
22161
22178
  return a2.tracks[t.audioTrack];
22162
22179
  });
22163
- jm = I((a2, e) => {
22180
+ Jm = A((a2, e) => {
22164
22181
  let t = q(a2, e);
22165
22182
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22166
22183
  });
22167
22184
  Sa = (a2, e) => e ? a2.speakers[e] : null;
22168
- Jm = I(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22185
+ Qm = A(createSelector(Sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22169
22186
  jo = (a2, e) => {
22170
22187
  let t = qo(e)(a2);
22171
22188
  return Sa(a2, t == null ? void 0 : t.id);
22172
22189
  };
22173
- Qm = I(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22174
- zm = I((a2, e) => {
22190
+ zm = A(createSelector(jo, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22191
+ Ym = A((a2, e) => {
22175
22192
  if (e)
22176
22193
  return a2.connectionQualities[e];
22177
22194
  });
22178
- Ym = I((a2, e) => {
22195
+ Xm = A((a2, e) => {
22179
22196
  let t = q(a2, e);
22180
22197
  if (t) {
22181
22198
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ut(a2.tracks[r]));
22182
22199
  return i ? a2.tracks[i] : void 0;
22183
22200
  }
22184
22201
  });
22185
- Xm = I(createSelector(N, q, (a2, e) => {
22202
+ Zm = A(createSelector(N, q, (a2, e) => {
22186
22203
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22187
22204
  let r = a2[i];
22188
22205
  return ht(r) && pt(r);
22189
22206
  });
22190
22207
  return t ? a2[t] : void 0;
22191
22208
  }));
22192
- Zm = I(createSelector(N, q, (a2, e) => {
22209
+ eS = A(createSelector(N, q, (a2, e) => {
22193
22210
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22194
22211
  let r = a2[i];
22195
22212
  return ht(r) && ut(r);
22196
22213
  });
22197
22214
  return t ? a2[t] : void 0;
22198
22215
  }));
22199
- eS = I(createSelector(N, q, (a2, e) => {
22216
+ tS = A(createSelector(N, q, (a2, e) => {
22200
22217
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22201
22218
  let r = a2[i];
22202
- return ri(r) && ut(r);
22219
+ return ii(r) && ut(r);
22203
22220
  });
22204
22221
  return t ? a2[t] : void 0;
22205
22222
  }));
22206
- ga = I(createSelector(N, q, (a2, e) => xe(a2, e)));
22223
+ ga = A(createSelector(N, q, (a2, e) => Be(a2, e)));
22207
22224
  Ta = (a2) => createSelector(ga(a2), (e) => e.audio);
22208
- iS = I((a2, e) => {
22225
+ rS = A((a2, e) => {
22209
22226
  let t = q(a2, e);
22210
- return je(a2, t == null ? void 0 : t.audioTrack);
22227
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22211
22228
  });
22212
- rS = I((a2, e) => {
22229
+ sS = A((a2, e) => {
22213
22230
  let t = q(a2, e);
22214
- return je(a2, t == null ? void 0 : t.videoTrack);
22231
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22215
22232
  });
22216
- fa = I((a2, e) => {
22233
+ fa = A((a2, e) => {
22217
22234
  if (e && a2.tracks[e])
22218
22235
  return a2.tracks[e].volume === 0;
22219
22236
  });
22220
- sS = I((a2, e) => {
22237
+ aS = A((a2, e) => {
22221
22238
  let t = q(a2, e);
22222
22239
  return fa(t == null ? void 0 : t.audioTrack)(a2);
22223
22240
  });
22224
- aS = I((a2, e) => {
22241
+ oS = A((a2, e) => {
22225
22242
  let t = Ta(e)(a2);
22226
22243
  return fa(t == null ? void 0 : t.id)(a2);
22227
22244
  });
22228
- va = I((a2, e) => {
22229
- let t = qr(a2, e);
22245
+ va = A((a2, e) => {
22246
+ let t = Kr(a2, e);
22230
22247
  if (t) {
22231
22248
  if (t.type !== "audio") {
22232
22249
  b.w("Please pass audio track here");
@@ -22235,16 +22252,16 @@ var init_dist = __esm({
22235
22252
  return t.volume;
22236
22253
  }
22237
22254
  });
22238
- oS = I((a2, e) => {
22255
+ nS = A((a2, e) => {
22239
22256
  let t = q(a2, e);
22240
22257
  return va(t == null ? void 0 : t.audioTrack)(a2);
22241
22258
  });
22242
- nS = I((a2, e) => {
22259
+ cS = A((a2, e) => {
22243
22260
  let t = Ta(e)(a2);
22244
22261
  return va(t == null ? void 0 : t.id)(a2);
22245
22262
  });
22246
- cS = I((a2, e) => {
22247
- let t = qr(a2, e);
22263
+ dS = A((a2, e) => {
22264
+ let t = Kr(a2, e);
22248
22265
  if (t) {
22249
22266
  if (t.type !== "video") {
22250
22267
  b.w("Please pass video track here");
@@ -22253,53 +22270,53 @@ var init_dist = __esm({
22253
22270
  return t.layer;
22254
22271
  }
22255
22272
  });
22256
- Ma = createSelector([At, ye, Kr], (a2, e, t) => {
22273
+ Ma = createSelector([Rt, Pe, $r], (a2, e, t) => {
22257
22274
  if (t)
22258
22275
  return a2.filter((i) => {
22259
22276
  var r;
22260
22277
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22261
22278
  });
22262
22279
  });
22263
- ya = createSelector([At, ha], (a2, e) => {
22280
+ ya = createSelector([Rt, ha], (a2, e) => {
22264
22281
  if (e)
22265
22282
  return a2.filter((t) => {
22266
22283
  var i, r;
22267
22284
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22268
22285
  });
22269
22286
  });
22270
- Jo = createSelector(At, (a2) => a2.filter((e) => {
22287
+ Jo = createSelector(Rt, (a2) => a2.filter((e) => {
22271
22288
  var t;
22272
22289
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22273
22290
  }));
22274
22291
  Qo = createSelector([ya, ha], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22275
- zo = createSelector([Ma, Kr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22276
- dS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22277
- lS = I(Ma);
22278
- uS = I(ya);
22279
- pS = I(Qo);
22280
- hS = I(zo);
22281
- ka = I($o);
22282
- bS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22292
+ zo = createSelector([Ma, $r], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22293
+ lS = createSelector(Jo, (a2) => a2.filter((e) => !e.read).length);
22294
+ uS = A(Ma);
22295
+ pS = A(ya);
22296
+ hS = A(Qo);
22297
+ mS = A(zo);
22298
+ ka = A($o);
22299
+ IS = createSelector([K, N], (a2, e) => Object.values(a2).map((i) => {
22283
22300
  var r;
22284
22301
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22285
22302
  }));
22286
22303
  Yo = (a2) => a2.roleChangeRequests[0] || null;
22287
- RS = createSelector([Yo, K, Se], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22304
+ RS = createSelector([Yo, K, Te], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22288
22305
  AS = createSelector([at], (a2) => mt(a2));
22289
- IS = createSelector([ea], (a2) => mt(a2));
22290
- Zo = createSelector([Y, N], (a2, e) => {
22306
+ HS = createSelector([ea], (a2) => mt(a2));
22307
+ Zo = createSelector([z, N], (a2, e) => {
22291
22308
  let t = null;
22292
22309
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22293
22310
  });
22294
- en = createSelector([ae, N], (a2, e) => {
22311
+ en = createSelector([oe, N], (a2, e) => {
22295
22312
  let t = null;
22296
22313
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22297
22314
  });
22298
22315
  sn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(sn || {});
22299
- Yr = class {
22316
+ zr = class {
22300
22317
  constructor() {
22301
22318
  this.TAG = "[HTTPAnalyticsTransport]";
22302
- this.failedEvents = new le("client-events");
22319
+ this.failedEvents = new pe("client-events");
22303
22320
  this.isConnected = true;
22304
22321
  this.env = null;
22305
22322
  this.websocketURL = "";
@@ -22325,7 +22342,7 @@ var init_dist = __esm({
22325
22342
  throw Error(r.statusText);
22326
22343
  this.removeFromStorage(e);
22327
22344
  }).catch((r) => {
22328
- d.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22345
+ l.v(this.TAG, "Failed to send event", r, e), this.addEventToStorage(e);
22329
22346
  });
22330
22347
  }
22331
22348
  flushFailedEvents() {
@@ -22341,66 +22358,66 @@ var init_dist = __esm({
22341
22358
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22342
22359
  }
22343
22360
  };
22344
- Pe = new Yr();
22361
+ be = new zr();
22345
22362
  j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22346
- ir = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ir || {});
22347
- ur = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ur || {});
22363
+ tr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(tr || {});
22364
+ lr = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lr || {});
22348
22365
  Pn = (a2) => a2.localPeer.id;
22349
22366
  En = (a2) => a2.localPeer.audioTrack;
22350
22367
  bn = (a2) => a2.localPeer.videoTrack;
22351
- Rn = (a2, e) => e;
22368
+ In = (a2, e) => e;
22352
22369
  Ka = (a2, e) => e;
22353
- An = (a2) => a2.remoteTrackStats;
22370
+ Rn = (a2) => a2.remoteTrackStats;
22354
22371
  qa = (a2) => a2.peerStats;
22355
- is = (a2) => a2.localTrackStats;
22356
- be = createSelector([qa, Pn], (a2, e) => a2[e]);
22357
- In = createSelector(be, (a2) => {
22372
+ ts = (a2) => a2.localTrackStats;
22373
+ Re = createSelector([qa, Pn], (a2, e) => a2[e]);
22374
+ An = createSelector(Re, (a2) => {
22358
22375
  var e;
22359
22376
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22360
22377
  });
22361
- Hn = createSelector(be, (a2) => {
22378
+ Hn = createSelector(Re, (a2) => {
22362
22379
  var e;
22363
22380
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22364
22381
  });
22365
- Cn = createSelector(be, (a2) => {
22382
+ Cn = createSelector(Re, (a2) => {
22366
22383
  var e;
22367
22384
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22368
22385
  });
22369
- Ln = createSelector(be, (a2) => {
22386
+ Ln = createSelector(Re, (a2) => {
22370
22387
  var e;
22371
22388
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22372
22389
  });
22373
- Dn = createSelector(be, (a2) => {
22390
+ wn = createSelector(Re, (a2) => {
22374
22391
  var e;
22375
22392
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22376
22393
  });
22377
- wn = createSelector(be, (a2) => {
22394
+ Dn = createSelector(Re, (a2) => {
22378
22395
  var e;
22379
22396
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22380
22397
  });
22381
- _n = createSelector(be, (a2) => {
22398
+ _n = createSelector(Re, (a2) => {
22382
22399
  var e;
22383
22400
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22384
22401
  });
22385
- Nn = createSelector(be, (a2) => {
22402
+ Nn = createSelector(Re, (a2) => {
22386
22403
  var e;
22387
22404
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22388
22405
  });
22389
- On = createSelector([qa, Rn], (a2, e) => e ? a2[e] : void 0);
22390
- xn = createSelector([An, Ka], (a2, e) => e ? a2[e] : void 0);
22391
- rs = createSelector([is, Ka], (a2, e) => e ? a2[e] : void 0);
22392
- Un = I(On);
22393
- Bn = I(xn);
22394
- Vn = createSelector([is, En], (a2, e) => {
22406
+ On = createSelector([qa, In], (a2, e) => e ? a2[e] : void 0);
22407
+ xn = createSelector([Rn, Ka], (a2, e) => e ? a2[e] : void 0);
22408
+ is = createSelector([ts, Ka], (a2, e) => e ? a2[e] : void 0);
22409
+ Un = A(On);
22410
+ Bn = A(xn);
22411
+ Vn = createSelector([ts, En], (a2, e) => {
22395
22412
  var t;
22396
22413
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22397
22414
  });
22398
- Fn = I(createSelector(rs, (a2) => a2 == null ? void 0 : a2[0]));
22399
- Gn = createSelector([is, bn], (a2, e) => {
22415
+ Fn = A(createSelector(is, (a2) => a2 == null ? void 0 : a2[0]));
22416
+ Gn = createSelector([ts, bn], (a2, e) => {
22400
22417
  var t;
22401
22418
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22402
22419
  });
22403
- Wn = I(createSelector(rs, (a2) => a2));
22420
+ Wn = A(createSelector(is, (a2) => a2));
22404
22421
  }
22405
22422
  });
22406
22423
 
@@ -22512,13 +22529,13 @@ var init_AdditionalRoomState = __esm({
22512
22529
  });
22513
22530
 
22514
22531
  // src/Prebuilt/components/Header/StreamActions.tsx
22515
- var import_react88, import_react_use13, import_react_sdk41, import_react_icons35, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
22532
+ var import_react88, import_react_use14, import_react_sdk41, import_react_icons35, LiveStatus, RecordingStatus, RecordingPauseStatus, StartRecording2, StreamActions, StopRecordingInSheet;
22516
22533
  var init_StreamActions = __esm({
22517
22534
  "src/Prebuilt/components/Header/StreamActions.tsx"() {
22518
22535
  "use strict";
22519
22536
  init_define_process_env();
22520
22537
  import_react88 = __toESM(require("react"));
22521
- import_react_use13 = require("react-use");
22538
+ import_react_use14 = require("react-use");
22522
22539
  init_dist();
22523
22540
  import_react_sdk41 = require("@100mslive/react-sdk");
22524
22541
  import_react_icons35 = require("@100mslive/react-icons");
@@ -22533,7 +22550,7 @@ var init_StreamActions = __esm({
22533
22550
  var _a7;
22534
22551
  const { isHLSRunning, isRTMPRunning } = (0, import_react_sdk41.useRecordingStreaming)();
22535
22552
  const hlsState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectHLSState);
22536
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22553
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22537
22554
  const intervalRef = (0, import_react88.useRef)(null);
22538
22555
  const { screenType } = useRoomLayoutConferencingScreen();
22539
22556
  const [liveTime, setLiveTime] = (0, import_react88.useState)(0);
@@ -22580,7 +22597,7 @@ var init_StreamActions = __esm({
22580
22597
  RecordingStatus = () => {
22581
22598
  const { isBrowserRecordingOn, isServerRecordingOn, isHLSRecordingOn, isRecordingOn } = (0, import_react_sdk41.useRecordingStreaming)();
22582
22599
  const permissions = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectPermissions);
22583
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22600
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22584
22601
  if (!isRecordingOn || // if only browser recording is enabled, stop recording is shown
22585
22602
  // so no need to show this as it duplicates
22586
22603
  [permissions == null ? void 0 : permissions.browserRecording, !isServerRecordingOn, !isHLSRecordingOn, isBrowserRecordingOn].every(
@@ -22613,7 +22630,7 @@ var init_StreamActions = __esm({
22613
22630
  };
22614
22631
  RecordingPauseStatus = () => {
22615
22632
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22616
- if (recording.hls && recording.hls.state === Rs.PAUSED) {
22633
+ if (recording.hls && recording.hls.state === Is.PAUSED) {
22617
22634
  return /* @__PURE__ */ import_react88.default.createElement(
22618
22635
  Tooltip,
22619
22636
  {
@@ -22688,7 +22705,7 @@ var init_StreamActions = __esm({
22688
22705
  };
22689
22706
  StreamActions = () => {
22690
22707
  const isConnected = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectIsConnectedToRoom);
22691
- const isMobile = (0, import_react_use13.useMedia)(config.media.md);
22708
+ const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22692
22709
  const roomState = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRoomState);
22693
22710
  return /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(AdditionalRoomState, null), !isMobile && /* @__PURE__ */ import_react88.default.createElement(Flex, { align: "center", css: { gap: "$4" } }, /* @__PURE__ */ import_react88.default.createElement(RecordingPauseStatus, null), /* @__PURE__ */ import_react88.default.createElement(RecordingStatus, null), roomState !== import_react_sdk41.HMSRoomState.Preview ? /* @__PURE__ */ import_react88.default.createElement(LiveStatus, null) : null), isConnected && !isMobile ? /* @__PURE__ */ import_react88.default.createElement(StartRecording2, null) : null);
22694
22711
  };
@@ -22829,13 +22846,13 @@ var init_ChangeNameContent = __esm({
22829
22846
  });
22830
22847
 
22831
22848
  // src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx
22832
- var import_react90, import_react_use14, import_react_sdk42, ChangeNameModal;
22849
+ var import_react90, import_react_use15, import_react_sdk42, ChangeNameModal;
22833
22850
  var init_ChangeNameModal = __esm({
22834
22851
  "src/Prebuilt/components/MoreSettings/ChangeNameModal.tsx"() {
22835
22852
  "use strict";
22836
22853
  init_define_process_env();
22837
22854
  import_react90 = __toESM(require("react"));
22838
- import_react_use14 = require("react-use");
22855
+ import_react_use15 = require("react-use");
22839
22856
  import_react_sdk42 = require("@100mslive/react-sdk");
22840
22857
  init_src();
22841
22858
  init_Sheet2();
@@ -22850,7 +22867,7 @@ var init_ChangeNameModal = __esm({
22850
22867
  const hmsActions = (0, import_react_sdk42.useHMSActions)();
22851
22868
  const localPeerName = (0, import_react_sdk42.useHMSStore)(import_react_sdk42.selectLocalPeerName);
22852
22869
  const [currentName, setCurrentName] = (0, import_react90.useState)(localPeerName);
22853
- const isMobile = (0, import_react_use14.useMedia)(config.media.md);
22870
+ const isMobile = (0, import_react_use15.useMedia)(config.media.md);
22854
22871
  const changeName = () => __async(void 0, null, function* () {
22855
22872
  const name = (currentName == null ? void 0 : currentName.trim()) || "";
22856
22873
  if (!name || name === localPeerName) {
@@ -22925,7 +22942,7 @@ var init_useUnreadPollQuizPresent = __esm({
22925
22942
  init_dist();
22926
22943
  import_react_sdk44 = require("@100mslive/react-sdk");
22927
22944
  useUnreadPollQuizPresent = () => {
22928
- const localPeerID = (0, import_react_sdk44.useHMSStore)(ye);
22945
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22929
22946
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22930
22947
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22931
22948
  (0, import_react92.useEffect)(() => {
@@ -22940,13 +22957,13 @@ var init_useUnreadPollQuizPresent = __esm({
22940
22957
  });
22941
22958
 
22942
22959
  // src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx
22943
- var import_react93, import_react_use15, import_ts_pattern5, import_react_sdk45, import_react_icons37, MODALS2, MwebOptions;
22960
+ var import_react93, import_react_use16, import_ts_pattern5, import_react_sdk45, import_react_icons37, MODALS2, MwebOptions;
22944
22961
  var init_MwebOptions = __esm({
22945
22962
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx"() {
22946
22963
  "use strict";
22947
22964
  init_define_process_env();
22948
22965
  import_react93 = __toESM(require("react"));
22949
- import_react_use15 = require("react-use");
22966
+ import_react_use16 = require("react-use");
22950
22967
  import_ts_pattern5 = require("ts-pattern");
22951
22968
  import_react_sdk45 = require("@100mslive/react-sdk");
22952
22969
  import_react_icons37 = require("@100mslive/react-icons");
@@ -23026,7 +23043,7 @@ var init_MwebOptions = __esm({
23026
23043
  return copy;
23027
23044
  });
23028
23045
  };
23029
- (0, import_react_use15.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
23046
+ (0, import_react_use16.useClickAway)(emojiCardRef, () => setShowEmojiCard(false));
23030
23047
  return /* @__PURE__ */ import_react93.default.createElement(import_react93.default.Fragment, null, /* @__PURE__ */ import_react93.default.createElement(Sheet.Root, { open: openOptionsSheet, onOpenChange: setOpenOptionsSheet }, /* @__PURE__ */ import_react93.default.createElement(Tooltip, { title: "More options" }, /* @__PURE__ */ import_react93.default.createElement(Sheet.Trigger, { asChild: true, "data-testid": "more_settings_btn" }, /* @__PURE__ */ import_react93.default.createElement(IconButton_default, { css: { bg: isMobileHLSStream || isLandscapeHLSStream ? "$surface_default" : "" } }, /* @__PURE__ */ import_react93.default.createElement(import_react_icons37.HamburgerMenuIcon, null)))), /* @__PURE__ */ import_react93.default.createElement(Sheet.Content, { css: { bg: "$surface_dim", pb: "$14" } }, /* @__PURE__ */ import_react93.default.createElement(
23031
23048
  Sheet.Title,
23032
23049
  {
@@ -23234,13 +23251,13 @@ var init_MwebOptions = __esm({
23234
23251
  });
23235
23252
 
23236
23253
  // src/Prebuilt/components/MoreSettings/MoreSettings.tsx
23237
- var import_react94, import_react_use16, MoreSettings;
23254
+ var import_react94, import_react_use17, MoreSettings;
23238
23255
  var init_MoreSettings = __esm({
23239
23256
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx"() {
23240
23257
  "use strict";
23241
23258
  init_define_process_env();
23242
23259
  import_react94 = __toESM(require("react"));
23243
- import_react_use16 = require("react-use");
23260
+ import_react_use17 = require("react-use");
23244
23261
  init_DesktopOptions();
23245
23262
  init_MwebOptions();
23246
23263
  init_src();
@@ -23249,7 +23266,7 @@ var init_MoreSettings = __esm({
23249
23266
  elements,
23250
23267
  screenType
23251
23268
  }) => {
23252
- const isMobile = (0, import_react_use16.useMedia)(config.media.md);
23269
+ const isMobile = (0, import_react_use17.useMedia)(config.media.md);
23253
23270
  const isLandscapeHLSStream = useLandscapeHLSStream();
23254
23271
  return isMobile || isLandscapeHLSStream ? /* @__PURE__ */ import_react94.default.createElement(MwebOptions, { elements, screenType }) : /* @__PURE__ */ import_react94.default.createElement(DesktopOptions, { elements, screenType });
23255
23272
  };
@@ -23888,9 +23905,10 @@ var init_VBToggle = __esm({
23888
23905
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
23889
23906
  const isVBOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.VB);
23890
23907
  const isVideoOn = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsLocalVideoEnabled);
23908
+ const isVBEnabled = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsVBEnabled);
23891
23909
  const isEffectsEnabled = (0, import_react_sdk48.useHMSStore)(import_react_sdk48.selectIsEffectsEnabled);
23892
23910
  const loadingEffects = (0, import_react_sdk48.useHMSStore)((0, import_react_sdk48.selectAppData)(APP_DATA.loadingEffects));
23893
- if (!isVideoOn || !isEffectsEnabled && isSafari) {
23911
+ if (!isVideoOn || !isEffectsEnabled && isSafari || !isVBEnabled) {
23894
23912
  return null;
23895
23913
  }
23896
23914
  return /* @__PURE__ */ import_react103.default.createElement(Tooltip, { side: "top", disabled: isVBOpen, title: "Configure Virtual Background" }, /* @__PURE__ */ import_react103.default.createElement(IconButton_default, { active: !isVBOpen, onClick: toggleVB, "data-testid": "virtual_bg_btn" }, loadingEffects ? /* @__PURE__ */ import_react103.default.createElement(Loading, { size: 18 }) : /* @__PURE__ */ import_react103.default.createElement(import_react_icons43.VirtualBackgroundIcon, null)));
@@ -24323,13 +24341,13 @@ function itemKey(index, data3) {
24323
24341
  var _a7;
24324
24342
  return (_a7 = data3.peerList[index]) == null ? void 0 : _a7.id;
24325
24343
  }
24326
- var import_react108, import_react_use17, import_react_window2, import_react_sdk54, import_react_icons48, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
24344
+ var import_react108, import_react_use18, import_react_window2, import_react_sdk54, import_react_icons48, ROW_HEIGHT, ITER_TIMER, VirtualizedParticipantItem, RoleAccordion;
24327
24345
  var init_RoleAccordion = __esm({
24328
24346
  "src/Prebuilt/components/Footer/RoleAccordion.tsx"() {
24329
24347
  "use strict";
24330
24348
  init_define_process_env();
24331
24349
  import_react108 = __toESM(require("react"));
24332
- import_react_use17 = require("react-use");
24350
+ import_react_use18 = require("react-use");
24333
24351
  import_react_window2 = require("react-window");
24334
24352
  import_react_sdk54 = require("@100mslive/react-sdk");
24335
24353
  import_react_icons48 = require("@100mslive/react-icons");
@@ -24367,7 +24385,7 @@ var init_RoleAccordion = __esm({
24367
24385
  offStageRoles,
24368
24386
  onActive
24369
24387
  }) => {
24370
- const [ref, { width }] = (0, import_react_use17.useMeasure)();
24388
+ const [ref, { width }] = (0, import_react_use18.useMeasure)();
24371
24389
  const isLargeRoom = (0, import_react_sdk54.useHMSStore)(import_react_sdk54.selectIsLargeRoom);
24372
24390
  const { peers, total, loadPeers } = (0, import_react_sdk54.usePaginatedParticipants)({ role: roleName, limit: 10 });
24373
24391
  const isOffStageRole = roleName && offStageRoles.includes(roleName);
@@ -24547,13 +24565,13 @@ var init_usePeerOnStageActions = __esm({
24547
24565
  });
24548
24566
 
24549
24567
  // src/Prebuilt/components/Footer/ParticipantList.tsx
24550
- var import_react111, import_react_use18, import_react_sdk57, import_react_icons49, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
24568
+ var import_react111, import_react_use19, import_react_sdk57, import_react_icons49, ParticipantList, ParticipantCount, Participant, VirtualizedParticipants, ParticipantActions, quickActionStyle, HandRaisedAccordionParticipantActions, ParticipantMoreActions, ParticipantSearch;
24551
24569
  var init_ParticipantList = __esm({
24552
24570
  "src/Prebuilt/components/Footer/ParticipantList.tsx"() {
24553
24571
  "use strict";
24554
24572
  init_define_process_env();
24555
24573
  import_react111 = __toESM(require("react"));
24556
- import_react_use18 = require("react-use");
24574
+ import_react_use19 = require("react-use");
24557
24575
  import_react_sdk57 = require("@100mslive/react-sdk");
24558
24576
  import_react_icons49 = require("@100mslive/react-icons");
24559
24577
  init_src();
@@ -24868,8 +24886,8 @@ var init_ParticipantList = __esm({
24868
24886
  inSidePane = false
24869
24887
  }) => {
24870
24888
  const [value, setValue] = import_react111.default.useState("");
24871
- const isMobile = (0, import_react_use18.useMedia)(config.media.md);
24872
- (0, import_react_use18.useDebounce)(
24889
+ const isMobile = (0, import_react_use19.useMedia)(config.media.md);
24890
+ (0, import_react_use19.useDebounce)(
24873
24891
  () => {
24874
24892
  onSearch(value);
24875
24893
  },
@@ -25000,13 +25018,13 @@ var init_WhiteboardToggle = __esm({
25000
25018
  });
25001
25019
 
25002
25020
  // src/Prebuilt/components/Footer/Footer.tsx
25003
- var import_react114, import_react_use19, import_chat, Footer2;
25021
+ var import_react114, import_react_use20, import_chat, Footer2;
25004
25022
  var init_Footer3 = __esm({
25005
25023
  "src/Prebuilt/components/Footer/Footer.tsx"() {
25006
25024
  "use strict";
25007
25025
  init_define_process_env();
25008
25026
  import_react114 = __toESM(require("react"));
25009
- import_react_use19 = require("react-use");
25027
+ import_react_use20 = require("react-use");
25010
25028
  import_chat = require("@100mslive/types-prebuilt/elements/chat");
25011
25029
  init_src();
25012
25030
  init_AudioVideoToggle();
@@ -25029,7 +25047,7 @@ var init_Footer3 = __esm({
25029
25047
  elements
25030
25048
  }) => {
25031
25049
  var _a7, _b7;
25032
- const isMobile = (0, import_react_use19.useMedia)(config.media.md);
25050
+ const isMobile = (0, import_react_use20.useMedia)(config.media.md);
25033
25051
  const isOverlayChat = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay);
25034
25052
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === import_chat.Chat_ChatState.CHAT_STATE_OPEN;
25035
25053
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -27040,13 +27058,13 @@ var init_RoomDetailsPane = __esm({
27040
27058
  });
27041
27059
 
27042
27060
  // src/Prebuilt/components/Chat/ChatSelector.tsx
27043
- var import_react143, import_react_use20, import_react_sdk69, import_react_icons67, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
27061
+ var import_react143, import_react_use21, import_react_sdk69, import_react_icons67, ChatDotIcon, SelectorItem, SelectorHeader, Everyone, RoleItem, PeerItem, VirtualizedSelectItemList, ChatSelector;
27044
27062
  var init_ChatSelector = __esm({
27045
27063
  "src/Prebuilt/components/Chat/ChatSelector.tsx"() {
27046
27064
  "use strict";
27047
27065
  init_define_process_env();
27048
27066
  import_react143 = __toESM(require("react"));
27049
- import_react_use20 = require("react-use");
27067
+ import_react_use21 = require("react-use");
27050
27068
  import_react_sdk69 = require("@100mslive/react-sdk");
27051
27069
  import_react_icons67 = require("@100mslive/react-icons");
27052
27070
  init_src();
@@ -27066,7 +27084,7 @@ var init_ChatSelector = __esm({
27066
27084
  unreadCount,
27067
27085
  icon = void 0
27068
27086
  }) => {
27069
- const isMobile = (0, import_react_use20.useMedia)(config.media.md);
27087
+ const isMobile = (0, import_react_use21.useMedia)(config.media.md);
27070
27088
  const Root28 = !isMobile ? Dropdown.Item : (_a7) => {
27071
27089
  var _b7 = _a7, { children } = _b7, rest = __objRest(_b7, ["children"]);
27072
27090
  return /* @__PURE__ */ import_react143.default.createElement(Flex, __spreadProps(__spreadValues({}, rest), { css: __spreadValues({ p: "$6 $8" }, rest.css) }), children);
@@ -27216,13 +27234,13 @@ var init_ChatSelector = __esm({
27216
27234
  });
27217
27235
 
27218
27236
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
27219
- var import_react144, import_react_use21, import_react_icons68, ChatSelectorContainer;
27237
+ var import_react144, import_react_use22, import_react_icons68, ChatSelectorContainer;
27220
27238
  var init_ChatSelectorContainer = __esm({
27221
27239
  "src/Prebuilt/components/Chat/ChatSelectorContainer.tsx"() {
27222
27240
  "use strict";
27223
27241
  init_define_process_env();
27224
27242
  import_react144 = __toESM(require("react"));
27225
- import_react_use21 = require("react-use");
27243
+ import_react_use22 = require("react-use");
27226
27244
  import_react_icons68 = require("@100mslive/react-icons");
27227
27245
  init_Dropdown2();
27228
27246
  init_Layout();
@@ -27237,7 +27255,7 @@ var init_ChatSelectorContainer = __esm({
27237
27255
  ChatSelectorContainer = () => {
27238
27256
  var _a7, _b7;
27239
27257
  const [open, setOpen] = (0, import_react144.useState)(false);
27240
- const isMobile = (0, import_react_use21.useMedia)(config.media.md);
27258
+ const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27241
27259
  const { elements } = useRoomLayoutConferencingScreen();
27242
27260
  const isPrivateChatEnabled = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.private_chat_enabled);
27243
27261
  const isPublicChatEnabled = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.public_chat_enabled);
@@ -27447,13 +27465,13 @@ function EmojiPicker({ onSelect }) {
27447
27465
  )
27448
27466
  )));
27449
27467
  }
27450
- var import_react147, import_react_use22, import_data, import_react148, import_react_sdk71, import_react_icons69, TextArea2, ChatFooter;
27468
+ var import_react147, import_react_use23, import_data, import_react148, import_react_sdk71, import_react_icons69, TextArea2, ChatFooter;
27451
27469
  var init_ChatFooter = __esm({
27452
27470
  "src/Prebuilt/components/Chat/ChatFooter.tsx"() {
27453
27471
  "use strict";
27454
27472
  init_define_process_env();
27455
27473
  import_react147 = __toESM(require("react"));
27456
- import_react_use22 = require("react-use");
27474
+ import_react_use23 = require("react-use");
27457
27475
  import_data = __toESM(require("@emoji-mart/data"));
27458
27476
  import_react148 = __toESM(require("@emoji-mart/react"));
27459
27477
  import_react_sdk71 = require("@100mslive/react-sdk");
@@ -27490,11 +27508,11 @@ var init_ChatFooter = __esm({
27490
27508
  }
27491
27509
  });
27492
27510
  ChatFooter = ({ onSend, children }) => {
27493
- var _a7, _b7, _c, _d, _e2;
27511
+ var _a7, _b7, _c, _d, _e;
27494
27512
  const hmsActions = (0, import_react_sdk71.useHMSActions)();
27495
27513
  const inputRef = (0, import_react147.useRef)(null);
27496
27514
  const [draftMessage, setDraftMessage] = useChatDraftMessage();
27497
- const isMobile = (0, import_react_use22.useMedia)(config.media.md);
27515
+ const isMobile = (0, import_react_use23.useMedia)(config.media.md);
27498
27516
  const { elements, screenType } = useRoomLayoutConferencingScreen();
27499
27517
  const message_placeholder = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.message_placeholder) || "Send a message";
27500
27518
  const localPeer = (0, import_react_sdk71.useHMSStore)(import_react_sdk71.selectLocalPeer);
@@ -27604,7 +27622,7 @@ var init_ChatFooter = __esm({
27604
27622
  },
27605
27623
  /* @__PURE__ */ import_react147.default.createElement(import_react_icons69.PauseCircleIcon, null),
27606
27624
  /* @__PURE__ */ import_react147.default.createElement(Text, { variant: "sm", css: { fontWeight: "$semiBold" } }, "Pause Chat")
27607
- )))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((_e2 = inputRef.current) == null ? void 0 : _e2.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ import_react147.default.createElement(
27625
+ )))) : null), selection && /* @__PURE__ */ import_react147.default.createElement(Flex, { align: ((_e = inputRef.current) == null ? void 0 : _e.scrollHeight) === 32 ? "center" : "end", css: { gap: "$4", w: "100%" } }, /* @__PURE__ */ import_react147.default.createElement(
27608
27626
  Flex,
27609
27627
  {
27610
27628
  align: "end",
@@ -27831,14 +27849,14 @@ var init_StickIndicator = __esm({
27831
27849
  });
27832
27850
 
27833
27851
  // src/Prebuilt/components/Chat/PinnedMessage.tsx
27834
- var import_react152, import_react_swipeable, import_react_use23, import_react_sdk73, import_react_icons71, PINNED_MESSAGE_LENGTH, PinnedMessage;
27852
+ var import_react152, import_react_swipeable, import_react_use24, import_react_sdk73, import_react_icons71, PINNED_MESSAGE_LENGTH, PinnedMessage;
27835
27853
  var init_PinnedMessage = __esm({
27836
27854
  "src/Prebuilt/components/Chat/PinnedMessage.tsx"() {
27837
27855
  "use strict";
27838
27856
  init_define_process_env();
27839
27857
  import_react152 = __toESM(require("react"));
27840
27858
  import_react_swipeable = require("react-swipeable");
27841
- import_react_use23 = require("react-use");
27859
+ import_react_use24 = require("react-use");
27842
27860
  import_react_sdk73 = require("@100mslive/react-sdk");
27843
27861
  import_react_icons71 = require("@100mslive/react-icons");
27844
27862
  init_Layout();
@@ -27855,7 +27873,7 @@ var init_PinnedMessage = __esm({
27855
27873
  const pinnedMessages = (0, import_react_sdk73.useHMSStore)((0, import_react_sdk73.selectSessionStore)("pinnedMessages" /* PINNED_MESSAGES */));
27856
27874
  const [pinnedMessageIndex, setPinnedMessageIndex] = (0, import_react152.useState)(0);
27857
27875
  const { removePinnedMessage } = usePinnedMessages();
27858
- const isMobile = (0, import_react_use23.useMedia)(config.media.md);
27876
+ const isMobile = (0, import_react_use24.useMedia)(config.media.md);
27859
27877
  const { elements } = useRoomLayoutConferencingScreen();
27860
27878
  const canUnpinMessage = !!((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.allow_pinning_messages);
27861
27879
  const [hideOverflow, setHideOverflow] = (0, import_react152.useState)(true);
@@ -27967,13 +27985,13 @@ var init_PinnedMessage = __esm({
27967
27985
  });
27968
27986
 
27969
27987
  // src/Prebuilt/components/Chat/Chat.tsx
27970
- var import_react153, import_react_use24, import_ts_pattern9, import_react_sdk74, import_react_icons72, Chat, NewMessageIndicator;
27988
+ var import_react153, import_react_use25, import_ts_pattern9, import_react_sdk74, import_react_icons72, Chat, NewMessageIndicator;
27971
27989
  var init_Chat = __esm({
27972
27990
  "src/Prebuilt/components/Chat/Chat.tsx"() {
27973
27991
  "use strict";
27974
27992
  init_define_process_env();
27975
27993
  import_react153 = __toESM(require("react"));
27976
- import_react_use24 = require("react-use");
27994
+ import_react_use25 = require("react-use");
27977
27995
  init_dist();
27978
27996
  import_ts_pattern9 = require("ts-pattern");
27979
27997
  import_react_sdk74 = require("@100mslive/react-sdk");
@@ -27999,8 +28017,8 @@ var init_Chat = __esm({
27999
28017
  const listRef = (0, import_react153.useRef)(null);
28000
28018
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
28001
28019
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
28002
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Bm("chatState" /* CHAT_STATE */)) || {};
28003
- const isMobile = (0, import_react_use24.useMedia)(config.media.md);
28020
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Vm("chatState" /* CHAT_STATE */)) || {};
28021
+ const isMobile = (0, import_react_use25.useMedia)(config.media.md);
28004
28022
  const isMobileHLSStream = useMobileHLSStream();
28005
28023
  const isLandscapeStream = useLandscapeHLSStream();
28006
28024
  useSidepaneResetOnLayoutUpdate("chat", SIDE_PANE_OPTIONS.CHAT);
@@ -28136,14 +28154,14 @@ var init_Chat = __esm({
28136
28154
  });
28137
28155
 
28138
28156
  // src/Prebuilt/components/Footer/PaginatedParticipants.tsx
28139
- var import_react154, import_react_intersection_observer, import_react_use25, import_react_window3, import_react_sdk75, import_react_icons73, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
28157
+ var import_react154, import_react_intersection_observer, import_react_use26, import_react_window3, import_react_sdk75, import_react_icons73, LoadMoreParticipants, VirtualizedParticipantItem2, PaginatedParticipants;
28140
28158
  var init_PaginatedParticipants = __esm({
28141
28159
  "src/Prebuilt/components/Footer/PaginatedParticipants.tsx"() {
28142
28160
  "use strict";
28143
28161
  init_define_process_env();
28144
28162
  import_react154 = __toESM(require("react"));
28145
28163
  import_react_intersection_observer = require("react-intersection-observer");
28146
- import_react_use25 = require("react-use");
28164
+ import_react_use26 = require("react-use");
28147
28165
  import_react_window3 = require("react-window");
28148
28166
  import_react_sdk75 = require("@100mslive/react-sdk");
28149
28167
  import_react_icons73 = require("@100mslive/react-icons");
@@ -28198,7 +28216,7 @@ var init_PaginatedParticipants = __esm({
28198
28216
  return (_a7 = p.name) == null ? void 0 : _a7.toLowerCase().includes(search == null ? void 0 : search.toLowerCase());
28199
28217
  });
28200
28218
  const isConnected = (0, import_react_sdk75.useHMSStore)(import_react_sdk75.selectIsConnectedToRoom);
28201
- const [ref, { width }] = (0, import_react_use25.useMeasure)();
28219
+ const [ref, { width }] = (0, import_react_use26.useMeasure)();
28202
28220
  const height = ROW_HEIGHT * (filteredPeers.length + 1);
28203
28221
  const resetSidePane = useSidepaneReset();
28204
28222
  (0, import_react154.useEffect)(() => {
@@ -28298,13 +28316,13 @@ var init_ChatSettings = __esm({
28298
28316
  });
28299
28317
 
28300
28318
  // src/Prebuilt/components/SidePaneTabs.tsx
28301
- var import_react156, import_react_use26, import_ts_pattern10, import_react_sdk77, import_react_icons75, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
28319
+ var import_react156, import_react_use27, import_ts_pattern10, import_react_sdk77, import_react_icons75, tabTriggerCSS, ParticipantCount2, SidePaneTabs;
28302
28320
  var init_SidePaneTabs = __esm({
28303
28321
  "src/Prebuilt/components/SidePaneTabs.tsx"() {
28304
28322
  "use strict";
28305
28323
  init_define_process_env();
28306
28324
  import_react156 = __toESM(require("react"));
28307
- import_react_use26 = require("react-use");
28325
+ import_react_use27 = require("react-use");
28308
28326
  import_ts_pattern10 = require("ts-pattern");
28309
28327
  import_react_sdk77 = require("@100mslive/react-sdk");
28310
28328
  import_react_icons75 = require("@100mslive/react-icons");
@@ -28345,7 +28363,7 @@ var init_SidePaneTabs = __esm({
28345
28363
  const showChat = !!(elements == null ? void 0 : elements.chat);
28346
28364
  const showParticipants = !!(elements == null ? void 0 : elements.participant_list);
28347
28365
  const hideTabs = !(showChat && showParticipants) || hideTab;
28348
- const isMobile = (0, import_react_use26.useMedia)(config.media.md);
28366
+ const isMobile = (0, import_react_use27.useMedia)(config.media.md);
28349
28367
  const isOverlayChat = !!((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.is_overlay) && isMobile;
28350
28368
  const { off_stage_roles = [] } = (elements == null ? void 0 : elements.on_stage_exp) || {};
28351
28369
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
@@ -28524,13 +28542,13 @@ var init_utils6 = __esm({
28524
28542
  });
28525
28543
 
28526
28544
  // src/Prebuilt/components/TileMenu/TileMenuContent.tsx
28527
- var import_react158, import_react_use27, import_react_sdk79, import_react_icons77, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
28545
+ var import_react158, import_react_use28, import_react_sdk79, import_react_icons77, isSameTile, spacingCSS, SpotlightActions, PinActions, MinimiseInset, SimulcastLayers, TileMenuContent;
28528
28546
  var init_TileMenuContent = __esm({
28529
28547
  "src/Prebuilt/components/TileMenu/TileMenuContent.tsx"() {
28530
28548
  "use strict";
28531
28549
  init_define_process_env();
28532
28550
  import_react158 = __toESM(require("react"));
28533
- import_react_use27 = require("react-use");
28551
+ import_react_use28 = require("react-use");
28534
28552
  import_react_sdk79 = require("@100mslive/react-sdk");
28535
28553
  import_react_icons77 = require("@100mslive/react-icons");
28536
28554
  init_Layout();
@@ -28705,7 +28723,7 @@ var init_TileMenuContent = __esm({
28705
28723
  const { sendEvent } = (0, import_react_sdk79.useCustomEvent)({
28706
28724
  type: REMOTE_STOP_SCREENSHARE_TYPE
28707
28725
  });
28708
- const isMobile = (0, import_react_use27.useMedia)(config.media.md);
28726
+ const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28709
28727
  if (isLocal) {
28710
28728
  return showPinAction || canMinimise || !userName || showSpotlight ? /* @__PURE__ */ import_react158.default.createElement(import_react158.default.Fragment, null, showPinAction && /* @__PURE__ */ import_react158.default.createElement(PinActions, { audioTrackID, videoTrackID }), showSpotlight && /* @__PURE__ */ import_react158.default.createElement(SpotlightActions, { peerId: peerID, onSpotLightClick: () => closeSheetOnClick() }), canMinimise && /* @__PURE__ */ import_react158.default.createElement(MinimiseInset, null), !userName && /* @__PURE__ */ import_react158.default.createElement(
28711
28729
  StyledMenuTile.ItemButton,
@@ -28799,13 +28817,13 @@ var init_TileMenuContent = __esm({
28799
28817
  });
28800
28818
 
28801
28819
  // src/Prebuilt/components/TileMenu/TileMenu.tsx
28802
- var import_react159, import_react_use28, import_react_sdk80, import_react_icons78, TileMenu, TileMenu_default;
28820
+ var import_react159, import_react_use29, import_react_sdk80, import_react_icons78, TileMenu, TileMenu_default;
28803
28821
  var init_TileMenu2 = __esm({
28804
28822
  "src/Prebuilt/components/TileMenu/TileMenu.tsx"() {
28805
28823
  "use strict";
28806
28824
  init_define_process_env();
28807
28825
  import_react159 = __toESM(require("react"));
28808
- import_react_use28 = require("react-use");
28826
+ import_react_use29 = require("react-use");
28809
28827
  import_react_sdk80 = require("@100mslive/react-sdk");
28810
28828
  import_react_icons78 = require("@100mslive/react-icons");
28811
28829
  init_Layout();
@@ -28839,7 +28857,7 @@ var init_TileMenu2 = __esm({
28839
28857
  const showPinAction = !!(audioTrackID || videoTrackID && isPrimaryVideoTrack);
28840
28858
  const track = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectTrackByID)(videoTrackID));
28841
28859
  const hideSimulcastLayers = !((_b7 = track == null ? void 0 : track.layerDefinitions) == null ? void 0 : _b7.length) || track.degraded || !track.enabled;
28842
- const isMobile = (0, import_react_use28.useMedia)(config.media.md);
28860
+ const isMobile = (0, import_react_use29.useMedia)(config.media.md);
28843
28861
  const peer = (0, import_react_sdk80.useHMSStore)((0, import_react_sdk80.selectPeerByID)(peerID));
28844
28862
  const [showNameChangeModal, setShowNameChangeModal] = (0, import_react159.useState)(false);
28845
28863
  const [showRoleChangeModal, setShowRoleChangeModal] = (0, import_react159.useState)(false);
@@ -28927,13 +28945,13 @@ var init_peerTileUtils = __esm({
28927
28945
  });
28928
28946
 
28929
28947
  // src/Prebuilt/components/VideoTile.tsx
28930
- var import_react160, import_react_use29, import_react_sdk81, import_react_icons79, PeerMetadata, Tile, VideoTile, VideoTile_default;
28948
+ var import_react160, import_react_use30, import_react_sdk81, import_react_icons79, PeerMetadata, Tile, VideoTile, VideoTile_default;
28931
28949
  var init_VideoTile2 = __esm({
28932
28950
  "src/Prebuilt/components/VideoTile.tsx"() {
28933
28951
  "use strict";
28934
28952
  init_define_process_env();
28935
28953
  import_react160 = __toESM(require("react"));
28936
- import_react_use29 = require("react-use");
28954
+ import_react_use30 = require("react-use");
28937
28955
  import_react_sdk81 = require("@100mslive/react-sdk");
28938
28956
  import_react_icons79 = require("@100mslive/react-icons");
28939
28957
  init_TileConnection();
@@ -28996,7 +29014,7 @@ var init_VideoTile2 = __esm({
28996
29014
  const onHoverHandler = (0, import_react160.useCallback)((event) => {
28997
29015
  setIsMouseHovered(event.type === "mouseenter");
28998
29016
  }, []);
28999
- const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use29.useMeasure)();
29017
+ const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use30.useMeasure)();
29000
29018
  const isTileBigEnoughToShowStats = calculatedHeight >= 180 && calculatedWidth >= 180;
29001
29019
  const [avatarSize, attribBoxSize] = (0, import_react160.useMemo)(
29002
29020
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
@@ -29247,13 +29265,13 @@ var init_VBHandler = __esm({
29247
29265
  });
29248
29266
 
29249
29267
  // src/Prebuilt/components/VirtualBackground/VBPicker.tsx
29250
- var import_react163, import_react_use30, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
29268
+ var import_react163, import_react_use31, import_hms_virtual_background3, import_react_sdk82, import_react_icons80, iconDims, VBPicker;
29251
29269
  var init_VBPicker = __esm({
29252
29270
  "src/Prebuilt/components/VirtualBackground/VBPicker.tsx"() {
29253
29271
  "use strict";
29254
29272
  init_define_process_env();
29255
29273
  import_react163 = __toESM(require("react"));
29256
- import_react_use30 = require("react-use");
29274
+ import_react_use31 = require("react-use");
29257
29275
  init_dist();
29258
29276
  import_hms_virtual_background3 = require("@100mslive/hms-virtual-background");
29259
29277
  import_react_sdk82 = require("@100mslive/react-sdk");
@@ -29281,11 +29299,11 @@ var init_VBPicker = __esm({
29281
29299
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
29282
29300
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
29283
29301
  const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(ym);
29284
- const effectsKey = (0, import_react_sdk82.useHMSStore)(km);
29285
- const isMobile = (0, import_react_use30.useMedia)(config.media.md);
29302
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(Pm);
29303
+ const isMobile = (0, import_react_use31.useMedia)(config.media.md);
29286
29304
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
29287
29305
  const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
29288
- const background = (0, import_react_sdk82.useHMSStore)(Um(APP_DATA.background));
29306
+ const background = (0, import_react_sdk82.useHMSStore)(Bm(APP_DATA.background));
29289
29307
  const mediaList = backgroundMedia.map((media) => media.url || "");
29290
29308
  const inPreview = roomState === import_react_sdk82.HMSRoomState.Preview;
29291
29309
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -29293,20 +29311,21 @@ var init_VBPicker = __esm({
29293
29311
  if (!(track == null ? void 0 : track.id)) {
29294
29312
  return;
29295
29313
  }
29296
- if (!isPluginAdded) {
29314
+ const vbObject = VBHandler.getVBObject();
29315
+ if (!isPluginAdded && !vbObject) {
29297
29316
  setLoadingEffects(true);
29298
- let vbObject = VBHandler.getVBObject();
29299
- if (!vbObject) {
29317
+ let vbObject2 = VBHandler.getVBObject();
29318
+ if (!vbObject2) {
29300
29319
  VBHandler.initialisePlugin(isEffectsEnabled && effectsKey ? effectsKey : "", () => setLoadingEffects(false));
29301
- vbObject = VBHandler.getVBObject();
29320
+ vbObject2 = VBHandler.getVBObject();
29302
29321
  if (isEffectsEnabled && effectsKey) {
29303
- hmsActions.addPluginsToVideoStream([vbObject]);
29322
+ hmsActions.addPluginsToVideoStream([vbObject2]);
29304
29323
  } else {
29305
29324
  setLoadingEffects(false);
29306
29325
  if (!role) {
29307
29326
  return;
29308
29327
  }
29309
- hmsActions.addPluginToVideoTrack(vbObject, Math.floor(role.publishParams.video.frameRate / 2));
29328
+ hmsActions.addPluginToVideoTrack(vbObject2, Math.floor(role.publishParams.video.frameRate / 2));
29310
29329
  }
29311
29330
  }
29312
29331
  const handleDefaultBackground = () => __async(void 0, null, function* () {
@@ -29432,13 +29451,13 @@ var init_VBPicker = __esm({
29432
29451
  });
29433
29452
 
29434
29453
  // src/Prebuilt/layouts/SidePane.tsx
29435
- var import_react164, import_react_use31, import_ts_pattern11, import_react_sdk83, Wrapper3, SidePane, SidePane_default;
29454
+ var import_react164, import_react_use32, import_ts_pattern11, import_react_sdk83, Wrapper3, SidePane, SidePane_default;
29436
29455
  var init_SidePane = __esm({
29437
29456
  "src/Prebuilt/layouts/SidePane.tsx"() {
29438
29457
  "use strict";
29439
29458
  init_define_process_env();
29440
29459
  import_react164 = __toESM(require("react"));
29441
- import_react_use31 = require("react-use");
29460
+ import_react_use32 = require("react-use");
29442
29461
  import_ts_pattern11 = require("ts-pattern");
29443
29462
  import_react_sdk83 = require("@100mslive/react-sdk");
29444
29463
  init_Polls();
@@ -29554,8 +29573,8 @@ var init_SidePane = __esm({
29554
29573
  tileProps,
29555
29574
  hideControls = false
29556
29575
  }) => {
29557
- var _a7, _b7, _c, _d, _e2, _f, _g;
29558
- const isMobile = (0, import_react_use31.useMedia)(config.media.md);
29576
+ var _a7, _b7, _c, _d, _e, _f, _g;
29577
+ const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29559
29578
  const sidepane = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.sidePane));
29560
29579
  const activeScreensharePeerId = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectAppData)(APP_DATA.activeScreensharePeerId));
29561
29580
  const trackId = (_a7 = (0, import_react_sdk83.useHMSStore)((0, import_react_sdk83.selectVideoTrackByPeerID)(activeScreensharePeerId))) == null ? void 0 : _a7.id;
@@ -29564,7 +29583,7 @@ var init_SidePane = __esm({
29564
29583
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
29565
29584
  const isLandscapeHLSStream = useLandscapeHLSStream();
29566
29585
  const isMobileHLSStream = useMobileHLSStream();
29567
- const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e2 = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e2.background_media) || [];
29586
+ const backgroundMedia = ((_c = (_b7 = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _b7.background_media) == null ? void 0 : _c.length) ? (_d = preview_elements == null ? void 0 : preview_elements.virtual_background) == null ? void 0 : _d.background_media : ((_e = elements == null ? void 0 : elements.virtual_background) == null ? void 0 : _e.background_media) || [];
29568
29587
  const tileLayout = {
29569
29588
  hideParticipantNameOnTile: tileProps == null ? void 0 : tileProps.hide_participant_name_on_tile,
29570
29589
  roundedVideoTile: tileProps == null ? void 0 : tileProps.rounded_video_tile,
@@ -29695,13 +29714,13 @@ var init_FullPageProgress = __esm({
29695
29714
  });
29696
29715
 
29697
29716
  // src/Prebuilt/components/Preview/PreviewForm.tsx
29698
- var import_react167, import_react_use32, import_join_form3, import_react_sdk84, import_react_icons81, PreviewForm, Form, PreviewForm_default;
29717
+ var import_react167, import_react_use33, import_join_form3, import_react_sdk84, import_react_icons81, PreviewForm, Form, PreviewForm_default;
29699
29718
  var init_PreviewForm = __esm({
29700
29719
  "src/Prebuilt/components/Preview/PreviewForm.tsx"() {
29701
29720
  "use strict";
29702
29721
  init_define_process_env();
29703
29722
  import_react167 = __toESM(require("react"));
29704
- import_react_use32 = require("react-use");
29723
+ import_react_use33 = require("react-use");
29705
29724
  import_join_form3 = require("@100mslive/types-prebuilt/elements/join_form");
29706
29725
  import_react_sdk84 = require("@100mslive/react-sdk");
29707
29726
  import_react_icons81 = require("@100mslive/react-icons");
@@ -29721,7 +29740,7 @@ var init_PreviewForm = __esm({
29721
29740
  const formSubmit = (e) => {
29722
29741
  e.preventDefault();
29723
29742
  };
29724
- const isMobile = (0, import_react_use32.useMedia)(config.media.md);
29743
+ const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29725
29744
  const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = (0, import_react_sdk84.useRecordingStreaming)();
29726
29745
  const layout = useRoomLayout();
29727
29746
  const { join_form: joinForm = {} } = ((_c = (_b7 = (_a7 = layout == null ? void 0 : layout.screens) == null ? void 0 : _a7.preview) == null ? void 0 : _b7.default) == null ? void 0 : _c.elements) || {};
@@ -29774,13 +29793,13 @@ var init_PreviewForm = __esm({
29774
29793
  });
29775
29794
 
29776
29795
  // src/Prebuilt/components/Preview/PreviewJoin.tsx
29777
- var import_react168, import_react_use33, import_react_sdk85, import_react_icons82, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
29796
+ var import_react168, import_react_use34, import_react_sdk85, import_react_icons82, getParticipantChipContent, useLocalTileAspectRatio, PreviewJoin, Container4, PreviewTile, PreviewControls, PreviewSettings, PreviewJoin_default;
29778
29797
  var init_PreviewJoin = __esm({
29779
29798
  "src/Prebuilt/components/Preview/PreviewJoin.tsx"() {
29780
29799
  "use strict";
29781
29800
  init_define_process_env();
29782
29801
  import_react168 = __toESM(require("react"));
29783
- import_react_use33 = require("react-use");
29802
+ import_react_use34 = require("react-use");
29784
29803
  import_react_sdk85 = require("@100mslive/react-sdk");
29785
29804
  import_react_icons82 = require("@100mslive/react-icons");
29786
29805
  init_src();
@@ -29811,7 +29830,7 @@ var init_PreviewJoin = __esm({
29811
29830
  useLocalTileAspectRatio = () => {
29812
29831
  const localPeer = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectLocalPeer);
29813
29832
  const videoTrack = (0, import_react_sdk85.useHMSStore)((0, import_react_sdk85.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack));
29814
- const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29833
+ const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29815
29834
  let aspectRatio = 0;
29816
29835
  if ((videoTrack == null ? void 0 : videoTrack.width) && (videoTrack == null ? void 0 : videoTrack.height)) {
29817
29836
  aspectRatio = videoTrack.width / videoTrack.height;
@@ -29879,21 +29898,14 @@ var init_PreviewJoin = __esm({
29879
29898
  setName(initialName);
29880
29899
  }
29881
29900
  }, [initialName]);
29882
- return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$10", "@md": { justifyContent: "space-between" } } }, toggleVideo ? null : /* @__PURE__ */ import_react168.default.createElement(Box, null), /* @__PURE__ */ import_react168.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "640px" } }, /* @__PURE__ */ import_react168.default.createElement(Logo, null), /* @__PURE__ */ import_react168.default.createElement(
29883
- Text,
29884
- {
29885
- variant: "h4",
29886
- css: { wordBreak: "break-word", textAlign: "center", mt: "$14", mb: "$4", "@md": { mt: "$8", mb: "$2" } }
29887
- },
29888
- previewHeader.title
29889
- ), /* @__PURE__ */ import_react168.default.createElement(
29901
+ return roomState === import_react_sdk85.HMSRoomState.Preview ? /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { size: "100%", position: "relative" } }, /* @__PURE__ */ import_react168.default.createElement(Container4, { css: { h: "100%", pt: "$6", "@md": { justifyContent: "space-between", pt: "$10" } } }, toggleVideo ? null : /* @__PURE__ */ import_react168.default.createElement(Box, null), /* @__PURE__ */ import_react168.default.createElement(Flex, { direction: "column", justify: "center", css: { w: "100%", maxWidth: "600px", gap: "$8" } }, /* @__PURE__ */ import_react168.default.createElement(Logo, null), /* @__PURE__ */ import_react168.default.createElement(Text, { variant: "h4", css: { wordBreak: "break-word", textAlign: "center" } }, previewHeader.title), /* @__PURE__ */ import_react168.default.createElement(
29890
29902
  Text,
29891
29903
  {
29892
- css: { c: "$on_surface_medium", my: "0", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
29904
+ css: { c: "$on_surface_medium", textAlign: "center", maxWidth: "100%", wordWrap: "break-word" },
29893
29905
  variant: "sm"
29894
29906
  },
29895
29907
  previewHeader.sub_title
29896
- ), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { mt: "$14", "@md": { mt: "$8", mb: "0" }, gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react168.default.createElement(
29908
+ ), /* @__PURE__ */ import_react168.default.createElement(Flex, { justify: "center", css: { gap: "$4" } }, isStreamingOn ? /* @__PURE__ */ import_react168.default.createElement(
29897
29909
  Chip_default,
29898
29910
  {
29899
29911
  content: "LIVE",
@@ -29901,7 +29913,7 @@ var init_PreviewJoin = __esm({
29901
29913
  textColor: "#FFF",
29902
29914
  icon: /* @__PURE__ */ import_react168.default.createElement(Box, { css: { h: "$sm", w: "$sm", backgroundColor: "$on_primary_high", borderRadius: "$round" } })
29903
29915
  }
29904
- ) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 360}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
29916
+ ) : null, /* @__PURE__ */ import_react168.default.createElement(Chip_default, { content: getParticipantChipContent(peerCount), hideIfNoContent: true }))), toggleVideo ? /* @__PURE__ */ import_react168.default.createElement(PreviewTile, { name, error: previewError }) : null, /* @__PURE__ */ import_react168.default.createElement(Box, { css: { w: "100%", maxWidth: `${Math.max(aspectRatio, 1) * 340}px` } }, /* @__PURE__ */ import_react168.default.createElement(PreviewControls, { hideSettings: !toggleVideo && !toggleAudio, vbEnabled: !!virtual_background }), /* @__PURE__ */ import_react168.default.createElement(
29905
29917
  PreviewForm_default,
29906
29918
  {
29907
29919
  name,
@@ -29929,7 +29941,7 @@ var init_PreviewJoin = __esm({
29929
29941
  const track = (0, import_react_sdk85.useHMSStore)(trackSelector);
29930
29942
  const showMuteIcon = !isLocalAudioEnabled || !toggleAudio;
29931
29943
  const aspectRatio = useLocalTileAspectRatio();
29932
- const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use33.useMeasure)();
29944
+ const [ref, { width: calculatedWidth, height: calculatedHeight }] = (0, import_react_use34.useMeasure)();
29933
29945
  const [avatarSize, attribBoxSize] = (0, import_react168.useMemo)(
29934
29946
  () => calculateAvatarAndAttribBoxSize(calculatedWidth, calculatedHeight),
29935
29947
  [calculatedWidth, calculatedHeight]
@@ -29941,11 +29953,11 @@ var init_PreviewJoin = __esm({
29941
29953
  css: {
29942
29954
  bg: "$surface_default",
29943
29955
  aspectRatio,
29944
- height: "min(360px, 70vh)",
29956
+ height: "min(340px, 70vh)",
29945
29957
  width: "auto",
29946
- maxWidth: "640px",
29958
+ maxWidth: "600px",
29947
29959
  overflow: "clip",
29948
- mt: "$14",
29960
+ mt: "$10",
29949
29961
  "@md": {
29950
29962
  mt: 0,
29951
29963
  width: "min(220px, 70vw)",
@@ -29967,17 +29979,18 @@ var init_PreviewJoin = __esm({
29967
29979
  );
29968
29980
  };
29969
29981
  PreviewControls = ({ hideSettings, vbEnabled }) => {
29970
- const isMobile = (0, import_react_use33.useMedia)(config.media.md);
29982
+ const isMobile = (0, import_react_use34.useMedia)(config.media.md);
29983
+ const isVBEnabledForUser = (0, import_react_sdk85.useHMSStore)(import_react_sdk85.selectIsVBEnabled);
29971
29984
  return /* @__PURE__ */ import_react168.default.createElement(
29972
29985
  Flex,
29973
29986
  {
29974
29987
  justify: hideSettings && isMobile ? "center" : "between",
29975
29988
  css: {
29976
29989
  width: "100%",
29977
- mt: "$8"
29990
+ mt: "$6"
29978
29991
  }
29979
29992
  },
29980
- /* @__PURE__ */ import_react168.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react168.default.createElement(AudioVideoToggle, null), vbEnabled ? /* @__PURE__ */ import_react168.default.createElement(VBToggle, null) : null),
29993
+ /* @__PURE__ */ import_react168.default.createElement(Flex, { css: { gap: "$4" } }, /* @__PURE__ */ import_react168.default.createElement(AudioVideoToggle, null), vbEnabled && isVBEnabledForUser ? /* @__PURE__ */ import_react168.default.createElement(VBToggle, null) : null),
29981
29994
  /* @__PURE__ */ import_react168.default.createElement(Flex, { align: "center", gap: "1" }, isMobile && /* @__PURE__ */ import_react168.default.createElement(NoiseCancellation, { iconOnly: true }), !hideSettings ? /* @__PURE__ */ import_react168.default.createElement(PreviewSettings, null) : null)
29982
29995
  );
29983
29996
  };
@@ -29990,13 +30003,13 @@ var init_PreviewJoin = __esm({
29990
30003
  });
29991
30004
 
29992
30005
  // src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx
29993
- var import_react169, import_react_use34, RequestPrompt, RequestActions;
30006
+ var import_react169, import_react_use35, RequestPrompt, RequestActions;
29994
30007
  var init_RequestPrompt = __esm({
29995
30008
  "src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx"() {
29996
30009
  "use strict";
29997
30010
  init_define_process_env();
29998
30011
  import_react169 = __toESM(require("react"));
29999
- import_react_use34 = require("react-use");
30012
+ import_react_use35 = require("react-use");
30000
30013
  init_src();
30001
30014
  init_Sheet2();
30002
30015
  RequestPrompt = ({
@@ -30008,7 +30021,7 @@ var init_RequestPrompt = __esm({
30008
30021
  onAction,
30009
30022
  disableActions = false
30010
30023
  }) => {
30011
- const isMobile = (0, import_react_use34.useMedia)(config.media.md);
30024
+ const isMobile = (0, import_react_use35.useMedia)(config.media.md);
30012
30025
  if (isMobile) {
30013
30026
  return /* @__PURE__ */ import_react169.default.createElement(Sheet.Root, { open, onOpenChange }, /* @__PURE__ */ import_react169.default.createElement(Sheet.Content, { css: { py: "$8" } }, /* @__PURE__ */ import_react169.default.createElement(Text, { css: { fontWeight: "$semiBold", c: "$on_surface_high", "@md": { px: "$8" } } }, title), body, /* @__PURE__ */ import_react169.default.createElement(RequestActions, { actionText, onAction, disabled: disableActions })));
30014
30027
  }
@@ -30198,14 +30211,14 @@ var init_useVideoTileLayout = __esm({
30198
30211
  });
30199
30212
 
30200
30213
  // src/Prebuilt/components/InsetTile.tsx
30201
- var import_react173, import_react_draggable, import_react_use35, import_react_sdk87, import_react_icons83, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
30214
+ var import_react173, import_react_draggable, import_react_use36, import_react_sdk87, import_react_icons83, MinimisedTile, insetHeightPx, insetMaxWidthPx, defaultMobileAspectRatio, desktopAspectRatio, InsetTile;
30202
30215
  var init_InsetTile = __esm({
30203
30216
  "src/Prebuilt/components/InsetTile.tsx"() {
30204
30217
  "use strict";
30205
30218
  init_define_process_env();
30206
30219
  import_react173 = __toESM(require("react"));
30207
30220
  import_react_draggable = __toESM(require("react-draggable"));
30208
- import_react_use35 = require("react-use");
30221
+ import_react_use36 = require("react-use");
30209
30222
  import_react_sdk87 = require("@100mslive/react-sdk");
30210
30223
  import_react_icons83 = require("@100mslive/react-icons");
30211
30224
  init_Layout();
@@ -30233,8 +30246,8 @@ var init_InsetTile = __esm({
30233
30246
  defaultMobileAspectRatio = 9 / 16;
30234
30247
  desktopAspectRatio = 1 / defaultMobileAspectRatio;
30235
30248
  InsetTile = ({ peerId }) => {
30236
- const isMobile = (0, import_react_use35.useMedia)(config.media.md);
30237
- const isLandscape = (0, import_react_use35.useMedia)(config.media.ls);
30249
+ const isMobile = (0, import_react_use36.useMedia)(config.media.md);
30250
+ const isLandscape = (0, import_react_use36.useMedia)(config.media.ls);
30238
30251
  const selector = peerId ? (0, import_react_sdk87.selectPeerByID)(peerId) : import_react_sdk87.selectLocalPeer;
30239
30252
  const peer = (0, import_react_sdk87.useHMSStore)(selector);
30240
30253
  const [minimised, setMinimised] = useSetAppDataByKey(APP_DATA.minimiseInset);
@@ -30410,13 +30423,13 @@ var init_Grid = __esm({
30410
30423
  });
30411
30424
 
30412
30425
  // src/Prebuilt/components/hooks/useTileLayout.tsx
30413
- var import_react176, import_react_use36, import_react_sdk88, aspectRatioConfig, usePagesWithTiles, useTileLayout;
30426
+ var import_react176, import_react_use37, import_react_sdk88, aspectRatioConfig, usePagesWithTiles, useTileLayout;
30414
30427
  var init_useTileLayout = __esm({
30415
30428
  "src/Prebuilt/components/hooks/useTileLayout.tsx"() {
30416
30429
  "use strict";
30417
30430
  init_define_process_env();
30418
30431
  import_react176 = require("react");
30419
- import_react_use36 = require("react-use");
30432
+ import_react_use37 = require("react-use");
30420
30433
  import_react_sdk88 = require("@100mslive/react-sdk");
30421
30434
  init_Theme();
30422
30435
  aspectRatioConfig = { default: [1 / 1, 4 / 3, 16 / 9], mobile: [1 / 1, 3 / 4, 9 / 16] };
@@ -30448,8 +30461,8 @@ var init_useTileLayout = __esm({
30448
30461
  edgeToEdge = false
30449
30462
  }) => {
30450
30463
  const vanillaStore = (0, import_react_sdk88.useHMSVanillaStore)();
30451
- const [ref, { width, height }] = (0, import_react_use36.useMeasure)();
30452
- const isMobile = (0, import_react_use36.useMedia)(config.media.lg);
30464
+ const [ref, { width, height }] = (0, import_react_use37.useMeasure)();
30465
+ const isMobile = (0, import_react_use37.useMedia)(config.media.lg);
30453
30466
  const [pagesWithTiles, setPagesWithTiles] = (0, import_react176.useState)([]);
30454
30467
  (0, import_react176.useEffect)(() => {
30455
30468
  if (width === 0 || height === 0) {
@@ -30520,7 +30533,7 @@ var init_useTileLayout = __esm({
30520
30533
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
30521
30534
  function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSize, edgeToEdge }) {
30522
30535
  var _a7;
30523
- const isMobile = (0, import_react_use37.useMedia)(config.media.md);
30536
+ const isMobile = (0, import_react_use38.useMedia)(config.media.md);
30524
30537
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
30525
30538
  maxTileCount = isMobile ? Math.min(maxTileCount, 6) : maxTileCount;
30526
30539
  const pageList = usePagesWithTiles({
@@ -30558,13 +30571,13 @@ function EqualProminence({ isInsetEnabled = false, peers, onPageChange, onPageSi
30558
30571
  }
30559
30572
  ) : null, isInsetEnabled && /* @__PURE__ */ import_react177.default.createElement(InsetTile, null));
30560
30573
  }
30561
- var import_react177, import_react_use37, import_react_icons85;
30574
+ var import_react177, import_react_use38, import_react_icons85;
30562
30575
  var init_EqualProminence = __esm({
30563
30576
  "src/Prebuilt/components/VideoLayouts/EqualProminence.tsx"() {
30564
30577
  "use strict";
30565
30578
  init_define_process_env();
30566
30579
  import_react177 = __toESM(require("react"));
30567
- import_react_use37 = require("react-use");
30580
+ import_react_use38 = require("react-use");
30568
30581
  import_react_icons85 = require("@100mslive/react-icons");
30569
30582
  init_Layout();
30570
30583
  init_Theme();
@@ -30667,13 +30680,13 @@ var init_ProminenceLayout = __esm({
30667
30680
  });
30668
30681
 
30669
30682
  // src/Prebuilt/components/SecondaryTiles.tsx
30670
- var import_react179, import_react_use38, import_react_sdk89, SecondaryTiles;
30683
+ var import_react179, import_react_use39, import_react_sdk89, SecondaryTiles;
30671
30684
  var init_SecondaryTiles = __esm({
30672
30685
  "src/Prebuilt/components/SecondaryTiles.tsx"() {
30673
30686
  "use strict";
30674
30687
  init_define_process_env();
30675
30688
  import_react179 = __toESM(require("react"));
30676
- import_react_use38 = require("react-use");
30689
+ import_react_use39 = require("react-use");
30677
30690
  import_react_sdk89 = require("@100mslive/react-sdk");
30678
30691
  init_ProminenceLayout();
30679
30692
  init_Theme();
@@ -30682,7 +30695,7 @@ var init_SecondaryTiles = __esm({
30682
30695
  init_constants();
30683
30696
  SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
30684
30697
  var _a7, _b7;
30685
- const isMobile = (0, import_react_use38.useMedia)(config.media.md);
30698
+ const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30686
30699
  const maxTileCount = isMobile ? 2 : 4;
30687
30700
  const [page, setPage] = (0, import_react179.useState)(0);
30688
30701
  const pinnedTrackId = (0, import_react_sdk89.useHMSStore)((0, import_react_sdk89.selectAppData)(APP_DATA.pinnedTrackId));
@@ -30799,7 +30812,7 @@ function RoleProminence({
30799
30812
  const { prominentPeers, secondaryPeers } = useRoleProminencePeers(prominentRoles, peers, isInsetEnabled);
30800
30813
  const localPeer = (0, import_react_sdk90.useHMSStore)(import_react_sdk90.selectLocalPeer);
30801
30814
  const layoutMode = useUISettings(UI_SETTINGS.layoutMode);
30802
- const isMobile = (0, import_react_use39.useMedia)(config.media.md);
30815
+ const isMobile = (0, import_react_use40.useMedia)(config.media.md);
30803
30816
  let maxTileCount = useUISettings(UI_SETTINGS.maxTileCount);
30804
30817
  maxTileCount = isMobile ? 4 : maxTileCount;
30805
30818
  const pageList = usePagesWithTiles({
@@ -30837,13 +30850,13 @@ function RoleProminence({
30837
30850
  }
30838
30851
  ), isInsetEnabled && localPeer && prominentPeers.length > 0 && !prominentPeers.includes(localPeer) && /* @__PURE__ */ import_react181.default.createElement(InsetTile, null));
30839
30852
  }
30840
- var import_react181, import_react_use39, import_react_sdk90;
30853
+ var import_react181, import_react_use40, import_react_sdk90;
30841
30854
  var init_RoleProminence = __esm({
30842
30855
  "src/Prebuilt/components/VideoLayouts/RoleProminence.tsx"() {
30843
30856
  "use strict";
30844
30857
  init_define_process_env();
30845
30858
  import_react181 = __toESM(require("react"));
30846
- import_react_use39 = require("react-use");
30859
+ import_react_use40 = require("react-use");
30847
30860
  import_react_sdk90 = require("@100mslive/react-sdk");
30848
30861
  init_Theme();
30849
30862
  init_InsetTile();
@@ -31022,13 +31035,13 @@ var init_ScreenshareDisplay = __esm({
31022
31035
  });
31023
31036
 
31024
31037
  // src/Prebuilt/components/ScreenshareTile.tsx
31025
- var import_react184, import_react_use40, import_screenfull2, import_react_sdk92, import_react_icons88, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
31038
+ var import_react184, import_react_use41, import_screenfull2, import_react_sdk92, import_react_icons88, labelStyles, Tile2, ScreenshareTile, ScreenshareTile_default;
31026
31039
  var init_ScreenshareTile = __esm({
31027
31040
  "src/Prebuilt/components/ScreenshareTile.tsx"() {
31028
31041
  "use strict";
31029
31042
  init_define_process_env();
31030
31043
  import_react184 = __toESM(require("react"));
31031
- import_react_use40 = require("react-use");
31044
+ import_react_use41 = require("react-use");
31032
31045
  import_screenfull2 = __toESM(require("screenfull"));
31033
31046
  import_react_sdk92 = require("@100mslive/react-sdk");
31034
31047
  import_react_icons88 = require("@100mslive/react-icons");
@@ -31058,11 +31071,11 @@ var init_ScreenshareTile = __esm({
31058
31071
  const peer = (0, import_react_sdk92.useHMSStore)((0, import_react_sdk92.selectPeerByID)(peerId));
31059
31072
  const isAudioOnly = useUISettings(UI_SETTINGS.isAudioOnly);
31060
31073
  const [isMouseHovered, setIsMouseHovered] = (0, import_react184.useState)(false);
31061
- const isMobile = (0, import_react_use40.useMedia)(config.media.md);
31074
+ const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31062
31075
  const showStatsOnTiles = useUISettings(UI_SETTINGS.showStatsOnTiles);
31063
31076
  const fullscreenRef = (0, import_react184.useRef)(null);
31064
31077
  const [fullscreen, setFullscreen] = (0, import_react184.useState)(false);
31065
- const isFullscreen = (0, import_react_use40.useFullscreen)(fullscreenRef, fullscreen, {
31078
+ const isFullscreen = (0, import_react_use41.useFullscreen)(fullscreenRef, fullscreen, {
31066
31079
  onClose: () => setFullscreen(false)
31067
31080
  });
31068
31081
  const isFullScreenSupported = import_screenfull2.default.isEnabled;
@@ -31145,13 +31158,13 @@ var init_ScreenshareTile = __esm({
31145
31158
  });
31146
31159
 
31147
31160
  // src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx
31148
- var import_react185, import_react_use41, import_react_sdk93, ScreenshareLayout;
31161
+ var import_react185, import_react_use42, import_react_sdk93, ScreenshareLayout;
31149
31162
  var init_ScreenshareLayout = __esm({
31150
31163
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx"() {
31151
31164
  "use strict";
31152
31165
  init_define_process_env();
31153
31166
  import_react185 = __toESM(require("react"));
31154
- import_react_use41 = require("react-use");
31167
+ import_react_use42 = require("react-use");
31155
31168
  import_react_sdk93 = require("@100mslive/react-sdk");
31156
31169
  init_Theme();
31157
31170
  init_InsetTile();
@@ -31169,7 +31182,7 @@ var init_ScreenshareLayout = __esm({
31169
31182
  const [page, setPage] = (0, import_react185.useState)(0);
31170
31183
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
31171
31184
  const activeSharePeer = peersSharing[page];
31172
- const isMobile = (0, import_react_use41.useMedia)(config.media.md);
31185
+ const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31173
31186
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
31174
31187
  const secondaryPeers = (0, import_react185.useMemo)(() => {
31175
31188
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -31213,20 +31226,20 @@ var init_ScreenshareLayout = __esm({
31213
31226
  }
31214
31227
  });
31215
31228
 
31216
- // ../../../../../../../tmp/tmp-2795-4BfSpp3BcRJE/190fe5a3cb50/index.css
31217
- var init_fe5a3cb50 = __esm({
31218
- "../../../../../../../tmp/tmp-2795-4BfSpp3BcRJE/190fe5a3cb50/index.css"() {
31229
+ // ../../../../../../../tmp/tmp-2805-ozCrwpUfP5gX/19122804f881/index.css
31230
+ var init_f881 = __esm({
31231
+ "../../../../../../../tmp/tmp-2805-ozCrwpUfP5gX/19122804f881/index.css"() {
31219
31232
  }
31220
31233
  });
31221
31234
 
31222
31235
  // src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx
31223
- var import_react186, import_react_use42, import_hms_whiteboard, import_react_sdk94, WhiteboardEmbed, WhiteboardLayout;
31236
+ var import_react186, import_react_use43, import_hms_whiteboard, import_react_sdk94, WhiteboardEmbed, WhiteboardLayout;
31224
31237
  var init_WhiteboardLayout = __esm({
31225
31238
  "src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx"() {
31226
31239
  "use strict";
31227
31240
  init_define_process_env();
31228
31241
  import_react186 = __toESM(require("react"));
31229
- import_react_use42 = require("react-use");
31242
+ import_react_use43 = require("react-use");
31230
31243
  import_hms_whiteboard = require("@100mslive/hms-whiteboard");
31231
31244
  import_react_sdk94 = require("@100mslive/react-sdk");
31232
31245
  init_Layout();
@@ -31237,9 +31250,9 @@ var init_WhiteboardLayout = __esm({
31237
31250
  init_ProminenceLayout();
31238
31251
  init_useUISettings();
31239
31252
  init_constants();
31240
- init_fe5a3cb50();
31253
+ init_f881();
31241
31254
  WhiteboardEmbed = () => {
31242
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31255
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31243
31256
  const { token, endpoint, zoomToContent } = (0, import_react_sdk94.useWhiteboard)(isMobile);
31244
31257
  if (!token) {
31245
31258
  return null;
@@ -31264,7 +31277,7 @@ var init_WhiteboardLayout = __esm({
31264
31277
  const whiteboard = (0, import_react_sdk94.useHMSStore)(import_react_sdk94.selectWhiteboard);
31265
31278
  const whiteboardOwner = (0, import_react_sdk94.useHMSStore)((0, import_react_sdk94.selectPeerByCondition)((peer) => peer.customerUserId === (whiteboard == null ? void 0 : whiteboard.owner)));
31266
31279
  const [layoutMode, setLayoutMode] = useSetUiSettings(UI_SETTINGS.layoutMode);
31267
- const isMobile = (0, import_react_use42.useMedia)(config.media.md);
31280
+ const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31268
31281
  const hasSidebar = !isMobile && layoutMode === LayoutMode.SIDEBAR;
31269
31282
  const secondaryPeers = (0, import_react186.useMemo)(() => {
31270
31283
  if (layoutMode === LayoutMode.SPOTLIGHT) {
@@ -31688,14 +31701,14 @@ var init_PDFView = __esm({
31688
31701
  });
31689
31702
 
31690
31703
  // src/Prebuilt/plugins/CaptionsViewer.tsx
31691
- var import_react190, import_react_draggable2, import_react_use43, import_react_sdk99, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
31704
+ var import_react190, import_react_draggable2, import_react_use44, import_react_sdk99, SimpleQueue, Queue, CaptionMaintainerQueue, TranscriptView, CaptionsViewer;
31692
31705
  var init_CaptionsViewer = __esm({
31693
31706
  "src/Prebuilt/plugins/CaptionsViewer.tsx"() {
31694
31707
  "use strict";
31695
31708
  init_define_process_env();
31696
31709
  import_react190 = __toESM(require("react"));
31697
31710
  import_react_draggable2 = __toESM(require("react-draggable"));
31698
- import_react_use43 = require("react-use");
31711
+ import_react_use44 = require("react-use");
31699
31712
  import_react_sdk99 = require("@100mslive/react-sdk");
31700
31713
  init_Layout();
31701
31714
  init_Text2();
@@ -31859,7 +31872,7 @@ var init_CaptionsViewer = __esm({
31859
31872
  }) => {
31860
31873
  var _a7;
31861
31874
  const { elements, screenType } = useRoomLayoutConferencingScreen();
31862
- const isMobile = (0, import_react_use43.useMedia)(config.media.md);
31875
+ const isMobile = (0, import_react_use44.useMedia)(config.media.md);
31863
31876
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
31864
31877
  const showCaptionAtTop = ((_a7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a7.is_overlay) && isChatOpen && isMobile;
31865
31878
  const [captionQueue] = (0, import_react190.useState)(new CaptionMaintainerQueue());
@@ -32201,13 +32214,13 @@ var init_SeekControl = __esm({
32201
32214
  });
32202
32215
 
32203
32216
  // src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx
32204
- var import_react197, import_react_use44, import_react_icons91, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
32217
+ var import_react197, import_react_use45, import_react_icons91, PlayPauseSeekControls, PlayPauseSeekOverlayControls;
32205
32218
  var init_PlayPauseSeekControls = __esm({
32206
32219
  "src/Prebuilt/components/HMSVideo/PlayPauseSeekControls.tsx"() {
32207
32220
  "use strict";
32208
32221
  init_define_process_env();
32209
32222
  import_react197 = __toESM(require("react"));
32210
- import_react_use44 = require("react-use");
32223
+ import_react_use45 = require("react-use");
32211
32224
  import_react_icons91 = require("@100mslive/react-icons");
32212
32225
  init_Layout();
32213
32226
  init_Text2();
@@ -32246,7 +32259,7 @@ var init_PlayPauseSeekControls = __esm({
32246
32259
  showControls,
32247
32260
  hoverControlsVisible
32248
32261
  }) => {
32249
- const isMobile = (0, import_react_use44.useMedia)(config.media.md);
32262
+ const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32250
32263
  const isLandscape = useIsLandscape();
32251
32264
  if (!isMobile && !isLandscape) {
32252
32265
  return /* @__PURE__ */ import_react197.default.createElement(import_react197.default.Fragment, null, /* @__PURE__ */ import_react197.default.createElement(
@@ -32673,7 +32686,7 @@ function HLSAutoplayBlockedPrompt({
32673
32686
  unblockAutoPlay
32674
32687
  }) {
32675
32688
  const isLandscape = useIsLandscape();
32676
- const isMobile = (0, import_react_use45.useMedia)(config.media.md);
32689
+ const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32677
32690
  if ((isMobile || isLandscape) && open) {
32678
32691
  return /* @__PURE__ */ import_react202.default.createElement(
32679
32692
  IconButton,
@@ -32725,13 +32738,13 @@ function HLSAutoplayBlockedPrompt({
32725
32738
  )))
32726
32739
  );
32727
32740
  }
32728
- var import_react202, import_react_use45, import_react_icons94;
32741
+ var import_react202, import_react_use46, import_react_icons94;
32729
32742
  var init_HLSAutoplayBlockedPrompt = __esm({
32730
32743
  "src/Prebuilt/components/HMSVideo/HLSAutoplayBlockedPrompt.tsx"() {
32731
32744
  "use strict";
32732
32745
  init_define_process_env();
32733
32746
  import_react202 = __toESM(require("react"));
32734
- import_react_use45 = require("react-use");
32747
+ import_react_use46 = require("react-use");
32735
32748
  import_react_icons94 = require("@100mslive/react-icons");
32736
32749
  init_src();
32737
32750
  init_DialogContent2();
@@ -32766,7 +32779,7 @@ function HLSQualitySelector({
32766
32779
  isAuto,
32767
32780
  containerRef
32768
32781
  }) {
32769
- const isMobile = (0, import_react_use46.useMedia)(config.media.md);
32782
+ const isMobile = (0, import_react_use47.useMedia)(config.media.md);
32770
32783
  const isLandscape = useIsLandscape();
32771
32784
  if (layers.length === 0) {
32772
32785
  return null;
@@ -32959,13 +32972,13 @@ function HLSQualitySelector({
32959
32972
  )
32960
32973
  )));
32961
32974
  }
32962
- var import_react204, import_react_use46, import_react_icons96, getQualityText, getBitrateText;
32975
+ var import_react204, import_react_use47, import_react_icons96, getQualityText, getBitrateText;
32963
32976
  var init_HLSQualitySelector = __esm({
32964
32977
  "src/Prebuilt/components/HMSVideo/HLSQualitySelector.tsx"() {
32965
32978
  "use strict";
32966
32979
  init_define_process_env();
32967
32980
  import_react204 = __toESM(require("react"));
32968
- import_react_use46 = require("react-use");
32981
+ import_react_use47 = require("react-use");
32969
32982
  import_react_icons96 = require("@100mslive/react-icons");
32970
32983
  init_src();
32971
32984
  init_Sheet2();
@@ -33052,13 +33065,13 @@ var HLSView_exports = {};
33052
33065
  __export(HLSView_exports, {
33053
33066
  default: () => HLSView_default
33054
33067
  });
33055
- var import_react206, import_react_use47, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk101, import_react_icons98, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
33068
+ var import_react206, import_react_use48, import_hls_player3, import_screenfull3, import_ts_pattern12, import_react_sdk101, import_react_icons98, hlsPlayer, toastMap, ToggleChat, HLSView, HLSView_default;
33056
33069
  var init_HLSView = __esm({
33057
33070
  "src/Prebuilt/layouts/HLSView.jsx"() {
33058
33071
  "use strict";
33059
33072
  init_define_process_env();
33060
33073
  import_react206 = __toESM(require("react"));
33061
- import_react_use47 = require("react-use");
33074
+ import_react_use48 = require("react-use");
33062
33075
  import_hls_player3 = require("@100mslive/hls-player");
33063
33076
  import_screenfull3 = __toESM(require("screenfull"));
33064
33077
  import_ts_pattern12 = require("ts-pattern");
@@ -33093,7 +33106,7 @@ var init_HLSView = __esm({
33093
33106
  const sidepane = (0, import_react_sdk101.useHMSStore)((0, import_react_sdk101.selectAppData)(APP_DATA.sidePane));
33094
33107
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33095
33108
  const showChat = !!(elements == null ? void 0 : elements.chat);
33096
- const isMobile = (0, import_react_use47.useMedia)(config.media.md);
33109
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33097
33110
  const hmsActions = (0, import_react_sdk101.useHMSActions)();
33098
33111
  (0, import_react206.useEffect)(() => {
33099
33112
  (0, import_ts_pattern12.match)({ sidepane, isMobile, showChat, isFullScreen }).with({ isFullScreen: true }, () => {
@@ -33108,7 +33121,7 @@ var init_HLSView = __esm({
33108
33121
  return null;
33109
33122
  };
33110
33123
  HLSView = () => {
33111
- var _a7, _b7, _c, _d, _e2, _f, _g;
33124
+ var _a7, _b7, _c, _d, _e, _f, _g;
33112
33125
  const videoRef = (0, import_react206.useRef)(null);
33113
33126
  const hlsViewRef = (0, import_react206.useRef)();
33114
33127
  const { elements } = useRoomLayoutConferencingScreen();
@@ -33132,8 +33145,8 @@ var init_HLSView = __esm({
33132
33145
  seekBackward: false
33133
33146
  });
33134
33147
  const [isPaused, setIsPaused] = (0, import_react206.useState)(false);
33135
- const [show, toggle] = (0, import_react_use47.useToggle)(false);
33136
- const lastHlsUrl = (0, import_react_use47.usePrevious)(hlsUrl);
33148
+ const [show, toggle] = (0, import_react_use48.useToggle)(false);
33149
+ const lastHlsUrl = (0, import_react_use48.usePrevious)(hlsUrl);
33137
33150
  const vanillaStore = (0, import_react_sdk101.useHMSVanillaStore)();
33138
33151
  const [controlsVisible, setControlsVisible] = (0, import_react206.useState)(true);
33139
33152
  const [isUserSelectedAuto, setIsUserSelectedAuto] = (0, import_react206.useState)(true);
@@ -33144,9 +33157,9 @@ var init_HLSView = __esm({
33144
33157
  const isFullScreenSupported = import_screenfull3.default.isEnabled;
33145
33158
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
33146
33159
  const showChat = !!(elements == null ? void 0 : elements.chat);
33147
- const isMobile = (0, import_react_use47.useMedia)(config.media.md);
33160
+ const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33148
33161
  const isLandscape = useIsLandscape();
33149
- const isFullScreen = (0, import_react_use47.useFullscreen)(hlsViewRef, show, {
33162
+ const isFullScreen = (0, import_react_use48.useFullscreen)(hlsViewRef, show, {
33150
33163
  onClose: () => toggle(false)
33151
33164
  });
33152
33165
  const [showLoader, setShowLoader] = (0, import_react206.useState)(false);
@@ -33635,7 +33648,7 @@ var init_HLSView = __esm({
33635
33648
  transition: "visibility 0s 0.5s, opacity 0.5s linear"
33636
33649
  }
33637
33650
  },
33638
- ((_e2 = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e2.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
33651
+ ((_e = hlsState == null ? void 0 : hlsState.variants[0]) == null ? void 0 : _e.playlist_type) === import_react_sdk101.HLSPlaylistType.DVR ? /* @__PURE__ */ import_react206.default.createElement(HMSVideoPlayer.Progress, { seekProgress, setSeekProgress }) : null,
33639
33652
  /* @__PURE__ */ import_react206.default.createElement(
33640
33653
  HMSVideoPlayer.Controls.Root,
33641
33654
  {
@@ -33702,13 +33715,13 @@ var init_HLSView = __esm({
33702
33715
  });
33703
33716
 
33704
33717
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
33705
- var import_react207, import_react_use48, import_ts_pattern13, import_react_sdk102, import_react_icons99, HLSView2, VideoStreamingSection;
33718
+ var import_react207, import_react_use49, import_ts_pattern13, import_react_sdk102, import_react_icons99, HLSView2, VideoStreamingSection;
33706
33719
  var init_VideoStreamingSection = __esm({
33707
33720
  "src/Prebuilt/layouts/VideoStreamingSection.tsx"() {
33708
33721
  "use strict";
33709
33722
  init_define_process_env();
33710
33723
  import_react207 = __toESM(require("react"));
33711
- import_react_use48 = require("react-use");
33724
+ import_react_use49 = require("react-use");
33712
33725
  import_ts_pattern13 = require("ts-pattern");
33713
33726
  import_react_sdk102 = require("@100mslive/react-sdk");
33714
33727
  import_react_icons99 = require("@100mslive/react-icons");
@@ -33739,7 +33752,7 @@ var init_VideoStreamingSection = __esm({
33739
33752
  const pdfAnnotatorActive = usePDFConfig();
33740
33753
  const isMobileHLSStream = useMobileHLSStream();
33741
33754
  const isLandscapeHLSStream = useLandscapeHLSStream();
33742
- const isMobile = (0, import_react_use48.useMedia)(config.media.md);
33755
+ const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33743
33756
  const [captionPosition, setCaptionPosition] = (0, import_react207.useState)({ x: isMobile ? 0 : -200, y: 0 });
33744
33757
  useCloseScreenshareWhiteboard();
33745
33758
  const { isNotAllowedToPublish, isScreenOnlyPublishParams, hasSubscribedRolePublishing } = useWaitingRoomInfo();
@@ -33839,13 +33852,13 @@ var init_VideoStreamingSection = __esm({
33839
33852
  });
33840
33853
 
33841
33854
  // src/Prebuilt/components/Header/RoomDetailsHeader.tsx
33842
- var import_react208, import_react_use49, import_react_icons100, RoomDetailsHeader;
33855
+ var import_react208, import_react_use50, import_react_icons100, RoomDetailsHeader;
33843
33856
  var init_RoomDetailsHeader = __esm({
33844
33857
  "src/Prebuilt/components/Header/RoomDetailsHeader.tsx"() {
33845
33858
  "use strict";
33846
33859
  init_define_process_env();
33847
33860
  import_react208 = __toESM(require("react"));
33848
- import_react_use49 = require("react-use");
33861
+ import_react_use50 = require("react-use");
33849
33862
  import_react_icons100 = require("@100mslive/react-icons");
33850
33863
  init_Layout();
33851
33864
  init_Text2();
@@ -33856,7 +33869,7 @@ var init_RoomDetailsHeader = __esm({
33856
33869
  init_constants();
33857
33870
  RoomDetailsHeader = () => {
33858
33871
  const { title, description } = useRoomLayoutHeader();
33859
- const isMobile = (0, import_react_use49.useMedia)(config.media.md);
33872
+ const isMobile = (0, import_react_use50.useMedia)(config.media.md);
33860
33873
  const clipLength = 30;
33861
33874
  const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
33862
33875
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -34036,13 +34049,13 @@ var init_common2 = __esm({
34036
34049
  });
34037
34050
 
34038
34051
  // src/Prebuilt/components/Header/Header.tsx
34039
- var import_react210, import_react_use50, import_react_sdk104, Header2;
34052
+ var import_react210, import_react_use51, import_react_sdk104, Header2;
34040
34053
  var init_Header = __esm({
34041
34054
  "src/Prebuilt/components/Header/Header.tsx"() {
34042
34055
  "use strict";
34043
34056
  init_define_process_env();
34044
34057
  import_react210 = __toESM(require("react"));
34045
- import_react_use50 = require("react-use");
34058
+ import_react_use51 = require("react-use");
34046
34059
  import_react_sdk104 = require("@100mslive/react-sdk");
34047
34060
  init_src();
34048
34061
  init_HeaderComponents();
@@ -34051,7 +34064,7 @@ var init_Header = __esm({
34051
34064
  init_common2();
34052
34065
  Header2 = () => {
34053
34066
  const roomState = (0, import_react_sdk104.useHMSStore)(import_react_sdk104.selectRoomState);
34054
- const isMobile = (0, import_react_use50.useMedia)(config.media.md);
34067
+ const isMobile = (0, import_react_use51.useMedia)(config.media.md);
34055
34068
  if (roomState !== import_react_sdk104.HMSRoomState.Connected) {
34056
34069
  return /* @__PURE__ */ import_react210.default.createElement(import_react210.default.Fragment, null);
34057
34070
  }
@@ -34136,7 +34149,7 @@ var init_ConferenceScreen = __esm({
34136
34149
  init_hooks();
34137
34150
  init_constants();
34138
34151
  ConferenceScreen = () => {
34139
- var _a7, _b7, _c, _d, _e2, _f;
34152
+ var _a7, _b7, _c, _d, _e, _f;
34140
34153
  const { userName, endpoints, onJoin: onJoinFunc } = useHMSPrebuiltContext();
34141
34154
  const screenProps = useRoomLayoutConferencingScreen();
34142
34155
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -34235,7 +34248,7 @@ var init_ConferenceScreen = __esm({
34235
34248
  flex: "1 1 0",
34236
34249
  minHeight: 0,
34237
34250
  // @ts-ignore
34238
- px: ((_e2 = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e2.edge_to_edge) ? 0 : "$10",
34251
+ px: ((_e = (_d = (_c = screenProps == null ? void 0 : screenProps.elements) == null ? void 0 : _c.video_tile_layout) == null ? void 0 : _d.grid) == null ? void 0 : _e.edge_to_edge) ? 0 : "$10",
34239
34252
  // TODO: padding to be controlled by section/element
34240
34253
  paddingBottom: "env(safe-area-inset-bottom)",
34241
34254
  "@lg": {
@@ -34599,13 +34612,13 @@ var init_useRedirectToLeave = __esm({
34599
34612
  });
34600
34613
 
34601
34614
  // src/Prebuilt/AppStateContext.tsx
34602
- var import_react218, import_react_use51, import_ts_pattern14, import_react_sdk109, AppStateContext, useHMSAppStateContext, useAppStateManager;
34615
+ var import_react218, import_react_use52, import_ts_pattern14, import_react_sdk109, AppStateContext, useHMSAppStateContext, useAppStateManager;
34603
34616
  var init_AppStateContext = __esm({
34604
34617
  "src/Prebuilt/AppStateContext.tsx"() {
34605
34618
  "use strict";
34606
34619
  init_define_process_env();
34607
34620
  import_react218 = __toESM(require("react"));
34608
- import_react_use51 = require("react-use");
34621
+ import_react_use52 = require("react-use");
34609
34622
  import_ts_pattern14 = require("ts-pattern");
34610
34623
  import_react_sdk109 = require("@100mslive/react-sdk");
34611
34624
  init_VBHandler();
@@ -34630,7 +34643,7 @@ var init_AppStateContext = __esm({
34630
34643
  const setOriginalLayout = useSetOriginalLayout();
34631
34644
  const [activeState, setActiveState] = import_react218.default.useState();
34632
34645
  const roomState = (0, import_react_sdk109.useHMSStore)(import_react_sdk109.selectRoomState);
34633
- const prevRoomState = (0, import_react_use51.usePreviousDistinct)(roomState);
34646
+ const prevRoomState = (0, import_react_use52.usePreviousDistinct)(roomState);
34634
34647
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
34635
34648
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
34636
34649
  const { redirectToLeave } = useRedirectToLeave();
@@ -34728,13 +34741,13 @@ var init_LeaveScreen = __esm({
34728
34741
  });
34729
34742
 
34730
34743
  // src/Prebuilt/components/MwebLandscapePrompt.tsx
34731
- var import_react220, import_react_use52, import_ts_pattern15, import_react_icons104, MwebLandscapePrompt;
34744
+ var import_react220, import_react_use53, import_ts_pattern15, import_react_icons104, MwebLandscapePrompt;
34732
34745
  var init_MwebLandscapePrompt = __esm({
34733
34746
  "src/Prebuilt/components/MwebLandscapePrompt.tsx"() {
34734
34747
  "use strict";
34735
34748
  init_define_process_env();
34736
34749
  import_react220 = __toESM(require("react"));
34737
- import_react_use52 = require("react-use");
34750
+ import_react_use53 = require("react-use");
34738
34751
  import_ts_pattern15 = require("ts-pattern");
34739
34752
  import_react_icons104 = require("@100mslive/react-icons");
34740
34753
  init_Button2();
@@ -34746,7 +34759,7 @@ var init_MwebLandscapePrompt = __esm({
34746
34759
  init_utils2();
34747
34760
  MwebLandscapePrompt = () => {
34748
34761
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = (0, import_react220.useState)(false);
34749
- const isLandscape = (0, import_react_use52.useMedia)(config.media.ls);
34762
+ const isLandscape = (0, import_react_use53.useMedia)(config.media.ls);
34750
34763
  const isLandscapeHLSStream = useLandscapeHLSStream();
34751
34764
  (0, import_react220.useEffect)(() => {
34752
34765
  var _a7;
@@ -35013,9 +35026,9 @@ var init_ToastConfig = __esm({
35013
35026
  }
35014
35027
  },
35015
35028
  RECONNECTED: {
35016
- single: () => {
35029
+ single: (online) => {
35017
35030
  return {
35018
- title: `You are now connected`,
35031
+ title: `You are now ${online ? "online" : "connected"}`,
35019
35032
  icon: /* @__PURE__ */ import_react223.default.createElement(import_react_icons106.ConnectivityIcon, null),
35020
35033
  variant: "success",
35021
35034
  duration: 3e3
@@ -35108,13 +35121,13 @@ var init_ToastBatcher = __esm({
35108
35121
  });
35109
35122
 
35110
35123
  // src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx
35111
- var import_react224, import_react_use53, import_react_sdk113, HandRaisedNotifications;
35124
+ var import_react224, import_react_use54, import_react_sdk113, HandRaisedNotifications;
35112
35125
  var init_HandRaisedNotifications = __esm({
35113
35126
  "src/Prebuilt/components/Notifications/HandRaisedNotifications.tsx"() {
35114
35127
  "use strict";
35115
35128
  init_define_process_env();
35116
35129
  import_react224 = require("react");
35117
- import_react_use53 = require("react-use");
35130
+ import_react_use54 = require("react-use");
35118
35131
  import_react_sdk113 = require("@100mslive/react-sdk");
35119
35132
  init_roomLayoutProvider();
35120
35133
  init_ToastBatcher();
@@ -35147,7 +35160,7 @@ var init_HandRaisedNotifications = __esm({
35147
35160
  console.debug("Metadata updated", notification.data);
35148
35161
  }
35149
35162
  }, [isSubscribing, notification, on_stage_exp, roomState, vanillaStore]);
35150
- (0, import_react_use53.useDebounce)(
35163
+ (0, import_react_use54.useDebounce)(
35151
35164
  () => {
35152
35165
  if (!(notification == null ? void 0 : notification.data)) {
35153
35166
  return;
@@ -35277,13 +35290,13 @@ function PermissionErrorNotificationModal() {
35277
35290
  const notification = (0, import_react_sdk116.useHMSNotifications)(import_react_sdk116.HMSNotificationTypes.ERROR);
35278
35291
  return /* @__PURE__ */ import_react227.default.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
35279
35292
  }
35280
- var import_react227, import_react_use54, import_react_sdk116, PermissionErrorModal;
35293
+ var import_react227, import_react_use55, import_react_sdk116, PermissionErrorModal;
35281
35294
  var init_PermissionErrorModal = __esm({
35282
35295
  "src/Prebuilt/components/Notifications/PermissionErrorModal.tsx"() {
35283
35296
  "use strict";
35284
35297
  init_define_process_env();
35285
35298
  import_react227 = __toESM(require("react"));
35286
- import_react_use54 = require("react-use");
35299
+ import_react_use55 = require("react-use");
35287
35300
  import_react_sdk116 = require("@100mslive/react-sdk");
35288
35301
  init_src();
35289
35302
  init_android_perm_1();
@@ -35292,7 +35305,7 @@ var init_PermissionErrorModal = __esm({
35292
35305
  PermissionErrorModal = ({ error }) => {
35293
35306
  const [deviceType, setDeviceType] = (0, import_react227.useState)("");
35294
35307
  const [isSystemError, setIsSystemError] = (0, import_react227.useState)(false);
35295
- const isMobile = (0, import_react_use54.useMedia)(config.media.md);
35308
+ const isMobile = (0, import_react_use55.useMedia)(config.media.md);
35296
35309
  (0, import_react227.useEffect)(() => {
35297
35310
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
35298
35311
  return;
@@ -35355,9 +35368,8 @@ var init_ReconnectNotifications = __esm({
35355
35368
  "src/Prebuilt/components/Notifications/ReconnectNotifications.tsx"() {
35356
35369
  "use strict";
35357
35370
  init_define_process_env();
35358
- import_react228 = __toESM(require("react"));
35371
+ import_react228 = require("react");
35359
35372
  import_react_sdk117 = require("@100mslive/react-sdk");
35360
- init_src();
35361
35373
  init_ToastConfig();
35362
35374
  init_ToastManager();
35363
35375
  notificationTypes2 = [
@@ -35368,42 +35380,26 @@ var init_ReconnectNotifications = __esm({
35368
35380
  notificationId = null;
35369
35381
  ReconnectNotifications = () => {
35370
35382
  const notification = (0, import_react_sdk117.useHMSNotifications)(notificationTypes2);
35371
- const [open, setOpen] = (0, import_react228.useState)(false);
35383
+ const prevErrorCode = (0, import_react228.useRef)(0);
35372
35384
  (0, import_react228.useEffect)(() => {
35373
35385
  var _a7, _b7;
35374
35386
  if (!notification) {
35375
35387
  return;
35376
35388
  }
35377
- if (notification.type === import_react_sdk117.HMSNotificationTypes.ERROR && ((_a7 = notification.data) == null ? void 0 : _a7.isTerminal)) {
35378
- setOpen(false);
35379
- } else if (notification.type === import_react_sdk117.HMSNotificationTypes.RECONNECTED) {
35380
- notificationId = ToastManager.replaceToast(notificationId, ToastConfig.RECONNECTED.single());
35381
- setOpen(false);
35389
+ if (notification.type === import_react_sdk117.HMSNotificationTypes.RECONNECTED) {
35390
+ notificationId = ToastManager.replaceToast(
35391
+ notificationId,
35392
+ ToastConfig.RECONNECTED.single([4005, 4006].includes(prevErrorCode.current))
35393
+ );
35382
35394
  } else if (notification.type === import_react_sdk117.HMSNotificationTypes.RECONNECTING) {
35395
+ prevErrorCode.current = ((_a7 = notification.data) == null ? void 0 : _a7.code) || 0;
35383
35396
  notificationId = ToastManager.replaceToast(
35384
35397
  notificationId,
35385
35398
  ToastConfig.RECONNECTING.single((_b7 = notification.data) == null ? void 0 : _b7.message)
35386
35399
  );
35387
35400
  }
35388
35401
  }, [notification]);
35389
- if (!open)
35390
- return null;
35391
- return /* @__PURE__ */ import_react228.default.createElement(Dialog.Root, { open, modal: true }, /* @__PURE__ */ import_react228.default.createElement(Dialog.Portal, { container: document.getElementById("conferencing") }, /* @__PURE__ */ import_react228.default.createElement(Dialog.Overlay, null), /* @__PURE__ */ import_react228.default.createElement(
35392
- Dialog.Content,
35393
- {
35394
- css: {
35395
- width: "fit-content",
35396
- maxWidth: "80%",
35397
- p: "$4 $8",
35398
- position: "relative",
35399
- top: "unset",
35400
- bottom: "$9",
35401
- transform: "translate(-50%, -100%)",
35402
- animation: "none !important"
35403
- }
35404
- },
35405
- /* @__PURE__ */ import_react228.default.createElement(Flex, { align: "center" }, /* @__PURE__ */ import_react228.default.createElement("div", { style: { display: "inline", margin: "0.25rem" } }, /* @__PURE__ */ import_react228.default.createElement(Loading, { size: 16 })), /* @__PURE__ */ import_react228.default.createElement(Text, { css: { fontSize: "$space$8", color: "$on_surface_high" } }, "You lost your network connection. Trying to reconnect."))
35406
- )));
35402
+ return null;
35407
35403
  };
35408
35404
  }
35409
35405
  });
@@ -35625,7 +35621,7 @@ function Notifications() {
35625
35621
  }, []);
35626
35622
  (0, import_react_sdk122.useCustomEvent)({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
35627
35623
  (0, import_react233.useEffect)(() => {
35628
- var _a8, _b8, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
35624
+ var _a8, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p, _q;
35629
35625
  if (!notification || isNotificationDisabled) {
35630
35626
  return;
35631
35627
  }
@@ -35639,7 +35635,7 @@ function Notifications() {
35639
35635
  ToastManager.addToast({
35640
35636
  title: `Error: ${(_d = notification.data) == null ? void 0 : _d.message}`
35641
35637
  });
35642
- } else if (((_e2 = notification.data) == null ? void 0 : _e2.message) === "role limit reached") {
35638
+ } else if (((_e = notification.data) == null ? void 0 : _e.message) === "role limit reached") {
35643
35639
  ToastManager.addToast({
35644
35640
  title: "The room is currently full, try joining later",
35645
35641
  close: true,
@@ -35830,13 +35826,13 @@ var init_PIPProvider = __esm({
35830
35826
  });
35831
35827
 
35832
35828
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
35833
- var import_react235, import_react_use55, PreviewScreen;
35829
+ var import_react235, import_react_use56, PreviewScreen;
35834
35830
  var init_PreviewScreen = __esm({
35835
35831
  "src/Prebuilt/components/Preview/PreviewScreen.tsx"() {
35836
35832
  "use strict";
35837
35833
  init_define_process_env();
35838
35834
  import_react235 = __toESM(require("react"));
35839
- import_react_use55 = require("react-use");
35835
+ import_react_use56 = require("react-use");
35840
35836
  init_src();
35841
35837
  init_AppContext();
35842
35838
  init_roomLayoutProvider();
@@ -35849,7 +35845,7 @@ var init_PreviewScreen = __esm({
35849
35845
  var _a7, _b7, _c;
35850
35846
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
35851
35847
  const skipPreview = !isPreviewScreenEnabled;
35852
- const previewAsRole = (0, import_react_use55.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
35848
+ const previewAsRole = (0, import_react_use56.useSearchParam)(QUERY_PARAM_PREVIEW_AS_ROLE);
35853
35849
  const { userName } = useHMSPrebuiltContext();
35854
35850
  const initialName = userName || (skipPreview ? "Beam" : "");
35855
35851
  const authToken = useAuthToken();
@@ -35991,7 +35987,7 @@ function FlyingEmoji() {
35991
35987
  const vanillaStore = (0, import_react_sdk125.useHMSVanillaStore)();
35992
35988
  const hmsActions = (0, import_react_sdk125.useHMSActions)();
35993
35989
  const [emojis, setEmojis] = (0, import_react240.useState)([]);
35994
- const isMobile = (0, import_react_use56.useMedia)(config.media.md);
35990
+ const isMobile = (0, import_react_use57.useMedia)(config.media.md);
35995
35991
  const isLargeRoom = (0, import_react_sdk125.useHMSStore)(import_react_sdk125.selectIsLargeRoom);
35996
35992
  const startingPoints = (0, import_react240.useMemo)(() => getStartingPoints(isMobile), [isMobile]);
35997
35993
  const showFlyingEmoji = (0, import_react240.useCallback)(
@@ -36086,13 +36082,13 @@ function FlyingEmoji() {
36086
36082
  })
36087
36083
  );
36088
36084
  }
36089
- var import_react240, import_react_use56, import_react_sdk125, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
36085
+ var import_react240, import_react_use57, import_react_sdk125, emojiCount, flyAndFade, wiggleLeftRight, wiggleRightLeft, getStartingPoints;
36090
36086
  var init_FlyingEmoji = __esm({
36091
36087
  "src/Prebuilt/plugins/FlyingEmoji.jsx"() {
36092
36088
  "use strict";
36093
36089
  init_define_process_env();
36094
36090
  import_react240 = __toESM(require("react"));
36095
- import_react_use56 = require("react-use");
36091
+ import_react_use57 = require("react-use");
36096
36092
  import_react_sdk125 = require("@100mslive/react-sdk");
36097
36093
  init_Layout();
36098
36094
  init_Text2();
@@ -36549,13 +36545,13 @@ var require_react_is_production_min = __commonJS({
36549
36545
  init_define_process_env();
36550
36546
  var b2 = "function" === typeof Symbol && Symbol.for;
36551
36547
  var c = b2 ? Symbol.for("react.element") : 60103;
36552
- var d2 = b2 ? Symbol.for("react.portal") : 60106;
36548
+ var d = b2 ? Symbol.for("react.portal") : 60106;
36553
36549
  var e = b2 ? Symbol.for("react.fragment") : 60107;
36554
36550
  var f2 = b2 ? Symbol.for("react.strict_mode") : 60108;
36555
36551
  var g = b2 ? Symbol.for("react.profiler") : 60114;
36556
36552
  var h = b2 ? Symbol.for("react.provider") : 60109;
36557
- var k2 = b2 ? Symbol.for("react.context") : 60110;
36558
- var l = b2 ? Symbol.for("react.async_mode") : 60111;
36553
+ var k = b2 ? Symbol.for("react.context") : 60110;
36554
+ var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
36559
36555
  var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
36560
36556
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
36561
36557
  var p = b2 ? Symbol.for("react.suspense") : 60113;
@@ -36566,13 +36562,13 @@ var require_react_is_production_min = __commonJS({
36566
36562
  var w = b2 ? Symbol.for("react.fundamental") : 60117;
36567
36563
  var x = b2 ? Symbol.for("react.responder") : 60118;
36568
36564
  var y2 = b2 ? Symbol.for("react.scope") : 60119;
36569
- function z(a2) {
36565
+ function z2(a2) {
36570
36566
  if ("object" === typeof a2 && null !== a2) {
36571
36567
  var u = a2.$$typeof;
36572
36568
  switch (u) {
36573
36569
  case c:
36574
36570
  switch (a2 = a2.type, a2) {
36575
- case l:
36571
+ case l2:
36576
36572
  case m2:
36577
36573
  case e:
36578
36574
  case g:
@@ -36581,7 +36577,7 @@ var require_react_is_production_min = __commonJS({
36581
36577
  return a2;
36582
36578
  default:
36583
36579
  switch (a2 = a2 && a2.$$typeof, a2) {
36584
- case k2:
36580
+ case k:
36585
36581
  case n:
36586
36582
  case t:
36587
36583
  case r:
@@ -36591,68 +36587,68 @@ var require_react_is_production_min = __commonJS({
36591
36587
  return u;
36592
36588
  }
36593
36589
  }
36594
- case d2:
36590
+ case d:
36595
36591
  return u;
36596
36592
  }
36597
36593
  }
36598
36594
  }
36599
- function A(a2) {
36600
- return z(a2) === m2;
36595
+ function A2(a2) {
36596
+ return z2(a2) === m2;
36601
36597
  }
36602
- exports.AsyncMode = l;
36598
+ exports.AsyncMode = l2;
36603
36599
  exports.ConcurrentMode = m2;
36604
- exports.ContextConsumer = k2;
36600
+ exports.ContextConsumer = k;
36605
36601
  exports.ContextProvider = h;
36606
36602
  exports.Element = c;
36607
36603
  exports.ForwardRef = n;
36608
36604
  exports.Fragment = e;
36609
36605
  exports.Lazy = t;
36610
36606
  exports.Memo = r;
36611
- exports.Portal = d2;
36607
+ exports.Portal = d;
36612
36608
  exports.Profiler = g;
36613
36609
  exports.StrictMode = f2;
36614
36610
  exports.Suspense = p;
36615
36611
  exports.isAsyncMode = function(a2) {
36616
- return A(a2) || z(a2) === l;
36612
+ return A2(a2) || z2(a2) === l2;
36617
36613
  };
36618
- exports.isConcurrentMode = A;
36614
+ exports.isConcurrentMode = A2;
36619
36615
  exports.isContextConsumer = function(a2) {
36620
- return z(a2) === k2;
36616
+ return z2(a2) === k;
36621
36617
  };
36622
36618
  exports.isContextProvider = function(a2) {
36623
- return z(a2) === h;
36619
+ return z2(a2) === h;
36624
36620
  };
36625
36621
  exports.isElement = function(a2) {
36626
36622
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c;
36627
36623
  };
36628
36624
  exports.isForwardRef = function(a2) {
36629
- return z(a2) === n;
36625
+ return z2(a2) === n;
36630
36626
  };
36631
36627
  exports.isFragment = function(a2) {
36632
- return z(a2) === e;
36628
+ return z2(a2) === e;
36633
36629
  };
36634
36630
  exports.isLazy = function(a2) {
36635
- return z(a2) === t;
36631
+ return z2(a2) === t;
36636
36632
  };
36637
36633
  exports.isMemo = function(a2) {
36638
- return z(a2) === r;
36634
+ return z2(a2) === r;
36639
36635
  };
36640
36636
  exports.isPortal = function(a2) {
36641
- return z(a2) === d2;
36637
+ return z2(a2) === d;
36642
36638
  };
36643
36639
  exports.isProfiler = function(a2) {
36644
- return z(a2) === g;
36640
+ return z2(a2) === g;
36645
36641
  };
36646
36642
  exports.isStrictMode = function(a2) {
36647
- return z(a2) === f2;
36643
+ return z2(a2) === f2;
36648
36644
  };
36649
36645
  exports.isSuspense = function(a2) {
36650
- return z(a2) === p;
36646
+ return z2(a2) === p;
36651
36647
  };
36652
36648
  exports.isValidElementType = function(a2) {
36653
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
36649
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f2 || a2 === p || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
36654
36650
  };
36655
- exports.typeOf = z;
36651
+ exports.typeOf = z2;
36656
36652
  }
36657
36653
  });
36658
36654