@100mslive/roomkit-react 0.3.24-alpha.5 → 0.3.24-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs.js CHANGED
@@ -35,8 +35,8 @@ var __objRest = (source, exclude) => {
35
35
  }
36
36
  return target;
37
37
  };
38
- var __esm = (fn2, res) => function __init() {
39
- return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
38
+ var __esm = (fn, res) => function __init() {
39
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
40
40
  };
41
41
  var __commonJS = (cb, mod) => function __require() {
42
42
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -109,7 +109,7 @@ var __async = (__this, __arguments, generator) => {
109
109
  var define_process_env_default;
110
110
  var init_define_process_env = __esm({
111
111
  "<define:process.env>"() {
112
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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.14-alpha.5", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.24-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0d684096-4e1e-4f67-89ae-f5d3a4e09794", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.24-alpha.5", 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.12", 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.3.1-1", 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.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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: "600", 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", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241015.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:19043", 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.24-alpha.5", 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: "11590149060", 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: "dc498407583217b11dc845e391849808c2ace147", 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: "e8e84182bdff362a7cf5c82c877f4e938d5dacf319b0b9c2fdd714bbb9ea9118", 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--1730279854036-0.6570051956995928:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279853842-0.5818758499451946:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279827827-0.9452825086184646:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279827630-0.5069661722492098:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f3ee65c1-a5f7-463f-9dcd-2343662d78a2", INVOCATION_ID: "194b37312d054387aa04c5e61eaa2a3b", 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: "694", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 424", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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.24-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.5", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", 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: "dc498407583217b11dc845e391849808c2ace147", 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_0d684096-4e1e-4f67-89ae-f5d3a4e09794", 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_0d684096-4e1e-4f67-89ae-f5d3a4e09794", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", 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-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_0d684096-4e1e-4f67-89ae-f5d3a4e09794" };
112
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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.14-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.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.24-alpha.7", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7a17de2e-07aa-4303-8ec9-3d92727d77de", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.24-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.12", 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.3.1-1", 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.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "599", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", 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.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241103.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.8/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", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:2897", 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.24-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: "11738061874", 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: "8198b4df726edf43ed865408a68720e9bd4c9174", 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: "b3e38936062f736b1755e361528fd637af70896075b465c2af7b9ae2baa8b1ea", 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--1731051711280-0.23112375604806168:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731051711062-0.9277880194988062:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731051685192-0.5939408448137236:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1731051685005-0.3463791921501622:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b5fd924e-668b-4ecd-b572-457edb96a6f1", INVOCATION_ID: "bd0c350c90b14cb28326e75b624e1afb", 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: "697", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 400", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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.24-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.24-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_resolutions_axios: "^1.7.4", 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: "8198b4df726edf43ed865408a68720e9bd4c9174", 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_7a17de2e-07aa-4303-8ec9-3d92727d77de", 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_7a17de2e-07aa-4303-8ec9-3d92727d77de", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", 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://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7a17de2e-07aa-4303-8ec9-3d92727d77de" };
113
113
  }
114
114
  });
115
115
 
@@ -2288,8 +2288,8 @@ var require_lodash = __commonJS({
2288
2288
  function createBind(func, bitmask, thisArg) {
2289
2289
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2290
2290
  function wrapper() {
2291
- var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2292
- return fn2.apply(isBind ? thisArg : this, arguments);
2291
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2292
+ return fn.apply(isBind ? thisArg : this, arguments);
2293
2293
  }
2294
2294
  return wrapper;
2295
2295
  }
@@ -2355,8 +2355,8 @@ var require_lodash = __commonJS({
2355
2355
  arity - length
2356
2356
  );
2357
2357
  }
2358
- var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2359
- return apply(fn2, this, args);
2358
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2359
+ return apply(fn, this, args);
2360
2360
  }
2361
2361
  return wrapper;
2362
2362
  }
@@ -2444,7 +2444,7 @@ var require_lodash = __commonJS({
2444
2444
  arity - length
2445
2445
  );
2446
2446
  }
2447
- var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
2447
+ var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
2448
2448
  length = args.length;
2449
2449
  if (argPos) {
2450
2450
  args = reorder(args, argPos);
@@ -2455,9 +2455,9 @@ var require_lodash = __commonJS({
2455
2455
  args.length = ary2;
2456
2456
  }
2457
2457
  if (this && this !== root && this instanceof wrapper) {
2458
- fn2 = Ctor || createCtor(fn2);
2458
+ fn = Ctor || createCtor(fn);
2459
2459
  }
2460
- return fn2.apply(thisBinding, args);
2460
+ return fn.apply(thisBinding, args);
2461
2461
  }
2462
2462
  return wrapper;
2463
2463
  }
@@ -2514,14 +2514,14 @@ var require_lodash = __commonJS({
2514
2514
  function createPartial(func, bitmask, thisArg, partials) {
2515
2515
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2516
2516
  function wrapper() {
2517
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2517
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2518
2518
  while (++leftIndex < leftLength) {
2519
2519
  args[leftIndex] = partials[leftIndex];
2520
2520
  }
2521
2521
  while (argsLength--) {
2522
2522
  args[leftIndex++] = arguments[++argsIndex];
2523
2523
  }
2524
- return apply(fn2, isBind ? thisArg : this, args);
2524
+ return apply(fn, isBind ? thisArg : this, args);
2525
2525
  }
2526
2526
  return wrapper;
2527
2527
  }
@@ -4151,7 +4151,7 @@ var require_lodash = __commonJS({
4151
4151
  function eq(value, other) {
4152
4152
  return value === other || value !== value && other !== other;
4153
4153
  }
4154
- var gt = createRelationalOperation(baseGt);
4154
+ var gt2 = createRelationalOperation(baseGt);
4155
4155
  var gte = createRelationalOperation(function(value, other) {
4156
4156
  return value >= other;
4157
4157
  });
@@ -4293,7 +4293,7 @@ var require_lodash = __commonJS({
4293
4293
  function isWeakSet(value) {
4294
4294
  return isObjectLike(value) && baseGetTag(value) == weakSetTag;
4295
4295
  }
4296
- var lt2 = createRelationalOperation(baseLt);
4296
+ var lt = createRelationalOperation(baseLt);
4297
4297
  var lte = createRelationalOperation(function(value, other) {
4298
4298
  return value <= other;
4299
4299
  });
@@ -4375,7 +4375,7 @@ var require_lodash = __commonJS({
4375
4375
  var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
4376
4376
  copyObject(source, keys(source), object, customizer2);
4377
4377
  });
4378
- var at2 = flatRest(baseAt);
4378
+ var at = flatRest(baseAt);
4379
4379
  function create(prototype, properties) {
4380
4380
  var result2 = baseCreate(prototype);
4381
4381
  return properties == null ? result2 : baseAssign(result2, properties);
@@ -5109,7 +5109,7 @@ var require_lodash = __commonJS({
5109
5109
  lodash.assignIn = assignIn;
5110
5110
  lodash.assignInWith = assignInWith;
5111
5111
  lodash.assignWith = assignWith;
5112
- lodash.at = at2;
5112
+ lodash.at = at;
5113
5113
  lodash.before = before;
5114
5114
  lodash.bind = bind;
5115
5115
  lodash.bindAll = bindAll;
@@ -5290,7 +5290,7 @@ var require_lodash = __commonJS({
5290
5290
  lodash.forOwn = forOwn;
5291
5291
  lodash.forOwnRight = forOwnRight;
5292
5292
  lodash.get = get;
5293
- lodash.gt = gt;
5293
+ lodash.gt = gt2;
5294
5294
  lodash.gte = gte;
5295
5295
  lodash.has = has;
5296
5296
  lodash.hasIn = hasIn;
@@ -5343,7 +5343,7 @@ var require_lodash = __commonJS({
5343
5343
  lodash.lastIndexOf = lastIndexOf;
5344
5344
  lodash.lowerCase = lowerCase;
5345
5345
  lodash.lowerFirst = lowerFirst;
5346
- lodash.lt = lt2;
5346
+ lodash.lt = lt;
5347
5347
  lodash.lte = lte;
5348
5348
  lodash.max = max;
5349
5349
  lodash.maxBy = maxBy;
@@ -5630,16 +5630,16 @@ var require_ua_parser = __commonJS({
5630
5630
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5631
5631
  }
5632
5632
  };
5633
- var rgxMapper = function(ua, arrays) {
5634
- var i = 0, j2, k2, p, q, matches, match18;
5633
+ var rgxMapper = function(ua2, arrays) {
5634
+ var i = 0, j, k2, p, q, matches, match18;
5635
5635
  while (i < arrays.length && !matches) {
5636
5636
  var regex = arrays[i], props = arrays[i + 1];
5637
- j2 = k2 = 0;
5638
- while (j2 < regex.length && !matches) {
5639
- if (!regex[j2]) {
5637
+ j = k2 = 0;
5638
+ while (j < regex.length && !matches) {
5639
+ if (!regex[j]) {
5640
5640
  break;
5641
5641
  }
5642
- matches = regex[j2++].exec(ua);
5642
+ matches = regex[j++].exec(ua2);
5643
5643
  if (!!matches) {
5644
5644
  for (p = 0; p < props.length; p++) {
5645
5645
  match18 = matches[++k2];
@@ -5671,8 +5671,8 @@ var require_ua_parser = __commonJS({
5671
5671
  }, strMapper = function(str, map) {
5672
5672
  for (var i in map) {
5673
5673
  if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
5674
- for (var j2 = 0; j2 < map[i].length; j2++) {
5675
- if (has(map[i][j2], str)) {
5674
+ for (var j = 0; j < map[i].length; j++) {
5675
+ if (has(map[i][j], str)) {
5676
5676
  return i === UNKNOWN ? undefined2 : i;
5677
5677
  }
5678
5678
  }
@@ -6728,16 +6728,16 @@ var require_ua_parser = __commonJS({
6728
6728
  [NAME, VERSION]
6729
6729
  ]
6730
6730
  };
6731
- var UAParser = function(ua, extensions) {
6732
- if (typeof ua === OBJ_TYPE) {
6733
- extensions = ua;
6734
- ua = undefined2;
6731
+ var UAParser = function(ua2, extensions) {
6732
+ if (typeof ua2 === OBJ_TYPE) {
6733
+ extensions = ua2;
6734
+ ua2 = undefined2;
6735
6735
  }
6736
6736
  if (!(this instanceof UAParser)) {
6737
- return new UAParser(ua, extensions).getResult();
6737
+ return new UAParser(ua2, extensions).getResult();
6738
6738
  }
6739
6739
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6740
- var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6740
+ var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6741
6741
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6742
6742
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6743
6743
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6803,8 +6803,8 @@ var require_ua_parser = __commonJS({
6803
6803
  this.getUA = function() {
6804
6804
  return _ua;
6805
6805
  };
6806
- this.setUA = function(ua2) {
6807
- _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6806
+ this.setUA = function(ua3) {
6807
+ _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6808
6808
  return this;
6809
6809
  };
6810
6810
  this.setUA(_ua);
@@ -6829,18 +6829,18 @@ var require_ua_parser = __commonJS({
6829
6829
  window2.UAParser = UAParser;
6830
6830
  }
6831
6831
  }
6832
- var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
- if ($ && !$.ua) {
6832
+ var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6833
+ if ($2 && !$2.ua) {
6834
6834
  var parser = new UAParser();
6835
- $.ua = parser.getResult();
6836
- $.ua.get = function() {
6835
+ $2.ua = parser.getResult();
6836
+ $2.ua.get = function() {
6837
6837
  return parser.getUA();
6838
6838
  };
6839
- $.ua.set = function(ua) {
6840
- parser.setUA(ua);
6839
+ $2.ua.set = function(ua2) {
6840
+ parser.setUA(ua2);
6841
6841
  var result = parser.getResult();
6842
6842
  for (var prop in result) {
6843
- $.ua[prop] = result[prop];
6843
+ $2.ua[prop] = result[prop];
6844
6844
  }
6845
6845
  };
6846
6846
  }
@@ -7673,12 +7673,12 @@ var require_sdp = __commonJS({
7673
7673
  return parsed;
7674
7674
  };
7675
7675
  SDPUtils2.writeRtpMap = function(codec) {
7676
- let pt2 = codec.payloadType;
7676
+ let pt = codec.payloadType;
7677
7677
  if (codec.preferredPayloadType !== void 0) {
7678
- pt2 = codec.preferredPayloadType;
7678
+ pt = codec.preferredPayloadType;
7679
7679
  }
7680
7680
  const channels = codec.channels || codec.numChannels || 1;
7681
- return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7681
+ return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7682
7682
  };
7683
7683
  SDPUtils2.parseExtmap = function(line) {
7684
7684
  const parts = line.substring(9).split(" ");
@@ -7696,17 +7696,17 @@ var require_sdp = __commonJS({
7696
7696
  const parsed = {};
7697
7697
  let kv;
7698
7698
  const parts = line.substring(line.indexOf(" ") + 1).split(";");
7699
- for (let j2 = 0; j2 < parts.length; j2++) {
7700
- kv = parts[j2].trim().split("=");
7699
+ for (let j = 0; j < parts.length; j++) {
7700
+ kv = parts[j].trim().split("=");
7701
7701
  parsed[kv[0].trim()] = kv[1];
7702
7702
  }
7703
7703
  return parsed;
7704
7704
  };
7705
7705
  SDPUtils2.writeFmtp = function(codec) {
7706
7706
  let line = "";
7707
- let pt2 = codec.payloadType;
7707
+ let pt = codec.payloadType;
7708
7708
  if (codec.preferredPayloadType !== void 0) {
7709
- pt2 = codec.preferredPayloadType;
7709
+ pt = codec.preferredPayloadType;
7710
7710
  }
7711
7711
  if (codec.parameters && Object.keys(codec.parameters).length) {
7712
7712
  const params = [];
@@ -7717,7 +7717,7 @@ var require_sdp = __commonJS({
7717
7717
  params.push(param);
7718
7718
  }
7719
7719
  });
7720
- line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7720
+ line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7721
7721
  }
7722
7722
  return line;
7723
7723
  };
@@ -7730,13 +7730,13 @@ var require_sdp = __commonJS({
7730
7730
  };
7731
7731
  SDPUtils2.writeRtcpFb = function(codec) {
7732
7732
  let lines = "";
7733
- let pt2 = codec.payloadType;
7733
+ let pt = codec.payloadType;
7734
7734
  if (codec.preferredPayloadType !== void 0) {
7735
- pt2 = codec.preferredPayloadType;
7735
+ pt = codec.preferredPayloadType;
7736
7736
  }
7737
7737
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7738
7738
  codec.rtcpFeedback.forEach((fb) => {
7739
- lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7739
+ lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7740
7740
  });
7741
7741
  }
7742
7742
  return lines;
@@ -7864,21 +7864,21 @@ var require_sdp = __commonJS({
7864
7864
  const mline = lines[0].split(" ");
7865
7865
  description.profile = mline[2];
7866
7866
  for (let i = 3; i < mline.length; i++) {
7867
- const pt2 = mline[i];
7867
+ const pt = mline[i];
7868
7868
  const rtpmapline = SDPUtils2.matchPrefix(
7869
7869
  mediaSection,
7870
- "a=rtpmap:" + pt2 + " "
7870
+ "a=rtpmap:" + pt + " "
7871
7871
  )[0];
7872
7872
  if (rtpmapline) {
7873
7873
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7874
7874
  const fmtps = SDPUtils2.matchPrefix(
7875
7875
  mediaSection,
7876
- "a=fmtp:" + pt2 + " "
7876
+ "a=fmtp:" + pt + " "
7877
7877
  );
7878
7878
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7879
7879
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7880
7880
  mediaSection,
7881
- "a=rtcp-fb:" + pt2 + " "
7881
+ "a=rtcp-fb:" + pt + " "
7882
7882
  ).map(SDPUtils2.parseRtcpFb);
7883
7883
  description.codecs.push(codec);
7884
7884
  switch (codec.name.toUpperCase()) {
@@ -8677,8 +8677,8 @@ var require_parser = __commonJS({
8677
8677
  media.push({ rtp: [], fmtp: [] });
8678
8678
  location = media[media.length - 1];
8679
8679
  }
8680
- for (var j2 = 0; j2 < (grammar[type] || []).length; j2 += 1) {
8681
- var obj = grammar[type][j2];
8680
+ for (var j = 0; j < (grammar[type] || []).length; j += 1) {
8681
+ var obj = grammar[type][j];
8682
8682
  if (obj.reg.test(content)) {
8683
8683
  return parseReg(obj, location, content);
8684
8684
  }
@@ -8875,10 +8875,10 @@ var require_react_is_production_min = __commonJS({
8875
8875
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8876
8876
  var f = b2 ? Symbol.for("react.strict_mode") : 60108;
8877
8877
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8878
- var h = b2 ? Symbol.for("react.provider") : 60109;
8878
+ var h2 = b2 ? Symbol.for("react.provider") : 60109;
8879
8879
  var k2 = b2 ? Symbol.for("react.context") : 60110;
8880
8880
  var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8881
- var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8881
+ var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8882
8882
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8883
8883
  var p = b2 ? Symbol.for("react.suspense") : 60113;
8884
8884
  var q = b2 ? Symbol.for("react.suspense_list") : 60120;
@@ -8895,7 +8895,7 @@ var require_react_is_production_min = __commonJS({
8895
8895
  case c2:
8896
8896
  switch (a2 = a2.type, a2) {
8897
8897
  case l2:
8898
- case m2:
8898
+ case m:
8899
8899
  case e:
8900
8900
  case g:
8901
8901
  case f:
@@ -8907,7 +8907,7 @@ var require_react_is_production_min = __commonJS({
8907
8907
  case n:
8908
8908
  case t:
8909
8909
  case r:
8910
- case h:
8910
+ case h2:
8911
8911
  return a2;
8912
8912
  default:
8913
8913
  return u;
@@ -8919,12 +8919,12 @@ var require_react_is_production_min = __commonJS({
8919
8919
  }
8920
8920
  }
8921
8921
  function A(a2) {
8922
- return z2(a2) === m2;
8922
+ return z2(a2) === m;
8923
8923
  }
8924
8924
  exports.AsyncMode = l2;
8925
- exports.ConcurrentMode = m2;
8925
+ exports.ConcurrentMode = m;
8926
8926
  exports.ContextConsumer = k2;
8927
- exports.ContextProvider = h;
8927
+ exports.ContextProvider = h2;
8928
8928
  exports.Element = c2;
8929
8929
  exports.ForwardRef = n;
8930
8930
  exports.Fragment = e;
@@ -8942,7 +8942,7 @@ var require_react_is_production_min = __commonJS({
8942
8942
  return z2(a2) === k2;
8943
8943
  };
8944
8944
  exports.isContextProvider = function(a2) {
8945
- return z2(a2) === h;
8945
+ return z2(a2) === h2;
8946
8946
  };
8947
8947
  exports.isElement = function(a2) {
8948
8948
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
@@ -8972,7 +8972,7 @@ var require_react_is_production_min = __commonJS({
8972
8972
  return z2(a2) === p;
8973
8973
  };
8974
8974
  exports.isValidElementType = function(a2) {
8975
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8975
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8976
8976
  };
8977
8977
  exports.typeOf = z2;
8978
8978
  }
@@ -9361,7 +9361,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9361
9361
  shape: createShapeTypeChecker,
9362
9362
  exact: createStrictShapeTypeChecker
9363
9363
  };
9364
- function is(x, y2) {
9364
+ function is2(x, y2) {
9365
9365
  if (x === y2) {
9366
9366
  return x !== 0 || 1 / x === 1 / y2;
9367
9367
  } else {
@@ -9504,7 +9504,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9504
9504
  function validate(props, propName, componentName, location, propFullName) {
9505
9505
  var propValue = props[propName];
9506
9506
  for (var i = 0; i < expectedValues.length; i++) {
9507
- if (is(propValue, expectedValues[i])) {
9507
+ if (is2(propValue, expectedValues[i])) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  }
@@ -10444,7 +10444,7 @@ var Flex = styled("div", {
10444
10444
  baseline: {
10445
10445
  alignItems: "baseline"
10446
10446
  },
10447
- strech: {
10447
+ stretch: {
10448
10448
  alignItems: "stretch"
10449
10449
  }
10450
10450
  },
@@ -13898,6 +13898,7 @@ var useHMSPrebuiltContext = () => {
13898
13898
  init_define_process_env();
13899
13899
  var import_react38 = __toESM(require("react"));
13900
13900
  var import_react_use4 = require("react-use");
13901
+ var import_hms_virtual_background = require("@100mslive/hms-virtual-background");
13901
13902
  var import_ts_pattern2 = require("ts-pattern");
13902
13903
  var import_react_sdk13 = require("@100mslive/react-sdk");
13903
13904
 
@@ -14543,13 +14544,14 @@ var useAppStateManager = () => {
14543
14544
  ).with({ isPreviewScreenEnabled: true }, () => "preview" /* PREVIEW */).otherwise(() => "meeting" /* MEETING */);
14544
14545
  });
14545
14546
  VBHandler.reset();
14547
+ hmsActions.setAppData(APP_DATA.background, import_hms_virtual_background.HMSVirtualBackgroundTypes.NONE);
14546
14548
  redirectToLeave(1e3);
14547
14549
  }
14548
14550
  ).with([import_react_sdk13.HMSRoomState.Disconnected, import_ts_pattern2.P.nullish], () => {
14549
14551
  setActiveState(isPreviewScreenEnabled ? "preview" /* PREVIEW */ : "meeting" /* MEETING */);
14550
14552
  }).otherwise(() => {
14551
14553
  });
14552
- }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave]);
14554
+ }, [roomLayout, roomState, isLeaveScreenEnabled, isPreviewScreenEnabled, prevRoomState, redirectToLeave, hmsActions]);
14553
14555
  return { activeState, rejoin };
14554
14556
  };
14555
14557
 
@@ -14619,8 +14621,8 @@ var AuthToken = import_react39.default.memo(({ authTokenByRoomCodeEndpoint, defa
14619
14621
  var convertError = (error) => {
14620
14622
  console.error("[error]", { error });
14621
14623
  console.warn(
14622
- "If you think this is a mistake on our side, please reach out to us over Discord:",
14623
- "https://discord.com/invite/kGdmszyzq2"
14624
+ "If you think this is a mistake on our side, please reach out to us on Dashboard:",
14625
+ "https://dashboard.100ms.live/dashboard"
14624
14626
  );
14625
14627
  return (0, import_ts_pattern3.match)([error.action, error.code]).with(["GET_TOKEN", 403], () => ({
14626
14628
  title: "Psst! This room is currently inactive.",
@@ -19571,8 +19573,8 @@ function shimGetUserMedia(window2, browserDetails) {
19571
19573
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19572
19574
  if (navigator2.mediaDevices.getUserMedia) {
19573
19575
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19574
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19575
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19576
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19577
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19576
19578
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19577
19579
  stream.getTracks().forEach((track) => {
19578
19580
  track.stop();
@@ -19692,20 +19694,20 @@ function shimOnTrack(window2) {
19692
19694
  }
19693
19695
  function shimGetSendersWithDtmf(window2) {
19694
19696
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
19695
- const shimSenderWithDtmf = function(pc, track) {
19697
+ const shimSenderWithDtmf = function(pc2, track) {
19696
19698
  return {
19697
19699
  track,
19698
19700
  get dtmf() {
19699
19701
  if (this._dtmf === void 0) {
19700
19702
  if (track.kind === "audio") {
19701
- this._dtmf = pc.createDTMFSender(track);
19703
+ this._dtmf = pc2.createDTMFSender(track);
19702
19704
  } else {
19703
19705
  this._dtmf = null;
19704
19706
  }
19705
19707
  }
19706
19708
  return this._dtmf;
19707
19709
  },
19708
- _pc: pc
19710
+ _pc: pc2
19709
19711
  };
19710
19712
  };
19711
19713
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -20060,11 +20062,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20060
20062
  }
20061
20063
  return this.getSenders().find((s) => s.track === track);
20062
20064
  };
20063
- function replaceInternalStreamId(pc, description) {
20065
+ function replaceInternalStreamId(pc2, description) {
20064
20066
  let sdp2 = description.sdp;
20065
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20066
- const externalStream = pc._reverseStreams[internalId];
20067
- const internalStream = pc._streams[externalStream.id];
20067
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20068
+ const externalStream = pc2._reverseStreams[internalId];
20069
+ const internalStream = pc2._streams[externalStream.id];
20068
20070
  sdp2 = sdp2.replace(
20069
20071
  new RegExp(internalStream.id, "g"),
20070
20072
  externalStream.id
@@ -20075,11 +20077,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20075
20077
  sdp: sdp2
20076
20078
  });
20077
20079
  }
20078
- function replaceExternalStreamId(pc, description) {
20080
+ function replaceExternalStreamId(pc2, description) {
20079
20081
  let sdp2 = description.sdp;
20080
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20081
- const externalStream = pc._reverseStreams[internalId];
20082
- const internalStream = pc._streams[externalStream.id];
20082
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20083
+ const externalStream = pc2._reverseStreams[internalId];
20084
+ const internalStream = pc2._streams[externalStream.id];
20083
20085
  sdp2 = sdp2.replace(
20084
20086
  new RegExp(externalStream.id, "g"),
20085
20087
  internalStream.id
@@ -20193,9 +20195,9 @@ function shimPeerConnection(window2, browserDetails) {
20193
20195
  }
20194
20196
  function fixNegotiationNeeded(window2, browserDetails) {
20195
20197
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
20196
- const pc = e.target;
20197
- if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
20198
- if (pc.signalingState !== "stable") {
20198
+ const pc2 = e.target;
20199
+ if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
20200
+ if (pc2.signalingState !== "stable") {
20199
20201
  return;
20200
20202
  }
20201
20203
  }
@@ -20642,24 +20644,24 @@ function shimRemoteStreamsAPI(window2) {
20642
20644
  });
20643
20645
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
20644
20646
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
20645
- const pc = this;
20647
+ const pc2 = this;
20646
20648
  if (!this._onaddstreampoly) {
20647
20649
  this.addEventListener("track", this._onaddstreampoly = function(e) {
20648
20650
  e.streams.forEach((stream) => {
20649
- if (!pc._remoteStreams) {
20650
- pc._remoteStreams = [];
20651
+ if (!pc2._remoteStreams) {
20652
+ pc2._remoteStreams = [];
20651
20653
  }
20652
- if (pc._remoteStreams.indexOf(stream) >= 0) {
20654
+ if (pc2._remoteStreams.indexOf(stream) >= 0) {
20653
20655
  return;
20654
20656
  }
20655
- pc._remoteStreams.push(stream);
20657
+ pc2._remoteStreams.push(stream);
20656
20658
  const event = new Event("addstream");
20657
20659
  event.stream = stream;
20658
- pc.dispatchEvent(event);
20660
+ pc2.dispatchEvent(event);
20659
20661
  });
20660
20662
  });
20661
20663
  }
20662
- return origSetRemoteDescription.apply(pc, arguments);
20664
+ return origSetRemoteDescription.apply(pc2, arguments);
20663
20665
  };
20664
20666
  }
20665
20667
  }
@@ -21025,13 +21027,13 @@ function shimSendThrowTypeError(window2) {
21025
21027
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
21026
21028
  return;
21027
21029
  }
21028
- function wrapDcSend(dc, pc) {
21030
+ function wrapDcSend(dc, pc2) {
21029
21031
  const origDataChannelSend = dc.send;
21030
21032
  dc.send = function send() {
21031
21033
  const data3 = arguments[0];
21032
21034
  const length = data3.length || data3.size || data3.byteLength;
21033
- if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
21034
- throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
21035
+ if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
21036
+ throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
21035
21037
  }
21036
21038
  return origDataChannelSend.apply(dc, arguments);
21037
21039
  };
@@ -21089,11 +21091,11 @@ function shimConnectionState(window2) {
21089
21091
  proto[method] = function() {
21090
21092
  if (!this._connectionstatechangepoly) {
21091
21093
  this._connectionstatechangepoly = (e) => {
21092
- const pc = e.target;
21093
- if (pc._lastConnectionState !== pc.connectionState) {
21094
- pc._lastConnectionState = pc.connectionState;
21094
+ const pc2 = e.target;
21095
+ if (pc2._lastConnectionState !== pc2.connectionState) {
21096
+ pc2._lastConnectionState = pc2.connectionState;
21095
21097
  const newEvent = new Event("connectionstatechange", e);
21096
- pc.dispatchEvent(newEvent);
21098
+ pc2.dispatchEvent(newEvent);
21097
21099
  }
21098
21100
  return e;
21099
21101
  };
@@ -21304,36 +21306,36 @@ var import_eventemitter2 = require("eventemitter2");
21304
21306
  var import_eventemitter22 = require("eventemitter2");
21305
21307
  var import_uuid8 = require("uuid");
21306
21308
  var import_eventemitter23 = require("eventemitter2");
21307
- var jt = __toESM(require_lib());
21309
+ var Jt = __toESM(require_lib());
21308
21310
  var import_eventemitter24 = __toESM(require("eventemitter2"));
21309
21311
  var import_uuid9 = require("uuid");
21310
21312
  var import_uuid10 = require("uuid");
21311
- var to = Object.defineProperty;
21312
- var io = Object.defineProperties;
21313
- var ro = Object.getOwnPropertyDescriptors;
21314
- var ti = Object.getOwnPropertySymbols;
21315
- var ds = Object.prototype.hasOwnProperty;
21316
- var ls = Object.prototype.propertyIsEnumerable;
21317
- var cs = (a2, e, t) => e in a2 ? to(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21318
- var m = (a2, e) => {
21313
+ var ro = Object.defineProperty;
21314
+ var so = Object.defineProperties;
21315
+ var ao = Object.getOwnPropertyDescriptors;
21316
+ var ii = Object.getOwnPropertySymbols;
21317
+ var ls = Object.prototype.hasOwnProperty;
21318
+ var us = Object.prototype.propertyIsEnumerable;
21319
+ var ds = (a2, e, t) => e in a2 ? ro(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21320
+ var h = (a2, e) => {
21319
21321
  for (var t in e || (e = {}))
21320
- ds.call(e, t) && cs(a2, t, e[t]);
21321
- if (ti)
21322
- for (var t of ti(e))
21323
- ls.call(e, t) && cs(a2, t, e[t]);
21322
+ ls.call(e, t) && ds(a2, t, e[t]);
21323
+ if (ii)
21324
+ for (var t of ii(e))
21325
+ us.call(e, t) && ds(a2, t, e[t]);
21324
21326
  return a2;
21325
21327
  };
21326
- var y = (a2, e) => io(a2, ro(e));
21327
- var gr = (a2, e) => {
21328
+ var M = (a2, e) => so(a2, ao(e));
21329
+ var Tr = (a2, e) => {
21328
21330
  var t = {};
21329
21331
  for (var i in a2)
21330
- ds.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21331
- if (a2 != null && ti)
21332
- for (var i of ti(a2))
21333
- e.indexOf(i) < 0 && ls.call(a2, i) && (t[i] = a2[i]);
21332
+ ls.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21333
+ if (a2 != null && ii)
21334
+ for (var i of ii(a2))
21335
+ e.indexOf(i) < 0 && us.call(a2, i) && (t[i] = a2[i]);
21334
21336
  return t;
21335
21337
  };
21336
- var oo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21338
+ var co = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21337
21339
  var c = (a2, e, t) => new Promise((i, r) => {
21338
21340
  var s = (d) => {
21339
21341
  try {
@@ -21350,51 +21352,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21350
21352
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21351
21353
  n((t = t.apply(a2, e)).next());
21352
21354
  });
21353
- var yr = oo((xc, go) => {
21354
- go.exports = { version: "0.12.24-alpha.5", 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"] };
21355
+ var kr = co((Wc, fo) => {
21356
+ fo.exports = { version: "0.12.24-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"] };
21355
21357
  });
21356
- var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
21357
- var no = ((e) => (e.CHAT = "chat", e))(no || {});
21358
- var us = ((t) => (t.INFO = "info", t.ERROR = "error", t))(us || {});
21359
- var fr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(fr || {});
21360
- var ps = ((t) => (t.audio = "audio", t.video = "video", t))(ps || {});
21361
- function Ue(a2, e) {
21358
+ var fr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(fr || {});
21359
+ var lo = ((e) => (e.CHAT = "chat", e))(lo || {});
21360
+ var ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ps || {});
21361
+ var vr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(vr || {});
21362
+ var hs = ((t) => (t.audio = "audio", t.video = "video", t))(hs || {});
21363
+ function Be(a2, e) {
21362
21364
  let t, i;
21363
21365
  if (e)
21364
21366
  for (let r of e.auxiliaryTracks) {
21365
21367
  let s = a2[r];
21366
- co(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
21368
+ uo(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21367
21369
  }
21368
21370
  return { video: t, audio: i };
21369
21371
  }
21370
- function pt(a2) {
21372
+ function ht(a2) {
21371
21373
  return a2 && a2.type === "audio";
21372
21374
  }
21373
- function ht(a2) {
21375
+ function mt(a2) {
21374
21376
  return a2 && a2.type === "video";
21375
21377
  }
21376
- function co(a2) {
21378
+ function uo(a2) {
21377
21379
  return a2 && a2.source === "screen";
21378
21380
  }
21379
- function si(a2) {
21381
+ function ai(a2) {
21380
21382
  return a2 && a2.source === "audioplaylist";
21381
21383
  }
21382
- function mt(a2) {
21384
+ function St(a2) {
21383
21385
  return a2 && a2.source === "videoplaylist";
21384
21386
  }
21385
- function hs(a2) {
21387
+ function ms(a2) {
21386
21388
  return a2 ? !!(a2 != null && a2.degraded) : false;
21387
21389
  }
21388
- function je(a2, e) {
21390
+ function Je(a2, e) {
21389
21391
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21390
21392
  }
21391
- function St(a2) {
21393
+ function gt(a2) {
21392
21394
  var r;
21393
21395
  let e = false, t = false, i = false;
21394
21396
  return (r = a2 == null ? void 0 : a2.publishParams) != null && r.allowed && (e = a2.publishParams.allowed.includes("video"), t = a2.publishParams.allowed.includes("audio"), i = a2.publishParams.allowed.includes("screen")), { video: e, audio: t, screen: i };
21395
21397
  }
21396
- var Ss = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ss || {});
21397
- var lo = typeof window != "undefined" && typeof window.expect != "undefined";
21398
+ var gs = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(gs || {});
21399
+ var po = typeof window != "undefined" && typeof window.expect != "undefined";
21398
21400
  var l = class {
21399
21401
  static v(e, ...t) {
21400
21402
  this.log(0, e, ...t);
@@ -21460,30 +21462,30 @@ var l = class {
21460
21462
  }
21461
21463
  }
21462
21464
  };
21463
- l.level = lo ? 7 : 0;
21464
- var he = new import_ua_parser_js.UAParser();
21465
+ l.level = po ? 7 : 0;
21466
+ var me = new import_ua_parser_js.UAParser();
21465
21467
  var B = typeof window != "undefined";
21466
- var gs;
21467
- var Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
21468
- var po = () => !Be;
21469
- var uc = po();
21470
21468
  var Ts;
21469
+ var Ve = typeof window == "undefined" && !((Ts = me.getBrowser().name) != null && Ts.toLowerCase().includes("electron"));
21470
+ var mo = () => !Ve;
21471
+ var pc = mo();
21471
21472
  var fs;
21472
- var Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
21473
21473
  var vs;
21474
+ var Ps = (vs = (fs = me.getBrowser()) == null ? void 0 : fs.name) == null ? void 0 : vs.toLowerCase().includes("safari");
21474
21475
  var Ms;
21475
- var Ps = ((Ms = (vs = he.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase()) === "firefox";
21476
- var bs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(bs || {});
21477
- function ho() {
21476
+ var ys;
21477
+ var bs = ((ys = (Ms = me.getBrowser()) == null ? void 0 : Ms.name) == null ? void 0 : ys.toLowerCase()) === "firefox";
21478
+ var As = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(As || {});
21479
+ function So() {
21478
21480
  if (B && window) {
21479
21481
  let a2 = window.location.hostname;
21480
21482
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21481
21483
  }
21482
21484
  return "CUSTOM";
21483
21485
  }
21484
- var Qe = ho();
21486
+ var ze = So();
21485
21487
  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, NO_DATA: 3015 }, 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 } };
21486
- var M = class a extends Error {
21488
+ var k = class a extends Error {
21487
21489
  constructor(t, i, r, s, o, n = false) {
21488
21490
  super(s);
21489
21491
  this.code = t;
@@ -21502,127 +21504,154 @@ var M = class a extends Error {
21502
21504
  toString() {
21503
21505
  var t;
21504
21506
  return `{
21505
- code: ${this.code};
21506
- name: ${this.name};
21507
- action: ${this.action};
21508
- message: ${this.message};
21509
- description: ${this.description};
21510
- isTerminal: ${this.isTerminal};
21511
- nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21512
- }`;
21507
+ code: ${this.code};
21508
+ name: ${this.name};
21509
+ action: ${this.action};
21510
+ message: ${this.message};
21511
+ description: ${this.description};
21512
+ isTerminal: ${this.isTerminal};
21513
+ nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21514
+ }`;
21515
+ }
21516
+ };
21517
+ var $ = class extends k {
21518
+ constructor(t, i, r, s, o, n) {
21519
+ super(t, i, r, s, o, false);
21520
+ this.code = t;
21521
+ this.name = i;
21522
+ this.message = s;
21523
+ this.description = o;
21524
+ this.trackType = n;
21513
21525
  }
21514
- };
21515
- var mo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21526
+ toAnalyticsProperties() {
21527
+ return M(h({}, super.toAnalyticsProperties()), { track_type: this.trackType });
21528
+ }
21529
+ toString() {
21530
+ var t;
21531
+ return `{
21532
+ code: ${this.code};
21533
+ name: ${this.name};
21534
+ action: ${this.action};
21535
+ message: ${this.message};
21536
+ description: ${this.description};
21537
+ isTerminal: ${this.isTerminal};
21538
+ nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21539
+ trackType: ${this.trackType};
21540
+ }`;
21541
+ }
21542
+ };
21543
+ var Is = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Is || {});
21544
+ var go = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21516
21545
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21517
- return new M(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21546
+ return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21518
21547
  }, WebSocketConnectionLost(a2, e = "") {
21519
- return new M(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21548
+ return new k(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21520
21549
  }, AbnormalClose(a2, e = "") {
21521
- return new M(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21550
+ return new k(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21522
21551
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21523
- return new M(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21552
+ return new k(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21524
21553
  }, EndpointUnreachable(a2, e = "") {
21525
- return new M(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21554
+ return new k(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21526
21555
  }, InvalidTokenFormat(a2, e = "") {
21527
- return new M(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21556
+ return new k(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21528
21557
  }, InitConfigNotAvailable(a2, e = "") {
21529
- return new M(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21558
+ return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21530
21559
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21531
- return new M(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21560
+ return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21532
21561
  }, CantAccessCaptureDevice(a2, e, t = "") {
21533
- return new M(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21562
+ return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21534
21563
  }, DeviceNotAvailable(a2, e, t = "") {
21535
- return new M(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21564
+ return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21536
21565
  }, DeviceInUse(a2, e, t = "") {
21537
- return new M(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21566
+ return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21538
21567
  }, DeviceLostMidway(a2, e, t = "") {
21539
- return new M(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21568
+ return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21540
21569
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21541
- return new M(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21570
+ return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21542
21571
  }, InvalidVideoSettings(a2, e = "") {
21543
- return new M(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21572
+ return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21544
21573
  }, AutoplayBlocked(a2, e = "") {
21545
- return new M(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21574
+ return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21546
21575
  }, CodecChangeNotPermitted(a2, e = "") {
21547
- return new M(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21576
+ return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21548
21577
  }, OverConstrained(a2, e, t = "") {
21549
- return new M(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21578
+ return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21550
21579
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21551
- return new M(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21580
+ return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21552
21581
  }, SystemDeniedPermission(a2, e, t = "") {
21553
- return new M(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21582
+ return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21554
21583
  }, CurrentTabNotShared() {
21555
- return new M(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");
21584
+ return new $(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", "screen");
21556
21585
  }, AudioPlaybackError(a2) {
21557
- return new M(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21586
+ return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21558
21587
  }, SelectedDeviceMissing(a2) {
21559
- return new M(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21588
+ return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21560
21589
  }, NoDataInTrack(a2) {
21561
- return new M(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call");
21590
+ return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21562
21591
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21563
- return new M(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21592
+ return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21564
21593
  }, CreateAnswerFailed(a2, e = "") {
21565
- return new M(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21594
+ return new k(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21566
21595
  }, SetLocalDescriptionFailed(a2, e = "") {
21567
- return new M(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21596
+ return new k(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21568
21597
  }, SetRemoteDescriptionFailed(a2, e = "") {
21569
- return new M(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21598
+ return new k(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21570
21599
  }, ICEFailure(a2, e = "", t = false) {
21571
- return new M(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21600
+ return new k(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21572
21601
  }, ICEDisconnected(a2, e = "") {
21573
- return new M(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21602
+ return new k(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21574
21603
  }, StatsFailed(a2, e = "") {
21575
- return new M(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21604
+ return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21576
21605
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21577
- return new M(a2, "ServerErrors", e, t, t, mo.includes(e));
21606
+ return new k(a2, "ServerErrors", e, t, t, go.includes(e));
21578
21607
  }, AlreadyJoined(a2, e = "") {
21579
- return new M(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21608
+ return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21580
21609
  }, CannotJoinPreviewInProgress(a2, e = "") {
21581
- return new M(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21610
+ return new k(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21582
21611
  } }, GenericErrors: { NotConnected(a2, e = "") {
21583
- return new M(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21612
+ return new k(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21584
21613
  }, Signalling(a2, e) {
21585
- return new M(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21614
+ return new k(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21586
21615
  }, Unknown(a2, e) {
21587
- return new M(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21616
+ return new k(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21588
21617
  }, NotReady(a2, e = "") {
21589
- return new M(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21618
+ return new k(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21590
21619
  }, JsonParsingFailed(a2, e, t = "") {
21591
- return new M(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21620
+ return new k(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21592
21621
  }, TrackMetadataMissing(a2, e = "") {
21593
- return new M(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21622
+ return new k(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21594
21623
  }, RTCTrackMissing(a2, e = "") {
21595
- return new M(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21624
+ return new k(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21596
21625
  }, PeerMetadataMissing(a2, e = "") {
21597
- return new M(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21626
+ return new k(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21598
21627
  }, ValidationFailed(a2, e) {
21599
- return new M(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21628
+ return new k(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21600
21629
  }, InvalidRole(a2, e) {
21601
- return new M(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21630
+ return new k(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21602
21631
  }, PreviewAlreadyInProgress(a2, e = "") {
21603
- return new M(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21632
+ return new k(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21604
21633
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21605
- return new M(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21634
+ return new k(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21606
21635
  }, MissingMediaDevices() {
21607
- return new M(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);
21636
+ return new k(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);
21608
21637
  }, MissingRTCPeerConnection() {
21609
- return new M(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);
21638
+ return new k(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);
21610
21639
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21611
- return new M(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21640
+ return new k(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21612
21641
  }, InitFailed(a2, e = "") {
21613
- return new M(7002, "InitFailed", a2, "Plugin init failed", e);
21642
+ return new k(7002, "InitFailed", a2, "Plugin init failed", e);
21614
21643
  }, ProcessingFailed(a2, e = "") {
21615
- return new M(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
21644
+ return new k(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
21616
21645
  }, AddAlreadyInProgress(a2, e = "") {
21617
- return new M(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
21646
+ return new k(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
21618
21647
  }, DeviceNotSupported(a2, e = "") {
21619
- return new M(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21648
+ return new k(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21620
21649
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21621
- return new M(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21650
+ return new k(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21622
21651
  }, NoEntryPlaying(a2, e) {
21623
- return new M(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21652
+ return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21624
21653
  } } };
21625
- var Mr = class {
21654
+ var yr = class {
21626
21655
  constructor() {
21627
21656
  this.valuesMap = /* @__PURE__ */ new Map();
21628
21657
  }
@@ -21647,21 +21676,21 @@ var Mr = class {
21647
21676
  return this.valuesMap.size;
21648
21677
  }
21649
21678
  };
21650
- var As = () => {
21679
+ var Rs = () => {
21651
21680
  try {
21652
- B && !localStorage && (window.localStorage = new Mr());
21681
+ B && !localStorage && (window.localStorage = new yr());
21653
21682
  } catch (a2) {
21654
21683
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21655
21684
  }
21656
21685
  };
21657
- var me = class {
21686
+ var Se = class {
21658
21687
  constructor(e) {
21659
21688
  this.key = e;
21660
21689
  this.storage = null;
21661
21690
  }
21662
21691
  getStorage() {
21663
21692
  try {
21664
- return B && !this.storage && (As(), this.storage = window.localStorage), this.storage;
21693
+ return B && !this.storage && (Rs(), this.storage = window.localStorage), this.storage;
21665
21694
  } catch (e) {
21666
21695
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21667
21696
  }
@@ -21681,37 +21710,37 @@ var me = class {
21681
21710
  (e = this.getStorage()) == null || e.removeItem(this.key);
21682
21711
  }
21683
21712
  };
21684
- var ai = () => {
21685
- let a2, e = new me("hms-analytics-deviceId"), t = e.get();
21713
+ var oi = () => {
21714
+ let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21686
21715
  return t ? a2 = t : (a2 = (0, import_uuid4.v4)(), e.set(a2)), a2;
21687
21716
  };
21688
- function de(a2) {
21717
+ function le(a2) {
21689
21718
  return a2 != null;
21690
21719
  }
21691
- var Hs = yr().version;
21692
- function vt(a2 = "prod", e) {
21693
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21694
- if (Be)
21695
- return Cs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Hs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21696
- let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
21697
- return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), Cs({ os: n, os_version: d, sdk: t, sdk_version: Hs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21720
+ var Ls = kr().version;
21721
+ function Mt(a2 = "prod", e) {
21722
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21723
+ if (Ve)
21724
+ return Ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ls, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21725
+ let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Er(`web_${r.name}`), d = r.version || "", u = Er(`${o.name}_${o.version}`), p = u;
21726
+ return s.type && (p = `${Er(`${s.vendor}_${s.type}`)}/${u}`), Ds({ os: n, os_version: d, sdk: t, sdk_version: Ls, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21698
21727
  }
21699
- function kr(a2) {
21728
+ function Er(a2) {
21700
21729
  return a2.replace(/ /g, "_");
21701
21730
  }
21702
- var Cs = (a2, e = ",") => Object.keys(a2).filter((t) => de(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21731
+ var Ds = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21703
21732
  var C = class {
21704
21733
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21705
- this.metadata = { peer: {}, userAgent: vt() };
21706
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = ai();
21734
+ this.metadata = { peer: {}, userAgent: Mt() };
21735
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = (0, import_uuid3.v4)(), this.device_id = oi();
21707
21736
  }
21708
21737
  toSignalParams() {
21709
- return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21738
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21710
21739
  }
21711
21740
  };
21712
- var k = class {
21741
+ var y = class {
21713
21742
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21714
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21743
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21715
21744
  return new C({ name: o, level: n, properties: d });
21716
21745
  }
21717
21746
  static disconnect(e, t) {
@@ -21719,13 +21748,13 @@ var k = class {
21719
21748
  return new C({ name: i, level: r, properties: s });
21720
21749
  }
21721
21750
  static preview(i) {
21722
- var r = i, { error: e } = r, t = gr(r, ["error"]);
21751
+ var r = i, { error: e } = r, t = Tr(r, ["error"]);
21723
21752
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21724
21753
  return new C({ name: s, level: o, properties: n });
21725
21754
  }
21726
21755
  static join(i) {
21727
- var r = i, { error: e } = r, t = gr(r, ["error"]);
21728
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21756
+ var r = i, { error: e } = r, t = Tr(r, ["error"]);
21757
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21729
21758
  return new C({ name: s, level: o, properties: n });
21730
21759
  }
21731
21760
  static publish({ devices: e, settings: t, error: i }) {
@@ -21771,7 +21800,7 @@ var k = class {
21771
21800
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
21772
21801
  if (!t && e.degradedAt instanceof Date) {
21773
21802
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
21774
- s = y(m({}, s), { duration: n, restoredAt: o });
21803
+ s = M(h({}, s), { duration: n, restoredAt: o });
21775
21804
  }
21776
21805
  return new C({ name: i, level: r, properties: s });
21777
21806
  }
@@ -21798,23 +21827,23 @@ var k = class {
21798
21827
  return new C({ name: "krisp.stop", level: 1 });
21799
21828
  }
21800
21829
  static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
21801
- return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ reason: i, type: t }, r) });
21830
+ return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
21802
21831
  }
21803
21832
  static eventNameFor(e, t) {
21804
21833
  return `${e}.${t ? "success" : "failed"}`;
21805
21834
  }
21806
21835
  static getPropertiesWithError(e, t) {
21807
21836
  let i = this.getErrorProperties(t);
21808
- return e = m(m({}, i), e), e;
21837
+ return e = h(h({}, i), e), e;
21809
21838
  }
21810
21839
  static getErrorProperties(e) {
21811
- return e ? e instanceof M ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
21840
+ return e ? e instanceof k ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
21812
21841
  }
21813
21842
  };
21814
- k.KEY_REQUESTED_AT = "requested_at", k.KEY_RESPONDED_AT = "responded_at";
21815
- var Er = class {
21843
+ y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21844
+ var Pr = class {
21816
21845
  constructor() {
21817
- this.storage = new me("hms-device-selection");
21846
+ this.storage = new Se("hms-device-selection");
21818
21847
  this.remember = false;
21819
21848
  this.TAG = "[HMSDeviceStorage]";
21820
21849
  }
@@ -21846,11 +21875,11 @@ var Er = class {
21846
21875
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21847
21876
  }
21848
21877
  };
21849
- var Y = new Er();
21850
- var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
21851
- var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
21852
- var Rr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Rr || {});
21853
- function ci(a2, e = 300) {
21878
+ var X = new Pr();
21879
+ var br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(br || {});
21880
+ var Ar = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ar || {});
21881
+ var Hr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Hr || {});
21882
+ function di(a2, e = 300) {
21854
21883
  let t;
21855
21884
  return function(...i) {
21856
21885
  clearTimeout(t), t = void 0;
@@ -21860,14 +21889,14 @@ function ci(a2, e = 300) {
21860
21889
  }, e);
21861
21890
  };
21862
21891
  }
21863
- var Cr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Cr || {});
21864
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
21865
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
21866
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
21867
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
21868
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
21869
- var Lr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Lr || {});
21870
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
21892
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
21893
+ var Os = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Os || {});
21894
+ var xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(xs || {});
21895
+ var Us = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Us || {});
21896
+ var Bs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Bs || {});
21897
+ var Vs = ((e) => (e.CAPTION = "caption", e))(Vs || {});
21898
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
21899
+ var Fs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Fs || {});
21871
21900
  var wr = class {
21872
21901
  constructor() {
21873
21902
  this.TAG = "[HMSIntersectionObserverWrapper]";
@@ -21895,8 +21924,8 @@ var wr = class {
21895
21924
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
21896
21925
  }
21897
21926
  };
21898
- var Ws = new wr();
21899
- var Dr = class {
21927
+ var Ks = new wr();
21928
+ var _r = class {
21900
21929
  constructor() {
21901
21930
  this.TAG = "[HMSResizeObserverWrapper]";
21902
21931
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -21909,7 +21938,7 @@ var Dr = class {
21909
21938
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
21910
21939
  };
21911
21940
  this.createObserver = () => {
21912
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ci(this.handleResize, 300)));
21941
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(di(this.handleResize, 300)));
21913
21942
  };
21914
21943
  this.handleResize = (e) => {
21915
21944
  var t;
@@ -21923,43 +21952,43 @@ var Dr = class {
21923
21952
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
21924
21953
  }
21925
21954
  };
21926
- var $s = new Dr();
21927
- var _r = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(_r || {});
21928
- var Nr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Nr || {});
21929
- var js = "https://event.100ms.live/v2/client/report";
21930
- var Js = "https://event-nonprod.100ms.live/v2/client/report";
21931
- var Pt = Math.pow(2, 31) - 1;
21932
- var rt = class {
21955
+ var qs = new _r();
21956
+ var Nr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Nr || {});
21957
+ var Or = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Or || {});
21958
+ var Qs = "https://event.100ms.live/v2/client/report";
21959
+ var zs = "https://event-nonprod.100ms.live/v2/client/report";
21960
+ var bt = Math.pow(2, 31) - 1;
21961
+ var st = class {
21933
21962
  };
21934
- rt.makePeerId = () => (0, import_uuid7.v4)();
21963
+ st.makePeerId = () => (0, import_uuid7.v4)();
21935
21964
  var F = (a2) => a2.room;
21936
- var xo = (a2) => a2.errors;
21937
- var rm = createSelector(xo, (a2) => a2.length === 0 ? null : a2.at(-1));
21938
- var sm = createSelector(F, (a2) => a2.id);
21939
- var Q = (a2) => a2.peers;
21940
- var Mi = (a2) => a2.messages.byID;
21941
- var ra = (a2) => a2.messages.allIDs;
21965
+ var Uo = (a2) => a2.errors;
21966
+ var dm = createSelector(Uo, (a2) => a2.length === 0 ? null : a2.at(-1));
21967
+ var lm = createSelector(F, (a2) => a2.id);
21968
+ var z = (a2) => a2.peers;
21969
+ var yi = (a2) => a2.messages.byID;
21970
+ var aa = (a2) => a2.messages.allIDs;
21942
21971
  var O = (a2) => a2.tracks;
21943
- var $r = (a2) => a2.appData;
21944
- var Uo = (a2) => a2.speakers;
21945
- var Oe = createSelector([F], (a2) => a2 && a2.isConnected);
21946
- var nm = createSelector([Oe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21947
- var Bo = (a2) => a2.hideLocalPeer;
21948
- var fe = createSelector([F, Q, Bo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21949
- var Vo = createSelector(O, (a2) => Object.values(a2));
21950
- var ie = createSelector(F, Q, (a2, e) => e[a2.localPeer]);
21951
- var Ee = createSelector(F, (a2) => a2.localPeer);
21952
- var cm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
21953
- var dm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
21954
- var ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
21955
- var X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
21956
- var Fo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21957
- var aa = createSelector([ne, X, Fo], (a2, e, t) => {
21972
+ var Kr = (a2) => a2.appData;
21973
+ var Bo = (a2) => a2.speakers;
21974
+ var xe = createSelector([F], (a2) => a2 && a2.isConnected);
21975
+ var hm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
21976
+ var Vo = (a2) => a2.hideLocalPeer;
21977
+ var ve = createSelector([F, z, Vo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
21978
+ var Fo = createSelector(O, (a2) => Object.values(a2));
21979
+ var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
21980
+ var Pe = createSelector(F, (a2) => a2.localPeer);
21981
+ var mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
21982
+ var Sm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
21983
+ var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
21984
+ var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
21985
+ var Go = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
21986
+ var na = createSelector([ce, Z, Go], (a2, e, t) => {
21958
21987
  let i = t ? [...t] : [];
21959
21988
  return a2 && i.unshift(a2), e && i.unshift(e), i;
21960
21989
  });
21961
- var lm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
21962
- var um = createSelector(Q, Uo, (a2, e) => {
21990
+ var gm = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
21991
+ var Tm = createSelector(z, Bo, (a2, e) => {
21963
21992
  let t = Object.entries(e).sort((i, r) => {
21964
21993
  var n, d;
21965
21994
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -21972,112 +22001,112 @@ var um = createSelector(Q, Uo, (a2, e) => {
21972
22001
  }
21973
22002
  return null;
21974
22003
  });
21975
- var qr = createSelector(ie, O, (a2, e) => {
21976
- let { video: t, audio: i } = Ue(e, a2);
22004
+ var jr = createSelector(re, O, (a2, e) => {
22005
+ let { video: t, audio: i } = Be(e, a2);
21977
22006
  return !!(t || i);
21978
22007
  });
21979
- var Go = createSelector(Q, O, (a2, e) => {
22008
+ var Wo = createSelector(z, O, (a2, e) => {
21980
22009
  let t;
21981
22010
  for (let i in a2) {
21982
- let r = a2[i], { video: s, audio: o } = Ue(e, r);
22011
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
21983
22012
  if (s)
21984
22013
  return r;
21985
22014
  o && !t && (t = r);
21986
22015
  }
21987
22016
  return t;
21988
22017
  });
21989
- var hm = createSelector(Go, (a2) => !!a2);
21990
- var mm = createSelector(Q, O, (a2, e) => {
22018
+ var vm = createSelector(Wo, (a2) => !!a2);
22019
+ var Mm = createSelector(z, O, (a2, e) => {
21991
22020
  for (let t in a2) {
21992
- let i = a2[t], { audio: r, video: s } = Ue(e, i);
22021
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
21993
22022
  if (!s && r)
21994
22023
  return i;
21995
22024
  }
21996
22025
  });
21997
- var Sm = createSelector(Q, O, (a2, e) => {
22026
+ var ym = createSelector(z, O, (a2, e) => {
21998
22027
  let t = [], i = [];
21999
22028
  for (let r in a2) {
22000
- let s = a2[r], { video: o, audio: n } = Ue(e, s);
22029
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
22001
22030
  o ? t.push(s) : n && i.push(s);
22002
22031
  }
22003
22032
  return t.concat(i);
22004
22033
  });
22005
- var gm = createSelector(Q, O, (a2, e) => {
22034
+ var km = createSelector(z, O, (a2, e) => {
22006
22035
  for (let t in e) {
22007
22036
  let i = e[t];
22008
- if (mt(i) && ht(i) && i.peerId)
22037
+ if (St(i) && mt(i) && i.peerId)
22009
22038
  return a2[i.peerId];
22010
22039
  }
22011
22040
  });
22012
- var Tm = createSelector(Q, O, (a2, e) => {
22041
+ var Em = createSelector(z, O, (a2, e) => {
22013
22042
  for (let t in e) {
22014
22043
  let i = e[t];
22015
- if (si(i) && i.peerId)
22044
+ if (ai(i) && i.peerId)
22016
22045
  return a2[i.peerId];
22017
22046
  }
22018
22047
  });
22019
- var fm = createSelector(Vo, (a2) => a2.filter(hs));
22020
- var vm = createSelector(ra, (a2) => a2.length);
22021
- var Mm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22022
- var Rt = createSelector(ra, Mi, (a2, e) => {
22048
+ var Pm = createSelector(Fo, (a2) => a2.filter(ms));
22049
+ var bm = createSelector(aa, (a2) => a2.length);
22050
+ var Am = createSelector(yi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22051
+ var Ht = createSelector(aa, yi, (a2, e) => {
22023
22052
  let t = [];
22024
22053
  return a2.forEach((i) => {
22025
22054
  t.push(e[i]);
22026
22055
  }), t;
22027
22056
  });
22028
- var Wo = createSelector(Rt, (a2) => a2.filter((e) => {
22057
+ var $o = createSelector(Ht, (a2) => a2.filter((e) => {
22029
22058
  var t;
22030
22059
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22031
22060
  }));
22032
- var ym = createSelector(Wo, (a2) => a2.filter((e) => !e.read).length);
22033
- var re = createSelector([F], (a2) => a2 && a2.roomState);
22034
- var na = createSelector(re, (a2) => a2 === "Preview");
22035
- var km = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22036
- var Em = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22037
- var ve = (a2) => a2.roles;
22038
- var Pm = createSelector([ve], (a2) => Object.keys(a2));
22039
- var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22040
- var $o = (a2) => {
22061
+ var Im = createSelector($o, (a2) => a2.filter((e) => !e.read).length);
22062
+ var se = createSelector([F], (a2) => a2 && a2.roomState);
22063
+ var da = createSelector(se, (a2) => a2 === "Preview");
22064
+ var Rm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22065
+ var Hm = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22066
+ var Me = (a2) => a2.roles;
22067
+ var Cm = createSelector([Me], (a2) => Object.keys(a2));
22068
+ var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22069
+ var Ko = (a2) => {
22041
22070
  var e;
22042
22071
  return (e = a2.preview) == null ? void 0 : e.asRole;
22043
22072
  };
22044
- var ca = createSelector([$o, ve], (a2, e) => a2 ? e[a2] : null);
22045
- var bm = createSelector([at], (a2) => {
22073
+ var la = createSelector([Ko, Me], (a2, e) => a2 ? e[a2] : null);
22074
+ var Lm = createSelector([ot], (a2) => {
22046
22075
  var e;
22047
22076
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22048
22077
  });
22049
- var da = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
22050
- var Am = createSelector(F, (a2) => a2.recording);
22051
- var Im = createSelector(F, (a2) => a2.rtmp);
22052
- var Rm = createSelector(F, (a2) => a2.hls);
22053
- var Hm = createSelector(F, (a2) => a2.transcriptions);
22054
- var Cm = createSelector(F, (a2) => a2.sessionId);
22055
- var Lm = createSelector(F, (a2) => a2.startedAt);
22056
- var wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22057
- var Dm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22058
- var _m = createSelector(F, (a2) => !!a2.isVBEnabled);
22059
- var Nm = createSelector(F, (a2) => a2.effectsKey);
22060
- var la = (a2) => a2.polls;
22061
- var Bm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22062
- var Ko = (a2) => a2.whiteboards;
22063
- var Vm = createSelector(Ko, (a2) => Object.values(a2)[0]);
22064
- var pa = (a2 = "audio") => (e) => e.playlist[a2].list;
22065
- var jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22066
- var ha = (a2 = "audio") => (e) => e.playlist[a2].progress;
22067
- var ma = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22068
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22069
- var ga = (a2 = "audio") => (e) => e.playlist[a2].volume;
22070
- var Ta = (a2 = "audio") => createSelector(pa(a2), (e) => Object.values(e));
22071
- var fa = (a2 = "audio") => createSelector(pa(a2), jr(a2), (e, t) => {
22078
+ var ua = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22079
+ var Dm = createSelector(F, (a2) => a2.recording);
22080
+ var wm = createSelector(F, (a2) => a2.rtmp);
22081
+ var _m = createSelector(F, (a2) => a2.hls);
22082
+ var Nm = createSelector(F, (a2) => a2.transcriptions);
22083
+ var Om = createSelector(F, (a2) => a2.sessionId);
22084
+ var xm = createSelector(F, (a2) => a2.startedAt);
22085
+ var Um = createSelector(F, (a2) => !!a2.isLargeRoom);
22086
+ var Bm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22087
+ var Vm = createSelector(F, (a2) => !!a2.isVBEnabled);
22088
+ var Fm = createSelector(F, (a2) => a2.effectsKey);
22089
+ var pa = (a2) => a2.polls;
22090
+ var Km = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22091
+ var qo = (a2) => a2.whiteboards;
22092
+ var qm = createSelector(qo, (a2) => Object.values(a2)[0]);
22093
+ var ma = (a2 = "audio") => (e) => e.playlist[a2].list;
22094
+ var Jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22095
+ var Sa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22096
+ var ga = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22097
+ var Ta = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22098
+ var fa = (a2 = "audio") => (e) => e.playlist[a2].volume;
22099
+ var va = (a2 = "audio") => createSelector(ma(a2), (e) => Object.values(e));
22100
+ var Ma = (a2 = "audio") => createSelector(ma(a2), Jr(a2), (e, t) => {
22072
22101
  if (t.id)
22073
22102
  return e[t.id];
22074
22103
  });
22075
- var va = { selection: jr("audio"), progress: ha("audio"), currentTime: ma("audio"), playbackRate: Sa("audio"), volume: ga("audio"), list: Ta("audio"), selectedItem: fa("audio") };
22076
- var Ma = { selection: jr("video"), progress: ha("video"), currentTime: ma("video"), playbackRate: Sa("video"), volume: ga("video"), list: Ta("video"), selectedItem: fa("video") };
22104
+ var ya = { selection: Jr("audio"), progress: Sa("audio"), currentTime: ga("audio"), playbackRate: Ta("audio"), volume: fa("audio"), list: va("audio"), selectedItem: Ma("audio") };
22105
+ var ka = { selection: Jr("video"), progress: Sa("video"), currentTime: ga("video"), playbackRate: Ta("video"), volume: fa("video"), list: va("video"), selectedItem: Ma("video") };
22077
22106
  function H(a2) {
22078
22107
  return (e) => (t) => a2(t, e);
22079
22108
  }
22080
- var Ht = "HMS-Store:";
22109
+ var Ct = "HMS-Store:";
22081
22110
  var b = class {
22082
22111
  static v(e, ...t) {
22083
22112
  this.log(0, e, ...t);
@@ -22107,23 +22136,23 @@ var b = class {
22107
22136
  if (!(this.level.valueOf() > e.valueOf()))
22108
22137
  switch (e) {
22109
22138
  case 0: {
22110
- console.log(Ht, ...t);
22139
+ console.log(Ct, ...t);
22111
22140
  break;
22112
22141
  }
22113
22142
  case 1: {
22114
- console.debug(Ht, ...t);
22143
+ console.debug(Ct, ...t);
22115
22144
  break;
22116
22145
  }
22117
22146
  case 2: {
22118
- console.info(Ht, ...t);
22147
+ console.info(Ct, ...t);
22119
22148
  break;
22120
22149
  }
22121
22150
  case 3: {
22122
- console.warn(Ht, ...t);
22151
+ console.warn(Ct, ...t);
22123
22152
  break;
22124
22153
  }
22125
22154
  case 6: {
22126
- console.error(Ht, ...t);
22155
+ console.error(Ct, ...t);
22127
22156
  break;
22128
22157
  }
22129
22158
  case 4: {
@@ -22144,133 +22173,133 @@ var b = class {
22144
22173
  }
22145
22174
  };
22146
22175
  b.level = 0;
22147
- var Jr = (a2, e) => e;
22148
- var Ct = (a2, e) => e;
22149
- var ya = (a2, e) => e;
22150
- var qo = (a2, e) => e;
22176
+ var Qr = (a2, e) => e;
22177
+ var Lt = (a2, e) => e;
22178
+ var Ea = (a2, e) => e;
22151
22179
  var jo = (a2, e) => e;
22152
- var z = createSelector([Q, Jr], (a2, e) => e ? a2[e] : null);
22153
- var Qr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22154
- var Jo = createSelector([O, Ct], (a2, e) => {
22180
+ var Jo = (a2, e) => e;
22181
+ var Y = createSelector([z, Qr], (a2, e) => e ? a2[e] : null);
22182
+ var zr = createSelector([O, Lt], (a2, e) => e ? a2[e] : null);
22183
+ var Qo = createSelector([O, Lt], (a2, e) => {
22155
22184
  if (!e)
22156
22185
  return null;
22157
22186
  let t = a2[e];
22158
22187
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22159
22188
  });
22160
- var Qo = createSelector([O, Ct], (a2, e) => {
22189
+ var zo = createSelector([O, Lt], (a2, e) => {
22161
22190
  if (!e)
22162
22191
  return null;
22163
22192
  let t = a2[e];
22164
22193
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22165
22194
  });
22166
- var zo = createSelector([O, Ct], (a2, e) => {
22195
+ var Yo = createSelector([O, Lt], (a2, e) => {
22167
22196
  if (!e)
22168
22197
  return null;
22169
22198
  let t = a2[e];
22170
22199
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22171
22200
  });
22172
- var Yo = createSelector([O, Ct], (a2, e) => {
22201
+ var Xo = createSelector([O, Lt], (a2, e) => {
22173
22202
  if (!e)
22174
22203
  return null;
22175
22204
  let t = a2[e];
22176
22205
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22177
22206
  });
22178
- var Xo = createSelector([la, jo], (a2, e) => e ? a2[e] : null);
22179
- var Z = H(z);
22180
- var Ym = H(createSelector([$r, qo], (a2, e) => {
22207
+ var Zo = createSelector([pa, Jo], (a2, e) => e ? a2[e] : null);
22208
+ var ee = H(Y);
22209
+ var rS = H(createSelector([Kr, jo], (a2, e) => {
22181
22210
  if (a2)
22182
22211
  return e ? a2[e] : a2;
22183
22212
  }));
22184
- function Xm(a2) {
22213
+ function sS(a2) {
22185
22214
  return (e) => {
22186
22215
  if (e.sessionStore)
22187
22216
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22188
22217
  };
22189
22218
  }
22190
- var eS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22191
- var tS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22192
- var yi = H(Qr);
22193
- var ka = H(Jo);
22194
- var iS = H(Qo);
22195
- var rS = H(zo);
22196
- var sS = H(Yo);
22197
- var Zo = H((a2, e) => {
22198
- let t = z(a2, e);
22219
+ var oS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22220
+ var nS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22221
+ var ki = H(zr);
22222
+ var Pa = H(Qo);
22223
+ var cS = H(zo);
22224
+ var dS = H(Yo);
22225
+ var lS = H(Xo);
22226
+ var en = H((a2, e) => {
22227
+ let t = Y(a2, e);
22199
22228
  if (t && t.videoTrack && t.videoTrack !== "")
22200
22229
  return a2.tracks[t.videoTrack];
22201
22230
  });
22202
- var en = H((a2, e) => {
22203
- let t = z(a2, e);
22231
+ var tn = H((a2, e) => {
22232
+ let t = Y(a2, e);
22204
22233
  if (t && t.audioTrack && t.audioTrack !== "")
22205
22234
  return a2.tracks[t.audioTrack];
22206
22235
  });
22207
- var oS = H((a2, e) => {
22208
- let t = z(a2, e);
22236
+ var pS = H((a2, e) => {
22237
+ let t = Y(a2, e);
22209
22238
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22210
22239
  });
22211
- var Ea = (a2, e) => e ? a2.speakers[e] : null;
22212
- var nS = H(createSelector(Ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22213
- var tn = (a2, e) => {
22214
- let t = en(e)(a2);
22215
- return Ea(a2, t == null ? void 0 : t.id);
22216
- };
22217
- var cS = H(createSelector(tn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22218
- var dS = H((a2, e) => {
22240
+ var ba = (a2, e) => e ? a2.speakers[e] : null;
22241
+ var hS = H(createSelector(ba, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22242
+ var rn = (a2, e) => {
22243
+ let t = tn(e)(a2);
22244
+ return ba(a2, t == null ? void 0 : t.id);
22245
+ };
22246
+ var mS = H(createSelector(rn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22247
+ var SS = H((a2, e) => {
22219
22248
  if (e)
22220
22249
  return a2.connectionQualities[e];
22221
22250
  });
22222
- var lS = H((a2, e) => {
22223
- let t = z(a2, e);
22251
+ var gS = H((a2, e) => {
22252
+ let t = Y(a2, e);
22224
22253
  if (t) {
22225
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
22254
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22226
22255
  return i ? a2.tracks[i] : void 0;
22227
22256
  }
22228
22257
  });
22229
- var uS = H(createSelector(O, z, (a2, e) => {
22258
+ var TS = H(createSelector(O, Y, (a2, e) => {
22230
22259
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22231
22260
  let r = a2[i];
22232
- return mt(r) && ht(r);
22261
+ return St(r) && mt(r);
22233
22262
  });
22234
22263
  return t ? a2[t] : void 0;
22235
22264
  }));
22236
- var pS = H(createSelector(O, z, (a2, e) => {
22265
+ var fS = H(createSelector(O, Y, (a2, e) => {
22237
22266
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22238
22267
  let r = a2[i];
22239
- return mt(r) && pt(r);
22268
+ return St(r) && ht(r);
22240
22269
  });
22241
22270
  return t ? a2[t] : void 0;
22242
22271
  }));
22243
- var hS = H(createSelector(O, z, (a2, e) => {
22272
+ var vS = H(createSelector(O, Y, (a2, e) => {
22244
22273
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22245
22274
  let r = a2[i];
22246
- return si(r) && pt(r);
22275
+ return ai(r) && ht(r);
22247
22276
  });
22248
22277
  return t ? a2[t] : void 0;
22249
22278
  }));
22250
- var Pa = H(createSelector(O, z, (a2, e) => Ue(a2, e)));
22251
- var ba = (a2) => createSelector(Pa(a2), (e) => e.audio);
22252
- var SS = H((a2, e) => {
22253
- let t = z(a2, e);
22254
- return je(a2, t == null ? void 0 : t.audioTrack);
22279
+ var Aa = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22280
+ var Ia = (a2) => createSelector(Aa(a2), (e) => e.audio);
22281
+ var yS = H((a2, e) => {
22282
+ let t = Y(a2, e);
22283
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22255
22284
  });
22256
- var gS = H((a2, e) => {
22257
- let t = z(a2, e);
22258
- return je(a2, t == null ? void 0 : t.videoTrack);
22285
+ var kS = H((a2, e) => {
22286
+ let t = Y(a2, e);
22287
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22259
22288
  });
22260
- var Aa = H((a2, e) => {
22289
+ var Ra = H((a2, e) => {
22261
22290
  if (e && a2.tracks[e])
22262
22291
  return a2.tracks[e].volume === 0;
22263
22292
  });
22264
- var TS = H((a2, e) => {
22265
- let t = z(a2, e);
22266
- return Aa(t == null ? void 0 : t.audioTrack)(a2);
22293
+ var ES = H((a2, e) => {
22294
+ let t = Y(a2, e);
22295
+ return Ra(t == null ? void 0 : t.audioTrack)(a2);
22267
22296
  });
22268
- var fS = H((a2, e) => {
22269
- let t = ba(e)(a2);
22270
- return Aa(t == null ? void 0 : t.id)(a2);
22297
+ var PS = H((a2, e) => {
22298
+ let t = Ia(e)(a2);
22299
+ return Ra(t == null ? void 0 : t.id)(a2);
22271
22300
  });
22272
- var Ia = H((a2, e) => {
22273
- let t = Qr(a2, e);
22301
+ var Ha = H((a2, e) => {
22302
+ let t = zr(a2, e);
22274
22303
  if (t) {
22275
22304
  if (t.type !== "audio") {
22276
22305
  b.w("Please pass audio track here");
@@ -22279,16 +22308,16 @@ var Ia = H((a2, e) => {
22279
22308
  return t.volume;
22280
22309
  }
22281
22310
  });
22282
- var vS = H((a2, e) => {
22283
- let t = z(a2, e);
22284
- return Ia(t == null ? void 0 : t.audioTrack)(a2);
22311
+ var bS = H((a2, e) => {
22312
+ let t = Y(a2, e);
22313
+ return Ha(t == null ? void 0 : t.audioTrack)(a2);
22285
22314
  });
22286
- var MS = H((a2, e) => {
22287
- let t = ba(e)(a2);
22288
- return Ia(t == null ? void 0 : t.id)(a2);
22315
+ var AS = H((a2, e) => {
22316
+ let t = Ia(e)(a2);
22317
+ return Ha(t == null ? void 0 : t.id)(a2);
22289
22318
  });
22290
- var yS = H((a2, e) => {
22291
- let t = Qr(a2, e);
22319
+ var IS = H((a2, e) => {
22320
+ let t = zr(a2, e);
22292
22321
  if (t) {
22293
22322
  if (t.type !== "video") {
22294
22323
  b.w("Please pass video track here");
@@ -22297,53 +22326,53 @@ var yS = H((a2, e) => {
22297
22326
  return t.layer;
22298
22327
  }
22299
22328
  });
22300
- var Ra = createSelector([Rt, Ee, Jr], (a2, e, t) => {
22329
+ var Ca = createSelector([Ht, Pe, Qr], (a2, e, t) => {
22301
22330
  if (t)
22302
22331
  return a2.filter((i) => {
22303
22332
  var r;
22304
22333
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22305
22334
  });
22306
22335
  });
22307
- var Ha = createSelector([Rt, ya], (a2, e) => {
22336
+ var La = createSelector([Ht, Ea], (a2, e) => {
22308
22337
  if (e)
22309
22338
  return a2.filter((t) => {
22310
22339
  var i, r;
22311
22340
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22312
22341
  });
22313
22342
  });
22314
- var rn = createSelector(Rt, (a2) => a2.filter((e) => {
22343
+ var sn = createSelector(Ht, (a2) => a2.filter((e) => {
22315
22344
  var t;
22316
22345
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22317
22346
  }));
22318
- var sn = createSelector([Ha, ya], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22319
- var an = createSelector([Ra, Jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22320
- var kS = createSelector(rn, (a2) => a2.filter((e) => !e.read).length);
22321
- var ES = H(Ra);
22322
- var PS = H(Ha);
22323
- var bS = H(sn);
22324
- var AS = H(an);
22325
- var Ca = H(Xo);
22326
- var US = createSelector([Q, O], (a2, e) => Object.values(a2).map((i) => {
22347
+ var an = createSelector([La, Ea], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22348
+ var on = createSelector([Ca, Qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22349
+ var RS = createSelector(sn, (a2) => a2.filter((e) => !e.read).length);
22350
+ var HS = H(Ca);
22351
+ var CS = H(La);
22352
+ var LS = H(an);
22353
+ var DS = H(on);
22354
+ var Da = H(Zo);
22355
+ var $S = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22327
22356
  var r;
22328
22357
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22329
22358
  }));
22330
- var on = (a2) => a2.roleChangeRequests[0] || null;
22331
- var BS = createSelector([on, Q, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22332
- var VS = createSelector([at], (a2) => St(a2));
22333
- var FS = createSelector([ca], (a2) => St(a2));
22334
- var cn = createSelector([X, O], (a2, e) => {
22359
+ var nn = (a2) => a2.roleChangeRequests[0] || null;
22360
+ var KS = createSelector([nn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22361
+ var qS = createSelector([ot], (a2) => gt(a2));
22362
+ var jS = createSelector([la], (a2) => gt(a2));
22363
+ var dn = createSelector([Z, O], (a2, e) => {
22335
22364
  let t = null;
22336
22365
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22337
22366
  });
22338
- var dn = createSelector([ne, O], (a2, e) => {
22367
+ var ln = createSelector([ce, O], (a2, e) => {
22339
22368
  let t = null;
22340
22369
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22341
22370
  });
22342
- var pn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(pn || {});
22343
- var es = class {
22371
+ var hn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(hn || {});
22372
+ var ts = class {
22344
22373
  constructor() {
22345
22374
  this.TAG = "[HTTPAnalyticsTransport]";
22346
- this.failedEvents = new me("client-events");
22375
+ this.failedEvents = new Se("client-events");
22347
22376
  this.isConnected = true;
22348
22377
  this.env = null;
22349
22378
  this.websocketURL = "";
@@ -22359,7 +22388,7 @@ var es = class {
22359
22388
  this.addEventToStorage(e);
22360
22389
  return;
22361
22390
  }
22362
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? js : Js;
22391
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Qs : zs;
22363
22392
  fetch(i, { method: "POST", headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.metadata.token}`, user_agent_v2: e.metadata.userAgent }, body: JSON.stringify(t) }).then((r) => {
22364
22393
  if (r.status === 401) {
22365
22394
  this.removeFromStorage(e);
@@ -22385,8 +22414,8 @@ var es = class {
22385
22414
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22386
22415
  }
22387
22416
  };
22388
- var be = new es();
22389
- var Vt = class {
22417
+ var Ae = new ts();
22418
+ var Ft = class {
22390
22419
  static handleError(e) {
22391
22420
  if (e.status === 404)
22392
22421
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22396,14 +22425,14 @@ var Vt = class {
22396
22425
  static sendFeedback(s) {
22397
22426
  return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
22398
22427
  l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
22399
- let o = new URL("v2/client/feedback", t), n = y(m({}, i), { payload: r });
22428
+ let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
22400
22429
  try {
22401
22430
  let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
22402
22431
  try {
22403
22432
  this.handleError(d);
22404
22433
  return;
22405
22434
  } catch (u) {
22406
- throw l.e(this.TAG, "error", u.message, d.status), u instanceof M ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
22435
+ throw l.e(this.TAG, "error", u.message, d.status), u instanceof k ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
22407
22436
  }
22408
22437
  } catch (d) {
22409
22438
  let u = d;
@@ -22412,67 +22441,67 @@ var Vt = class {
22412
22441
  });
22413
22442
  }
22414
22443
  };
22415
- Vt.TAG = "[FeedbackService]";
22416
- var ts = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(ts || {});
22417
- var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22418
- var sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
22419
- var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
22444
+ Ft.TAG = "[FeedbackService]";
22445
+ var is = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(is || {});
22446
+ var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22447
+ var ar = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ar || {});
22448
+ var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22420
22449
  var wn = (a2) => a2.localPeer.id;
22421
- var Dn = (a2) => a2.localPeer.audioTrack;
22422
- var _n = (a2) => a2.localPeer.videoTrack;
22423
- var Nn = (a2, e) => e;
22424
- var Za = (a2, e) => e;
22425
- var On = (a2) => a2.remoteTrackStats;
22426
- var eo = (a2) => a2.peerStats;
22427
- var as = (a2) => a2.localTrackStats;
22428
- var Ie = createSelector([eo, wn], (a2, e) => a2[e]);
22429
- var xn = createSelector(Ie, (a2) => {
22450
+ var _n = (a2) => a2.localPeer.audioTrack;
22451
+ var Nn = (a2) => a2.localPeer.videoTrack;
22452
+ var On = (a2, e) => e;
22453
+ var to = (a2, e) => e;
22454
+ var xn = (a2) => a2.remoteTrackStats;
22455
+ var io = (a2) => a2.peerStats;
22456
+ var os = (a2) => a2.localTrackStats;
22457
+ var Re = createSelector([io, wn], (a2, e) => a2[e]);
22458
+ var Un = createSelector(Re, (a2) => {
22430
22459
  var e;
22431
22460
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22432
22461
  });
22433
- var Un = createSelector(Ie, (a2) => {
22462
+ var Bn = createSelector(Re, (a2) => {
22434
22463
  var e;
22435
22464
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22436
22465
  });
22437
- var Bn = createSelector(Ie, (a2) => {
22466
+ var Vn = createSelector(Re, (a2) => {
22438
22467
  var e;
22439
22468
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22440
22469
  });
22441
- var Vn = createSelector(Ie, (a2) => {
22470
+ var Fn = createSelector(Re, (a2) => {
22442
22471
  var e;
22443
22472
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22444
22473
  });
22445
- var Fn = createSelector(Ie, (a2) => {
22474
+ var Gn = createSelector(Re, (a2) => {
22446
22475
  var e;
22447
22476
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22448
22477
  });
22449
- var Gn = createSelector(Ie, (a2) => {
22478
+ var Wn = createSelector(Re, (a2) => {
22450
22479
  var e;
22451
22480
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22452
22481
  });
22453
- var Wn = createSelector(Ie, (a2) => {
22482
+ var $n = createSelector(Re, (a2) => {
22454
22483
  var e;
22455
22484
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22456
22485
  });
22457
- var $n = createSelector(Ie, (a2) => {
22486
+ var Kn = createSelector(Re, (a2) => {
22458
22487
  var e;
22459
22488
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22460
22489
  });
22461
- var Kn = createSelector([eo, Nn], (a2, e) => e ? a2[e] : void 0);
22462
- var qn = createSelector([On, Za], (a2, e) => e ? a2[e] : void 0);
22463
- var os = createSelector([as, Za], (a2, e) => e ? a2[e] : void 0);
22464
- var jn = H(Kn);
22490
+ var qn = createSelector([io, On], (a2, e) => e ? a2[e] : void 0);
22491
+ var jn = createSelector([xn, to], (a2, e) => e ? a2[e] : void 0);
22492
+ var ns = createSelector([os, to], (a2, e) => e ? a2[e] : void 0);
22465
22493
  var Jn = H(qn);
22466
- var Qn = createSelector([as, Dn], (a2, e) => {
22494
+ var Qn = H(jn);
22495
+ var zn = createSelector([os, _n], (a2, e) => {
22467
22496
  var t;
22468
22497
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22469
22498
  });
22470
- var zn = H(createSelector(os, (a2) => a2 == null ? void 0 : a2[0]));
22471
- var Yn = createSelector([as, _n], (a2, e) => {
22499
+ var Yn = H(createSelector(ns, (a2) => a2 == null ? void 0 : a2[0]));
22500
+ var Xn = createSelector([os, Nn], (a2, e) => {
22472
22501
  var t;
22473
22502
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22474
22503
  });
22475
- var Xn = H(createSelector(os, (a2) => a2));
22504
+ var Zn = H(createSelector(ns, (a2) => a2));
22476
22505
 
22477
22506
  // src/Prebuilt/components/Header/StreamActions.tsx
22478
22507
  var import_react_sdk41 = require("@100mslive/react-sdk");
@@ -22581,7 +22610,7 @@ var RecordingStatus = () => {
22581
22610
  };
22582
22611
  var RecordingPauseStatus = () => {
22583
22612
  const recording = (0, import_react_sdk41.useHMSStore)(import_react_sdk41.selectRecordingState);
22584
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22613
+ if (recording.hls && recording.hls.state === Os.PAUSED) {
22585
22614
  return /* @__PURE__ */ import_react88.default.createElement(
22586
22615
  Tooltip,
22587
22616
  {
@@ -22870,7 +22899,7 @@ init_define_process_env();
22870
22899
  var import_react92 = require("react");
22871
22900
  var import_react_sdk44 = require("@100mslive/react-sdk");
22872
22901
  var useUnreadPollQuizPresent = () => {
22873
- const localPeerID = (0, import_react_sdk44.useHMSStore)(Ee);
22902
+ const localPeerID = (0, import_react_sdk44.useHMSStore)(Pe);
22874
22903
  const notification = (0, import_react_sdk44.useHMSNotifications)(import_react_sdk44.HMSNotificationTypes.POLL_STARTED);
22875
22904
  const [unreadPollQuiz, setUnreadPollQuiz] = (0, import_react92.useState)(false);
22876
22905
  (0, import_react92.useEffect)(() => {
@@ -27331,7 +27360,7 @@ var Chat = () => {
27331
27360
  const listRef = (0, import_react153.useRef)(null);
27332
27361
  const hmsActions = (0, import_react_sdk74.useHMSActions)();
27333
27362
  const vanillaStore = (0, import_react_sdk74.useHMSVanillaStore)();
27334
- const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(Xm("chatState" /* CHAT_STATE */)) || {};
27363
+ const { enabled: isChatEnabled = true } = (0, import_react_sdk74.useHMSStore)(sS("chatState" /* CHAT_STATE */)) || {};
27335
27364
  const isMobile = (0, import_react_use27.useMedia)(config.media.md);
27336
27365
  const isMobileHLSStream = useMobileHLSStream();
27337
27366
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27421,7 +27450,7 @@ var NewMessageIndicator = ({
27421
27450
  scrollToBottom,
27422
27451
  listRef
27423
27452
  }) => {
27424
- const unreadCount = (0, import_react_sdk74.useHMSStore)(Mm);
27453
+ const unreadCount = (0, import_react_sdk74.useHMSStore)(Am);
27425
27454
  if (!unreadCount || !listRef.current) {
27426
27455
  return null;
27427
27456
  }
@@ -28378,7 +28407,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28378
28407
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28379
28408
  const hmsActions = (0, import_react_sdk82.useHMSActions)();
28380
28409
  const localPeer = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectLocalPeer);
28381
- const role = (0, import_react_sdk82.useHMSStore)(at);
28410
+ const role = (0, import_react_sdk82.useHMSStore)(ot);
28382
28411
  const isVideoOn = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLocalVideoEnabled);
28383
28412
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28384
28413
  const trackSelector = (0, import_react_sdk82.selectVideoTrackByID)(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28387,12 +28416,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28387
28416
  const roomState = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectRoomState);
28388
28417
  const isLargeRoom = (0, import_react_sdk82.useHMSStore)(import_react_sdk82.selectIsLargeRoom);
28389
28418
  const isEffectsSupported = VBHandler.isEffectsSupported();
28390
- const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Dm);
28391
- const effectsKey = (0, import_react_sdk82.useHMSStore)(Nm);
28419
+ const isEffectsEnabled = (0, import_react_sdk82.useHMSStore)(Bm);
28420
+ const effectsKey = (0, import_react_sdk82.useHMSStore)(Fm);
28392
28421
  const isMobile = (0, import_react_use33.useMedia)(config.media.md);
28393
28422
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28394
28423
  const isPluginAdded = (0, import_react_sdk82.useHMSStore)((0, import_react_sdk82.selectIsLocalVideoPluginPresent)(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28395
- const background = (0, import_react_sdk82.useHMSStore)(Ym(APP_DATA.background));
28424
+ const background = (0, import_react_sdk82.useHMSStore)(rS(APP_DATA.background));
28396
28425
  const mediaList = backgroundMedia.map((media) => media.url || "");
28397
28426
  const pluginLoadingRef = (0, import_react163.useRef)(false);
28398
28427
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -29386,7 +29415,7 @@ var Grid = import_react175.default.forwardRef(
29386
29415
  justifyContent: "center",
29387
29416
  flexFlow: "row wrap",
29388
29417
  minHeight: 0,
29389
- "@md": { gap: edgeToEdge ? 0 : "$4" }
29418
+ "@lg": { gap: edgeToEdge ? 0 : "$4" }
29390
29419
  }
29391
29420
  },
29392
29421
  tiles == null ? void 0 : tiles.map((tile) => {
@@ -29460,14 +29489,14 @@ var useTileLayout = ({
29460
29489
  const matrix = new Array(maxRows).fill(null).map((_, i) => {
29461
29490
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
29462
29491
  const rowElements = [];
29463
- for (let j2 = 0; j2 < numCols; j2++) {
29492
+ for (let j = 0; j < numCols; j++) {
29464
29493
  if (index < page.length) {
29465
29494
  rowElements.push(page[index++]);
29466
29495
  }
29467
29496
  }
29468
29497
  return rowElements;
29469
29498
  });
29470
- const gap = edgeToEdge ? 0 : 8;
29499
+ const gap = edgeToEdge && isMobile ? 0 : 8;
29471
29500
  const maxHeight = height - (maxRows - 1) * gap;
29472
29501
  const maxRowHeight = maxHeight / matrix.length;
29473
29502
  const aspectRatios = isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3) ? aspectRatioConfig.mobile : aspectRatioConfig.default;
@@ -29478,10 +29507,10 @@ var useTileLayout = ({
29478
29507
  tileHeight = maxRowHeight;
29479
29508
  } else {
29480
29509
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
29481
- for (const h of calcHeights) {
29482
- if (h < maxRowHeight) {
29483
- if (tileHeight < h) {
29484
- tileHeight = h;
29510
+ for (const h2 of calcHeights) {
29511
+ if (h2 < maxRowHeight) {
29512
+ if (tileHeight < h2) {
29513
+ tileHeight = h2;
29485
29514
  }
29486
29515
  }
29487
29516
  }
@@ -29499,8 +29528,8 @@ var useTileLayout = ({
29499
29528
  }
29500
29529
  }
29501
29530
  for (let i = 0; i < row.length; i++) {
29502
- row[i].width = tileWidth - gap / maxCols * (maxCols - 1);
29503
- row[i].height = tileHeight - gap / maxRows * (maxRows - 1);
29531
+ row[i].width = tileWidth;
29532
+ row[i].height = tileHeight;
29504
29533
  }
29505
29534
  }
29506
29535
  }
@@ -32883,7 +32912,7 @@ var ErrorBoundary = class extends import_react213.Component {
32883
32912
  left: 0
32884
32913
  }
32885
32914
  },
32886
- /* @__PURE__ */ import_react213.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react213.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react213.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react213.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react213.default.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
32915
+ /* @__PURE__ */ import_react213.default.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ import_react213.default.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ import_react213.default.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ import_react213.default.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ import_react213.default.createElement("a", { href: "https://dashboard.100ms.live/dashboard", target: "_blank", rel: "noreferrer" }, "Dashboard")),
32887
32916
  /* @__PURE__ */ import_react213.default.createElement(Flex, null, /* @__PURE__ */ import_react213.default.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ import_react213.default.createElement(
32888
32917
  Button,
32889
32918
  {
@@ -33764,15 +33793,17 @@ function DeviceInUseError() {
33764
33793
  if (!error || error.code !== 3003) {
33765
33794
  return;
33766
33795
  }
33796
+ const errorTrackExceptionType = error == null ? void 0 : error.trackType;
33797
+ const hasAudio = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.AUDIO;
33798
+ const hasVideo = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.VIDEO;
33799
+ const hasAudioVideo = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.AUDIO_VIDEO;
33800
+ const hasScreen = errorTrackExceptionType === import_react_sdk113.HMSTrackExceptionTrackType.SCREEN;
33767
33801
  const errorMessage = error == null ? void 0 : error.message;
33768
33802
  ToastManager.addToast({
33769
33803
  title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
33770
33804
  action: /* @__PURE__ */ import_react225.default.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
33771
33805
  });
33772
- const hasAudio = errorMessage.includes("audio");
33773
- const hasVideo = errorMessage.includes("video");
33774
- const hasScreen = errorMessage.includes("screen");
33775
- if (hasAudio && hasVideo) {
33806
+ if (hasAudioVideo) {
33776
33807
  setDeviceType("camera and microphone");
33777
33808
  } else if (hasAudio) {
33778
33809
  setDeviceType("microphone");
@@ -34168,8 +34199,8 @@ var import_react230 = require("react");
34168
34199
  var import_react_sdk118 = require("@100mslive/react-sdk");
34169
34200
  var MessageNotifications = () => {
34170
34201
  var _a7, _b7;
34171
- const notification = (0, import_react_sdk118.useHMSNotifications)(fr.NEW_MESSAGE);
34172
- const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(qr);
34202
+ const notification = (0, import_react_sdk118.useHMSNotifications)(vr.NEW_MESSAGE);
34203
+ const amIScreenSharing = (0, import_react_sdk118.useHMSStore)(jr);
34173
34204
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34174
34205
  const { pipWindow } = usePIPWindow();
34175
34206
  const { showNotification } = (0, import_react_sdk118.useAwayNotifications)();
@@ -34248,11 +34279,12 @@ var PermissionErrorModal = ({ error }) => {
34248
34279
  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"))) {
34249
34280
  return;
34250
34281
  }
34251
- const errorMessage = error == null ? void 0 : error.message;
34252
- const hasAudio = errorMessage.includes("audio");
34253
- const hasVideo = errorMessage.includes("video");
34254
- const hasScreen = errorMessage.includes("screen");
34255
- if (hasAudio && hasVideo) {
34282
+ const errorTrackExceptionType = error == null ? void 0 : error.trackType;
34283
+ const hasAudio = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.AUDIO;
34284
+ const hasVideo = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.VIDEO;
34285
+ const hasAudioVideo = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.AUDIO_VIDEO;
34286
+ const hasScreen = errorTrackExceptionType === import_react_sdk120.HMSTrackExceptionTrackType.SCREEN;
34287
+ if (hasAudioVideo) {
34256
34288
  setDeviceType("camera and microphone");
34257
34289
  } else if (hasAudio) {
34258
34290
  setDeviceType("microphone");
@@ -34991,7 +35023,6 @@ var HMSPrebuilt = import_react250.default.forwardRef(
34991
35023
  (0, import_react250.useEffect)(() => {
34992
35024
  return () => {
34993
35025
  var _a8;
34994
- VBHandler.reset();
34995
35026
  (_a8 = reactiveStore == null ? void 0 : reactiveStore.current) == null ? void 0 : _a8.hmsActions.leave();
34996
35027
  };
34997
35028
  }, []);