@100mslive/roomkit-react 0.3.3-alpha.6 → 0.3.3-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a2, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a2, prop, b[prop]);
12
+ var __spreadValues = (a2, b2) => {
13
+ for (var prop in b2 || (b2 = {}))
14
+ if (__hasOwnProp.call(b2, prop))
15
+ __defNormalProp(a2, prop, b2[prop]);
16
16
  if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a2, prop, b[prop]);
17
+ for (var prop of __getOwnPropSymbols(b2)) {
18
+ if (__propIsEnum.call(b2, prop))
19
+ __defNormalProp(a2, prop, b2[prop]);
20
20
  }
21
21
  return a2;
22
22
  };
23
- var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
23
+ var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
24
24
  var __objRest = (source, exclude) => {
25
25
  var target = {};
26
26
  for (var prop in source)
@@ -43,13 +43,13 @@ var __export = (target, all) => {
43
43
  for (var name in all)
44
44
  __defProp(target, name, { get: all[name], enumerable: true });
45
45
  };
46
- var __copyProps = (to2, from, except, desc) => {
46
+ var __copyProps = (to, from, except, desc) => {
47
47
  if (from && typeof from === "object" || typeof from === "function") {
48
48
  for (let key of __getOwnPropNames(from))
49
- if (!__hasOwnProp.call(to2, key) && key !== except)
50
- __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ if (!__hasOwnProp.call(to, key) && key !== except)
50
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
51
51
  }
52
- return to2;
52
+ return to;
53
53
  };
54
54
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
55
55
  // If the importer is in node compatibility mode or this is not an ESM
@@ -106,7 +106,7 @@ var __async = (__this, __arguments, generator) => {
106
106
  var define_process_env_default;
107
107
  var init_define_process_env = __esm({
108
108
  "<define:process.env>"() {
109
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a3671f95-f7e6-4323-bb74-510e2ca9eefc", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.3-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a3671f95-f7e6-4323-bb74-510e2ca9eefc", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.3-alpha.6", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.8", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/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.0-alpha.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:20495", 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__rollup_plugin_commonjs: "^21.0.3", 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.3-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8360031943", 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: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", 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: "925e27a959d523c0d8dd7c4ff1bb9b1108ad9d0e072f2407889f0132e59f8cca", 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--1710942571293-0.833777212666001:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942571102-0.5631544825120667:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942549183-0.6741137935433392:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1710942549007-0.8726426741091147:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_ac78bbdf-80eb-48f7-9a6a-19c8f20e64d2", INVOCATION_ID: "974e21634b3a47a399f36df7990c13cb", 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: "488", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 18", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "b096cea8bf439c4d3e99d27b4d758d87f54c9512", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc", 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_a3671f95-f7e6-4323-bb74-510e2ca9eefc", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a3671f95-f7e6-4323-bb74-510e2ca9eefc" };
109
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_8fb96173-0d45-4305-bd85-934160ad1cd6", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_devDependencies_rollup: "^2.70.1", 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", 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.19.1 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_devDependencies__rollup_plugin_node_resolve: "^13.1.3", 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.3-alpha.8", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8fb96173-0d45-4305-bd85-934160ad1cd6", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.19.1/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.3-alpha.8", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.7", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "^1.2.8", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.6", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/26.2.11394342", 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: "594", 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_devDependencies__rollup_plugin_image: "^3.0.2", npm_package_keywords_1: "react", GOROOT_1_20_X64: "/opt/hostedtoolcache/go/1.20.14/x64", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.8/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20240317.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.1/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.0-alpha.5", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "8:18850", 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__rollup_plugin_commonjs: "^21.0.3", 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.3-alpha.8", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", npm_package_devDependencies__rollup_plugin_json: "^6.0.0", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "8371921476", 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: "c7653c282d747c8e4d34c0e0fcef3eead588e293", 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: "9cf85c83c9ade4e2a308faac5651c92ab1444600423e7ab80d301bdf435eddbc", 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--1711010091244-0.5209288521169153:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010091050-0.2487395322403736:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010069170-0.8567040953600717:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1711010068993-0.05934038122621077:/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.19.1/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.19.1/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.19.1/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_aba7d4c8-3187-44ea-a365-3e2b676fcb0e", INVOCATION_ID: "767834f289cc4fcb8e7f4dab365d12d1", 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: "490", 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", npm_package_devDependencies__rollup_plugin_typescript: "^8.3.1", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_devDependencies_rollup_plugin_terser: "^7.0.2", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 247", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", 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_devDependencies_rollup_plugin_import_css: "^3.3.1", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.3-alpha.8", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.3-alpha.8", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", npm_package_devDependencies_rollup_plugin_esbuild: "^5.0.0", GITHUB_SHA: "c7653c282d747c8e4d34c0e0fcef3eead588e293", 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_8fb96173-0d45-4305-bd85-934160ad1cd6", 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_8fb96173-0d45-4305-bd85-934160ad1cd6", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/25.2.9519653", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.154/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/25.2.9519653", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_8fb96173-0d45-4305-bd85-934160ad1cd6" };
110
110
  }
111
111
  });
112
112
 
@@ -801,7 +801,7 @@ var require_lodash = __commonJS({
801
801
  return string.match(reUnicodeWord) || [];
802
802
  }
803
803
  var runInContext = function runInContext2(context) {
804
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
804
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
805
805
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
806
806
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
807
807
  var coreJsData = context["__core-js_shared__"];
@@ -4148,7 +4148,7 @@ var require_lodash = __commonJS({
4148
4148
  function eq(value, other) {
4149
4149
  return value === other || value !== value && other !== other;
4150
4150
  }
4151
- var gt = createRelationalOperation(baseGt);
4151
+ var gt2 = createRelationalOperation(baseGt);
4152
4152
  var gte = createRelationalOperation(function(value, other) {
4153
4153
  return value >= other;
4154
4154
  });
@@ -5287,7 +5287,7 @@ var require_lodash = __commonJS({
5287
5287
  lodash.forOwn = forOwn;
5288
5288
  lodash.forOwnRight = forOwnRight;
5289
5289
  lodash.get = get;
5290
- lodash.gt = gt;
5290
+ lodash.gt = gt2;
5291
5291
  lodash.gte = gte;
5292
5292
  lodash.has = has;
5293
5293
  lodash.hasIn = hasIn;
@@ -5575,17 +5575,17 @@ var require_lodash = __commonJS({
5575
5575
  }
5576
5576
  return lodash;
5577
5577
  };
5578
- var _2 = runInContext();
5578
+ var _ = runInContext();
5579
5579
  if (typeof define == "function" && typeof define.amd == "object" && define.amd) {
5580
- root._ = _2;
5580
+ root._ = _;
5581
5581
  define(function() {
5582
- return _2;
5582
+ return _;
5583
5583
  });
5584
5584
  } else if (freeModule) {
5585
- (freeModule.exports = _2)._ = _2;
5586
- freeExports._ = _2;
5585
+ (freeModule.exports = _)._ = _;
5586
+ freeExports._ = _;
5587
5587
  } else {
5588
- root._ = _2;
5588
+ root._ = _;
5589
5589
  }
5590
5590
  }).call(exports);
5591
5591
  }
@@ -7670,12 +7670,12 @@ var require_sdp = __commonJS({
7670
7670
  return parsed;
7671
7671
  };
7672
7672
  SDPUtils2.writeRtpMap = function(codec) {
7673
- let pt = codec.payloadType;
7673
+ let pt2 = codec.payloadType;
7674
7674
  if (codec.preferredPayloadType !== void 0) {
7675
- pt = codec.preferredPayloadType;
7675
+ pt2 = codec.preferredPayloadType;
7676
7676
  }
7677
7677
  const channels = codec.channels || codec.numChannels || 1;
7678
- return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7678
+ return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7679
7679
  };
7680
7680
  SDPUtils2.parseExtmap = function(line) {
7681
7681
  const parts = line.substring(9).split(" ");
@@ -7701,9 +7701,9 @@ var require_sdp = __commonJS({
7701
7701
  };
7702
7702
  SDPUtils2.writeFmtp = function(codec) {
7703
7703
  let line = "";
7704
- let pt = codec.payloadType;
7704
+ let pt2 = codec.payloadType;
7705
7705
  if (codec.preferredPayloadType !== void 0) {
7706
- pt = codec.preferredPayloadType;
7706
+ pt2 = codec.preferredPayloadType;
7707
7707
  }
7708
7708
  if (codec.parameters && Object.keys(codec.parameters).length) {
7709
7709
  const params = [];
@@ -7714,7 +7714,7 @@ var require_sdp = __commonJS({
7714
7714
  params.push(param);
7715
7715
  }
7716
7716
  });
7717
- line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7717
+ line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7718
7718
  }
7719
7719
  return line;
7720
7720
  };
@@ -7727,13 +7727,13 @@ var require_sdp = __commonJS({
7727
7727
  };
7728
7728
  SDPUtils2.writeRtcpFb = function(codec) {
7729
7729
  let lines = "";
7730
- let pt = codec.payloadType;
7730
+ let pt2 = codec.payloadType;
7731
7731
  if (codec.preferredPayloadType !== void 0) {
7732
- pt = codec.preferredPayloadType;
7732
+ pt2 = codec.preferredPayloadType;
7733
7733
  }
7734
7734
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7735
7735
  codec.rtcpFeedback.forEach((fb) => {
7736
- lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7736
+ lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7737
7737
  });
7738
7738
  }
7739
7739
  return lines;
@@ -7861,21 +7861,21 @@ var require_sdp = __commonJS({
7861
7861
  const mline = lines[0].split(" ");
7862
7862
  description.profile = mline[2];
7863
7863
  for (let i = 3; i < mline.length; i++) {
7864
- const pt = mline[i];
7864
+ const pt2 = mline[i];
7865
7865
  const rtpmapline = SDPUtils2.matchPrefix(
7866
7866
  mediaSection,
7867
- "a=rtpmap:" + pt + " "
7867
+ "a=rtpmap:" + pt2 + " "
7868
7868
  )[0];
7869
7869
  if (rtpmapline) {
7870
7870
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7871
7871
  const fmtps = SDPUtils2.matchPrefix(
7872
7872
  mediaSection,
7873
- "a=fmtp:" + pt + " "
7873
+ "a=fmtp:" + pt2 + " "
7874
7874
  );
7875
7875
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7876
7876
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7877
7877
  mediaSection,
7878
- "a=rtcp-fb:" + pt + " "
7878
+ "a=rtcp-fb:" + pt2 + " "
7879
7879
  ).map(SDPUtils2.parseRtcpFb);
7880
7880
  description.codecs.push(codec);
7881
7881
  switch (codec.name.toUpperCase()) {
@@ -11051,7 +11051,7 @@ import { selectTrackAudioByID, useHMSVanillaStore } from "@100mslive/react-sdk";
11051
11051
  var audio_level_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABABAMAAAAHc7SNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAtUExURQAAAP///////////////////////////////////////////////////////6FIq5sAAAAOdFJOUwA/QJqbnJ2euLnc3d7+2IFKrQAAAa9JREFUaN7dmcFRxDAMRXNgW4AbV24ZSkgrlAAFUAqlpITtgT0QnB22BnY3iWXHSlYz5H/NoJNO8bP8JTlyVW1k923/MveYdnc623PuUe3jsux37tEDcN24eFR7HJb9TD2qvQ/LfqUexR7a41Xx7bDsMfWo2j+NlnpU7TsBiOKdAOqoeCcAUTwFYFK8pn0GgFLttWVxAEq1pwJo1Z4KoFV7KoBW7YEAT0uK729pfxuAZcX/3Fr2TwAx05cVDwWIu11RPBQg7lZ0XlR7JIDsdkXxCIDp5GXf2v0GBxBP3pTfAIB48qb83h7AWtlhANbKDgOwVnYYgLWywwCsn/u/AO5HMIqwcwOovdNwLESNG8BQioNfKa52YwBsakC04/MF9C1Rw4HdjhU1SCyKqOCvZCGLhXgMgKgGiUWRI9hr+aSG+bU8sP4LyliIxwW4xOI1j8pKZlB/Tjt794ANpKzdAzOgaOzdAzKiCVpmkACWM4MEIFVCyQzfQWXnPao9eA+rG+dxfXB8L1jNB4pN+bCfd4re59Gqoz9alflQ+zzb7ZROwTWlUziEIO8UZCs7hc1+AbiVW6XSE8knAAAAAElFTkSuQmCC";
11052
11052
 
11053
11053
  // src/AudioLevel/AudioLevel.tsx
11054
- var positionValues = new Array(101).fill(0).reduce((acc, _2, index) => {
11054
+ var positionValues = new Array(101).fill(0).reduce((acc, _, index) => {
11055
11055
  acc[index] = Math.round(index / 100 * 4) / 4;
11056
11056
  return acc;
11057
11057
  }, {});
@@ -12418,12 +12418,12 @@ var formatTime = (timeInSeconds) => {
12418
12418
  const hour = hours !== 0 ? `${hours < 10 ? "0" : ""}${hours}:` : "";
12419
12419
  return `${hour}${minutes < 10 ? "0" : ""}${minutes}:${seconds < 10 ? "0" : ""}${seconds}`;
12420
12420
  };
12421
- var compareArrays = (a2, b) => {
12422
- if (a2.length !== b.length)
12421
+ var compareArrays = (a2, b2) => {
12422
+ if (a2.length !== b2.length)
12423
12423
  return false;
12424
12424
  else {
12425
12425
  for (var i = 0; i < a2.length; i++) {
12426
- if (a2[i] !== b[i]) {
12426
+ if (a2[i] !== b2[i]) {
12427
12427
  return false;
12428
12428
  }
12429
12429
  }
@@ -12892,6 +12892,7 @@ import {
12892
12892
  selectAppData as selectAppData9,
12893
12893
  selectIsConnectedToRoom as selectIsConnectedToRoom10,
12894
12894
  selectRoomState as selectRoomState7,
12895
+ useAVToggle as useAVToggle7,
12895
12896
  useHMSActions as useHMSActions47,
12896
12897
  useHMSStore as useHMSStore84
12897
12898
  } from "@100mslive/react-sdk";
@@ -12901,6 +12902,7 @@ init_define_process_env();
12901
12902
  import React77, { useEffect as useEffect20 } from "react";
12902
12903
  import { useMedia as useMedia11 } from "react-use";
12903
12904
  import { Chat_ChatState } from "@100mslive/types-prebuilt/elements/chat";
12905
+ import { useAVToggle as useAVToggle4 } from "@100mslive/react-sdk";
12904
12906
 
12905
12907
  // src/Prebuilt/components/AudioVideoToggle.tsx
12906
12908
  init_define_process_env();
@@ -16068,7 +16070,7 @@ var MuteAllModal = ({
16068
16070
  return /* @__PURE__ */ React51.createElement(Dialog.Root, { defaultOpen: true, onOpenChange }, /* @__PURE__ */ React51.createElement(DialogContent, { title: "Mute/Unmute Remote Tracks", Icon: MicOffIcon2 }, /* @__PURE__ */ React51.createElement(MuteAllContent, __spreadValues({}, props))));
16069
16071
  };
16070
16072
 
16071
- // src/Prebuilt/components/hooks/useMetadata.tsx
16073
+ // src/Prebuilt/components/hooks/useMetadata.jsx
16072
16074
  init_define_process_env();
16073
16075
  import { useCallback as useCallback14 } from "react";
16074
16076
  import {
@@ -16093,7 +16095,6 @@ var useMyMetadata = () => {
16093
16095
  } catch (error) {
16094
16096
  console.error("failed to update metadata ", updatedFields);
16095
16097
  }
16096
- return false;
16097
16098
  });
16098
16099
  const toggleHandRaise = useCallback14(() => __async(void 0, null, function* () {
16099
16100
  if (isHandRaised) {
@@ -16110,13 +16111,19 @@ var useMyMetadata = () => {
16110
16111
  yield hmsActions.lowerLocalPeerHand();
16111
16112
  }
16112
16113
  }), [metaData == null ? void 0 : metaData.isBRBOn]);
16114
+ const setPrevRole = (role) => __async(void 0, null, function* () {
16115
+ yield update({
16116
+ prevRole: role
16117
+ });
16118
+ });
16113
16119
  return {
16114
16120
  isHandRaised,
16115
16121
  isBRBOn: !!(metaData == null ? void 0 : metaData.isBRBOn),
16116
16122
  metaData,
16117
16123
  updateMetaData: update,
16118
16124
  toggleHandRaise,
16119
- toggleBRB
16125
+ toggleBRB,
16126
+ setPrevRole
16120
16127
  };
16121
16128
  };
16122
16129
 
@@ -16241,6 +16248,7 @@ import {
16241
16248
  selectIsConnectedToRoom as selectIsConnectedToRoom7,
16242
16249
  selectPeerCount as selectPeerCount3,
16243
16250
  selectPermissions as selectPermissions8,
16251
+ useAVToggle as useAVToggle3,
16244
16252
  useHMSActions as useHMSActions21,
16245
16253
  useHMSStore as useHMSStore29,
16246
16254
  useRecordingStreaming as useRecordingStreaming7
@@ -16270,8 +16278,8 @@ init_define_process_env();
16270
16278
 
16271
16279
  // ../../node_modules/reselect/es/index.js
16272
16280
  init_define_process_env();
16273
- function defaultEqualityCheck(a2, b) {
16274
- return a2 === b;
16281
+ function defaultEqualityCheck(a2, b2) {
16282
+ return a2 === b2;
16275
16283
  }
16276
16284
  function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
16277
16285
  if (prev === null || next === null || prev.length !== next.length) {
@@ -16348,8 +16356,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
16348
16356
  // ../hms-video-store/dist/index.js
16349
16357
  var import_ua_parser_js = __toESM(require_ua_parser());
16350
16358
  var import_lodash3 = __toESM(require_lodash2());
16351
- import { v4 as ja } from "uuid";
16352
- import { v4 as Ka } from "uuid";
16359
+ import { v4 as qa } from "uuid";
16360
+ import { v4 as Wa } from "uuid";
16353
16361
 
16354
16362
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
16355
16363
  init_define_process_env();
@@ -16639,9 +16647,9 @@ function shimGetUserMedia(window2, browserDetails) {
16639
16647
  }
16640
16648
  constraints = JSON.parse(JSON.stringify(constraints));
16641
16649
  if (constraints && typeof constraints.audio === "object") {
16642
- const remap = function(obj, a2, b) {
16643
- if (a2 in obj && !(b in obj)) {
16644
- obj[b] = obj[a2];
16650
+ const remap = function(obj, a2, b2) {
16651
+ if (a2 in obj && !(b2 in obj)) {
16652
+ obj[b2] = obj[a2];
16645
16653
  delete obj[a2];
16646
16654
  }
16647
16655
  };
@@ -17383,9 +17391,9 @@ function shimGetUserMedia2(window2, browserDetails) {
17383
17391
  navigator2.mediaDevices.getUserMedia(constraints).then(onSuccess, onError);
17384
17392
  };
17385
17393
  if (!(browserDetails.version > 55 && "autoGainControl" in navigator2.mediaDevices.getSupportedConstraints())) {
17386
- const remap = function(obj, a2, b) {
17387
- if (a2 in obj && !(b in obj)) {
17388
- obj[b] = obj[a2];
17394
+ const remap = function(obj, a2, b2) {
17395
+ if (a2 in obj && !(b2 in obj)) {
17396
+ obj[b2] = obj[a2];
17389
17397
  delete obj[a2];
17390
17398
  }
17391
17399
  };
@@ -18174,15 +18182,15 @@ function shimSendThrowTypeError(window2) {
18174
18182
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
18175
18183
  return;
18176
18184
  }
18177
- function wrapDcSend(dc2, pc) {
18178
- const origDataChannelSend = dc2.send;
18179
- dc2.send = function send() {
18185
+ function wrapDcSend(dc, pc) {
18186
+ const origDataChannelSend = dc.send;
18187
+ dc.send = function send() {
18180
18188
  const data3 = arguments[0];
18181
18189
  const length = data3.length || data3.size || data3.byteLength;
18182
- if (dc2.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18190
+ if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
18183
18191
  throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
18184
18192
  }
18185
- return origDataChannelSend.apply(dc2, arguments);
18193
+ return origDataChannelSend.apply(dc, arguments);
18186
18194
  };
18187
18195
  }
18188
18196
  const origCreateDataChannel = window2.RTCPeerConnection.prototype.createDataChannel;
@@ -18446,57 +18454,57 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
18446
18454
 
18447
18455
  // ../hms-video-store/dist/index.js
18448
18456
  var import_lodash4 = __toESM(require_lodash2());
18449
- import { v4 as ro } from "uuid";
18450
- import { v4 as no } from "uuid";
18451
- import { v4 as po } from "uuid";
18452
- import { EventEmitter2 as ho } from "eventemitter2";
18453
- var wt = __toESM(require_lib());
18454
- import { EventEmitter2 as Lo } from "eventemitter2";
18455
- import { v4 as _o } from "uuid";
18456
- import { EventEmitter2 as No } from "eventemitter2";
18457
- import Oo from "eventemitter2";
18458
- import { v4 as xo } from "uuid";
18459
- import { v4 as Vo } from "uuid";
18460
- var Pa = Object.defineProperty;
18461
- var Ea = Object.defineProperties;
18462
- var ba = Object.getOwnPropertyDescriptors;
18463
- var Ft = Object.getOwnPropertySymbols;
18464
- var Wr = Object.prototype.hasOwnProperty;
18465
- var Kr = Object.prototype.propertyIsEnumerable;
18466
- var $r = (a2, e, t) => e in a2 ? Pa(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18467
- var m = (a2, e) => {
18457
+ import { v4 as io } from "uuid";
18458
+ import { v4 as oo } from "uuid";
18459
+ import { v4 as uo } from "uuid";
18460
+ import { EventEmitter2 as po } from "eventemitter2";
18461
+ var Dt = __toESM(require_lib());
18462
+ import { EventEmitter2 as Co } from "eventemitter2";
18463
+ import { v4 as wo } from "uuid";
18464
+ import { EventEmitter2 as _o } from "eventemitter2";
18465
+ import No from "eventemitter2";
18466
+ import { v4 as Oo } from "uuid";
18467
+ import { v4 as Bo } from "uuid";
18468
+ var ka = Object.defineProperty;
18469
+ var Pa = Object.defineProperties;
18470
+ var Ea = Object.getOwnPropertyDescriptors;
18471
+ var Vt = Object.getOwnPropertySymbols;
18472
+ var $r = Object.prototype.hasOwnProperty;
18473
+ var Wr = Object.prototype.propertyIsEnumerable;
18474
+ var Gr = (a2, e, t) => e in a2 ? ka(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
18475
+ var S = (a2, e) => {
18468
18476
  for (var t in e || (e = {}))
18469
- Wr.call(e, t) && $r(a2, t, e[t]);
18470
- if (Ft)
18471
- for (var t of Ft(e))
18472
- Kr.call(e, t) && $r(a2, t, e[t]);
18477
+ $r.call(e, t) && Gr(a2, t, e[t]);
18478
+ if (Vt)
18479
+ for (var t of Vt(e))
18480
+ Wr.call(e, t) && Gr(a2, t, e[t]);
18473
18481
  return a2;
18474
18482
  };
18475
- var v = (a2, e) => Ea(a2, ba(e));
18483
+ var v = (a2, e) => Pa(a2, Ea(e));
18476
18484
  var Xi = (a2, e) => {
18477
18485
  var t = {};
18478
18486
  for (var i in a2)
18479
- Wr.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18480
- if (a2 != null && Ft)
18481
- for (var i of Ft(a2))
18482
- e.indexOf(i) < 0 && Kr.call(a2, i) && (t[i] = a2[i]);
18487
+ $r.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
18488
+ if (a2 != null && Vt)
18489
+ for (var i of Vt(a2))
18490
+ e.indexOf(i) < 0 && Wr.call(a2, i) && (t[i] = a2[i]);
18483
18491
  return t;
18484
18492
  };
18485
- var Ra = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18486
- var lr = Ra((id, qa) => {
18487
- qa.exports = { version: "0.12.3-alpha.6", 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"] };
18493
+ var Ia = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
18494
+ var lr = Ia((td, Ka) => {
18495
+ Ka.exports = { version: "0.12.3-alpha.8", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
18488
18496
  });
18489
18497
  var Zi = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Zi || {});
18490
- var Ha = ((e) => (e.CHAT = "chat", e))(Ha || {});
18491
- var qr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(qr || {});
18498
+ var Ra = ((e) => (e.CHAT = "chat", e))(Ra || {});
18499
+ var Kr = ((t) => (t.INFO = "info", t.ERROR = "error", t))(Kr || {});
18492
18500
  var er = ((C) => (C.PEER_JOINED = "PEER_JOINED", C.PEER_LEFT = "PEER_LEFT", C.PEER_LIST = "PEER_LIST", C.NEW_MESSAGE = "NEW_MESSAGE", C.ERROR = "ERROR", C.RECONNECTING = "RECONNECTING", C.RECONNECTED = "RECONNECTED", C.TRACK_ADDED = "TRACK_ADDED", C.TRACK_REMOVED = "TRACK_REMOVED", C.TRACK_MUTED = "TRACK_MUTED", C.TRACK_UNMUTED = "TRACK_UNMUTED", C.TRACK_DEGRADED = "TRACK_DEGRADED", C.TRACK_RESTORED = "TRACK_RESTORED", C.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", C.ROLE_UPDATED = "ROLE_UPDATED", C.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", C.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", C.ROOM_ENDED = "ROOM_ENDED", C.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", C.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", C.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", C.NAME_UPDATED = "NAME_UPDATED", C.METADATA_UPDATED = "METADATA_UPDATED", C.POLL_CREATED = "POLL_CREATED", C.POLL_STARTED = "POLL_STARTED", C.POLL_STOPPED = "POLL_STOPPED", C.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", C.POLLS_LIST = "POLLS_LIST", C.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", C))(er || {});
18493
- var jr = ((t) => (t.audio = "audio", t.video = "video", t))(jr || {});
18501
+ var qr = ((t) => (t.audio = "audio", t.video = "video", t))(qr || {});
18494
18502
  function He(a2, e) {
18495
18503
  let t, i;
18496
18504
  if (e)
18497
18505
  for (let r of e.auxiliaryTracks) {
18498
18506
  let s = a2[r];
18499
- Ca(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18507
+ Ha(s) && (i = tt(s) ? s : i, t = it(s) ? s : t);
18500
18508
  }
18501
18509
  return { video: t, audio: i };
18502
18510
  }
@@ -18506,16 +18514,16 @@ function tt(a2) {
18506
18514
  function it(a2) {
18507
18515
  return a2 && a2.type === "video";
18508
18516
  }
18509
- function Ca(a2) {
18517
+ function Ha(a2) {
18510
18518
  return a2 && a2.source === "screen";
18511
18519
  }
18512
- function Wt(a2) {
18520
+ function $t(a2) {
18513
18521
  return a2 && a2.source === "audioplaylist";
18514
18522
  }
18515
18523
  function rt(a2) {
18516
18524
  return a2 && a2.source === "videoplaylist";
18517
18525
  }
18518
- function Jr(a2) {
18526
+ function jr(a2) {
18519
18527
  return a2 ? !!(a2 != null && a2.degraded) : false;
18520
18528
  }
18521
18529
  function Ue(a2, e) {
@@ -18527,33 +18535,33 @@ function st(a2) {
18527
18535
  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 };
18528
18536
  }
18529
18537
  var B = (a2) => a2.room;
18530
- var La = (a2) => a2.errors;
18531
- var Hn = createSelector(La, (a2) => a2.length === 0 ? null : a2.at(-1));
18532
- var Cn = createSelector(B, (a2) => a2.id);
18538
+ var Ca = (a2) => a2.errors;
18539
+ var Rn = createSelector(Ca, (a2) => a2.length === 0 ? null : a2.at(-1));
18540
+ var Hn = createSelector(B, (a2) => a2.id);
18533
18541
  var G = (a2) => a2.peers;
18534
- var Kt = (a2) => a2.messages.byID;
18535
- var zr = (a2) => a2.messages.allIDs;
18536
- var w = (a2) => a2.tracks;
18542
+ var Wt = (a2) => a2.messages.byID;
18543
+ var Qr = (a2) => a2.messages.allIDs;
18544
+ var D = (a2) => a2.tracks;
18537
18545
  var tr = (a2) => a2.appData;
18538
- var Da = (a2) => a2.speakers;
18546
+ var La = (a2) => a2.speakers;
18539
18547
  var ye = createSelector([B], (a2) => a2 && a2.isConnected);
18540
- var wn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18541
- var wa = (a2) => a2.hideLocalPeer;
18542
- var oe = createSelector([B, G, wa], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18543
- var _a7 = createSelector(w, (a2) => Object.values(a2));
18548
+ var Dn = createSelector([ye, B], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
18549
+ var Da = (a2) => a2.hideLocalPeer;
18550
+ var oe = createSelector([B, G, Da], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
18551
+ var wa = createSelector(D, (a2) => Object.values(a2));
18544
18552
  var z = createSelector(B, G, (a2, e) => e[a2.localPeer]);
18545
18553
  var ue = createSelector(B, (a2) => a2.localPeer);
18546
- var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18547
- var Nn = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18554
+ var wn = createSelector(z, (a2) => a2 == null ? void 0 : a2.name);
18555
+ var _n = createSelector(z, (a2) => a2 == null ? void 0 : a2.roleName);
18548
18556
  var Z = createSelector(z, (a2) => a2 == null ? void 0 : a2.audioTrack);
18549
18557
  var K = createSelector(z, (a2) => a2 == null ? void 0 : a2.videoTrack);
18550
- var Na = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18551
- var Xr = createSelector([Z, K, Na], (a2, e, t) => {
18558
+ var _a7 = createSelector(z, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
18559
+ var Yr = createSelector([Z, K, _a7], (a2, e, t) => {
18552
18560
  let i = t ? [...t] : [];
18553
18561
  return a2 && i.unshift(a2), e && i.unshift(e), i;
18554
18562
  });
18555
- var On = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18556
- var xn = createSelector(G, Da, (a2, e) => {
18563
+ var Nn = createSelector(oe, (a2) => a2.filter((e) => !e.isLocal));
18564
+ var On = createSelector(G, La, (a2, e) => {
18557
18565
  let t = Object.entries(e).sort((i, r) => {
18558
18566
  var n, l;
18559
18567
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -18566,11 +18574,11 @@ var xn = createSelector(G, Da, (a2, e) => {
18566
18574
  }
18567
18575
  return null;
18568
18576
  });
18569
- var rr = createSelector(z, w, (a2, e) => {
18577
+ var rr = createSelector(z, D, (a2, e) => {
18570
18578
  let { video: t, audio: i } = He(e, a2);
18571
18579
  return !!(t || i);
18572
18580
  });
18573
- var Oa = createSelector(G, w, (a2, e) => {
18581
+ var Na = createSelector(G, D, (a2, e) => {
18574
18582
  let t;
18575
18583
  for (let i in a2) {
18576
18584
  let r = a2[i], { video: s, audio: o } = He(e, r);
@@ -18580,15 +18588,15 @@ var Oa = createSelector(G, w, (a2, e) => {
18580
18588
  }
18581
18589
  return t;
18582
18590
  });
18583
- var Bn = createSelector(Oa, (a2) => !!a2);
18584
- var Vn = createSelector(G, w, (a2, e) => {
18591
+ var Un = createSelector(Na, (a2) => !!a2);
18592
+ var Bn = createSelector(G, D, (a2, e) => {
18585
18593
  for (let t in a2) {
18586
18594
  let i = a2[t], { audio: r, video: s } = He(e, i);
18587
18595
  if (!s && r)
18588
18596
  return i;
18589
18597
  }
18590
18598
  });
18591
- var Fn = createSelector(G, w, (a2, e) => {
18599
+ var Vn = createSelector(G, D, (a2, e) => {
18592
18600
  let t = [], i = [];
18593
18601
  for (let r in a2) {
18594
18602
  let s = a2[r], { video: o, audio: n } = He(e, s);
@@ -18596,80 +18604,80 @@ var Fn = createSelector(G, w, (a2, e) => {
18596
18604
  }
18597
18605
  return t.concat(i);
18598
18606
  });
18599
- var Gn = createSelector(G, w, (a2, e) => {
18607
+ var Fn = createSelector(G, D, (a2, e) => {
18600
18608
  for (let t in e) {
18601
18609
  let i = e[t];
18602
18610
  if (rt(i) && it(i) && i.peerId)
18603
18611
  return a2[i.peerId];
18604
18612
  }
18605
18613
  });
18606
- var $n = createSelector(G, w, (a2, e) => {
18614
+ var Gn = createSelector(G, D, (a2, e) => {
18607
18615
  for (let t in e) {
18608
18616
  let i = e[t];
18609
- if (Wt(i) && i.peerId)
18617
+ if ($t(i) && i.peerId)
18610
18618
  return a2[i.peerId];
18611
18619
  }
18612
18620
  });
18613
- var Wn = createSelector(_a7, (a2) => a2.filter(Jr));
18614
- var Kn = createSelector(zr, (a2) => a2.length);
18615
- var qn = createSelector(Kt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18616
- var at = createSelector(zr, Kt, (a2, e) => {
18621
+ var $n = createSelector(wa, (a2) => a2.filter(jr));
18622
+ var Wn = createSelector(Qr, (a2) => a2.length);
18623
+ var Kn = createSelector(Wt, (a2) => Object.values(a2).filter((e) => !e.read).length);
18624
+ var at = createSelector(Qr, Wt, (a2, e) => {
18617
18625
  let t = [];
18618
18626
  return a2.forEach((i) => {
18619
18627
  t.push(e[i]);
18620
18628
  }), t;
18621
18629
  });
18622
- var xa = createSelector(at, (a2) => a2.filter((e) => {
18630
+ var Oa = createSelector(at, (a2) => a2.filter((e) => {
18623
18631
  var t;
18624
18632
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
18625
18633
  }));
18626
- var jn = createSelector(xa, (a2) => a2.filter((e) => !e.read).length);
18634
+ var qn = createSelector(Oa, (a2) => a2.filter((e) => !e.read).length);
18627
18635
  var Y = createSelector([B], (a2) => a2 && a2.roomState);
18628
- var es = createSelector(Y, (a2) => a2 === "Preview");
18629
- var Jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18636
+ var Zr = createSelector(Y, (a2) => a2 === "Preview");
18637
+ var jn = createSelector(B, (a2) => a2.roomState !== "Disconnected");
18630
18638
  var ne = (a2) => a2.roles;
18631
- var Qn = createSelector([ne], (a2) => Object.keys(a2));
18632
- var qt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18633
- var Ua = (a2) => {
18639
+ var Jn = createSelector([ne], (a2) => Object.keys(a2));
18640
+ var Kt = createSelector([z, ne], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
18641
+ var xa = (a2) => {
18634
18642
  var e;
18635
18643
  return (e = a2.preview) == null ? void 0 : e.asRole;
18636
18644
  };
18637
- var ts = createSelector([Ua, ne], (a2, e) => a2 ? e[a2] : null);
18638
- var zn = createSelector([qt], (a2) => {
18645
+ var es = createSelector([xa, ne], (a2, e) => a2 ? e[a2] : null);
18646
+ var Qn = createSelector([Kt], (a2) => {
18639
18647
  var e;
18640
18648
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
18641
18649
  });
18642
- var is = createSelector(qt, (a2) => a2 == null ? void 0 : a2.permissions);
18643
- var Yn = createSelector(B, (a2) => a2.recording);
18644
- var Xn = createSelector(B, (a2) => a2.rtmp);
18645
- var Zn = createSelector(B, (a2) => a2.hls);
18646
- var ec = createSelector(B, (a2) => a2.sessionId);
18647
- var tc = createSelector(B, (a2) => a2.startedAt);
18648
- var ic = createSelector(B, (a2) => !!a2.isLargeRoom);
18649
- var rc = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18650
- var sc = createSelector(B, (a2) => a2.effectsKey);
18651
- var rs = (a2) => a2.polls;
18652
- var cc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18653
- var Ba = (a2) => a2.whiteboards;
18654
- var dc = createSelector(Ba, (a2) => Object.values(a2)[0]);
18655
- var as = (a2 = "audio") => (e) => e.playlist[a2].list;
18650
+ var ts = createSelector(Kt, (a2) => a2 == null ? void 0 : a2.permissions);
18651
+ var zn = createSelector(B, (a2) => a2.recording);
18652
+ var Yn = createSelector(B, (a2) => a2.rtmp);
18653
+ var Xn = createSelector(B, (a2) => a2.hls);
18654
+ var Zn = createSelector(B, (a2) => a2.sessionId);
18655
+ var ec = createSelector(B, (a2) => a2.startedAt);
18656
+ var tc = createSelector(B, (a2) => !!a2.isLargeRoom);
18657
+ var ic = createSelector(B, (a2) => !!a2.isEffectsEnabled);
18658
+ var rc = createSelector(B, (a2) => a2.effectsKey);
18659
+ var is = (a2) => a2.polls;
18660
+ var nc = createSelector(oe, (a2) => a2.filter((e) => e.isHandRaised));
18661
+ var Ua = (a2) => a2.whiteboards;
18662
+ var cc = createSelector(Ua, (a2) => Object.values(a2)[0]);
18663
+ var ss = (a2 = "audio") => (e) => e.playlist[a2].list;
18656
18664
  var sr = (a2 = "audio") => (e) => e.playlist[a2].selection;
18657
- var os = (a2 = "audio") => (e) => e.playlist[a2].progress;
18658
- var ns = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18659
- var cs = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18660
- var ds = (a2 = "audio") => (e) => e.playlist[a2].volume;
18661
- var ls = (a2 = "audio") => createSelector(as(a2), (e) => Object.values(e));
18662
- var us = (a2 = "audio") => createSelector(as(a2), sr(a2), (e, t) => {
18665
+ var as = (a2 = "audio") => (e) => e.playlist[a2].progress;
18666
+ var os = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
18667
+ var ns = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
18668
+ var cs = (a2 = "audio") => (e) => e.playlist[a2].volume;
18669
+ var ds = (a2 = "audio") => createSelector(ss(a2), (e) => Object.values(e));
18670
+ var ls = (a2 = "audio") => createSelector(ss(a2), sr(a2), (e, t) => {
18663
18671
  if (t.id)
18664
18672
  return e[t.id];
18665
18673
  });
18666
- var ps = { selection: sr("audio"), progress: os("audio"), currentTime: ns("audio"), playbackRate: cs("audio"), volume: ds("audio"), list: ls("audio"), selectedItem: us("audio") };
18667
- var hs = { selection: sr("video"), progress: os("video"), currentTime: ns("video"), playbackRate: cs("video"), volume: ds("video"), list: ls("video"), selectedItem: us("video") };
18668
- function A(a2) {
18674
+ var us = { selection: sr("audio"), progress: as("audio"), currentTime: os("audio"), playbackRate: ns("audio"), volume: cs("audio"), list: ds("audio"), selectedItem: ls("audio") };
18675
+ var ps = { selection: sr("video"), progress: as("video"), currentTime: os("video"), playbackRate: ns("video"), volume: cs("video"), list: ds("video"), selectedItem: ls("video") };
18676
+ function b(a2) {
18669
18677
  return (e) => (t) => a2(t, e);
18670
18678
  }
18671
- var ms = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(ms || {});
18672
- var Va = typeof window != "undefined" && typeof window.expect != "undefined";
18679
+ var hs = ((l) => (l[l.VERBOSE = 0] = "VERBOSE", l[l.DEBUG = 1] = "DEBUG", l[l.INFO = 2] = "INFO", l[l.WARN = 3] = "WARN", l[l.TIME = 4] = "TIME", l[l.TIMEEND = 5] = "TIMEEND", l[l.ERROR = 6] = "ERROR", l[l.NONE = 7] = "NONE", l))(hs || {});
18680
+ var Ba = typeof window != "undefined" && typeof window.expect != "undefined";
18673
18681
  var d = class {
18674
18682
  static v(e, ...t) {
18675
18683
  this.log(0, e, ...t);
@@ -18735,25 +18743,25 @@ var d = class {
18735
18743
  }
18736
18744
  }
18737
18745
  };
18738
- d.level = Va ? 7 : 0;
18746
+ d.level = Ba ? 7 : 0;
18739
18747
  var pe = new import_ua_parser_js.UAParser();
18740
- var _ = typeof window != "undefined";
18748
+ var w = typeof window != "undefined";
18749
+ var ms;
18750
+ var Ce = typeof window == "undefined" && !((ms = pe.getBrowser().name) != null && ms.toLowerCase().includes("electron"));
18751
+ var Fa = () => !Ce;
18752
+ var gc = Fa();
18741
18753
  var Ss;
18742
- var Ce = typeof window == "undefined" && !((Ss = pe.getBrowser().name) != null && Ss.toLowerCase().includes("electron"));
18743
- var Ga = () => !Ce;
18744
- var Tc = Ga();
18745
18754
  var gs;
18746
- var Ts;
18747
- var vs = ((Ts = (gs = pe.getBrowser()) == null ? void 0 : gs.name) == null ? void 0 : Ts.toLowerCase()) === "firefox";
18748
- var Ms = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(Ms || {});
18749
- function $a() {
18750
- if (_ && window) {
18755
+ var fs = ((gs = (Ss = pe.getBrowser()) == null ? void 0 : Ss.name) == null ? void 0 : gs.toLowerCase()) === "firefox";
18756
+ var vs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(vs || {});
18757
+ function Ga() {
18758
+ if (w && window) {
18751
18759
  let a2 = window.location.hostname;
18752
18760
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
18753
18761
  }
18754
18762
  return "CUSTOM";
18755
18763
  }
18756
- var Ve = $a();
18764
+ var Ve = Ga();
18757
18765
  var M = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
18758
18766
  var f = class a extends Error {
18759
18767
  constructor(t, i, r, s, o, n = false) {
@@ -18784,8 +18792,8 @@ var f = class a extends Error {
18784
18792
  }`;
18785
18793
  }
18786
18794
  };
18787
- var Wa = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18788
- var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18795
+ var $a = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
18796
+ var m = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18789
18797
  return new f(M.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
18790
18798
  }, WebSocketConnectionLost(a2, e = "") {
18791
18799
  return new f(M.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost ", e);
@@ -18844,7 +18852,7 @@ var h = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
18844
18852
  }, StatsFailed(a2, e = "") {
18845
18853
  return new f(M.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
18846
18854
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
18847
- return new f(a2, "ServerErrors", e, t, t, Wa.includes(e));
18855
+ return new f(a2, "ServerErrors", e, t, t, $a.includes(e));
18848
18856
  }, AlreadyJoined(a2, e = "") {
18849
18857
  return new f(M.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
18850
18858
  }, CannotJoinPreviewInProgress(a2, e = "") {
@@ -18917,11 +18925,11 @@ var nr = class {
18917
18925
  return this.valuesMap.size;
18918
18926
  }
18919
18927
  };
18920
- var ys = () => {
18928
+ var Ms = () => {
18921
18929
  try {
18922
- _ && !localStorage && (window.localStorage = new nr());
18930
+ w && !localStorage && (window.localStorage = new nr());
18923
18931
  } catch (a2) {
18924
- d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied());
18932
+ d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied());
18925
18933
  }
18926
18934
  };
18927
18935
  var ce = class {
@@ -18931,9 +18939,9 @@ var ce = class {
18931
18939
  }
18932
18940
  getStorage() {
18933
18941
  try {
18934
- return _ && !this.storage && (ys(), this.storage = window.localStorage), this.storage;
18942
+ return w && !this.storage && (Ms(), this.storage = window.localStorage), this.storage;
18935
18943
  } catch (e) {
18936
- return d.e("Error initialising localStorage", h.GenericErrors.LocalStorageAccessDenied()), null;
18944
+ return d.e("Error initialising localStorage", m.GenericErrors.LocalStorageAccessDenied()), null;
18937
18945
  }
18938
18946
  }
18939
18947
  get() {
@@ -18951,70 +18959,37 @@ var ce = class {
18951
18959
  (e = this.getStorage()) == null || e.removeItem(this.key);
18952
18960
  }
18953
18961
  };
18954
- var ks = () => {
18962
+ var ys = () => {
18955
18963
  let a2, e = new ce("hms-analytics-deviceId"), t = e.get();
18956
- return t ? a2 = t : (a2 = Ka(), e.set(a2)), a2;
18964
+ return t ? a2 = t : (a2 = Wa(), e.set(a2)), a2;
18957
18965
  };
18958
18966
  function ie(a2) {
18959
18967
  return a2 != null;
18960
18968
  }
18961
- var Es = lr().version;
18969
+ var Ps = lr().version;
18962
18970
  function ot(a2 = "prod", e) {
18963
18971
  let t = "web", i = Ve !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
18964
18972
  if (Ce)
18965
- return bs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Es, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18973
+ return Es({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ps, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18966
18974
  let r = pe.getOS(), s = pe.getDevice(), o = pe.getBrowser(), n = ur(`web_${r.name}`), l = r.version || "", u = ur(`${o.name}_${o.version}`), p = u;
18967
- return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), bs({ os: n, os_version: l, sdk: t, sdk_version: Es, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18975
+ return s.type && (p = `${ur(`${s.vendor}_${s.type}`)}/${u}`), Es({ os: n, os_version: l, sdk: t, sdk_version: Ps, device_model: p, env: i, domain: Ve, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
18968
18976
  }
18969
18977
  function ur(a2) {
18970
18978
  return a2.replace(/ /g, "_");
18971
18979
  }
18972
- var bs = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18980
+ var Es = (a2, e = ",") => Object.keys(a2).filter((t) => ie(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
18973
18981
  var R = class {
18974
18982
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
18975
18983
  this.metadata = { peer: {}, userAgent: ot() };
18976
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = ja(), this.device_id = ks();
18984
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = qa(), this.device_id = ys();
18977
18985
  }
18978
18986
  toSignalParams() {
18979
- return { name: this.name, info: v(m({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18987
+ return { name: this.name, info: v(S({}, this.properties), { timestamp: this.timestamp, domain: Ve }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
18980
18988
  }
18981
18989
  };
18982
- var pr = class {
18983
- constructor() {
18984
- this.pluginUsage = /* @__PURE__ */ new Map();
18985
- this.pluginLastAddedAt = /* @__PURE__ */ new Map();
18986
- this.getPluginUsage = (e, t) => {
18987
- let i = `${t}-${e}`;
18988
- if (this.pluginUsage.has(i) || this.pluginUsage.set(i, 0), this.pluginLastAddedAt.has(i)) {
18989
- let r = this.pluginLastAddedAt.get(i) || 0, s = r ? Date.now() - r : 0;
18990
- this.pluginUsage.set(i, (this.pluginUsage.get(i) || 0) + s), this.pluginLastAddedAt.delete(i);
18991
- }
18992
- return this.pluginUsage.get(i);
18993
- };
18994
- this.updatePluginUsageData = (e, t) => {
18995
- if (e.name === "transport.leave") {
18996
- this.cleanup(t);
18997
- return;
18998
- }
18999
- let i = e.properties.plugin_name, r = `${t}-${i}`;
19000
- if (e.name === "mediaPlugin.added") {
19001
- let s = e.properties.added_at;
19002
- this.pluginLastAddedAt.set(r, s);
19003
- } else if (e.name === "mediaPlugin.stats") {
19004
- let s = e.properties.duration;
19005
- s > 0 && (this.pluginUsage.set(r, (this.pluginUsage.get(r) || 0) + s * 1e3), this.pluginLastAddedAt.delete(r));
19006
- }
19007
- };
19008
- this.cleanup = (e) => {
19009
- for (let t of this.pluginUsage.keys())
19010
- e.length && t.includes(e) && (this.pluginUsage.delete(t), this.pluginLastAddedAt.delete(t));
19011
- };
19012
- }
19013
- };
19014
- var nt = new pr();
19015
18990
  var y = class {
19016
18991
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
19017
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(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);
18992
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, l = this.getPropertiesWithError(v(S({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
19018
18993
  return new R({ name: o, level: n, properties: l });
19019
18994
  }
19020
18995
  static disconnect(e, t) {
@@ -19028,7 +19003,7 @@ var y = class {
19028
19003
  }
19029
19004
  static join(i) {
19030
19005
  var r = i, { error: e } = r, t = Xi(r, ["error"]);
19031
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
19006
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(v(S({}, t), { is_preview_called: !!t.is_preview_called }), e);
19032
19007
  return new R({ name: s, level: o, properties: n });
19033
19008
  }
19034
19009
  static publish({ devices: e, settings: t, error: i }) {
@@ -19071,7 +19046,7 @@ var y = class {
19071
19046
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
19072
19047
  if (!t && e.degradedAt instanceof Date) {
19073
19048
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
19074
- s = v(m({}, s), { duration: n, restoredAt: o });
19049
+ s = v(S({}, s), { duration: n, restoredAt: o });
19075
19050
  }
19076
19051
  return new R({ name: i, level: r, properties: s });
19077
19052
  }
@@ -19089,25 +19064,21 @@ var y = class {
19089
19064
  return new R({ name: "subscriber.stats", level: 1, properties: e });
19090
19065
  }
19091
19066
  static getKrispUsage(e) {
19092
- let t = nt.getPluginUsage("HMSKrispPlugin", e);
19093
- return new R({ name: "krisp.usage", level: 1, properties: { duration: t } });
19094
- }
19095
- static transportLeave() {
19096
- return new R({ name: "transport.leave", level: 1, properties: {} });
19067
+ return new R({ name: "krisp.usage", level: 1, properties: { duration: e } });
19097
19068
  }
19098
19069
  static eventNameFor(e, t) {
19099
19070
  return `${e}.${t ? "success" : "failed"}`;
19100
19071
  }
19101
19072
  static getPropertiesWithError(e, t) {
19102
19073
  let i = this.getErrorProperties(t);
19103
- return e = m(m({}, i), e), e;
19074
+ return e = S(S({}, i), e), e;
19104
19075
  }
19105
19076
  static getErrorProperties(e) {
19106
19077
  return e ? e instanceof f ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
19107
19078
  }
19108
19079
  };
19109
19080
  y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
19110
- var hr = class {
19081
+ var pr = class {
19111
19082
  constructor() {
19112
19083
  this.storage = new ce("hms-device-selection");
19113
19084
  this.remember = false;
@@ -19141,10 +19112,10 @@ var hr = class {
19141
19112
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
19142
19113
  }
19143
19114
  };
19144
- var q = new hr();
19145
- var mr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(mr || {});
19146
- var Sr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Sr || {});
19147
- function Qt(a2, e = 300) {
19115
+ var q = new pr();
19116
+ var hr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(hr || {});
19117
+ var mr = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(mr || {});
19118
+ function Jt(a2, e = 300) {
19148
19119
  let t;
19149
19120
  return function(...i) {
19150
19121
  clearTimeout(t), t = void 0;
@@ -19154,10 +19125,10 @@ function Qt(a2, e = 300) {
19154
19125
  }, e);
19155
19126
  };
19156
19127
  }
19157
- var Ls = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Ls || {});
19158
- var Ds = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ds || {});
19159
- var ws = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(ws || {});
19160
- var gr = class {
19128
+ var Cs = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Cs || {});
19129
+ var Ls = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ls || {});
19130
+ var Ds = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Ds || {});
19131
+ var Sr = class {
19161
19132
  constructor() {
19162
19133
  this.TAG = "[HMSIntersectionObserverWrapper]";
19163
19134
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19180,12 +19151,12 @@ var gr = class {
19180
19151
  this.createObserver();
19181
19152
  }
19182
19153
  isSupported() {
19183
- let e = _ && typeof window.IntersectionObserver != "undefined";
19154
+ let e = w && typeof window.IntersectionObserver != "undefined";
19184
19155
  return e || d.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
19185
19156
  }
19186
19157
  };
19187
- var xs = new gr();
19188
- var Tr = class {
19158
+ var Os = new Sr();
19159
+ var gr = class {
19189
19160
  constructor() {
19190
19161
  this.TAG = "[HMSResizeObserverWrapper]";
19191
19162
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -19198,7 +19169,7 @@ var Tr = class {
19198
19169
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
19199
19170
  };
19200
19171
  this.createObserver = () => {
19201
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Qt(this.handleResize, 300)));
19172
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(Jt(this.handleResize, 300)));
19202
19173
  };
19203
19174
  this.handleResize = (e) => {
19204
19175
  var t;
@@ -19208,20 +19179,20 @@ var Tr = class {
19208
19179
  this.createObserver();
19209
19180
  }
19210
19181
  isSupported() {
19211
- let e = _ && typeof window.ResizeObserver != "undefined";
19182
+ let e = w && typeof window.ResizeObserver != "undefined";
19212
19183
  return e || d.w(this.TAG, "Resize Observer is not supported"), e;
19213
19184
  }
19214
19185
  };
19215
- var Us = new Tr();
19216
- var fr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(fr || {});
19217
- var vr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(vr || {});
19218
- var Fs = "https://event.100ms.live/v2/client/report";
19219
- var Gs = "https://event-nonprod.100ms.live/v2/client/report";
19220
- var ht = Math.pow(2, 31) - 1;
19186
+ var xs = new gr();
19187
+ var Tr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Tr || {});
19188
+ var fr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(fr || {});
19189
+ var Vs = "https://event.100ms.live/v2/client/report";
19190
+ var Fs = "https://event-nonprod.100ms.live/v2/client/report";
19191
+ var pt = Math.pow(2, 31) - 1;
19221
19192
  var Qe = class {
19222
19193
  };
19223
- Qe.makePeerId = () => po();
19224
- var Tt = "HMS-Store:";
19194
+ Qe.makePeerId = () => uo();
19195
+ var gt = "HMS-Store:";
19225
19196
  var k = class {
19226
19197
  static v(e, ...t) {
19227
19198
  this.log(0, e, ...t);
@@ -19251,23 +19222,23 @@ var k = class {
19251
19222
  if (!(this.level.valueOf() > e.valueOf()))
19252
19223
  switch (e) {
19253
19224
  case 0: {
19254
- console.log(Tt, ...t);
19225
+ console.log(gt, ...t);
19255
19226
  break;
19256
19227
  }
19257
19228
  case 1: {
19258
- console.debug(Tt, ...t);
19229
+ console.debug(gt, ...t);
19259
19230
  break;
19260
19231
  }
19261
19232
  case 2: {
19262
- console.info(Tt, ...t);
19233
+ console.info(gt, ...t);
19263
19234
  break;
19264
19235
  }
19265
19236
  case 3: {
19266
- console.warn(Tt, ...t);
19237
+ console.warn(gt, ...t);
19267
19238
  break;
19268
19239
  }
19269
19240
  case 6: {
19270
- console.error(Tt, ...t);
19241
+ console.error(gt, ...t);
19271
19242
  break;
19272
19243
  }
19273
19244
  case 4: {
@@ -19288,132 +19259,132 @@ var k = class {
19288
19259
  }
19289
19260
  };
19290
19261
  k.level = 0;
19291
- var Hr = (a2, e) => e;
19292
- var ft = (a2, e) => e;
19293
- var Qs = (a2, e) => e;
19262
+ var Rr = (a2, e) => e;
19263
+ var Tt = (a2, e) => e;
19264
+ var Js = (a2, e) => e;
19265
+ var ho = (a2, e) => e;
19294
19266
  var mo = (a2, e) => e;
19295
- var So = (a2, e) => e;
19296
- var J = createSelector([G, Hr], (a2, e) => e ? a2[e] : null);
19297
- var Cr = createSelector([w, ft], (a2, e) => e ? a2[e] : null);
19298
- var go = createSelector([w, ft], (a2, e) => {
19267
+ var J = createSelector([G, Rr], (a2, e) => e ? a2[e] : null);
19268
+ var Hr = createSelector([D, Tt], (a2, e) => e ? a2[e] : null);
19269
+ var So = createSelector([D, Tt], (a2, e) => {
19299
19270
  if (!e)
19300
19271
  return null;
19301
19272
  let t = a2[e];
19302
19273
  return (t == null ? void 0 : t.type) === "video" ? t : null;
19303
19274
  });
19304
- var To = createSelector([w, ft], (a2, e) => {
19275
+ var go = createSelector([D, Tt], (a2, e) => {
19305
19276
  if (!e)
19306
19277
  return null;
19307
19278
  let t = a2[e];
19308
19279
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
19309
19280
  });
19310
- var fo = createSelector([w, ft], (a2, e) => {
19281
+ var To = createSelector([D, Tt], (a2, e) => {
19311
19282
  if (!e)
19312
19283
  return null;
19313
19284
  let t = a2[e];
19314
19285
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19315
19286
  });
19316
- var vo = createSelector([w, ft], (a2, e) => {
19287
+ var fo = createSelector([D, Tt], (a2, e) => {
19317
19288
  if (!e)
19318
19289
  return null;
19319
19290
  let t = a2[e];
19320
19291
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
19321
19292
  });
19322
- var Mo = createSelector([rs, So], (a2, e) => e ? a2[e] : null);
19323
- var Q = A(J);
19324
- var cm = A(createSelector([tr, mo], (a2, e) => {
19293
+ var vo = createSelector([is, mo], (a2, e) => e ? a2[e] : null);
19294
+ var Q = b(J);
19295
+ var rm = b(createSelector([tr, ho], (a2, e) => {
19325
19296
  if (a2)
19326
19297
  return e ? a2[e] : a2;
19327
19298
  }));
19328
- function dm(a2) {
19299
+ function sm(a2) {
19329
19300
  return (e) => {
19330
19301
  if (e.sessionStore)
19331
19302
  return a2 ? e.sessionStore[a2] : e.sessionStore;
19332
19303
  };
19333
19304
  }
19334
- var um = A(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19335
- var ni = A(Cr);
19336
- var zs = A(go);
19337
- var pm = A(To);
19338
- var hm = A(fo);
19339
- var mm = A(vo);
19340
- var yo = A((a2, e) => {
19305
+ var om = b(createSelector(J, (a2) => a2 == null ? void 0 : a2.name));
19306
+ var oi = b(Hr);
19307
+ var Qs = b(So);
19308
+ var nm = b(go);
19309
+ var cm = b(To);
19310
+ var dm = b(fo);
19311
+ var Mo = b((a2, e) => {
19341
19312
  let t = J(a2, e);
19342
19313
  if (t && t.videoTrack && t.videoTrack !== "")
19343
19314
  return a2.tracks[t.videoTrack];
19344
19315
  });
19345
- var ko = A((a2, e) => {
19316
+ var yo = b((a2, e) => {
19346
19317
  let t = J(a2, e);
19347
19318
  if (t && t.audioTrack && t.audioTrack !== "")
19348
19319
  return a2.tracks[t.audioTrack];
19349
19320
  });
19350
- var gm = A((a2, e) => {
19321
+ var um = b((a2, e) => {
19351
19322
  let t = J(a2, e);
19352
19323
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
19353
19324
  });
19354
- var Ys = (a2, e) => e ? a2.speakers[e] : null;
19355
- var Tm = A(createSelector(Ys, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19356
- var Po = (a2, e) => {
19357
- let t = ko(e)(a2);
19358
- return Ys(a2, t == null ? void 0 : t.id);
19359
- };
19360
- var fm = A(createSelector(Po, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19361
- var vm = A((a2, e) => {
19325
+ var zs = (a2, e) => e ? a2.speakers[e] : null;
19326
+ var pm = b(createSelector(zs, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19327
+ var ko = (a2, e) => {
19328
+ let t = yo(e)(a2);
19329
+ return zs(a2, t == null ? void 0 : t.id);
19330
+ };
19331
+ var hm = b(createSelector(ko, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
19332
+ var mm = b((a2, e) => {
19362
19333
  if (e)
19363
19334
  return a2.connectionQualities[e];
19364
19335
  });
19365
- var Mm = A((a2, e) => {
19336
+ var Sm = b((a2, e) => {
19366
19337
  let t = J(a2, e);
19367
19338
  if (t) {
19368
19339
  let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => tt(a2.tracks[r]));
19369
19340
  return i ? a2.tracks[i] : void 0;
19370
19341
  }
19371
19342
  });
19372
- var ym = A(createSelector(w, J, (a2, e) => {
19343
+ var gm = b(createSelector(D, J, (a2, e) => {
19373
19344
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19374
19345
  let r = a2[i];
19375
19346
  return rt(r) && it(r);
19376
19347
  });
19377
19348
  return t ? a2[t] : void 0;
19378
19349
  }));
19379
- var km = A(createSelector(w, J, (a2, e) => {
19350
+ var Tm = b(createSelector(D, J, (a2, e) => {
19380
19351
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19381
19352
  let r = a2[i];
19382
19353
  return rt(r) && tt(r);
19383
19354
  });
19384
19355
  return t ? a2[t] : void 0;
19385
19356
  }));
19386
- var Pm = A(createSelector(w, J, (a2, e) => {
19357
+ var fm = b(createSelector(D, J, (a2, e) => {
19387
19358
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
19388
19359
  let r = a2[i];
19389
- return Wt(r) && tt(r);
19360
+ return $t(r) && tt(r);
19390
19361
  });
19391
19362
  return t ? a2[t] : void 0;
19392
19363
  }));
19393
- var Xs = A(createSelector(w, J, (a2, e) => He(a2, e)));
19394
- var Zs = (a2) => createSelector(Xs(a2), (e) => e.audio);
19395
- var bm = A((a2, e) => {
19364
+ var Ys = b(createSelector(D, J, (a2, e) => He(a2, e)));
19365
+ var Xs = (a2) => createSelector(Ys(a2), (e) => e.audio);
19366
+ var Mm = b((a2, e) => {
19396
19367
  let t = J(a2, e);
19397
19368
  return Ue(a2, t == null ? void 0 : t.audioTrack);
19398
19369
  });
19399
- var Am = A((a2, e) => {
19370
+ var ym = b((a2, e) => {
19400
19371
  let t = J(a2, e);
19401
19372
  return Ue(a2, t == null ? void 0 : t.videoTrack);
19402
19373
  });
19403
- var ea = A((a2, e) => {
19374
+ var Zs = b((a2, e) => {
19404
19375
  if (e && a2.tracks[e])
19405
19376
  return a2.tracks[e].volume === 0;
19406
19377
  });
19407
- var Im = A((a2, e) => {
19378
+ var km = b((a2, e) => {
19408
19379
  let t = J(a2, e);
19409
- return ea(t == null ? void 0 : t.audioTrack)(a2);
19380
+ return Zs(t == null ? void 0 : t.audioTrack)(a2);
19410
19381
  });
19411
- var Rm = A((a2, e) => {
19412
- let t = Zs(e)(a2);
19413
- return ea(t == null ? void 0 : t.id)(a2);
19382
+ var Pm = b((a2, e) => {
19383
+ let t = Xs(e)(a2);
19384
+ return Zs(t == null ? void 0 : t.id)(a2);
19414
19385
  });
19415
- var ta = A((a2, e) => {
19416
- let t = Cr(a2, e);
19386
+ var ea = b((a2, e) => {
19387
+ let t = Hr(a2, e);
19417
19388
  if (t) {
19418
19389
  if (t.type !== "audio") {
19419
19390
  k.w("Please pass audio track here");
@@ -19422,16 +19393,16 @@ var ta = A((a2, e) => {
19422
19393
  return t.volume;
19423
19394
  }
19424
19395
  });
19425
- var Hm = A((a2, e) => {
19396
+ var Em = b((a2, e) => {
19426
19397
  let t = J(a2, e);
19427
- return ta(t == null ? void 0 : t.audioTrack)(a2);
19398
+ return ea(t == null ? void 0 : t.audioTrack)(a2);
19428
19399
  });
19429
- var Cm = A((a2, e) => {
19430
- let t = Zs(e)(a2);
19431
- return ta(t == null ? void 0 : t.id)(a2);
19400
+ var bm = b((a2, e) => {
19401
+ let t = Xs(e)(a2);
19402
+ return ea(t == null ? void 0 : t.id)(a2);
19432
19403
  });
19433
- var Lm = A((a2, e) => {
19434
- let t = Cr(a2, e);
19404
+ var Am = b((a2, e) => {
19405
+ let t = Hr(a2, e);
19435
19406
  if (t) {
19436
19407
  if (t.type !== "video") {
19437
19408
  k.w("Please pass video track here");
@@ -19440,49 +19411,49 @@ var Lm = A((a2, e) => {
19440
19411
  return t.layer;
19441
19412
  }
19442
19413
  });
19443
- var ia = createSelector([at, ue, Hr], (a2, e, t) => {
19414
+ var ta = createSelector([at, ue, Rr], (a2, e, t) => {
19444
19415
  if (t)
19445
19416
  return a2.filter((i) => {
19446
19417
  var r;
19447
19418
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
19448
19419
  });
19449
19420
  });
19450
- var ra = createSelector([at, Qs], (a2, e) => {
19421
+ var ia = createSelector([at, Js], (a2, e) => {
19451
19422
  if (e)
19452
19423
  return a2.filter((t) => {
19453
19424
  var i, r;
19454
19425
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
19455
19426
  });
19456
19427
  });
19457
- var Eo = createSelector(at, (a2) => a2.filter((e) => {
19428
+ var Po = createSelector(at, (a2) => a2.filter((e) => {
19458
19429
  var t;
19459
19430
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
19460
19431
  }));
19461
- var bo = createSelector([ra, Qs], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19462
- var Ao = createSelector([ia, Hr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19463
- var Dm = createSelector(Eo, (a2) => a2.filter((e) => !e.read).length);
19464
- var wm = A(ia);
19465
- var _m = A(ra);
19466
- var Nm = A(bo);
19467
- var Om = A(Ao);
19468
- var sa = A(Mo);
19469
- var jm = createSelector([G, w], (a2, e) => Object.values(a2).map((i) => {
19432
+ var Eo = createSelector([ia, Js], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19433
+ var bo = createSelector([ta, Rr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
19434
+ var Im = createSelector(Po, (a2) => a2.filter((e) => !e.read).length);
19435
+ var Rm = b(ta);
19436
+ var Hm = b(ia);
19437
+ var Cm = b(Eo);
19438
+ var Lm = b(bo);
19439
+ var ra = b(vo);
19440
+ var Gm = createSelector([G, D], (a2, e) => Object.values(a2).map((i) => {
19470
19441
  var r;
19471
19442
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
19472
19443
  }));
19473
- var Io = (a2) => a2.roleChangeRequests[0] || null;
19474
- var Jm = createSelector([Io, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19475
- var Qm = createSelector([qt], (a2) => st(a2));
19476
- var zm = createSelector([ts], (a2) => st(a2));
19477
- var Ho = createSelector([K, w], (a2, e) => {
19444
+ var Ao = (a2) => a2.roleChangeRequests[0] || null;
19445
+ var $m = createSelector([Ao, G, ne], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
19446
+ var Wm = createSelector([Kt], (a2) => st(a2));
19447
+ var Km = createSelector([es], (a2) => st(a2));
19448
+ var Ro = createSelector([K, D], (a2, e) => {
19478
19449
  let t = null;
19479
19450
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19480
19451
  });
19481
- var Co = createSelector([Z, w], (a2, e) => {
19452
+ var Ho = createSelector([Z, D], (a2, e) => {
19482
19453
  let t = null;
19483
19454
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
19484
19455
  });
19485
- var Nr = class {
19456
+ var _r = class {
19486
19457
  constructor() {
19487
19458
  this.TAG = "[HTTPAnalyticsTransport]";
19488
19459
  this.failedEvents = new ce("client-events");
@@ -19501,7 +19472,7 @@ var Nr = class {
19501
19472
  this.addEventToStorage(e);
19502
19473
  return;
19503
19474
  }
19504
- 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" ? Fs : Gs;
19475
+ 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" ? Vs : Fs;
19505
19476
  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) => {
19506
19477
  if (r.status === 401) {
19507
19478
  this.removeFromStorage(e);
@@ -19527,66 +19498,66 @@ var Nr = class {
19527
19498
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
19528
19499
  }
19529
19500
  };
19530
- var Te = new Nr();
19501
+ var Te = new _r();
19531
19502
  var $ = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))($ || {});
19532
19503
  var Bi = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(Bi || {});
19533
19504
  var Ji = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(Ji || {});
19534
- var zo = (a2) => a2.localPeer.id;
19535
- var Yo = (a2) => a2.localPeer.audioTrack;
19536
- var Xo = (a2) => a2.localPeer.videoTrack;
19537
- var Zo = (a2, e) => e;
19538
- var ya = (a2, e) => e;
19539
- var en = (a2) => a2.remoteTrackStats;
19540
- var ka = (a2) => a2.peerStats;
19541
- var Vr = (a2) => a2.localTrackStats;
19542
- var ve = createSelector([ka, zo], (a2, e) => a2[e]);
19543
- var tn = createSelector(ve, (a2) => {
19505
+ var Qo = (a2) => a2.localPeer.id;
19506
+ var zo = (a2) => a2.localPeer.audioTrack;
19507
+ var Yo = (a2) => a2.localPeer.videoTrack;
19508
+ var Xo = (a2, e) => e;
19509
+ var Ma = (a2, e) => e;
19510
+ var Zo = (a2) => a2.remoteTrackStats;
19511
+ var ya = (a2) => a2.peerStats;
19512
+ var Br = (a2) => a2.localTrackStats;
19513
+ var ve = createSelector([ya, Qo], (a2, e) => a2[e]);
19514
+ var en = createSelector(ve, (a2) => {
19544
19515
  var e;
19545
19516
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
19546
19517
  });
19547
- var rn = createSelector(ve, (a2) => {
19518
+ var tn = createSelector(ve, (a2) => {
19548
19519
  var e;
19549
19520
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
19550
19521
  });
19551
- var sn = createSelector(ve, (a2) => {
19522
+ var rn = createSelector(ve, (a2) => {
19552
19523
  var e;
19553
19524
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
19554
19525
  });
19555
- var an = createSelector(ve, (a2) => {
19526
+ var sn = createSelector(ve, (a2) => {
19556
19527
  var e;
19557
19528
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
19558
19529
  });
19559
- var on = createSelector(ve, (a2) => {
19530
+ var an = createSelector(ve, (a2) => {
19560
19531
  var e;
19561
19532
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
19562
19533
  });
19563
- var nn = createSelector(ve, (a2) => {
19534
+ var on = createSelector(ve, (a2) => {
19564
19535
  var e;
19565
19536
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
19566
19537
  });
19567
- var cn = createSelector(ve, (a2) => {
19538
+ var nn = createSelector(ve, (a2) => {
19568
19539
  var e;
19569
19540
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
19570
19541
  });
19571
- var dn = createSelector(ve, (a2) => {
19542
+ var cn = createSelector(ve, (a2) => {
19572
19543
  var e;
19573
19544
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
19574
19545
  });
19575
- var ln = createSelector([ka, Zo], (a2, e) => e ? a2[e] : void 0);
19576
- var un = createSelector([en, ya], (a2, e) => e ? a2[e] : void 0);
19577
- var Fr = createSelector([Vr, ya], (a2, e) => e ? a2[e] : void 0);
19578
- var pn = A(ln);
19579
- var hn = A(un);
19580
- var mn = createSelector([Vr, Yo], (a2, e) => {
19546
+ var dn = createSelector([ya, Xo], (a2, e) => e ? a2[e] : void 0);
19547
+ var ln = createSelector([Zo, Ma], (a2, e) => e ? a2[e] : void 0);
19548
+ var Vr = createSelector([Br, Ma], (a2, e) => e ? a2[e] : void 0);
19549
+ var un = b(dn);
19550
+ var pn = b(ln);
19551
+ var hn = createSelector([Br, zo], (a2, e) => {
19581
19552
  var t;
19582
19553
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19583
19554
  });
19584
- var Sn = A(createSelector(Fr, (a2) => a2 == null ? void 0 : a2[0]));
19585
- var gn = createSelector([Vr, Xo], (a2, e) => {
19555
+ var mn = b(createSelector(Vr, (a2) => a2 == null ? void 0 : a2[0]));
19556
+ var Sn = createSelector([Br, Yo], (a2, e) => {
19586
19557
  var t;
19587
19558
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
19588
19559
  });
19589
- var Tn = A(createSelector(Fr, (a2) => a2));
19560
+ var gn = b(createSelector(Vr, (a2) => a2));
19590
19561
 
19591
19562
  // src/Prebuilt/components/Header/StreamActions.tsx
19592
19563
  import {
@@ -19856,7 +19827,7 @@ var RecordingStatus = () => {
19856
19827
  };
19857
19828
  var RecordingPauseStatus = () => {
19858
19829
  const recording = useHMSStore25(selectRecordingState);
19859
- if (recording.hls && recording.hls.state === Ls.PAUSED) {
19830
+ if (recording.hls && recording.hls.state === Cs.PAUSED) {
19860
19831
  return /* @__PURE__ */ React54.createElement(
19861
19832
  Tooltip,
19862
19833
  {
@@ -20256,6 +20227,8 @@ var MwebOptions = ({
20256
20227
  const peerCount = useHMSStore29(selectPeerCount3);
20257
20228
  const emojiCardRef = useRef14(null);
20258
20229
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
20230
+ const { toggleAudio, toggleVideo } = useAVToggle3();
20231
+ const noAVPermissions = !(toggleAudio || toggleVideo);
20259
20232
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
20260
20233
  const { title, description } = useRoomLayoutHeader();
20261
20234
  const toggleDetailsSheet = useSheetToggle(SHEET_OPTIONS.ROOM_DETAILS);
@@ -20317,7 +20290,7 @@ var MwebOptions = ({
20317
20290
  /* @__PURE__ */ React58.createElement(PeopleIcon, null),
20318
20291
  /* @__PURE__ */ React58.createElement(ActionTile.Title, null, "Participants")
20319
20292
  ),
20320
- elements.hand_raise ? /* @__PURE__ */ React58.createElement(
20293
+ !noAVPermissions ? /* @__PURE__ */ React58.createElement(
20321
20294
  ActionTile.Root,
20322
20295
  {
20323
20296
  active: isHandRaised,
@@ -20491,10 +20464,6 @@ import React60 from "react";
20491
20464
  import { HandIcon as HandIcon3, HandRaiseSlashedIcon as HandRaiseSlashedIcon2 } from "@100mslive/react-icons";
20492
20465
  var RaiseHand = ({ css: css2 }) => {
20493
20466
  const { isHandRaised, toggleHandRaise } = useMyMetadata();
20494
- const { elements } = useRoomLayoutConferencingScreen();
20495
- if (!elements.hand_raise) {
20496
- return null;
20497
- }
20498
20467
  return /* @__PURE__ */ React60.createElement(Tooltip, { title: isHandRaised ? "Lower hand" : "Raise hand" }, /* @__PURE__ */ React60.createElement(
20499
20468
  IconButton_default,
20500
20469
  {
@@ -21992,6 +21961,8 @@ var Footer2 = ({
21992
21961
  const isMobile = useMedia11(config.media.md);
21993
21962
  const isOverlayChat = !!((_a8 = elements == null ? void 0 : elements.chat) == null ? void 0 : _a8.is_overlay);
21994
21963
  const openByDefault = ((_b7 = elements == null ? void 0 : elements.chat) == null ? void 0 : _b7.initial_state) === Chat_ChatState.CHAT_STATE_OPEN;
21964
+ const { toggleAudio, toggleVideo } = useAVToggle4();
21965
+ const noAVPermissions = !(toggleAudio || toggleVideo);
21995
21966
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
21996
21967
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
21997
21968
  const { showPolls } = useShowPolls();
@@ -22039,7 +22010,7 @@ var Footer2 = ({
22039
22010
  }
22040
22011
  }
22041
22012
  },
22042
- isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
22013
+ isMobile ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, noAVPermissions ? /* @__PURE__ */ React77.createElement(RaiseHand, null) : null, (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType })) : /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(ScreenshareToggle, null), /* @__PURE__ */ React77.createElement(RaiseHand, null), (elements == null ? void 0 : elements.emoji_reactions) && /* @__PURE__ */ React77.createElement(EmojiReaction, null), /* @__PURE__ */ React77.createElement(LeaveRoom, { screenType }))
22043
22014
  ),
22044
22015
  /* @__PURE__ */ React77.createElement(Footer.Right, null, /* @__PURE__ */ React77.createElement(WhiteboardToggle, null), showPolls && /* @__PURE__ */ React77.createElement(PollsToggle, null), !isMobile && (elements == null ? void 0 : elements.chat) && /* @__PURE__ */ React77.createElement(ChatToggle, null), (elements == null ? void 0 : elements.participant_list) && /* @__PURE__ */ React77.createElement(ParticipantCount, null), /* @__PURE__ */ React77.createElement(MoreSettings, { elements, screenType }))
22045
22016
  );
@@ -22116,7 +22087,7 @@ import {
22116
22087
  selectLocalPeer as selectLocalPeer7,
22117
22088
  selectRoomState as selectRoomState5,
22118
22089
  selectVideoTrackByID as selectVideoTrackByID5,
22119
- useAVToggle as useAVToggle3,
22090
+ useAVToggle as useAVToggle6,
22120
22091
  useHMSStore as useHMSStore70,
22121
22092
  useParticipants as useParticipants2,
22122
22093
  usePreviewJoin,
@@ -22378,10 +22349,10 @@ var PrevMenu = () => {
22378
22349
  const sortedPolls = useMemo5(
22379
22350
  () => {
22380
22351
  var _a8;
22381
- return (_a8 = polls == null ? void 0 : polls.sort((a2, b) => {
22352
+ return (_a8 = polls == null ? void 0 : polls.sort((a2, b2) => {
22382
22353
  var _a9, _b7;
22383
- return (((_a9 = b.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
22384
- })) == null ? void 0 : _a8.sort((a2, b) => (b.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
22354
+ return (((_a9 = b2.createdAt) == null ? void 0 : _a9.getTime()) || 0) - (((_b7 = a2.createdAt) == null ? void 0 : _b7.getTime()) || 0);
22355
+ })) == null ? void 0 : _a8.sort((a2, b2) => (b2.state === "started" ? 1 : 0) - (a2.state === "started" ? 1 : 0));
22385
22356
  },
22386
22357
  [polls]
22387
22358
  );
@@ -23883,7 +23854,7 @@ var usePinnedMessages = () => {
23883
23854
  if (pinnedMessages[indexToRemove]) {
23884
23855
  yield hmsActions.sessionStore.set(
23885
23856
  "pinnedMessages" /* PINNED_MESSAGES */,
23886
- pinnedMessages.filter((_2, index) => index !== indexToRemove)
23857
+ pinnedMessages.filter((_, index) => index !== indexToRemove)
23887
23858
  ).catch((err) => ToastManager.addToast({ title: err.description }));
23888
23859
  }
23889
23860
  }),
@@ -24564,7 +24535,7 @@ import React111, { useCallback as useCallback28, useEffect as useEffect28, useRe
24564
24535
  import { useMedia as useMedia16 } from "react-use";
24565
24536
  import data2 from "@emoji-mart/data";
24566
24537
  import Picker from "@emoji-mart/react";
24567
- import { selectLocalPeer as selectLocalPeer3, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24538
+ import { selectLocalPeer as selectLocalPeer3, useAVToggle as useAVToggle5, useHMSActions as useHMSActions37, useHMSStore as useHMSStore57 } from "@100mslive/react-sdk";
24568
24539
  import { EmojiIcon as EmojiIcon3, PauseCircleIcon as PauseCircleIcon2, SendIcon, VerticalMenuIcon as VerticalMenuIcon7 } from "@100mslive/react-icons";
24569
24540
 
24570
24541
  // src/Prebuilt/components/Chat/ChatSelectorContainer.tsx
@@ -24974,6 +24945,8 @@ var ChatFooter = ({ onSend, children }) => {
24974
24945
  const defaultSelection = useDefaultChatSelection();
24975
24946
  const selection = selectedPeer.name || selectedRole || defaultSelection;
24976
24947
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
24948
+ const { toggleAudio, toggleVideo } = useAVToggle5();
24949
+ const noAVPermissions = !(toggleAudio || toggleVideo);
24977
24950
  const isMwebHLSStream = useMobileHLSStream();
24978
24951
  const isLandscapeHLSStream = useLandscapeHLSStream();
24979
24952
  useEffect28(() => {
@@ -25139,7 +25112,7 @@ var ChatFooter = ({ onSend, children }) => {
25139
25112
  },
25140
25113
  gap: "2"
25141
25114
  },
25142
- /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }),
25115
+ noAVPermissions ? /* @__PURE__ */ React111.createElement(RaiseHand, { css: { bg: "$surface_default" } }) : null,
25143
25116
  /* @__PURE__ */ React111.createElement(MoreSettings, { elements, screenType })
25144
25117
  ))));
25145
25118
  };
@@ -25246,7 +25219,7 @@ var StickIndicator = ({ total, index }) => {
25246
25219
  if (total < 2) {
25247
25220
  return null;
25248
25221
  }
25249
- return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_2, i) => /* @__PURE__ */ React114.createElement(
25222
+ return /* @__PURE__ */ React114.createElement(Flex, { direction: "column", css: { gap: "$1" } }, [...Array(sticksCount)].map((_, i) => /* @__PURE__ */ React114.createElement(
25250
25223
  Box,
25251
25224
  {
25252
25225
  css: {
@@ -25381,7 +25354,7 @@ var Chat = () => {
25381
25354
  const listRef = useRef21(null);
25382
25355
  const hmsActions = useHMSActions39();
25383
25356
  const vanillaStore = useHMSVanillaStore10();
25384
- const { enabled: isChatEnabled = true } = useHMSStore60(dm("chatState" /* CHAT_STATE */)) || {};
25357
+ const { enabled: isChatEnabled = true } = useHMSStore60(sm("chatState" /* CHAT_STATE */)) || {};
25385
25358
  const isMobile = useMedia18(config.media.md);
25386
25359
  const isMobileHLSStream = useMobileHLSStream();
25387
25360
  const isLandscapeStream = useLandscapeHLSStream();
@@ -25465,7 +25438,7 @@ var NewMessageIndicator = ({
25465
25438
  scrollToBottom,
25466
25439
  listRef
25467
25440
  }) => {
25468
- const unreadCount = useHMSStore60(qn);
25441
+ const unreadCount = useHMSStore60(Kn);
25469
25442
  if (!unreadCount || !listRef.current) {
25470
25443
  return null;
25471
25444
  }
@@ -26545,7 +26518,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26545
26518
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
26546
26519
  const hmsActions = useHMSActions42();
26547
26520
  const localPeer = useHMSStore68(selectLocalPeer6);
26548
- const role = useHMSStore68(qt);
26521
+ const role = useHMSStore68(Kt);
26549
26522
  const isVideoOn = useHMSStore68(selectIsLocalVideoEnabled5);
26550
26523
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
26551
26524
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -26553,10 +26526,10 @@ var VBPicker = ({ backgroundMedia = [] }) => {
26553
26526
  const [blurAmount, setBlurAmount] = useState55(VBHandler.getBlurAmount() || 0.5);
26554
26527
  const roomState = useHMSStore68(selectRoomState4);
26555
26528
  const isLargeRoom = useHMSStore68(selectIsLargeRoom3);
26556
- const isEffectsEnabled = useHMSStore68(rc);
26557
- const effectsKey = useHMSStore68(sc);
26529
+ const isEffectsEnabled = useHMSStore68(ic);
26530
+ const effectsKey = useHMSStore68(rc);
26558
26531
  const isPluginAdded = useHMSStore68(selectIsLocalVideoPluginPresent(((_a8 = VBHandler) == null ? void 0 : _a8.getName()) || ""));
26559
- const background = useHMSStore68(cm(APP_DATA.background));
26532
+ const background = useHMSStore68(rm(APP_DATA.background));
26560
26533
  const mediaList = backgroundMedia.length ? backgroundMedia.map((media) => media.url || "") : defaultMedia2;
26561
26534
  const inPreview = roomState === HMSRoomState4.Preview;
26562
26535
  const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
@@ -26998,7 +26971,7 @@ var PreviewJoin = ({
26998
26971
  const { isStreamingOn } = useRecordingStreaming11();
26999
26972
  const authToken = useAuthToken();
27000
26973
  const [name, setName] = useState56(initialName || previewPreference.name);
27001
- const { toggleAudio, toggleVideo } = useAVToggle3();
26974
+ const { toggleAudio, toggleVideo } = useAVToggle6();
27002
26975
  const [previewError, setPreviewError] = useState56(false);
27003
26976
  const { endpoints } = useHMSPrebuiltContext();
27004
26977
  const { peerCount } = useParticipants2();
@@ -27012,7 +26985,7 @@ var PreviewJoin = ({
27012
26985
  speakerAutoSelectionBlacklist: ["Yeti Stereo Microphone"]
27013
26986
  },
27014
26987
  captureNetworkQualityInPreview: true,
27015
- handleError: (_2, method) => {
26988
+ handleError: (_, method) => {
27016
26989
  if (method === "preview") {
27017
26990
  setPreviewError(true);
27018
26991
  }
@@ -27086,7 +27059,7 @@ var Container4 = styled("div", __spreadProps(__spreadValues({
27086
27059
  }));
27087
27060
  var PreviewTile = ({ name, error }) => {
27088
27061
  const localPeer = useHMSStore70(selectLocalPeer7);
27089
- const { isLocalAudioEnabled, toggleAudio } = useAVToggle3();
27062
+ const { isLocalAudioEnabled, toggleAudio } = useAVToggle6();
27090
27063
  const isVideoOn = useHMSStore70(selectIsLocalVideoEnabled6);
27091
27064
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
27092
27065
  const trackSelector = selectVideoTrackByID5(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -27426,7 +27399,7 @@ var Pagination = ({
27426
27399
  if (numPages <= 1) {
27427
27400
  return null;
27428
27401
  }
27429
- return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_2, i) => /* @__PURE__ */ React136.createElement(
27402
+ return /* @__PURE__ */ React136.createElement(StyledPagination.Root, { css: { flexShrink: 0 } }, /* @__PURE__ */ React136.createElement(StyledPagination.Chevron, { disabled: disableLeft, onClick: prevPage }, /* @__PURE__ */ React136.createElement(ChevronLeftIcon7, { width: 16, height: 16, style: { cursor: disableLeft ? "not-allowed" : "pointer" } })), numPages <= 5 ? /* @__PURE__ */ React136.createElement(StyledPagination.Dots, null, [...Array(numPages)].map((_, i) => /* @__PURE__ */ React136.createElement(
27430
27403
  StyledPagination.Dot,
27431
27404
  {
27432
27405
  key: i,
@@ -27533,7 +27506,7 @@ var useTileLayout = ({
27533
27506
  }
27534
27507
  const maxRows = Math.ceil(noOfTilesInPage / maxCols);
27535
27508
  let index = 0;
27536
- const matrix = new Array(maxRows).fill(null).map((_2, i) => {
27509
+ const matrix = new Array(maxRows).fill(null).map((_, i) => {
27537
27510
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
27538
27511
  const rowElements = [];
27539
27512
  for (let j = 0; j < numCols; j++) {
@@ -27554,10 +27527,10 @@ var useTileLayout = ({
27554
27527
  tileHeight = maxRowHeight;
27555
27528
  } else {
27556
27529
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
27557
- for (const h2 of calcHeights) {
27558
- if (h2 < maxRowHeight) {
27559
- if (tileHeight < h2) {
27560
- tileHeight = h2;
27530
+ for (const h of calcHeights) {
27531
+ if (h < maxRowHeight) {
27532
+ if (tileHeight < h) {
27533
+ tileHeight = h;
27561
27534
  }
27562
27535
  }
27563
27536
  }
@@ -28260,7 +28233,7 @@ var PeersSorter = class {
28260
28233
  this.speaker = void 0;
28261
28234
  this.tilesPerPage = tilesPerPage;
28262
28235
  const peerIds = new Set(peers.map((peer) => peer.id));
28263
- this.peers.forEach((_2, key) => {
28236
+ this.peers.forEach((_, key) => {
28264
28237
  if (!peerIds.has(key)) {
28265
28238
  this.peers.delete(key);
28266
28239
  }
@@ -28665,7 +28638,7 @@ var useCloseScreenshareWhiteboard = () => {
28665
28638
  };
28666
28639
 
28667
28640
  // src/Prebuilt/layouts/VideoStreamingSection.tsx
28668
- var HLSView = React151.lazy(() => import("./HLSView-XI2Q44RQ.js"));
28641
+ var HLSView = React151.lazy(() => import("./HLSView-UN7O7GT2.js"));
28669
28642
  var VideoStreamingSection = ({
28670
28643
  screenType,
28671
28644
  elements,
@@ -28995,6 +28968,8 @@ var ConferenceScreen = () => {
28995
28968
  const isMobileDevice = isAndroid || isIOS || isIPadOS;
28996
28969
  const dropdownListRef = useRef25();
28997
28970
  const [isHLSStarted] = useSetAppDataByKey(APP_DATA.hlsStarted);
28971
+ const { toggleAudio, toggleVideo } = useAVToggle7();
28972
+ const noAVPermissions = !(toggleAudio || toggleVideo);
28998
28973
  const showChat = !!((_a8 = screenProps.elements) == null ? void 0 : _a8.chat);
28999
28974
  const autoRoomJoined = useRef25(isPreviewScreenEnabled);
29000
28975
  const isMobileHLSStream = useMobileHLSStream();
@@ -29118,7 +29093,7 @@ var ConferenceScreen = () => {
29118
29093
  justify: "end",
29119
29094
  gap: "2"
29120
29095
  },
29121
- /* @__PURE__ */ React155.createElement(RaiseHand, null),
29096
+ noAVPermissions ? /* @__PURE__ */ React155.createElement(RaiseHand, null) : null,
29122
29097
  /* @__PURE__ */ React155.createElement(MoreSettings, { elements: screenProps.elements, screenType: screenProps.screenType }),
29123
29098
  /* @__PURE__ */ React155.createElement(
29124
29099
  Box,
@@ -29657,7 +29632,7 @@ import {
29657
29632
  PeopleRemoveIcon as PeopleRemoveIcon4,
29658
29633
  PoorConnectivityIcon as PoorConnectivityIcon2
29659
29634
  } from "@100mslive/react-icons";
29660
- var ChatAction = React163.forwardRef((_2, ref) => {
29635
+ var ChatAction = React163.forwardRef((_, ref) => {
29661
29636
  const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
29662
29637
  const isChatOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.CHAT);
29663
29638
  if (isChatOpen) {
@@ -30272,7 +30247,7 @@ function Notifications() {
30272
30247
  }, []);
30273
30248
  useCustomEvent4({ type: ROLE_CHANGE_DECLINED, onEvent: handleRoleChangeDenied });
30274
30249
  useEffect65(() => {
30275
- var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m2, _n2, _o2, _p;
30250
+ var _a9, _b8, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n2, _o2, _p;
30276
30251
  if (!notification || isNotificationDisabled) {
30277
30252
  return;
30278
30253
  }
@@ -30313,7 +30288,7 @@ function Notifications() {
30313
30288
  });
30314
30289
  break;
30315
30290
  case HMSNotificationTypes10.ROLE_UPDATED: {
30316
- if (((_m2 = notification.data) == null ? void 0 : _m2.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30291
+ if (((_m = notification.data) == null ? void 0 : _m.isLocal) && ((_n2 = notification.data) == null ? void 0 : _n2.roleName)) {
30317
30292
  ToastManager.addToast({
30318
30293
  title: `You are now a ${notification.data.roleName}`
30319
30294
  });
@@ -31030,4 +31005,4 @@ lodash/lodash.js:
31030
31005
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
31031
31006
  *)
31032
31007
  */
31033
- //# sourceMappingURL=chunk-3JLNG275.js.map
31008
+ //# sourceMappingURL=chunk-4NHNNVQ3.js.map