@100mslive/roomkit-react 0.3.11 → 0.3.12-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,13 +14,13 @@ var __export = (target, all) => {
14
14
  for (var name in all)
15
15
  __defProp(target, name, { get: all[name], enumerable: true });
16
16
  };
17
- var __copyProps = (to2, from, except, desc) => {
17
+ var __copyProps = (to, from, except, desc) => {
18
18
  if (from && typeof from === "object" || typeof from === "function") {
19
19
  for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to2, key) && key !== except)
21
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
22
  }
23
- return to2;
23
+ return to;
24
24
  };
25
25
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
26
  // If the importer is in node compatibility mode or this is not an ESM
@@ -35,7 +35,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
35
  var define_process_env_default;
36
36
  var init_define_process_env = __esm({
37
37
  "<define:process.env>"() {
38
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a4a1fa78-ef72-4dc7-861c-a023d415c35c", 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.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.2 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.11", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a4a1fa78-ef72-4dc7-861c-a023d415c35c", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.2/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.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.8", 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.7", 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: "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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240516.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.3/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:17159", 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.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: "9223289124", 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: "29f7d58a447423b3eaab77ef94e843aafe23995a", 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: "fa095f17c6cc7639f9d167141e98fdb2fb88f2e642fa95f06563c8f8c1ba365f", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/main", 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--1716550647500-0.27432674176805394:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550647303-0.07388646026331447:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550621000-0.4540717407358503:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716550620820-0.968094068149677:/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.2/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.2/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.2/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_e966129c-dadb-49cd-8676-3c16610ca61f", INVOCATION_ID: "a3b528c8bd944f188897dca2efb66671", 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: "555", GITHUB_TRIGGERING_ACTOR: "KaustubhKumar05", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 99", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", 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.11", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.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: "29f7d58a447423b3eaab77ef94e843aafe23995a", 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/main", GITHUB_ACTOR: "KaustubhKumar05", 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_a4a1fa78-ef72-4dc7-861c-a023d415c35c", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "57426646", 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_a4a1fa78-ef72-4dc7-861c-a023d415c35c", 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.172+1/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__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_a4a1fa78-ef72-4dc7-861c-a023d415c35c" };
38
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87bb0559-bcd7-4532-a344-450242e5ef47", GIT_CLONE_PROTECTION_ACTIVE: "false", 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.2-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.3 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.12-alpha.1", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_87bb0559-bcd7-4532-a344-450242e5ef47", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.3/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.12-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.8", 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.7", 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: "590", 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.10/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240526.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.3/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:15013", 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.12-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: "9281845565", 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: "d1da18b74e26ac0defecd1509864a9d8dd8c258e", 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: "99a73bbe8b457a4540f1d00f7ca11ccf08fd5656792336b8e1bd978fdde902a6", 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--1716967046057-0.9148860350872108:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967045849-0.5311695091924935:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967020806-0.8731716501097568:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1716967020632-0.507700896354027:/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.3/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.3/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.3/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_7c6c6dce-ad70-4baf-871f-21c711a34ae6", INVOCATION_ID: "0d21648158a3449e8f908e82f97dd020", 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: "558", 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_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 240", 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.12-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.12-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: "d1da18b74e26ac0defecd1509864a9d8dd8c258e", 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_87bb0559-bcd7-4532-a344-450242e5ef47", 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_87bb0559-bcd7-4532-a344-450242e5ef47", 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.172+1/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__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_87bb0559-bcd7-4532-a344-450242e5ef47" };
39
39
  }
40
40
  });
41
41
 
