@100mslive/roomkit-react 0.3.14-alpha.7 → 0.3.14-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5e2df5ff-9e88-48c5-ae09-3f35ab8bdfbe", 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.4-alpha.7", 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.14-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_5e2df5ff-9e88-48c5-ae09-3f35ab8bdfbe", 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.14-alpha.7", 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.9", 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.8", 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: "592", 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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.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.4/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:17308", 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.14-alpha.7", 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: "9598388267", 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: "c57e858bbc09c5b82722610c4ae0fcf200e61161", 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: "2c40941210fdfcce83d8f8ea6e75595dc23825a6d30d1f8b04ee1d5c13c011e8", 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--1718890248699-0.19677626630198497:/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--1718890248506-0.34564658162174067:/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--1718890223199-0.8761704666839227:/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--1718890223022-0.05784877896719243:/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_a00aa94b-086d-4f59-aff2-64b17cc8cc39", INVOCATION_ID: "ddaa7297c32e4415969cd4dbdf7c4640", 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: "584", 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 361", 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.14-alpha.7", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.7", 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: "c57e858bbc09c5b82722610c4ae0fcf200e61161", 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_5e2df5ff-9e88-48c5-ae09-3f35ab8bdfbe", 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_5e2df5ff-9e88-48c5-ae09-3f35ab8bdfbe", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__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_5e2df5ff-9e88-48c5-ae09-3f35ab8bdfbe" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_27575a21-5737-454e-8e27-786155458b41", 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.4-alpha.8", 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.14-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_27575a21-5737-454e-8e27-786155458b41", 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.14-alpha.8", 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.9", 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.8", 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: "593", 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.11/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240616.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.4/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:16135", 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.14-alpha.8", 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: "9613734740", 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: "16a110b525265ba74c72960c828e6ce933df52cf", 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: "b1fde51e3dfa43537b62c313ed425931ffc6c01ee0651880125bf51b6a28d58c", npm_package_exports___import: "./dist/index.js", STATS_BLT: "true", 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--1718973604964-0.10726757358908445:/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--1718973604770-0.33744061216691046:/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--1718973579202-0.226299014918115:/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--1718973579021-0.0699281435738186:/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_7ad3cca2-cc6f-4b07-8c13-cddbd3cd61ad", INVOCATION_ID: "19e1902fb66a4b0faa182d54d9c9486b", 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: "585", 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 374", 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.14-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.14-alpha.8", 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: "16a110b525265ba74c72960c828e6ce933df52cf", 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_27575a21-5737-454e-8e27-786155458b41", 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_27575a21-5737-454e-8e27-786155458b41", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__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_27575a21-5737-454e-8e27-786155458b41" };
111
111
  }
112
112
  });
113
113
 
@@ -8634,8 +8634,8 @@ var require_grammar = __commonJS({
8634
8634
  var require_parser = __commonJS({
8635
8635
  "../../node_modules/sdp-transform/lib/parser.js"(exports) {
8636
8636
  init_define_process_env();
8637
- var toIntIfInt = function(v2) {
8638
- return String(Number(v2)) === v2 ? Number(v2) : v2;
8637
+ var toIntIfInt = function(v3) {
8638
+ return String(Number(v3)) === v3 ? Number(v3) : v3;
8639
8639
  };
8640
8640
  var attachProperties = function(match17, location, names, rawName) {
8641
8641
  if (rawName && !names) {
@@ -8871,7 +8871,7 @@ var require_react_is_production_min = __commonJS({
8871
8871
  var c3 = b3 ? Symbol.for("react.element") : 60103;
8872
8872
  var d3 = b3 ? Symbol.for("react.portal") : 60106;
8873
8873
  var e = b3 ? Symbol.for("react.fragment") : 60107;
8874
- var f3 = b3 ? Symbol.for("react.strict_mode") : 60108;
8874
+ var f2 = b3 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g2 = b3 ? Symbol.for("react.profiler") : 60114;
8876
8876
  var h2 = b3 ? Symbol.for("react.provider") : 60109;
8877
8877
  var k2 = b3 ? Symbol.for("react.context") : 60110;
@@ -8882,7 +8882,7 @@ var require_react_is_production_min = __commonJS({
8882
8882
  var q3 = b3 ? Symbol.for("react.suspense_list") : 60120;
8883
8883
  var r2 = b3 ? Symbol.for("react.memo") : 60115;
8884
8884
  var t2 = b3 ? Symbol.for("react.lazy") : 60116;
8885
- var v2 = b3 ? Symbol.for("react.block") : 60121;
8885
+ var v3 = b3 ? Symbol.for("react.block") : 60121;
8886
8886
  var w2 = b3 ? Symbol.for("react.fundamental") : 60117;
8887
8887
  var x2 = b3 ? Symbol.for("react.responder") : 60118;
8888
8888
  var y3 = b3 ? Symbol.for("react.scope") : 60119;
@@ -8896,7 +8896,7 @@ var require_react_is_production_min = __commonJS({
8896
8896
  case m2:
8897
8897
  case e:
8898
8898
  case g2:
8899
- case f3:
8899
+ case f2:
8900
8900
  case p2:
8901
8901
  return a11;
8902
8902
  default:
@@ -8930,7 +8930,7 @@ var require_react_is_production_min = __commonJS({
8930
8930
  exports.Memo = r2;
8931
8931
  exports.Portal = d3;
8932
8932
  exports.Profiler = g2;
8933
- exports.StrictMode = f3;
8933
+ exports.StrictMode = f2;
8934
8934
  exports.Suspense = p2;
8935
8935
  exports.isAsyncMode = function(a11) {
8936
8936
  return A3(a11) || z3(a11) === l2;
@@ -8964,13 +8964,13 @@ var require_react_is_production_min = __commonJS({
8964
8964
  return z3(a11) === g2;
8965
8965
  };
8966
8966
  exports.isStrictMode = function(a11) {
8967
- return z3(a11) === f3;
8967
+ return z3(a11) === f2;
8968
8968
  };
8969
8969
  exports.isSuspense = function(a11) {
8970
8970
  return z3(a11) === p2;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a11) {
8973
- return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 === f3 || a11 === p2 || a11 === q3 || "object" === typeof a11 && null !== a11 && (a11.$$typeof === t2 || a11.$$typeof === r2 || a11.$$typeof === h2 || a11.$$typeof === k2 || a11.$$typeof === n2 || a11.$$typeof === w2 || a11.$$typeof === x2 || a11.$$typeof === y3 || a11.$$typeof === v2);
8973
+ return "string" === typeof a11 || "function" === typeof a11 || a11 === e || a11 === m2 || a11 === g2 || a11 === f2 || a11 === p2 || a11 === q3 || "object" === typeof a11 && null !== a11 && (a11.$$typeof === t2 || a11.$$typeof === r2 || a11.$$typeof === h2 || a11.$$typeof === k2 || a11.$$typeof === n2 || a11.$$typeof === w2 || a11.$$typeof === x2 || a11.$$typeof === y3 || a11.$$typeof === v3);
8974
8974
  };
8975
8975
  exports.typeOf = z3;
8976
8976
  }
@@ -18208,11 +18208,11 @@ function shimOnTrack(window2) {
18208
18208
  get() {
18209
18209
  return this._ontrack;
18210
18210
  },
18211
- set(f3) {
18211
+ set(f2) {
18212
18212
  if (this._ontrack) {
18213
18213
  this.removeEventListener("track", this._ontrack);
18214
18214
  }
18215
- this.addEventListener("track", this._ontrack = f3);
18215
+ this.addEventListener("track", this._ontrack = f2);
18216
18216
  },
18217
18217
  enumerable: true,
18218
18218
  configurable: true
@@ -19195,12 +19195,12 @@ function shimRemoteStreamsAPI(window2) {
19195
19195
  get() {
19196
19196
  return this._onaddstream;
19197
19197
  },
19198
- set(f3) {
19198
+ set(f2) {
19199
19199
  if (this._onaddstream) {
19200
19200
  this.removeEventListener("addstream", this._onaddstream);
19201
19201
  this.removeEventListener("track", this._onaddstreampoly);
19202
19202
  }
19203
- this.addEventListener("addstream", this._onaddstream = f3);
19203
+ this.addEventListener("addstream", this._onaddstream = f2);
19204
19204
  this.addEventListener("track", this._onaddstreampoly = (e) => {
19205
19205
  e.streams.forEach((stream) => {
19206
19206
  if (!this._remoteStreams) {
@@ -19878,7 +19878,7 @@ var import_lodash4 = __toESM(require_lodash2());
19878
19878
  import { v4 as fo } from "uuid";
19879
19879
  import { v4 as ko } from "uuid";
19880
19880
  import { v4 as Ro } from "uuid";
19881
- import { EventEmitter2 as Ao } from "eventemitter2";
19881
+ import { EventEmitter2 as Io } from "eventemitter2";
19882
19882
 
19883
19883
  // ../../node_modules/immer/dist/immer.esm.mjs
19884
19884
  init_define_process_env();
@@ -20012,14 +20012,14 @@ function M(n2, r2, t2) {
20012
20012
  }
20013
20013
  return e.o;
20014
20014
  }
20015
- function A(e, i2, o2, a11, c3, s2, v2) {
20015
+ function A(e, i2, o2, a11, c3, s2, v3) {
20016
20016
  if ("production" !== define_process_env_default.NODE_ENV && c3 === o2 && n(5), r(c3)) {
20017
20017
  var p2 = M(e, c3, s2 && i2 && 3 !== i2.i && !u(i2.R, a11) ? s2.concat(a11) : void 0);
20018
20018
  if (f(o2, a11, p2), !r(p2))
20019
20019
  return;
20020
20020
  e.m = false;
20021
20021
  } else
20022
- v2 && o2.add(c3);
20022
+ v3 && o2.add(c3);
20023
20023
  if (t(c3) && !y(c3)) {
20024
20024
  if (!e.h.D && e._ < 1)
20025
20025
  return;
@@ -20052,8 +20052,8 @@ function N(n2, r2, t2) {
20052
20052
  var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
20053
20053
  var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i2 = e2, o2 = en;
20054
20054
  t3 && (i2 = [e2], o2 = on);
20055
- var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f3 = u2.proxy;
20056
- return e2.k = f3, e2.j = a11, f3;
20055
+ var u2 = Proxy.revocable(i2, o2), a11 = u2.revoke, f2 = u2.proxy;
20056
+ return e2.k = f2, e2.j = a11, f2;
20057
20057
  }(r2, t2) : b("ES5").J(r2, t2);
20058
20058
  return (t2 ? t2.A : _()).p.push(e), e;
20059
20059
  }
@@ -20186,26 +20186,26 @@ var un = function() {
20186
20186
  });
20187
20187
  };
20188
20188
  }
20189
- var f3;
20189
+ var f2;
20190
20190
  if ("function" != typeof i3 && n(6), void 0 !== o2 && "function" != typeof o2 && n(7), t(r3)) {
20191
- var c3 = w(e2), s2 = N(e2, r3, void 0), v2 = true;
20191
+ var c3 = w(e2), s2 = N(e2, r3, void 0), v3 = true;
20192
20192
  try {
20193
- f3 = i3(s2), v2 = false;
20193
+ f2 = i3(s2), v3 = false;
20194
20194
  } finally {
20195
- v2 ? g(c3) : O(c3);
20195
+ v3 ? g(c3) : O(c3);
20196
20196
  }
20197
- return "undefined" != typeof Promise && f3 instanceof Promise ? f3.then(function(n2) {
20197
+ return "undefined" != typeof Promise && f2 instanceof Promise ? f2.then(function(n2) {
20198
20198
  return j(c3, o2), P3(n2, c3);
20199
20199
  }, function(n2) {
20200
20200
  throw g(c3), n2;
20201
- }) : (j(c3, o2), P3(f3, c3));
20201
+ }) : (j(c3, o2), P3(f2, c3));
20202
20202
  }
20203
20203
  if (!r3 || "object" != typeof r3) {
20204
- if (void 0 === (f3 = i3(r3)) && (f3 = r3), f3 === H && (f3 = void 0), e2.D && d(f3, true), o2) {
20204
+ if (void 0 === (f2 = i3(r3)) && (f2 = r3), f2 === H && (f2 = void 0), e2.D && d(f2, true), o2) {
20205
20205
  var p2 = [], l2 = [];
20206
- b("Patches").M(r3, f3, p2, l2), o2(p2, l2);
20206
+ b("Patches").M(r3, f2, p2, l2), o2(p2, l2);
20207
20207
  }
20208
- return f3;
20208
+ return f2;
20209
20209
  }
20210
20210
  n(21, r3);
20211
20211
  }, this.produceWithPatches = function(n2, r3) {
@@ -20362,7 +20362,7 @@ var mr = (a11, e) => {
20362
20362
  return t2;
20363
20363
  };
20364
20364
  var Ya = (a11, e) => () => (e || a11((e = { exports: {} }).exports, e), e.exports);
20365
- var Q2 = (a11, e, t2) => za(Qa(a11), t2, e);
20365
+ var J = (a11, e, t2) => za(Qa(a11), t2, e);
20366
20366
  var c2 = (a11, e, t2) => new Promise((i2, r2) => {
20367
20367
  var s2 = (l2) => {
20368
20368
  try {
@@ -20380,7 +20380,7 @@ var c2 = (a11, e, t2) => new Promise((i2, r2) => {
20380
20380
  n2((t2 = t2.apply(a11, e)).next());
20381
20381
  });
20382
20382
  var Mr = Ya((Vc, oo) => {
20383
- oo.exports = { version: "0.12.14-alpha.7", 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"] };
20383
+ oo.exports = { version: "0.12.14-alpha.8", 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"] };
20384
20384
  });
20385
20385
  var Sr = ((n2) => (n2.Disconnected = "Disconnected", n2.Preview = "Preview", n2.Connecting = "Connecting", n2.Connected = "Connected", n2.Reconnecting = "Reconnecting", n2.Disconnecting = "Disconnecting", n2.Failed = "Failed", n2))(Sr || {});
20386
20386
  var ti = () => ({ room: { id: "", isConnected: false, name: "", peers: [], localPeer: "", roomState: "Disconnected", recording: { browser: { running: false }, server: { running: false }, hls: { running: false } }, rtmp: { running: false }, hls: { running: false, variants: [] }, sessionId: "" }, peers: {}, tracks: {}, playlist: { audio: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 }, video: { list: {}, selection: { id: "", hasPrevious: false, hasNext: false }, progress: 0, volume: 0, currentTime: 0, playbackRate: 1 } }, messages: { byID: {}, allIDs: [] }, speakers: {}, connectionQualities: {}, settings: { audioInputDeviceId: "", audioOutputDeviceId: "", videoInputDeviceId: "" }, devices: { audioInput: [], audioOutput: [], videoInput: [] }, roles: {}, roleChangeRequests: [], errors: [], sessionStore: {}, templateAppData: {}, polls: {}, whiteboards: {}, hideLocalPeer: false });
@@ -20389,7 +20389,7 @@ var Xa = ((e) => (e.CHAT = "chat", e))(Xa || {});
20389
20389
  var ss = ((t2) => (t2.INFO = "info", t2.ERROR = "error", t2))(ss || {});
20390
20390
  var gr = ((D2) => (D2.PEER_JOINED = "PEER_JOINED", D2.PEER_LEFT = "PEER_LEFT", D2.PEER_LIST = "PEER_LIST", D2.NEW_MESSAGE = "NEW_MESSAGE", D2.ERROR = "ERROR", D2.RECONNECTING = "RECONNECTING", D2.RECONNECTED = "RECONNECTED", D2.TRACK_ADDED = "TRACK_ADDED", D2.TRACK_REMOVED = "TRACK_REMOVED", D2.TRACK_MUTED = "TRACK_MUTED", D2.TRACK_UNMUTED = "TRACK_UNMUTED", D2.TRACK_DEGRADED = "TRACK_DEGRADED", D2.TRACK_RESTORED = "TRACK_RESTORED", D2.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D2.ROLE_UPDATED = "ROLE_UPDATED", D2.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D2.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D2.ROOM_ENDED = "ROOM_ENDED", D2.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D2.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D2.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D2.NAME_UPDATED = "NAME_UPDATED", D2.METADATA_UPDATED = "METADATA_UPDATED", D2.POLL_CREATED = "POLL_CREATED", D2.POLL_STARTED = "POLL_STARTED", D2.POLL_STOPPED = "POLL_STOPPED", D2.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D2.POLLS_LIST = "POLLS_LIST", D2.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D2.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D2))(gr || {});
20391
20391
  var as = ((t2) => (t2.audio = "audio", t2.video = "video", t2))(as || {});
20392
- function xe(a11, e) {
20392
+ function Ue(a11, e) {
20393
20393
  let t2, i2;
20394
20394
  if (e)
20395
20395
  for (let r2 of e.auxiliaryTracks) {
@@ -20416,7 +20416,7 @@ function mt(a11) {
20416
20416
  function os(a11) {
20417
20417
  return a11 ? !!(a11 != null && a11.degraded) : false;
20418
20418
  }
20419
- function qe(a11, e) {
20419
+ function je(a11, e) {
20420
20420
  return e && a11.tracks[e] ? a11.tracks[e].enabled : false;
20421
20421
  }
20422
20422
  function ns(a11, e) {
@@ -20495,7 +20495,7 @@ var d2 = class {
20495
20495
  }
20496
20496
  };
20497
20497
  d2.level = eo ? 7 : 0;
20498
- var je = class {
20498
+ var Je = class {
20499
20499
  constructor(e) {
20500
20500
  this.tracks = new Array();
20501
20501
  this.nativeStream = e, this.id = e.id;
@@ -20507,8 +20507,8 @@ var je = class {
20507
20507
  var ge = new import_ua_parser_js.UAParser();
20508
20508
  var O2 = typeof window != "undefined";
20509
20509
  var ds;
20510
- var Ue = typeof window == "undefined" && !((ds = ge.getBrowser().name) != null && ds.toLowerCase().includes("electron"));
20511
- var io = () => !Ue;
20510
+ var Be = typeof window == "undefined" && !((ds = ge.getBrowser().name) != null && ds.toLowerCase().includes("electron"));
20511
+ var io = () => !Be;
20512
20512
  var tc = io();
20513
20513
  var Te = () => ge.getDevice().type === "mobile";
20514
20514
  var ps = () => typeof document != "undefined" && document.hidden;
@@ -20569,7 +20569,7 @@ var Re = class {
20569
20569
  }`;
20570
20570
  }
20571
20571
  };
20572
- var Ae = class extends Re {
20572
+ var Ie = class extends Re {
20573
20573
  constructor(t2, i2, r2) {
20574
20574
  super(t2, i2, r2);
20575
20575
  this.type = "audio";
@@ -20631,9 +20631,9 @@ function ro() {
20631
20631
  }
20632
20632
  return "CUSTOM";
20633
20633
  }
20634
- var Je = ro();
20635
- var P4 = { 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 } };
20636
- var f2 = class a2 extends Error {
20634
+ var Qe = ro();
20635
+ var E2 = { 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 } };
20636
+ var v2 = class a2 extends Error {
20637
20637
  constructor(t2, i2, r2, s2, o2, n2 = false) {
20638
20638
  super(s2);
20639
20639
  this.code = t2;
@@ -20678,111 +20678,111 @@ function fr(a11) {
20678
20678
  }
20679
20679
  var so = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
20680
20680
  var S2 = { WebSocketConnectionErrors: { FailedToConnect(a11, e = "") {
20681
- return new f2(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
20681
+ return new v2(E2.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a11, `[WS]: ${e}`, `[WS]: ${e}`);
20682
20682
  }, WebSocketConnectionLost(a11, e = "") {
20683
- return new f2(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
20683
+ return new v2(E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a11, "Network connection lost", e);
20684
20684
  }, AbnormalClose(a11, e = "") {
20685
- return new f2(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
20685
+ return new v2(E2.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a11, "Websocket closed abnormally", e);
20686
20686
  } }, APIErrors: { ServerErrors(a11, e, t2 = "", i2 = true) {
20687
- return new f2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
20687
+ return new v2(a11, "ServerErrors", e, `[${e}]: Server error ${t2}`, t2, i2);
20688
20688
  }, EndpointUnreachable(a11, e = "") {
20689
- return new f2(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
20689
+ return new v2(E2.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a11, `Endpoint is not reachable - ${e}`, e);
20690
20690
  }, InvalidTokenFormat(a11, e = "") {
20691
- return new f2(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
20691
+ return new v2(E2.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a11, `Token is not in proper JWT format - ${e}`, e, true);
20692
20692
  }, InitConfigNotAvailable(a11, e = "") {
20693
- return new f2(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
20693
+ return new v2(E2.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a11, `[INIT]: ${e}`, `[INIT]: ${e}`);
20694
20694
  } }, TracksErrors: { GenericTrack(a11, e = "") {
20695
- return new f2(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
20695
+ return new v2(E2.TracksErrors.GENERIC_TRACK, "GenericTrack", a11, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
20696
20696
  }, CantAccessCaptureDevice(a11, e, t2 = "") {
20697
- return new f2(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
20697
+ return new v2(E2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a11, `User denied permission to access capture device - ${e}`, t2);
20698
20698
  }, DeviceNotAvailable(a11, e, t2 = "") {
20699
- return new f2(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
20699
+ return new v2(E2.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a11, `[TRACK]: Capture device is no longer available - ${e}`, t2);
20700
20700
  }, DeviceInUse(a11, e, t2 = "") {
20701
- return new f2(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
20701
+ return new v2(E2.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a11, `[TRACK]: Capture device is in use by another application - ${e}`, t2);
20702
20702
  }, DeviceLostMidway(a11, e, t2 = "") {
20703
- return new f2(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
20703
+ return new v2(E2.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a11, `Lost access to capture device midway - ${e}`, t2);
20704
20704
  }, NothingToReturn(a11, e = "", t2 = "There is no media to return. Please select either video or audio or both.") {
20705
- return new f2(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
20705
+ return new v2(E2.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a11, t2, e);
20706
20706
  }, InvalidVideoSettings(a11, e = "") {
20707
- return new f2(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
20707
+ return new v2(E2.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a11, "Cannot enable simulcast when no video settings are provided", e);
20708
20708
  }, AutoplayBlocked(a11, e = "") {
20709
- return new f2(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
20709
+ return new v2(E2.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a11, "Autoplay blocked because the user didn't interact with the document first", e);
20710
20710
  }, CodecChangeNotPermitted(a11, e = "") {
20711
- return new f2(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
20711
+ return new v2(E2.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a11, "Codec can't be changed mid call.", e);
20712
20712
  }, OverConstrained(a11, e, t2 = "") {
20713
- return new f2(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
20713
+ return new v2(E2.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a11, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t2);
20714
20714
  }, NoAudioDetected(a11, e = "Please check the mic or use another audio input") {
20715
- return new f2(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
20715
+ return new v2(E2.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a11, "No audio input detected from microphone", e);
20716
20716
  }, SystemDeniedPermission(a11, e, t2 = "") {
20717
- return new f2(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
20717
+ return new v2(E2.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a11, `Operating System denied permission to access capture device - ${e}`, t2);
20718
20718
  }, CurrentTabNotShared() {
20719
- return new f2(P4.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");
20719
+ return new v2(E2.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");
20720
20720
  }, AudioPlaybackError(a11) {
20721
- return new f2(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
20721
+ return new v2(E2.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a11, a11);
20722
20722
  }, SelectedDeviceMissing(a11) {
20723
- return new f2(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
20723
+ return new v2(E2.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a11} device`, `Please check connection to the ${a11} device`, false);
20724
20724
  } }, WebrtcErrors: { CreateOfferFailed(a11, e = "") {
20725
- return new f2(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
20725
+ return new v2(E2.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a11, `[${a11.toString()}]: Failed to create offer. `, e);
20726
20726
  }, CreateAnswerFailed(a11, e = "") {
20727
- return new f2(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
20727
+ return new v2(E2.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a11, `[${a11.toString()}]: Failed to create answer. `, e);
20728
20728
  }, SetLocalDescriptionFailed(a11, e = "") {
20729
- return new f2(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
20729
+ return new v2(E2.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a11, `[${a11.toString()}]: Failed to set offer. `, e);
20730
20730
  }, SetRemoteDescriptionFailed(a11, e = "") {
20731
- return new f2(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
20731
+ return new v2(E2.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a11, `[${a11.toString()}]: Failed to set answer. `, e, true);
20732
20732
  }, ICEFailure(a11, e = "", t2 = false) {
20733
- return new f2(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
20733
+ return new v2(E2.WebrtcErrors.ICE_FAILURE, "ICEFailure", a11, `[${a11.toString()}]: Ice connection state FAILED`, e, t2);
20734
20734
  }, ICEDisconnected(a11, e = "") {
20735
- return new f2(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
20735
+ return new v2(E2.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a11, `[${a11.toString()}]: Ice connection state DISCONNECTED`, e);
20736
20736
  }, StatsFailed(a11, e = "") {
20737
- return new f2(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
20737
+ return new v2(E2.WebrtcErrors.STATS_FAILED, "StatsFailed", a11, `Failed to WebRTC get stats - ${e}`, e);
20738
20738
  } }, WebsocketMethodErrors: { ServerErrors(a11, e, t2) {
20739
- return new f2(a11, "ServerErrors", e, t2, t2, so.includes(e));
20739
+ return new v2(a11, "ServerErrors", e, t2, t2, so.includes(e));
20740
20740
  }, AlreadyJoined(a11, e = "") {
20741
- return new f2(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
20741
+ return new v2(E2.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a11, "[JOIN]: You have already joined this room.", e);
20742
20742
  }, CannotJoinPreviewInProgress(a11, e = "") {
20743
- return new f2(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
20743
+ return new v2(E2.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a11, "[JOIN]: Cannot join if preview is in progress", e);
20744
20744
  } }, GenericErrors: { NotConnected(a11, e = "") {
20745
- return new f2(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
20745
+ return new v2(E2.GenericErrors.NOT_CONNECTED, "NotConnected", a11, "Client is not connected", e);
20746
20746
  }, Signalling(a11, e) {
20747
- return new f2(P4.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
20747
+ return new v2(E2.GenericErrors.SIGNALLING, "Signalling", a11, `Unknown signalling error: ${a11.toString()} ${e} `, e);
20748
20748
  }, Unknown(a11, e) {
20749
- return new f2(P4.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
20749
+ return new v2(E2.GenericErrors.UNKNOWN, "Unknown", a11, `Unknown exception: ${e}`, e);
20750
20750
  }, NotReady(a11, e = "") {
20751
- return new f2(P4.GenericErrors.NOT_READY, "NotReady", a11, e, e);
20751
+ return new v2(E2.GenericErrors.NOT_READY, "NotReady", a11, e, e);
20752
20752
  }, JsonParsingFailed(a11, e, t2 = "") {
20753
- return new f2(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
20753
+ return new v2(E2.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a11, `Failed to parse JSON message - ${e}`, t2);
20754
20754
  }, TrackMetadataMissing(a11, e = "") {
20755
- return new f2(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
20755
+ return new v2(E2.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a11, "Track Metadata Missing", e);
20756
20756
  }, RTCTrackMissing(a11, e = "") {
20757
- return new f2(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
20757
+ return new v2(E2.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a11, "RTC Track missing", e);
20758
20758
  }, PeerMetadataMissing(a11, e = "") {
20759
- return new f2(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
20759
+ return new v2(E2.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a11, "Peer Metadata Missing", e);
20760
20760
  }, ValidationFailed(a11, e) {
20761
- return new f2(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
20761
+ return new v2(E2.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a11, e ? JSON.stringify(e) : "");
20762
20762
  }, InvalidRole(a11, e) {
20763
- return new f2(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
20763
+ return new v2(E2.GenericErrors.INVALID_ROLE, "InvalidRole", a11, "Invalid role. Join with valid role", e, true);
20764
20764
  }, PreviewAlreadyInProgress(a11, e = "") {
20765
- return new f2(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
20765
+ return new v2(E2.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a11, "[Preview]: Cannot join if preview is in progress", e);
20766
20766
  }, LocalStorageAccessDenied(a11 = "Access to localStorage has been denied") {
20767
- return new f2(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
20767
+ return new v2(E2.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a11);
20768
20768
  }, MissingMediaDevices() {
20769
- return new f2(P4.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);
20769
+ return new v2(E2.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);
20770
20770
  }, MissingRTCPeerConnection() {
20771
- return new f2(P4.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);
20771
+ return new v2(E2.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);
20772
20772
  } }, MediaPluginErrors: { PlatformNotSupported(a11, e = "") {
20773
- return new f2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
20773
+ return new v2(7001, "PlatformNotSupported", a11, "Check HMS Docs to see the list of supported platforms", e);
20774
20774
  }, InitFailed(a11, e = "") {
20775
- return new f2(7002, "InitFailed", a11, "Plugin init failed", e);
20775
+ return new v2(7002, "InitFailed", a11, "Plugin init failed", e);
20776
20776
  }, ProcessingFailed(a11, e = "") {
20777
- return new f2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
20777
+ return new v2(7003, "ProcessingFailed", a11, "Plugin processing failed", e);
20778
20778
  }, AddAlreadyInProgress(a11, e = "") {
20779
- return new f2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
20779
+ return new v2(7004, "AddAlreadyInProgress", a11, "Plugin add already in progress", e);
20780
20780
  }, DeviceNotSupported(a11, e = "") {
20781
- return new f2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
20781
+ return new v2(7005, "DeviceNotSupported", a11, "Check HMS Docs to see the list of supported devices", e);
20782
20782
  } }, PlaylistErrors: { NoEntryToPlay(a11, e) {
20783
- return new f2(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
20783
+ return new v2(E2.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a11, "Reached end of playlist", e);
20784
20784
  }, NoEntryPlaying(a11, e) {
20785
- return new f2(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
20785
+ return new v2(E2.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a11, "No entry is playing at this time", e);
20786
20786
  } } };
20787
20787
  var vr = class {
20788
20788
  constructor() {
@@ -20865,11 +20865,11 @@ var Tt = () => {
20865
20865
  };
20866
20866
  var fs = Mr().version;
20867
20867
  function ft(a11 = "prod", e) {
20868
- let t2 = "web", i2 = Je !== "LOCAL" && a11 === "prod" ? "prod" : "debug";
20869
- if (Ue)
20870
- return vs({ os: "web_nodejs", os_version: process.version, sdk: t2, sdk_version: fs, env: i2, domain: Je, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
20868
+ let t2 = "web", i2 = Qe !== "LOCAL" && a11 === "prod" ? "prod" : "debug";
20869
+ if (Be)
20870
+ return vs({ os: "web_nodejs", os_version: process.version, sdk: t2, sdk_version: fs, env: i2, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
20871
20871
  let r2 = ge.getOS(), s2 = ge.getDevice(), o2 = ge.getBrowser(), n2 = yr(`web_${r2.name}`), l2 = r2.version || "", u2 = yr(`${o2.name}_${o2.version}`), p2 = u2;
20872
- return s2.type && (p2 = `${yr(`${s2.vendor}_${s2.type}`)}/${u2}`), vs({ os: n2, os_version: l2, sdk: t2, sdk_version: fs, device_model: p2, env: i2, domain: Je, 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 });
20872
+ return s2.type && (p2 = `${yr(`${s2.vendor}_${s2.type}`)}/${u2}`), vs({ os: n2, os_version: l2, sdk: t2, sdk_version: fs, device_model: p2, env: i2, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
20873
20873
  }
20874
20874
  function yr(a11) {
20875
20875
  return a11.replace(/ /g, "_");
@@ -20881,7 +20881,7 @@ var H2 = class {
20881
20881
  this.name = e, this.level = t2, this.includesPII = r2 || false, this.properties = i2 || {}, this.timestamp = s2 || (/* @__PURE__ */ new Date()).getTime(), this.event_id = no(), this.device_id = gs();
20882
20882
  }
20883
20883
  toSignalParams() {
20884
- return { name: this.name, info: M2(m({}, this.properties), { timestamp: this.timestamp, domain: Je }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
20884
+ return { name: this.name, info: M2(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
20885
20885
  }
20886
20886
  };
20887
20887
  var y2 = class {
@@ -20977,7 +20977,7 @@ var y2 = class {
20977
20977
  return e = m(m({}, i2), e), e;
20978
20978
  }
20979
20979
  static getErrorProperties(e) {
20980
- return e ? e instanceof f2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
20980
+ return e ? e instanceof v2 ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
20981
20981
  }
20982
20982
  };
20983
20983
  y2.KEY_REQUESTED_AT = "requested_at", y2.KEY_RESPONDED_AT = "responded_at";
@@ -21015,7 +21015,7 @@ var kr = class {
21015
21015
  return e.deviceId === t2.deviceId && (e.groupId === t2.groupId || !e.groupId);
21016
21016
  }
21017
21017
  };
21018
- var z2 = new kr();
21018
+ var Q2 = new kr();
21019
21019
  var Pr = ((t2) => (t2.TRANSFORM = "TRANSFORM", t2.ANALYZE = "ANALYZE", t2))(Pr || {});
21020
21020
  var Er = ((t2) => (t2.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t2.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t2))(Er || {});
21021
21021
  var ne = class {
@@ -21279,7 +21279,7 @@ function po(a11, e = "") {
21279
21279
  return uo(a11.message, e);
21280
21280
  }
21281
21281
  }
21282
- function Qe(a11, e) {
21282
+ function Ae(a11, e) {
21283
21283
  let t2 = po(a11, e);
21284
21284
  return t2.addNativeError(a11), t2;
21285
21285
  }
@@ -21288,7 +21288,7 @@ function ys(a11) {
21288
21288
  try {
21289
21289
  return (yield navigator.mediaDevices.getUserMedia({ audio: a11 ? a11.toConstraints() : false })).getAudioTracks()[0];
21290
21290
  } catch (e) {
21291
- throw Qe(e, "audio");
21291
+ throw Ae(e, "audio");
21292
21292
  }
21293
21293
  });
21294
21294
  }
@@ -21297,14 +21297,14 @@ function ks(a11) {
21297
21297
  try {
21298
21298
  return (yield navigator.mediaDevices.getUserMedia({ video: a11 ? a11.toConstraints() : false })).getVideoTracks()[0];
21299
21299
  } catch (e) {
21300
- throw Qe(e, "video");
21300
+ throw Ae(e, "video");
21301
21301
  }
21302
21302
  });
21303
21303
  }
21304
21304
  function ue(a11) {
21305
21305
  return "canvas" in a11 || a11.label === "MediaStreamAudioDestinationNode" || a11.label === "";
21306
21306
  }
21307
- var Ie = { audioContext: null, getAudioContext() {
21307
+ var He = { audioContext: null, getAudioContext() {
21308
21308
  return this.audioContext || (this.audioContext = new AudioContext()), this.audioContext;
21309
21309
  }, resumeContext() {
21310
21310
  return c2(this, null, function* () {
@@ -21315,7 +21315,7 @@ var Ie = { audioContext: null, getAudioContext() {
21315
21315
  }
21316
21316
  });
21317
21317
  } };
21318
- var He = class {
21318
+ var Ce = class {
21319
21319
  constructor(e = 1 / 0) {
21320
21320
  this.capacity = e;
21321
21321
  this.storage = [];
@@ -21351,18 +21351,18 @@ var Ps = `(function workerSetup() {
21351
21351
  }
21352
21352
  };
21353
21353
  })()`;
21354
- function K(a11) {
21354
+ function Z2(a11) {
21355
21355
  if (a11 < 0)
21356
21356
  throw Error("`ms` should be a positive integer");
21357
21357
  return new Promise((e) => {
21358
21358
  setTimeout(e, a11);
21359
21359
  });
21360
21360
  }
21361
- function Ce(a11) {
21361
+ function Le(a11) {
21362
21362
  if (a11 < 0)
21363
21363
  throw Error("`ms` should be a positive integer");
21364
21364
  if (typeof Worker == "undefined")
21365
- return K(a11);
21365
+ return Z2(a11);
21366
21366
  let e = new Worker(URL.createObjectURL(new Blob([Ps], { type: "application/javascript" })));
21367
21367
  return e.postMessage(["start", a11]), new Promise((t2) => {
21368
21368
  e.onmessage = (i2) => {
@@ -21372,7 +21372,7 @@ function Ce(a11) {
21372
21372
  }
21373
21373
  function Es() {
21374
21374
  if (typeof Worker == "undefined")
21375
- return { sleep: (e) => K(e) };
21375
+ return { sleep: (e) => Z2(e) };
21376
21376
  let a11 = new Worker(URL.createObjectURL(new Blob([Ps], { type: "application/javascript" })));
21377
21377
  return { sleep: (e) => (a11.postMessage(["start", e]), new Promise((t2) => {
21378
21378
  a11.onmessage = (i2) => {
@@ -21402,7 +21402,7 @@ var ni = class {
21402
21402
  this.isMonitored = false;
21403
21403
  this.interval = 100;
21404
21404
  this.historyInterval = 700;
21405
- this.history = new He(this.historyInterval / this.interval);
21405
+ this.history = new Ce(this.historyInterval / this.interval);
21406
21406
  this.detectSilence = () => c2(this, null, function* () {
21407
21407
  let i3 = 0;
21408
21408
  for (; this.isMonitored; ) {
@@ -21414,7 +21414,7 @@ var ni = class {
21414
21414
  }
21415
21415
  } else
21416
21416
  break;
21417
- yield K(20);
21417
+ yield Z2(20);
21418
21418
  }
21419
21419
  });
21420
21420
  try {
@@ -21437,7 +21437,7 @@ var ni = class {
21437
21437
  loop() {
21438
21438
  return c2(this, null, function* () {
21439
21439
  for (; this.isMonitored; )
21440
- this.sendAudioLevel(this.getMaxAudioLevelOverPeriod()), yield K(this.interval);
21440
+ this.sendAudioLevel(this.getMaxAudioLevelOverPeriod()), yield Z2(this.interval);
21441
21441
  });
21442
21442
  }
21443
21443
  sendAudioLevel(e = 0) {
@@ -21477,17 +21477,17 @@ var ni = class {
21477
21477
  return this.analyserNode.getByteTimeDomainData(e), !e.some((t2) => t2 !== 128 && t2 !== 0);
21478
21478
  }
21479
21479
  createAnalyserNodeForStream(e) {
21480
- let t2 = Ie.getAudioContext(), i2 = t2.createAnalyser();
21480
+ let t2 = He.getAudioContext(), i2 = t2.createAnalyser();
21481
21481
  return t2.createMediaStreamSource(e).connect(i2), i2;
21482
21482
  }
21483
21483
  };
21484
21484
  var br = ((t2) => (t2.SIP = "sip", t2.REGULAR = "regular", t2))(br || {});
21485
21485
  var bs = ((n2) => (n2.NONE = "none", n2.INITIALISED = "initialised", n2.STARTED = "started", n2.PAUSED = "paused", n2.RESUMED = "resumed", n2.STOPPED = "stopped", n2.FAILED = "failed", n2))(bs || {});
21486
21486
  var Rs = ((t2) => (t2.DVR = "dvr", t2.NO_DVR = "no-dvr", t2))(Rs || {});
21487
- var As = ((i2) => (i2.REGULAR = "regular", i2.SCREEN = "screen", i2.COMPOSITE = "composite", i2))(As || {});
21488
- var Is = ((r2) => (r2.INITIALISED = "initialised", r2.STARTED = "started", r2.STOPPED = "stopped", r2.FAILED = "failed", r2))(Is || {});
21487
+ var Is = ((i2) => (i2.REGULAR = "regular", i2.SCREEN = "screen", i2.COMPOSITE = "composite", i2))(Is || {});
21488
+ var As = ((r2) => (r2.INITIALISED = "initialised", r2.STARTED = "started", r2.STOPPED = "stopped", r2.FAILED = "failed", r2))(As || {});
21489
21489
  var Hs = ((e) => (e.CAPTION = "caption", e))(Hs || {});
21490
- var Be = { f: "high", h: "medium", q: "low" };
21490
+ var Ve = { f: "high", h: "medium", q: "low" };
21491
21491
  var Cs = ((i2) => (i2.videoInput = "videoInput", i2.audioInput = "audioInput", i2.audioOutput = "audioOutput", i2))(Cs || {});
21492
21492
  var ee = class {
21493
21493
  constructor() {
@@ -21521,10 +21521,10 @@ var ee = class {
21521
21521
  return this._advanced = e, this;
21522
21522
  }
21523
21523
  build() {
21524
- return new Ve(this._volume, this._codec, this._maxBitrate, this._deviceId, this._advanced, this._audioMode);
21524
+ return new Fe(this._volume, this._codec, this._maxBitrate, this._deviceId, this._advanced, this._audioMode);
21525
21525
  }
21526
21526
  };
21527
- var Ve = class {
21527
+ var Fe = class {
21528
21528
  constructor(e, t2, i2, r2, s2, o2) {
21529
21529
  this.volume = e, this.codec = t2, this.maxBitrate = i2, this.deviceId = r2, this.advanced = s2, this.audioMode = o2, this.audioMode === "music" && (this.maxBitrate = 320);
21530
21530
  }
@@ -21535,7 +21535,7 @@ var Ve = class {
21535
21535
  return { audio_bitrate: this.maxBitrate, audio_codec: this.codec };
21536
21536
  }
21537
21537
  };
21538
- var Y2 = class {
21538
+ var z2 = class {
21539
21539
  constructor() {
21540
21540
  this._width = 320;
21541
21541
  this._height = 180;
@@ -21573,10 +21573,10 @@ var Y2 = class {
21573
21573
  return this._facingMode = e, this;
21574
21574
  }
21575
21575
  build() {
21576
- return new Fe(this._width, this._height, this._codec, this._maxFramerate, this._deviceId, this._advanced, this._maxBitrate, this._facingMode);
21576
+ return new Ge(this._width, this._height, this._codec, this._maxFramerate, this._deviceId, this._advanced, this._maxBitrate, this._facingMode);
21577
21577
  }
21578
21578
  };
21579
- var Fe = class {
21579
+ var Ge = class {
21580
21580
  constructor(e, t2, i2, r2, s2, o2, n2, l2) {
21581
21581
  this.width = e, this.height = t2, this.codec = i2, this.maxFramerate = r2, this.maxBitrate = n2, this.deviceId = s2, this.advanced = o2, this.facingMode = l2;
21582
21582
  }
@@ -21593,11 +21593,11 @@ var Fe = class {
21593
21593
  return Te() && this.height && this.width && this.height > this.width ? { width: this.height, height: this.width } : { width: this.width, height: this.height };
21594
21594
  }
21595
21595
  };
21596
- var Le = class {
21596
+ var De = class {
21597
21597
  constructor() {
21598
- this._video = new Y2().build();
21598
+ this._video = new z2().build();
21599
21599
  this._audio = new ee().build();
21600
- this._screen = new Y2().build();
21600
+ this._screen = new z2().build();
21601
21601
  this._simulcast = false;
21602
21602
  }
21603
21603
  video(e) {
@@ -21634,7 +21634,7 @@ function Ds(a11, e) {
21634
21634
  return !(0, import_lodash3.default)(a11[i2], e[i2]);
21635
21635
  };
21636
21636
  }
21637
- var ce = class a3 extends Ae {
21637
+ var ce = class a3 extends Ie {
21638
21638
  constructor(t2, i2, r2, s2, o2 = new ee().build(), n2) {
21639
21639
  super(t2, i2, r2);
21640
21640
  this.eventBus = s2;
@@ -21658,7 +21658,7 @@ var ce = class a3 extends Ae {
21658
21658
  if (Ds(t3, this.settings)("deviceId")) {
21659
21659
  this.manuallySelectedDeviceId = i3 ? this.manuallySelectedDeviceId : t3.deviceId, d2.d(this.TAG, "device change", "manual selection:", this.manuallySelectedDeviceId, "new device:", t3.deviceId), yield this.replaceTrackWith(t3);
21660
21660
  let s3 = this.nativeTrack.getSettings().groupId;
21661
- !i3 && t3.deviceId && (z2.updateSelection("audioInput", { deviceId: t3.deviceId, groupId: s3 }), this.eventBus.deviceChange.publish({ isUserSelection: true, type: "audioInput", selection: { deviceId: t3.deviceId, groupId: s3 } }));
21661
+ !i3 && t3.deviceId && (Q2.updateSelection("audioInput", { deviceId: t3.deviceId, groupId: s3 }), this.eventBus.deviceChange.publish({ isUserSelection: true, type: "audioInput", selection: { deviceId: t3.deviceId, groupId: s3 } }));
21662
21662
  }
21663
21663
  });
21664
21664
  t2.tracks.push(this), this.settings = o2, o2.deviceId !== i2.getSettings().deviceId && !ue(i2) && (this.settings = this.buildNewSettings({ deviceId: i2.getSettings().deviceId })), this.pluginsManager = new vt(this, s2, n2), this.setFirstTrackId(i2.id), Tr() && O2 && document.addEventListener("visibilitychange", this.handleVisibilityChange);
@@ -21689,7 +21689,7 @@ var ce = class a3 extends Ae {
21689
21689
  }
21690
21690
  setEnabled(t2) {
21691
21691
  return c2(this, null, function* () {
21692
- t2 !== this.enabled && (t2 && ue(this.nativeTrack) && (yield this.replaceTrackWith(this.settings)), yield Q2(a3.prototype, this, "setEnabled").call(this, t2), t2 && (this.settings = this.buildNewSettings({ deviceId: this.nativeTrack.getSettings().deviceId })), this.eventBus.localAudioEnabled.publish({ enabled: t2, track: this }));
21692
+ t2 !== this.enabled && (t2 && ue(this.nativeTrack) && (yield this.replaceTrackWith(this.settings)), yield J(a3.prototype, this, "setEnabled").call(this, t2), t2 && (this.settings = this.buildNewSettings({ deviceId: this.nativeTrack.getSettings().deviceId })), this.eventBus.localAudioEnabled.publish({ enabled: t2, track: this }));
21693
21693
  });
21694
21694
  }
21695
21695
  isPublishedTrackId(t2) {
@@ -21736,7 +21736,7 @@ var ce = class a3 extends Ae {
21736
21736
  cleanup() {
21737
21737
  return c2(this, null, function* () {
21738
21738
  var t2;
21739
- Q2(a3.prototype, this, "cleanup").call(this), yield this.pluginsManager.cleanup(), yield this.pluginsManager.closeContext(), this.transceiver = void 0, (t2 = this.processedTrack) == null || t2.stop(), this.isPublished = false, this.destroyAudioLevelMonitor(), Tr() && O2 && document.removeEventListener("visibilitychange", this.handleVisibilityChange);
21739
+ J(a3.prototype, this, "cleanup").call(this), yield this.pluginsManager.cleanup(), yield this.pluginsManager.closeContext(), this.transceiver = void 0, (t2 = this.processedTrack) == null || t2.stop(), this.isPublished = false, this.destroyAudioLevelMonitor(), Tr() && O2 && document.removeEventListener("visibilitychange", this.handleVisibilityChange);
21740
21740
  });
21741
21741
  }
21742
21742
  getTrackIDBeingSent() {
@@ -21747,13 +21747,13 @@ var ce = class a3 extends Ae {
21747
21747
  }
21748
21748
  buildNewSettings(t2) {
21749
21749
  let { volume: i2, codec: r2, maxBitrate: s2, deviceId: o2, advanced: n2, audioMode: l2 } = m(m({}, this.settings), t2);
21750
- return new Ve(i2, r2, s2, o2, n2, l2);
21750
+ return new Fe(i2, r2, s2, o2, n2, l2);
21751
21751
  }
21752
21752
  };
21753
- var se = class a4 extends Ae {
21753
+ var se = class a4 extends Ie {
21754
21754
  setEnabled(e) {
21755
21755
  return c2(this, null, function* () {
21756
- e !== this.enabled && (yield Q2(a4.prototype, this, "setEnabled").call(this, e), yield this.subscribeToAudio(e));
21756
+ e !== this.enabled && (yield J(a4.prototype, this, "setEnabled").call(this, e), yield this.subscribeToAudio(e));
21757
21757
  });
21758
21758
  }
21759
21759
  };
@@ -21862,7 +21862,7 @@ var Rr = class {
21862
21862
  }
21863
21863
  };
21864
21864
  var _s = new Rr();
21865
- var Ar = class {
21865
+ var Ir = class {
21866
21866
  constructor() {
21867
21867
  this.TAG = "[HMSResizeObserverWrapper]";
21868
21868
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21889,7 +21889,7 @@ var Ar = class {
21889
21889
  return e || d2.w(this.TAG, "Resize Observer is not supported"), e;
21890
21890
  }
21891
21891
  };
21892
- var Ns = new Ar();
21892
+ var Ns = new Ir();
21893
21893
  var Xe = class {
21894
21894
  constructor(e) {
21895
21895
  this.track = e;
@@ -21960,7 +21960,7 @@ var Xe = class {
21960
21960
  });
21961
21961
  }
21962
21962
  };
21963
- var Ir = ((t2) => (t2.TRANSFORM = "TRANSFORM", t2.ANALYZE = "ANALYZE", t2))(Ir || {});
21963
+ var Ar = ((t2) => (t2.TRANSFORM = "TRANSFORM", t2.ANALYZE = "ANALYZE", t2))(Ar || {});
21964
21964
  var Hr = ((t2) => (t2["2D"] = "2d", t2.WEBGL = "webgl", t2.WEBGL2 = "webgl2", t2))(Hr || {});
21965
21965
  var yt = class {
21966
21966
  constructor() {
@@ -22136,7 +22136,7 @@ var kt = class {
22136
22136
  return c2(this, null, function* () {
22137
22137
  if (!(!this.pluginsLoopRunning || this.pluginsLoopState === "running"))
22138
22138
  for (; this.pluginsLoopState === "paused"; )
22139
- yield Ce(100);
22139
+ yield Le(100);
22140
22140
  });
22141
22141
  }
22142
22142
  cleanup() {
@@ -22353,7 +22353,7 @@ var ve = class a5 {
22353
22353
  }
22354
22354
  getTracksToPublish() {
22355
22355
  return c2(this, arguments, function* (e = Cr) {
22356
- var T, g2, v2, E2;
22356
+ var T, g2, f2, P7;
22357
22357
  let t2 = this.getAVTrackSettings(e);
22358
22358
  if (!t2)
22359
22359
  return [];
@@ -22367,7 +22367,7 @@ var ve = class a5 {
22367
22367
  } catch (k2) {
22368
22368
  s2 = yield this.retryGetLocalTracks(k2, t2, h2, l2);
22369
22369
  }
22370
- return h2.audio && ((v2 = this.analyticsTimer) == null || v2.end("local_audio_track_time")), h2.video && ((E2 = this.analyticsTimer) == null || E2.end("local_video_track_time")), o2 && r2 && !u2 && s2.push(o2), n2 && i2 && !p2 && s2.push(n2), s2;
22370
+ return h2.audio && ((f2 = this.analyticsTimer) == null || f2.end("local_audio_track_time")), h2.video && ((P7 = this.analyticsTimer) == null || P7.end("local_video_track_time")), o2 && r2 && !u2 && s2.push(o2), n2 && i2 && !p2 && s2.push(n2), s2;
22371
22371
  });
22372
22372
  }
22373
22373
  getLocalTracks() {
@@ -22398,8 +22398,8 @@ var ve = class a5 {
22398
22398
  r2.srcObject = e, r2.addEventListener("loadedmetadata", () => c2(this, null, function* () {
22399
22399
  let { videoWidth: l2, videoHeight: u2 } = r2, p2 = i2.screen, h2 = p2.width * p2.height, T = l2 / u2, g2 = p2.width / p2.height;
22400
22400
  if (T > g2) {
22401
- let v2 = t2.video, E2 = T / g2, k2 = Math.sqrt(E2);
22402
- l2 * u2 > h2 ? (v2.width = l2 / k2, v2.height = u2 / k2) : (v2.height = u2 * k2, v2.width = l2 * k2), yield e.getVideoTracks()[0].applyConstraints(v2);
22401
+ let f2 = t2.video, P7 = T / g2, k2 = Math.sqrt(P7);
22402
+ l2 * u2 > h2 ? (f2.width = l2 / k2, f2.height = u2 / k2) : (f2.height = u2 * k2, f2.width = l2 * k2), yield e.getVideoTracks()[0].applyConstraints(f2);
22403
22403
  }
22404
22404
  }));
22405
22405
  });
@@ -22417,16 +22417,16 @@ var ve = class a5 {
22417
22417
  d2.d("retrieving screenshare with ", { config: i2 }, { constraints: s2 }), o2 = yield navigator.mediaDevices.getDisplayMedia(s2), t2 && (yield this.optimizeScreenShareConstraint(o2, s2));
22418
22418
  } catch (g2) {
22419
22419
  d2.w(this.TAG, "error in getting screenshare - ", g2);
22420
- let v2 = Qe(g2, "screen");
22421
- throw this.eventBus.analytics.publish(y2.publish({ error: v2, devices: this.deviceManager.getDevices(), settings: new ze(r2 == null ? void 0 : r2.video, r2 == null ? void 0 : r2.audio, false) })), v2;
22420
+ let f2 = Ae(g2, "screen");
22421
+ throw this.eventBus.analytics.publish(y2.publish({ error: f2, devices: this.deviceManager.getDevices(), settings: new ze(r2 == null ? void 0 : r2.video, r2 == null ? void 0 : r2.audio, false) })), f2;
22422
22422
  }
22423
- let n2 = [], l2 = new Ge(o2), u2 = o2.getVideoTracks()[0], p2 = new F(l2, u2, "screen", this.eventBus, r2 == null ? void 0 : r2.video, this.store.getRoom());
22423
+ let n2 = [], l2 = new We(o2), u2 = o2.getVideoTracks()[0], p2 = new F(l2, u2, "screen", this.eventBus, r2 == null ? void 0 : r2.video, this.store.getRoom());
22424
22424
  p2.setSimulcastDefinitons(this.store.getSimulcastDefinitionsForPeer(this.store.getLocalPeer(), "screen"));
22425
22425
  try {
22426
22426
  let g2 = this.validateCurrentTabCapture(p2, i2.forceCurrentTab);
22427
22427
  p2.isCurrentTab = g2, yield p2.cropTo(i2.cropTarget);
22428
22428
  } catch (g2) {
22429
- throw o2.getTracks().forEach((v2) => v2.stop()), g2;
22429
+ throw o2.getTracks().forEach((f2) => f2.stop()), g2;
22430
22430
  }
22431
22431
  n2.push(p2);
22432
22432
  let h2 = o2.getAudioTracks()[0];
@@ -22467,7 +22467,7 @@ var ve = class a5 {
22467
22467
  return o2.enabled = false, o2;
22468
22468
  }
22469
22469
  static getEmptyAudioTrack() {
22470
- let e = Ie.getAudioContext(), t2 = e.createOscillator(), i2 = e.createMediaStreamDestination();
22470
+ let e = He.getAudioContext(), t2 = e.createOscillator(), i2 = e.createMediaStreamDestination();
22471
22471
  t2.connect(i2), t2.start();
22472
22472
  let r2 = i2.stream.getAudioTracks()[0];
22473
22473
  return r2.enabled = false, r2;
@@ -22483,13 +22483,13 @@ var ve = class a5 {
22483
22483
  } catch (t2) {
22484
22484
  yield this.deviceManager.init();
22485
22485
  let i2 = !!(!this.deviceManager.hasWebcamPermission && e.video), r2 = !!(!this.deviceManager.hasMicrophonePermission && e.audio), s2 = this.getErrorType(i2, r2);
22486
- throw Qe(t2, s2);
22486
+ throw Ae(t2, s2);
22487
22487
  }
22488
22488
  });
22489
22489
  }
22490
22490
  getAVTrackSettings(e) {
22491
22491
  let t2 = this.getAudioSettings(e), i2 = this.getVideoSettings(e);
22492
- return !t2 && !i2 ? null : new Le().video(i2).audio(t2).build();
22492
+ return !t2 && !i2 ? null : new De().video(i2).audio(t2).build();
22493
22493
  }
22494
22494
  isInIframe() {
22495
22495
  try {
@@ -22500,16 +22500,16 @@ var ve = class a5 {
22500
22500
  }
22501
22501
  retryGetLocalTracks(e, t2, i2, r2) {
22502
22502
  return c2(this, null, function* () {
22503
- if (e instanceof f2 && e.action === "TRACK") {
22503
+ if (e instanceof v2 && e.action === "TRACK") {
22504
22504
  this.observer.onFailure(e);
22505
- let s2 = e.code === P4.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
22505
+ let s2 = e.code === E2.TracksErrors.OVER_CONSTRAINED, o2 = e.message.includes("audio"), n2 = e.message.includes("video");
22506
22506
  if (s2) {
22507
- let l2 = new Le().video(new Fe()).audio(new Ve()).build();
22507
+ let l2 = new De().video(new Ge()).audio(new Fe()).build();
22508
22508
  d2.w(this.TAG, "Fetch AV Tracks failed with overconstrained error", { fetchTrackOptions: i2 }, { error: e });
22509
22509
  try {
22510
22510
  return yield this.getLocalTracks(i2, l2, r2);
22511
22511
  } catch (u2) {
22512
- let p2 = u2 instanceof f2 ? u2.nativeError : u2, h2 = u2;
22512
+ let p2 = u2 instanceof v2 ? u2.nativeError : u2, h2 = u2;
22513
22513
  if ((p2 == null ? void 0 : p2.name) === "OverconstrainedError") {
22514
22514
  let T = S2.TracksErrors.GenericTrack("TRACK", "Overconstrained error after dropping all constraints");
22515
22515
  T.addNativeError(p2), h2 = T;
@@ -22556,7 +22556,7 @@ var ve = class a5 {
22556
22556
  if (!t2 || !((n2 = t2.allowed) != null && n2.includes("video")))
22557
22557
  return null;
22558
22558
  let i2 = this.store.getLocalPeer(), r2 = i2 == null ? void 0 : i2.videoTrack, s2 = (r2 == null ? void 0 : r2.settings.deviceId) || e.videoDeviceId, o2 = t2.video;
22559
- return new Y2().codec(o2.codec).maxBitrate(o2.bitRate).maxFramerate(o2.frameRate).setWidth(o2.width).setHeight(o2.height).deviceId(s2 || Cr.videoDeviceId).build();
22559
+ return new z2().codec(o2.codec).maxBitrate(o2.bitRate).maxFramerate(o2.frameRate).setWidth(o2.width).setHeight(o2.height).deviceId(s2 || Cr.videoDeviceId).build();
22560
22560
  }
22561
22561
  getScreenshareSettings(e = false) {
22562
22562
  var r2;
@@ -22564,7 +22564,7 @@ var ve = class a5 {
22564
22564
  if (!t2 || !((r2 = t2.allowed) != null && r2.includes("screen")))
22565
22565
  return null;
22566
22566
  let i2 = t2.screen;
22567
- return { video: new Y2().maxBitrate(i2.bitRate, false).codec(i2.codec).maxFramerate(i2.frameRate).setWidth(i2.width).setHeight(i2.height).build(), audio: e ? void 0 : new ee().build() };
22567
+ return { video: new z2().maxBitrate(i2.bitRate, false).codec(i2.codec).maxFramerate(i2.frameRate).setWidth(i2.width).setHeight(i2.height).build(), audio: e ? void 0 : new ee().build() };
22568
22568
  }
22569
22569
  getOrDefaultScreenshareConfig(e) {
22570
22570
  return c2(this, null, function* () {
@@ -22575,7 +22575,7 @@ var ve = class a5 {
22575
22575
  }
22576
22576
  createHMSLocalTracks(e, t2, i2) {
22577
22577
  let r2 = e.find((n2) => n2.kind === "video"), s2 = e.find((n2) => n2.kind === "audio");
22578
- i2 ? e.forEach((n2) => i2 == null ? void 0 : i2.nativeStream.addTrack(n2)) : i2 = new Ge(new MediaStream(e));
22578
+ i2 ? e.forEach((n2) => i2 == null ? void 0 : i2.nativeStream.addTrack(n2)) : i2 = new We(new MediaStream(e));
22579
22579
  let o2 = [];
22580
22580
  if (s2 && (t2 != null && t2.audio)) {
22581
22581
  let n2 = new ce(i2, s2, "regular", this.eventBus, t2.audio, this.store.getRoom());
@@ -22594,7 +22594,7 @@ function xs(a11, e) {
22594
22594
  };
22595
22595
  }
22596
22596
  var F = class a6 extends Ye {
22597
- constructor(t2, i2, r2, s2, o2 = new Y2().build(), n2) {
22597
+ constructor(t2, i2, r2, s2, o2 = new z2().build(), n2) {
22598
22598
  super(t2, i2, r2);
22599
22599
  this.eventBus = s2;
22600
22600
  this._layerDefinitions = [];
@@ -22611,7 +22611,7 @@ var F = class a6 extends Ye {
22611
22611
  });
22612
22612
  this.buildNewSettings = (t3) => {
22613
22613
  let { width: i3, height: r3, codec: s3, maxFramerate: o3, maxBitrate: n3, deviceId: l2, advanced: u2, facingMode: p2 } = m(m({}, this.settings), t3);
22614
- return new Fe(i3, r3, s3, o3, l2, u2, n3, p2);
22614
+ return new Ge(i3, r3, s3, o3, l2, u2, n3, p2);
22615
22615
  };
22616
22616
  this.handleSettingsChange = (t3) => c2(this, null, function* () {
22617
22617
  let i3 = this.stream, r3 = xs(t3, this.settings);
@@ -22630,7 +22630,7 @@ var F = class a6 extends Ye {
22630
22630
  yield this.replaceSender(o3, this.enabled), this.nativeTrack = o3, yield this.processPlugins(), this.videoHandler.updateSinks();
22631
22631
  }
22632
22632
  let s3 = this.nativeTrack.getSettings().groupId;
22633
- !i3 && t3.deviceId && (z2.updateSelection("videoInput", { deviceId: t3.deviceId, groupId: s3 }), this.eventBus.deviceChange.publish({ isUserSelection: true, type: "video", selection: { deviceId: t3.deviceId, groupId: s3 } }));
22633
+ !i3 && t3.deviceId && (Q2.updateSelection("videoInput", { deviceId: t3.deviceId, groupId: s3 }), this.eventBus.deviceChange.publish({ isUserSelection: true, type: "video", selection: { deviceId: t3.deviceId, groupId: s3 } }));
22634
22634
  }
22635
22635
  });
22636
22636
  this.removeOrReplaceProcessedTrack = (t3) => c2(this, null, function* () {
@@ -22653,7 +22653,7 @@ var F = class a6 extends Ye {
22653
22653
  if (t2 !== this.enabled) {
22654
22654
  if (this.source === "regular") {
22655
22655
  let r2;
22656
- t2 ? r2 = yield this.replaceTrackWith(this.settings) : r2 = yield this.replaceTrackWithBlank(), yield this.replaceSender(r2, t2), (i2 = this.nativeTrack) == null || i2.stop(), this.nativeTrack = r2, yield Q2(a6.prototype, this, "setEnabled").call(this, t2), t2 && (yield this.pluginsManager.waitForRestart(), yield this.processPlugins(), this.settings = this.buildNewSettings({ deviceId: r2.getSettings().deviceId })), this.videoHandler.updateSinks();
22656
+ t2 ? r2 = yield this.replaceTrackWith(this.settings) : r2 = yield this.replaceTrackWithBlank(), yield this.replaceSender(r2, t2), (i2 = this.nativeTrack) == null || i2.stop(), this.nativeTrack = r2, yield J(a6.prototype, this, "setEnabled").call(this, t2), t2 && (yield this.pluginsManager.waitForRestart(), yield this.processPlugins(), this.settings = this.buildNewSettings({ deviceId: r2.getSettings().deviceId })), this.videoHandler.updateSinks();
22657
22657
  }
22658
22658
  this.eventBus.localVideoEnabled.publish({ enabled: t2, track: this });
22659
22659
  }
@@ -22724,7 +22724,7 @@ var F = class a6 extends Ye {
22724
22724
  cleanup() {
22725
22725
  return c2(this, null, function* () {
22726
22726
  var t2;
22727
- Q2(a6.prototype, this, "cleanup").call(this), this.transceiver = void 0, yield this.pluginsManager.cleanup(), (t2 = this.processedTrack) == null || t2.stop(), this.isPublished = false, O2 && Te() && document.removeEventListener("visibilitychange", this.handleVisibilityChange);
22727
+ J(a6.prototype, this, "cleanup").call(this), this.transceiver = void 0, yield this.pluginsManager.cleanup(), (t2 = this.processedTrack) == null || t2.stop(), this.isPublished = false, O2 && Te() && document.removeEventListener("visibilitychange", this.handleVisibilityChange);
22728
22728
  });
22729
22729
  }
22730
22730
  cropTo(t2) {
@@ -22767,7 +22767,7 @@ var F = class a6 extends Ye {
22767
22767
  let i2 = t2 === "environment" ? "user" : "environment";
22768
22768
  (s2 = this.nativeTrack) == null || s2.stop();
22769
22769
  let r2 = yield this.replaceTrackWith(this.buildNewSettings({ facingMode: i2, deviceId: void 0 }));
22770
- yield this.replaceSender(r2, this.enabled), this.nativeTrack = r2, yield this.processPlugins(), this.videoHandler.updateSinks(), this.settings = this.buildNewSettings({ deviceId: this.nativeTrack.getSettings().deviceId, facingMode: i2 }), z2.updateSelection("videoInput", { deviceId: this.settings.deviceId, groupId: this.nativeTrack.getSettings().groupId });
22770
+ yield this.replaceSender(r2, this.enabled), this.nativeTrack = r2, yield this.processPlugins(), this.videoHandler.updateSinks(), this.settings = this.buildNewSettings({ deviceId: this.nativeTrack.getSettings().deviceId, facingMode: i2 }), Q2.updateSelection("videoInput", { deviceId: this.settings.deviceId, groupId: this.nativeTrack.getSettings().groupId });
22771
22771
  });
22772
22772
  }
22773
22773
  replaceTrackWith(t2) {
@@ -22832,7 +22832,7 @@ var U2 = class a7 extends Ye {
22832
22832
  }
22833
22833
  setEnabled(t2) {
22834
22834
  return c2(this, null, function* () {
22835
- t2 !== this.enabled && (Q2(a7.prototype, this, "setEnabled").call(this, t2), this.videoHandler.updateSinks(true));
22835
+ t2 !== this.enabled && (J(a7.prototype, this, "setEnabled").call(this, t2), this.videoHandler.updateSinks(true));
22836
22836
  });
22837
22837
  }
22838
22838
  setPreferredLayer(t2) {
@@ -22871,12 +22871,12 @@ var U2 = class a7 extends Ye {
22871
22871
  }
22872
22872
  addSink(t2, i2 = true) {
22873
22873
  return c2(this, null, function* () {
22874
- ue(this.nativeTrack) ? yield this.requestLayer(this.preferredLayer, "addSink") : (Q2(a7.prototype, this, "addSink").call(this, t2), i2 && (yield this.updateLayer("addSink"))), this.pushInHistory("uiSetLayer-high");
22874
+ ue(this.nativeTrack) ? yield this.requestLayer(this.preferredLayer, "addSink") : (J(a7.prototype, this, "addSink").call(this, t2), i2 && (yield this.updateLayer("addSink"))), this.pushInHistory("uiSetLayer-high");
22875
22875
  });
22876
22876
  }
22877
22877
  removeSink(t2, i2 = true) {
22878
22878
  return c2(this, null, function* () {
22879
- Q2(a7.prototype, this, "removeSink").call(this, t2), i2 && (yield this.updateLayer("removeSink")), this._degraded = false, this.pushInHistory("uiSetLayer-none");
22879
+ J(a7.prototype, this, "removeSink").call(this, t2), i2 && (yield this.updateLayer("removeSink")), this._degraded = false, this.pushInHistory("uiSetLayer-none");
22880
22880
  });
22881
22881
  }
22882
22882
  getSimulcastDefinitions() {
@@ -22936,7 +22936,7 @@ var _r = class {
22936
22936
  e.time = (/* @__PURE__ */ new Date()).toISOString().split("T")[1], this.history.push(e);
22937
22937
  }
22938
22938
  };
22939
- var Ge = class extends je {
22939
+ var We = class extends Je {
22940
22940
  constructor() {
22941
22941
  super(...arguments);
22942
22942
  this.TAG = "[HMSLocalStream]";
@@ -22982,12 +22982,12 @@ var Ge = class extends je {
22982
22982
  d2.d(this.TAG, "Simulcast enabled with layers", i2), r2.push(...i2);
22983
22983
  else {
22984
22984
  let s2 = { active: this.nativeStream.active };
22985
- t2.settings.maxBitrate && !Ue && (s2.maxBitrate = t2.settings.maxBitrate), r2.push(s2);
22985
+ t2.settings.maxBitrate && !Be && (s2.maxBitrate = t2.settings.maxBitrate), r2.push(s2);
22986
22986
  }
22987
22987
  return r2;
22988
22988
  }
22989
22989
  };
22990
- var fe = class extends je {
22990
+ var fe = class extends Je {
22991
22991
  constructor(t2, i2) {
22992
22992
  super(t2);
22993
22993
  this.audio = true;
@@ -23049,8 +23049,8 @@ var $s = (a11, e, t2, i2) => c2(void 0, null, function* () {
23049
23049
  var k2, w2;
23050
23050
  let h2 = (k2 = l2[p2]) == null ? void 0 : k2.codecId, T = h2 ? n2[h2] : void 0, g2;
23051
23051
  T && (g2 = T.substring(T.indexOf("/") + 1));
23052
- let v2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), E2 = u2[v2.ssrc];
23053
- s2[p2] = M2(m({}, v2), { bitrate: Et("bytesSent", v2, i2 == null ? void 0 : i2[p2]), packetsLost: E2 == null ? void 0 : E2.packetsLost, jitter: E2 == null ? void 0 : E2.jitter, roundTripTime: E2 == null ? void 0 : E2.roundTripTime, totalRoundTripTime: E2 == null ? void 0 : E2.totalRoundTripTime, peerName: t2, peerID: e.peerId, enabled: e.enabled, codec: g2 });
23052
+ let f2 = M2(m({}, l2[p2]), { rid: (w2 = l2[p2]) == null ? void 0 : w2.rid }), P7 = u2[f2.ssrc];
23053
+ s2[p2] = M2(m({}, f2), { bitrate: Et("bytesSent", f2, i2 == null ? void 0 : i2[p2]), packetsLost: P7 == null ? void 0 : P7.packetsLost, jitter: P7 == null ? void 0 : P7.jitter, roundTripTime: P7 == null ? void 0 : P7.roundTripTime, totalRoundTripTime: P7 == null ? void 0 : P7.totalRoundTripTime, peerName: t2, peerID: e.peerId, enabled: e.enabled, codec: g2 });
23054
23054
  });
23055
23055
  } catch (n2) {
23056
23056
  a11.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("TRACK", `Error getting local track stats ${e.trackId} - ${n2.message}`))), d2.w("[HMSWebrtcStats]", "Error in getting local track stats", e, n2, n2.name);
@@ -23134,7 +23134,7 @@ var pi = class {
23134
23134
  yield this.updateLocalPeerStats(), yield this.updateLocalTrackStats(), yield this.updateRemoteTrackStats();
23135
23135
  });
23136
23136
  this.updateLocalPeerStats = () => c2(this, null, function* () {
23137
- var p2, h2, T, g2, v2, E2;
23137
+ var p2, h2, T, g2, f2, P7;
23138
23138
  let e2 = this.getLocalPeerStats(), t3;
23139
23139
  try {
23140
23140
  t3 = yield (h2 = (p2 = this.getStats).publish) == null ? void 0 : h2.call(p2);
@@ -23147,7 +23147,7 @@ var pi = class {
23147
23147
  } catch (k2) {
23148
23148
  this.eventBus.analytics.publish(y2.rtcStatsFailed(S2.WebrtcErrors.StatsFailed("SUBSCRIBE", k2.message))), d2.w(this.TAG, "Error in getting subscribe stats", k2);
23149
23149
  }
23150
- let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = qs(r3), l2 = xr(o2, (v2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : v2.packetsLost, s2 == null ? void 0 : s2.timestamp, (E2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : E2.timestamp), u2 = s2 && Object.assign(s2, { packetsLostRate: l2, jitter: n2, packetsLost: o2 });
23150
+ let s2 = r3 && Or("subscribe", r3, e2), { packetsLost: o2, jitter: n2 } = qs(r3), l2 = xr(o2, (f2 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : f2.packetsLost, s2 == null ? void 0 : s2.timestamp, (P7 = e2 == null ? void 0 : e2.subscribe) == null ? void 0 : P7.timestamp), u2 = s2 && Object.assign(s2, { packetsLostRate: l2, jitter: n2, packetsLost: o2 });
23151
23151
  this.peerStats[this.localPeerID] = { publish: i3, subscribe: u2 };
23152
23152
  });
23153
23153
  this.updateRemoteTrackStats = () => c2(this, null, function* () {
@@ -23226,7 +23226,7 @@ var hi = class {
23226
23226
  startLoop() {
23227
23227
  return c2(this, null, function* () {
23228
23228
  for (; this.isMonitored; )
23229
- yield this.handleStatsUpdate(), yield K(this.interval);
23229
+ yield this.handleStatsUpdate(), yield Z2(this.interval);
23230
23230
  });
23231
23231
  }
23232
23232
  cleanup() {
@@ -23275,7 +23275,7 @@ var it = class {
23275
23275
  var rt = class {
23276
23276
  };
23277
23277
  rt.makePeerId = () => Ro();
23278
- var We = class extends it {
23278
+ var $e = class extends it {
23279
23279
  constructor(t2) {
23280
23280
  super(M2(m({}, t2), { peerId: rt.makePeerId(), isLocal: true }));
23281
23281
  this.isLocal = true;
@@ -23374,7 +23374,7 @@ var st = class {
23374
23374
  });
23375
23375
  }
23376
23376
  };
23377
- var De = class extends Ao {
23377
+ var we = class extends Io {
23378
23378
  on(e, t2) {
23379
23379
  return super.on(e, t2);
23380
23380
  }
@@ -23388,7 +23388,7 @@ var De = class extends Ao {
23388
23388
  return super.listeners(e);
23389
23389
  }
23390
23390
  };
23391
- var Si = class extends De {
23391
+ var Si = class extends we {
23392
23392
  constructor() {
23393
23393
  super(...arguments);
23394
23394
  this.audioElement = null;
@@ -23440,7 +23440,7 @@ var Si = class extends De {
23440
23440
  }), this.audioContextManager = new st(t2), t2;
23441
23441
  }
23442
23442
  };
23443
- var gi = class extends De {
23443
+ var gi = class extends we {
23444
23444
  constructor() {
23445
23445
  super(...arguments);
23446
23446
  this.TAG = "[PlaylistVideoManager]";
@@ -23515,7 +23515,7 @@ var gi = class extends De {
23515
23515
  }
23516
23516
  };
23517
23517
  var Ti = { audio: { list: [], currentIndex: -1, isAutoplayOn: true }, video: { list: [], currentIndex: -1, isAutoplayOn: true } };
23518
- var Rt = class extends De {
23518
+ var Rt = class extends we {
23519
23519
  constructor(t2, i2) {
23520
23520
  super();
23521
23521
  this.sdk = t2;
@@ -23736,34 +23736,34 @@ var Rt = class extends De {
23736
23736
  }
23737
23737
  };
23738
23738
  var B2 = (a11) => a11.room;
23739
- var Io = (a11) => a11.errors;
23740
- var Wh = createSelector(Io, (a11) => a11.length === 0 ? null : a11.at(-1));
23739
+ var Ao = (a11) => a11.errors;
23740
+ var Wh = createSelector(Ao, (a11) => a11.length === 0 ? null : a11.at(-1));
23741
23741
  var $h = createSelector(B2, (a11) => a11.id);
23742
- var q2 = (a11) => a11.peers;
23742
+ var K = (a11) => a11.peers;
23743
23743
  var fi = (a11) => a11.messages.byID;
23744
23744
  var Js = (a11) => a11.messages.allIDs;
23745
23745
  var N2 = (a11) => a11.tracks;
23746
23746
  var Qs = (a11) => a11.settings;
23747
23747
  var Ur = (a11) => a11.appData;
23748
23748
  var Ho = (a11) => a11.speakers;
23749
- var we = createSelector([B2], (a11) => a11 && a11.isConnected);
23750
- var jh = createSelector([we, B2], (a11, e) => a11 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
23749
+ var _e = createSelector([B2], (a11) => a11 && a11.isConnected);
23750
+ var jh = createSelector([_e, B2], (a11, e) => a11 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
23751
23751
  var Co = (a11) => a11.hideLocalPeer;
23752
- var me = createSelector([B2, q2, Co], (a11, e, t2) => t2 ? a11.peers.filter((i2) => a11.localPeer !== i2).map((i2) => e[i2]) : a11.peers.map((i2) => e[i2]));
23752
+ var me = createSelector([B2, K, Co], (a11, e, t2) => t2 ? a11.peers.filter((i2) => a11.localPeer !== i2).map((i2) => e[i2]) : a11.peers.map((i2) => e[i2]));
23753
23753
  var Lo = createSelector(N2, (a11) => Object.values(a11));
23754
- var te = createSelector(B2, q2, (a11, e) => e[a11.localPeer]);
23754
+ var te = createSelector(B2, K, (a11, e) => e[a11.localPeer]);
23755
23755
  var ye = createSelector(B2, (a11) => a11.localPeer);
23756
23756
  var Jh = createSelector(te, (a11) => a11 == null ? void 0 : a11.name);
23757
23757
  var Qh = createSelector(te, (a11) => a11 == null ? void 0 : a11.roleName);
23758
23758
  var ae = createSelector(te, (a11) => a11 == null ? void 0 : a11.audioTrack);
23759
- var X2 = createSelector(te, (a11) => a11 == null ? void 0 : a11.videoTrack);
23759
+ var Y2 = createSelector(te, (a11) => a11 == null ? void 0 : a11.videoTrack);
23760
23760
  var Do = createSelector(te, (a11) => a11 == null ? void 0 : a11.auxiliaryTracks);
23761
- var zs = createSelector([ae, X2, Do], (a11, e, t2) => {
23761
+ var zs = createSelector([ae, Y2, Do], (a11, e, t2) => {
23762
23762
  let i2 = t2 ? [...t2] : [];
23763
23763
  return a11 && i2.unshift(a11), e && i2.unshift(e), i2;
23764
23764
  });
23765
23765
  var zh = createSelector(me, (a11) => a11.filter((e) => !e.isLocal));
23766
- var Yh = createSelector(q2, Ho, (a11, e) => {
23766
+ var Yh = createSelector(K, Ho, (a11, e) => {
23767
23767
  let t2 = Object.entries(e).sort((i2, r2) => {
23768
23768
  var n2, l2;
23769
23769
  let s2 = ((n2 = i2[1]) == null ? void 0 : n2.audioLevel) || 0;
@@ -23778,20 +23778,20 @@ var Yh = createSelector(q2, Ho, (a11, e) => {
23778
23778
  });
23779
23779
  var Br = (a11) => {
23780
23780
  let e = te(a11);
23781
- return qe(a11, e == null ? void 0 : e.videoTrack);
23781
+ return je(a11, e == null ? void 0 : e.videoTrack);
23782
23782
  };
23783
23783
  var Ys = (a11) => {
23784
23784
  let e = te(a11);
23785
23785
  return ns(a11, e == null ? void 0 : e.videoTrack);
23786
23786
  };
23787
23787
  var Vr = createSelector(te, N2, (a11, e) => {
23788
- let { video: t2, audio: i2 } = xe(e, a11);
23788
+ let { video: t2, audio: i2 } = Ue(e, a11);
23789
23789
  return !!(t2 || i2);
23790
23790
  });
23791
- var wo = createSelector(q2, N2, (a11, e) => {
23791
+ var wo = createSelector(K, N2, (a11, e) => {
23792
23792
  let t2;
23793
23793
  for (let i2 in a11) {
23794
- let r2 = a11[i2], { video: s2, audio: o2 } = xe(e, r2);
23794
+ let r2 = a11[i2], { video: s2, audio: o2 } = Ue(e, r2);
23795
23795
  if (s2)
23796
23796
  return r2;
23797
23797
  o2 && !t2 && (t2 = r2);
@@ -23799,29 +23799,29 @@ var wo = createSelector(q2, N2, (a11, e) => {
23799
23799
  return t2;
23800
23800
  });
23801
23801
  var Zh = createSelector(wo, (a11) => !!a11);
23802
- var em = createSelector(q2, N2, (a11, e) => {
23802
+ var em = createSelector(K, N2, (a11, e) => {
23803
23803
  for (let t2 in a11) {
23804
- let i2 = a11[t2], { audio: r2, video: s2 } = xe(e, i2);
23804
+ let i2 = a11[t2], { audio: r2, video: s2 } = Ue(e, i2);
23805
23805
  if (!s2 && r2)
23806
23806
  return i2;
23807
23807
  }
23808
23808
  });
23809
- var tm = createSelector(q2, N2, (a11, e) => {
23809
+ var tm = createSelector(K, N2, (a11, e) => {
23810
23810
  let t2 = [], i2 = [];
23811
23811
  for (let r2 in a11) {
23812
- let s2 = a11[r2], { video: o2, audio: n2 } = xe(e, s2);
23812
+ let s2 = a11[r2], { video: o2, audio: n2 } = Ue(e, s2);
23813
23813
  o2 ? t2.push(s2) : n2 && i2.push(s2);
23814
23814
  }
23815
23815
  return t2.concat(i2);
23816
23816
  });
23817
- var im = createSelector(q2, N2, (a11, e) => {
23817
+ var im = createSelector(K, N2, (a11, e) => {
23818
23818
  for (let t2 in e) {
23819
23819
  let i2 = e[t2];
23820
23820
  if (mt(i2) && ht(i2) && i2.peerId)
23821
23821
  return a11[i2.peerId];
23822
23822
  }
23823
23823
  });
23824
- var rm = createSelector(q2, N2, (a11, e) => {
23824
+ var rm = createSelector(K, N2, (a11, e) => {
23825
23825
  for (let t2 in e) {
23826
23826
  let i2 = e[t2];
23827
23827
  if (ri(i2) && i2.peerId)
@@ -23831,13 +23831,13 @@ var rm = createSelector(q2, N2, (a11, e) => {
23831
23831
  var sm = createSelector(Lo, (a11) => a11.filter(os));
23832
23832
  var am = createSelector(Js, (a11) => a11.length);
23833
23833
  var om = createSelector(fi, (a11) => Object.values(a11).filter((e) => !e.read).length);
23834
- var At = createSelector(Js, fi, (a11, e) => {
23834
+ var It = createSelector(Js, fi, (a11, e) => {
23835
23835
  let t2 = [];
23836
23836
  return a11.forEach((i2) => {
23837
23837
  t2.push(e[i2]);
23838
23838
  }), t2;
23839
23839
  });
23840
- var _o = createSelector(At, (a11) => a11.filter((e) => {
23840
+ var _o = createSelector(It, (a11) => a11.filter((e) => {
23841
23841
  var t2;
23842
23842
  return !e.recipientPeer && !(e.recipientRoles && ((t2 = e.recipientRoles) == null ? void 0 : t2.length) > 0);
23843
23843
  }));
@@ -23885,10 +23885,10 @@ var da = (a11 = "audio") => createSelector(ra(a11), Fr(a11), (e, t2) => {
23885
23885
  });
23886
23886
  var la = { selection: Fr("audio"), progress: sa("audio"), currentTime: aa("audio"), playbackRate: oa("audio"), volume: na("audio"), list: ca("audio"), selectedItem: da("audio") };
23887
23887
  var ua = { selection: Fr("video"), progress: sa("video"), currentTime: aa("video"), playbackRate: oa("video"), volume: na("video"), list: ca("video"), selectedItem: da("video") };
23888
- function I2(a11) {
23888
+ function A2(a11) {
23889
23889
  return (e) => (t2) => a11(t2, e);
23890
23890
  }
23891
- var It = "HMS-Store:";
23891
+ var At = "HMS-Store:";
23892
23892
  var b2 = class {
23893
23893
  static v(e, ...t2) {
23894
23894
  this.log(0, e, ...t2);
@@ -23918,23 +23918,23 @@ var b2 = class {
23918
23918
  if (!(this.level.valueOf() > e.valueOf()))
23919
23919
  switch (e) {
23920
23920
  case 0: {
23921
- console.log(It, ...t2);
23921
+ console.log(At, ...t2);
23922
23922
  break;
23923
23923
  }
23924
23924
  case 1: {
23925
- console.debug(It, ...t2);
23925
+ console.debug(At, ...t2);
23926
23926
  break;
23927
23927
  }
23928
23928
  case 2: {
23929
- console.info(It, ...t2);
23929
+ console.info(At, ...t2);
23930
23930
  break;
23931
23931
  }
23932
23932
  case 3: {
23933
- console.warn(It, ...t2);
23933
+ console.warn(At, ...t2);
23934
23934
  break;
23935
23935
  }
23936
23936
  case 6: {
23937
- console.error(It, ...t2);
23937
+ console.error(At, ...t2);
23938
23938
  break;
23939
23939
  }
23940
23940
  case 4: {
@@ -23960,7 +23960,7 @@ var Ht = (a11, e) => e;
23960
23960
  var pa = (a11, e) => e;
23961
23961
  var xo = (a11, e) => e;
23962
23962
  var Uo = (a11, e) => e;
23963
- var j2 = createSelector([q2, Gr], (a11, e) => e ? a11[e] : null);
23963
+ var q2 = createSelector([K, Gr], (a11, e) => e ? a11[e] : null);
23964
23964
  var Wr = createSelector([N2, Ht], (a11, e) => e ? a11[e] : null);
23965
23965
  var Bo = createSelector([N2, Ht], (a11, e) => {
23966
23966
  if (!e)
@@ -23987,8 +23987,8 @@ var Go = createSelector([N2, Ht], (a11, e) => {
23987
23987
  return (t2 == null ? void 0 : t2.type) === "video" && (t2 == null ? void 0 : t2.source) === "screen" ? t2 : null;
23988
23988
  });
23989
23989
  var Wo = createSelector([ta, Uo], (a11, e) => e ? a11[e] : null);
23990
- var Z2 = I2(j2);
23991
- var Om = I2(createSelector([Ur, xo], (a11, e) => {
23990
+ var X2 = A2(q2);
23991
+ var Om = A2(createSelector([Ur, xo], (a11, e) => {
23992
23992
  if (a11)
23993
23993
  return e ? a11[e] : a11;
23994
23994
  }));
@@ -23998,89 +23998,89 @@ function xm(a11) {
23998
23998
  return a11 ? e.sessionStore[a11] : e.sessionStore;
23999
23999
  };
24000
24000
  }
24001
- var Bm = I2(createSelector(j2, (a11) => a11 == null ? void 0 : a11.name));
24002
- var Vm = I2(createSelector(j2, (a11) => a11 == null ? void 0 : a11.type));
24003
- var vi = I2(Wr);
24004
- var ha = I2(Bo);
24005
- var Fm = I2(Vo);
24006
- var Gm = I2(Fo);
24007
- var Wm = I2(Go);
24008
- var $o = I2((a11, e) => {
24009
- let t2 = j2(a11, e);
24001
+ var Bm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.name));
24002
+ var Vm = A2(createSelector(q2, (a11) => a11 == null ? void 0 : a11.type));
24003
+ var vi = A2(Wr);
24004
+ var ha = A2(Bo);
24005
+ var Fm = A2(Vo);
24006
+ var Gm = A2(Fo);
24007
+ var Wm = A2(Go);
24008
+ var $o = A2((a11, e) => {
24009
+ let t2 = q2(a11, e);
24010
24010
  if (t2 && t2.videoTrack && t2.videoTrack !== "")
24011
24011
  return a11.tracks[t2.videoTrack];
24012
24012
  });
24013
- var Ko = I2((a11, e) => {
24014
- let t2 = j2(a11, e);
24013
+ var Ko = A2((a11, e) => {
24014
+ let t2 = q2(a11, e);
24015
24015
  if (t2 && t2.audioTrack && t2.audioTrack !== "")
24016
24016
  return a11.tracks[t2.audioTrack];
24017
24017
  });
24018
- var Km = I2((a11, e) => {
24019
- let t2 = j2(a11, e);
24018
+ var Km = A2((a11, e) => {
24019
+ let t2 = q2(a11, e);
24020
24020
  return (t2 == null ? void 0 : t2.auxiliaryTracks.map((i2) => a11.tracks[i2])) || [];
24021
24021
  });
24022
24022
  var ma = (a11, e) => e ? a11.speakers[e] : null;
24023
- var qm = I2(createSelector(ma, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24023
+ var qm = A2(createSelector(ma, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24024
24024
  var qo = (a11, e) => {
24025
24025
  let t2 = Ko(e)(a11);
24026
24026
  return ma(a11, t2 == null ? void 0 : t2.id);
24027
24027
  };
24028
- var jm = I2(createSelector(qo, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24029
- var Jm = I2((a11, e) => {
24028
+ var jm = A2(createSelector(qo, (a11) => (a11 == null ? void 0 : a11.audioLevel) || 0));
24029
+ var Jm = A2((a11, e) => {
24030
24030
  if (e)
24031
24031
  return a11.connectionQualities[e];
24032
24032
  });
24033
- var Qm = I2((a11, e) => {
24034
- let t2 = j2(a11, e);
24033
+ var Qm = A2((a11, e) => {
24034
+ let t2 = q2(a11, e);
24035
24035
  if (t2) {
24036
24036
  let i2 = t2 == null ? void 0 : t2.auxiliaryTracks.find((r2) => pt(a11.tracks[r2]));
24037
24037
  return i2 ? a11.tracks[i2] : void 0;
24038
24038
  }
24039
24039
  });
24040
- var zm = I2(createSelector(N2, j2, (a11, e) => {
24040
+ var zm = A2(createSelector(N2, q2, (a11, e) => {
24041
24041
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24042
24042
  let r2 = a11[i2];
24043
24043
  return mt(r2) && ht(r2);
24044
24044
  });
24045
24045
  return t2 ? a11[t2] : void 0;
24046
24046
  }));
24047
- var Ym = I2(createSelector(N2, j2, (a11, e) => {
24047
+ var Ym = A2(createSelector(N2, q2, (a11, e) => {
24048
24048
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24049
24049
  let r2 = a11[i2];
24050
24050
  return mt(r2) && pt(r2);
24051
24051
  });
24052
24052
  return t2 ? a11[t2] : void 0;
24053
24053
  }));
24054
- var Xm = I2(createSelector(N2, j2, (a11, e) => {
24054
+ var Xm = A2(createSelector(N2, q2, (a11, e) => {
24055
24055
  let t2 = e == null ? void 0 : e.auxiliaryTracks.find((i2) => {
24056
24056
  let r2 = a11[i2];
24057
24057
  return ri(r2) && pt(r2);
24058
24058
  });
24059
24059
  return t2 ? a11[t2] : void 0;
24060
24060
  }));
24061
- var Sa = I2(createSelector(N2, j2, (a11, e) => xe(a11, e)));
24061
+ var Sa = A2(createSelector(N2, q2, (a11, e) => Ue(a11, e)));
24062
24062
  var ga = (a11) => createSelector(Sa(a11), (e) => e.audio);
24063
- var eS = I2((a11, e) => {
24064
- let t2 = j2(a11, e);
24065
- return qe(a11, t2 == null ? void 0 : t2.audioTrack);
24063
+ var eS = A2((a11, e) => {
24064
+ let t2 = q2(a11, e);
24065
+ return je(a11, t2 == null ? void 0 : t2.audioTrack);
24066
24066
  });
24067
- var tS = I2((a11, e) => {
24068
- let t2 = j2(a11, e);
24069
- return qe(a11, t2 == null ? void 0 : t2.videoTrack);
24067
+ var tS = A2((a11, e) => {
24068
+ let t2 = q2(a11, e);
24069
+ return je(a11, t2 == null ? void 0 : t2.videoTrack);
24070
24070
  });
24071
- var Ta = I2((a11, e) => {
24071
+ var Ta = A2((a11, e) => {
24072
24072
  if (e && a11.tracks[e])
24073
24073
  return a11.tracks[e].volume === 0;
24074
24074
  });
24075
- var iS = I2((a11, e) => {
24076
- let t2 = j2(a11, e);
24075
+ var iS = A2((a11, e) => {
24076
+ let t2 = q2(a11, e);
24077
24077
  return Ta(t2 == null ? void 0 : t2.audioTrack)(a11);
24078
24078
  });
24079
- var rS = I2((a11, e) => {
24079
+ var rS = A2((a11, e) => {
24080
24080
  let t2 = ga(e)(a11);
24081
24081
  return Ta(t2 == null ? void 0 : t2.id)(a11);
24082
24082
  });
24083
- var fa = I2((a11, e) => {
24083
+ var fa = A2((a11, e) => {
24084
24084
  let t2 = Wr(a11, e);
24085
24085
  if (t2) {
24086
24086
  if (t2.type !== "audio") {
@@ -24090,15 +24090,15 @@ var fa = I2((a11, e) => {
24090
24090
  return t2.volume;
24091
24091
  }
24092
24092
  });
24093
- var sS = I2((a11, e) => {
24094
- let t2 = j2(a11, e);
24093
+ var sS = A2((a11, e) => {
24094
+ let t2 = q2(a11, e);
24095
24095
  return fa(t2 == null ? void 0 : t2.audioTrack)(a11);
24096
24096
  });
24097
- var aS = I2((a11, e) => {
24097
+ var aS = A2((a11, e) => {
24098
24098
  let t2 = ga(e)(a11);
24099
24099
  return fa(t2 == null ? void 0 : t2.id)(a11);
24100
24100
  });
24101
- var oS = I2((a11, e) => {
24101
+ var oS = A2((a11, e) => {
24102
24102
  let t2 = Wr(a11, e);
24103
24103
  if (t2) {
24104
24104
  if (t2.type !== "video") {
@@ -24108,41 +24108,41 @@ var oS = I2((a11, e) => {
24108
24108
  return t2.layer;
24109
24109
  }
24110
24110
  });
24111
- var va = createSelector([At, ye, Gr], (a11, e, t2) => {
24111
+ var va = createSelector([It, ye, Gr], (a11, e, t2) => {
24112
24112
  if (t2)
24113
24113
  return a11.filter((i2) => {
24114
24114
  var r2;
24115
24115
  return !i2.recipientPeer && !((r2 = i2.recipientRoles) != null && r2.length) || i2.sender && ![e, t2].includes(i2.sender) ? false : [e, t2].includes(i2.recipientPeer);
24116
24116
  });
24117
24117
  });
24118
- var Ma = createSelector([At, pa], (a11, e) => {
24118
+ var Ma = createSelector([It, pa], (a11, e) => {
24119
24119
  if (e)
24120
24120
  return a11.filter((t2) => {
24121
24121
  var i2, r2;
24122
24122
  return (i2 = t2.recipientRoles) != null && i2.length ? (r2 = t2.recipientRoles) == null ? void 0 : r2.includes(e) : false;
24123
24123
  });
24124
24124
  });
24125
- var jo = createSelector(At, (a11) => a11.filter((e) => {
24125
+ var jo = createSelector(It, (a11) => a11.filter((e) => {
24126
24126
  var t2;
24127
24127
  return !e.recipientPeer && !((t2 = e.recipientRoles) != null && t2.length);
24128
24128
  }));
24129
24129
  var Jo = createSelector([Ma, pa], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24130
24130
  var Qo = createSelector([va, Gr], (a11) => a11 ? a11.filter((e) => !e.read).length : 0);
24131
24131
  var nS = createSelector(jo, (a11) => a11.filter((e) => !e.read).length);
24132
- var cS = I2(va);
24133
- var dS = I2(Ma);
24134
- var lS = I2(Jo);
24135
- var uS = I2(Qo);
24136
- var ya = I2(Wo);
24137
- var PS = createSelector([q2, N2], (a11, e) => Object.values(a11).map((i2) => {
24132
+ var cS = A2(va);
24133
+ var dS = A2(Ma);
24134
+ var lS = A2(Jo);
24135
+ var uS = A2(Qo);
24136
+ var ya = A2(Wo);
24137
+ var PS = createSelector([K, N2], (a11, e) => Object.values(a11).map((i2) => {
24138
24138
  var r2;
24139
24139
  return { peer: i2, isAudioEnabled: i2.audioTrack ? (r2 = e[i2.audioTrack]) == null ? void 0 : r2.enabled : false };
24140
24140
  }));
24141
24141
  var zo = (a11) => a11.roleChangeRequests[0] || null;
24142
- var ES = createSelector([zo, q2, Se], (a11, e, t2) => a11 ? { requestedBy: a11.requestedBy ? e[a11.requestedBy] : void 0, role: t2[a11.roleName], token: a11.token } : null);
24142
+ var ES = createSelector([zo, K, Se], (a11, e, t2) => a11 ? { requestedBy: a11.requestedBy ? e[a11.requestedBy] : void 0, role: t2[a11.roleName], token: a11.token } : null);
24143
24143
  var bS = createSelector([at], (a11) => St(a11));
24144
24144
  var RS = createSelector([Zs], (a11) => St(a11));
24145
- var Xo = createSelector([X2, N2], (a11, e) => {
24145
+ var Xo = createSelector([Y2, N2], (a11, e) => {
24146
24146
  let t2 = null;
24147
24147
  return a11 && (t2 = e[a11]), (t2 == null ? void 0 : t2.plugins) || [];
24148
24148
  });
@@ -24194,7 +24194,7 @@ var Pi = class {
24194
24194
  this.emitEvent(t2);
24195
24195
  }
24196
24196
  sendPeerUpdate(e, t2) {
24197
- let i2 = this.store.getState(Z2(t2 == null ? void 0 : t2.id)) || t2, r2 = yi[e];
24197
+ let i2 = this.store.getState(X2(t2 == null ? void 0 : t2.id)) || t2, r2 = yi[e];
24198
24198
  if (r2 && i2) {
24199
24199
  let s2 = this.createNotification(r2, i2, "info");
24200
24200
  this.emitEvent(s2);
@@ -24283,31 +24283,31 @@ var Ea = (a11, e) => {
24283
24283
  let t2 = Lt(Object.keys(a11), Object.keys(e));
24284
24284
  for (let i2 of t2) {
24285
24285
  let r2 = a11[i2], s2 = e[i2];
24286
- $e(r2, s2) ? (re(r2.auxiliaryTracks, s2.auxiliaryTracks) && (s2.auxiliaryTracks = r2.auxiliaryTracks), r2.groups && re(r2.groups, s2.groups) && (s2.groups = r2.groups), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24286
+ Ke(r2, s2) ? (re(r2.auxiliaryTracks, s2.auxiliaryTracks) && (s2.auxiliaryTracks = r2.auxiliaryTracks), r2.groups && re(r2.groups, s2.groups) && (s2.groups = r2.groups), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24287
24287
  }
24288
24288
  };
24289
24289
  var ba = (a11, e) => {
24290
24290
  let t2 = Lt(Object.keys(a11), Object.keys(e));
24291
24291
  for (let i2 of t2) {
24292
24292
  let r2 = a11[i2], s2 = e[i2];
24293
- $e(r2, s2) ? (qr(r2, s2), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24293
+ Ke(r2, s2) ? (qr(r2, s2), Object.assign(r2, s2)) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24294
24294
  }
24295
24295
  };
24296
24296
  var Ra = (a11, e) => {
24297
24297
  let t2 = Lt(Object.keys(a11), Object.keys(e));
24298
24298
  for (let i2 of t2) {
24299
24299
  let r2 = a11[i2], s2 = e[i2];
24300
- $e(r2, s2) ? (r2.questions && re(r2.questions, s2.questions) && (s2.questions = r2.questions), Object.assign(r2, s2)) : bi(r2, s2) && (a11[i2] = s2);
24300
+ Ke(r2, s2) ? (r2.questions && re(r2.questions, s2.questions) && (s2.questions = r2.questions), Object.assign(r2, s2)) : bi(r2, s2) && (a11[i2] = s2);
24301
24301
  }
24302
24302
  };
24303
24303
  var Kr = (a11, e) => {
24304
24304
  let t2 = Lt(Object.keys(a11), Object.keys(e));
24305
24305
  for (let i2 of t2) {
24306
24306
  let r2 = a11[i2], s2 = e[i2];
24307
- $e(r2, s2) ? Object.assign(r2, s2) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24307
+ Ke(r2, s2) ? Object.assign(r2, s2) : jr(r2, s2) ? delete a11[i2] : bi(r2, s2) && (a11[i2] = s2);
24308
24308
  }
24309
24309
  };
24310
- var Aa = (a11, e, t2) => {
24310
+ var Ia = (a11, e, t2) => {
24311
24311
  let i2 = t2.reduce((s2, o2) => (s2[o2.firstTrackId] = Object.values(e[o2.getTrackIDBeingSent()] || {}).sort((n2, l2) => !n2.rid || !l2.rid ? 0 : n2.rid < l2.rid ? -1 : 1), s2), {}), r2 = Lt(Object.keys(a11), Object.keys(i2));
24312
24312
  for (let s2 of r2) {
24313
24313
  if (!i2[s2]) {
@@ -24320,7 +24320,7 @@ var Aa = (a11, e, t2) => {
24320
24320
  var qr = (a11, e) => {
24321
24321
  a11.plugins && re(a11.plugins, e.plugins) && (e.plugins = a11.plugins), a11.type === "video" && a11.layerDefinitions && re(a11.layerDefinitions, e.layerDefinitions) && (e.layerDefinitions = a11.layerDefinitions);
24322
24322
  };
24323
- var $e = (a11, e) => a11 && e;
24323
+ var Ke = (a11, e) => a11 && e;
24324
24324
  var jr = (a11, e) => a11 && !e;
24325
24325
  var bi = (a11, e) => !a11 && e;
24326
24326
  var re = (a11, e) => {
@@ -24516,7 +24516,7 @@ var Ri = class {
24516
24516
  });
24517
24517
  }
24518
24518
  };
24519
- var Ai = class {
24519
+ var Ii = class {
24520
24520
  constructor(e, t2) {
24521
24521
  this.intervalMs = 100, this.shouldMonitor = false, this.hasStarted = false, this.unsubs = [], this.analysers = {}, this.store = e, this.actions = t2;
24522
24522
  }
@@ -24525,9 +24525,9 @@ var Ai = class {
24525
24525
  if (this.hasStarted)
24526
24526
  return;
24527
24527
  this.hasStarted = true, b2.d("starting audio level monitor for remote peers", this.store);
24528
- let e = this.store.getState(we);
24528
+ let e = this.store.getState(_e);
24529
24529
  b2.d("starting audio levels is connected to room", e), e && (yield this.monitorAudioLevels());
24530
- let t2 = this.store.subscribe(this.monitorAudioLevels.bind(this), we);
24530
+ let t2 = this.store.subscribe(this.monitorAudioLevels.bind(this), _e);
24531
24531
  this.unsubs.push(t2);
24532
24532
  });
24533
24533
  }
@@ -24538,7 +24538,7 @@ var Ai = class {
24538
24538
  }
24539
24539
  monitorAudioLevels() {
24540
24540
  return c2(this, null, function* () {
24541
- if (!this.store.getState(we)) {
24541
+ if (!this.store.getState(_e)) {
24542
24542
  this.shouldMonitor && (b2.i("room no longer connected, stopping audio level monitoring for remote"), this.shouldMonitor = false);
24543
24543
  return;
24544
24544
  }
@@ -24592,11 +24592,11 @@ var Ai = class {
24592
24592
  return Math.ceil(Math.min(Math.max(s2 * 100, 0), 100));
24593
24593
  }
24594
24594
  };
24595
- var Ia = 2e4;
24595
+ var Aa = 2e4;
24596
24596
  var Ha = 1e4;
24597
24597
  var ot = { name: "diagnostics-role", priority: 1, publishParams: { allowed: ["audio", "video"], audio: { bitRate: 32, codec: "opus" }, video: { bitRate: 100, codec: "vp8", frameRate: 30, height: 720, width: 1280 }, screen: { bitRate: 100, codec: "vp8", frameRate: 10, height: 1080, width: 1920 } }, subscribeParams: { subscribeToRoles: [], maxSubsBitRate: 3200 }, permissions: { browserRecording: false, changeRole: false, endRoom: false, hlsStreaming: false, mute: false, pollRead: false, pollWrite: false, removeOthers: false, rtmpStreaming: false, unmute: false } };
24598
24598
  var Ca = "https://100ms.live/test-audio.wav";
24599
- var Ii = class {
24599
+ var Ai = class {
24600
24600
  constructor() {
24601
24601
  this.networkScores = [];
24602
24602
  this.lastPushedAt = 0;
@@ -24618,7 +24618,7 @@ var Ii = class {
24618
24618
  };
24619
24619
  var tn2 = (a11) => !!a11 && !isNaN(a11);
24620
24620
  var de = (a11) => a11[a11.length - 1];
24621
- var _e = (a11, e) => {
24621
+ var Ne = (a11, e) => {
24622
24622
  let t2 = a11.filter((i2) => tn2(e(i2)));
24623
24623
  return t2.reduce((i2, r2) => i2 + (e(r2) || 0), 0) / t2.length;
24624
24624
  };
@@ -24633,30 +24633,30 @@ var Hi = class {
24633
24633
  }
24634
24634
  handleStatsUpdate(e) {
24635
24635
  return c2(this, null, function* () {
24636
- var n2, l2, u2, p2, h2, T, g2, v2;
24636
+ var n2, l2, u2, p2, h2, T, g2, f2;
24637
24637
  let t2 = e.getLocalPeerStats();
24638
24638
  t2 && this.peerStatsList.push(t2);
24639
24639
  let i2 = (u2 = (l2 = (n2 = this.sdk.getLocalPeer()) == null ? void 0 : n2.audioTrack) == null ? void 0 : l2.nativeTrack) == null ? void 0 : u2.id, r2 = (T = (h2 = (p2 = this.sdk.getLocalPeer()) == null ? void 0 : p2.videoTrack) == null ? void 0 : h2.nativeTrack) == null ? void 0 : T.id, s2 = e.getLocalTrackStats();
24640
24640
  s2 && (i2 && this.localAudioTrackStatsList.push(s2[i2]), r2 && this.localVideoTrackStatsList.push(s2[r2]));
24641
- let o2 = yield (v2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : v2.getStats();
24642
- o2 == null || o2.forEach((E2) => {
24643
- if (E2.type === "inbound-rtp") {
24644
- let k2 = E2.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Et("bytesReceived", E2, de(k2));
24645
- k2.push(M2(m({}, E2), { bitrate: w2 }));
24641
+ let o2 = yield (f2 = (g2 = this.sdk.getWebrtcInternals()) == null ? void 0 : g2.getSubscribePeerConnection()) == null ? void 0 : f2.getStats();
24642
+ o2 == null || o2.forEach((P7) => {
24643
+ if (P7.type === "inbound-rtp") {
24644
+ let k2 = P7.kind === "audio" ? this.remoteAudioTrackStatsList : this.remoteVideoTrackStatsList, w2 = Et("bytesReceived", P7, de(k2));
24645
+ k2.push(M2(m({}, P7), { bitrate: w2 }));
24646
24646
  }
24647
24647
  });
24648
24648
  });
24649
24649
  }
24650
24650
  buildReport() {
24651
- var T, g2, v2, E2, k2, w2, Oe, Zt;
24652
- let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((v2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : v2.packetsReceived) || 0, n2 = ((E2 = de(this.remoteVideoTrackStatsList)) == null ? void 0 : E2.packetsReceived) || 0, l2 = this.localAudioTrackStatsList.map((x2) => x2 ? _e(Object.values(x2), ($) => $.bitrate) : 0), u2 = this.localVideoTrackStatsList.map((x2) => x2 ? _e(Object.values(x2), ($) => $.bitrate) : 0), p2 = de(this.localAudioTrackStatsList), h2 = de(this.localVideoTrackStatsList);
24653
- return { combined: { roundTripTime: s2, packetsReceived: o2 + n2, packetsLost: (t2 == null ? void 0 : t2.packetsLost) || 0, bytesSent: (e == null ? void 0 : e.bytesSent) || 0, bytesReceived: (t2 == null ? void 0 : t2.bytesReceived) || 0, bitrateSent: _e(this.peerStatsList, (x2) => {
24651
+ var T, g2, f2, P7, k2, w2, xe, Zt;
24652
+ let e = (T = de(this.peerStatsList)) == null ? void 0 : T.publish, t2 = (g2 = de(this.peerStatsList)) == null ? void 0 : g2.subscribe, i2 = e != null && e.responsesReceived ? ((e == null ? void 0 : e.totalRoundTripTime) || 0) / e.responsesReceived : 0, r2 = t2 != null && t2.responsesReceived ? ((t2 == null ? void 0 : t2.totalRoundTripTime) || 0) / t2.responsesReceived : 0, s2 = Number(((i2 + r2) / 2 * 1e3).toFixed(2)), o2 = ((f2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : f2.packetsReceived) || 0, n2 = ((P7 = de(this.remoteVideoTrackStatsList)) == null ? void 0 : P7.packetsReceived) || 0, l2 = this.localAudioTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), u2 = this.localVideoTrackStatsList.map((x2) => x2 ? Ne(Object.values(x2), ($) => $.bitrate) : 0), p2 = de(this.localAudioTrackStatsList), h2 = de(this.localVideoTrackStatsList);
24653
+ return { combined: { roundTripTime: s2, packetsReceived: o2 + n2, packetsLost: (t2 == null ? void 0 : t2.packetsLost) || 0, bytesSent: (e == null ? void 0 : e.bytesSent) || 0, bytesReceived: (t2 == null ? void 0 : t2.bytesReceived) || 0, bitrateSent: Ne(this.peerStatsList, (x2) => {
24654
24654
  var $;
24655
24655
  return ($ = x2.publish) == null ? void 0 : $.bitrate;
24656
- }), bitrateReceived: _e(this.peerStatsList, (x2) => {
24656
+ }), bitrateReceived: Ne(this.peerStatsList, (x2) => {
24657
24657
  var $;
24658
24658
  return ($ = x2.subscribe) == null ? void 0 : $.bitrate;
24659
- }) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((k2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : k2.packetsLost) || 0, bytesReceived: ((w2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : w2.bytesReceived) || 0, bitrateSent: _e(l2, (x2) => x2), bitrateReceived: _e(this.remoteAudioTrackStatsList, (x2) => x2.bitrate), bytesSent: p2 ? Object.values(p2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 }, video: { roundTripTime: s2, packetsLost: ((Oe = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Oe.packetsLost) || 0, bytesReceived: ((Zt = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Zt.bytesReceived) || 0, packetsReceived: n2, bitrateSent: _e(u2, (x2) => x2), bitrateReceived: _e(this.remoteVideoTrackStatsList, (x2) => x2.bitrate), bytesSent: h2 ? Object.values(h2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 } };
24659
+ }) }, audio: { roundTripTime: s2, packetsReceived: o2, packetsLost: ((k2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : k2.packetsLost) || 0, bytesReceived: ((w2 = de(this.remoteAudioTrackStatsList)) == null ? void 0 : w2.bytesReceived) || 0, bitrateSent: Ne(l2, (x2) => x2), bitrateReceived: Ne(this.remoteAudioTrackStatsList, (x2) => x2.bitrate), bytesSent: p2 ? Object.values(p2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 }, video: { roundTripTime: s2, packetsLost: ((xe = de(this.remoteVideoTrackStatsList)) == null ? void 0 : xe.packetsLost) || 0, bytesReceived: ((Zt = de(this.remoteVideoTrackStatsList)) == null ? void 0 : Zt.bytesReceived) || 0, packetsReceived: n2, bitrateSent: Ne(u2, (x2) => x2), bitrateReceived: Ne(this.remoteVideoTrackStatsList, (x2) => x2.bitrate), bytesSent: h2 ? Object.values(h2).reduce((x2, $) => x2 + ($.bytesSent || 0), 0) : 0 } };
24660
24660
  }
24661
24661
  };
24662
24662
  var rn2 = ((n2) => (n2[n2.STARTING = 0] = "STARTING", n2[n2.INIT_FETCHED = 1] = "INIT_FETCHED", n2[n2.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n2[n2.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n2[n2.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n2[n2.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n2[n2.COMPLETED = 6] = "COMPLETED", n2))(rn2 || {});
@@ -24679,7 +24679,7 @@ var Ci = class {
24679
24679
  this.isVideoTrackCaptured = false;
24680
24680
  this.isAudioTrackPublished = false;
24681
24681
  this.isVideoTrackPublished = false;
24682
- this.cqsCalculator = new Ii();
24682
+ this.cqsCalculator = new Ai();
24683
24683
  this.timestamp = Date.now();
24684
24684
  this.onRoomUpdate = this.sdkListener.onRoomUpdate.bind(this.sdkListener);
24685
24685
  this.onPeerUpdate = this.sdkListener.onPeerUpdate.bind(this.sdkListener);
@@ -24744,7 +24744,7 @@ var Ci = class {
24744
24744
  var t2, i2;
24745
24745
  this.sdkListener.onJoin(e), (t2 = this.sdk.getWebrtcInternals()) == null || t2.onStatsChange((r2) => this.statsCollector.handleStatsUpdate(r2)), (i2 = this.sdk.getWebrtcInternals()) == null || i2.start(), this.cleanupTimer = window.setTimeout(() => {
24746
24746
  this.cleanupAndReport();
24747
- }, Ia);
24747
+ }, Aa);
24748
24748
  }
24749
24749
  onError(e) {
24750
24750
  this.sdkListener.onError(e), this.errors.push(e), e != null && e.isTerminal && this.cleanupAndReport();
@@ -24777,7 +24777,7 @@ var Ci = class {
24777
24777
  return { testTimestamp: this.timestamp, connectivityState: this.state, errors: this.errors, signallingReport: { isConnected: this.wsConnected, isInitConnected: this.initConnected, websocketUrl: this.websocketURL }, mediaServerReport: { stats: t2, connectionQualityScore: e, isPublishICEConnected: this.isPublishICEConnected, isSubscribeICEConnected: this.isSubscribeICEConnected, publishICECandidatePairSelected: this.selectedPublishICECandidate, subscribeICECandidatePairSelected: this.selectedSubscribeICECandidate, publishIceCandidatesGathered: this.gatheredPublishICECandidates, subscribeIceCandidatesGathered: this.gatheredSubscribeICECandidates } };
24778
24778
  }
24779
24779
  };
24780
- var Ne = class {
24780
+ var Oe = class {
24781
24781
  constructor(e) {
24782
24782
  this.recording = { server: { running: false }, browser: { running: false }, hls: { running: false } };
24783
24783
  this.rtmp = { running: false };
@@ -24829,8 +24829,12 @@ var wt = class {
24829
24829
  }
24830
24830
  requestPermission(e) {
24831
24831
  return c2(this, null, function* () {
24832
- let t2 = yield navigator.mediaDevices.getUserMedia(e);
24833
- return t2.getTracks().forEach((i2) => i2.stop()), yield this.sdk.deviceManager.init(true), { audio: t2.getAudioTracks().length > 0, video: t2.getVideoTracks().length > 0 };
24832
+ try {
24833
+ let t2 = yield navigator.mediaDevices.getUserMedia(e);
24834
+ return t2.getTracks().forEach((i2) => i2.stop()), yield this.sdk.deviceManager.init(true), { audio: t2.getAudioTracks().length > 0, video: t2.getVideoTracks().length > 0 };
24835
+ } catch (t2) {
24836
+ throw Ae(t2, this.sdk.localTrackManager.getErrorType(!!e.video, !!e.audio));
24837
+ }
24834
24838
  });
24835
24839
  }
24836
24840
  startCameraCheck(e) {
@@ -24839,7 +24843,7 @@ var wt = class {
24839
24843
  if (this.initSdkWithLocalPeer(), !this.localPeer)
24840
24844
  throw new Error("Local peer not found");
24841
24845
  this.sdk.store.setSimulcastEnabled(false), this.localPeer.role = M2(m({}, ot), { publishParams: M2(m({}, ot.publishParams), { allowed: ["video"] }) });
24842
- let t2 = new Le().video(new Y2().deviceId(e || "default").build()).build(), i2 = yield (s2 = this.sdk) == null ? void 0 : s2.localTrackManager.getLocalTracks({ audio: false, video: true }, t2), r2 = i2 == null ? void 0 : i2.find((u2) => u2.type === "video");
24846
+ let t2 = new De().video(new z2().deviceId(e || "default").build()).build(), i2 = yield (s2 = this.sdk) == null ? void 0 : s2.localTrackManager.getLocalTracks({ audio: false, video: true }, t2), r2 = i2 == null ? void 0 : i2.find((u2) => u2.type === "video");
24843
24847
  if (!r2)
24844
24848
  throw new Error("No video track found");
24845
24849
  (o2 = this.sdk) == null || o2.deviceManager.init(true), this.localPeer.videoTrack = r2, (l2 = (n2 = this.sdk) == null ? void 0 : n2.listener) == null || l2.onPeerUpdate(9, [this.localPeer]);
@@ -24849,26 +24853,32 @@ var wt = class {
24849
24853
  var e, t2;
24850
24854
  (t2 = (e = this.localPeer) == null ? void 0 : e.videoTrack) == null || t2.cleanup(), this.localPeer && (this.localPeer.videoTrack = void 0);
24851
24855
  }
24852
- startMicCheck(r2, s2) {
24853
- return c2(this, arguments, function* (e, t2, i2 = Ha) {
24854
- var l2, u2, p2, h2;
24855
- this.initSdkWithLocalPeer();
24856
+ startMicCheck(s2) {
24857
+ return c2(this, arguments, function* ({ inputDevice: e, onError: t2, onStop: i2, time: r2 = Ha }) {
24858
+ var u2, p2, h2, T;
24859
+ this.initSdkWithLocalPeer((g2) => {
24860
+ this.stopMicCheck(), t2 == null || t2(g2);
24861
+ });
24856
24862
  let o2 = yield this.getLocalAudioTrack(e);
24857
- if ((l2 = this.sdk) == null || l2.deviceManager.init(true), !this.localPeer)
24863
+ if ((u2 = this.sdk) == null || u2.deviceManager.init(true), !this.localPeer)
24858
24864
  throw new Error("Local peer not found");
24859
24865
  if (!o2)
24860
24866
  throw new Error("No audio track found");
24861
- this.localPeer.audioTrack = o2, (u2 = this.sdk) == null || u2.initPreviewTrackAudioLevelMonitor(), (h2 = (p2 = this.sdk) == null ? void 0 : p2.listener) == null || h2.onPeerUpdate(9, [this.localPeer]), this.mediaRecorder = new MediaRecorder(o2.stream.nativeStream);
24867
+ this.localPeer.audioTrack = o2, (p2 = this.sdk) == null || p2.initPreviewTrackAudioLevelMonitor(), (T = (h2 = this.sdk) == null ? void 0 : h2.listener) == null || T.onPeerUpdate(9, [this.localPeer]), this.mediaRecorder = new MediaRecorder(o2.stream.nativeStream);
24862
24868
  let n2 = [];
24863
- this.mediaRecorder.ondataavailable = function(T) {
24864
- n2.push(T.data);
24869
+ this.mediaRecorder.ondataavailable = function(g2) {
24870
+ n2.push(g2.data);
24865
24871
  }, this.mediaRecorder.onstop = () => {
24866
- var g2;
24867
- let T = new Blob(n2, { type: (g2 = this.mediaRecorder) == null ? void 0 : g2.mimeType });
24868
- this.recordedAudio = URL.createObjectURL(T);
24869
- }, this.mediaRecorder.start(), K(i2).then(() => {
24870
- this.stopMicCheck(), t2 == null || t2();
24871
- });
24872
+ var f2, P7;
24873
+ let g2 = new Blob(n2, { type: (f2 = this.mediaRecorder) == null ? void 0 : f2.mimeType });
24874
+ this.recordedAudio = URL.createObjectURL(g2), (P7 = this.onStopMicCheck) == null || P7.call(this);
24875
+ }, this.mediaRecorder.start();
24876
+ let l2 = setTimeout(() => {
24877
+ this.stopMicCheck();
24878
+ }, r2);
24879
+ this.onStopMicCheck = () => {
24880
+ clearTimeout(l2), i2 == null || i2();
24881
+ };
24872
24882
  });
24873
24883
  }
24874
24884
  stopMicCheck() {
@@ -24885,7 +24895,7 @@ var wt = class {
24885
24895
  throw new Error("SDK not found");
24886
24896
  this.connectivityCheck = new Ci(this.sdk, this.sdkListener, e, t2);
24887
24897
  let r2 = yield this.getAuthToken(i2), { roomId: s2 } = nt(r2);
24888
- yield this.sdk.leave(), (o2 = this.sdk) == null || o2.store.setRoom(new Ne(s2)), yield this.sdk.join({ authToken: r2, userName: "diagonistic-test", initEndpoint: "https://qa-in2-ipv6.100ms.live/init" }, this.connectivityCheck), this.sdk.addConnectionQualityListener({ onConnectionQualityUpdate: (n2) => {
24898
+ yield this.sdk.leave(), (o2 = this.sdk) == null || o2.store.setRoom(new Oe(s2)), yield this.sdk.join({ authToken: r2, userName: "diagonistic-test", initEndpoint: "https://qa-in2-ipv6.100ms.live/init" }, this.connectivityCheck), this.sdk.addConnectionQualityListener({ onConnectionQualityUpdate: (n2) => {
24889
24899
  var l2;
24890
24900
  (l2 = this.connectivityCheck) == null || l2.handleConnectionQualityUpdate(n2);
24891
24901
  } });
@@ -24897,13 +24907,15 @@ var wt = class {
24897
24907
  return (e = this.connectivityCheck) == null ? void 0 : e.cleanupAndReport();
24898
24908
  });
24899
24909
  }
24900
- initSdkWithLocalPeer() {
24901
- var i2, r2, s2;
24902
- this.sdkListener && ((i2 = this.sdk) == null || i2.initStoreAndManagers(this.sdkListener));
24903
- let e = new We({ name: "diagnostics-peer", role: ot, type: "regular" });
24904
- (r2 = this.sdk) == null || r2.store.addPeer(e);
24905
- let t2 = new Ne("diagnostics-room");
24906
- this.sdk.store.setRoom(t2), this.sdkListener.onRoomUpdate("ROOM_PEER_COUNT_UPDATED", t2), (s2 = this.sdk) == null || s2.deviceManager.init(true);
24910
+ initSdkWithLocalPeer(e) {
24911
+ var r2, s2, o2;
24912
+ this.sdkListener && ((r2 = this.sdk) == null || r2.initStoreAndManagers(M2(m({}, this.sdkListener), { onError: (n2) => {
24913
+ e == null || e(n2), this.sdkListener.onError(n2);
24914
+ } })));
24915
+ let t2 = new $e({ name: "diagnostics-peer", role: ot, type: "regular" });
24916
+ (s2 = this.sdk) == null || s2.store.addPeer(t2);
24917
+ let i2 = new Oe("diagnostics-room");
24918
+ this.sdk.store.setRoom(i2), this.sdkListener.onRoomUpdate("ROOM_PEER_COUNT_UPDATED", i2), (o2 = this.sdk) == null || o2.deviceManager.init(true);
24907
24919
  }
24908
24920
  getAuthToken(e) {
24909
24921
  return c2(this, null, function* () {
@@ -24924,7 +24936,7 @@ var wt = class {
24924
24936
  if (!this.localPeer)
24925
24937
  return;
24926
24938
  this.localPeer.role = M2(m({}, ot), { publishParams: M2(m({}, ot.publishParams), { allowed: ["audio"] }) });
24927
- let t2 = new Le().audio(new ee().deviceId(e || "default").build()).build(), i2 = yield (r2 = this.sdk) == null ? void 0 : r2.localTrackManager.getLocalTracks({ audio: true, video: false }, t2);
24939
+ let t2 = new De().audio(new ee().deviceId(e || "default").build()).build(), i2 = yield (r2 = this.sdk) == null ? void 0 : r2.localTrackManager.getLocalTracks({ audio: true, video: false }, t2);
24928
24940
  return i2 == null ? void 0 : i2.find((s2) => s2.type === "audio");
24929
24941
  });
24930
24942
  }
@@ -24944,18 +24956,18 @@ var Di = class {
24944
24956
  }, e2);
24945
24957
  };
24946
24958
  this.sendPeerUpdateNotification = (e2, t3) => {
24947
- let i3 = this.store.getState(Z2(t3.peerId)), r2 = yi[e2] || "peerUpdate";
24959
+ let i3 = this.store.getState(X2(t3.peerId)), r2 = yi[e2] || "peerUpdate";
24948
24960
  if (e2 === 8)
24949
24961
  this.syncRoomState(r2), this.updateMidCallPreviewRoomState(e2, t3);
24950
24962
  else if ([0, 1].includes(e2))
24951
- this.syncRoomState(r2), i3 || (i3 = this.store.getState(Z2(t3.peerId)));
24963
+ this.syncRoomState(r2), i3 || (i3 = this.store.getState(X2(t3.peerId)));
24952
24964
  else if ([12, 13, 14].includes(e2))
24953
- this.syncRoomState(r2), i3 || (i3 = this.store.getState(Z2(t3.peerId)));
24965
+ this.syncRoomState(r2), i3 || (i3 = this.store.getState(X2(t3.peerId)));
24954
24966
  else {
24955
24967
  let s2 = _2.convertPeer(t3);
24956
24968
  this.setState((o2) => {
24957
24969
  let n2 = o2.peers[s2.id];
24958
- $e(n2, s2) && (re(n2.auxiliaryTracks, s2.auxiliaryTracks) && (n2.auxiliaryTracks = s2.auxiliaryTracks), Object.assign(n2, s2)), i3 = s2;
24970
+ Ke(n2, s2) && (re(n2.auxiliaryTracks, s2.auxiliaryTracks) && (n2.auxiliaryTracks = s2.auxiliaryTracks), Object.assign(n2, s2)), i3 = s2;
24959
24971
  }, r2);
24960
24972
  }
24961
24973
  this.hmsNotifications.sendPeerUpdate(e2, i3);
@@ -25067,7 +25079,7 @@ var Di = class {
25067
25079
  }
25068
25080
  leave() {
25069
25081
  return c2(this, null, function* () {
25070
- let e = this.store.getState(we), t2 = true;
25082
+ let e = this.store.getState(_e), t2 = true;
25071
25083
  e || (t2 = false, this.logPossibleInconsistency("room leave is called when no room is connected"));
25072
25084
  let i2 = this.store.getState(ie);
25073
25085
  return this.setState((r2) => {
@@ -25109,7 +25121,7 @@ var Di = class {
25109
25121
  }
25110
25122
  setLocalVideoEnabled(e) {
25111
25123
  return c2(this, null, function* () {
25112
- let t2 = this.store.getState(X2);
25124
+ let t2 = this.store.getState(Y2);
25113
25125
  t2 && (yield this.setEnabledTrack(t2, e));
25114
25126
  });
25115
25127
  }
@@ -25142,13 +25154,13 @@ var Di = class {
25142
25154
  }
25143
25155
  setVideoSettings(e) {
25144
25156
  return c2(this, null, function* () {
25145
- let t2 = this.store.getState(X2);
25157
+ let t2 = this.store.getState(Y2);
25146
25158
  t2 && (yield this.setSDKLocalVideoTrackSettings(t2, e), this.syncRoomState("setVideoSettings"));
25147
25159
  });
25148
25160
  }
25149
25161
  switchCamera() {
25150
25162
  return c2(this, null, function* () {
25151
- let e = this.store.getState(X2);
25163
+ let e = this.store.getState(Y2);
25152
25164
  if (e) {
25153
25165
  let t2 = this.sdk.store.getLocalPeerTracks().find((i2) => i2.trackId === e);
25154
25166
  t2 && (yield t2.switchCamera(), this.syncRoomState("switchCamera"));
@@ -25235,7 +25247,7 @@ var Di = class {
25235
25247
  let t2 = {};
25236
25248
  if (t2.isSupported = false, !e)
25237
25249
  return b2.w("no plugin passed in for checking support"), t2.errMsg = "no plugin passed in for checking support", t2;
25238
- let i2 = this.store.getState(X2);
25250
+ let i2 = this.store.getState(Y2);
25239
25251
  if (!i2)
25240
25252
  return b2.w("video Track not added to local peer yet"), t2.errMsg = "call this function only after local peer has video track", t2;
25241
25253
  let r2 = this.getTrackById(i2);
@@ -25466,7 +25478,7 @@ var Di = class {
25466
25478
  }
25467
25479
  enableBeamSpeakerLabelsLogging() {
25468
25480
  return c2(this, null, function* () {
25469
- this.beamSpeakerLabelsLogger || (b2.i("enabling beam speaker labels logging"), this.beamSpeakerLabelsLogger = new Ai(this.store, this), yield this.beamSpeakerLabelsLogger.start());
25481
+ this.beamSpeakerLabelsLogger || (b2.i("enabling beam speaker labels logging"), this.beamSpeakerLabelsLogger = new Ii(this.store, this), yield this.beamSpeakerLabelsLogger.start());
25470
25482
  });
25471
25483
  }
25472
25484
  initDiagnostics() {
@@ -25485,7 +25497,7 @@ var Di = class {
25485
25497
  }
25486
25498
  onRemovedFromRoom(e) {
25487
25499
  var r2;
25488
- let t2 = this.store.getState(Z2((r2 = e.requestedBy) == null ? void 0 : r2.peerId));
25500
+ let t2 = this.store.getState(X2((r2 = e.requestedBy) == null ? void 0 : r2.peerId));
25489
25501
  this.hmsNotifications.sendLeaveRoom(M2(m({}, e), { requestedBy: t2 || void 0 }));
25490
25502
  let i2 = e.roomEnded || !t2 ? "roomEnded" : "removedFromRoom";
25491
25503
  b2.i(`resetting state after peer removed ${i2}`, e), this.resetState(i2);
@@ -25557,10 +25569,10 @@ var Di = class {
25557
25569
  e = `${e}_fullSync`, b2.time(`store-sync-${e}`);
25558
25570
  let t2 = {}, i2 = [], r2 = {}, s2 = {}, o2 = {}, n2, l2 = this.sdk.getPeers();
25559
25571
  for (let g2 of l2) {
25560
- let v2 = _2.convertPeer(g2);
25561
- t2[v2.id] = v2, i2.push(v2.id), o2[v2.id] = { peerID: v2.id, downlinkQuality: g2.networkQuality || -1 };
25562
- let E2 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
25563
- for (let k2 of E2) {
25572
+ let f2 = _2.convertPeer(g2);
25573
+ t2[f2.id] = f2, i2.push(f2.id), o2[f2.id] = { peerID: f2.id, downlinkQuality: g2.networkQuality || -1 };
25574
+ let P7 = [g2.audioTrack, g2.videoTrack, ...g2.auxiliaryTracks];
25575
+ for (let k2 of P7) {
25564
25576
  if (!k2)
25565
25577
  continue;
25566
25578
  let w2 = _2.convertTrack(k2);
@@ -25575,8 +25587,8 @@ var Di = class {
25575
25587
  this.setState((g2) => {
25576
25588
  var k2;
25577
25589
  g2.room.peers = i2;
25578
- let v2 = g2.peers, E2 = g2.tracks;
25579
- Ea(v2, t2), ba(E2, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (k2 = g2.preview) != null && k2.localPeer && (n2 != null && n2.localPeer) ? Object.assign(g2.preview, n2) : g2.preview = n2, Object.assign(g2.roles, _2.convertRoles(this.sdk.getRoles())), Object.assign(g2.playlist, _2.convertPlaylist(this.sdk.getPlaylistManager())), Object.assign(g2.room, _2.convertRecordingStreamingState(u2, p2, h2, T)), Object.assign(g2.templateAppData, this.sdk.getTemplateAppData());
25590
+ let f2 = g2.peers, P7 = g2.tracks;
25591
+ Ea(f2, t2), ba(P7, r2), Object.assign(g2.settings, s2), g2.room.isConnected && Object.assign(g2.connectionQualities, o2), (k2 = g2.preview) != null && k2.localPeer && (n2 != null && n2.localPeer) ? Object.assign(g2.preview, n2) : g2.preview = n2, Object.assign(g2.roles, _2.convertRoles(this.sdk.getRoles())), Object.assign(g2.playlist, _2.convertPlaylist(this.sdk.getPlaylistManager())), Object.assign(g2.room, _2.convertRecordingStreamingState(u2, p2, h2, T)), Object.assign(g2.templateAppData, this.sdk.getTemplateAppData());
25580
25592
  }, e), b2.timeEnd(`store-sync-${e}`);
25581
25593
  }
25582
25594
  onPreview(e) {
@@ -25607,17 +25619,17 @@ var Di = class {
25607
25619
  onPeerUpdate(e, t2) {
25608
25620
  if (![4, 5].includes(e)) {
25609
25621
  if (Array.isArray(t2)) {
25610
- let i2 = this.store.getState(q2), r2 = t2.filter((o2) => !i2[o2.peerId]);
25611
- if (this.syncRoomState("peersJoined"), this.store.getState(we)) {
25622
+ let i2 = this.store.getState(K), r2 = t2.filter((o2) => !i2[o2.peerId]);
25623
+ if (this.syncRoomState("peersJoined"), this.store.getState(_e)) {
25612
25624
  let o2 = [];
25613
25625
  for (let n2 of t2) {
25614
- let l2 = this.store.getState(Z2(n2.peerId));
25626
+ let l2 = this.store.getState(X2(n2.peerId));
25615
25627
  l2 && o2.push(l2);
25616
25628
  }
25617
25629
  this.hmsNotifications.sendPeerList(o2);
25618
25630
  } else
25619
25631
  r2.forEach((o2) => {
25620
- let n2 = this.store.getState(Z2(o2.peerId));
25632
+ let n2 = this.store.getState(X2(o2.peerId));
25621
25633
  n2 && this.hmsNotifications.sendPeerUpdate(0, n2);
25622
25634
  });
25623
25635
  return;
@@ -25635,7 +25647,7 @@ var Di = class {
25635
25647
  let r2 = Ct[e] || "trackUpdate", s2 = _2.convertTrack(t2);
25636
25648
  this.setState((o2) => {
25637
25649
  let n2 = o2.tracks[s2.id];
25638
- $e(n2, s2) && (qr(n2, s2), Object.assign(n2, s2));
25650
+ Ke(n2, s2) && (qr(n2, s2), Object.assign(n2, s2));
25639
25651
  }, r2), this.hmsNotifications.sendTrackUpdate(e, t2.trackId);
25640
25652
  }
25641
25653
  }
@@ -25672,14 +25684,14 @@ var Di = class {
25672
25684
  }
25673
25685
  onChangeTrackStateRequest(e) {
25674
25686
  var s2;
25675
- let t2 = this.store.getState(Z2((s2 = e.requestedBy) == null ? void 0 : s2.peerId)), i2 = this.getStoreLocalTrackIDfromSDKTrack(e.track), r2 = this.store.getState(vi(i2));
25687
+ let t2 = this.store.getState(X2((s2 = e.requestedBy) == null ? void 0 : s2.peerId)), i2 = this.getStoreLocalTrackIDfromSDKTrack(e.track), r2 = this.store.getState(vi(i2));
25676
25688
  if (!r2)
25677
25689
  return this.logPossibleInconsistency(`Not found track for which track state change was requested, ${e.track}`);
25678
25690
  e.enabled || this.syncRoomState("changeTrackStateRequest"), this.hmsNotifications.sendChangeTrackStateRequest({ requestedBy: t2 || void 0, track: r2, enabled: e.enabled });
25679
25691
  }
25680
25692
  onChangeMultiTrackStateRequest(e) {
25681
25693
  var s2;
25682
- let t2 = this.store.getState(Z2((s2 = e.requestedBy) == null ? void 0 : s2.peerId));
25694
+ let t2 = this.store.getState(X2((s2 = e.requestedBy) == null ? void 0 : s2.peerId));
25683
25695
  e.enabled || this.syncRoomState("changeMultiTrackStateRequest");
25684
25696
  let i2 = [], r2 = this.store.getState(N2);
25685
25697
  for (let o2 of e.tracks) {
@@ -25705,7 +25717,7 @@ var Di = class {
25705
25717
  i2.room.roomState = "Failed", i2.errors.push(t2);
25706
25718
  }, "errorTerminal")) : this.store.getState().errors.length < 50 && this.setState((r2) => {
25707
25719
  r2.errors.push(t2);
25708
- }, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof f2 ? `${t2}` : t2);
25720
+ }, "error"), this.syncRoomState("errorSync"), this.hmsNotifications.sendError(t2), b2.e("received error from sdk", t2 instanceof v2 ? `${t2}` : t2);
25709
25721
  }
25710
25722
  handleTrackRemove(e, t2) {
25711
25723
  this.setState((i2) => {
@@ -25755,7 +25767,7 @@ var Di = class {
25755
25767
  setTrackVolume(e, t2) {
25756
25768
  return c2(this, null, function* () {
25757
25769
  let i2 = this.getTrackById(t2);
25758
- i2 ? i2 instanceof Ae ? (yield i2.setVolume(e), this.setState((r2) => {
25770
+ i2 ? i2 instanceof Ie ? (yield i2.setVolume(e), this.setState((r2) => {
25759
25771
  let s2 = r2.tracks[t2];
25760
25772
  s2 && s2.type === "audio" && (s2.volume = e);
25761
25773
  }, "trackVolume")) : b2.w(`track ${t2} is not an audio track`) : this.logPossibleInconsistency(`track ${t2} not present, unable to set volume`);
@@ -25777,7 +25789,7 @@ var Di = class {
25777
25789
  b2.w("Invalid plugin received in store");
25778
25790
  return;
25779
25791
  }
25780
- let r2 = this.store.getState(X2);
25792
+ let r2 = this.store.getState(Y2);
25781
25793
  if (r2) {
25782
25794
  let s2 = this.getLocalTrack(r2);
25783
25795
  s2 ? (t2 === "add" ? yield s2.addPlugin(e, i2) : t2 === "remove" && (yield s2.removePlugin(e)), this.syncRoomState(`${t2}VideoPlugin`)) : this.logPossibleInconsistency(`track ${r2} not present, unable to ${t2} plugin`);
@@ -25790,7 +25802,7 @@ var Di = class {
25790
25802
  b2.w("Invalid plugin received in store");
25791
25803
  return;
25792
25804
  }
25793
- let i2 = this.store.getState(X2);
25805
+ let i2 = this.store.getState(Y2);
25794
25806
  if (i2) {
25795
25807
  let r2 = this.getLocalTrack(i2);
25796
25808
  r2 ? (t2 === "add" ? yield r2.addStreamPlugins(e) : t2 === "remove" && (yield r2.removeStreamPlugins(e)), this.syncRoomState(`${t2}MediaStreamPlugin`)) : this.logPossibleInconsistency(`track ${i2} not present, unable to ${t2} plugin`);
@@ -25855,7 +25867,7 @@ var _i = class {
25855
25867
  var u2;
25856
25868
  if (!e2)
25857
25869
  return;
25858
- let { url: t3, timeout: i2, scoreMap: r2 } = e2, s2 = this.controller.signal, o2 = Date.now(), n2 = 0, l2 = K(i2).then(() => {
25870
+ let { url: t3, timeout: i2, scoreMap: r2 } = e2, s2 = this.controller.signal, o2 = Date.now(), n2 = 0, l2 = Z2(i2).then(() => {
25859
25871
  this.controller.abort();
25860
25872
  });
25861
25873
  try {
@@ -25867,8 +25879,8 @@ var _i = class {
25867
25879
  try {
25868
25880
  let g2 = false;
25869
25881
  for (; !g2; ) {
25870
- let { value: v2, done: E2 } = yield h2.read();
25871
- g2 = E2, v2 && (n2 += v2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
25882
+ let { value: f2, done: P7 } = yield h2.read();
25883
+ g2 = P7, f2 && (n2 += f2.byteLength, this.sendScore({ scoreMap: r2, downloadedSize: n2, startTime: o2 }));
25872
25884
  }
25873
25885
  } catch (g2) {
25874
25886
  g2.name !== "AbortError" && d2.d(this.TAG, g2);
@@ -25914,8 +25926,8 @@ var _t = class {
25914
25926
  r3 && (yield this.diffRolesAndPublishTracks({ oldRole: e2, newRole: t3 }), (s3 = this.listener) == null || s3.onPeerUpdate(8, r3));
25915
25927
  });
25916
25928
  this.diffRolesAndPublishTracks = (i3) => c2(this, [i3], function* ({ oldRole: e2, newRole: t3 }) {
25917
- var g2, v2, E2, k2, w2, Oe;
25918
- let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (v2 = t3.publishParams.simulcast) == null ? void 0 : v2.video), p2 = this.hasSimulcastDifference((E2 = e2.publishParams.simulcast) == null ? void 0 : E2.screen, (k2 = t3.publishParams.simulcast) == null ? void 0 : k2.screen), h2 = (Oe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : Oe.enabled;
25929
+ var g2, f2, P7, k2, w2, xe;
25930
+ let r3 = new Set(e2.publishParams.allowed), s3 = new Set(t3.publishParams.allowed), o3 = this.removeTrack(r3, s3, "video"), n2 = this.removeTrack(r3, s3, "audio"), l2 = this.removeTrack(r3, s3, "screen"), u2 = this.hasSimulcastDifference((g2 = e2.publishParams.simulcast) == null ? void 0 : g2.video, (f2 = t3.publishParams.simulcast) == null ? void 0 : f2.video), p2 = this.hasSimulcastDifference((P7 = e2.publishParams.simulcast) == null ? void 0 : P7.screen, (k2 = t3.publishParams.simulcast) == null ? void 0 : k2.screen), h2 = (xe = (w2 = this.store.getLocalPeer()) == null ? void 0 : w2.videoTrack) == null ? void 0 : xe.enabled;
25919
25931
  yield this.removeAudioTrack(n2), yield this.removeVideoTracks(o3 || u2), yield this.removeScreenTracks(l2 || p2);
25920
25932
  let T = this.getSettings();
25921
25933
  u2 && (T.isVideoMuted = !h2), yield this.publish(T), yield this.syncDevices(T, t3);
@@ -26175,8 +26187,8 @@ var Ot = class {
26175
26187
  }
26176
26188
  setConfig(e) {
26177
26189
  var t2, i2, r2;
26178
- if (z2.rememberDevices(!!e.rememberDeviceSelection), e.rememberDeviceSelection) {
26179
- let s2 = z2.getSelection();
26190
+ if (Q2.rememberDevices(!!e.rememberDeviceSelection), e.rememberDeviceSelection) {
26191
+ let s2 = Q2.getSelection();
26180
26192
  s2 && (e.settings || (e.settings = {}), (t2 = s2.audioInput) != null && t2.deviceId && (e.settings.audioInputDeviceId = e.settings.audioInputDeviceId || s2.audioInput.deviceId), (i2 = s2.audioOutput) != null && i2.deviceId && (e.settings.audioOutputDeviceId = e.settings.audioOutputDeviceId || s2.audioOutput.deviceId), (r2 = s2.videoInput) != null && r2.deviceId && (e.settings.videoDeviceId = e.settings.videoDeviceId || s2.videoInput.deviceId));
26181
26193
  }
26182
26194
  e.autoManageVideo = e.autoManageVideo !== false, e.autoManageWakeLock = e.autoManageWakeLock !== false, this.config = e, this.setEnv();
@@ -26230,7 +26242,7 @@ var Ot = class {
26230
26242
  return [];
26231
26243
  let i2 = this.getPolicyForRole(e.role.name).publishParams, r2, s2, o2;
26232
26244
  return t2 === "regular" ? (r2 = (n2 = i2.simulcast) == null ? void 0 : n2.video, s2 = i2.video.width, o2 = i2.video.height) : t2 === "screen" && (r2 = (l2 = i2.simulcast) == null ? void 0 : l2.screen, s2 = i2.screen.width, o2 = i2.screen.height), ((u2 = r2 == null ? void 0 : r2.layers) == null ? void 0 : u2.map((p2) => {
26233
- let h2 = Be[p2.rid], T = { width: Math.floor(s2 / p2.scaleResolutionDownBy), height: Math.floor(o2 / p2.scaleResolutionDownBy) };
26245
+ let h2 = Ve[p2.rid], T = { width: Math.floor(s2 / p2.scaleResolutionDownBy), height: Math.floor(o2 / p2.scaleResolutionDownBy) };
26234
26246
  return { layer: h2, resolution: T };
26235
26247
  })) || [];
26236
26248
  }
@@ -26402,7 +26414,7 @@ var xt = class {
26402
26414
  var u2, p2;
26403
26415
  d2.e(this.TAG, "error on audio element", s2.error);
26404
26416
  let l2 = S2.TracksErrors.AudioPlaybackError(`Audio playback error for track - ${e2.trackId} code - ${(u2 = s2 == null ? void 0 : s2.error) == null ? void 0 : u2.code}`);
26405
- this.eventBus.analytics.publish(y2.audioPlaybackError(l2)), ((p2 = s2 == null ? void 0 : s2.error) == null ? void 0 : p2.code) === MediaError.MEDIA_ERR_DECODE && (this.removeAudioElement(s2, e2), yield K(500), yield this.handleTrackAdd({ track: e2, peer: t3, callListener: false }));
26417
+ this.eventBus.analytics.publish(y2.audioPlaybackError(l2)), ((p2 = s2 == null ? void 0 : s2.error) == null ? void 0 : p2.code) === MediaError.MEDIA_ERR_DECODE && (this.removeAudioElement(s2, e2), yield Z2(500), yield this.handleTrackAdd({ track: e2, peer: t3, callListener: false }));
26406
26418
  }), e2.setAudioElement(s2), e2.setVolume(this.volume), d2.d(this.TAG, "Audio track added", `${e2}`), this.init(), (o2 = this.audioSink) == null || o2.append(s2), this.outputDevice && (yield e2.setOutputDevice(this.outputDevice)), s2.srcObject = new MediaStream([e2.nativeTrack]), i3 && ((n2 = this.listener) == null || n2.onTrackUpdate(0, e2, t3)), yield this.handleAutoplayError(e2);
26407
26419
  });
26408
26420
  this.handleAutoplayError = (e2) => c2(this, null, function* () {
@@ -26567,7 +26579,7 @@ var Ut = class {
26567
26579
  this.audioInputChanged = false;
26568
26580
  this.updateOutputDevice = (e2, t3) => c2(this, null, function* () {
26569
26581
  let i3 = this.audioOutput.find((r2) => r2.deviceId === e2);
26570
- return i3 && (this.outputDevice = i3, yield this.store.updateAudioOutputDevice(i3), this.eventBus.analytics.publish(y2.deviceChange({ isUserSelection: t3, selection: { audioOutput: i3 }, devices: this.getDevices(), type: "audioOutput" })), z2.updateSelection("audioOutput", { deviceId: i3.deviceId, groupId: i3.groupId })), i3;
26582
+ return i3 && (this.outputDevice = i3, yield this.store.updateAudioOutputDevice(i3), this.eventBus.analytics.publish(y2.deviceChange({ isUserSelection: t3, selection: { audioOutput: i3 }, devices: this.getDevices(), type: "audioOutput" })), Q2.updateSelection("audioOutput", { deviceId: i3.deviceId, groupId: i3.groupId })), i3;
26571
26583
  });
26572
26584
  this.getCurrentSelection = () => {
26573
26585
  var o2, n2;
@@ -26580,7 +26592,7 @@ var Ut = class {
26580
26592
  let e2 = yield navigator.mediaDevices.enumerateDevices(), t3 = this.videoInput.map(this.createIdentifier), i3 = this.audioInput.map(this.createIdentifier);
26581
26593
  this.audioInput = [], this.audioOutput = [], this.videoInput = [], e2.forEach((r2) => {
26582
26594
  r2.kind === "audioinput" && r2.label ? (this.hasMicrophonePermission = true, this.audioInput.push(r2)) : r2.kind === "audiooutput" ? this.audioOutput.push(r2) : r2.kind === "videoinput" && r2.label && (this.hasWebcamPermission = true, this.videoInput.push(r2));
26583
- }), this.videoInputChanged = this.computeChange(t3, this.videoInput), this.audioInputChanged = this.computeChange(i3, this.audioInput), z2.setDevices({ videoInput: [...this.videoInput], audioInput: [...this.audioInput], audioOutput: [...this.audioOutput] }), this.logDevices("Enumerate Devices");
26595
+ }), this.videoInputChanged = this.computeChange(t3, this.videoInput), this.audioInputChanged = this.computeChange(i3, this.audioInput), Q2.setDevices({ videoInput: [...this.videoInput], audioInput: [...this.audioInput], audioOutput: [...this.audioOutput] }), this.logDevices("Enumerate Devices");
26584
26596
  } catch (e2) {
26585
26597
  d2.e(this.TAG, "Failed enumerating devices", e2);
26586
26598
  }
@@ -26630,7 +26642,7 @@ var Ut = class {
26630
26642
  this.eventBus.analytics.publish(y2.deviceChange({ selection: { videoInput: t3 }, error: S2.TracksErrors.SelectedDeviceMissing("video"), devices: this.getDevices(), type: "video" })), d2.e(this.TAG, "Video device not found");
26631
26643
  return;
26632
26644
  }
26633
- let { settings: i3 } = e2, r2 = new Y2().codec(i3.codec).maxBitrate(i3.maxBitrate).maxFramerate(i3.maxFramerate).setWidth(i3.width).setHeight(i3.height).deviceId(t3.deviceId).build();
26645
+ let { settings: i3 } = e2, r2 = new z2().codec(i3.codec).maxBitrate(i3.maxBitrate).maxFramerate(i3.maxFramerate).setWidth(i3.width).setHeight(i3.height).deviceId(t3.deviceId).build();
26634
26646
  try {
26635
26647
  yield e2.setSettings(r2, true), this.eventBus.deviceChange.publish({ devices: this.getDevices(), selection: t3, type: "video" }), this.logDevices("Video Device Change Success");
26636
26648
  } catch (s2) {
@@ -26717,7 +26729,7 @@ var Ui = class {
26717
26729
  }
26718
26730
  unblockAutoplay() {
26719
26731
  return c2(this, null, function* () {
26720
- yield this.audioSinkManager.unblockAutoplay(), yield Ie.resumeContext();
26732
+ yield this.audioSinkManager.unblockAutoplay(), yield He.resumeContext();
26721
26733
  });
26722
26734
  }
26723
26735
  };
@@ -27301,8 +27313,8 @@ var Ft = class {
27301
27313
  var h2, T;
27302
27314
  let p2 = (h2 = e == null ? void 0 : e.questions) == null ? void 0 : h2.find((g2) => g2.index === n2.question);
27303
27315
  if (p2) {
27304
- let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update }, v2 = p2.responses && !t2 ? [...p2.responses] : [];
27305
- (T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...v2, g2]);
27316
+ let g2 = { id: n2.response_id, questionIndex: n2.question, option: n2.option, options: n2.options, text: n2.text, responseFinal: u2, peer: { peerid: l2.peerid, userHash: l2.hash, userid: l2.userid, username: l2.username }, skipped: n2.skipped, type: n2.type, update: n2.update }, f2 = p2.responses && !t2 ? [...p2.responses] : [];
27317
+ (T = r2.questions) != null && T[n2.question - 1] && (r2.questions[n2.question - 1].responses = [...f2, g2]);
27306
27318
  }
27307
27319
  }), this.store.setPoll(r2), (o2 = this.listener) == null || o2.onPollsUpdate(4, [r2]);
27308
27320
  });
@@ -27317,9 +27329,9 @@ var Ft = class {
27317
27329
  }
27318
27330
  for (let l2 of r2) {
27319
27331
  let u2 = yield this.transport.signal.getPollQuestions({ poll_id: l2.poll_id, index: 0, count: 50 }), p2 = ji(l2), h2 = this.store.getPoll(l2.poll_id);
27320
- p2.questions = u2.questions.map(({ question: T, options: g2, answer: v2 }, E2) => {
27332
+ p2.questions = u2.questions.map(({ question: T, options: g2, answer: f2 }, P7) => {
27321
27333
  var k2, w2;
27322
- return M2(m({}, T), { options: g2, answer: v2, responses: (w2 = (k2 = h2 == null ? void 0 : h2.questions) == null ? void 0 : k2[E2]) == null ? void 0 : w2.responses });
27334
+ return M2(m({}, T), { options: g2, answer: f2, responses: (w2 = (k2 = h2 == null ? void 0 : h2.questions) == null ? void 0 : k2[P7]) == null ? void 0 : w2.responses });
27323
27335
  }), t2.push(p2), this.store.setPoll(p2);
27324
27336
  }
27325
27337
  return (n2 = this.listener) == null || n2.onPollsUpdate(3, t2), t2;
@@ -27653,7 +27665,7 @@ var zi = class {
27653
27665
  toSdkError(e) {
27654
27666
  if (!(e != null && e.code))
27655
27667
  return;
27656
- let t2 = e.message || "error in streaming/recording", i2 = new f2(e.code, "ServerErrors", "NONE", t2, t2);
27668
+ let t2 = e.message || "error in streaming/recording", i2 = new v2(e.code, "ServerErrors", "NONE", t2, t2);
27657
27669
  return d2.e(this.TAG, "error in streaming/recording", i2), i2;
27658
27670
  }
27659
27671
  };
@@ -27832,7 +27844,7 @@ var tr = class {
27832
27844
  this.iceServers = n2;
27833
27845
  }
27834
27846
  };
27835
- var J = ((s2) => (s2[s2.ConnectFailed = 0] = "ConnectFailed", s2[s2.SignalDisconnect = 1] = "SignalDisconnect", s2[s2.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s2[s2.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s2[s2.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s2))(J || {});
27847
+ var j2 = ((s2) => (s2[s2.ConnectFailed = 0] = "ConnectFailed", s2[s2.SignalDisconnect = 1] = "SignalDisconnect", s2[s2.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s2[s2.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s2[s2.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s2))(j2 || {});
27836
27848
  var _a7 = { 0: [], 1: [], 2: [1], 3: [1], 4: [1] };
27837
27849
  var ir = ((n2) => (n2.Disconnected = "Disconnected", n2.Connecting = "Connecting", n2.Joined = "Joined", n2.Preview = "Preview", n2.Failed = "Failed", n2.Reconnecting = "Reconnecting", n2.Leaving = "Leaving", n2))(ir || {});
27838
27850
  var rr = class {
@@ -27863,29 +27875,29 @@ var sr = class {
27863
27875
  }
27864
27876
  scheduleTask(l2) {
27865
27877
  return c2(this, arguments, function* ({ category: e, error: t2, changeState: i2, task: r2, originalState: s2, maxFailedRetries: o2 = 5, failedRetryCount: n2 = 0 }) {
27866
- if (d2.d(this.TAG, "schedule: ", { category: J[e], error: t2 }), n2 === 0) {
27878
+ if (d2.d(this.TAG, "schedule: ", { category: j2[e], error: t2 }), n2 === 0) {
27867
27879
  let g2 = this.inProgress.get(e);
27868
27880
  if (g2) {
27869
- d2.d(this.TAG, `schedule: Already a task for ${J[e]} scheduled, waiting for its completion`), yield g2.promise;
27881
+ d2.d(this.TAG, `schedule: Already a task for ${j2[e]} scheduled, waiting for its completion`), yield g2.promise;
27870
27882
  return;
27871
27883
  }
27872
- let v2 = new rr((E2, k2) => {
27884
+ let f2 = new rr((P7, k2) => {
27873
27885
  });
27874
- this.inProgress.set(e, v2), this.sendEvent(t2, e);
27886
+ this.inProgress.set(e, f2), this.sendEvent(t2, e);
27875
27887
  }
27876
27888
  let u2 = false, p2 = _a7[e];
27877
27889
  for (let g2 in p2) {
27878
- let v2 = p2[parseInt(g2)];
27890
+ let f2 = p2[parseInt(g2)];
27879
27891
  try {
27880
- let E2 = this.inProgress.get(v2);
27881
- E2 && (d2.d(this.TAG, `schedule: Suspending retry task of ${J[e]}, waiting for ${J[v2]} to recover`), yield E2.promise, d2.d(this.TAG, `schedule: Resuming retry task ${J[e]} as it's dependency ${J[v2]} is recovered`));
27882
- } catch (E2) {
27883
- d2.d(this.TAG, `schedule: Stopping retry task of ${J[e]} as it's dependency ${J[v2]} failed to recover`), u2 = true;
27892
+ let P7 = this.inProgress.get(f2);
27893
+ P7 && (d2.d(this.TAG, `schedule: Suspending retry task of ${j2[e]}, waiting for ${j2[f2]} to recover`), yield P7.promise, d2.d(this.TAG, `schedule: Resuming retry task ${j2[e]} as it's dependency ${j2[f2]} is recovered`));
27894
+ } catch (P7) {
27895
+ d2.d(this.TAG, `schedule: Stopping retry task of ${j2[e]} as it's dependency ${j2[f2]} failed to recover`), u2 = true;
27884
27896
  break;
27885
27897
  }
27886
27898
  }
27887
27899
  if (n2 >= o2 || u2) {
27888
- if (t2.description += `. [${J[e]}] Could not recover after ${n2} tries`, u2 && (t2.description += ` Could not recover all of it's required dependencies - [${p2.map((g2) => J[g2]).toString()}]`), t2.isTerminal = true, this.inProgress.delete(e), this.sendEvent(t2, e), this.reset(), i2)
27900
+ if (t2.description += `. [${j2[e]}] Could not recover after ${n2} tries`, u2 && (t2.description += ` Could not recover all of it's required dependencies - [${p2.map((g2) => j2[g2]).toString()}]`), t2.isTerminal = true, this.inProgress.delete(e), this.sendEvent(t2, e), this.reset(), i2)
27889
27901
  this.onStateChange("Failed", t2);
27890
27902
  else
27891
27903
  throw t2;
@@ -27893,16 +27905,16 @@ var sr = class {
27893
27905
  }
27894
27906
  i2 && this.onStateChange("Reconnecting", t2);
27895
27907
  let h2 = this.getDelayForRetryCount(e, n2);
27896
- d2.d(this.TAG, `schedule: [${J[e]}] [failedRetryCount=${n2}] Scheduling retry task in ${h2}ms`);
27908
+ d2.d(this.TAG, `schedule: [${j2[e]}] [failedRetryCount=${n2}] Scheduling retry task in ${h2}ms`);
27897
27909
  let T;
27898
27910
  try {
27899
27911
  T = yield this.setTimeoutPromise(r2, h2);
27900
27912
  } catch (g2) {
27901
- T = false, d2.w(this.TAG, `[${J[e]}] Un-caught exception ${g2.name} in retry-task, initiating retry`, g2);
27913
+ T = false, d2.w(this.TAG, `[${j2[e]}] Un-caught exception ${g2.name} in retry-task, initiating retry`, g2);
27902
27914
  }
27903
27915
  if (T) {
27904
27916
  let g2 = this.inProgress.get(e);
27905
- this.inProgress.delete(e), g2 == null || g2.resolve(n2), i2 && this.inProgress.size === 0 && this.onStateChange(s2), d2.d(this.TAG, `schedule: [${J[e]}] [failedRetryCount=${n2}] Recovered \u267B\uFE0F`);
27917
+ this.inProgress.delete(e), g2 == null || g2.resolve(n2), i2 && this.inProgress.size === 0 && this.onStateChange(s2), d2.d(this.TAG, `schedule: [${j2[e]}] [failedRetryCount=${n2}] Recovered \u267B\uFE0F`);
27906
27918
  } else
27907
27919
  yield this.scheduleTask({ category: e, error: t2, changeState: i2, task: r2, originalState: s2, maxFailedRetries: o2, failedRetryCount: n2 + 1 });
27908
27920
  });
@@ -27930,7 +27942,7 @@ var sr = class {
27930
27942
  });
27931
27943
  }
27932
27944
  };
27933
- var ar = class extends He {
27945
+ var ar = class extends Ce {
27934
27946
  constructor() {
27935
27947
  super(100);
27936
27948
  this.localStorage = new le("hms-analytics");
@@ -28007,7 +28019,7 @@ var dt = class {
28007
28019
  startLoop() {
28008
28020
  return c2(this, null, function* () {
28009
28021
  for (; this.shouldSendEvent; )
28010
- yield K(this.pushInterval * 1e3), this.sendEvent();
28022
+ yield Z2(this.pushInterval * 1e3), this.sendEvent();
28011
28023
  });
28012
28024
  }
28013
28025
  sendEvent() {
@@ -28089,13 +28101,13 @@ var Wt = class extends dt {
28089
28101
  Object.keys(r2).forEach((s2) => {
28090
28102
  let o2 = r2[s2], n2 = this.store.getLocalPeerTracks().find((l2) => l2.getTrackIDBeingSent() === s2);
28091
28103
  Object.keys(o2).forEach((l2) => {
28092
- var g2, v2, E2;
28104
+ var g2, f2, P7;
28093
28105
  let u2 = o2[l2];
28094
28106
  if (!n2)
28095
28107
  return;
28096
- let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (v2 = (g2 = t2.getLocalPeerStats()) == null ? void 0 : g2.publish) == null ? void 0 : v2.availableOutgoingBitrate });
28108
+ let p2 = this.getTrackIdentifier(n2.trackId, u2), h2 = M2(m({}, u2), { availableOutgoingBitrate: (f2 = (g2 = t2.getLocalPeerStats()) == null ? void 0 : g2.publish) == null ? void 0 : f2.availableOutgoingBitrate });
28097
28109
  if (p2 && this.trackAnalytics.has(p2))
28098
- (E2 = this.trackAnalytics.get(p2)) == null || E2.pushTempStat(h2);
28110
+ (P7 = this.trackAnalytics.get(p2)) == null || P7.pushTempStat(h2);
28099
28111
  else if (n2) {
28100
28112
  let k2 = new zr({ track: n2, sampleWindowSize: this.sampleWindowSize, rid: u2.rid, ssrc: u2.ssrc.toString(), kind: u2.kind });
28101
28113
  k2.pushTempStat(h2), this.trackAnalytics.set(this.getTrackIdentifier(n2.trackId, u2), k2);
@@ -28142,9 +28154,9 @@ var $t = class extends dt {
28142
28154
  handleStatsUpdate(t2) {
28143
28155
  let i2 = t2.getAllRemoteTracksStats(), r2 = false;
28144
28156
  Object.keys(i2).forEach((s2) => {
28145
- var v2, E2;
28146
- let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (v2 = this.trackAnalytics.get(s2)) == null ? void 0 : v2.getLatestStat(), p2 = ((k2, w2) => {
28147
- let Oe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Zt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((k2 == null ? void 0 : k2.jitterBufferDelay) || 0) - Oe, $ = ((k2 == null ? void 0 : k2.jitterBufferEmittedCount) || 0) - Zt;
28157
+ var f2, P7;
28158
+ let o2 = this.store.getTrackById(s2), n2 = i2[s2], l2 = (f2 = this.trackAnalytics.get(s2)) == null ? void 0 : f2.getLatestStat(), p2 = ((k2, w2) => {
28159
+ let xe = (w2 == null ? void 0 : w2.jitterBufferDelay) || 0, Zt = (w2 == null ? void 0 : w2.jitterBufferEmittedCount) || 0, x2 = ((k2 == null ? void 0 : k2.jitterBufferDelay) || 0) - xe, $ = ((k2 == null ? void 0 : k2.jitterBufferEmittedCount) || 0) - Zt;
28148
28160
  return $ > 0 ? x2 * 1e3 / $ : (w2 == null ? void 0 : w2.calculatedJitterBufferDelay) || 0;
28149
28161
  })(n2, l2), h2 = this.calculateAvSyncForStat(n2, t2), T = M2(m({}, n2), { calculatedJitterBufferDelay: p2, avSync: h2 });
28150
28162
  if (n2.kind === "video") {
@@ -28152,7 +28164,7 @@ var $t = class extends dt {
28152
28164
  T.expectedFrameHeight = k2 == null ? void 0 : k2.resolution.height, T.expectedFrameWidth = k2 == null ? void 0 : k2.resolution.width;
28153
28165
  }
28154
28166
  if (this.trackAnalytics.has(s2))
28155
- (E2 = this.trackAnalytics.get(s2)) == null || E2.pushTempStat(T);
28167
+ (P7 = this.trackAnalytics.get(s2)) == null || P7.pushTempStat(T);
28156
28168
  else if (o2) {
28157
28169
  let k2 = new Xr({ track: o2, sampleWindowSize: this.sampleWindowSize, ssrc: n2.ssrc.toString(), kind: n2.kind });
28158
28170
  k2.pushTempStat(T), this.trackAnalytics.set(s2, k2);
@@ -28222,7 +28234,7 @@ function xa(a11) {
28222
28234
  return a11.sdp.includes("usedtx=1") ? a11 : { type: a11.type, sdp: a11.sdp.replace("useinbandfec=1", "useinbandfec=1;usedtx=1") };
28223
28235
  }
28224
28236
  var Ee = "[HMSConnection]";
28225
- var Ke = class {
28237
+ var qe = class {
28226
28238
  constructor(e, t2) {
28227
28239
  this.candidates = new Array();
28228
28240
  this.role = e, this.signal = t2;
@@ -28338,7 +28350,7 @@ var Ke = class {
28338
28350
  return this.nativeConnection.getReceivers();
28339
28351
  }
28340
28352
  };
28341
- var qt = class extends Ke {
28353
+ var qt = class extends qe {
28342
28354
  constructor(t2, i2, r2) {
28343
28355
  super(0, t2);
28344
28356
  this.TAG = "[HMSPublishConnection]";
@@ -28385,7 +28397,7 @@ var jt = class {
28385
28397
  this.nativeChannel.close();
28386
28398
  }
28387
28399
  };
28388
- var Jt = class a9 extends Ke {
28400
+ var Jt = class a9 extends qe {
28389
28401
  constructor(t2, i2, r2, s2) {
28390
28402
  super(1, t2);
28391
28403
  this.isFlagEnabled = r2;
@@ -28412,7 +28424,7 @@ var Jt = class a9 extends Ke {
28412
28424
  if (d2.d(this.TAG, `Failed sending ${i3}`, { request: t3, try: o2 + 1, error: n2 }), !(n2.code / 100 === 5 || n2.code === 429))
28413
28425
  throw Error(`code=${n2.code}, message=${n2.message}`);
28414
28426
  let u2 = (2 + Math.random() * 2) * 1e3;
28415
- yield Ce(u2);
28427
+ yield Le(u2);
28416
28428
  } else
28417
28429
  break;
28418
28430
  }
@@ -28477,7 +28489,7 @@ var Jt = class a9 extends Ke {
28477
28489
  close() {
28478
28490
  return c2(this, null, function* () {
28479
28491
  var t2;
28480
- yield Q2(a9.prototype, this, "close").call(this), (t2 = this.apiChannel) == null || t2.close();
28492
+ yield J(a9.prototype, this, "close").call(this), (t2 = this.apiChannel) == null || t2.close();
28481
28493
  });
28482
28494
  }
28483
28495
  };
@@ -28505,7 +28517,7 @@ var Qt = class {
28505
28517
  return this.handleError(u2, p2), d2.d(pr, `config is ${JSON.stringify(p2, null, 2)}`), un2(p2, o2);
28506
28518
  } catch (p2) {
28507
28519
  let h2 = yield u2.text();
28508
- throw d2.e(pr, "json error", p2.message, h2), p2 instanceof f2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
28520
+ throw d2.e(pr, "json error", p2.message, h2), p2 instanceof v2 ? p2 : S2.APIErrors.ServerErrors(u2.status, "INIT", p2.message);
28509
28521
  }
28510
28522
  } catch (u2) {
28511
28523
  let p2 = u2;
@@ -28530,7 +28542,7 @@ function un2(a11, e) {
28530
28542
  var zt = class {
28531
28543
  constructor(e) {
28532
28544
  this.TAG = "[SIGNAL]: ";
28533
- this.pongResponseTimes = new He(5);
28545
+ this.pongResponseTimes = new Ce(5);
28534
28546
  this.isJoinCompleted = false;
28535
28547
  this.pendingTrickle = [];
28536
28548
  this.socket = null;
@@ -28572,7 +28584,7 @@ var zt = class {
28572
28584
  this.callbacks.set(i2, { resolve: n2, reject: l2, metadata: { method: e } });
28573
28585
  });
28574
28586
  } catch (o2) {
28575
- if (o2 instanceof f2)
28587
+ if (o2 instanceof v2)
28576
28588
  throw o2;
28577
28589
  let n2 = o2;
28578
28590
  throw S2.WebsocketMethodErrors.ServerErrors(Number(n2.code), fr(e), n2.message);
@@ -28886,7 +28898,7 @@ var zt = class {
28886
28898
  if (r2 = o2, d2.e(this.TAG, `Failed sending ${e} try: ${s2}`, { method: e, params: t2, error: r2 }), !(parseInt(`${r2.code / 100}`) === 5 || r2.code === 429))
28887
28899
  break;
28888
28900
  let l2 = (2 + Math.random() * 2) * 1e3;
28889
- yield Ce(l2);
28901
+ yield Le(l2);
28890
28902
  }
28891
28903
  throw d2.e(`Sending ${e} over WS failed after ${Math.min(s2, 3)} retries`, { method: e, params: t2, error: r2 }), r2;
28892
28904
  });
@@ -28898,7 +28910,7 @@ var Ba = () => {
28898
28910
  let a11 = navigator.connection;
28899
28911
  return { downlink: a11.downlink, downlinkMax: a11.downlinkMax, effectiveType: a11.effectiveType, rtt: a11.rtt, saveData: a11.saveData, type: a11.type };
28900
28912
  };
28901
- var A2 = "[HMSTransport]:";
28913
+ var I2 = "[HMSTransport]:";
28902
28914
  var Yt = class {
28903
28915
  constructor(e, t2, i2, r2, s2, o2, n2) {
28904
28916
  this.observer = e;
@@ -28919,16 +28931,16 @@ var Yt = class {
28919
28931
  try {
28920
28932
  if (!this.subscribeConnection)
28921
28933
  return;
28922
- yield this.subscribeConnection.setRemoteDescription(e2), d2.d(A2, `[SUBSCRIBE] Adding ${this.subscribeConnection.candidates.length} ice-candidates`, this.subscribeConnection.candidates);
28934
+ yield this.subscribeConnection.setRemoteDescription(e2), d2.d(I2, `[SUBSCRIBE] Adding ${this.subscribeConnection.candidates.length} ice-candidates`, this.subscribeConnection.candidates);
28923
28935
  for (let i3 of this.subscribeConnection.candidates)
28924
28936
  yield this.subscribeConnection.addIceCandidate(i3);
28925
28937
  this.subscribeConnection.candidates.length = 0;
28926
28938
  let t3 = yield this.subscribeConnection.createAnswer();
28927
- yield this.subscribeConnection.setLocalDescription(t3), this.signal.answer(t3), d2.d(A2, "[role=SUBSCRIBE] onOffer renegotiation DONE \u2705");
28939
+ yield this.subscribeConnection.setLocalDescription(t3), this.signal.answer(t3), d2.d(I2, "[role=SUBSCRIBE] onOffer renegotiation DONE \u2705");
28928
28940
  } catch (t3) {
28929
- d2.d(A2, "[role=SUBSCRIBE] onOffer renegotiation FAILED \u274C", t3), this.state = "Failed";
28941
+ d2.d(I2, "[role=SUBSCRIBE] onOffer renegotiation FAILED \u274C", t3), this.state = "Failed";
28930
28942
  let i3;
28931
- t3 instanceof f2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
28943
+ t3 instanceof v2 ? i3 = t3 : i3 = S2.GenericErrors.Unknown("PUBLISH", t3.message), this.observer.onFailure(i3), this.eventBus.analytics.publish(y2.subscribeFail(i3));
28932
28944
  }
28933
28945
  }), onTrickle: (e2) => c2(this, null, function* () {
28934
28946
  let t3 = e2.target === 0 ? this.publishConnection : this.subscribeConnection;
@@ -28938,7 +28950,7 @@ var Yt = class {
28938
28950
  }), onFailure: (e2) => {
28939
28951
  this.joinParameters && this.retryScheduler.schedule({ category: 1, error: e2, task: this.retrySignalDisconnectTask, originalState: this.state });
28940
28952
  }, onOffline: (e2) => c2(this, null, function* () {
28941
- d2.d(A2, "socket offline", ir[this.state]);
28953
+ d2.d(I2, "socket offline", ir[this.state]);
28942
28954
  try {
28943
28955
  this.state !== "Leaving" && this.joinParameters && this.retryScheduler.schedule({ category: 1, error: S2.WebSocketConnectionErrors.WebSocketConnectionLost("RECONNECT_SIGNAL", e2), task: this.retrySignalDisconnectTask, originalState: this.state });
28944
28956
  } catch (t3) {
@@ -28946,7 +28958,7 @@ var Yt = class {
28946
28958
  }
28947
28959
  }), onOnline: () => {
28948
28960
  var e2;
28949
- d2.d(A2, "socket online", ir[this.state]), this.analyticsSignalTransport.flushFailedEvents((e2 = this.store.getLocalPeer()) == null ? void 0 : e2.peerId);
28961
+ d2.d(I2, "socket online", ir[this.state]), this.analyticsSignalTransport.flushFailedEvents((e2 = this.store.getLocalPeer()) == null ? void 0 : e2.peerId);
28950
28962
  }, onNetworkOnline: () => {
28951
28963
  this.analyticsEventsService.flushFailedClientEvents();
28952
28964
  } };
@@ -28958,7 +28970,7 @@ var Yt = class {
28958
28970
  yield this.performPublishRenegotiation();
28959
28971
  }), onDTLSTransportStateChange: (e2) => {
28960
28972
  var r3, s3, o3;
28961
- if ((e2 === "failed" ? d2.w.bind(d2) : d2.d.bind(d2))(A2, `Publisher on dtls transport state change: ${e2}`), !e2 || this.lastPublishDtlsState === e2 || (this.lastPublishDtlsState = e2, this.publishDtlsStateTimer !== 0 && (clearTimeout(this.publishDtlsStateTimer), this.publishDtlsStateTimer = 0), e2 !== "connecting" && e2 !== "failed"))
28973
+ if ((e2 === "failed" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Publisher on dtls transport state change: ${e2}`), !e2 || this.lastPublishDtlsState === e2 || (this.lastPublishDtlsState = e2, this.publishDtlsStateTimer !== 0 && (clearTimeout(this.publishDtlsStateTimer), this.publishDtlsStateTimer = 0), e2 !== "connecting" && e2 !== "failed"))
28962
28974
  return;
28963
28975
  let i3 = (o3 = (s3 = (r3 = this.initConfig) == null ? void 0 : r3.config) == null ? void 0 : s3.dtlsStateTimeouts) == null ? void 0 : o3[e2];
28964
28976
  !i3 || i3 <= 0 || (this.publishDtlsStateTimer = window.setTimeout(() => {
@@ -28970,14 +28982,14 @@ var Yt = class {
28970
28982
  }
28971
28983
  }, i3));
28972
28984
  }, onDTLSTransportError: (e2) => {
28973
- d2.e(A2, `onDTLSTransportError ${e2.name} ${e2.message}`, e2), this.eventBus.analytics.publish(y2.disconnect(e2));
28985
+ d2.e(I2, `onDTLSTransportError ${e2.name} ${e2.message}`, e2), this.eventBus.analytics.publish(y2.disconnect(e2));
28974
28986
  }, onIceConnectionChange: (e2) => c2(this, null, function* () {
28975
- (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(A2, `Publish ice connection state change: ${e2}`);
28987
+ (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Publish ice connection state change: ${e2}`);
28976
28988
  }), onConnectionStateChange: (e2) => c2(this, null, function* () {
28977
28989
  var i3, r3, s3, o3, n3, l3, u3, p3;
28978
- (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(A2, `Publish connection state change: ${e2}`), e2 === "connected" && ((i3 = this.connectivityListener) == null || i3.onICESuccess(true), (r3 = this.publishConnection) == null || r3.handleSelectedIceCandidatePairs()), e2 === "disconnected" && setTimeout(() => {
28979
- var h2, T, g2, v2, E2, k2, w2;
28980
- ((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(v2 = (g2 = (T = this.publishConnection) == null ? void 0 : T.selectedCandidatePair) == null ? void 0 : g2.local) == null ? void 0 : v2.candidate}; remote candidate - ${(w2 = (k2 = (E2 = this.publishConnection) == null ? void 0 : E2.selectedCandidatePair) == null ? void 0 : k2.remote) == null ? void 0 : w2.candidate}`));
28990
+ (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Publish connection state change: ${e2}`), e2 === "connected" && ((i3 = this.connectivityListener) == null || i3.onICESuccess(true), (r3 = this.publishConnection) == null || r3.handleSelectedIceCandidatePairs()), e2 === "disconnected" && setTimeout(() => {
28991
+ var h2, T, g2, f2, P7, k2, w2;
28992
+ ((h2 = this.publishConnection) == null ? void 0 : h2.connectionState) === "disconnected" && this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEDisconnected("PUBLISH", `local candidate - ${(f2 = (g2 = (T = this.publishConnection) == null ? void 0 : T.selectedCandidatePair) == null ? void 0 : g2.local) == null ? void 0 : f2.candidate}; remote candidate - ${(w2 = (k2 = (P7 = this.publishConnection) == null ? void 0 : P7.selectedCandidatePair) == null ? void 0 : k2.remote) == null ? void 0 : w2.candidate}`));
28981
28993
  }, 5e3), e2 === "failed" && (yield this.handleIceConnectionFailure(0, S2.WebrtcErrors.ICEFailure("PUBLISH", `local candidate - ${(n3 = (o3 = (s3 = this.publishConnection) == null ? void 0 : s3.selectedCandidatePair) == null ? void 0 : o3.local) == null ? void 0 : n3.candidate}; remote candidate - ${(p3 = (u3 = (l3 = this.publishConnection) == null ? void 0 : l3.selectedCandidatePair) == null ? void 0 : u3.remote) == null ? void 0 : p3.candidate}`)));
28982
28994
  }), onIceCandidate: (e2) => {
28983
28995
  var t3;
@@ -28989,20 +29001,20 @@ var Yt = class {
28989
29001
  this.subscribeConnectionObserver = { onApiChannelMessage: (e2) => {
28990
29002
  this.observer.onNotification(JSON.parse(e2));
28991
29003
  }, onTrackAdd: (e2) => {
28992
- d2.d(A2, "[Subscribe] onTrackAdd", `${e2}`), this.observer.onTrackAdd(e2);
29004
+ d2.d(I2, "[Subscribe] onTrackAdd", `${e2}`), this.observer.onTrackAdd(e2);
28993
29005
  }, onTrackRemove: (e2) => {
28994
- d2.d(A2, "[Subscribe] onTrackRemove", `${e2}`), this.observer.onTrackRemove(e2);
29006
+ d2.d(I2, "[Subscribe] onTrackRemove", `${e2}`), this.observer.onTrackRemove(e2);
28995
29007
  }, onIceConnectionChange: (e2) => c2(this, null, function* () {
28996
29008
  var i3;
28997
- if ((e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(A2, `Subscribe ice connection state change: ${e2}`), e2 === "connected") {
29009
+ if ((e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Subscribe ice connection state change: ${e2}`), e2 === "connected") {
28998
29010
  let r3 = this.callbacks.get(tt);
28999
29011
  this.callbacks.delete(tt), (i3 = this.connectivityListener) == null || i3.onICESuccess(false), r3 && r3.promise.resolve(true);
29000
29012
  }
29001
29013
  }), onConnectionStateChange: (e2) => c2(this, null, function* () {
29002
29014
  var i3, r3, s3, o3, n3, l3;
29003
- (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(A2, `Subscribe connection state change: ${e2}`), e2 === "failed" && (yield this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEFailure("SUBSCRIBE", `local candidate - ${(s3 = (r3 = (i3 = this.subscribeConnection) == null ? void 0 : i3.selectedCandidatePair) == null ? void 0 : r3.local) == null ? void 0 : s3.candidate}; remote candidate - ${(l3 = (n3 = (o3 = this.subscribeConnection) == null ? void 0 : o3.selectedCandidatePair) == null ? void 0 : n3.remote) == null ? void 0 : l3.candidate}`))), e2 === "disconnected" && setTimeout(() => {
29004
- var u3, p3, h2, T, g2, v2, E2;
29005
- ((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(E2 = (v2 = (g2 = this.subscribeConnection) == null ? void 0 : g2.selectedCandidatePair) == null ? void 0 : v2.remote) == null ? void 0 : E2.candidate}`));
29015
+ (e2 === "disconnected" ? d2.w.bind(d2) : d2.d.bind(d2))(I2, `Subscribe connection state change: ${e2}`), e2 === "failed" && (yield this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEFailure("SUBSCRIBE", `local candidate - ${(s3 = (r3 = (i3 = this.subscribeConnection) == null ? void 0 : i3.selectedCandidatePair) == null ? void 0 : r3.local) == null ? void 0 : s3.candidate}; remote candidate - ${(l3 = (n3 = (o3 = this.subscribeConnection) == null ? void 0 : o3.selectedCandidatePair) == null ? void 0 : n3.remote) == null ? void 0 : l3.candidate}`))), e2 === "disconnected" && setTimeout(() => {
29016
+ var u3, p3, h2, T, g2, f2, P7;
29017
+ ((u3 = this.subscribeConnection) == null ? void 0 : u3.connectionState) === "disconnected" && this.handleIceConnectionFailure(1, S2.WebrtcErrors.ICEDisconnected("SUBSCRIBE", `local candidate - ${(T = (h2 = (p3 = this.subscribeConnection) == null ? void 0 : p3.selectedCandidatePair) == null ? void 0 : h2.local) == null ? void 0 : T.candidate}; remote candidate - ${(P7 = (f2 = (g2 = this.subscribeConnection) == null ? void 0 : g2.selectedCandidatePair) == null ? void 0 : f2.remote) == null ? void 0 : P7.candidate}`));
29006
29018
  }, 5e3), e2 === "connected" && this.handleSubscribeConnectionConnected();
29007
29019
  }), onIceCandidate: (e2) => {
29008
29020
  var t3;
@@ -29012,7 +29024,7 @@ var Yt = class {
29012
29024
  (t3 = this.connectivityListener) == null || t3.onSelectedICECandidatePairChange(e2, false);
29013
29025
  } };
29014
29026
  this.handleLocalRoleUpdate = (i3) => c2(this, [i3], function* ({ oldRole: e2, newRole: t3 }) {
29015
- !this.doesRoleNeedWebRTC(e2) && this.doesRoleNeedWebRTC(t3) && (d2.d(A2, "Local peer role updated to webrtc role, creating PeerConnections and performing inital publish negotiation \u23F3"), this.createPeerConnections(), yield this.negotiateOnFirstPublish());
29027
+ !this.doesRoleNeedWebRTC(e2) && this.doesRoleNeedWebRTC(t3) && (d2.d(I2, "Local peer role updated to webrtc role, creating PeerConnections and performing inital publish negotiation \u23F3"), this.createPeerConnections(), yield this.negotiateOnFirstPublish());
29016
29028
  });
29017
29029
  this.retryPublishIceFailedTask = () => c2(this, null, function* () {
29018
29030
  if (this.publishConnection) {
@@ -29036,7 +29048,7 @@ var Yt = class {
29036
29048
  });
29037
29049
  this.retrySignalDisconnectTask = () => c2(this, null, function* () {
29038
29050
  var t3;
29039
- d2.d(A2, "retrySignalDisconnectTask", { signalConnected: this.signal.isConnected }), this.signal.isConnected || (yield this.internalConnect(this.joinParameters.authToken, this.joinParameters.endpoint, this.joinParameters.peerId, this.joinParameters.iceServers));
29051
+ d2.d(I2, "retrySignalDisconnectTask", { signalConnected: this.signal.isConnected }), this.signal.isConnected || (yield this.internalConnect(this.joinParameters.authToken, this.joinParameters.endpoint, this.joinParameters.peerId, this.joinParameters.iceServers));
29040
29052
  let e2 = (t3 = this.store.getRoom()) != null && t3.joinedAt ? this.signal.isConnected && (yield this.retryPublishIceFailedTask()) : this.signal.isConnected;
29041
29053
  return this.signal.trackUpdate(this.trackStates), e2;
29042
29054
  });
@@ -29046,8 +29058,8 @@ var Yt = class {
29046
29058
  h2 !== this.state && (this.state = h2, yield this.observer.onStateChange(this.state, T));
29047
29059
  });
29048
29060
  this.retryScheduler = new sr(l2, this.sendErrorAnalyticsEvent.bind(this)), this.eventBus.statsUpdate.subscribe((h2) => {
29049
- var g2, v2;
29050
- let T = ((v2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : v2.bitrate) || 0;
29061
+ var g2, f2;
29062
+ let T = ((f2 = (g2 = h2.getLocalPeerStats()) == null ? void 0 : g2.subscribe) == null ? void 0 : f2.bitrate) || 0;
29051
29063
  this.maxSubscribeBitrate = Math.max(this.maxSubscribeBitrate, T);
29052
29064
  }), this.eventBus.localAudioEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2)), this.eventBus.localVideoEnabled.subscribe(({ track: h2 }) => this.trackUpdate(h2));
29053
29065
  }
@@ -29070,15 +29082,15 @@ var Yt = class {
29070
29082
  }
29071
29083
  join(e, t2, i2, r2, s2 = false, o2) {
29072
29084
  return c2(this, null, function* () {
29073
- d2.d(A2, "join: started \u23F0");
29085
+ d2.d(I2, "join: started \u23F0");
29074
29086
  try {
29075
- (!this.signal.isConnected || !this.initConfig) && (yield this.connect(e, r2, t2, i2, s2, o2)), this.validateNotDisconnected("connect"), this.initConfig && (yield this.waitForLocalRoleAvailability(), yield this.createConnectionsAndNegotiateJoin(i2, s2), yield this.initRtcStatsMonitor(), d2.d(A2, "\u2705 join: Negotiated over PUBLISH connection"));
29087
+ (!this.signal.isConnected || !this.initConfig) && (yield this.connect(e, r2, t2, i2, s2, o2)), this.validateNotDisconnected("connect"), this.initConfig && (yield this.waitForLocalRoleAvailability(), yield this.createConnectionsAndNegotiateJoin(i2, s2), yield this.initRtcStatsMonitor(), d2.d(I2, "\u2705 join: Negotiated over PUBLISH connection"));
29076
29088
  } catch (n2) {
29077
- d2.e(A2, `join: failed \u274C [token=${e}]`, n2), this.state = "Failed";
29089
+ d2.e(I2, `join: failed \u274C [token=${e}]`, n2), this.state = "Failed";
29078
29090
  let l2 = n2;
29079
29091
  throw l2.isTerminal = l2.isTerminal || l2.code === 500, yield this.observer.onStateChange(this.state, l2), l2;
29080
29092
  }
29081
- d2.d(A2, "\u2705 join: successful"), this.state = "Joined", this.observer.onStateChange(this.state);
29093
+ d2.d(I2, "\u2705 join: successful"), this.state = "Joined", this.observer.onStateChange(this.state);
29082
29094
  });
29083
29095
  }
29084
29096
  connect(e, t2, i2, r2, s2 = false, o2) {
@@ -29087,7 +29099,7 @@ var Yt = class {
29087
29099
  try {
29088
29100
  return yield this.internalConnect(e, t2, i2, o2);
29089
29101
  } catch (n2) {
29090
- if (n2 instanceof f2 && ([P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, P4.APIErrors.ENDPOINT_UNREACHABLE].includes(n2.code) || n2.code.toString().startsWith("5") || n2.code.toString().startsWith("429"))) {
29102
+ if (n2 instanceof v2 && ([E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, E2.WebSocketConnectionErrors.FAILED_TO_CONNECT, E2.WebSocketConnectionErrors.ABNORMAL_CLOSE, E2.APIErrors.ENDPOINT_UNREACHABLE].includes(n2.code) || n2.code.toString().startsWith("5") || n2.code.toString().startsWith("429"))) {
29091
29103
  let u2 = () => c2(this, null, function* () {
29092
29104
  return yield this.internalConnect(e, t2, i2, o2), !!(this.initConfig && this.initConfig.endpoint);
29093
29105
  });
@@ -29100,18 +29112,18 @@ var Yt = class {
29100
29112
  leave(e) {
29101
29113
  return c2(this, null, function* () {
29102
29114
  var t2, i2, r2, s2, o2;
29103
- this.retryScheduler.reset(), this.joinParameters = void 0, d2.d(A2, "leaving in transport");
29115
+ this.retryScheduler.reset(), this.joinParameters = void 0, d2.d(I2, "leaving in transport");
29104
29116
  try {
29105
29117
  let n2 = this.pluginUsageTracker.getPluginUsage("HMSKrispPlugin");
29106
29118
  if (n2 && this.eventBus.analytics.publish(y2.getKrispUsage(n2)), this.state = "Leaving", (t2 = this.publishStatsAnalytics) == null || t2.stop(), (i2 = this.subscribeStatsAnalytics) == null || i2.stop(), (r2 = this.webrtcInternals) == null || r2.cleanup(), yield (s2 = this.publishConnection) == null ? void 0 : s2.close(), yield (o2 = this.subscribeConnection) == null ? void 0 : o2.close(), e)
29107
29119
  try {
29108
- this.signal.leave(), d2.d(A2, "signal leave done");
29120
+ this.signal.leave(), d2.d(I2, "signal leave done");
29109
29121
  } catch (l2) {
29110
- d2.w(A2, "failed to send leave on websocket to server", l2);
29122
+ d2.w(I2, "failed to send leave on websocket to server", l2);
29111
29123
  }
29112
29124
  this.analyticsEventsService.flushFailedClientEvents(), this.analyticsEventsService.reset(), yield this.signal.close();
29113
29125
  } catch (n2) {
29114
- this.eventBus.analytics.publish(y2.disconnect(n2)), d2.e(A2, "leave: FAILED \u274C", n2);
29126
+ this.eventBus.analytics.publish(y2.disconnect(n2)), d2.e(I2, "leave: FAILED \u274C", n2);
29115
29127
  } finally {
29116
29128
  this.state = "Disconnected", this.observer.onStateChange(this.state);
29117
29129
  }
@@ -29138,25 +29150,25 @@ var Yt = class {
29138
29150
  let i2 = Array.from(this.trackStates.values()).find((r2) => e.type === r2.type && e.source === r2.source);
29139
29151
  if (i2) {
29140
29152
  let r2 = new Nt(M2(m({}, i2), { mute: !e.enabled }));
29141
- this.trackStates.set(i2.track_id, r2), d2.d(A2, "Track Update", this.trackStates, e), this.signal.trackUpdate(/* @__PURE__ */ new Map([[i2.track_id, r2]]));
29153
+ this.trackStates.set(i2.track_id, r2), d2.d(I2, "Track Update", this.trackStates, e), this.signal.trackUpdate(/* @__PURE__ */ new Map([[i2.track_id, r2]]));
29142
29154
  }
29143
29155
  }
29144
29156
  publishTrack(e) {
29145
29157
  return c2(this, null, function* () {
29146
- e.publishedTrackId = e.getTrackIDBeingSent(), d2.d(A2, `\u23F3 publishTrack: trackId=${e.trackId}, toPublishTrackId=${e.publishedTrackId}`, `${e}`), this.trackStates.set(e.publishedTrackId, new Nt(e));
29158
+ e.publishedTrackId = e.getTrackIDBeingSent(), d2.d(I2, `\u23F3 publishTrack: trackId=${e.trackId}, toPublishTrackId=${e.publishedTrackId}`, `${e}`), this.trackStates.set(e.publishedTrackId, new Nt(e));
29147
29159
  let t2 = new Promise((s2, o2) => {
29148
29160
  this.callbacks.set(et, { promise: { resolve: s2, reject: o2 }, action: "PUBLISH", extra: {} });
29149
29161
  }), i2 = e.stream;
29150
29162
  i2.setConnection(this.publishConnection);
29151
29163
  let r2 = this.store.getSimulcastLayers(e.source);
29152
29164
  i2.addTransceiver(e, r2), d2.time(`publish-${e.trackId}-${e.type}`), yield t2, d2.timeEnd(`publish-${e.trackId}-${e.type}`), this.store.addTrack(e), yield i2.setMaxBitrateAndFramerate(e).then(() => {
29153
- d2.d(A2, `Setting maxBitrate=${e.settings.maxBitrate} kpbs${e instanceof F ? ` and maxFramerate=${e.settings.maxFramerate}` : ""} for ${e.source} ${e.type} ${e.trackId}`);
29154
- }).catch((s2) => d2.w(A2, "Failed setting maxBitrate and maxFramerate", s2)), e.isPublished = true, d2.d(A2, `\u2705 publishTrack: trackId=${e.trackId}`, `${e}`, this.callbacks);
29165
+ d2.d(I2, `Setting maxBitrate=${e.settings.maxBitrate} kpbs${e instanceof F ? ` and maxFramerate=${e.settings.maxFramerate}` : ""} for ${e.source} ${e.type} ${e.trackId}`);
29166
+ }).catch((s2) => d2.w(I2, "Failed setting maxBitrate and maxFramerate", s2)), e.isPublished = true, d2.d(I2, `\u2705 publishTrack: trackId=${e.trackId}`, `${e}`, this.callbacks);
29155
29167
  });
29156
29168
  }
29157
29169
  unpublishTrack(e) {
29158
29170
  return c2(this, null, function* () {
29159
- if (d2.d(A2, `\u23F3 unpublishTrack: trackId=${e.trackId}`, `${e}`), e.publishedTrackId && this.trackStates.has(e.publishedTrackId))
29171
+ if (d2.d(I2, `\u23F3 unpublishTrack: trackId=${e.trackId}`, `${e}`), e.publishedTrackId && this.trackStates.has(e.publishedTrackId))
29160
29172
  this.trackStates.delete(e.publishedTrackId);
29161
29173
  else {
29162
29174
  let s2 = Array.from(this.trackStates.values()).find((o2) => e.type === o2.type && e.source === o2.source);
@@ -29165,7 +29177,7 @@ var Yt = class {
29165
29177
  let t2 = new Promise((r2, s2) => {
29166
29178
  this.callbacks.set(et, { promise: { resolve: r2, reject: s2 }, action: "UNPUBLISH", extra: {} });
29167
29179
  });
29168
- e.stream.removeSender(e), yield t2, yield e.cleanup(), this.store.removeTrack(e), d2.d(A2, `\u2705 unpublishTrack: trackId=${e.trackId}`, this.callbacks);
29180
+ e.stream.removeSender(e), yield t2, yield e.cleanup(), this.store.removeTrack(e), d2.d(I2, `\u2705 unpublishTrack: trackId=${e.trackId}`, this.callbacks);
29169
29181
  });
29170
29182
  }
29171
29183
  waitForLocalRoleAvailability() {
@@ -29188,8 +29200,8 @@ var Yt = class {
29188
29200
  try {
29189
29201
  yield this.negotiateJoin({ name: e, data: t2, autoSubscribeVideo: i2, isWebRTC: r2 });
29190
29202
  } catch (o2) {
29191
- d2.e(A2, "Join negotiation failed \u274C", o2);
29192
- let n2 = o2 instanceof f2 ? o2 : S2.WebsocketMethodErrors.ServerErrors(500, "JOIN", `Websocket join error - ${o2.message}`), l2 = parseInt(`${n2.code / 100}`) === 5 || [P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, 429].includes(n2.code);
29203
+ d2.e(I2, "Join negotiation failed \u274C", o2);
29204
+ let n2 = o2 instanceof v2 ? o2 : S2.WebsocketMethodErrors.ServerErrors(500, "JOIN", `Websocket join error - ${o2.message}`), l2 = parseInt(`${n2.code / 100}`) === 5 || [E2.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, 429].includes(n2.code);
29193
29205
  if (n2.code === 410 && (n2.isTerminal = true), l2) {
29194
29206
  this.joinRetryCount = 0, n2.isTerminal = false;
29195
29207
  let u2 = () => c2(this, null, function* () {
@@ -29208,8 +29220,8 @@ var Yt = class {
29208
29220
  }
29209
29221
  negotiateJoinWebRTC(r2) {
29210
29222
  return c2(this, arguments, function* ({ name: e, data: t2, autoSubscribeVideo: i2 }) {
29211
- if (d2.d(A2, "\u23F3 join: Negotiating over PUBLISH connection"), !this.publishConnection)
29212
- return d2.e(A2, "Publish peer connection not found, cannot negotiate"), false;
29223
+ if (d2.d(I2, "\u23F3 join: Negotiating over PUBLISH connection"), !this.publishConnection)
29224
+ return d2.e(I2, "Publish peer connection not found, cannot negotiate"), false;
29213
29225
  let s2 = yield this.publishConnection.createOffer();
29214
29226
  yield this.publishConnection.setLocalDescription(s2);
29215
29227
  let o2 = this.isFlagEnabled("subscribeDegradation"), n2 = this.isFlagEnabled("simulcast"), l2 = this.isFlagEnabled("onDemandTracks"), u2 = yield this.signal.join(e, t2, !i2, o2, n2, l2, s2);
@@ -29221,15 +29233,15 @@ var Yt = class {
29221
29233
  }
29222
29234
  negotiateJoinNonWebRTC(r2) {
29223
29235
  return c2(this, arguments, function* ({ name: e, data: t2, autoSubscribeVideo: i2 }) {
29224
- d2.d(A2, "\u23F3 join: Negotiating Non-WebRTC");
29236
+ d2.d(I2, "\u23F3 join: Negotiating Non-WebRTC");
29225
29237
  let s2 = this.isFlagEnabled("subscribeDegradation"), o2 = this.isFlagEnabled("simulcast"), n2 = this.isFlagEnabled("onDemandTracks");
29226
29238
  return !!(yield this.signal.join(e, t2, !i2, s2, o2, n2));
29227
29239
  });
29228
29240
  }
29229
29241
  negotiateOnFirstPublish() {
29230
29242
  return c2(this, null, function* () {
29231
- if (d2.d(A2, "\u23F3 Negotiating offer over PUBLISH connection"), !this.publishConnection)
29232
- return d2.e(A2, "Publish peer connection not found, cannot negotiate"), false;
29243
+ if (d2.d(I2, "\u23F3 Negotiating offer over PUBLISH connection"), !this.publishConnection)
29244
+ return d2.e(I2, "Publish peer connection not found, cannot negotiate"), false;
29233
29245
  let e = yield this.publishConnection.createOffer(this.trackStates);
29234
29246
  yield this.publishConnection.setLocalDescription(e);
29235
29247
  let t2 = yield this.signal.offer(e, this.trackStates);
@@ -29241,21 +29253,21 @@ var Yt = class {
29241
29253
  }
29242
29254
  performPublishRenegotiation(e) {
29243
29255
  return c2(this, null, function* () {
29244
- d2.d(A2, "\u23F3 [role=PUBLISH] onRenegotiationNeeded START", this.trackStates);
29256
+ d2.d(I2, "\u23F3 [role=PUBLISH] onRenegotiationNeeded START", this.trackStates);
29245
29257
  let t2 = this.callbacks.get(et);
29246
29258
  if (t2) {
29247
29259
  if (!this.publishConnection) {
29248
- d2.e(A2, "Publish peer connection not found, cannot renegotiate");
29260
+ d2.e(I2, "Publish peer connection not found, cannot renegotiate");
29249
29261
  return;
29250
29262
  }
29251
29263
  try {
29252
29264
  let i2 = yield this.publishConnection.createOffer(this.trackStates, e);
29253
29265
  yield this.publishConnection.setLocalDescription(i2), d2.time("renegotiation-offer-exchange");
29254
29266
  let r2 = yield this.signal.offer(i2, this.trackStates);
29255
- this.callbacks.delete(et), d2.timeEnd("renegotiation-offer-exchange"), yield this.publishConnection.setRemoteDescription(r2), t2.promise.resolve(true), d2.d(A2, "[role=PUBLISH] onRenegotiationNeeded DONE \u2705");
29267
+ this.callbacks.delete(et), d2.timeEnd("renegotiation-offer-exchange"), yield this.publishConnection.setRemoteDescription(r2), t2.promise.resolve(true), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded DONE \u2705");
29256
29268
  } catch (i2) {
29257
29269
  let r2;
29258
- i2 instanceof f2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(A2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
29270
+ i2 instanceof v2 ? r2 = i2 : r2 = S2.GenericErrors.Unknown("PUBLISH", i2.message), t2.promise.reject(r2), d2.d(I2, "[role=PUBLISH] onRenegotiationNeeded FAILED \u274C");
29259
29271
  }
29260
29272
  }
29261
29273
  });
@@ -29268,28 +29280,28 @@ var Yt = class {
29268
29280
  internalConnect(e, t2, i2, r2) {
29269
29281
  return c2(this, null, function* () {
29270
29282
  var o2, n2, l2;
29271
- d2.d(A2, "connect: started \u23F0");
29283
+ d2.d(I2, "connect: started \u23F0");
29272
29284
  let s2 = /* @__PURE__ */ new Date();
29273
29285
  try {
29274
29286
  this.analyticsTimer.start("init_response_time"), this.initConfig = yield Qt.fetchInitConfig({ token: e, peerId: i2, userAgent: this.store.getUserAgent(), initEndpoint: t2, iceServers: r2 }), (o2 = this.connectivityListener) == null || o2.onInitSuccess(this.initConfig.endpoint);
29275
29287
  let u2 = this.store.getRoom();
29276
- return u2 && (u2.effectsKey = (n2 = this.initConfig.config.vb) == null ? void 0 : n2.effectsKey, u2.isEffectsEnabled = this.isFlagEnabled("effectsSDKEnabled"), u2.isHipaaEnabled = this.isFlagEnabled("hipaa"), u2.isNoiseCancellationEnabled = this.isFlagEnabled("noiseCancellation")), this.analyticsTimer.end("init_response_time"), Pe.setWebsocketEndpoint(this.initConfig.endpoint), this.validateNotDisconnected("post init"), yield this.openSignal(e, i2), this.observer.onConnected(), (l2 = this.connectivityListener) == null || l2.onSignallingSuccess(), this.store.setSimulcastEnabled(this.isFlagEnabled("simulcast")), d2.d(A2, "Adding Analytics Transport: JsonRpcSignal"), this.analyticsEventsService.setTransport(this.analyticsSignalTransport), this.analyticsEventsService.flush(), this.initConfig;
29288
+ return u2 && (u2.effectsKey = (n2 = this.initConfig.config.vb) == null ? void 0 : n2.effectsKey, u2.isEffectsEnabled = this.isFlagEnabled("effectsSDKEnabled"), u2.isHipaaEnabled = this.isFlagEnabled("hipaa"), u2.isNoiseCancellationEnabled = this.isFlagEnabled("noiseCancellation")), this.analyticsTimer.end("init_response_time"), Pe.setWebsocketEndpoint(this.initConfig.endpoint), this.validateNotDisconnected("post init"), yield this.openSignal(e, i2), this.observer.onConnected(), (l2 = this.connectivityListener) == null || l2.onSignallingSuccess(), this.store.setSimulcastEnabled(this.isFlagEnabled("simulcast")), d2.d(I2, "Adding Analytics Transport: JsonRpcSignal"), this.analyticsEventsService.setTransport(this.analyticsSignalTransport), this.analyticsEventsService.flush(), this.initConfig;
29277
29289
  } catch (u2) {
29278
- throw this.state !== "Reconnecting" && this.eventBus.analytics.publish(y2.connect(u2, this.getAdditionalAnalyticsProperties(), s2, /* @__PURE__ */ new Date(), t2)), d2.e(A2, "\u274C internal connect: failed", u2), u2;
29290
+ throw this.state !== "Reconnecting" && this.eventBus.analytics.publish(y2.connect(u2, this.getAdditionalAnalyticsProperties(), s2, /* @__PURE__ */ new Date(), t2)), d2.e(I2, "\u274C internal connect: failed", u2), u2;
29279
29291
  }
29280
29292
  });
29281
29293
  }
29282
29294
  validateNotDisconnected(e) {
29283
29295
  if (this.state === "Disconnected")
29284
- throw d2.w(A2, "aborting join as transport state is disconnected"), S2.GenericErrors.ValidationFailed(`leave called before join could complete - stage=${e}`);
29296
+ throw d2.w(I2, "aborting join as transport state is disconnected"), S2.GenericErrors.ValidationFailed(`leave called before join could complete - stage=${e}`);
29285
29297
  }
29286
29298
  openSignal(e, t2) {
29287
29299
  return c2(this, null, function* () {
29288
29300
  if (!this.initConfig)
29289
29301
  throw S2.APIErrors.InitConfigNotAvailable("INIT", "Init Config not found");
29290
- d2.d(A2, "\u23F3 internal connect: connecting to ws endpoint", this.initConfig.endpoint);
29302
+ d2.d(I2, "\u23F3 internal connect: connecting to ws endpoint", this.initConfig.endpoint);
29291
29303
  let i2 = new URL(this.initConfig.endpoint);
29292
- i2.searchParams.set("peer", t2), i2.searchParams.set("token", e), i2.searchParams.set("user_agent_v2", this.store.getUserAgent()), i2.searchParams.set("protocol_version", Vs), i2.searchParams.set("protocol_spec", Fs), this.endpoint = i2.toString(), this.analyticsTimer.start("ws_connect_time"), yield this.signal.open(this.endpoint), this.analyticsTimer.end("ws_connect_time"), this.analyticsTimer.start("on_policy_change_time"), this.analyticsTimer.start("room_state_time"), d2.d(A2, "\u2705 internal connect: connected to ws endpoint");
29304
+ i2.searchParams.set("peer", t2), i2.searchParams.set("token", e), i2.searchParams.set("user_agent_v2", this.store.getUserAgent()), i2.searchParams.set("protocol_version", Vs), i2.searchParams.set("protocol_spec", Fs), this.endpoint = i2.toString(), this.analyticsTimer.start("ws_connect_time"), yield this.signal.open(this.endpoint), this.analyticsTimer.end("ws_connect_time"), this.analyticsTimer.start("on_policy_change_time"), this.analyticsTimer.start("room_state_time"), d2.d(I2, "\u2705 internal connect: connected to ws endpoint");
29293
29305
  });
29294
29306
  }
29295
29307
  initRtcStatsMonitor() {
@@ -29355,7 +29367,7 @@ var Yt = class {
29355
29367
  }
29356
29368
  getAdditionalAnalyticsProperties() {
29357
29369
  var o2, n2, l2, u2, p2, h2, T, g2;
29358
- let e = Ba(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((v2) => v2.degraded).length, r2 = (u2 = (l2 = (n2 = (o2 = this.getWebrtcInternals()) == null ? void 0 : o2.getCurrentStats()) == null ? void 0 : n2.getLocalPeerStats()) == null ? void 0 : l2.publish) == null ? void 0 : u2.bitrate, s2 = (g2 = (T = (h2 = (p2 = this.getWebrtcInternals()) == null ? void 0 : p2.getCurrentStats()) == null ? void 0 : h2.getLocalPeerStats()) == null ? void 0 : T.subscribe) == null ? void 0 : g2.bitrate;
29370
+ let e = Ba(), t2 = typeof document != "undefined" && document.hidden, i2 = this.store.getRemoteVideoTracks().filter((f2) => f2.degraded).length, r2 = (u2 = (l2 = (n2 = (o2 = this.getWebrtcInternals()) == null ? void 0 : o2.getCurrentStats()) == null ? void 0 : n2.getLocalPeerStats()) == null ? void 0 : l2.publish) == null ? void 0 : u2.bitrate, s2 = (g2 = (T = (h2 = (p2 = this.getWebrtcInternals()) == null ? void 0 : p2.getCurrentStats()) == null ? void 0 : h2.getLocalPeerStats()) == null ? void 0 : T.subscribe) == null ? void 0 : g2.bitrate;
29359
29371
  return { network_info: e, document_hidden: t2, num_degraded_tracks: i2, bitrate: { publish: r2, subscribe: s2 }, max_sub_bitrate: this.maxSubscribeBitrate, recent_pong_response_times: this.signal.getPongResponseTimes(), transport_state: this.state };
29360
29372
  }
29361
29373
  };
@@ -29434,7 +29446,7 @@ var hr = class {
29434
29446
  var s2, o2, n2, l2;
29435
29447
  if (e.error && e.type) {
29436
29448
  let u2 = e.type.includes("audio") ? (s2 = this.localPeer) == null ? void 0 : s2.audioTrack : (o2 = this.localPeer) == null ? void 0 : o2.videoTrack;
29437
- (n2 = this.errorListener) == null || n2.onError(e.error), [P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, P4.TracksErrors.DEVICE_IN_USE, P4.TracksErrors.DEVICE_NOT_AVAILABLE].includes(e.error.code) && u2 && (u2.setEnabled(false), (l2 = this.listener) == null || l2.onTrackUpdate(2, u2, this.localPeer));
29449
+ (n2 = this.errorListener) == null || n2.onError(e.error), [E2.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, E2.TracksErrors.DEVICE_IN_USE, E2.TracksErrors.DEVICE_NOT_AVAILABLE].includes(e.error.code) && u2 && (u2.setEnabled(false), (l2 = this.listener) == null || l2.onTrackUpdate(2, u2, this.localPeer));
29438
29450
  }
29439
29451
  })();
29440
29452
  };
@@ -29447,8 +29459,9 @@ var hr = class {
29447
29459
  yield this.transport.handleLocalRoleUpdate({ oldRole: e, newRole: t2 }), yield (r2 = this.roleChangeManager) == null ? void 0 : r2.handleLocalPeerRoleUpdate({ oldRole: e, newRole: t2 }), yield this.interactivityCenter.whiteboard.handleLocalRoleUpdate();
29448
29460
  });
29449
29461
  this.sendAudioPresenceFailed = () => {
29462
+ var t2;
29450
29463
  let e = S2.TracksErrors.NoAudioDetected("PREVIEW");
29451
- d2.w(this.TAG, "Audio Presence Failure", this.transportState, e);
29464
+ d2.w(this.TAG, "Audio Presence Failure", this.transportState, e), (t2 = this.listener) == null || t2.onError(e);
29452
29465
  };
29453
29466
  this.sendJoinAnalyticsEvent = (e = false, t2) => {
29454
29467
  this.eventBus.analytics.publish(y2.join(M2(m({ error: t2 }, this.analyticsTimer.getTimes()), { time: this.analyticsTimer.getTimeTaken("join_time"), is_preview_called: e, retries_join: this.transport.joinRetryCount })));
@@ -29591,13 +29604,13 @@ var hr = class {
29591
29604
  throw S2.GenericErrors.NotReady("JOIN", "Preview is in progress, can't join");
29592
29605
  this.analyticsTimer.start("join_time"), this.sdkState.isJoinInProgress = true;
29593
29606
  let { roomId: i2, userId: r2, role: s2 } = nt(e.authToken), o2 = ((u2 = (l2 = this.localPeer) == null ? void 0 : l2.asRole) == null ? void 0 : u2.name) || ((h2 = (p2 = this.localPeer) == null ? void 0 : p2.role) == null ? void 0 : h2.name);
29594
- (T = this.networkTestManager) == null || T.stop(), this.commonSetup(e, i2, t2), this.removeDevicesFromConfig(e), this.store.setConfig(e), this.store.createAndSetUserAgent(this.frameworkInfo), Ie.resumeContext();
29607
+ (T = this.networkTestManager) == null || T.stop(), this.commonSetup(e, i2, t2), this.removeDevicesFromConfig(e), this.store.setConfig(e), this.store.createAndSetUserAgent(this.frameworkInfo), He.resumeContext();
29595
29608
  let n2 = this.store.getConfig();
29596
29609
  n2 != null && n2.autoManageWakeLock && this.wakeLockManager.acquireLock(), this.localPeer ? (this.localPeer.name = e.userName, this.localPeer.role = this.store.getPolicyForRole(s2), this.localPeer.customerUserId = r2, this.localPeer.metadata = e.metaData, delete this.localPeer.asRole) : this.createAndAddLocalPeerToStore(e, s2, r2), this.roleChangeManager = new _t(this.store, this.transport, this.deviceManager, this.getAndPublishTracks.bind(this), this.removeTrack.bind(this), this.listener), this.eventBus.localRoleUpdate.subscribe(this.handleLocalRoleUpdate), d2.d(this.TAG, `\u23F3 Joining room ${i2}`), d2.time(`join-room-${i2}`);
29597
29610
  try {
29598
29611
  yield this.transport.join(e.authToken, this.localPeer.peerId, { name: e.userName, metaData: e.metaData }, e.initEndpoint, e.autoVideoSubscribe, e.iceServers), d2.d(this.TAG, `\u2705 Joined room ${i2}`), this.analyticsTimer.start("peer_list_time"), yield this.notifyJoin(), this.sdkState.isJoinInProgress = false, yield this.publish(e.settings, o2);
29599
- } catch (v2) {
29600
- throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(v2), this.sendJoinAnalyticsEvent(this.sdkState.isPreviewCalled, v2), d2.e(this.TAG, "Unable to join room", v2), v2;
29612
+ } catch (f2) {
29613
+ throw this.analyticsTimer.end("join_time"), this.sdkState.isJoinInProgress = false, (g2 = this.listener) == null || g2.onError(f2), this.sendJoinAnalyticsEvent(this.sdkState.isPreviewCalled, f2), d2.e(this.TAG, "Unable to join room", f2), f2;
29601
29614
  }
29602
29615
  d2.timeEnd(`join-room-${i2}`);
29603
29616
  });
@@ -29607,20 +29620,22 @@ var hr = class {
29607
29620
  }
29608
29621
  cleanup() {
29609
29622
  var e, t2, i2;
29610
- this.cleanDeviceManagers(), this.eventBus.analytics.unsubscribe(this.sendAnalyticsEvent), this.analyticsTimer.cleanup(), z2.cleanup(), this.playlistManager.cleanup(), (e = this.wakeLockManager) == null || e.cleanup(), ve.cleanup(), this.notificationManager = void 0, d2.cleanup(), this.sdkState = m({}, Fa), this.localPeer && ((t2 = this.localPeer.audioTrack) == null || t2.cleanup(), this.localPeer.audioTrack = void 0, (i2 = this.localPeer.videoTrack) == null || i2.cleanup(), this.localPeer.videoTrack = void 0), this.store.cleanup(), this.listener = void 0, this.roleChangeManager && this.eventBus.localRoleUpdate.unsubscribe(this.handleLocalRoleUpdate);
29623
+ this.cleanDeviceManagers(), this.eventBus.analytics.unsubscribe(this.sendAnalyticsEvent), this.analyticsTimer.cleanup(), Q2.cleanup(), this.playlistManager.cleanup(), (e = this.wakeLockManager) == null || e.cleanup(), ve.cleanup(), this.notificationManager = void 0, d2.cleanup(), this.sdkState = m({}, Fa), this.localPeer && ((t2 = this.localPeer.audioTrack) == null || t2.cleanup(), this.localPeer.audioTrack = void 0, (i2 = this.localPeer.videoTrack) == null || i2.cleanup(), this.localPeer.videoTrack = void 0), this.store.cleanup(), this.listener = void 0, this.roleChangeManager && this.eventBus.localRoleUpdate.unsubscribe(this.handleLocalRoleUpdate);
29611
29624
  }
29612
29625
  leave(e) {
29613
29626
  return this.internalLeave(e);
29614
29627
  }
29615
29628
  internalLeave(e = true, t2) {
29616
29629
  return c2(this, null, function* () {
29617
- var r2, s2, o2;
29630
+ var r2, s2, o2, n2;
29618
29631
  let i2 = (r2 = this.store) == null ? void 0 : r2.getRoom();
29619
29632
  if (i2) {
29620
29633
  for (; (this.sdkState.isPreviewInProgress || this.sdkState.isJoinInProgress) && !(t2 != null && t2.isTerminal); )
29621
- yield Ce(100);
29622
- let n2 = i2.id;
29623
- (s2 = this.networkTestManager) == null || s2.stop(), this.eventBus.leave.publish(t2), d2.d(this.TAG, `\u23F3 Leaving room ${n2}`), yield (o2 = this.transport) == null ? void 0 : o2.leave(e), this.cleanup(), d2.d(this.TAG, `\u2705 Left room ${n2}`);
29634
+ yield Le(100);
29635
+ let l2 = i2.id;
29636
+ (s2 = this.networkTestManager) == null || s2.stop(), this.eventBus.leave.publish(t2);
29637
+ let u2 = (o2 = this.localPeer) == null ? void 0 : o2.peerId;
29638
+ d2.d(this.TAG, `\u23F3 Leaving room ${l2}, peerId=${u2}`), yield (n2 = this.transport) == null ? void 0 : n2.leave(e), this.cleanup(), d2.d(this.TAG, `\u2705 Left room ${l2}, peerId=${u2}`);
29624
29639
  }
29625
29640
  });
29626
29641
  }
@@ -29755,7 +29770,7 @@ var hr = class {
29755
29770
  throw S2.GenericErrors.NotConnected("VALIDATION", "No local peer present, cannot addTrack");
29756
29771
  if (this.localPeer.auxiliaryTracks.find((g2) => g2.trackId === e.id))
29757
29772
  return;
29758
- let r2 = e.kind, s2 = new MediaStream([e]), o2 = new Ge(s2), n2 = r2 === "audio" ? ce : F, l2 = new n2(o2, e, t2, this.eventBus);
29773
+ let r2 = e.kind, s2 = new MediaStream([e]), o2 = new We(s2), n2 = r2 === "audio" ? ce : F, l2 = new n2(o2, e, t2, this.eventBus);
29759
29774
  this.setPlaylistSettings({ track: e, hmsTrack: l2, source: t2 }), yield (u2 = this.transport) == null ? void 0 : u2.publish([l2]), l2.peerId = (p2 = this.localPeer) == null ? void 0 : p2.peerId, (h2 = this.localPeer) == null || h2.auxiliaryTracks.push(l2), (T = this.listener) == null || T.onTrackUpdate(0, l2, this.localPeer);
29760
29775
  });
29761
29776
  }
@@ -29998,7 +30013,7 @@ var hr = class {
29998
30013
  publish(e, t2) {
29999
30014
  return c2(this, null, function* () {
30000
30015
  var i2, r2, s2;
30001
- if ([this.store.getPublishParams(), !this.sdkState.published, !Ue].every((o2) => !!o2)) {
30016
+ if ([this.store.getPublishParams(), !this.sdkState.published, !Be].every((o2) => !!o2)) {
30002
30017
  let o2 = t2 && t2 !== ((r2 = (i2 = this.localPeer) == null ? void 0 : i2.role) == null ? void 0 : r2.name) ? () => {
30003
30018
  var n2;
30004
30019
  return (n2 = this.roleChangeManager) == null ? void 0 : n2.diffRolesAndPublishTracks({ oldRole: this.store.getPolicyForRole(t2), newRole: this.localPeer.role });
@@ -30039,7 +30054,7 @@ var hr = class {
30039
30054
  initDeviceManagers() {
30040
30055
  return c2(this, null, function* () {
30041
30056
  var e, t2, i2, r2, s2;
30042
- this.sdkState.deviceManagersInitialised || (this.sdkState.deviceManagersInitialised = true, yield this.deviceManager.init(), (yield this.deviceManager.updateOutputDevice((t2 = (e = this.store.getConfig()) == null ? void 0 : e.settings) == null ? void 0 : t2.audioOutputDeviceId)) || (yield this.deviceManager.updateOutputDevice((r2 = (i2 = z2.getSelection()) == null ? void 0 : i2.audioOutput) == null ? void 0 : r2.deviceId)), this.audioSinkManager.init((s2 = this.store.getConfig()) == null ? void 0 : s2.audioSinkElementId));
30057
+ this.sdkState.deviceManagersInitialised || (this.sdkState.deviceManagersInitialised = true, yield this.deviceManager.init(), (yield this.deviceManager.updateOutputDevice((t2 = (e = this.store.getConfig()) == null ? void 0 : e.settings) == null ? void 0 : t2.audioOutputDeviceId)) || (yield this.deviceManager.updateOutputDevice((r2 = (i2 = Q2.getSelection()) == null ? void 0 : i2.audioOutput) == null ? void 0 : r2.deviceId)), this.audioSinkManager.init((s2 = this.store.getConfig()) == null ? void 0 : s2.audioSinkElementId));
30043
30058
  });
30044
30059
  }
30045
30060
  cleanDeviceManagers() {
@@ -30097,11 +30112,11 @@ var hr = class {
30097
30112
  });
30098
30113
  }
30099
30114
  createAndAddLocalPeerToStore(e, t2, i2, r2) {
30100
- let s2 = this.store.getPolicyForRole(t2), o2 = r2 ? this.store.getPolicyForRole(r2) : void 0, n2 = new We({ name: e.userName || "", customerUserId: i2, metadata: e.metaData || "", role: s2, asRole: o2 || s2, type: "regular" });
30115
+ let s2 = this.store.getPolicyForRole(t2), o2 = r2 ? this.store.getPolicyForRole(r2) : void 0, n2 = new $e({ name: e.userName || "", customerUserId: i2, metadata: e.metaData || "", role: s2, asRole: o2 || s2, type: "regular" });
30101
30116
  this.store.addPeer(n2);
30102
30117
  }
30103
30118
  commonSetup(e, t2, i2) {
30104
- this.stringifyMetadata(e), e.initEndpoint || (e.initEndpoint = "https://prod-init.100ms.live"), this.initStoreAndManagers(i2), this.store.getRoom() || this.store.setRoom(new Ne(t2));
30119
+ this.stringifyMetadata(e), e.initEndpoint || (e.initEndpoint = "https://prod-init.100ms.live"), this.initStoreAndManagers(i2), this.store.getRoom() || this.store.setRoom(new Oe(t2));
30105
30120
  }
30106
30121
  removeDevicesFromConfig(e) {
30107
30122
  this.store.getConfig() && e.settings && (delete e.settings.audioOutputDeviceId, delete e.settings.videoDeviceId, delete e.settings.audioInputDeviceId);
@@ -30228,13 +30243,13 @@ var vn2 = (a11, e) => {
30228
30243
  s2 && e.namedSetState((o2) => {
30229
30244
  o2.localPeer.id = s2;
30230
30245
  }, "localpeer-id");
30231
- }, ye), a11.getState(X2) ? e.namedSetState((s2) => {
30232
- s2.localPeer.videoTrack = a11.getState(X2);
30246
+ }, ye), a11.getState(Y2) ? e.namedSetState((s2) => {
30247
+ s2.localPeer.videoTrack = a11.getState(Y2);
30233
30248
  }, "localpeer-videotrack-id") : i2 = a11.subscribe((s2) => {
30234
30249
  s2 && e.namedSetState((o2) => {
30235
30250
  o2.localPeer.videoTrack = s2;
30236
30251
  }, "localpeer-videotrack-id");
30237
- }, X2), a11.getState(ae) ? e.namedSetState((s2) => {
30252
+ }, Y2), a11.getState(ae) ? e.namedSetState((s2) => {
30238
30253
  s2.localPeer.audioTrack = a11.getState(ae);
30239
30254
  }, "localpeer-audiotrack-id") : r2 = a11.subscribe((s2) => {
30240
30255
  s2 && e.namedSetState((o2) => {
@@ -30254,7 +30269,7 @@ var Mn = (a11, e, t2, i2) => {
30254
30269
  }
30255
30270
  Kr(s2.remoteTrackStats, n2);
30256
30271
  let u2 = { [o2]: e.getLocalPeerStats() };
30257
- Kr(s2.peerStats, u2), Aa(s2.localTrackStats, e.getLocalTrackStats(), i2.store.getLocalPeerTracks());
30272
+ Kr(s2.peerStats, u2), Ia(s2.localTrackStats, e.getLocalTrackStats(), i2.store.getLocalPeerTracks());
30258
30273
  }, "webrtc-stats");
30259
30274
  };
30260
30275
  var yn = (a11, e = "resetState") => {
@@ -30290,11 +30305,11 @@ var Rn = (a11) => a11.remoteTrackStats;
30290
30305
  var Ka = (a11) => a11.peerStats;
30291
30306
  var Zr = (a11) => a11.localTrackStats;
30292
30307
  var be = createSelector([Ka, kn], (a11, e) => a11[e]);
30293
- var An = createSelector(be, (a11) => {
30308
+ var In = createSelector(be, (a11) => {
30294
30309
  var e;
30295
30310
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.packetsLost;
30296
30311
  });
30297
- var In = createSelector(be, (a11) => {
30312
+ var An = createSelector(be, (a11) => {
30298
30313
  var e;
30299
30314
  return (e = a11 == null ? void 0 : a11.subscribe) == null ? void 0 : e.jitter;
30300
30315
  });
@@ -30325,18 +30340,18 @@ var _n = createSelector(be, (a11) => {
30325
30340
  var Nn = createSelector([Ka, bn], (a11, e) => e ? a11[e] : void 0);
30326
30341
  var On = createSelector([Rn, $a], (a11, e) => e ? a11[e] : void 0);
30327
30342
  var es = createSelector([Zr, $a], (a11, e) => e ? a11[e] : void 0);
30328
- var xn = I2(Nn);
30329
- var Un = I2(On);
30343
+ var xn = A2(Nn);
30344
+ var Un = A2(On);
30330
30345
  var Bn = createSelector([Zr, Pn], (a11, e) => {
30331
30346
  var t2;
30332
30347
  return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
30333
30348
  });
30334
- var Vn = I2(createSelector(es, (a11) => a11 == null ? void 0 : a11[0]));
30349
+ var Vn = A2(createSelector(es, (a11) => a11 == null ? void 0 : a11[0]));
30335
30350
  var Fn = createSelector([Zr, En], (a11, e) => {
30336
30351
  var t2;
30337
30352
  return e ? (t2 = a11[e]) == null ? void 0 : t2[0] : void 0;
30338
30353
  });
30339
- var Gn = I2(createSelector(es, (a11) => a11));
30354
+ var Gn = A2(createSelector(es, (a11) => a11));
30340
30355
 
30341
30356
  // src/Prebuilt/components/Header/StreamActions.tsx
30342
30357
  import {
@@ -32070,7 +32085,7 @@ var RoleOptions = ({ roleName, peerList }) => {
32070
32085
 
32071
32086
  // src/Prebuilt/components/hooks/useGroupOnStageActions.tsx
32072
32087
  init_define_process_env();
32073
- import { match as match7, P as P5 } from "ts-pattern";
32088
+ import { match as match7, P as P4 } from "ts-pattern";
32074
32089
  import { selectPermissions as selectPermissions11, useHMSActions as useHMSActions26, useHMSStore as useHMSStore37 } from "@100mslive/react-sdk";
32075
32090
  var useGroupOnStageActions = ({ peers }) => {
32076
32091
  var _a8;
@@ -32087,9 +32102,9 @@ var useGroupOnStageActions = ({ peers }) => {
32087
32102
  const offStageRolePeers = peers.filter(
32088
32103
  (peer) => match7({ on_stage_role, bring_to_stage_label, roleName: peer.roleName }).with(
32089
32104
  {
32090
- on_stage_role: P5.when((role) => !!role),
32091
- bring_to_stage_label: P5.when((label) => !!label),
32092
- roleName: P5.when((role) => !!role && off_stage_roles.includes(role))
32105
+ on_stage_role: P4.when((role) => !!role),
32106
+ bring_to_stage_label: P4.when((label) => !!label),
32107
+ roleName: P4.when((role) => !!role && off_stage_roles.includes(role))
32093
32108
  },
32094
32109
  () => true
32095
32110
  ).otherwise(() => false)
@@ -39746,7 +39761,7 @@ var useCloseScreenshareWhiteboard = () => {
39746
39761
  };
39747
39762
 
39748
39763
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
39749
- var HLSView = React155.lazy(() => import("./HLSView-RRYP5FV5.js"));
39764
+ var HLSView = React155.lazy(() => import("./HLSView-C7QKK3HT.js"));
39750
39765
  var VideoStreamingSection = ({
39751
39766
  screenType,
39752
39767
  elements,
@@ -40508,7 +40523,7 @@ import { ExitIcon as ExitIcon3 } from "@100mslive/react-icons";
40508
40523
  init_define_process_env();
40509
40524
  import React162, { useContext as useContext4, useEffect as useEffect59 } from "react";
40510
40525
  import { usePreviousDistinct } from "react-use";
40511
- import { match as match13, P as P6 } from "ts-pattern";
40526
+ import { match as match13, P as P5 } from "ts-pattern";
40512
40527
  import { HMSRoomState as HMSRoomState8, selectRoomState as selectRoomState8, useHMSStore as useHMSStore89 } from "@100mslive/react-sdk";
40513
40528
 
40514
40529
  // src/Prebuilt/components/hooks/useRedirectToLeave.tsx
@@ -40558,7 +40573,7 @@ var useAppStateManager = () => {
40558
40573
  if (!roomLayout) {
40559
40574
  return;
40560
40575
  }
40561
- match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P6.any], () => setActiveState("meeting" /* MEETING */)).with(
40576
+ match13([roomState, prevRoomState]).with([HMSRoomState8.Connected, P5.any], () => setActiveState("meeting" /* MEETING */)).with(
40562
40577
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connected],
40563
40578
  [HMSRoomState8.Disconnecting, HMSRoomState8.Connecting],
40564
40579
  [HMSRoomState8.Disconnecting, HMSRoomState8.Reconnecting],
@@ -40572,7 +40587,7 @@ var useAppStateManager = () => {
40572
40587
  VBHandler.reset();
40573
40588
  redirectToLeave(1e3);
40574
40589
  }
40575
- ).with([HMSRoomState8.Disconnected, P6.nullish], () => {
40590
+ ).with([HMSRoomState8.Disconnected, P5.nullish], () => {
40576
40591
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
40577
40592
  }).otherwise(() => {
40578
40593
  });
@@ -40628,7 +40643,7 @@ var LeaveScreen = () => {
40628
40643
  init_define_process_env();
40629
40644
  import React164, { useEffect as useEffect60, useState as useState69 } from "react";
40630
40645
  import { useMedia as useMedia40 } from "react-use";
40631
- import { match as match14, P as P7 } from "ts-pattern";
40646
+ import { match as match14, P as P6 } from "ts-pattern";
40632
40647
  import { RefreshIcon } from "@100mslive/react-icons";
40633
40648
  var MwebLandscapePrompt = () => {
40634
40649
  const [showMwebLandscapePrompt, setShowMwebLandscapePrompt] = useState69(false);
@@ -40648,7 +40663,7 @@ var MwebLandscapePrompt = () => {
40648
40663
  const angle = window.screen.orientation.angle;
40649
40664
  const type = window.screen.orientation.type || "";
40650
40665
  setShowMwebLandscapePrompt(
40651
- match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P7.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
40666
+ match14({ angle, isLandscapeHLSStream, isLandscape, type }).with({ isLandscapeHLSStream: true }, () => false).with({ angle: P6.when((angle2) => angle2 && angle2 >= 90) }, ({ type: type2 }) => type2.includes("landscape")).otherwise(() => isLandscape)
40652
40667
  );
40653
40668
  };
40654
40669
  handleRotation();
@@ -41109,18 +41124,19 @@ var android_perm_1_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAngA
41109
41124
  var ios_perm_0_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAAChCAYAAABaigMvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACJ6SURBVHgB7Z1bkBzVecfPaNFK6LIs4mbt4opIqtBCOWaNhHBewgopfsHACj/E4CDJDxiXuQQQVQGcihZXIcUVjEkMlMGpIAlb8YsRIKhUbNZa/BCbi4wcJ2glJ2iJtFpuQsvuSlpddjvn/3V/vWd6e3a6Z2almen/r2pqZnrOnHO6++t/f+fS58uZ08CiRe3Ns2ebZkMIITGMjprBvr5dg2aayZkKIsI2x3SOmxnXGOO128whcosMIYQko8+qUt/4eO53uRnjb584Yl6spBBWRPAgdI1zZvx1LufdYzx6coSQyuGZ3KYZ4+MP9/bu6jNlUrbgtX2uvcPzctsodISQaWSf53n37d296wVTBg2mDC69/Mr1Vug22Y+zDSGETB/n5nK5vzzvghZz6KOB10yJlCx4ELuc8boMIYScHnK2SXrN+ed/5tNDH7//G1MCJTVppRk7ntthCCHk9OPlxr1rbZ9ej0nJDFMCVuyeNYQQcmbIeTNy/4LBUpOS1IIn/XacakIIObNc0jjH3GNSklrwbL/dWkMIIWeYnMndbVKSSvDa2to7DL07Qkh10BxoUmJSCZ7XYNoNIYRUCV4unSalE7xxPDJGCCFVQc4K3ufT/CGV4Nn+Oz5NQQipGnK5dF1s6Ty8HB8fI4RUEV5uUZrkKT08Ch4hpHZJNy2FHh4hpLpIpUnpBI8rohBCqotpFDxCCKlhKHiEkMxAwSOEZIZMCF5rS4uZP3++fMY7vhdK56aNsuyqpWZV5/Xyam1ZaKZC065Ysbxo2tMF6rNl0zPyDpZdtcS8+ZvXzAs/+1czHeix1uOpx7eaiR6jQmCfkA6vQqy+9Rb5fcWKDvmOdxzvBx+4P3EepLKcZeocGFX3L142m5/bajb+/aNiyA9Zg1v1lZvN7t49YZo777jdrLEGCp548mnzxFNP5+Xx5A++JyLmgjRI64ILeuOGrkRpTzeoG+r1xhs7/e+tvhjNb5pvpgM9ZqvX3maP9V45D0PDw2bZF6v3gZ3oMSpEkz1m0XMc5bK2xZJm27bt/vfFi+V4L1u2JHEe5eDfmFvMthdfMv39A4ZkQPBWBnfXN958K++7il1b26XmyX96TC7+QkAgYZj9Bw+KaMFo77ICeee3bpcLeMuWrWFa3K2RV6/NHyLbZo18zepbJO0bb7xl67HTVAvbXthuL4SDIkbTAS54gH3WC7ua9v90g5se7HC6jncUCJ6Ity2TgudT94KnF9rB4ITj++49e8LfIWYQKAgZ3qNNGdwhdRs8Fddw8F8ImQoe8kYeEMY77r4vSLvdDFtRhAeJ1+q135C0EAMIpwovhHhoeMT07u61/x8IPIGlpmn+PMlHBVvB78ijtXVh3v/S4Dc1c5IP8tc69ff35+WlZQG3Hv7+xpcvnqN9qaeEGwvo7o5fKBvN/tbWVjlWeky0jGi5cfXEd72ZoT7Rcgrtm3seUPZUx8o9R6Wgx/tiayPuPkbROrnHIs35Rtomp1vG70oYELt005RrP7VIZjw8GI5ePK5o4fPqJ28Tz2PjIw9P+r/2v+DCdf8H7wheXlNgOMh/xbWaNv+OCk8PYofy1ZAffGCdfH/w2+tFOLWfCx4XxDLqdbpNYhiwepIuaZvNqDfyQZkrvvRl03nj9eKNavNfgahj+7YXXhLhSVK+CuSrv9yR9z0q3Eqb/f3JHzwmv+tNAcdH+7dW/MV14QW58ZEuSY9uCWy7M/C2XbBPd9rjqN5UeLwfWm+beNvDdLodN7NC3if64nCu9RzBq3ePT1Jgi7Ax2NLqr99m4o/DpeE+37r2tnBb1B60DrDDKHpelY0bfLvWY1ioVVMN3S7TTV0PWrQtvtQMDY3Yi65HvqPvRLylNyYuOgjOVM2sQhcqRAsXlZYjaS/z36NNFqRV7+HiiJHhAthsPcQN1nhxB4YRbtn0IxFQ1E0NGhe0XnDoG0M6CBOMWDxP+1+kwUBEqXQH4hT1cq8O+py0Lip2KB9lo57ixTrlw3PAsX4zOLaoO85DoaaVnoO24HgDd1/0ZoV8kAb7i2OEuqJclI+LVY+Z1M8ex0IDUEmBuOsNCUKF/Lu7e2JvjuWCsiBEKOuOu+6z3SJ7w23R441gNKjDZYHn7AK7xLFQ+8SNCt/hybn5YTvKgdDp+Ss2WFPr1LWH17tnr/Vcrgu/y2BEyjsYLtxCDEWaQNqMGB6a3DSC8MKQW2x+bnPGHSCBgcLLEeO7e51sw8ULz8BvglwqwqB35i1bfiJ3bLw6b7pZmr8w6lJB3hAk7DPERsqyF4gKDL7Di0X5EK/QywnSwdPCqDTSod6u9wFvayqwz7ipQNjUY8YNSi561Md+hmcW3oCCm5ZeoBscb8cXvIXhSPmW57aaUtH8UQ/1yrTvE/tbKVyvGV6o3gCw3ypOcce7s/MGszvibUpfs7Wpif9uD/ODLWGbL95dsq0bDoFnJD/sb5zXWC9wHl4RIFSVJCqGeheW3wKx6j8wMGUdVDC7f/GKecJ6e2hyXSaiNDBlP1QScGEB9ah0RFEFRrdfbPvc0LTUl/bRYSSyVLS/76rAs0NZr1sRfN1uh5D624L6qCAE9emNeNWaV5wHlAb1OJ8PjoviNosrgYodboBu3rp/OL/u8Z7wpNNN84nrEwVa5nSOGlcDdd+HVy4qIHFTN9SjGxrx0xzoH5ALJDZt0zxTKe64a50/cmzFaOW1y+UFIJ6dtl+rHNGD4Ut/I4TuKdvvE+S95Tl/rl5TsG/+lJamvP+WOxLoX4S3i0jphYfBBxxT8UxaFk4IcOSCHRoayv8eHIPWllZTDnre4rz2SqLCBQ8LTdfoOazU8Xb7irMIBa8I0k9krp/kKWhTD/QGHhfecWHi5Taj0MenhlaJaRky6PHt9X49Wlvkbg+R0lHmcppwuBC0aakjk9pfpr+D522zp5SO+6nAscG+oWx4tUPSzN0pnisEHl6eNHftKLte7EgvE5xldDx/9BW4I/JxNBXp45NyrrLn8DKbn+N5VXoCNZrL6JPDfuBc6rEdCoT2B9bzK+e8KmG/c4H9GRqeXmE/07BJWwT0Z+hF6Hair1rl9+24o7fqdfj9UBMCuWb114K8XjLlgotbmzUABix9NEETrsl5qgEz+kvphH7VdsoDDI5IvbdNXBi6j9GnTfAddSq30xvNV1z0ENre3X4zFfuIY4yRYneqi1vX1atvCbf5k4fzPUE9R+ohymd7ntxBkjhU6N39RR1W33qzqSQycmtHp2FrmACv+6MDSdjmDsDo8dZZBFPhtjjcgSn3/On+FJo2VC/QwysCDBB3V3gYGD3FNAuIija5HvzbvwvTwhvBiKtM4fjZT/PSyijiU+UP+SMf36tb6s/it2KH/rOV1vvBb5hVD9Cvp0+OQBTSNHORp062lu8vvpS3j/jdfwTrR+JBucej3H2EQGnH+mbHo3nVXohrVAScixLliVdtm97dP39ZvFGdxwYR6Q4EETcb/7HAG8LzIYMx/Qen7AfDvqJciCj6THW+4nRM5EVd1NYwYtr96g453upx4xFA93gXsyn1TjEqizx0MCTM7/mfiqBj/7F/lbLRaoYensOQTDUZmOTWoykhw/z2YsKFpY8eRScig43ffVTSwnjctLdG0uKzlDUyURb6oaLb/LQH8/6L0TVciOhPQ/Pn6mWTy1DPBttV7KL7p+VF9wHpIZL+FJ6dk35Hc1pGu3NG9lEmLtt0nV/5atlC0B1MXXGntOj+6HZ32o/2W+rx0OYw6neHMzKMC13PofaHqQC4dY4eIxwLeF7q6UuT2nqed9x9b+yxcwnzGtHjPTzp/EbzUFsbtvuwccN3gikq6+RGGj3et8bYnwvEC/X2p7e0hiP4mt9Q0HJpCm4OlTh/1U4uTeLFl3/BMxlHmwFJZqUjLYys3JFTQkhBvD3vvJ3YcWOTNiVpHr/JwqM6hNQSbNISQjIDBY8QkhkoeISQzEDBI4RkBgoeISQzUPAIIZmBgkcIyQwUvDridETBKhbZTesRTacRu/QZ4GoEdZNlmqokylw1oJHX6mVhUApejaIr/boLlOqjVdO5phkij+GlCwvEgWdbNd3Kaztk20TErupdb23ZVVfV/XpwadHIa9UeXjMpfNKiRjnTEanclYmjRONLgNMdsYuQOOpK8KKRqwpFYsKFqiv0xkUES5OXRu4CErynxPLcfPCwd6GoVkkiUrm/YTmkJPUvJXIVlnuP1lMjt8XVu1DErqnqEBfdzT2GxaJv6e8aAUzLKnQe3P9FI8lFKXZe4+oOCtlJElsqVE+Q9PglqUOx41Or1I3gRSNLKW4gHIAITqtuzO+PwIobfiAc3wA0WLeblwRGCVafAEkDbhcrr1A+0chhylQRqVyikbyiUbzKDRguq4gEEc7cxRG0r0eXIFLiInYliX6mUcU2fPdRc1cQyEijp0FsnosJ1OP+X8vFfyAIumSWHhP3vCsrVi4Py1JKsaMnJFjOwry6K1jJRZeuKhTovZANKElsvlB0PIB6aYjRuDrUYzzbuujD08hSAMFcYHSbgxP5oHOSZUFMa6TwhpAOEZsk7GBrSygcIgT2AsF/YHBIg7wkuIqTl4ZdxDptSIOXRg7Ti17WXwvKQ52w/A7SI6/VwaKgmg8MFKKFNFg5WRaBdC5OZaqIVC4oG/voRkN7MDhGQMVOI1fhgojWfypwTOBpumk1hm/cklJxqNghPeqgdY2LvvbQ39wvyzJhXxFAyI3w5UbfkmMa83+sFwjxix4TPe8uOPZuJDngHjvXjnDc9NynyQ/7E+5bsPagHgeNQof/xXUP6LFOYvOKRsdDfV8N1hN0I+FpHTT6G/KMi9Nc69SFhzcka5bdJu8azAXrnMHIcYdFNC+cyJuCk3fnXetCFx/p4CVgvTB/JVtfZNwoUVijbXhk2Br5DXLRwDBhCHJxBtHFAMrAopga+Uk7etF80KXdkd4dBdQmDBYLFc/Avm5d+42CEcimikjV5Kxs6+4jBBT10tV9seQ8jNu/YLsm8rYi6tZ/KnAzwMKY7nL2umouFgwt1vmv0c/kZuDEaEVdNz7yHV84nfXwcD7cuuI8TRV9yw16DnBu3fXekBYLhvod8gvzvDwJpONEQMPocpOMPC/M8xKjdvTLX7wcrozt1j0uP39NPv98YV9hu/D61FuG8L3ws5/Kb3GLcia1eeOcL80Hax1evcxfB0+7GFTYHgjCUGpdsU/lhrqsJupC8IaD2AcSUNkaI04klrV2A+doXImhSGR7/BcXgqKxZTWWreKGeNSA27rcuqKGkR8Z6nZZZRdN0ddltdmdIoBqjLhgkV5XpcV3XZW2HNx91ItZ+/4uuyxY1twzsfUvtuw5QP2xHDsETy9wXGwQMFwoxQQvDNQdXFyKhIL80nWT0rvLugPNXwN9KxqEKLoPUa8T4g5xbQtGId1IYW4EtOFgEU+9MWm94+xIjwfydAUvPzLdhAhBlFpbJ4IMPfTAOhNFhTG6pmISm3dxV4nGfzVs6HxbB42rjH3qds6HLgRbT15eXQieNG9s/4Ma+VTNqUpEn1JPCqunYiqDi1s2DBJNCHiG8MhQP3gHbn8g3v3my9fyppQU6l+qBCps/jSWwvUvxpbnfiIX+ArxKlrC+Klp6lDq+SgWTaxYcB5QKGBNNAJaHHHlqiglKVtRIZ3KlqLemvwvhc0nJT6ecn0tXlsXgoc7HE48+ibQvFHj6P75KxMX1ojfPIy7Y2rTE8KjMWCj8450dHRI7o7+f3GHd5tNcWhAag2kjbrCE0L/idvM8YNHt8jd9qEH7w+jV7nNuEqh+w6P88677jOlop4oPICD/X6fWdKYCNqXFQ107h7nqVaKLhZNLDpqHRdQvVDaJPWGNzXJjoIyikVKc9m92097wOa76qbkgYGS2HxSprw2Wutj/p1SF4MW6nGhKaInCyN4rpFr+EHgRoz3g7O8bLZs9kc+NQ08Mbev7TnbwY508NTccIJ5/XEy4NEVdjTDKPEdQqdNEG0WayQpdDAjjfQj2Tqib0k7n5PEVI2LgVsMbUaiKTpV/ZPmBYHCxQfvLqmnoaEtxTt06oB+QRznuOZdfrlTR9/SwOGKP1A0MQikYS1BmrmBEl/EihP2eY2TX5sTS7e3N7ngafB0TMx2B1qKnYskNp+4Dk7MFPfawP6sTBAVrZaoCw9PvQzpu7F9cE1BnFKNWapAbLZsWipiBhHSdEBDEYZRqlpbpAPfjYKFz9rHodGlEMkK/UhoDsBzQzqNGQvQf4eLGn0o6PDWgROdDoB+NI2khX5DNF+Qj9TlxcLNw7iIVEnRkTgcL408Vqj+xcDx0qkRxQY6XNzoZxoNTIUzSfQs3Bh06kvceYr+H9swNeSmYCqJNgU14FIaNmx81DYnHwtHg7Xeml+a5mVcVDz3XBSaIhS1eXB1MMpayiDDE0/9UEZycW3g6ZgwqhtGn+vkKQtQF4KnI6KIFYuoTjJyZwXgzm99M88lx0WGfjFs10ecYJxukGONUgVj9sMF+kaEUS70WSlbgvln6HtDmZK/LXfzj38SiqKbBqIWVx6inCEN6q6jf9F84tALWibdBhGpcNcvdLFFt7t9h279YfhTBQuPi3CG0UUcf/d/SSJ2yVQY611g33VKBOqw4bv/EJYjUb1aJkdyA4i+JedpZUfe/xE6M1rP/gMDZsNzj1px/qZ4Qvh9sz2fbnBrd3Ahf5/zt0NsMYoq/a6OHSXPL79uhWwJN7xCN5E4m0ed9ObploXjV2yftBzUQY/PhmCWArbVS4BuRi0jdY0fsDp/wjOpK1JFLePiAYSQzEDBI3VNXFOaZBc2aQkhtQybtIQQEgcFjxCSGSh4hJDMQMEjhGQGCh4hJDMwpgUJcZcsx5Mb7jJWhNQDFDxScLl3PH60+cdbJ577JaTGoeBlHDeuBLy551/YLg+v48FxPEusS5FT9Eg9QMHLOLpMksbdcB9sx4P5GgwIq8lo89aNFAaiEbCwXBNW8u3v75emcVykLDdSmbsar+JG4yoWEQzLlKMpjs+6WnE0mldcGSR7UPAyjq7BFreskcTOCMIuYjktrIYCYXlSonEVjjSGFTsglP5S70vy0kJUV626IS/iF8TMXUg1LhpXoYhgKFfXjEP5ELxoxDb9vxu1jWQTPlqWYSBECGQDrvriNYkGKJAe/8NyWd1BBDYN/wdBgiiqZ+jHRNgh29YEK/T6MSIOyv/bFi8OF9HU/664drksXS5r2gXR2SCgEjTJfl7xpS8H9XhFBE9jSWDRTQinH27wsbz/6yrTUWEldUGqR8vo4WUYd2HHpKOxWMPOjZRlgkAy/srDyG9iTbzX35yIKIaVkRGtC4KE9fN8b9Jf1t4PBLRUBE8DxriRvrAd4hYXEQyrQ7uLfcrKxoEnqGu+wauD4BULLETqHwpehkkSrCYKxAb9Zypw8yUQ0JLYtL2786N6KW7TOSq0GhVsRRANTVFxjkYE645El4PIYYUU5IPochrNixBAwcsw0YGGJBHSEGha+99C4cpVrqcjDIe4uG3Sb3GrOUdFOzrqrEGZCAEUvAzjBxZ6K2iS3hAbR0L77NBMRHMUYof+sc6bbg69M6wovKqzMnEPNAasP8CQPBiOgvmEqK/EEQ72B/VGc5oQPlqWcbSfDIMMblQvCebzwP3hlBU0IzVSFpqNKnbwqAo1aUtBo5F1RoI/uxHgpkIjvbmhEuspkDQpD3p4GcefOuIPOmCS8Zq/ukXETGOUAg3mgoGHjY+YIFLYMyJ8GmGtUmz58VYJyqOR5VAG6oIyIbzF4vQiVCTEG/uCfXIj0xFCwSMy8ormo4anVDSCmI7ISoSyu+6TyF8iQC1+BDYZab12+USEMo1YFhmQiO2Di6T159tNRI3TaGRoom5OEBEMaSDUN626XsIW7t69V5rjW579Z0MI5+GRPCAWiI2LpxO4cACpATgPj5QORI5CR+oVDloQQjIDBY8QkhkoeISQzEDBI4RkBgoeISQzUPAIIZmBgkcIyQwUPEJIZqDgEUIyAwWPEJIZKHiEkMxAwSOEZAYKHiEkM1DwCCGZgYJHCMkMFDxCSGag4BFCMgMFjxCSGVIt8X5WQ4MhhJBaJZXgNc5qNISUS+PMmcYbHzcnx8YMIaeTVIJ39OgxQ0i5jDWOSby848dPGEJOJ+zDI4RkBgoeISQzUPAIIZmBgkcIyQwUPEJIZqDgEUIyAwWPEJIZKHiEkMxAwSOEZAYKHiEkM1DwCCGZgYJHCMkMFDxCSGag4BFCMkOq5aHqhfGZ882RP7nenGy+VL7PHNxrzt6/w5x1ZMBUM8cvXGo++bMuc8Grt1V9XbPOqbkt5vhFS+Tz2Qd6zIwTw5PS7L/lt/L+2a1XyvuHK5+Rc7zgN+vN3He3G1J5Mid4R/74ejO45H5jPGMarGjMODlst91ghj53u2ne+aiZu6+6DQ0XEql+hv70drE10PT7p8059kXOPJkSPIjFJ1982Mz64C1z/q/Widjp9sEl66z39LAVwYNm9oc7DSHloN4dGP1sBwWvSsiU4KE5eNbIQWkyqNiBs45gW5c5eMNSM9L2tTzBG7VNDDXexsO26XtgR/ibNlvQZDnRvDhMN/fdl2KbnG5esz7Yact5q6Q0pLpBsxS2ATs4Na9Fvo9euKTkGylsYvTiDjPeOM82jUfMbGtvahfHbb6jFy01s+1NfFaQP8qGd4lm9Pw9W8N8sE3rldUukcwI3njjfDG8+b1bY082jONC2zeGpccVeIMwkplW6CCQaKY0Ht5jLuj+hqQfCzxG9LccswaJvkD0CyIdmsdqbOgz/PjPv2eFbKnkBZAGvyOd8uGKZyalYXOo9tCmLG6EJ89d7AvexctLErzDtvtlZPEteduG224J7QKCCjtBOSp4uGFiG0AXjfYfwlaBK4JZIzOCd9J6YGDWFB5T4+De8DPunBCfi/7tq+LZ6bYPV/5IxM3tVMZdc+GLXxZRhLBCuEasUaphoc8QBglBVaMctkaM7TOtgCIvNVq3PE2DJjib2bXDUWsfEBkIHm5enwb9ec2/fTRVPvgPxE5bJehugXhCBGEvsAuUAWCbyjErrhOffVvF/wDsL24AJStkblpKLuHJhmEsfPG6UHx0G7zD6MBB0+9/GDaRYUy4q7ppYLhoCs9yRAtieP6v7rPGPJCXxi0PaWYO7gk9BlL94Fx59qanXR/oLsFNFjfCUUeUkuYF5lk7UNuDbTUFN1Jttmr+p+YulO0nz71Uyoet643+xAJ/RgJmI2SZzI3SwhiTotNXxua0SP+Ja1QuMGoX9w56Ipj6ondiF93m59tiGuahidyVl8azdTh17mJDagP1ruDZ6U0P3SClNGvH5rYGee3J267f1S5Q1nHp+11qxj/ZI+U2/efTYlfH7IAJPEv18KJ5ZY3MCB48JXDCGkmc+EQ5Ye+SH9nma4P1wGCwaE5gGstoYDiVBMIKIJQNkf7FOe9uz3QTpJaA0KAJCdAVIdOfHOCRNf3X02WfTwxcuMyxXhuavurNAfH6Zs03g1feLzdpeH0oN+tdI5kRPHX9MdpVaBAAxuHZQYtz7UACjHXG8WHzGdun5jIc6UAuxllHfQGLE1pcIKgXPEQ0P9C85QBF7aKj6+hzmxOZzwm7gccFjz+p6DQc6Q/EanH+zIGgHL05YrAM9oPyMYiBGzSav7Pe9/ur4XXC1pLc6OudTPXhYYQWwvNpMILlgk5gjH41fuJ7griLulNXAH5P0yT28/GFFndgtzkMAxy48eWwnwZ9M/60gYk0OrqbVmTJmSE60dh96YT2oc/fnji/uf/r/wcDYGoXaGEc1VHgoD8ONtZoWzCwbXiYmM4EGgMh1DKz3n8HMtWHhzscjA+CB6M5e3+PbEfzFf0fGM1Sw4RxYCIyBAd9JGgSoMlQyvylBb/uMh/ZkVs0kbVM9A3CE9DObYjxaGtHXhr0v+CJEHfqCqlOZE5mOBI6eSaA2+yEp5ekWQtbPPbZ5SJiAze+kvcb7MV9Kgi2reXPduaKYrsK5CzO6TQNaRKff8HCLlPjyGiXFZrxxia5I55c4IvYgjceyZufhLsj0p065xIzfvb5MnqKycnjs88zsz7+vZk53CfpZESuv8fkxk6E//WkTy4XNiHgKeIztp+w5XkNs8wc+x35NYweKpjm7IH/yEtTqLxa46yGBpnvODY2ZuqFU/OsB2bP2Tx705w98OtJv8PGMG9z5lCfmXHs4/C7P5m9R9JACBuOHZLpJnpjnfPev4sdmlxO7GC29d4gdk27N+Xlj//BNpAfhFDto0GENRdur0cOffT+w0nT5kwKFl/+hX32bZEhpAxmNTaK5R0/XruiXS+cPHHCHP7kQzMy/KmZObPRNDUvMOc0n2dqiMN73nl7QdLEmVwthRDii93+9/5gTp70bzx4P3p0xIyPj5lzF1xoaoTBNIm5Hh4hGeXjjwZE5Do6Oszbb79tvv/97wfb3xfRqxGmT/A8L7fLEELqguOjx+QdQtfe3m7uueceeR+3faujx46ZmiDnTaeHN/6pIYTUBWOBF9fc3Bxucz/XAuPj5ndp0qcSvNwMQw+PEFIteDkvnSalE7wx84IhhJAqwQrYaynTJ6e3d1ef8UyPIYSQM88u0aQUpB6lzXle4kl+hJDapH//u2Z/3x/Mp4OHTJXieePeP5qUpBY8q6g99PIIqW8wLQVz8t4/+H/mow8OiPAdPVI9q/Z4xtu0t3fXZpOSkubhWS/v67bEPkMIqSlOnjwu006mAtNT9u3bZ9avXy/fPzn0kQjf/vf+x7z7h/+WCctnFM/smzFuvmNKoKQnLdBuvvzy9lVjudwOW3htjWMTkkFGhgfNh+/3h09VzJt/TkHhw1y8RYsWma6uLvPaa6+Zvr4+mZzc09Mjn/ve7ZV0c+bOMxdedLGZiUcFTx+HrcN1bdq+O6XkJy3eeWfXrtyY9wV6eoRUN/DI+vfvE7HTeXZ4djbJ0xQQvrVr15pnn31WnsbAd/wPL+TRt6/XjI6epknK1rPLjXtXlip2oKxHy1CwVdvlnuelbksTQk4PeIQMoIl6+PBhaa5CuNICsezs7JQX8lizZo14iQftAMf04207fqw8sQNlP0uLCuzdvWutVd7ltlKcp0dIlXEqaMaiWQrUa4sDInbNNdeE32+88UZzxRVXhN8henghj02bNslnWXTgyIiZFjyvB9qy551dN/X17Ur1GFkcqZaHSsKiRe3Ns2ebdi9nrhg35pIZOfNHef18OS4vlXVmNc4yuVzOjB4fNWT6OXigr3l4aLAZfXI6EDE4OGguueQSeU/j8aEPD/9BPx+49957zeOPP24WnHfh4AUXtaQXJKdLzGqGfMbTE/b1u9FRs6sSIkcIyRYd9uVZD89zsaOxHrZbwfNKxfbtSR729aypAbg8FCH1T499Deooq4Lmatag4BGSDWRgcfPmifFF9OlB9GpthRRCCClGh315tq/OqyRs0hJCqpEe+xpEkxZN26xCwSMkO0h7Fk9PVIr33nsv/GgIIaSK6LAvz/bZeZXC9gFqkzZ7IyCEkKrnsH15O3bs8CoB+gSNL3jthhBCqowu+/La29u9coFoGl/s9hlCCKlCMAcFAuV1dXV55eB4d2sMIYRUKR3GFypv06ZNXilALA29O0JIjdBlAtF7/PHHSxU7vDoNIYTUAF0mEC706RUbyMDveB7XTIhdl6kxKr5aCiGkplhrX1hCZRG+4DEzXfEYL10dBZOV8R7QZ19fN4axbQghtcci4wufDGZM8cLvXcbUblgHeniEEJdFxp9T1xx87rMvuHa7gs+EEEJqgf8H6NcF0Jrj9NcAAAAASUVORK5CYII=";
41110
41125
 
41111
41126
  // src/Prebuilt/components/Notifications/PermissionErrorModal.tsx
41112
- function PermissionErrorModal() {
41127
+ function PermissionErrorNotificationModal() {
41113
41128
  const notification = useHMSNotifications5(HMSNotificationTypes5.ERROR);
41129
+ return /* @__PURE__ */ React169.createElement(PermissionErrorModal, { error: notification == null ? void 0 : notification.data });
41130
+ }
41131
+ var PermissionErrorModal = ({ error }) => {
41114
41132
  const [deviceType, setDeviceType] = useState71("");
41115
41133
  const [isSystemError, setIsSystemError] = useState71(false);
41116
41134
  const isMobile = useMedia41(config.media.md);
41117
41135
  useEffect65(() => {
41118
- var _a8, _b7, _c, _d, _e2;
41119
- if (!notification || ((_a8 = notification.data) == null ? void 0 : _a8.code) !== 3001 && ((_b7 = notification.data) == null ? void 0 : _b7.code) !== 3011 || ((_c = notification.data) == null ? void 0 : _c.code) === 3001 && ((_d = notification.data) == null ? void 0 : _d.message.includes("screen"))) {
41136
+ if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
41120
41137
  return;
41121
41138
  }
41122
- console.error(`[${notification.type}]`, notification);
41123
- const errorMessage = (_e2 = notification.data) == null ? void 0 : _e2.message;
41139
+ const errorMessage = error == null ? void 0 : error.message;
41124
41140
  const hasAudio = errorMessage.includes("audio");
41125
41141
  const hasVideo = errorMessage.includes("video");
41126
41142
  const hasScreen = errorMessage.includes("screen");
@@ -41133,8 +41149,8 @@ function PermissionErrorModal() {
41133
41149
  } else if (hasScreen) {
41134
41150
  setDeviceType("screen");
41135
41151
  }
41136
- setIsSystemError(notification.data.code === 3011);
41137
- }, [notification]);
41152
+ setIsSystemError(error.code === 3011);
41153
+ }, [error]);
41138
41154
  return deviceType ? /* @__PURE__ */ React169.createElement(Dialog.Root, { open: !!deviceType }, /* @__PURE__ */ React169.createElement(Dialog.Portal, null, /* @__PURE__ */ React169.createElement(Dialog.Overlay, null), /* @__PURE__ */ React169.createElement(
41139
41155
  Dialog.Content,
41140
41156
  {
@@ -41168,7 +41184,7 @@ function PermissionErrorModal() {
41168
41184
  isMobile && isAndroid ? /* @__PURE__ */ React169.createElement(React169.Fragment, null, /* @__PURE__ */ React169.createElement(Button, { onClick: () => setDeviceType(""), css: { w: "100%", mb: "$6" } }, "I've allowed access"), /* @__PURE__ */ React169.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType(""), css: { w: "100%" } }, "Continue anyway")) : null,
41169
41185
  !isMobile ? /* @__PURE__ */ React169.createElement(Flex, { justify: "end", css: { w: "100%" } }, /* @__PURE__ */ React169.createElement(Button, { outlined: true, variant: "standard", onClick: () => setDeviceType("") }, "Dismiss")) : null
41170
41186
  ))) : null;
41171
- }
41187
+ };
41172
41188
 
41173
41189
  // src/Prebuilt/components/Notifications/ReconnectNotifications.tsx
41174
41190
  init_define_process_env();
@@ -41532,7 +41548,7 @@ function Notifications() {
41532
41548
  if (isNotificationDisabled) {
41533
41549
  return null;
41534
41550
  }
41535
- 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));
41551
+ 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(PermissionErrorNotificationModal, null), /* @__PURE__ */ React174.createElement(InitErrorModal, null), /* @__PURE__ */ React174.createElement(ChatNotifications, null), /* @__PURE__ */ React174.createElement(HandRaisedNotifications, null), /* @__PURE__ */ React174.createElement(TranscriptionNotifications, null));
41536
41552
  }
41537
41553
 
41538
41554
  // src/Prebuilt/components/Preview/PreviewScreen.tsx
@@ -42170,7 +42186,7 @@ import {
42170
42186
  useHMSActions as useHMSActions58,
42171
42187
  useHMSStore as useHMSStore99
42172
42188
  } from "@100mslive/react-sdk";
42173
- import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5 } from "@100mslive/react-icons";
42189
+ import { MicOnIcon as MicOnIcon7, SpeakerIcon as SpeakerIcon5, StopIcon as StopIcon3 } from "@100mslive/react-icons";
42174
42190
 
42175
42191
  // src/Diagnostics/DeviceSelector.jsx
42176
42192
  init_define_process_env();
@@ -42241,12 +42257,11 @@ DeviceSelector2.propTypes = {
42241
42257
 
42242
42258
  // src/Diagnostics/AudioTest.tsx
42243
42259
  var SelectContainer = ({ children }) => /* @__PURE__ */ React185.createElement(Box, { css: { w: "calc(50% - 0.75rem)", "@lg": { w: "100%" } } }, children);
42244
- var MicTest = () => {
42260
+ var MicTest = ({ setError }) => {
42245
42261
  var _a8, _b7;
42246
42262
  const devices = useHMSStore99(selectDevices);
42247
42263
  const [isRecording, setIsRecording] = useState78(false);
42248
- const { audioInputDeviceId } = useHMSStore99(selectLocalMediaSettings);
42249
- const [selectedMic, setSelectedMic] = useState78(audioInputDeviceId || ((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId));
42264
+ const [selectedMic, setSelectedMic] = useState78(((_a8 = devices.audioInput[0]) == null ? void 0 : _a8.deviceId) || "default");
42250
42265
  const trackID = useHMSStore99(selectLocalAudioTrackID2);
42251
42266
  const audioLevel = useHMSStore99(selectTrackAudioByID2(trackID));
42252
42267
  const { audioOutputDeviceId } = useHMSStore99(selectLocalMediaSettings);
@@ -42263,7 +42278,6 @@ var MicTest = () => {
42263
42278
  onChange: (deviceId) => {
42264
42279
  setSelectedMic(deviceId);
42265
42280
  hmsDiagnostics.stopMicCheck();
42266
- setIsRecording(false);
42267
42281
  }
42268
42282
  }
42269
42283
  ), /* @__PURE__ */ React185.createElement(Flex, { css: { gap: "$6", alignItems: "center" } }, /* @__PURE__ */ React185.createElement(
@@ -42271,15 +42285,23 @@ var MicTest = () => {
42271
42285
  {
42272
42286
  variant: "standard",
42273
42287
  icon: true,
42274
- onClick: () => hmsDiagnostics.startMicCheck(selectedMic, () => {
42275
- setIsRecording(false);
42276
- }).then(() => {
42277
- setIsRecording(true);
42278
- }),
42279
- disabled: isRecording
42288
+ onClick: () => {
42289
+ isRecording ? hmsDiagnostics.stopMicCheck() : hmsDiagnostics.startMicCheck({
42290
+ inputDevice: selectedMic,
42291
+ onError: (err) => {
42292
+ setError(err);
42293
+ },
42294
+ onStop: () => {
42295
+ setIsRecording(false);
42296
+ }
42297
+ }).then(() => {
42298
+ setIsRecording(true);
42299
+ });
42300
+ },
42301
+ disabled: devices.audioInput.length === 0 || playing
42280
42302
  },
42281
- /* @__PURE__ */ React185.createElement(MicOnIcon7, null),
42282
- isRecording ? "Recording..." : "Record"
42303
+ isRecording ? /* @__PURE__ */ React185.createElement(StopIcon3, null) : /* @__PURE__ */ React185.createElement(MicOnIcon7, null),
42304
+ isRecording ? "Stop Recording" : "Record"
42283
42305
  ), /* @__PURE__ */ React185.createElement(
42284
42306
  Button,
42285
42307
  {
@@ -42352,9 +42374,9 @@ var AudioTest = () => {
42352
42374
  }
42353
42375
  }
42354
42376
  },
42355
- !error && /* @__PURE__ */ React185.createElement(MicTest, null),
42377
+ /* @__PURE__ */ React185.createElement(MicTest, { setError }),
42356
42378
  /* @__PURE__ */ React185.createElement(SpeakerTest, null)
42357
- )), /* @__PURE__ */ React185.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }));
42379
+ )), /* @__PURE__ */ React185.createElement(TestFooter, { error, ctaText: "Does your audio sound good?" }), /* @__PURE__ */ React185.createElement(PermissionErrorModal, { error }));
42358
42380
  };
42359
42381
 
42360
42382
  // src/Diagnostics/BrowserTest.tsx
@@ -42669,7 +42691,12 @@ var downloadJson = (obj, fileName) => {
42669
42691
  // src/Diagnostics/VideoTest.tsx
42670
42692
  init_define_process_env();
42671
42693
  import React188, { useEffect as useEffect78, useState as useState81 } from "react";
42672
- import { selectDevices as selectDevices2, selectLocalMediaSettings as selectLocalMediaSettings2, selectLocalVideoTrackID as selectLocalVideoTrackID4, useHMSStore as useHMSStore100 } from "@100mslive/react-sdk";
42694
+ import {
42695
+ selectDevices as selectDevices2,
42696
+ selectLocalMediaSettings as selectLocalMediaSettings2,
42697
+ selectLocalVideoTrackID as selectLocalVideoTrackID4,
42698
+ useHMSStore as useHMSStore100
42699
+ } from "@100mslive/react-sdk";
42673
42700
  import { VideoOnIcon as VideoOnIcon5 } from "@100mslive/react-icons";
42674
42701
  var VideoTest = () => {
42675
42702
  const allDevices = useHMSStore100(selectDevices2);
@@ -42703,7 +42730,7 @@ var VideoTest = () => {
42703
42730
  hmsDiagnostics.startCameraCheck(deviceId);
42704
42731
  })
42705
42732
  }
42706
- ))), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Does your video look good?" }));
42733
+ ))), /* @__PURE__ */ React188.createElement(TestFooter, { error, ctaText: "Does your video look good?" }), /* @__PURE__ */ React188.createElement(PermissionErrorModal, { error }));
42707
42734
  };
42708
42735
 
42709
42736
  // src/Diagnostics/Diagnostics.tsx
@@ -42907,4 +42934,4 @@ object-assign/index.js:
42907
42934
  @license MIT
42908
42935
  *)
42909
42936
  */
42910
- //# sourceMappingURL=chunk-DR5OAQOV.js.map
42937
+ //# sourceMappingURL=chunk-EODBFJ5Y.js.map