@@ -730,7 +730,7 @@ var require_lodash = __commonJS({
730
730
  return string.match(reUnicodeWord) || [];
731
731
  }
732
732
  var runInContext = function runInContext2(context) {
733
- context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
733
+ context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
734
734
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
735
735
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
736
736
  var coreJsData = context["__core-js_shared__"];
@@ -2857,8 +2857,8 @@ var require_lodash = __commonJS({
2857
2857
  return { "start": start, "end": end };
2858
2858
  }
2859
2859
  function getWrapDetails(source) {
2860
- var match16 = source.match(reWrapDetails);
2861
- return match16 ? match16[1].split(reSplitDetails) : [];
2860
+ var match17 = source.match(reWrapDetails);
2861
+ return match17 ? match17[1].split(reSplitDetails) : [];
2862
2862
  }
2863
2863
  function hasPath(object, path, hasFunc) {
2864
2864
  path = castPath(path, object);
@@ -3126,8 +3126,8 @@ var require_lodash = __commonJS({
3126
3126
  if (string.charCodeAt(0) === 46) {
3127
3127
  result2.push("");
3128
3128
  }
3129
- string.replace(rePropName, function(match16, number, quote, subString) {
3130
- result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match16);
3129
+ string.replace(rePropName, function(match17, number, quote, subString) {
3130
+ result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match17);
3131
3131
  });
3132
3132
  return result2;
3133
3133
  });
@@ -4693,7 +4693,7 @@ var require_lodash = __commonJS({
4693
4693
  "g"
4694
4694
  );
4695
4695
  var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
4696
- string.replace(reDelimiters, function(match16, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4696
+ string.replace(reDelimiters, function(match17, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
4697
4697
  interpolateValue || (interpolateValue = esTemplateValue);
4698
4698
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
4699
4699
  if (escapeValue) {
@@ -4707,8 +4707,8 @@ var require_lodash = __commonJS({
4707
4707
  if (interpolateValue) {
4708
4708
  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
4709
4709
  }
4710
- index = offset + match16.length;
4711
- return match16;
4710
+ index = offset + match17.length;
4711
+ return match17;
4712
4712
  });
4713
4713
  source += "';\n";
4714
4714
  var variable = hasOwnProperty.call(options, "variable") && options.variable;
@@ -4796,13 +4796,13 @@ var require_lodash = __commonJS({
4796
4796
  }
4797
4797
  if (isRegExp(separator)) {
4798
4798
  if (string.slice(end).search(separator)) {
4799
- var match16, substring = result2;
4799
+ var match17, substring = result2;
4800
4800
  if (!separator.global) {
4801
4801
  separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
4802
4802
  }
4803
4803
  separator.lastIndex = 0;
4804
- while (match16 = separator.exec(substring)) {
4805
- var newEnd = match16.index;
4804
+ while (match17 = separator.exec(substring)) {
4805
+ var newEnd = match17.index;
4806
4806
  }
4807
4807
  result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4808
4808
  }
@@ -5504,17 +5504,17 @@ var require_lodash = __commonJS({
5504
5504
  }
5505
5505
  return lodash;
5506
5506
  };
5507
- var _ = runInContext();
5507
+ var _2 = runInContext();
5508
5508
  if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
5509
- root._ = _;
5509
+ root._ = _2;
5510
5510
  define(function() {
5511
- return _;
5511
+ return _2;
5512
5512
  });
5513
5513
  } else if (freeModule) {
5514
- (freeModule.exports = _)._ = _;
5515
- freeExports._ = _;
5514
+ (freeModule.exports = _2)._ = _2;
5515
+ freeExports._ = _2;
5516
5516
  } else {
5517
- root._ = _;
5517
+ root._ = _2;
5518
5518
  }
5519
5519
  }).call(exports);
5520
5520
  }
@@ -5556,38 +5556,38 @@ var require_ua_parser = __commonJS({
5556
5556
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5557
5557
  }
5558
5558
  };
5559
- var rgxMapper = function(ua, arrays) {
5560
- var i = 0, j2, k2, p, q2, matches, match16;
5559
+ var rgxMapper = function(ua2, arrays) {
5560
+ var i = 0, j2, k, p, q, matches, match17;
5561
5561
  while (i < arrays.length && !matches) {
5562
5562
  var regex = arrays[i], props = arrays[i + 1];
5563
- j2 = k2 = 0;
5563
+ j2 = k = 0;
5564
5564
  while (j2 < regex.length && !matches) {
5565
5565
  if (!regex[j2]) {
5566
5566
  break;
5567
5567
  }
5568
- matches = regex[j2++].exec(ua);
5568
+ matches = regex[j2++].exec(ua2);
5569
5569
  if (!!matches) {
5570
5570
  for (p = 0; p < props.length; p++) {
5571
- match16 = matches[++k2];
5572
- q2 = props[p];
5573
- if (typeof q2 === OBJ_TYPE && q2.length > 0) {
5574
- if (q2.length === 2) {
5575
- if (typeof q2[1] == FUNC_TYPE) {
5576
- this[q2[0]] = q2[1].call(this, match16);
5571
+ match17 = matches[++k];
5572
+ q = props[p];
5573
+ if (typeof q === OBJ_TYPE && q.length > 0) {
5574
+ if (q.length === 2) {
5575
+ if (typeof q[1] == FUNC_TYPE) {
5576
+ this[q[0]] = q[1].call(this, match17);
5577
5577
  } else {
5578
- this[q2[0]] = q2[1];
5578
+ this[q[0]] = q[1];
5579
5579
  }
5580
- } else if (q2.length === 3) {
5581
- if (typeof q2[1] === FUNC_TYPE && !(q2[1].exec && q2[1].test)) {
5582
- this[q2[0]] = match16 ? q2[1].call(this, match16, q2[2]) : undefined2;
5580
+ } else if (q.length === 3) {
5581
+ if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {
5582
+ this[q[0]] = match17 ? q[1].call(this, match17, q[2]) : undefined2;
5583
5583
  } else {
5584
- this[q2[0]] = match16 ? match16.replace(q2[1], q2[2]) : undefined2;
5584
+ this[q[0]] = match17 ? match17.replace(q[1], q[2]) : undefined2;
5585
5585
  }
5586
- } else if (q2.length === 4) {
5587
- this[q2[0]] = match16 ? q2[3].call(this, match16.replace(q2[1], q2[2])) : undefined2;
5586
+ } else if (q.length === 4) {
5587
+ this[q[0]] = match17 ? q[3].call(this, match17.replace(q[1], q[2])) : undefined2;
5588
5588
  }
5589
5589
  } else {
5590
- this[q2] = match16 ? match16 : undefined2;
5590
+ this[q] = match17 ? match17 : undefined2;
5591
5591
  }
5592
5592
  }
5593
5593
  }
@@ -6654,16 +6654,16 @@ var require_ua_parser = __commonJS({
6654
6654
  [NAME, VERSION]
6655
6655
  ]
6656
6656
  };
6657
- var UAParser = function(ua, extensions) {
6658
- if (typeof ua === OBJ_TYPE) {
6659
- extensions = ua;
6660
- ua = undefined2;
6657
+ var UAParser = function(ua2, extensions) {
6658
+ if (typeof ua2 === OBJ_TYPE) {
6659
+ extensions = ua2;
6660
+ ua2 = undefined2;
6661
6661
  }
6662
6662
  if (!(this instanceof UAParser)) {
6663
- return new UAParser(ua, extensions).getResult();
6663
+ return new UAParser(ua2, extensions).getResult();
6664
6664
  }
6665
6665
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6666
- var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6666
+ var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6667
6667
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6668
6668
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6669
6669
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6729,8 +6729,8 @@ var require_ua_parser = __commonJS({
6729
6729
  this.getUA = function() {
6730
6730
  return _ua;
6731
6731
  };
6732
- this.setUA = function(ua2) {
6733
- _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6732
+ this.setUA = function(ua3) {
6733
+ _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6734
6734
  return this;
6735
6735
  };
6736
6736
  this.setUA(_ua);
@@ -6762,8 +6762,8 @@ var require_ua_parser = __commonJS({
6762
6762
  $2.ua.get = function() {
6763
6763
  return parser.getUA();
6764
6764
  };
6765
- $2.ua.set = function(ua) {
6766
- parser.setUA(ua);
6765
+ $2.ua.set = function(ua2) {
6766
+ parser.setUA(ua2);
6767
6767
  var result = parser.getResult();
6768
6768
  for (var prop in result) {
6769
6769
  $2.ua[prop] = result[prop];
@@ -7599,12 +7599,12 @@ var require_sdp = __commonJS({
7599
7599
  return parsed;
7600
7600
  };
7601
7601
  SDPUtils2.writeRtpMap = function(codec) {
7602
- let pt = codec.payloadType;
7602
+ let pt2 = codec.payloadType;
7603
7603
  if (codec.preferredPayloadType !== void 0) {
7604
- pt = codec.preferredPayloadType;
7604
+ pt2 = codec.preferredPayloadType;
7605
7605
  }
7606
7606
  const channels = codec.channels || codec.numChannels || 1;
7607
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7607
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7608
7608
  };
7609
7609
  SDPUtils2.parseExtmap = function(line) {
7610
7610
  const parts = line.substring(9).split(" ");
@@ -7630,9 +7630,9 @@ var require_sdp = __commonJS({
7630
7630
  };
7631
7631
  SDPUtils2.writeFmtp = function(codec) {
7632
7632
  let line = "";
7633
- let pt = codec.payloadType;
7633
+ let pt2 = codec.payloadType;
7634
7634
  if (codec.preferredPayloadType !== void 0) {
7635
- pt = codec.preferredPayloadType;
7635
+ pt2 = codec.preferredPayloadType;
7636
7636
  }
7637
7637
  if (codec.parameters && Object.keys(codec.parameters).length) {
7638
7638
  const params = [];
@@ -7643,7 +7643,7 @@ var require_sdp = __commonJS({
7643
7643
  params.push(param);
7644
7644
  }
7645
7645
  });
7646
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7646
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7647
7647
  }
7648
7648
  return line;
7649
7649
  };
@@ -7656,13 +7656,13 @@ var require_sdp = __commonJS({
7656
7656
  };
7657
7657
  SDPUtils2.writeRtcpFb = function(codec) {
7658
7658
  let lines = "";
7659
- let pt = codec.payloadType;
7659
+ let pt2 = codec.payloadType;
7660
7660
  if (codec.preferredPayloadType !== void 0) {
7661
- pt = codec.preferredPayloadType;
7661
+ pt2 = codec.preferredPayloadType;
7662
7662
  }
7663
7663
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7664
7664
  codec.rtcpFeedback.forEach((fb) => {
7665
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7665
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7666
7666
  });
7667
7667
  }
7668
7668
  return lines;
@@ -7790,21 +7790,21 @@ var require_sdp = __commonJS({
7790
7790
  const mline = lines[0].split(" ");
7791
7791
  description.profile = mline[2];
7792
7792
  for (let i = 3; i < mline.length; i++) {
7793
- const pt = mline[i];
7793
+ const pt2 = mline[i];
7794
7794
  const rtpmapline = SDPUtils2.matchPrefix(
7795
7795
  mediaSection,
7796
- "a=rtpmap:" + pt + " "
7796
+ "a=rtpmap:" + pt2 + " "
7797
7797
  )[0];
7798
7798
  if (rtpmapline) {
7799
7799
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7800
7800
  const fmtps = SDPUtils2.matchPrefix(
7801
7801
  mediaSection,
7802
- "a=fmtp:" + pt + " "
7802
+ "a=fmtp:" + pt2 + " "
7803
7803
  );
7804
7804
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7805
7805
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7806
7806
  mediaSection,
7807
- "a=rtcp-fb:" + pt + " "
7807
+ "a=rtcp-fb:" + pt2 + " "
7808
7808
  ).map(SDPUtils2.parseRtcpFb);
7809
7809
  description.codecs.push(codec);
7810
7810
  switch (codec.name.toUpperCase()) {
@@ -8562,16 +8562,16 @@ var require_grammar = __commonJS({
8562
8562
  var require_parser = __commonJS({
8563
8563
  "../../node_modules/sdp-transform/lib/parser.js"(exports) {
8564
8564
  init_define_process_env();
8565
- var toIntIfInt = function(v) {
8566
- return String(Number(v)) === v ? Number(v) : v;
8565
+ var toIntIfInt = function(v2) {
8566
+ return String(Number(v2)) === v2 ? Number(v2) : v2;
8567
8567
  };
8568
- var attachProperties = function(match16, location, names, rawName) {
8568
+ var attachProperties = function(match17, location, names, rawName) {
8569
8569
  if (rawName && !names) {
8570
- location[rawName] = toIntIfInt(match16[1]);
8570
+ location[rawName] = toIntIfInt(match17[1]);
8571
8571
  } else {
8572
8572
  for (var i = 0; i < names.length; i += 1) {
8573
- if (match16[i + 1] != null) {
8574
- location[names[i]] = toIntIfInt(match16[i + 1]);
8573
+ if (match17[i + 1] != null) {
8574
+ location[names[i]] = toIntIfInt(match17[i + 1]);
8575
8575
  }
8576
8576
  }
8577
8577
  }
@@ -8676,13 +8676,13 @@ var require_writer = __commonJS({
8676
8676
  var i = 1;
8677
8677
  var args = arguments;
8678
8678
  var len = args.length;
8679
- return formatStr.replace(formatRegExp, function(x2) {
8679
+ return formatStr.replace(formatRegExp, function(x) {
8680
8680
  if (i >= len) {
8681
- return x2;
8681
+ return x;
8682
8682
  }
8683
8683
  var arg = args[i];
8684
8684
  i += 1;
8685
- switch (x2) {
8685
+ switch (x) {
8686
8686
  case "%%":
8687
8687
  return "%";
8688
8688
  case "%s":
@@ -9120,6 +9120,9 @@ var POLL_VIEWS = {
9120
9120
  VOTE: "VOTE",
9121
9121
  RESULTS: "RESULTS"
9122
9122
  };
9123
+ var CAPTION_TOAST = {
9124
+ captionToast: "captionToast"
9125
+ };
9123
9126
  var SUBSCRIBED_NOTIFICATIONS = {
9124
9127
  PEER_JOINED: "PEER_JOINED",
9125
9128
  PEER_LEFT: "PEER_LEFT",
@@ -10955,8 +10958,8 @@ function useBorderAudioLevel(audioTrackId) {
10955
10958
  });
10956
10959
  return ref;
10957
10960
  }
10958
- var sigmoid = (z2) => {
10959
- return 1 / (1 + Math.exp(-z2));
10961
+ var sigmoid = (z) => {
10962
+ return 1 / (1 + Math.exp(-z));
10960
10963
  };
10961
10964
 
10962
10965
  // src/AudioLevel/AudioLevel.tsx
@@ -10968,7 +10971,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
10968
10971
  var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
10969
10972
 
10970
10973
  // src/AudioLevel/AudioLevel.tsx
10971
- var positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
10974
+ var positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
10972
10975
  acc[index] = Math.round(index / 100 * 4) / 4;
10973
10976
  return acc;
10974
10977
  }, {});
@@ -11091,12 +11094,12 @@ var formatBytes = (bytes, unit = "B", decimals = 2) => {
11091
11094
  if (!bytes) {
11092
11095
  return "-";
11093
11096
  }
11094
- const k2 = 1024;
11095
- const dm = decimals < 0 ? 0 : decimals;
11097
+ const k = 1024;
11098
+ const dm2 = decimals < 0 ? 0 : decimals;
11096
11099
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
11097
- let i = Math.floor(Math.log(bytes) / Math.log(k2));
11100
+ let i = Math.floor(Math.log(bytes) / Math.log(k));
11098
11101
  i === 0 && i++;
11099
- return `${parseFloat((bytes / Math.pow(k2, i)).toFixed(dm))} ${sizes[i]}`;
11102
+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm2))} ${sizes[i]}`;
11100
11103
  };
11101
11104
 
11102
11105
  // src/Stats/StyledStats.tsx
@@ -11851,8 +11854,8 @@ var Collapsible = {
11851
11854
 
11852
11855
  // src/Prebuilt/App.tsx
11853
11856
  init_define_process_env();
11854
- import React181, { useEffect as useEffect74, useRef as useRef30 } from "react";
11855
- import { match as match15 } from "ts-pattern";
11857
+ import React182, { useEffect as useEffect75, useRef as useRef30 } from "react";
11858
+ import { match as match16 } from "ts-pattern";
11856
11859
  import {
11857
11860
  HMSReactiveStore,
11858
11861
  HMSRoomProvider,
@@ -12369,12 +12372,12 @@ var formatTime = (timeInSeconds) => {
12369
12372
  const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
12370
12373
  return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
12371
12374
  };
12372
- var compareArrays = (a2, b2) => {
12373
- if (a2.length !== b2.length)
12375
+ var compareArrays = (a2, b) => {
12376
+ if (a2.length !== b.length)
12374
12377
  return false;
12375
12378
  else {
12376
12379
  for (var i = 0; i < a2.length; i++) {
12377
- if (a2[i] !== b2[i]) {
12380
+ if (a2[i] !== b[i]) {
12378
12381
  return false;
12379
12382
  }
12380
12383
  }
@@ -14646,8 +14649,24 @@ init_define_process_env();
14646
14649
  import React55, { Fragment as Fragment6, useState as useState23 } from "react";
14647
14650
  import { HMSHLSPlayer } from "@100mslive/hls-player";
14648
14651
  import { match as match4 } from "ts-pattern";
14649
- import { selectAppData as selectAppData3, selectLocalPeerID as selectLocalPeerID4, useHMSActions as useHMSActions17, useHMSStore as useHMSStore22 } from "@100mslive/react-sdk";
14650
- import { BrbIcon, CheckIcon as CheckIcon4, HamburgerMenuIcon, InfoIcon as InfoIcon2, PipIcon as PipIcon2, SettingsIcon as SettingsIcon3 } from "@100mslive/react-icons";
14652
+ import {
14653
+ HMSTranscriptionMode as HMSTranscriptionMode2,
14654
+ selectAppData as selectAppData3,
14655
+ selectIsTranscriptionAllowedByMode,
14656
+ selectIsTranscriptionEnabled as selectIsTranscriptionEnabled3,
14657
+ selectLocalPeerID as selectLocalPeerID4,
14658
+ useHMSActions as useHMSActions17,
14659
+ useHMSStore as useHMSStore22
14660
+ } from "@100mslive/react-sdk";
14661
+ import {
14662
+ BrbIcon,
14663
+ CheckIcon as CheckIcon4,
14664
+ HamburgerMenuIcon,
14665
+ InfoIcon as InfoIcon2,
14666
+ OpenCaptionIcon as OpenCaptionIcon2,
14667
+ PipIcon as PipIcon2,
14668
+ SettingsIcon as SettingsIcon3
14669
+ } from "@100mslive/react-icons";
14651
14670
 
14652
14671
  // src/Prebuilt/components/PIP/index.jsx
14653
14672
  init_define_process_env();
@@ -14813,8 +14832,8 @@ var PipManager = class {
14813
14832
  /**
14814
14833
  * @private {boolean} on - whether pip is on/off
14815
14834
  */
14816
- this.callListeners = (on2) => {
14817
- this.listeners.forEach((listener) => listener?.(on2));
14835
+ this.callListeners = (on) => {
14836
+ this.listeners.forEach((listener) => listener?.(on));
14818
14837
  };
14819
14838
  this.reset();
14820
14839
  }
@@ -15766,11 +15785,11 @@ var formatBytes2 = (bytes, unit = "B", decimals = 2) => {
15766
15785
  return "-";
15767
15786
  if (bytes === 0)
15768
15787
  return "0 " + unit;
15769
- const k2 = 1024;
15770
- const dm = decimals < 0 ? 0 : decimals;
15788
+ const k = 1024;
15789
+ const dm2 = decimals < 0 ? 0 : decimals;
15771
15790
  const sizes = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"].map((size) => size + unit);
15772
- const i = Math.floor(Math.log(bytes) / Math.log(k2));
15773
- return parseFloat((bytes / Math.pow(k2, i)).toFixed(dm)) + " " + sizes[i];
15791
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
15792
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm2)) + " " + sizes[i];
15774
15793
  };
15775
15794
 
15776
15795
  // src/Prebuilt/components/MoreSettings/BulkRoleChangeModal.jsx
@@ -15894,6 +15913,7 @@ var CaptionContent = ({ isMobile, onExit }) => {
15894
15913
  const DURATION = 2e3;
15895
15914
  const actions = useHMSActions14();
15896
15915
  const isTranscriptionEnabled = useHMSStore18(selectIsTranscriptionEnabled2);
15916
+ const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
15897
15917
  const [isCaptionEnabled, setIsCaptionEnabled] = useSetIsCaptionEnabled();
15898
15918
  return /* @__PURE__ */ React50.createElement(React50.Fragment, null, /* @__PURE__ */ React50.createElement(
15899
15919
  Text,
@@ -15965,30 +15985,33 @@ var CaptionContent = ({ isMobile, onExit }) => {
15965
15985
  await actions.stopTranscription({
15966
15986
  mode: HMSTranscriptionMode.CAPTION
15967
15987
  });
15968
- ToastManager.addToast({
15988
+ const id2 = ToastManager.replaceToast(toastId, {
15969
15989
  title: `Disabling Closed Caption for everyone.`,
15970
15990
  variant: "standard",
15971
15991
  duration: DURATION,
15972
15992
  icon: /* @__PURE__ */ React50.createElement(Loading, { color: "currentColor" })
15973
15993
  });
15994
+ setToastId(id2);
15974
15995
  onExit();
15975
15996
  return;
15976
15997
  }
15977
15998
  await actions.startTranscription({
15978
15999
  mode: HMSTranscriptionMode.CAPTION
15979
16000
  });
15980
- ToastManager.addToast({
16001
+ const id = ToastManager.replaceToast(toastId, {
15981
16002
  title: `Enabling Closed Caption for everyone.`,
15982
16003
  variant: "standard",
15983
16004
  duration: DURATION,
15984
16005
  icon: /* @__PURE__ */ React50.createElement(Loading, { color: "currentColor" })
15985
16006
  });
16007
+ setToastId(id);
15986
16008
  } catch (err) {
15987
- ToastManager.addToast({
16009
+ const id = ToastManager.replaceToast(toastId, {
15988
16010
  title: `Failed to ${isTranscriptionEnabled ? "disabled" : "enabled"} closed caption`,
15989
16011
  variant: "error",
15990
16012
  icon: /* @__PURE__ */ React50.createElement(AlertTriangleIcon5, { style: { marginRight: "0.5rem" } })
15991
16013
  });
16014
+ setToastId(id);
15992
16015
  }
15993
16016
  onExit();
15994
16017
  }
@@ -16263,6 +16286,8 @@ var DesktopOptions = ({
16263
16286
  const { isBRBOn, toggleBRB } = useMyMetadata();
16264
16287
  const isPipOn = PictureInPicture.isOn();
16265
16288
  const isBRBEnabled = !!elements?.brb;
16289
+ const isTranscriptionAllowed = useHMSStore22(selectIsTranscriptionAllowedByMode(HMSTranscriptionMode2.CAPTION));
16290
+ const isTranscriptionEnabled = useHMSStore22(selectIsTranscriptionEnabled3);
16266
16291
  useDropdownList({ open: openModals.size > 0, name: "MoreSettings" });
16267
16292
  const updateState = (modalName, value) => {
16268
16293
  setOpenModals((modals) => {
@@ -16299,6 +16324,18 @@ var DesktopOptions = ({
16299
16324
  }
16300
16325
  },
16301
16326
  isBRBEnabled && screenType !== "hls_live_streaming" ? /* @__PURE__ */ React55.createElement(Dropdown.Item, { onClick: toggleBRB, "data-testid": "brb_btn" }, /* @__PURE__ */ React55.createElement(BrbIcon, null), /* @__PURE__ */ React55.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Be Right Back"), /* @__PURE__ */ React55.createElement(Flex, { justify: "end", css: { color: "$on_surface_high", flexGrow: "1" } }, isBRBOn ? /* @__PURE__ */ React55.createElement(CheckIcon4, null) : null)) : null,
16327
+ isTranscriptionAllowed ? /* @__PURE__ */ React55.createElement(
16328
+ Dropdown.Item,
16329
+ {
16330
+ "data-testid": "closed_caption_admin",
16331
+ onClick: () => {
16332
+ updateState(MODALS.CAPTION, true);
16333
+ }
16334
+ },
16335
+ /* @__PURE__ */ React55.createElement(OpenCaptionIcon2, null),
16336
+ /* @__PURE__ */ React55.createElement(Flex, { direction: "column", css: { flexGrow: "1" } }, /* @__PURE__ */ React55.createElement(Text, { variant: "sm", css: { ml: "$4", color: "$on_surface_high" } }, "Closed Captions"), /* @__PURE__ */ React55.createElement(Text, { variant: "caption", css: { ml: "$4", color: "$on_surface_medium" } }, isTranscriptionEnabled ? "Enabled" : "Disabled")),
16337
+ /* @__PURE__ */ React55.createElement(Switch, { id: "closed_caption_start_stop", checked: isTranscriptionEnabled, disabled: false })
16338
+ ) : null,
16302
16339
  screenType !== "hls_live_streaming" ? /* @__PURE__ */ React55.createElement(Dropdown.Item, { css: { p: 0, "&:empty": { display: "none" } } }, /* @__PURE__ */ React55.createElement(
16303
16340
  PIP,
16304
16341
  {
@@ -16358,8 +16395,11 @@ import React61, { useRef as useRef16, useState as useState28 } from "react";
16358
16395
  import { useClickAway } from "react-use";
16359
16396
  import { match as match5 } from "ts-pattern";
16360
16397
  import {
16398
+ HMSTranscriptionMode as HMSTranscriptionMode3,
16361
16399
  selectIsConnectedToRoom as selectIsConnectedToRoom7,
16362
16400
  selectIsLocalVideoEnabled as selectIsLocalVideoEnabled4,
16401
+ selectIsTranscriptionAllowedByMode as selectIsTranscriptionAllowedByMode2,
16402
+ selectIsTranscriptionEnabled as selectIsTranscriptionEnabled4,
16363
16403
  selectPeerCount as selectPeerCount3,
16364
16404
  selectPermissions as selectPermissions8,
16365
16405
  useHMSActions as useHMSActions23,
@@ -16368,12 +16408,14 @@ import {
16368
16408
  } from "@100mslive/react-sdk";
16369
16409
  import {
16370
16410
  BrbIcon as BrbIcon2,
16411
+ ClosedCaptionIcon as ClosedCaptionIcon2,
16371
16412
  CrossIcon as CrossIcon12,
16372
16413
  EmojiIcon as EmojiIcon2,
16373
16414
  HamburgerMenuIcon as HamburgerMenuIcon2,
16374
16415
  HandIcon as HandIcon2,
16375
16416
  HandRaiseSlashedIcon,
16376
16417
  InfoIcon as InfoIcon3,
16418
+ OpenCaptionIcon as OpenCaptionIcon3,
16377
16419
  PeopleIcon,
16378
16420
  QuizActiveIcon,
16379
16421
  QuizIcon,
@@ -16392,8 +16434,8 @@ init_define_process_env();
16392
16434
 
16393
16435
  // ../../node_modules/reselect/es/index.js
16394
16436
  init_define_process_env();
16395
- function defaultEqualityCheck(a2, b2) {
16396
- return a2 === b2;
16437
+ function defaultEqualityCheck(a2, b) {
16438
+ return a2 === b;
16397
16439
  }
16398
16440
  function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
16399
16441
  if (prev === null || next === null || prev.length !== next.length) {
@@ -16470,8 +16512,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16470
16512
  // ../hms-video-store/dist/index.js
16471
16513
  var import_ua_parser_js = __toESM(require_ua_parser());
16472
16514
  var import_lodash3 = __toESM(require_lodash2());
16473
- import { v4 as Ka } from "uuid";
16474
- import { v4 as Wa } from "uuid";
16515
+ import { v4 as Qa } from "uuid";
16516
+ import { v4 as ja } from "uuid";
16475
16517
 
16476
16518
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16477
16519
  init_define_process_env();
@@ -16484,8 +16526,8 @@ init_define_process_env();
16484
16526
  var logDisabled_ = true;
16485
16527
  var deprecationWarnings_ = true;
16486
16528
  function extractVersion(uastring, expr, pos) {
16487
- const match16 = uastring.match(expr);
16488
- return match16 && match16.length >= pos && parseInt(match16[pos], 10);
16529
+ const match17 = uastring.match(expr);
16530
+ return match17 && match17.length >= pos && parseInt(match17[pos], 10);
16489
16531
  }
16490
16532
  function wrapPeerConnectionEvent(window2, eventNameToWrap, wrapper) {
16491
16533
  if (!window2.RTCPeerConnection) {
@@ -16761,9 +16803,9 @@ function shimGetUserMedia(window2, browserDetails) {
16761
16803
  }
16762
16804
  constraints = JSON.parse(JSON.stringify(constraints));
16763
16805
  if (constraints && typeof constraints.audio === "object") {
16764
- const remap = function(obj, a2, b2) {
16765
- if (a2 in obj && !(b2 in obj)) {
16766
- obj[b2] = obj[a2];
16806
+ const remap = function(obj, a2, b) {
16807
+ if (a2 in obj && !(b in obj)) {
16808
+ obj[b] = obj[a2];
16767
16809
  delete obj[a2];
16768
16810
  }
16769
16811
  };
@@ -16787,7 +16829,7 @@ function shimGetUserMedia(window2, browserDetails) {
16787
16829
  if (matches) {
16788
16830
  return navigator2.mediaDevices.enumerateDevices().then((devices) => {
16789
16831
  devices = devices.filter((d2) => d2.kind === "videoinput");
16790
- let dev = devices.find((d2) => matches.some((match16) => d2.label.toLowerCase().includes(match16)));
16832
+ let dev = devices.find((d2) => matches.some((match17) => d2.label.toLowerCase().includes(match17)));
16791
16833
  if (!dev && devices.length && matches.includes("back")) {
16792
16834
  dev = devices[devices.length - 1];
16793
16835
  }
@@ -16915,15 +16957,15 @@ function shimOnTrack(window2) {
16915
16957
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
16916
16958
  if (!this._ontrackpoly) {
16917
16959
  this._ontrackpoly = (e) => {
16918
- e.stream.addEventListener("addtrack", (te2) => {
16960
+ e.stream.addEventListener("addtrack", (te) => {
16919
16961
  let receiver;
16920
16962
  if (window2.RTCPeerConnection.prototype.getReceivers) {
16921
- receiver = this.getReceivers().find((r) => r.track && r.track.id === te2.track.id);
16963
+ receiver = this.getReceivers().find((r) => r.track && r.track.id === te.track.id);
16922
16964
  } else {
16923
- receiver = { track: te2.track };
16965
+ receiver = { track: te.track };
16924
16966
  }
16925
16967
  const event = new Event("track");
16926
- event.track = te2.track;
16968
+ event.track = te.track;
16927
16969
  event.receiver = receiver;
16928
16970
  event.transceiver = { receiver };
16929
16971
  event.streams = [e.stream];
@@ -17505,9 +17547,9 @@ function shimGetUserMedia2(window2, browserDetails) {
17505
17547
  navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
17506
17548
  };
17507
17549
  if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
17508
- const remap = function(obj, a2, b2) {
17509
- if (a2 in obj && !(b2 in obj)) {
17510
- obj[b2] = obj[a2];
17550
+ const remap = function(obj, a2, b) {
17551
+ if (a2 in obj && !(b in obj)) {
17552
+ obj[b] = obj[a2];
17511
17553
  delete obj[a2];
17512
17554
  }
17513
17555
  };
@@ -18214,11 +18256,11 @@ function shimMaxMessageSize(window2, browserDetails) {
18214
18256
  });
18215
18257
  };
18216
18258
  const getRemoteFirefoxVersion = function(description) {
18217
- const match16 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18218
- if (match16 === null || match16.length < 2) {
18259
+ const match17 = description.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
18260
+ if (match17 === null || match17.length < 2) {
18219
18261
  return -1;
18220
18262
  }
18221
- const version = parseInt(match16[1], 10);
18263
+ const version = parseInt(match17[1], 10);
18222
18264
  return version !== version ? -1 : version;
18223
18265
  };
18224
18266
  const getCanSendMaxMessageSize = function(remoteIsFirefox) {
@@ -18243,12 +18285,12 @@ function shimMaxMessageSize(window2, browserDetails) {
18243
18285
  if (browserDetails.browser === "firefox" && browserDetails.version === 57) {
18244
18286
  maxMessageSize = 65535;
18245
18287
  }
18246
- const match16 = import_sdp.default.matchPrefix(
18288
+ const match17 = import_sdp.default.matchPrefix(
18247
18289
  description.sdp,
18248
18290
  "a=max-message-size:"
18249
18291
  );
18250
- if (match16.length > 0) {
18251
- maxMessageSize = parseInt(match16[0].substring(19), 10);
18292
+ if (match17.length > 0) {
18293
+ maxMessageSize = parseInt(match17[0].substring(19), 10);
18252
18294
  } else if (browserDetails.browser === "firefox" && remoteIsFirefox !== -1) {
18253
18295
  maxMessageSize = 2147483637;
18254
18296
  }
@@ -18568,88 +18610,88 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18568
18610
 
18569
18611
  // ../hms-video-store/dist/index.js
18570
18612
  var import_lodash4 = __toESM(require_lodash2());
18571
- import { v4 as to } from "uuid";
18572
18613
  import { v4 as ao } from "uuid";
18573
18614
  import { v4 as lo } from "uuid";
18574
- import { EventEmitter2 as uo } from "eventemitter2";
18575
- var wt = __toESM(require_lib());
18576
- import { EventEmitter2 as Uo } from "eventemitter2";
18577
- import { v4 as Fo } from "uuid";
18615
+ import { v4 as mo } from "uuid";
18616
+ import { EventEmitter2 as So } from "eventemitter2";
18617
+ var _t = __toESM(require_lib());
18578
18618
  import { EventEmitter2 as Go } from "eventemitter2";
18579
- import Wo from "eventemitter2";
18580
- import { v4 as $o } from "uuid";
18581
- import { v4 as jo } from "uuid";
18582
- var Ca = Object.defineProperty;
18583
- var La = Object.defineProperties;
18584
- var Da = Object.getOwnPropertyDescriptors;
18585
- var Ft = Object.getOwnPropertySymbols;
18586
- var Kr = Object.prototype.hasOwnProperty;
18587
- var qr = Object.prototype.propertyIsEnumerable;
18588
- var $r = (a2, e, t) => e in a2 ? Ca(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18619
+ import { v4 as Ko } from "uuid";
18620
+ import { EventEmitter2 as qo } from "eventemitter2";
18621
+ import jo from "eventemitter2";
18622
+ import { v4 as Jo } from "uuid";
18623
+ import { v4 as Yo } from "uuid";
18624
+ var _a = Object.defineProperty;
18625
+ var Na = Object.defineProperties;
18626
+ var Oa = Object.getOwnPropertyDescriptors;
18627
+ var Wt = Object.getOwnPropertySymbols;
18628
+ var qr = Object.prototype.hasOwnProperty;
18629
+ var jr = Object.prototype.propertyIsEnumerable;
18630
+ var Kr = (a2, e, t) => e in a2 ? _a(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18589
18631
  var S = (a2, e) => {
18590
18632
  for (var t in e || (e = {}))
18591
- Kr.call(e, t) && $r(a2, t, e[t]);
18592
- if (Ft)
18593
- for (var t of Ft(e))
18594
- qr.call(e, t) && $r(a2, t, e[t]);
18633
+ qr.call(e, t) && Kr(a2, t, e[t]);
18634
+ if (Wt)
18635
+ for (var t of Wt(e))
18636
+ jr.call(e, t) && Kr(a2, t, e[t]);
18595
18637
  return a2;
18596
18638
  };
18597
- var M = (a2, e) => La(a2, Da(e));
18598
- var Zi = (a2, e) => {
18639
+ var v = (a2, e) => Na(a2, Oa(e));
18640
+ var er = (a2, e) => {
18599
18641
  var t = {};
18600
18642
  for (var i in a2)
18601
- Kr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18602
- if (a2 != null && Ft)
18603
- for (var i of Ft(a2))
18604
- e.indexOf(i) < 0 && qr.call(a2, i) && (t[i] = a2[i]);
18643
+ qr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18644
+ if (a2 != null && Wt)
18645
+ for (var i of Wt(a2))
18646
+ e.indexOf(i) < 0 && jr.call(a2, i) && (t[i] = a2[i]);
18605
18647
  return t;
18606
18648
  };
18607
- var Na = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18608
- var nr = Na((kc, $a) => {
18609
- $a.exports = { version: "0.12.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"] };
18649
+ var Ba = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18650
+ var cr = Ba((Ic, Ja) => {
18651
+ Ja.exports = { version: "0.12.12-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"] };
18610
18652
  });
18611
- var er = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(er || {});
18612
- var Oa = ((e) => (e.CHAT = "chat", e))(Oa || {});
18613
- var jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(jr || {});
18614
- var 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))(tr || {});
18615
- var Jr = ((t) => (t.audio = "audio", t.video = "video", t))(Jr || {});
18653
+ var tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(tr || {});
18654
+ var Va = ((e) => (e.CHAT = "chat", e))(Va || {});
18655
+ var Jr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Jr || {});
18656
+ var ir = ((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))(ir || {});
18657
+ var Qr = ((t) => (t.audio = "audio", t.video = "video", t))(Qr || {});
18616
18658
  function Ce(a2, e) {
18617
18659
  let t, i;
18618
18660
  if (e)
18619
18661
  for (let r of e.auxiliaryTracks) {
18620
18662
  let s = a2[r];
18621
- xa(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18663
+ Fa(s) && (i = it(s) ? s : i, t = rt(s) ? s : t);
18622
18664
  }
18623
18665
  return { video: t, audio: i };
18624
18666
  }
18625
- function tt(a2) {
18667
+ function it(a2) {
18626
18668
  return a2 && a2.type === "audio";
18627
18669
  }
18628
- function it(a2) {
18670
+ function rt(a2) {
18629
18671
  return a2 && a2.type === "video";
18630
18672
  }
18631
- function xa(a2) {
18673
+ function Fa(a2) {
18632
18674
  return a2 && a2.source === "screen";
18633
18675
  }
18634
- function $t(a2) {
18676
+ function qt(a2) {
18635
18677
  return a2 && a2.source === "audioplaylist";
18636
18678
  }
18637
- function rt(a2) {
18679
+ function st(a2) {
18638
18680
  return a2 && a2.source === "videoplaylist";
18639
18681
  }
18640
- function Qr(a2) {
18682
+ function zr(a2) {
18641
18683
  return a2 ? !!(a2 != null && a2.degraded) : false;
18642
18684
  }
18643
18685
  function Ue(a2, e) {
18644
18686
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
18645
18687
  }
18646
- function st(a2) {
18688
+ function at(a2) {
18647
18689
  var r;
18648
18690
  let e = false, t = false, i = false;
18649
18691
  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 };
18650
18692
  }
18651
- var Yr = ((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))(Yr || {});
18652
- var Ua = typeof window != "undefined" && typeof window.expect != "undefined";
18693
+ var Xr = ((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))(Xr || {});
18694
+ var Ga = typeof window != "undefined" && typeof window.expect != "undefined";
18653
18695
  var d = class {
18654
18696
  static v(e, ...t) {
18655
18697
  this.log(0, e, ...t);
@@ -18715,26 +18757,26 @@ var d = class {
18715
18757
  }
18716
18758
  }
18717
18759
  };
18718
- d.level = Ua ? 7 : 0;
18719
- var pe = new import_ua_parser_js.UAParser();
18760
+ d.level = Ga ? 7 : 0;
18761
+ var he = new import_ua_parser_js.UAParser();
18720
18762
  var N = typeof window != "undefined";
18721
- var Xr;
18722
- var Le = typeof window == "undefined" && !((Xr = pe.getBrowser().name) != null && Xr.toLowerCase().includes("electron"));
18723
- var Ba = () => !Le;
18724
- var xn = Ba();
18725
18763
  var Zr;
18764
+ var Le = typeof window == "undefined" && !((Zr = he.getBrowser().name) != null && Zr.toLowerCase().includes("electron"));
18765
+ var $a = () => !Le;
18766
+ var Fn = $a();
18726
18767
  var es;
18727
- var is = ((es = (Zr = pe.getBrowser()) == null ? void 0 : Zr.name) == null ? void 0 : es.toLowerCase()) === "firefox";
18728
- var rs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(rs || {});
18729
- function Fa() {
18768
+ var ts;
18769
+ var rs = ((ts = (es = he.getBrowser()) == null ? void 0 : es.name) == null ? void 0 : ts.toLowerCase()) === "firefox";
18770
+ var ss = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(ss || {});
18771
+ function Ka() {
18730
18772
  if (N && window) {
18731
18773
  let a2 = window.location.hostname;
18732
18774
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18733
18775
  }
18734
18776
  return "CUSTOM";
18735
18777
  }
18736
- var Be = Fa();
18737
- var y = { 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 } };
18778
+ var Ve = Ka();
18779
+ var M = { 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 } };
18738
18780
  var f = class a extends Error {
18739
18781
  constructor(t, i, r, s, o, n = false) {
18740
18782
  super(s);
@@ -18764,99 +18806,99 @@ var f = class a extends Error {
18764
18806
  }`;
18765
18807
  }
18766
18808
  };
18767
- var Ga = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18809
+ var qa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18768
18810
  var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18769
- return new f(y.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18811
+ return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18770
18812
  }, WebSocketConnectionLost(a2, e = "") {
18771
- return new f(y.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
18813
+ return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
18772
18814
  }, AbnormalClose(a2, e = "") {
18773
- return new f(y.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18815
+ return new f(M.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
18774
18816
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
18775
18817
  return new f(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
18776
18818
  }, EndpointUnreachable(a2, e = "") {
18777
- return new f(y.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18819
+ return new f(M.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
18778
18820
  }, InvalidTokenFormat(a2, e = "") {
18779
- return new f(y.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18821
+ return new f(M.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
18780
18822
  }, InitConfigNotAvailable(a2, e = "") {
18781
- return new f(y.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18823
+ return new f(M.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
18782
18824
  } }, TracksErrors: { GenericTrack(a2, e = "") {
18783
- return new f(y.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18825
+ return new f(M.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
18784
18826
  }, CantAccessCaptureDevice(a2, e, t = "") {
18785
- return new f(y.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
18827
+ return new f(M.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
18786
18828
  }, DeviceNotAvailable(a2, e, t = "") {
18787
- return new f(y.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18829
+ return new f(M.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
18788
18830
  }, DeviceInUse(a2, e, t = "") {
18789
- return new f(y.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
18831
+ return new f(M.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
18790
18832
  }, DeviceLostMidway(a2, e, t = "") {
18791
- return new f(y.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18833
+ return new f(M.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
18792
18834
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
18793
- return new f(y.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
18835
+ return new f(M.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
18794
18836
  }, InvalidVideoSettings(a2, e = "") {
18795
- return new f(y.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18837
+ return new f(M.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
18796
18838
  }, AutoplayBlocked(a2, e = "") {
18797
- return new f(y.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
18839
+ return new f(M.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
18798
18840
  }, CodecChangeNotPermitted(a2, e = "") {
18799
- return new f(y.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18841
+ return new f(M.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
18800
18842
  }, OverConstrained(a2, e, t = "") {
18801
- return new f(y.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
18843
+ return new f(M.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
18802
18844
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
18803
- return new f(y.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
18845
+ return new f(M.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
18804
18846
  }, SystemDeniedPermission(a2, e, t = "") {
18805
- return new f(y.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
18847
+ return new f(M.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
18806
18848
  }, CurrentTabNotShared() {
18807
- return new f(y.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");
18849
+ return new f(M.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");
18808
18850
  }, AudioPlaybackError(a2) {
18809
- return new f(y.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18851
+ return new f(M.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
18810
18852
  }, SelectedDeviceMissing(a2) {
18811
- return new f(y.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
18853
+ return new f(M.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
18812
18854
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
18813
- return new f(y.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18855
+ return new f(M.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
18814
18856
  }, CreateAnswerFailed(a2, e = "") {
18815
- return new f(y.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18857
+ return new f(M.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
18816
18858
  }, SetLocalDescriptionFailed(a2, e = "") {
18817
- return new f(y.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18859
+ return new f(M.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
18818
18860
  }, SetRemoteDescriptionFailed(a2, e = "") {
18819
- return new f(y.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18861
+ return new f(M.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
18820
18862
  }, ICEFailure(a2, e = "", t = false) {
18821
- return new f(y.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18863
+ return new f(M.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
18822
18864
  }, ICEDisconnected(a2, e = "") {
18823
- return new f(y.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18865
+ return new f(M.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
18824
18866
  }, StatsFailed(a2, e = "") {
18825
- return new f(y.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18867
+ return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18826
18868
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
18827
- return new f(a2, "ServerErrors", e, t, t, Ga.includes(e));
18869
+ return new f(a2, "ServerErrors", e, t, t, qa.includes(e));
18828
18870
  }, AlreadyJoined(a2, e = "") {
18829
- return new f(y.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18871
+ return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18830
18872
  }, CannotJoinPreviewInProgress(a2, e = "") {
18831
- return new f(y.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
18873
+ return new f(M.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
18832
18874
  } }, GenericErrors: { NotConnected(a2, e = "") {
18833
- return new f(y.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18875
+ return new f(M.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
18834
18876
  }, Signalling(a2, e) {
18835
- return new f(y.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18877
+ return new f(M.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
18836
18878
  }, Unknown(a2, e) {
18837
- return new f(y.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18879
+ return new f(M.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
18838
18880
  }, NotReady(a2, e = "") {
18839
- return new f(y.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18881
+ return new f(M.GenericErrors.NOT_READY, "NotReady", a2, e, e);
18840
18882
  }, JsonParsingFailed(a2, e, t = "") {
18841
- return new f(y.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18883
+ return new f(M.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
18842
18884
  }, TrackMetadataMissing(a2, e = "") {
18843
- return new f(y.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18885
+ return new f(M.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
18844
18886
  }, RTCTrackMissing(a2, e = "") {
18845
- return new f(y.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18887
+ return new f(M.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
18846
18888
  }, PeerMetadataMissing(a2, e = "") {
18847
- return new f(y.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18889
+ return new f(M.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
18848
18890
  }, ValidationFailed(a2, e) {
18849
- return new f(y.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18891
+ return new f(M.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
18850
18892
  }, InvalidRole(a2, e) {
18851
- return new f(y.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18893
+ return new f(M.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
18852
18894
  }, PreviewAlreadyInProgress(a2, e = "") {
18853
- return new f(y.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18895
+ return new f(M.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
18854
18896
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
18855
- return new f(y.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18897
+ return new f(M.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
18856
18898
  }, MissingMediaDevices() {
18857
- return new f(y.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);
18899
+ return new f(M.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);
18858
18900
  }, MissingRTCPeerConnection() {
18859
- return new f(y.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);
18901
+ return new f(M.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);
18860
18902
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
18861
18903
  return new f(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
18862
18904
  }, InitFailed(a2, e = "") {
@@ -18868,11 +18910,11 @@ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18868
18910
  }, DeviceNotSupported(a2, e = "") {
18869
18911
  return new f(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
18870
18912
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
18871
- return new f(y.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18913
+ return new f(M.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
18872
18914
  }, NoEntryPlaying(a2, e) {
18873
- return new f(y.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18915
+ return new f(M.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
18874
18916
  } } };
18875
- var sr = class {
18917
+ var ar = class {
18876
18918
  constructor() {
18877
18919
  this.valuesMap = /* @__PURE__ */ new Map();
18878
18920
  }
@@ -18897,9 +18939,9 @@ var sr = class {
18897
18939
  return this.valuesMap.size;
18898
18940
  }
18899
18941
  };
18900
- var ss = () => {
18942
+ var as = () => {
18901
18943
  try {
18902
- N && !localStorage && (window.localStorage = new sr());
18944
+ N && !localStorage && (window.localStorage = new ar());
18903
18945
  } catch (a2) {
18904
18946
  d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
18905
18947
  }
@@ -18911,7 +18953,7 @@ var ne = class {
18911
18953
  }
18912
18954
  getStorage() {
18913
18955
  try {
18914
- return N && !this.storage && (ss(), this.storage = window.localStorage), this.storage;
18956
+ return N && !this.storage && (as(), this.storage = window.localStorage), this.storage;
18915
18957
  } catch (e) {
18916
18958
  return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
18917
18959
  }
@@ -18931,37 +18973,37 @@ var ne = class {
18931
18973
  (e = this.getStorage()) == null || e.removeItem(this.key);
18932
18974
  }
18933
18975
  };
18934
- var as = () => {
18976
+ var os = () => {
18935
18977
  let a2, e = new ne("hms-analytics-deviceId"), t = e.get();
18936
- return t ? a2 = t : (a2 = Wa(), e.set(a2)), a2;
18978
+ return t ? a2 = t : (a2 = ja(), e.set(a2)), a2;
18937
18979
  };
18938
18980
  function re(a2) {
18939
18981
  return a2 != null;
18940
18982
  }
18941
- var ns = nr().version;
18942
- function at(a2 = "prod", e) {
18943
- let t = "web", i = Be !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18983
+ var cs = cr().version;
18984
+ function ot(a2 = "prod", e) {
18985
+ let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18944
18986
  if (Le)
18945
- return cs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: ns, env: i, domain: Be, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18946
- let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = cr(`web_${r.name}`), l = r.version || "", u = cr(`${o.name}_${o.version}`), p = u;
18947
- return s.type && (p = `${cr(`${s.vendor}_${s.type}`)}/${u}`), cs({ os: n, os_version: l, sdk: t, sdk_version: ns, device_model: p, env: i, domain: Be, 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 });
18987
+ return ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: cs, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18988
+ let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = dr(`web_${r.name}`), l = r.version || "", p = dr(`${o.name}_${o.version}`), u = p;
18989
+ return s.type && (u = `${dr(`${s.vendor}_${s.type}`)}/${p}`), ds({ os: n, os_version: l, sdk: t, sdk_version: cs, device_model: u, env: i, domain: Ve, 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 });
18948
18990
  }
18949
- function cr(a2) {
18991
+ function dr(a2) {
18950
18992
  return a2.replace(/ /g, "_");
18951
18993
  }
18952
- var cs = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18994
+ var ds = (a2, e = ",") => Object.keys(a2).filter((t) => re(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18953
18995
  var C = class {
18954
18996
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
18955
- this.metadata = { peer: {}, userAgent: at() };
18956
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Ka(), this.device_id = as();
18997
+ this.metadata = { peer: {}, userAgent: ot() };
18998
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = Qa(), this.device_id = os();
18957
18999
  }
18958
19000
  toSignalParams() {
18959
- return { name: this.name, info: M(S({}, this.properties), { timestamp: this.timestamp, domain: Be }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
19001
+ return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18960
19002
  }
18961
19003
  };
18962
- var k = class {
19004
+ var P3 = class {
18963
19005
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
18964
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(M(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19006
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
18965
19007
  return new C({ name: o, level: n, properties: l });
18966
19008
  }
18967
19009
  static disconnect(e, t) {
@@ -18969,13 +19011,13 @@ var k = class {
18969
19011
  return new C({ name: i, level: r, properties: s });
18970
19012
  }
18971
19013
  static preview(i) {
18972
- var r = i, { error: e } = r, t = Zi(r, ["error"]);
19014
+ var r = i, { error: e } = r, t = er(r, ["error"]);
18973
19015
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
18974
19016
  return new C({ name: s, level: o, properties: n });
18975
19017
  }
18976
19018
  static join(i) {
18977
- var r = i, { error: e } = r, t = Zi(r, ["error"]);
18978
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19019
+ var r = i, { error: e } = r, t = er(r, ["error"]);
19020
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
18979
19021
  return new C({ name: s, level: o, properties: n });
18980
19022
  }
18981
19023
  static publish({ devices: e, settings: t, error: i }) {
@@ -19018,7 +19060,7 @@ var k = class {
19018
19060
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19019
19061
  if (!t && e.degradedAt instanceof Date) {
19020
19062
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19021
- s = M(S({}, s), { duration: n, restoredAt: o });
19063
+ s = v(S({}, s), { duration: n, restoredAt: o });
19022
19064
  }
19023
19065
  return new C({ name: i, level: r, properties: s });
19024
19066
  }
@@ -19049,8 +19091,8 @@ var k = class {
19049
19091
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19050
19092
  }
19051
19093
  };
19052
- k.KEY_REQUESTED_AT = "requested_at", k.KEY_RESPONDED_AT = "responded_at";
19053
- var dr = class {
19094
+ P3.KEY_REQUESTED_AT = "requested_at", P3.KEY_RESPONDED_AT = "responded_at";
19095
+ var lr = class {
19054
19096
  constructor() {
19055
19097
  this.storage = new ne("hms-device-selection");
19056
19098
  this.remember = false;
@@ -19084,10 +19126,10 @@ var dr = class {
19084
19126
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19085
19127
  }
19086
19128
  };
19087
- var q = new dr();
19088
- var lr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(lr || {});
19089
- var ur = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(ur || {});
19090
- function jt(a2, e = 300) {
19129
+ var j = new lr();
19130
+ var ur = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(ur || {});
19131
+ var pr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(pr || {});
19132
+ function Qt(a2, e = 300) {
19091
19133
  let t;
19092
19134
  return function(...i) {
19093
19135
  clearTimeout(t), t = void 0;
@@ -19097,14 +19139,14 @@ function jt(a2, e = 300) {
19097
19139
  }, e);
19098
19140
  };
19099
19141
  }
19100
- var pr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(pr || {});
19101
- var ms = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(ms || {});
19102
- var Ss = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ss || {});
19103
- var gs = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(gs || {});
19104
- var Ts = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Ts || {});
19105
- var fs = ((e) => (e.CAPTION = "caption", e))(fs || {});
19106
- var vs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(vs || {});
19107
- var hr = class {
19142
+ var hr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(hr || {});
19143
+ var Ss = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ss || {});
19144
+ var gs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(gs || {});
19145
+ var Ts = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Ts || {});
19146
+ var fs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(fs || {});
19147
+ var vs = ((e) => (e.CAPTION = "caption", e))(vs || {});
19148
+ var Ms = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ms || {});
19149
+ var mr = class {
19108
19150
  constructor() {
19109
19151
  this.TAG = "[HMSIntersectionObserverWrapper]";
19110
19152
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19131,8 +19173,8 @@ var hr = class {
19131
19173
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19132
19174
  }
19133
19175
  };
19134
- var Ps = new hr();
19135
- var mr = class {
19176
+ var ks = new mr();
19177
+ var Sr = class {
19136
19178
  constructor() {
19137
19179
  this.TAG = "[HMSResizeObserverWrapper]";
19138
19180
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19145,7 +19187,7 @@ var mr = class {
19145
19187
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
19146
19188
  };
19147
19189
  this.createObserver = () => {
19148
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(jt(this.handleResize, 300)));
19190
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
19149
19191
  };
19150
19192
  this.handleResize = (e) => {
19151
19193
  var t;
@@ -19159,43 +19201,43 @@ var mr = class {
19159
19201
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19160
19202
  }
19161
19203
  };
19162
- var Es = new mr();
19163
- var Sr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Sr || {});
19164
- var gr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(gr || {});
19165
- var Is = "https://event.100ms.live/v2/client/report";
19166
- var Rs = "https://event-nonprod.100ms.live/v2/client/report";
19167
- var ut = Math.pow(2, 31) - 1;
19204
+ var As = new Sr();
19205
+ var gr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(gr || {});
19206
+ var Tr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Tr || {});
19207
+ var bs = "https://event.100ms.live/v2/client/report";
19208
+ var Hs = "https://event-nonprod.100ms.live/v2/client/report";
19209
+ var pt = Math.pow(2, 31) - 1;
19168
19210
  var Qe = class {
19169
19211
  };
19170
- Qe.makePeerId = () => lo();
19171
- var x = (a2) => a2.room;
19172
- var po = (a2) => a2.errors;
19173
- var Eh = createSelector(po, (a2) => a2.length === 0 ? null : a2.at(-1));
19174
- var Ah = createSelector(x, (a2) => a2.id);
19175
- var G = (a2) => a2.peers;
19176
- var ai = (a2) => a2.messages.byID;
19177
- var xs = (a2) => a2.messages.allIDs;
19178
- var w = (a2) => a2.tracks;
19179
- var br = (a2) => a2.appData;
19180
- var ho = (a2) => a2.speakers;
19181
- var He = createSelector([x], (a2) => a2 && a2.isConnected);
19182
- var Rh = createSelector([He, x], (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));
19183
- var mo = (a2) => a2.hideLocalPeer;
19184
- var le = createSelector([x, G, mo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19185
- var So = createSelector(w, (a2) => Object.values(a2));
19186
- var z = createSelector(x, G, (a2, e) => e[a2.localPeer]);
19187
- var fe = createSelector(x, (a2) => a2.localPeer);
19188
- var Hh = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
19189
- var Ch = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
19190
- var te = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
19191
- var j = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
19192
- var go = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19193
- var Vs = createSelector([te, j, go], (a2, e, t) => {
19212
+ Qe.makePeerId = () => mo();
19213
+ var U = (a2) => a2.room;
19214
+ var go = (a2) => a2.errors;
19215
+ var bh = createSelector(go, (a2) => a2.length === 0 ? null : a2.at(-1));
19216
+ var Hh = createSelector(U, (a2) => a2.id);
19217
+ var W = (a2) => a2.peers;
19218
+ var ni = (a2) => a2.messages.byID;
19219
+ var Us = (a2) => a2.messages.allIDs;
19220
+ var _ = (a2) => a2.tracks;
19221
+ var Rr = (a2) => a2.appData;
19222
+ var To = (a2) => a2.speakers;
19223
+ var He = createSelector([U], (a2) => a2 && a2.isConnected);
19224
+ var Dh = createSelector([He, U], (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));
19225
+ var fo = (a2) => a2.hideLocalPeer;
19226
+ var ue = createSelector([U, W, fo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
19227
+ var vo = createSelector(_, (a2) => Object.values(a2));
19228
+ var Y = createSelector(U, W, (a2, e) => e[a2.localPeer]);
19229
+ var fe = createSelector(U, (a2) => a2.localPeer);
19230
+ var wh = createSelector(Y, (a2) => a2 == null ? void 0 : a2.name);
19231
+ var _h = createSelector(Y, (a2) => a2 == null ? void 0 : a2.roleName);
19232
+ var ie = createSelector(Y, (a2) => a2 == null ? void 0 : a2.audioTrack);
19233
+ var J = createSelector(Y, (a2) => a2 == null ? void 0 : a2.videoTrack);
19234
+ var Mo = createSelector(Y, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
19235
+ var Vs = createSelector([ie, J, Mo], (a2, e, t) => {
19194
19236
  let i = t ? [...t] : [];
19195
19237
  return a2 && i.unshift(a2), e && i.unshift(e), i;
19196
19238
  });
19197
- var Lh = createSelector(le, (a2) => a2.filter((e) => !e.isLocal));
19198
- var Dh = createSelector(G, ho, (a2, e) => {
19239
+ var Nh = createSelector(ue, (a2) => a2.filter((e) => !e.isLocal));
19240
+ var Oh = createSelector(W, To, (a2, e) => {
19199
19241
  let t = Object.entries(e).sort((i, r) => {
19200
19242
  var n, l;
19201
19243
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -19208,11 +19250,11 @@ var Dh = createSelector(G, ho, (a2, e) => {
19208
19250
  }
19209
19251
  return null;
19210
19252
  });
19211
- var Rr = createSelector(z, w, (a2, e) => {
19253
+ var Hr = createSelector(Y, _, (a2, e) => {
19212
19254
  let { video: t, audio: i } = Ce(e, a2);
19213
19255
  return !!(t || i);
19214
19256
  });
19215
- var To = createSelector(G, w, (a2, e) => {
19257
+ var yo = createSelector(W, _, (a2, e) => {
19216
19258
  let t;
19217
19259
  for (let i in a2) {
19218
19260
  let r = a2[i], { video: s, audio: o } = Ce(e, r);
@@ -19222,15 +19264,15 @@ var To = createSelector(G, w, (a2, e) => {
19222
19264
  }
19223
19265
  return t;
19224
19266
  });
19225
- var _h = createSelector(To, (a2) => !!a2);
19226
- var Nh = createSelector(G, w, (a2, e) => {
19267
+ var Uh = createSelector(yo, (a2) => !!a2);
19268
+ var Bh = createSelector(W, _, (a2, e) => {
19227
19269
  for (let t in a2) {
19228
19270
  let i = a2[t], { audio: r, video: s } = Ce(e, i);
19229
19271
  if (!s && r)
19230
19272
  return i;
19231
19273
  }
19232
19274
  });
19233
- var Oh = createSelector(G, w, (a2, e) => {
19275
+ var Vh = createSelector(W, _, (a2, e) => {
19234
19276
  let t = [], i = [];
19235
19277
  for (let r in a2) {
19236
19278
  let s = a2[r], { video: o, audio: n } = Ce(e, s);
@@ -19238,82 +19280,82 @@ var Oh = createSelector(G, w, (a2, e) => {
19238
19280
  }
19239
19281
  return t.concat(i);
19240
19282
  });
19241
- var xh = createSelector(G, w, (a2, e) => {
19283
+ var Fh = createSelector(W, _, (a2, e) => {
19242
19284
  for (let t in e) {
19243
19285
  let i = e[t];
19244
- if (rt(i) && it(i) && i.peerId)
19286
+ if (st(i) && rt(i) && i.peerId)
19245
19287
  return a2[i.peerId];
19246
19288
  }
19247
19289
  });
19248
- var Uh = createSelector(G, w, (a2, e) => {
19290
+ var Gh = createSelector(W, _, (a2, e) => {
19249
19291
  for (let t in e) {
19250
19292
  let i = e[t];
19251
- if ($t(i) && i.peerId)
19293
+ if (qt(i) && i.peerId)
19252
19294
  return a2[i.peerId];
19253
19295
  }
19254
19296
  });
19255
- var Vh = createSelector(So, (a2) => a2.filter(Qr));
19256
- var Bh = createSelector(xs, (a2) => a2.length);
19257
- var Fh = createSelector(ai, (a2) => Object.values(a2).filter((e) => !e.read).length);
19258
- var St = createSelector(xs, ai, (a2, e) => {
19297
+ var Wh = createSelector(vo, (a2) => a2.filter(zr));
19298
+ var $h = createSelector(Us, (a2) => a2.length);
19299
+ var Kh = createSelector(ni, (a2) => Object.values(a2).filter((e) => !e.read).length);
19300
+ var gt = createSelector(Us, ni, (a2, e) => {
19259
19301
  let t = [];
19260
19302
  return a2.forEach((i) => {
19261
19303
  t.push(e[i]);
19262
19304
  }), t;
19263
19305
  });
19264
- var fo = createSelector(St, (a2) => a2.filter((e) => {
19306
+ var Po = createSelector(gt, (a2) => a2.filter((e) => {
19265
19307
  var t;
19266
19308
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
19267
19309
  }));
19268
- var Gh = createSelector(fo, (a2) => a2.filter((e) => !e.read).length);
19269
- var Y = createSelector([x], (a2) => a2 && a2.roomState);
19270
- var Fs = createSelector(Y, (a2) => a2 === "Preview");
19271
- var Wh = createSelector(x, (a2) => a2.roomState !== "Disconnected");
19272
- var $h = createSelector(x, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19273
- var ue = (a2) => a2.roles;
19274
- var Kh = createSelector([ue], (a2) => Object.keys(a2));
19275
- var oi = createSelector([z, ue], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19276
- var vo = (a2) => {
19310
+ var qh = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19311
+ var X = createSelector([U], (a2) => a2 && a2.roomState);
19312
+ var Gs = createSelector(X, (a2) => a2 === "Preview");
19313
+ var jh = createSelector(U, (a2) => a2.roomState !== "Disconnected");
19314
+ var Jh = createSelector(U, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
19315
+ var pe = (a2) => a2.roles;
19316
+ var Qh = createSelector([pe], (a2) => Object.keys(a2));
19317
+ var Ye = createSelector([Y, pe], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
19318
+ var Eo = (a2) => {
19277
19319
  var e;
19278
19320
  return (e = a2.preview) == null ? void 0 : e.asRole;
19279
19321
  };
19280
- var Gs = createSelector([vo, ue], (a2, e) => a2 ? e[a2] : null);
19281
- var qh = createSelector([oi], (a2) => {
19322
+ var Ws = createSelector([Eo, pe], (a2, e) => a2 ? e[a2] : null);
19323
+ var zh = createSelector([Ye], (a2) => {
19282
19324
  var e;
19283
19325
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
19284
19326
  });
19285
- var Ws = createSelector(oi, (a2) => a2 == null ? void 0 : a2.permissions);
19286
- var jh = createSelector(x, (a2) => a2.recording);
19287
- var Jh = createSelector(x, (a2) => a2.rtmp);
19288
- var Qh = createSelector(x, (a2) => a2.hls);
19289
- var zh = createSelector(x, (a2) => a2.transcriptions);
19290
- var Yh = createSelector(x, (a2) => a2.sessionId);
19291
- var Xh = createSelector(x, (a2) => a2.startedAt);
19292
- var Zh = createSelector(x, (a2) => !!a2.isLargeRoom);
19293
- var em = createSelector(x, (a2) => !!a2.isEffectsEnabled);
19294
- var tm = createSelector(x, (a2) => a2.effectsKey);
19295
- var $s = (a2) => a2.polls;
19296
- var am = createSelector(le, (a2) => a2.filter((e) => e.isHandRaised));
19297
- var Mo = (a2) => a2.whiteboards;
19298
- var om = createSelector(Mo, (a2) => Object.values(a2)[0]);
19299
- var qs = (a2 = "audio") => (e) => e.playlist[a2].list;
19300
- var Hr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19301
- var js = (a2 = "audio") => (e) => e.playlist[a2].progress;
19302
- var Js = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19303
- var Qs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19304
- var zs = (a2 = "audio") => (e) => e.playlist[a2].volume;
19305
- var Ys = (a2 = "audio") => createSelector(qs(a2), (e) => Object.values(e));
19306
- var Xs = (a2 = "audio") => createSelector(qs(a2), Hr(a2), (e, t) => {
19327
+ var $s = createSelector(Ye, (a2) => a2 == null ? void 0 : a2.permissions);
19328
+ var Yh = createSelector(U, (a2) => a2.recording);
19329
+ var Xh = createSelector(U, (a2) => a2.rtmp);
19330
+ var Zh = createSelector(U, (a2) => a2.hls);
19331
+ var em = createSelector(U, (a2) => a2.transcriptions);
19332
+ var tm = createSelector(U, (a2) => a2.sessionId);
19333
+ var im = createSelector(U, (a2) => a2.startedAt);
19334
+ var rm = createSelector(U, (a2) => !!a2.isLargeRoom);
19335
+ var sm = createSelector(U, (a2) => !!a2.isEffectsEnabled);
19336
+ var am = createSelector(U, (a2) => a2.effectsKey);
19337
+ var Ks = (a2) => a2.polls;
19338
+ var dm = createSelector(ue, (a2) => a2.filter((e) => e.isHandRaised));
19339
+ var ko = (a2) => a2.whiteboards;
19340
+ var lm = createSelector(ko, (a2) => Object.values(a2)[0]);
19341
+ var js = (a2 = "audio") => (e) => e.playlist[a2].list;
19342
+ var Cr = (a2 = "audio") => (e) => e.playlist[a2].selection;
19343
+ var Js = (a2 = "audio") => (e) => e.playlist[a2].progress;
19344
+ var Qs = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
19345
+ var zs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
19346
+ var Ys = (a2 = "audio") => (e) => e.playlist[a2].volume;
19347
+ var Xs = (a2 = "audio") => createSelector(js(a2), (e) => Object.values(e));
19348
+ var Zs = (a2 = "audio") => createSelector(js(a2), Cr(a2), (e, t) => {
19307
19349
  if (t.id)
19308
19350
  return e[t.id];
19309
19351
  });
19310
- var Zs = { selection: Hr("audio"), progress: js("audio"), currentTime: Js("audio"), playbackRate: Qs("audio"), volume: zs("audio"), list: Ys("audio"), selectedItem: Xs("audio") };
19311
- var ea = { selection: Hr("video"), progress: js("video"), currentTime: Js("video"), playbackRate: Qs("video"), volume: zs("video"), list: Ys("video"), selectedItem: Xs("video") };
19312
- function b(a2) {
19352
+ var ea = { selection: Cr("audio"), progress: Js("audio"), currentTime: Qs("audio"), playbackRate: zs("audio"), volume: Ys("audio"), list: Xs("audio"), selectedItem: Zs("audio") };
19353
+ var ta = { selection: Cr("video"), progress: Js("video"), currentTime: Qs("video"), playbackRate: zs("video"), volume: Ys("video"), list: Xs("video"), selectedItem: Zs("video") };
19354
+ function R(a2) {
19313
19355
  return (e) => (t) => a2(t, e);
19314
19356
  }
19315
- var gt = "HMS-Store:";
19316
- var P3 = class {
19357
+ var Tt = "HMS-Store:";
19358
+ var E = class {
19317
19359
  static v(e, ...t) {
19318
19360
  this.log(0, e, ...t);
19319
19361
  }
@@ -19342,23 +19384,23 @@ var P3 = class {
19342
19384
  if (!(this.level.valueOf() > e.valueOf()))
19343
19385
  switch (e) {
19344
19386
  case 0: {
19345
- console.log(gt, ...t);
19387
+ console.log(Tt, ...t);
19346
19388
  break;
19347
19389
  }
19348
19390
  case 1: {
19349
- console.debug(gt, ...t);
19391
+ console.debug(Tt, ...t);
19350
19392
  break;
19351
19393
  }
19352
19394
  case 2: {
19353
- console.info(gt, ...t);
19395
+ console.info(Tt, ...t);
19354
19396
  break;
19355
19397
  }
19356
19398
  case 3: {
19357
- console.warn(gt, ...t);
19399
+ console.warn(Tt, ...t);
19358
19400
  break;
19359
19401
  }
19360
19402
  case 6: {
19361
- console.error(gt, ...t);
19403
+ console.error(Tt, ...t);
19362
19404
  break;
19363
19405
  }
19364
19406
  case 4: {
@@ -19378,203 +19420,203 @@ var P3 = class {
19378
19420
  }
19379
19421
  }
19380
19422
  };
19381
- P3.level = 0;
19382
- var Cr = (a2, e) => e;
19383
- var Tt = (a2, e) => e;
19384
- var ta = (a2, e) => e;
19385
- var yo = (a2, e) => e;
19386
- var ko = (a2, e) => e;
19387
- var W = createSelector([G, Cr], (a2, e) => e ? a2[e] : null);
19388
- var Lr = createSelector([w, Tt], (a2, e) => e ? a2[e] : null);
19389
- var Po = createSelector([w, Tt], (a2, e) => {
19423
+ E.level = 0;
19424
+ var Lr = (a2, e) => e;
19425
+ var ft = (a2, e) => e;
19426
+ var ia = (a2, e) => e;
19427
+ var Ao = (a2, e) => e;
19428
+ var Io = (a2, e) => e;
19429
+ var $ = createSelector([W, Lr], (a2, e) => e ? a2[e] : null);
19430
+ var Dr = createSelector([_, ft], (a2, e) => e ? a2[e] : null);
19431
+ var Ro = createSelector([_, ft], (a2, e) => {
19390
19432
  if (!e)
19391
19433
  return null;
19392
19434
  let t = a2[e];
19393
19435
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19394
19436
  });
19395
- var Eo = createSelector([w, Tt], (a2, e) => {
19437
+ var bo = createSelector([_, ft], (a2, e) => {
19396
19438
  if (!e)
19397
19439
  return null;
19398
19440
  let t = a2[e];
19399
19441
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19400
19442
  });
19401
- var Ao = createSelector([w, Tt], (a2, e) => {
19443
+ var Ho = createSelector([_, ft], (a2, e) => {
19402
19444
  if (!e)
19403
19445
  return null;
19404
19446
  let t = a2[e];
19405
19447
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19406
19448
  });
19407
- var bo = createSelector([w, Tt], (a2, e) => {
19449
+ var Co = createSelector([_, ft], (a2, e) => {
19408
19450
  if (!e)
19409
19451
  return null;
19410
19452
  let t = a2[e];
19411
19453
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19412
19454
  });
19413
- var Io = createSelector([$s, ko], (a2, e) => e ? a2[e] : null);
19414
- var J = b(W);
19415
- var Tm = b(createSelector([br, yo], (a2, e) => {
19455
+ var Lo = createSelector([Ks, Io], (a2, e) => e ? a2[e] : null);
19456
+ var Q = R($);
19457
+ var ym = R(createSelector([Rr, Ao], (a2, e) => {
19416
19458
  if (a2)
19417
19459
  return e ? a2[e] : a2;
19418
19460
  }));
19419
- function fm(a2) {
19461
+ function Pm(a2) {
19420
19462
  return (e) => {
19421
19463
  if (e.sessionStore)
19422
19464
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19423
19465
  };
19424
19466
  }
19425
- var Mm = b(createSelector(W, (a2) => a2 == null ? void 0 : a2.name));
19426
- var ym = b(createSelector(W, (a2) => a2 == null ? void 0 : a2.type));
19427
- var ni = b(Lr);
19428
- var ia = b(Po);
19429
- var km = b(Eo);
19430
- var Pm = b(Ao);
19431
- var Em = b(bo);
19432
- var Ro = b((a2, e) => {
19433
- let t = W(a2, e);
19467
+ var km = R(createSelector($, (a2) => a2 == null ? void 0 : a2.name));
19468
+ var Am = R(createSelector($, (a2) => a2 == null ? void 0 : a2.type));
19469
+ var ci = R(Dr);
19470
+ var ra = R(Ro);
19471
+ var Im = R(bo);
19472
+ var Rm = R(Ho);
19473
+ var bm = R(Co);
19474
+ var Do = R((a2, e) => {
19475
+ let t = $(a2, e);
19434
19476
  if (t && t.videoTrack && t.videoTrack !== "")
19435
19477
  return a2.tracks[t.videoTrack];
19436
19478
  });
19437
- var Ho = b((a2, e) => {
19438
- let t = W(a2, e);
19479
+ var wo = R((a2, e) => {
19480
+ let t = $(a2, e);
19439
19481
  if (t && t.audioTrack && t.audioTrack !== "")
19440
19482
  return a2.tracks[t.audioTrack];
19441
19483
  });
19442
- var bm = b((a2, e) => {
19443
- let t = W(a2, e);
19484
+ var Cm = R((a2, e) => {
19485
+ let t = $(a2, e);
19444
19486
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19445
19487
  });
19446
- var ra = (a2, e) => e ? a2.speakers[e] : null;
19447
- var Im = b(createSelector(ra, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19448
- var Co = (a2, e) => {
19449
- let t = Ho(e)(a2);
19450
- return ra(a2, t == null ? void 0 : t.id);
19451
- };
19452
- var Rm = b(createSelector(Co, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19453
- var Hm = b((a2, e) => {
19488
+ var sa = (a2, e) => e ? a2.speakers[e] : null;
19489
+ var Lm = R(createSelector(sa, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19490
+ var _o = (a2, e) => {
19491
+ let t = wo(e)(a2);
19492
+ return sa(a2, t == null ? void 0 : t.id);
19493
+ };
19494
+ var Dm = R(createSelector(_o, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19495
+ var wm = R((a2, e) => {
19454
19496
  if (e)
19455
19497
  return a2.connectionQualities[e];
19456
19498
  });
19457
- var Cm = b((a2, e) => {
19458
- let t = W(a2, e);
19499
+ var _m = R((a2, e) => {
19500
+ let t = $(a2, e);
19459
19501
  if (t) {
19460
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19502
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => it(a2.tracks[r]));
19461
19503
  return i ? a2.tracks[i] : void 0;
19462
19504
  }
19463
19505
  });
19464
- var Lm = b(createSelector(w, W, (a2, e) => {
19506
+ var Nm = R(createSelector(_, $, (a2, e) => {
19465
19507
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19466
19508
  let r = a2[i];
19467
- return rt(r) && it(r);
19509
+ return st(r) && rt(r);
19468
19510
  });
19469
19511
  return t ? a2[t] : void 0;
19470
19512
  }));
19471
- var Dm = b(createSelector(w, W, (a2, e) => {
19513
+ var Om = R(createSelector(_, $, (a2, e) => {
19472
19514
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19473
19515
  let r = a2[i];
19474
- return rt(r) && tt(r);
19516
+ return st(r) && it(r);
19475
19517
  });
19476
19518
  return t ? a2[t] : void 0;
19477
19519
  }));
19478
- var wm = b(createSelector(w, W, (a2, e) => {
19520
+ var xm = R(createSelector(_, $, (a2, e) => {
19479
19521
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19480
19522
  let r = a2[i];
19481
- return $t(r) && tt(r);
19523
+ return qt(r) && it(r);
19482
19524
  });
19483
19525
  return t ? a2[t] : void 0;
19484
19526
  }));
19485
- var sa = b(createSelector(w, W, (a2, e) => Ce(a2, e)));
19486
- var aa = (a2) => createSelector(sa(a2), (e) => e.audio);
19487
- var Nm = b((a2, e) => {
19488
- let t = W(a2, e);
19527
+ var aa = R(createSelector(_, $, (a2, e) => Ce(a2, e)));
19528
+ var oa = (a2) => createSelector(aa(a2), (e) => e.audio);
19529
+ var Bm = R((a2, e) => {
19530
+ let t = $(a2, e);
19489
19531
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19490
19532
  });
19491
- var Om = b((a2, e) => {
19492
- let t = W(a2, e);
19533
+ var Vm = R((a2, e) => {
19534
+ let t = $(a2, e);
19493
19535
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19494
19536
  });
19495
- var oa = b((a2, e) => {
19537
+ var na = R((a2, e) => {
19496
19538
  if (e && a2.tracks[e])
19497
19539
  return a2.tracks[e].volume === 0;
19498
19540
  });
19499
- var xm = b((a2, e) => {
19500
- let t = W(a2, e);
19501
- return oa(t == null ? void 0 : t.audioTrack)(a2);
19541
+ var Fm = R((a2, e) => {
19542
+ let t = $(a2, e);
19543
+ return na(t == null ? void 0 : t.audioTrack)(a2);
19502
19544
  });
19503
- var Um = b((a2, e) => {
19504
- let t = aa(e)(a2);
19505
- return oa(t == null ? void 0 : t.id)(a2);
19545
+ var Gm = R((a2, e) => {
19546
+ let t = oa(e)(a2);
19547
+ return na(t == null ? void 0 : t.id)(a2);
19506
19548
  });
19507
- var na = b((a2, e) => {
19508
- let t = Lr(a2, e);
19549
+ var ca = R((a2, e) => {
19550
+ let t = Dr(a2, e);
19509
19551
  if (t) {
19510
19552
  if (t.type !== "audio") {
19511
- P3.w("Please pass audio track here");
19553
+ E.w("Please pass audio track here");
19512
19554
  return;
19513
19555
  }
19514
19556
  return t.volume;
19515
19557
  }
19516
19558
  });
19517
- var Vm = b((a2, e) => {
19518
- let t = W(a2, e);
19519
- return na(t == null ? void 0 : t.audioTrack)(a2);
19559
+ var Wm = R((a2, e) => {
19560
+ let t = $(a2, e);
19561
+ return ca(t == null ? void 0 : t.audioTrack)(a2);
19520
19562
  });
19521
- var Bm = b((a2, e) => {
19522
- let t = aa(e)(a2);
19523
- return na(t == null ? void 0 : t.id)(a2);
19563
+ var $m = R((a2, e) => {
19564
+ let t = oa(e)(a2);
19565
+ return ca(t == null ? void 0 : t.id)(a2);
19524
19566
  });
19525
- var Fm = b((a2, e) => {
19526
- let t = Lr(a2, e);
19567
+ var Km = R((a2, e) => {
19568
+ let t = Dr(a2, e);
19527
19569
  if (t) {
19528
19570
  if (t.type !== "video") {
19529
- P3.w("Please pass video track here");
19571
+ E.w("Please pass video track here");
19530
19572
  return;
19531
19573
  }
19532
19574
  return t.layer;
19533
19575
  }
19534
19576
  });
19535
- var ca = createSelector([St, fe, Cr], (a2, e, t) => {
19577
+ var da = createSelector([gt, fe, Lr], (a2, e, t) => {
19536
19578
  if (t)
19537
19579
  return a2.filter((i) => {
19538
19580
  var r;
19539
19581
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19540
19582
  });
19541
19583
  });
19542
- var da = createSelector([St, ta], (a2, e) => {
19584
+ var la = createSelector([gt, ia], (a2, e) => {
19543
19585
  if (e)
19544
19586
  return a2.filter((t) => {
19545
19587
  var i, r;
19546
19588
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19547
19589
  });
19548
19590
  });
19549
- var Lo = createSelector(St, (a2) => a2.filter((e) => {
19591
+ var No = createSelector(gt, (a2) => a2.filter((e) => {
19550
19592
  var t;
19551
19593
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19552
19594
  }));
19553
- var Do = createSelector([da, ta], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19554
- var wo = createSelector([ca, Cr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19555
- var Gm = createSelector(Lo, (a2) => a2.filter((e) => !e.read).length);
19556
- var Wm = b(ca);
19557
- var $m = b(da);
19558
- var Km = b(Do);
19559
- var qm = b(wo);
19560
- var la = b(Io);
19561
- var rS = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
19595
+ var Oo = createSelector([la, ia], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19596
+ var xo = createSelector([da, Lr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19597
+ var qm = createSelector(No, (a2) => a2.filter((e) => !e.read).length);
19598
+ var jm = R(da);
19599
+ var Jm = R(la);
19600
+ var Qm = R(Oo);
19601
+ var zm = R(xo);
19602
+ var ua = R(Lo);
19603
+ var cS = createSelector([W, _], (a2, e) => Object.values(a2).map((i) => {
19562
19604
  var r;
19563
19605
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19564
19606
  }));
19565
- var _o = (a2) => a2.roleChangeRequests[0] || null;
19566
- var sS = createSelector([_o, G, ue], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19567
- var aS = createSelector([oi], (a2) => st(a2));
19568
- var oS = createSelector([Gs], (a2) => st(a2));
19569
- var Oo = createSelector([j, w], (a2, e) => {
19607
+ var Uo = (a2) => a2.roleChangeRequests[0] || null;
19608
+ var dS = createSelector([Uo, W, pe], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19609
+ var lS = createSelector([Ye], (a2) => at(a2));
19610
+ var uS = createSelector([Ws], (a2) => at(a2));
19611
+ var Vo = createSelector([J, _], (a2, e) => {
19570
19612
  let t = null;
19571
19613
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19572
19614
  });
19573
- var xo = createSelector([te, w], (a2, e) => {
19615
+ var Fo = createSelector([ie, _], (a2, e) => {
19574
19616
  let t = null;
19575
19617
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19576
19618
  });
19577
- var Or = class {
19619
+ var xr = class {
19578
19620
  constructor() {
19579
19621
  this.TAG = "[HTTPAnalyticsTransport]";
19580
19622
  this.failedEvents = new ne("client-events");
@@ -19593,7 +19635,7 @@ var Or = class {
19593
19635
  this.addEventToStorage(e);
19594
19636
  return;
19595
19637
  }
19596
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Is : Rs;
19638
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? bs : Hs;
19597
19639
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
19598
19640
  if (r.status === 401) {
19599
19641
  this.removeFromStorage(e);
@@ -19619,66 +19661,66 @@ var Or = class {
19619
19661
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19620
19662
  }
19621
19663
  };
19622
- var Me = new Or();
19623
- var $ = ((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))($ || {});
19624
- var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
19625
- var Qi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Qi || {});
19626
- var sn = (a2) => a2.localPeer.id;
19627
- var an = (a2) => a2.localPeer.audioTrack;
19628
- var on = (a2) => a2.localPeer.videoTrack;
19629
- var nn = (a2, e) => e;
19630
- var Ra = (a2, e) => e;
19631
- var cn = (a2) => a2.remoteTrackStats;
19632
- var Ha = (a2) => a2.peerStats;
19633
- var Fr = (a2) => a2.localTrackStats;
19634
- var ke = createSelector([Ha, sn], (a2, e) => a2[e]);
19635
- var dn = createSelector(ke, (a2) => {
19664
+ var Me = new xr();
19665
+ var K = ((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))(K || {});
19666
+ var Fi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Fi || {});
19667
+ var zi = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(zi || {});
19668
+ var cn = (a2) => a2.localPeer.id;
19669
+ var dn = (a2) => a2.localPeer.audioTrack;
19670
+ var ln = (a2) => a2.localPeer.videoTrack;
19671
+ var un = (a2, e) => e;
19672
+ var Ca = (a2, e) => e;
19673
+ var pn = (a2) => a2.remoteTrackStats;
19674
+ var La = (a2) => a2.peerStats;
19675
+ var Gr = (a2) => a2.localTrackStats;
19676
+ var Pe = createSelector([La, cn], (a2, e) => a2[e]);
19677
+ var hn = createSelector(Pe, (a2) => {
19636
19678
  var e;
19637
19679
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19638
19680
  });
19639
- var ln = createSelector(ke, (a2) => {
19681
+ var mn = createSelector(Pe, (a2) => {
19640
19682
  var e;
19641
19683
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19642
19684
  });
19643
- var un = createSelector(ke, (a2) => {
19685
+ var Sn = createSelector(Pe, (a2) => {
19644
19686
  var e;
19645
19687
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19646
19688
  });
19647
- var pn = createSelector(ke, (a2) => {
19689
+ var gn = createSelector(Pe, (a2) => {
19648
19690
  var e;
19649
19691
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19650
19692
  });
19651
- var hn = createSelector(ke, (a2) => {
19693
+ var Tn = createSelector(Pe, (a2) => {
19652
19694
  var e;
19653
19695
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19654
19696
  });
19655
- var mn = createSelector(ke, (a2) => {
19697
+ var fn = createSelector(Pe, (a2) => {
19656
19698
  var e;
19657
19699
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19658
19700
  });
19659
- var Sn = createSelector(ke, (a2) => {
19701
+ var vn = createSelector(Pe, (a2) => {
19660
19702
  var e;
19661
19703
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19662
19704
  });
19663
- var gn = createSelector(ke, (a2) => {
19705
+ var Mn = createSelector(Pe, (a2) => {
19664
19706
  var e;
19665
19707
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19666
19708
  });
19667
- var Tn = createSelector([Ha, nn], (a2, e) => e ? a2[e] : void 0);
19668
- var fn = createSelector([cn, Ra], (a2, e) => e ? a2[e] : void 0);
19669
- var Gr = createSelector([Fr, Ra], (a2, e) => e ? a2[e] : void 0);
19670
- var vn = b(Tn);
19671
- var Mn = b(fn);
19672
- var yn = createSelector([Fr, an], (a2, e) => {
19709
+ var yn = createSelector([La, un], (a2, e) => e ? a2[e] : void 0);
19710
+ var Pn = createSelector([pn, Ca], (a2, e) => e ? a2[e] : void 0);
19711
+ var Wr = createSelector([Gr, Ca], (a2, e) => e ? a2[e] : void 0);
19712
+ var En = R(yn);
19713
+ var kn = R(Pn);
19714
+ var An = createSelector([Gr, dn], (a2, e) => {
19673
19715
  var t;
19674
19716
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19675
19717
  });
19676
- var kn = b(createSelector(Gr, (a2) => a2 == null ? void 0 : a2[0]));
19677
- var Pn = createSelector([Fr, on], (a2, e) => {
19718
+ var In = R(createSelector(Wr, (a2) => a2 == null ? void 0 : a2[0]));
19719
+ var Rn = createSelector([Gr, ln], (a2, e) => {
19678
19720
  var t;
19679
19721
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19680
19722
  });
19681
- var En = b(createSelector(Gr, (a2) => a2));
19723
+ var bn = R(createSelector(Wr, (a2) => a2));
19682
19724
 
19683
19725
  // src/Prebuilt/components/Header/StreamActions.tsx
19684
19726
  import {
@@ -19945,7 +19987,7 @@ var RecordingStatus = () => {
19945
19987
  };
19946
19988
  var RecordingPauseStatus = () => {
19947
19989
  const recording = useHMSStore26(selectRecordingState2);
19948
- if (recording.hls && recording.hls.state === ms.PAUSED) {
19990
+ if (recording.hls && recording.hls.state === Ss.PAUSED) {
19949
19991
  return /* @__PURE__ */ React57.createElement(
19950
19992
  Tooltip,
19951
19993
  {
@@ -20333,6 +20375,9 @@ var MwebOptions = ({
20333
20375
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
20334
20376
  const isLocalVideoEnabled = useHMSStore30(selectIsLocalVideoEnabled4);
20335
20377
  const { startRecording, isRecordingLoading } = useRecordingHandler();
20378
+ const isTranscriptionAllowed = useHMSStore30(selectIsTranscriptionAllowedByMode2(HMSTranscriptionMode3.CAPTION));
20379
+ const isTranscriptionEnabled = useHMSStore30(selectIsTranscriptionEnabled4);
20380
+ const [isCaptionEnabled] = useSetIsCaptionEnabled();
20336
20381
  useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: "MoreSettings" });
20337
20382
  const updateState = (modalName, value) => {
20338
20383
  setOpenModals((modals) => {
@@ -20401,6 +20446,17 @@ var MwebOptions = ({
20401
20446
  isHandRaised ? /* @__PURE__ */ React61.createElement(HandRaiseSlashedIcon, null) : /* @__PURE__ */ React61.createElement(HandIcon2, null),
20402
20447
  /* @__PURE__ */ React61.createElement(ActionTile.Title, null, isHandRaised ? "Lower" : "Raise", " Hand")
20403
20448
  ) : null,
20449
+ isTranscriptionAllowed ? /* @__PURE__ */ React61.createElement(
20450
+ ActionTile.Root,
20451
+ {
20452
+ onClick: () => {
20453
+ setOpenOptionsSheet(false);
20454
+ updateState(MODALS2.CAPTION, true);
20455
+ }
20456
+ },
20457
+ isTranscriptionEnabled && isCaptionEnabled ? /* @__PURE__ */ React61.createElement(ClosedCaptionIcon2, null) : /* @__PURE__ */ React61.createElement(OpenCaptionIcon3, null),
20458
+ /* @__PURE__ */ React61.createElement(ActionTile.Title, null, "Closed Caption")
20459
+ ) : null,
20404
20460
  isLocalVideoEnabled && !!elements?.virtual_background ? /* @__PURE__ */ React61.createElement(
20405
20461
  ActionTile.Root,
20406
20462
  {
@@ -22472,7 +22528,7 @@ var PrevMenu = () => {
22472
22528
  const hmsActions = useHMSActions29();
22473
22529
  const polls = useHMSStore45(selectPolls2);
22474
22530
  const sortedPolls = useMemo7(
22475
- () => polls?.sort((a2, b2) => (b2?.createdAt?.getTime?.() || 0) - (a2?.createdAt?.getTime?.() || 0))?.sort((a2, b2) => (b2?.state === "started" ? 1 : 0) - (a2?.state === "started" ? 1 : 0)),
22531
+ () => polls?.sort((a2, b) => (b?.createdAt?.getTime?.() || 0) - (a2?.createdAt?.getTime?.() || 0))?.sort((a2, b) => (b?.state === "started" ? 1 : 0) - (a2?.state === "started" ? 1 : 0)),
22476
22532
  [polls]
22477
22533
  );
22478
22534
  const permissions = useHMSStore45(selectPermissions15);
@@ -23980,7 +24036,7 @@ var usePinnedMessages = () => {
23980
24036
  if (pinnedMessages[indexToRemove]) {
23981
24037
  await hmsActions.sessionStore.set(
23982
24038
  "pinnedMessages" /* PINNED_MESSAGES */,
23983
- pinnedMessages.filter((_, index) => index !== indexToRemove)
24039
+ pinnedMessages.filter((_2, index) => index !== indexToRemove)
23984
24040
  ).catch((err) => ToastManager.addToast({ title: err.description }));
23985
24041
  }
23986
24042
  },
@@ -24253,13 +24309,13 @@ var usePinnedBy = (messageId) => {
24253
24309
  const pinnedMessages = useHMSStore55(selectSessionStore4("pinnedMessages" /* PINNED_MESSAGES */));
24254
24310
  const [pinnedBy, setPinnedBy] = useState46("");
24255
24311
  useEffect29(() => {
24256
- let match16 = "";
24312
+ let match17 = "";
24257
24313
  pinnedMessages?.forEach((pinnedMessage) => {
24258
24314
  if (pinnedMessage.id === messageId) {
24259
- match16 = pinnedMessage.pinnedBy;
24315
+ match17 = pinnedMessage.pinnedBy;
24260
24316
  }
24261
24317
  });
24262
- setPinnedBy(match16);
24318
+ setPinnedBy(match17);
24263
24319
  }, [messageId, pinnedMessages]);
24264
24320
  return pinnedBy;
24265
24321
  };
@@ -25340,7 +25396,7 @@ var StickIndicator = ({ total, index }) => {
25340
25396
  if (total < 2) {
25341
25397
  return null;
25342
25398
  }
25343
- return /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React117.createElement(
25399
+ return /* @__PURE__ */ React117.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React117.createElement(
25344
25400
  Box,
25345
25401
  {
25346
25402
  css: {
@@ -25473,7 +25529,7 @@ var Chat = () => {
25473
25529
  const listRef = useRef24(null);
25474
25530
  const hmsActions = useHMSActions41();
25475
25531
  const vanillaStore = useHMSVanillaStore10();
25476
- const { enabled: isChatEnabled = true } = useHMSStore62(fm("chatState" /* CHAT_STATE */)) || {};
25532
+ const { enabled: isChatEnabled = true } = useHMSStore62(Pm("chatState" /* CHAT_STATE */)) || {};
25477
25533
  const isMobile = useMedia19(config.media.md);
25478
25534
  const isMobileHLSStream = useMobileHLSStream();
25479
25535
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25562,7 +25618,7 @@ var NewMessageIndicator = ({
25562
25618
  scrollToBottom,
25563
25619
  listRef
25564
25620
  }) => {
25565
- const unreadCount = useHMSStore62(Fh);
25621
+ const unreadCount = useHMSStore62(Kh);
25566
25622
  if (!unreadCount || !listRef.current) {
25567
25623
  return null;
25568
25624
  }
@@ -26661,7 +26717,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26661
26717
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26662
26718
  const hmsActions = useHMSActions44();
26663
26719
  const localPeer = useHMSStore70(selectLocalPeer6);
26664
- const role = useHMSStore70(oi);
26720
+ const role = useHMSStore70(Ye);
26665
26721
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
26666
26722
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26667
26723
  const trackSelector = selectVideoTrackByID4(localPeer?.videoTrack);
@@ -26669,12 +26725,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26669
26725
  const [blurAmount, setBlurAmount] = useState56(VBHandler.getBlurAmount() || 0.5);
26670
26726
  const roomState = useHMSStore70(selectRoomState4);
26671
26727
  const isLargeRoom = useHMSStore70(selectIsLargeRoom3);
26672
- const isEffectsEnabled = useHMSStore70(em);
26673
- const effectsKey = useHMSStore70(tm);
26728
+ const isEffectsEnabled = useHMSStore70(sm);
26729
+ const effectsKey = useHMSStore70(am);
26674
26730
  const isMobile = useMedia23(config.media.md);
26675
26731
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
26676
26732
  const isPluginAdded = useHMSStore70(selectIsLocalVideoPluginPresent(VBHandler?.getName() || ""));
26677
- const background = useHMSStore70(Tm(APP_DATA.background));
26733
+ const background = useHMSStore70(ym(APP_DATA.background));
26678
26734
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26679
26735
  const inPreview = roomState === HMSRoomState4.Preview;
26680
26736
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -27154,7 +27210,7 @@ var PreviewJoin = ({
27154
27210
  speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
27155
27211
  },
27156
27212
  captureNetworkQualityInPreview: true,
27157
- handleError: (_, method) => {
27213
+ handleError: (_2, method) => {
27158
27214
  if (method === "preview") {
27159
27215
  setPreviewError(true);
27160
27216
  }
@@ -27411,12 +27467,10 @@ import {
27411
27467
  selectLocalPeerRoleName as selectLocalPeerRoleName5,
27412
27468
  selectPeers as selectPeers3,
27413
27469
  selectPeerScreenSharing as selectPeerScreenSharing2,
27414
- selectTranscriptionsState,
27415
27470
  selectWhiteboard as selectWhiteboard2,
27416
27471
  useHMSStore as useHMSStore80,
27417
27472
  useHMSVanillaStore as useHMSVanillaStore12
27418
27473
  } from "@100mslive/react-sdk";
27419
- import { AlertTriangleIcon as AlertTriangleIcon8 } from "@100mslive/react-icons";
27420
27474
 
27421
27475
  // src/Prebuilt/components/VideoLayouts/EqualProminence.tsx
27422
27476
  init_define_process_env();
@@ -27633,7 +27687,7 @@ var Pagination = ({
27633
27687
  if (numPages <= 1) {
27634
27688
  return null;
27635
27689
  }
27636
- return /* @__PURE__ */ React140.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React140.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React140.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React140.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React140.createElement(
27690
+ return /* @__PURE__ */ React140.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React140.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React140.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React140.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ React140.createElement(
27637
27691
  StyledPagination.Dot,
27638
27692
  {
27639
27693
  key: i,
@@ -27740,7 +27794,7 @@ var useTileLayout = ({
27740
27794
  }
27741
27795
  const maxRows = Math.ceil(noOfTilesInPage / maxCols);
27742
27796
  let index = 0;
27743
- const matrix = new Array(maxRows).fill(null).map((_, i) => {
27797
+ const matrix = new Array(maxRows).fill(null).map((_2, i) => {
27744
27798
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
27745
27799
  const rowElements = [];
27746
27800
  for (let j2 = 0; j2 < numCols; j2++) {
@@ -27772,10 +27826,10 @@ var useTileLayout = ({
27772
27826
  tileHeight = maxRowHeight;
27773
27827
  const calcWidths = aspectRatios.map((aR) => tileHeight * aR);
27774
27828
  tileWidth = 0;
27775
- for (const w2 of calcWidths) {
27776
- if (w2 < width) {
27777
- if (tileWidth < w2) {
27778
- tileWidth = w2;
27829
+ for (const w of calcWidths) {
27830
+ if (w < width) {
27831
+ if (tileWidth < w) {
27832
+ tileWidth = w;
27779
27833
  }
27780
27834
  }
27781
27835
  }
@@ -28457,7 +28511,7 @@ var PeersSorter = class {
28457
28511
  this.speaker = void 0;
28458
28512
  this.tilesPerPage = tilesPerPage;
28459
28513
  const peerIds = new Set(peers.map((peer) => peer.id));
28460
- this.peers.forEach((_, key) => {
28514
+ this.peers.forEach((_2, key) => {
28461
28515
  if (!peerIds.has(key)) {
28462
28516
  this.peers.delete(key);
28463
28517
  }
@@ -28597,16 +28651,6 @@ var GridLayout = ({
28597
28651
  hideMetadataOnTile: hide_metadata_on_tile,
28598
28652
  objectFit: video_object_fit
28599
28653
  };
28600
- const transcriptionStates = useHMSStore80(selectTranscriptionsState);
28601
- useEffect48(() => {
28602
- if (transcriptionStates && transcriptionStates.length > 0 && transcriptionStates[0].error) {
28603
- ToastManager.addToast({
28604
- title: `Failed to enable Closed Caption`,
28605
- variant: "error",
28606
- icon: /* @__PURE__ */ React151.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
28607
- });
28608
- }
28609
- }, [transcriptionStates]);
28610
28654
  useEffect48(() => {
28611
28655
  if (mainPage !== 0) {
28612
28656
  return;
@@ -28798,7 +28842,12 @@ var PDFView = () => {
28798
28842
  init_define_process_env();
28799
28843
  import React154, { useEffect as useEffect51, useState as useState66 } from "react";
28800
28844
  import { useMedia as useMedia36 } from "react-use";
28801
- import { selectPeerNameByID as selectPeerNameByID5, useHMSStore as useHMSStore82, useTranscript } from "@100mslive/react-sdk";
28845
+ import {
28846
+ selectIsTranscriptionEnabled as selectIsTranscriptionEnabled5,
28847
+ selectPeerNameByID as selectPeerNameByID5,
28848
+ useHMSStore as useHMSStore82,
28849
+ useTranscript
28850
+ } from "@100mslive/react-sdk";
28802
28851
  var SimpleQueue = class {
28803
28852
  constructor(capacity = 3, MAX_STORAGE_TIME = 5e3) {
28804
28853
  this.capacity = capacity;
@@ -28952,6 +29001,7 @@ var CaptionsViewer = () => {
28952
29001
  const [captionQueue] = useState66(new CaptionMaintainerQueue());
28953
29002
  const [currentData, setCurrentData] = useState66([]);
28954
29003
  const isCaptionEnabled = useIsCaptionEnabled();
29004
+ const isTranscriptionEnabled = useHMSStore82(selectIsTranscriptionEnabled5);
28955
29005
  useEffect51(() => {
28956
29006
  const timeInterval = setInterval(() => {
28957
29007
  if (!captionQueue) {
@@ -28974,7 +29024,7 @@ var CaptionsViewer = () => {
28974
29024
  }
28975
29025
  return false;
28976
29026
  });
28977
- if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled) {
29027
+ if (dataToShow.length <= 0 || screenType === "hls_live_streaming" || !isCaptionEnabled || !isTranscriptionEnabled) {
28978
29028
  return null;
28979
29029
  }
28980
29030
  return /* @__PURE__ */ React154.createElement(
@@ -29019,7 +29069,7 @@ var useCloseScreenshareWhiteboard = () => {
29019
29069
  };
29020
29070
 
29021
29071
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
29022
- var HLSView = React155.lazy(() => import("./HLSView-XJOA2AEA.js"));
29072
+ var HLSView = React155.lazy(() => import("./HLSView-EHEKBMBJ.js"));
29023
29073
  var VideoStreamingSection = ({
29024
29074
  screenType,
29025
29075
  elements,
@@ -29931,9 +29981,9 @@ init_define_process_env();
29931
29981
 
29932
29982
  // src/Prebuilt/components/Notifications/Notifications.tsx
29933
29983
  init_define_process_env();
29934
- import React173, { useCallback as useCallback36, useEffect as useEffect70 } from "react";
29984
+ import React174, { useCallback as useCallback36, useEffect as useEffect71 } from "react";
29935
29985
  import {
29936
- HMSNotificationTypes as HMSNotificationTypes10,
29986
+ HMSNotificationTypes as HMSNotificationTypes11,
29937
29987
  HMSRoomState as HMSRoomState10,
29938
29988
  selectIsLocalScreenShared as selectIsLocalScreenShared3,
29939
29989
  selectLocalPeerID as selectLocalPeerID16,
@@ -29941,7 +29991,7 @@ import {
29941
29991
  selectRoomState as selectRoomState10,
29942
29992
  useAwayNotifications as useAwayNotifications2,
29943
29993
  useCustomEvent as useCustomEvent4,
29944
- useHMSNotifications as useHMSNotifications10,
29994
+ useHMSNotifications as useHMSNotifications11,
29945
29995
  useHMSStore as useHMSStore93,
29946
29996
  useHMSVanillaStore as useHMSVanillaStore16
29947
29997
  } from "@100mslive/react-sdk";
@@ -30035,7 +30085,7 @@ import {
30035
30085
  PeopleRemoveIcon as PeopleRemoveIcon4,
30036
30086
  PoorConnectivityIcon as PoorConnectivityIcon2
30037
30087
  } from "@100mslive/react-icons";
30038
- var ChatAction = React167.forwardRef((_, ref) => {
30088
+ var ChatAction = React167.forwardRef((_2, ref) => {
30039
30089
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
30040
30090
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
30041
30091
  if (isChatOpen) {
@@ -30581,11 +30631,58 @@ var TrackUnmuteModal = () => {
30581
30631
  );
30582
30632
  };
30583
30633
 
30634
+ // src/Prebuilt/components/Notifications/TranscriptionNotifications.tsx
30635
+ init_define_process_env();
30636
+ import React173, { useEffect as useEffect70 } from "react";
30637
+ import { match as match15 } from "ts-pattern";
30638
+ import { HMSNotificationTypes as HMSNotificationTypes10, HMSTranscriptionState, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
30639
+ import { AlertTriangleIcon as AlertTriangleIcon8, ClosedCaptionIcon as ClosedCaptionIcon3, OpenCaptionIcon as OpenCaptionIcon4 } from "@100mslive/react-icons";
30640
+ var TranscriptionNotifications = () => {
30641
+ const notification = useHMSNotifications10(HMSNotificationTypes10.TRANSCRIPTION_STATE_UPDATED);
30642
+ const [toastId, setToastId] = useSetAppDataByKey(CAPTION_TOAST.captionToast);
30643
+ useEffect70(() => {
30644
+ if (!notification?.data) {
30645
+ return;
30646
+ }
30647
+ console.debug(`[${notification.type}]`, notification);
30648
+ const transcriptionStates = notification.data;
30649
+ if (transcriptionStates.length > 0) {
30650
+ let id = "";
30651
+ match15({ state: transcriptionStates[0].state, error: transcriptionStates[0].error }).when(
30652
+ ({ error }) => !!error,
30653
+ () => {
30654
+ id = ToastManager.replaceToast(toastId, {
30655
+ title: `Failed to enable Closed Caption`,
30656
+ variant: "error",
30657
+ icon: /* @__PURE__ */ React173.createElement(AlertTriangleIcon8, { style: { marginRight: "0.5rem" } })
30658
+ });
30659
+ }
30660
+ ).with({ state: HMSTranscriptionState.STARTED }, () => {
30661
+ id = ToastManager.replaceToast(toastId, {
30662
+ title: `Closed Captioning enabled for everyone`,
30663
+ variant: "standard",
30664
+ duration: 2e3,
30665
+ icon: /* @__PURE__ */ React173.createElement(OpenCaptionIcon4, { style: { marginRight: "0.5rem" } })
30666
+ });
30667
+ }).with({ state: HMSTranscriptionState.STOPPED }, () => {
30668
+ id = ToastManager.replaceToast(toastId, {
30669
+ title: `Closed Captioning disabled for everyone`,
30670
+ variant: "standard",
30671
+ duration: 2e3,
30672
+ icon: /* @__PURE__ */ React173.createElement(ClosedCaptionIcon3, { style: { marginRight: "0.5rem" } })
30673
+ });
30674
+ }).otherwise(() => null);
30675
+ setToastId(id);
30676
+ }
30677
+ }, [notification, setToastId]);
30678
+ return null;
30679
+ };
30680
+
30584
30681
  // src/Prebuilt/components/Notifications/Notifications.tsx
30585
30682
  var pollToastKey = {};
30586
30683
  function Notifications() {
30587
30684
  const localPeerID = useHMSStore93(selectLocalPeerID16);
30588
- const notification = useHMSNotifications10();
30685
+ const notification = useHMSNotifications11();
30589
30686
  const subscribedNotifications = useSubscribedNotifications() || {};
30590
30687
  const roomState = useHMSStore93(selectRoomState10);
30591
30688
  const updateRoomLayoutForRole = useUpdateRoomLayout();
@@ -30603,15 +30700,15 @@ function Notifications() {
30603
30700
  });
30604
30701
  }, []);
30605
30702
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30606
- useEffect70(() => {
30703
+ useEffect71(() => {
30607
30704
  if (!notification || isNotificationDisabled) {
30608
30705
  return;
30609
30706
  }
30610
30707
  switch (notification.type) {
30611
- case HMSNotificationTypes10.NAME_UPDATED:
30708
+ case HMSNotificationTypes11.NAME_UPDATED:
30612
30709
  console.log(notification.data.id + " changed their name to " + notification.data.name);
30613
30710
  break;
30614
- case HMSNotificationTypes10.ERROR:
30711
+ case HMSNotificationTypes11.ERROR:
30615
30712
  if (notification.data?.isTerminal && notification.data?.action !== "INIT") {
30616
30713
  if ([500, 6008].includes(notification.data?.code)) {
30617
30714
  ToastManager.addToast({
@@ -30621,7 +30718,7 @@ function Notifications() {
30621
30718
  ToastManager.addToast({
30622
30719
  title: "The room is currently full, try joining later",
30623
30720
  close: true,
30624
- icon: /* @__PURE__ */ React173.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React173.createElement(GroupIcon2, null))
30721
+ icon: /* @__PURE__ */ React174.createElement(Box, { css: { color: "$alert_error_default" } }, /* @__PURE__ */ React174.createElement(GroupIcon2, null))
30625
30722
  });
30626
30723
  } else {
30627
30724
  ToastManager.addToast({
@@ -30643,7 +30740,7 @@ function Notifications() {
30643
30740
  title: `Error: ${notification.data?.message} - ${notification.data?.description}`
30644
30741
  });
30645
30742
  break;
30646
- case HMSNotificationTypes10.ROLE_UPDATED: {
30743
+ case HMSNotificationTypes11.ROLE_UPDATED: {
30647
30744
  if (notification.data?.isLocal && notification.data?.roleName) {
30648
30745
  ToastManager.addToast({
30649
30746
  title: `You are now a ${notification.data.roleName}`
@@ -30652,7 +30749,7 @@ function Notifications() {
30652
30749
  }
30653
30750
  break;
30654
30751
  }
30655
- case HMSNotificationTypes10.CHANGE_TRACK_STATE_REQUEST:
30752
+ case HMSNotificationTypes11.CHANGE_TRACK_STATE_REQUEST:
30656
30753
  const track = notification.data?.track;
30657
30754
  if (!notification.data.enabled) {
30658
30755
  ToastManager.addToast({
@@ -30661,24 +30758,24 @@ function Notifications() {
30661
30758
  });
30662
30759
  }
30663
30760
  break;
30664
- case HMSNotificationTypes10.REMOVED_FROM_ROOM:
30665
- case HMSNotificationTypes10.ROOM_ENDED:
30761
+ case HMSNotificationTypes11.REMOVED_FROM_ROOM:
30762
+ case HMSNotificationTypes11.ROOM_ENDED:
30666
30763
  ToastManager.addToast({
30667
30764
  title: `${notification.message}.
30668
30765
  ${notification.data.reason && `Reason: ${notification.data.reason}`}`
30669
30766
  });
30670
30767
  break;
30671
- case HMSNotificationTypes10.DEVICE_CHANGE_UPDATE:
30768
+ case HMSNotificationTypes11.DEVICE_CHANGE_UPDATE:
30672
30769
  ToastManager.addToast({
30673
30770
  title: notification.message
30674
30771
  });
30675
30772
  break;
30676
- case HMSNotificationTypes10.POLL_STARTED:
30773
+ case HMSNotificationTypes11.POLL_STARTED:
30677
30774
  if (notification.data.startedBy !== localPeerID && screenProps.screenType !== "hls_live_streaming") {
30678
30775
  const pollStartedBy = vanillaStore.getState(selectPeerNameByID6(notification.data.startedBy)) || "Participant";
30679
30776
  const pollToastID = ToastManager.addToast({
30680
30777
  title: `${pollStartedBy} started a ${notification.data.type}: ${notification.data.title}`,
30681
- action: /* @__PURE__ */ React173.createElement(
30778
+ action: /* @__PURE__ */ React174.createElement(
30682
30779
  Button,
30683
30780
  {
30684
30781
  onClick: () => togglePollView(notification.data.id),
@@ -30697,14 +30794,14 @@ function Notifications() {
30697
30794
  pollToastKey[notification.data.id] = pollToastID;
30698
30795
  }
30699
30796
  break;
30700
- case HMSNotificationTypes10.POLL_STOPPED:
30797
+ case HMSNotificationTypes11.POLL_STOPPED:
30701
30798
  const pollID = notification?.data.id;
30702
30799
  if (pollID && pollToastKey?.[pollID]) {
30703
30800
  ToastManager.removeToast(pollToastKey?.[notification.data.id]);
30704
30801
  delete pollToastKey[notification?.data.id];
30705
30802
  }
30706
30803
  break;
30707
- case HMSNotificationTypes10.NEW_MESSAGE:
30804
+ case HMSNotificationTypes11.NEW_MESSAGE:
30708
30805
  if (amIScreenSharing) {
30709
30806
  showNotification(`New message from ${notification.data.senderName}`, {
30710
30807
  body: notification.data.message,
@@ -30719,12 +30816,12 @@ function Notifications() {
30719
30816
  if (isNotificationDisabled) {
30720
30817
  return null;
30721
30818
  }
30722
- return /* @__PURE__ */ React173.createElement(React173.Fragment, null, /* @__PURE__ */ React173.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React173.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React173.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React173.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React173.createElement(ReconnectNotifications, null), /* @__PURE__ */ React173.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React173.createElement(PermissionErrorModal, null), /* @__PURE__ */ React173.createElement(InitErrorModal, null), /* @__PURE__ */ React173.createElement(ChatNotifications, null), /* @__PURE__ */ React173.createElement(HandRaisedNotifications, null));
30819
+ return /* @__PURE__ */ React174.createElement(React174.Fragment, null, /* @__PURE__ */ React174.createElement(TrackUnmuteModal, null), /* @__PURE__ */ React174.createElement(TrackBulkUnmuteModal, null), /* @__PURE__ */ React174.createElement(TrackNotifications, null), roomState === HMSRoomState10.Connected ? /* @__PURE__ */ React174.createElement(PeerNotifications, null) : null, /* @__PURE__ */ React174.createElement(ReconnectNotifications, null), /* @__PURE__ */ React174.createElement(AutoplayBlockedModal, null), /* @__PURE__ */ React174.createElement(PermissionErrorModal, null), /* @__PURE__ */ React174.createElement(InitErrorModal, null), /* @__PURE__ */ React174.createElement(ChatNotifications, null), /* @__PURE__ */ React174.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React174.createElement(TranscriptionNotifications, null));
30723
30820
  }
30724
30821
 
30725
30822
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
30726
30823
  init_define_process_env();
30727
- import React174 from "react";
30824
+ import React175 from "react";
30728
30825
  import { useSearchParam } from "react-use";
30729
30826
  var PreviewScreen = () => {
30730
30827
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
@@ -30735,27 +30832,27 @@ var PreviewScreen = () => {
30735
30832
  const authToken = useAuthToken();
30736
30833
  const roomLayout = useRoomLayout();
30737
30834
  const { preview_header: previewHeader = {} } = roomLayout?.screens?.preview?.default?.elements || {};
30738
- return /* @__PURE__ */ React174.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React174.createElement(
30835
+ return /* @__PURE__ */ React175.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React175.createElement(
30739
30836
  Flex,
30740
30837
  {
30741
30838
  css: { flex: "1 1 0", position: "relative", overflowY: "auto", color: "$primary_default" },
30742
30839
  justify: "center",
30743
30840
  align: "center"
30744
30841
  },
30745
- authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React174.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole ?? void 0 }) : /* @__PURE__ */ React174.createElement(FullPageProgress_default, null)
30842
+ authToken && Object.keys(previewHeader).length > 0 ? /* @__PURE__ */ React175.createElement(PreviewJoin_default, { initialName, skipPreview, asRole: previewAsRole ?? void 0 }) : /* @__PURE__ */ React175.createElement(FullPageProgress_default, null)
30746
30843
  ));
30747
30844
  };
30748
30845
 
30749
30846
  // src/Prebuilt/components/Toast/ToastContainer.jsx
30750
30847
  init_define_process_env();
30751
- import React176, { useEffect as useEffect71, useState as useState74 } from "react";
30848
+ import React177, { useEffect as useEffect72, useState as useState74 } from "react";
30752
30849
  import { selectIsConnectedToRoom as selectIsConnectedToRoom11, useHMSStore as useHMSStore94 } from "@100mslive/react-sdk";
30753
30850
 
30754
30851
  // src/Prebuilt/components/Toast/Toast.jsx
30755
30852
  init_define_process_env();
30756
- import React175 from "react";
30853
+ import React176 from "react";
30757
30854
  var Toast2 = ({ title, description, close = true, open, duration, onOpenChange, icon, ...props }) => {
30758
- return /* @__PURE__ */ React175.createElement(
30855
+ return /* @__PURE__ */ React176.createElement(
30759
30856
  Toast.HMSToast,
30760
30857
  {
30761
30858
  title,
@@ -30774,15 +30871,15 @@ var Toast2 = ({ title, description, close = true, open, duration, onOpenChange,
30774
30871
  var ToastContainer = () => {
30775
30872
  const isConnected = useHMSStore94(selectIsConnectedToRoom11);
30776
30873
  const [toasts, setToast] = useState74([]);
30777
- useEffect71(() => {
30874
+ useEffect72(() => {
30778
30875
  ToastManager.addListener(setToast);
30779
30876
  return () => {
30780
30877
  ToastManager.removeListener(setToast);
30781
30878
  };
30782
30879
  }, []);
30783
- return /* @__PURE__ */ React176.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
30784
- return /* @__PURE__ */ React176.createElement(Toast2, { key: toast.id, ...toast, onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) });
30785
- }), /* @__PURE__ */ React176.createElement(
30880
+ return /* @__PURE__ */ React177.createElement(Toast.Provider, { swipeDirection: "left", duration: 3e3 }, toasts.slice(0, MAX_TOASTS).map((toast) => {
30881
+ return /* @__PURE__ */ React177.createElement(Toast2, { key: toast.id, ...toast, onOpenChange: (value) => !value && ToastManager.removeToast(toast.id) });
30882
+ }), /* @__PURE__ */ React177.createElement(
30786
30883
  Toast.Viewport,
30787
30884
  {
30788
30885
  css: {
@@ -30795,27 +30892,27 @@ var ToastContainer = () => {
30795
30892
 
30796
30893
  // src/Prebuilt/layouts/Sheet.tsx
30797
30894
  init_define_process_env();
30798
- import React178 from "react";
30895
+ import React179 from "react";
30799
30896
  import { selectAppData as selectAppData14, useHMSStore as useHMSStore95 } from "@100mslive/react-sdk";
30800
30897
 
30801
30898
  // src/Prebuilt/components/RoomDetails/RoomDetailsSheet.tsx
30802
30899
  init_define_process_env();
30803
- import React177 from "react";
30900
+ import React178 from "react";
30804
30901
  import { CrossIcon as CrossIcon28 } from "@100mslive/react-icons";
30805
30902
  var RoomDetailsSheet = () => {
30806
30903
  const { title, description, details } = useRoomLayoutHeader();
30807
30904
  const toggleSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
30808
30905
  const showRoomDetailsSheet = useIsSheetTypeOpen(SHEET_OPTIONS.ROOM_DETAILS);
30809
- return /* @__PURE__ */ React177.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React177.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React177.createElement(
30906
+ return /* @__PURE__ */ React178.createElement(Sheet.Root, { open: showRoomDetailsSheet, onOpenChange: toggleSheet }, /* @__PURE__ */ React178.createElement(Sheet.Content, { css: { py: "$8", pb: "$12" } }, /* @__PURE__ */ React178.createElement(
30810
30907
  Flex,
30811
30908
  {
30812
30909
  justify: "between",
30813
30910
  align: "center",
30814
30911
  css: { w: "100%", borderBottom: "1px solid $border_bright", pb: "$4", mb: "$4", px: "$8" }
30815
30912
  },
30816
- /* @__PURE__ */ React177.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
30817
- /* @__PURE__ */ React177.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React177.createElement(CrossIcon28, null))
30818
- ), /* @__PURE__ */ React177.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React177.createElement(Logo, null), /* @__PURE__ */ React177.createElement(Box, null, /* @__PURE__ */ React177.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React177.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React177.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
30913
+ /* @__PURE__ */ React178.createElement(Text, { css: { fontWeight: "$semiBold", color: "$on_surface_high" } }, "Description"),
30914
+ /* @__PURE__ */ React178.createElement(Sheet.Close, { css: { color: "$on_surface_high" } }, /* @__PURE__ */ React178.createElement(CrossIcon28, null))
30915
+ ), /* @__PURE__ */ React178.createElement(Flex, { align: "center", css: { w: "100%", gap: "$4", pb: "$8", px: "$8" } }, /* @__PURE__ */ React178.createElement(Logo, null), /* @__PURE__ */ React178.createElement(Box, null, /* @__PURE__ */ React178.createElement(Text, { variant: "sm", css: { c: "$on_secondary_high", fontWeight: "$semiBold" } }, title), /* @__PURE__ */ React178.createElement(RoomDetailsRow, { details }))), /* @__PURE__ */ React178.createElement(Text, { variant: "sm", css: { color: "$on_surface_medium", px: "$8" } }, description)));
30819
30916
  };
30820
30917
 
30821
30918
  // src/Prebuilt/layouts/Sheet.tsx
@@ -30823,14 +30920,14 @@ var Sheet2 = () => {
30823
30920
  const sheet = useHMSStore95(selectAppData14(APP_DATA.sheet));
30824
30921
  let ViewComponent;
30825
30922
  if (sheet === SHEET_OPTIONS.ROOM_DETAILS) {
30826
- ViewComponent = /* @__PURE__ */ React178.createElement(RoomDetailsSheet, null);
30923
+ ViewComponent = /* @__PURE__ */ React179.createElement(RoomDetailsSheet, null);
30827
30924
  }
30828
- return /* @__PURE__ */ React178.createElement(Box, null, ViewComponent);
30925
+ return /* @__PURE__ */ React179.createElement(Box, null, ViewComponent);
30829
30926
  };
30830
30927
 
30831
30928
  // src/Prebuilt/plugins/FlyingEmoji.jsx
30832
30929
  init_define_process_env();
30833
- import React179, { useCallback as useCallback37, useEffect as useEffect72, useMemo as useMemo21, useState as useState75 } from "react";
30930
+ import React180, { useCallback as useCallback37, useEffect as useEffect73, useMemo as useMemo21, useState as useState75 } from "react";
30834
30931
  import { useMedia as useMedia41 } from "react-use";
30835
30932
  import {
30836
30933
  selectIsLargeRoom as selectIsLargeRoom4,
@@ -30904,10 +31001,10 @@ function FlyingEmoji() {
30904
31001
  type: EMOJI_REACTION_TYPE,
30905
31002
  onEvent: showFlyingEmoji
30906
31003
  });
30907
- useEffect72(() => {
31004
+ useEffect73(() => {
30908
31005
  window.showFlyingEmoji = showFlyingEmoji;
30909
31006
  }, [showFlyingEmoji]);
30910
- return /* @__PURE__ */ React179.createElement(
31007
+ return /* @__PURE__ */ React180.createElement(
30911
31008
  Box,
30912
31009
  {
30913
31010
  css: {
@@ -30923,7 +31020,7 @@ function FlyingEmoji() {
30923
31020
  }
30924
31021
  },
30925
31022
  emojis.map((emoji) => {
30926
- return /* @__PURE__ */ React179.createElement(
31023
+ return /* @__PURE__ */ React180.createElement(
30927
31024
  Flex,
30928
31025
  {
30929
31026
  key: emoji.id,
@@ -30937,8 +31034,8 @@ function FlyingEmoji() {
30937
31034
  },
30938
31035
  onAnimationEnd: () => setEmojis(emojis.filter((item) => item.id !== emoji.id))
30939
31036
  },
30940
- /* @__PURE__ */ React179.createElement(Box, null, /* @__PURE__ */ React179.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
30941
- emoji.senderName ? /* @__PURE__ */ React179.createElement(
31037
+ /* @__PURE__ */ React180.createElement(Box, null, /* @__PURE__ */ React180.createElement("em-emoji", { id: emoji.emojiId, size: "48px", set: "apple" })),
31038
+ emoji.senderName ? /* @__PURE__ */ React180.createElement(
30942
31039
  Box,
30943
31040
  {
30944
31041
  css: {
@@ -30948,7 +31045,7 @@ function FlyingEmoji() {
30948
31045
  borderRadius: "$1"
30949
31046
  }
30950
31047
  },
30951
- /* @__PURE__ */ React179.createElement(
31048
+ /* @__PURE__ */ React180.createElement(
30952
31049
  Text,
30953
31050
  {
30954
31051
  css: {
@@ -30967,7 +31064,7 @@ function FlyingEmoji() {
30967
31064
 
30968
31065
  // src/Prebuilt/plugins/RemoteStopScreenshare.jsx
30969
31066
  init_define_process_env();
30970
- import React180, { useCallback as useCallback38 } from "react";
31067
+ import React181, { useCallback as useCallback38 } from "react";
30971
31068
  import { useCustomEvent as useCustomEvent6, useHMSActions as useHMSActions55 } from "@100mslive/react-sdk";
30972
31069
  function RemoteStopScreenshare() {
30973
31070
  const actions = useHMSActions55();
@@ -30978,12 +31075,12 @@ function RemoteStopScreenshare() {
30978
31075
  type: REMOTE_STOP_SCREENSHARE_TYPE,
30979
31076
  onEvent: onRemoteStopScreenshare
30980
31077
  });
30981
- return /* @__PURE__ */ React180.createElement(React180.Fragment, null);
31078
+ return /* @__PURE__ */ React181.createElement(React181.Fragment, null);
30982
31079
  }
30983
31080
 
30984
31081
  // src/Prebuilt/components/hooks/useAutoStartStreaming.tsx
30985
31082
  init_define_process_env();
30986
- import { useCallback as useCallback39, useEffect as useEffect73, useRef as useRef29 } from "react";
31083
+ import { useCallback as useCallback39, useEffect as useEffect74, useRef as useRef29 } from "react";
30987
31084
  import {
30988
31085
  selectIsConnectedToRoom as selectIsConnectedToRoom12,
30989
31086
  selectPermissions as selectPermissions20,
@@ -31022,12 +31119,12 @@ var useAutoStartStreaming = () => {
31022
31119
  isHLSRecordingOn,
31023
31120
  isBrowserRecordingOn
31024
31121
  ]);
31025
- useEffect73(() => {
31122
+ useEffect74(() => {
31026
31123
  if (!isHLSStarted && !isHLSRunning) {
31027
31124
  streamStartedRef.current = false;
31028
31125
  }
31029
31126
  }, [isHLSStarted, isHLSRunning]);
31030
- useEffect73(() => {
31127
+ useEffect74(() => {
31031
31128
  if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
31032
31129
  return;
31033
31130
  }
@@ -31036,7 +31133,7 @@ var useAutoStartStreaming = () => {
31036
31133
  };
31037
31134
 
31038
31135
  // src/Prebuilt/App.tsx
31039
- var HMSPrebuilt = React181.forwardRef(
31136
+ var HMSPrebuilt = React182.forwardRef(
31040
31137
  ({
31041
31138
  roomCode = "",
31042
31139
  authToken = "",
@@ -31050,8 +31147,8 @@ var HMSPrebuilt = React181.forwardRef(
31050
31147
  onJoin
31051
31148
  }, ref) => {
31052
31149
  const reactiveStore = useRef30();
31053
- const [hydrated, setHydrated] = React181.useState(false);
31054
- useEffect74(() => {
31150
+ const [hydrated, setHydrated] = React182.useState(false);
31151
+ useEffect75(() => {
31055
31152
  setHydrated(true);
31056
31153
  const hms = new HMSReactiveStore();
31057
31154
  const hmsStore = hms.getStore();
@@ -31066,13 +31163,13 @@ var HMSPrebuilt = React181.forwardRef(
31066
31163
  hmsNotifications
31067
31164
  };
31068
31165
  }, []);
31069
- useEffect74(() => {
31166
+ useEffect75(() => {
31070
31167
  if (!ref || !reactiveStore.current) {
31071
31168
  return;
31072
31169
  }
31073
31170
  ref.current = { ...reactiveStore.current };
31074
31171
  }, [ref]);
31075
- useEffect74(() => {
31172
+ useEffect75(() => {
31076
31173
  return () => {
31077
31174
  VBHandler.reset();
31078
31175
  reactiveStore?.current?.hmsActions.leave();
@@ -31100,7 +31197,7 @@ var HMSPrebuilt = React181.forwardRef(
31100
31197
  return null;
31101
31198
  }
31102
31199
  globalStyles();
31103
- return /* @__PURE__ */ React181.createElement(ErrorBoundary, null, /* @__PURE__ */ React181.createElement(
31200
+ return /* @__PURE__ */ React182.createElement(ErrorBoundary, null, /* @__PURE__ */ React182.createElement(
31104
31201
  HMSPrebuiltContext.Provider,
31105
31202
  {
31106
31203
  value: {
@@ -31117,7 +31214,7 @@ var HMSPrebuilt = React181.forwardRef(
31117
31214
  }
31118
31215
  }
31119
31216
  },
31120
- /* @__PURE__ */ React181.createElement(
31217
+ /* @__PURE__ */ React182.createElement(
31121
31218
  HMSRoomProvider,
31122
31219
  {
31123
31220
  isHMSStatsOn: FeatureFlags.enableStatsForNerds,
@@ -31126,7 +31223,7 @@ var HMSPrebuilt = React181.forwardRef(
31126
31223
  notifications: reactiveStore.current?.hmsNotifications,
31127
31224
  stats: reactiveStore.current?.hmsStats
31128
31225
  },
31129
- /* @__PURE__ */ React181.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React181.createElement(RoomLayoutContext.Consumer, null, (data3) => {
31226
+ /* @__PURE__ */ React182.createElement(RoomLayoutProvider, { roomLayoutEndpoint, overrideLayout }, /* @__PURE__ */ React182.createElement(RoomLayoutContext.Consumer, null, (data3) => {
31130
31227
  const layout = data3?.layout;
31131
31228
  const theme2 = layout?.themes?.[0] || {};
31132
31229
  const { typography: typography2 } = layout || {};
@@ -31134,7 +31231,7 @@ var HMSPrebuilt = React181.forwardRef(
31134
31231
  if (typography2?.font_family) {
31135
31232
  fontFamily = [`${typography2?.font_family}`, ...fontFamily];
31136
31233
  }
31137
- return /* @__PURE__ */ React181.createElement(
31234
+ return /* @__PURE__ */ React182.createElement(
31138
31235
  HMSThemeProvider,
31139
31236
  {
31140
31237
  themeType: `${theme2.name}-${Date.now()}`,
@@ -31147,8 +31244,8 @@ var HMSPrebuilt = React181.forwardRef(
31147
31244
  }
31148
31245
  }
31149
31246
  },
31150
- /* @__PURE__ */ React181.createElement(Init, null),
31151
- /* @__PURE__ */ React181.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React181.createElement(
31247
+ /* @__PURE__ */ React182.createElement(Init, null),
31248
+ /* @__PURE__ */ React182.createElement(DialogContainerProvider, { dialogContainerSelector: containerSelector }, /* @__PURE__ */ React182.createElement(
31152
31249
  Box,
31153
31250
  {
31154
31251
  className: DEFAULT_PORTAL_CONTAINER.slice(1),
@@ -31160,7 +31257,7 @@ var HMSPrebuilt = React181.forwardRef(
31160
31257
  position: "relative"
31161
31258
  }
31162
31259
  },
31163
- /* @__PURE__ */ React181.createElement(
31260
+ /* @__PURE__ */ React182.createElement(
31164
31261
  AppRoutes,
31165
31262
  {
31166
31263
  authTokenByRoomCodeEndpoint: tokenByRoomCodeEndpoint,
@@ -31179,12 +31276,12 @@ var AppStates = ({ activeState }) => {
31179
31276
  const { isPreviewScreenEnabled } = useRoomLayoutPreviewScreen();
31180
31277
  const { isLeaveScreenEnabled } = useRoomLayoutLeaveScreen();
31181
31278
  useAutoStartStreaming();
31182
- return match15({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React181.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React181.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React181.createElement(ConferenceScreen, null));
31279
+ return match16({ activeState, isPreviewScreenEnabled, isLeaveScreenEnabled }).with({ activeState: "preview" /* PREVIEW */, isPreviewScreenEnabled: true }, () => /* @__PURE__ */ React182.createElement(PreviewScreen, null)).with({ activeState: "leave" /* LEAVE */, isLeaveScreenEnabled: true }, () => /* @__PURE__ */ React182.createElement(LeaveScreen, null)).otherwise(() => /* @__PURE__ */ React182.createElement(ConferenceScreen, null));
31183
31280
  };
31184
31281
  var BackSwipe = () => {
31185
31282
  const isConnectedToRoom = useHMSStore98(selectIsConnectedToRoom13);
31186
31283
  const hmsActions = useHMSActions57();
31187
- useEffect74(() => {
31284
+ useEffect75(() => {
31188
31285
  const onRouteLeave = async () => {
31189
31286
  if (isConnectedToRoom) {
31190
31287
  await hmsActions.leave();
@@ -31204,7 +31301,7 @@ function AppRoutes({
31204
31301
  const roomLayout = useRoomLayout();
31205
31302
  const isNotificationsDisabled = useIsNotificationDisabled();
31206
31303
  const { activeState, rejoin } = useAppStateManager();
31207
- return /* @__PURE__ */ React181.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React181.createElement(React181.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React181.createElement(AppData, null), /* @__PURE__ */ React181.createElement(ToastContainer, null), /* @__PURE__ */ React181.createElement(Notifications, null), /* @__PURE__ */ React181.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React181.createElement(Sheet2, null), /* @__PURE__ */ React181.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React181.createElement(FlyingEmoji, null), /* @__PURE__ */ React181.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React181.createElement(KeyboardHandler, null), /* @__PURE__ */ React181.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React181.createElement(AppStates, { activeState })));
31304
+ return /* @__PURE__ */ React182.createElement(AppStateContext.Provider, { value: { rejoin } }, /* @__PURE__ */ React182.createElement(React182.Fragment, null, activeState !== "leave" /* LEAVE */ && /* @__PURE__ */ React182.createElement(AppData, null), /* @__PURE__ */ React182.createElement(ToastContainer, null), /* @__PURE__ */ React182.createElement(Notifications, null), /* @__PURE__ */ React182.createElement(MwebLandscapePrompt, null), /* @__PURE__ */ React182.createElement(Sheet2, null), /* @__PURE__ */ React182.createElement(BackSwipe, null), !isNotificationsDisabled && /* @__PURE__ */ React182.createElement(FlyingEmoji, null), /* @__PURE__ */ React182.createElement(RemoteStopScreenshare, null), /* @__PURE__ */ React182.createElement(KeyboardHandler, null), /* @__PURE__ */ React182.createElement(AuthToken_default, { authTokenByRoomCodeEndpoint, defaultAuthToken }), roomLayout && activeState && /* @__PURE__ */ React182.createElement(AppStates, { activeState })));
31208
31305
  }
31209
31306
 
31210
31307
  // src/Progress/index.tsx
@@ -31356,4 +31453,4 @@ lodash/lodash.js:
31356
31453
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31357
31454
  *)
31358
31455
  */
31359
- //# sourceMappingURL=chunk-2XSERAAX.js.map
31456
+ //# sourceMappingURL=chunk-ZPUJUJBA.js.map