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

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -34,8 +34,8 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
- var __esm = (fn2, res) => function __init() {
38
- return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
37
+ var __esm = (fn, res) => function __init() {
38
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
39
39
  };
40
40
  var __commonJS = (cb, mod) => function __require() {
41
41
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
@@ -107,7 +107,7 @@ var __async = (__this, __arguments, generator) => {
107
107
  var define_process_env_default;
108
108
  var init_define_process_env = __esm({
109
109
  "<define:process.env>"() {
110
- define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0d684096-4e1e-4f67-89ae-f5d3a4e09794", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.14-alpha.5", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.24-alpha.5", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_0d684096-4e1e-4f67-89ae-f5d3a4e09794", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.24-alpha.5", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "XXXXX-XXXXX-XXXXX-XXXXX", SHLVL: "1", npm_package_dependencies__radix_ui_react_tooltip: "1.0.6", npm_package_dependencies__radix_ui_react_popover: "1.0.6", npm_package_dependencies__100mslive_types_prebuilt: "0.12.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "600", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241015.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.8/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:19043", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.24-alpha.5", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11590149060", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "dc498407583217b11dc845e391849808c2ace147", GITHUB_BASE_REF: "", ImageOS: "ubuntu22", npm_package_workspaces_1: "examples/*", npm_package_scripts_start: 'concurrently "yarn dev" "yarn types"', npm_config_ignore_scripts: "", NX_TASK_HASH: "e8e84182bdff362a7cf5c82c877f4e938d5dacf319b0b9c2fdd714bbb9ea9118", npm_package_exports___import: "./dist/index.js", GITHUB_WORKFLOW_REF: "100mslive/web-sdks/.github/workflows/publish.yml@refs/heads/publish-alpha", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_scripts_prebuilt: "cd packages/roomkit-react && yarn start", npm_package_devDependencies_postcss_loader: "^6.2.1", npm_package_devDependencies_esbuild_loader: "^4.0.2", PATH: "/tmp/yarn--1730279854036-0.6570051956995928:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279853842-0.5818758499451946:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279827827-0.9452825086184646:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730279827630-0.5069661722492098:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f3ee65c1-a5f7-463f-9dcd-2343662d78a2", INVOCATION_ID: "194b37312d054387aa04c5e61eaa2a3b", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_scripts_size: "size-limit", npm_package_devDependencies_size_limit: "^5.0.3", npm_package_name: "@100mslive/roomkit-react", npm_package_devDependencies__storybook_react_webpack5: "^7.0.27", npm_package_repository_type: "git", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "694", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 424", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.24-alpha.5", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.5", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "dc498407583217b11dc845e391849808c2ace147", GITHUB_RUN_ATTEMPT: "1", npm_package_size_limit_7_limit: "100 KB", npm_package_size_limit_4_path: "packages/hms-virtual-background/dist/index.cjs.js", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", npm_package_dependencies_qrcode_react: "^3.1.0", GITHUB_REF: "refs/heads/publish-alpha", GITHUB_ACTOR: "github-actions[bot]", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "MIT", npm_package_size_limit_5_path: "packages/hms-virtual-background/dist/index.js", npm_config_strict_ssl: "true", LEIN_HOME: "/usr/local/lib/lein", npm_package_size_limit_6_path: "packages/react-icons/dist/index.cjs.js", npm_package_scripts_format: "prettier -w src/**", npm_package_devDependencies_eslint_plugin_prettier: "^4.0.0", npm_package_devDependencies_eslint_config_react_app: "^7.0.0", NX_TASK_TARGET_PROJECT: "@100mslive/roomkit-react", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_0d684096-4e1e-4f67-89ae-f5d3a4e09794", JAVA_HOME: "/usr/lib/jvm/temurin-11-jdk-amd64", PWD: "/home/runner/work/web-sdks/web-sdks/packages/roomkit-react", GITHUB_ACTOR_ID: "41898282", RUNNER_WORKSPACE: "/home/runner/work/web-sdks", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_size_limit_7_path: "packages/react-icons/dist/index.js", npm_package_scripts_ybys: "yarn && yarn build --no-private && yarn storybook", npm_package_dependencies__radix_ui_react_progress: "1.0.0", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", LEIN_JAR: "/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_0d684096-4e1e-4f67-89ae-f5d3a4e09794", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_0d684096-4e1e-4f67-89ae-f5d3a4e09794" };
110
+ define_process_env_default = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", npm_package_devDependencies_ts_node: "^10.4.0", npm_package_devDependencies__types_node: "^16.11.17", npm_package_exports___index_css: "./dist/index.css", npm_package_exports___require: "./dist/index.cjs.js", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_screenfull: "^5.1.0", npm_package_dependencies_react_draggable: "^4.4.5", npm_package_dependencies__radix_ui_react_switch: "1.0.0", npm_package_dependencies__100mslive_hms_whiteboard: "0.0.14-alpha.6", USER: "runner", npm_package_devDependencies_jest: "26.6.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v18.20.4 linux x64", npm_config_always_auth: "", NX_WORKSPACE_ROOT: "/home/runner/work/web-sdks/web-sdks", npm_package_scripts_babel: "npx storybook@latest babelrc", CI: "true", npm_package_devDependencies__size_limit_file: "^5.0.3", npm_config_bin_links: "true", npm_config_wrap_output: "", npm_package_dependencies__radix_ui_react_tabs: "1.0.0", npm_package_dependencies__100mslive_react_sdk: "0.10.24-alpha.6", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", npm_config_init_version: "1.0.0", npm_package_dependencies__emoji_mart_react: "^1.0.1", npm_package_dependencies__emoji_mart_data: "^1.0.6", npm_package_dependencies__100mslive_hms_virtual_background: "1.13.24-alpha.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.12", npm_package_peerDependencies_react: ">=17.0.2 <19.0.0", npm_package_devDependencies__storybook_addon_links: "^7.0.27", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies__typescript_eslint_parser: "^5.4.0", npm_package_dependencies__radix_ui_react_dialog: "1.0.4", npm_package_devDependencies__types_react_window: "^1.8.5", npm_package_files_1: "src", npm_package_repository_directory: "packages/roomkit-react", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_controller: "cd packages/hls-controller && yarn start", npm_package_dependencies__stitches_react: "1.3.1-1", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "100mslive", npm_package_engines_node: ">=16", npm_package_devDependencies_typedoc_plugin_markdown: "^3.14.0", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.10.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "73883131", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu22", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_scripts_lint_fix: "yarn lint --fix", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", npm_package_devDependencies__storybook_addon_a11y: "^7.0.27", SYSTEMD_EXEC_PID: "607", npm_package_scripts_postinstall: "husky install && lerna bootstrap", npm_package_devDependencies_husky: "^6.0.0", npm_package_dependencies_recordrtc: "^5.6.2", npm_package_dependencies_eventemitter2: "^6.4.9", npm_package_dependencies__radix_ui_react_label: "1.0.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "2.0.5", npm_package_keywords_0: "100mslive", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.", npm_package_devDependencies_typescript: "~4.7.4", npm_package_devDependencies_typedoc: "^0.24.8", npm_package_devDependencies_babel_loader: "^8.2.5", npm_package_keywords_1: "react", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_react: "^18.1.0", npm_package_devDependencies__babel_preset_env: "^7.22.5", npm_package_keywords_2: "prebuilt", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241015.1.0", npm_package_devDependencies_prettier: "^2.4.1", npm_package_devDependencies_babel_jest: "^26.6.0", npm_package_scripts_dev: "node ../../scripts/dev", npm_package_keywords_3: "roomkit", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.8/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", FORCE_COLOR: "true", npm_package_dependencies__radix_ui_react_toast: "1.0.0", npm_package_dependencies__radix_ui_react_radio_group: "1.0.0", npm_package_dependencies__100mslive_hms_noise_cancellation: "0.0.1", npm_package_devDependencies__babel_preset_typescript: "^7.22.5", npm_package_exports___default: "./dist/index.js", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.2/x64", JOURNAL_STREAM: "8:20509", GITHUB_WORKFLOW: "Publish Packages", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "26.5.6", npm_package_devDependencies_lerna: "^5.6.2", npm_package_devDependencies__types_jest: "^27.0.3", npm_package_devDependencies__commitlint_config_conventional: "^15.0.0", npm_package_private: "true", npm_package_dependencies__radix_ui_react_accordion: "1.0.0", npm_package_devDependencies__babel_preset_react: "^7.22.5", npm_package_module: "dist/index.js", npm_package_scripts_lint: "eslint -c .eslintrc --no-error-on-unmatched-pattern src --ext .js --ext .jsx --ext .ts --ext .tsx", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^5.4.0", npm_config_registry: "https://registry.yarnpkg.com", npm_package_dependencies_react_window: "^1.8.7", npm_package_dependencies__100mslive_hls_player: "0.3.24-alpha.6", npm_package_devDependencies__types_lodash_merge: "^4.6.6", npm_package_devDependencies__storybook_cli: "^7.0.27", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "11611449873", STATS_VMFE: "true", npm_package_workspaces_0: "packages/*", npm_package_scripts_store: "cd packages/hms-video-store && yarn start", npm_package_devDependencies__babel_core: "^7.18.2", npm_package_dependencies_ts_pattern: "4.3.0", npm_package_devDependencies__storybook_addon_interactions: "^7.0.27", npm_package_devDependencies__storybook_addon_actions: "^7.0.27", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "bddfa9de9e715b0daebe639ecd08454da5080576", 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: "4c562cd3565b6a6355ece98709456c9a0c74cd3f3ccb5861b8dbd1cae821d145", 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--1730375898337-0.7631033212359539:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375898145-0.004213192783638853:/home/runner/work/web-sdks/web-sdks/packages/roomkit-react/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375872539-0.3156930248273693:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1730375872348-0.2885556953678776:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/home/runner/work/web-sdks/web-sdks/node_modules/.bin:/opt/hostedtoolcache/node/18.20.4/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/18.20.4/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/18.20.4/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8f70b829-cf89-4be3-8e35-e9bdf7e1bf0f", INVOCATION_ID: "9c28b118c7924307a45232f7fe15865a", 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: "696", GITHUB_TRIGGERING_ACTOR: "github-actions[bot]", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_lint_staged____js_ts_jsx_tsx_: "eslint", npm_package_devDependencies_babel_plugin_istanbul: "^6.1.1", LERNA_PACKAGE_NAME: "@100mslive/roomkit-react", npm_package_dependencies__radix_ui_react_select: "1.0.0", npm_package_size_limit_0_limit: "20 KB", npm_package_devDependencies__commitlint_cli: "^15.0.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_size_limit_1_limit: "20 KB", npm_package_devDependencies_eslint_plugin_simple_import_sort: "^8.0.0", npm_package_devDependencies_eslint: "^8.9.0", npm_package_dependencies_react_intersection_observer: "^9.4.3", npm_package_dependencies_react_dom: "^18.2.0", npm_package_devDependencies__types_mdx: "2.0.2", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 415", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "publish-alpha", GITHUB_REPOSITORY: "100mslive/web-sdks", STATS_D_D: "false", npm_lifecycle_script: "rm -rf dist && node ../../scripts/build-webapp", npm_package_size_limit_2_limit: "400 KB", npm_package_resolutions_loader_utils: "^2.0.4", npm_package_devDependencies_dotenv: "^14.2.0", npm_package_dependencies__radix_ui_react_slider: "1.0.0", npm_package_scripts_types_build: "tsc -p tsconfig.json", npm_package_main: "dist/index.cjs.js", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_size_limit_3_limit: "20 KB", npm_package_size_limit_0_path: "packages/hms-video-store/dist/index.cjs.js", npm_package_scripts_cypress_open: "cypress open", npm_package_scripts_lerna_publish: "lerna publish from-package --dist-tag $PUBLISH_FLAG --yes --no-verify-access", npm_package_scripts_test: "yarn build --no-private && lerna run test", npm_package_devDependencies_concurrently: "^6.4.0", npm_config_version_git_message: "v%s", npm_package_dependencies__radix_ui_react_checkbox: "1.0.0", npm_package_dependencies__100mslive_react_icons: "0.10.24-alpha.6", npm_package_scripts_types: "tsc -w", GITHUB_REPOSITORY_ID: "429826515", GITHUB_ACTIONS: "true", npm_lifecycle_event: "build:only", npm_package_version: "0.3.24-alpha.6", npm_package_size_limit_4_limit: "20 KB", npm_package_size_limit_1_path: "packages/hms-video-store/dist/index.js", npm_package_resolutions_axios: "^1.7.4", npm_package_scripts_build_only: "rm -rf dist && node ../../scripts/build-webapp", npm_package_devDependencies__types_react: "^18.1.0", npm_package_sideEffects: "false", npm_package_repository_url: "https://github.com/100mslive/web-sdks.git", npm_package_source: "src/index.ts", GITHUB_REF_PROTECTED: "true", npm_config_argv: '{"remain":[],"cooked":["run","test"],"original":["test"]}', npm_package_size_limit_5_limit: "20 KB", npm_package_size_limit_2_path: "packages/roomkit-react/dist/index.cjs.js", npm_package_scripts_build: "yarn build:only && yarn types:build", npm_package_devDependencies_tslib: "^2.2.0", npm_package_devDependencies_nx: "^14.5.1", npm_package_devDependencies_lint_staged: "^12.0.3", NX_CLI_SET: "true", npm_package_dependencies_uuid: "^8.3.2", npm_package_dependencies_react_virtualized_auto_sizer: "^1.0.7", npm_package_dependencies_lodash_merge: "^4.6.2", npm_package_dependencies_emoji_mart: "^5.2.2", GITHUB_WORKSPACE: "/home/runner/work/web-sdks/web-sdks", ACCEPT_EULA: "Y", GITHUB_JOB: "publish_packages", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_size_limit_6_limit: "150 KB", npm_package_size_limit_3_path: "packages/roomkit-react/dist/index.js", npm_package_devDependencies_cypress: "^9.5.2", GITHUB_SHA: "bddfa9de9e715b0daebe639ecd08454da5080576", 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_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", 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_a8b45b4c-cfff-4c96-90f0-050a51be7b0b", npm_package_scripts_prestart: "rm -rf dist && yarn types:build", npm_package_author_name: "100ms", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_scripts_build_storybook: "sb build", npm_package_devDependencies_postcss: "^8.4.5", npm_package_devDependencies_esbuild: "^0.18.13", npm_config_save_prefix: "^", npm_config_ignore_optional: "", npm_package_dependencies_worker_timers: "^7.0.40", npm_package_typings: "dist/index.d.ts", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.1.12297006", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_storybook: "sb dev -p 6006", npm_package_devDependencies_esbuild_plugin_postcss2: "0.1.1", npm_package_dependencies_react_swipeable: "^7.0.1", npm_package_devDependencies_babel_plugin_react_require: "3.1.3", npm_package_devDependencies__storybook_testing_library: "^0.2.0", npm_package_devDependencies__storybook_addon_essentials: "^7.0.27", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", STATS_EXTP: "https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_scripts_reactsdk: "cd packages/react-sdk && yarn start", npm_package_dependencies_react_use: "^17.4.0", npm_package_dependencies__radix_ui_react_collapsible: "1.0.0", npm_package_devDependencies_storybook_dark_mode: "^3.0.0", npm_package_devDependencies_knip: "^5.11.0", npm_package_devDependencies__storybook_react: "^7.0.27", INIT_CWD: "/home/runner/work/web-sdks/web-sdks", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.1.12297006", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_a8b45b4c-cfff-4c96-90f0-050a51be7b0b" };
111
111
  }
112
112
  });
113
113
 
@@ -2286,8 +2286,8 @@ var require_lodash = __commonJS({
2286
2286
  function createBind(func, bitmask, thisArg) {
2287
2287
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2288
2288
  function wrapper() {
2289
- var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2290
- return fn2.apply(isBind ? thisArg : this, arguments);
2289
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2290
+ return fn.apply(isBind ? thisArg : this, arguments);
2291
2291
  }
2292
2292
  return wrapper;
2293
2293
  }
@@ -2353,8 +2353,8 @@ var require_lodash = __commonJS({
2353
2353
  arity - length
2354
2354
  );
2355
2355
  }
2356
- var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2357
- return apply(fn2, this, args);
2356
+ var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2357
+ return apply(fn, this, args);
2358
2358
  }
2359
2359
  return wrapper;
2360
2360
  }
@@ -2442,7 +2442,7 @@ var require_lodash = __commonJS({
2442
2442
  arity - length
2443
2443
  );
2444
2444
  }
2445
- var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func;
2445
+ var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
2446
2446
  length = args.length;
2447
2447
  if (argPos) {
2448
2448
  args = reorder(args, argPos);
@@ -2453,9 +2453,9 @@ var require_lodash = __commonJS({
2453
2453
  args.length = ary2;
2454
2454
  }
2455
2455
  if (this && this !== root && this instanceof wrapper) {
2456
- fn2 = Ctor || createCtor(fn2);
2456
+ fn = Ctor || createCtor(fn);
2457
2457
  }
2458
- return fn2.apply(thisBinding, args);
2458
+ return fn.apply(thisBinding, args);
2459
2459
  }
2460
2460
  return wrapper;
2461
2461
  }
@@ -2512,14 +2512,14 @@ var require_lodash = __commonJS({
2512
2512
  function createPartial(func, bitmask, thisArg, partials) {
2513
2513
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
2514
2514
  function wrapper() {
2515
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func;
2515
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
2516
2516
  while (++leftIndex < leftLength) {
2517
2517
  args[leftIndex] = partials[leftIndex];
2518
2518
  }
2519
2519
  while (argsLength--) {
2520
2520
  args[leftIndex++] = arguments[++argsIndex];
2521
2521
  }
2522
- return apply(fn2, isBind ? thisArg : this, args);
2522
+ return apply(fn, isBind ? thisArg : this, args);
2523
2523
  }
2524
2524
  return wrapper;
2525
2525
  }
@@ -4149,7 +4149,7 @@ var require_lodash = __commonJS({
4149
4149
  function eq(value, other) {
4150
4150
  return value === other || value !== value && other !== other;
4151
4151
  }
4152
- var gt = createRelationalOperation(baseGt);
4152
+ var gt2 = createRelationalOperation(baseGt);
4153
4153
  var gte = createRelationalOperation(function(value, other) {
4154
4154
  return value >= other;
4155
4155
  });
@@ -4291,7 +4291,7 @@ var require_lodash = __commonJS({
4291
4291
  function isWeakSet(value) {
4292
4292
  return isObjectLike(value) && baseGetTag(value) == weakSetTag;
4293
4293
  }
4294
- var lt2 = createRelationalOperation(baseLt);
4294
+ var lt = createRelationalOperation(baseLt);
4295
4295
  var lte = createRelationalOperation(function(value, other) {
4296
4296
  return value <= other;
4297
4297
  });
@@ -4373,7 +4373,7 @@ var require_lodash = __commonJS({
4373
4373
  var assignWith = createAssigner(function(object, source, srcIndex, customizer2) {
4374
4374
  copyObject(source, keys(source), object, customizer2);
4375
4375
  });
4376
- var at2 = flatRest(baseAt);
4376
+ var at = flatRest(baseAt);
4377
4377
  function create(prototype, properties) {
4378
4378
  var result2 = baseCreate(prototype);
4379
4379
  return properties == null ? result2 : baseAssign(result2, properties);
@@ -5107,7 +5107,7 @@ var require_lodash = __commonJS({
5107
5107
  lodash.assignIn = assignIn;
5108
5108
  lodash.assignInWith = assignInWith;
5109
5109
  lodash.assignWith = assignWith;
5110
- lodash.at = at2;
5110
+ lodash.at = at;
5111
5111
  lodash.before = before;
5112
5112
  lodash.bind = bind;
5113
5113
  lodash.bindAll = bindAll;
@@ -5288,7 +5288,7 @@ var require_lodash = __commonJS({
5288
5288
  lodash.forOwn = forOwn;
5289
5289
  lodash.forOwnRight = forOwnRight;
5290
5290
  lodash.get = get;
5291
- lodash.gt = gt;
5291
+ lodash.gt = gt2;
5292
5292
  lodash.gte = gte;
5293
5293
  lodash.has = has;
5294
5294
  lodash.hasIn = hasIn;
@@ -5341,7 +5341,7 @@ var require_lodash = __commonJS({
5341
5341
  lodash.lastIndexOf = lastIndexOf;
5342
5342
  lodash.lowerCase = lowerCase;
5343
5343
  lodash.lowerFirst = lowerFirst;
5344
- lodash.lt = lt2;
5344
+ lodash.lt = lt;
5345
5345
  lodash.lte = lte;
5346
5346
  lodash.max = max;
5347
5347
  lodash.maxBy = maxBy;
@@ -5628,16 +5628,16 @@ var require_ua_parser = __commonJS({
5628
5628
  return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
5629
5629
  }
5630
5630
  };
5631
- var rgxMapper = function(ua, arrays) {
5632
- var i = 0, j2, k2, p, q, matches, match18;
5631
+ var rgxMapper = function(ua2, arrays) {
5632
+ var i = 0, j, k2, p, q, matches, match18;
5633
5633
  while (i < arrays.length && !matches) {
5634
5634
  var regex = arrays[i], props = arrays[i + 1];
5635
- j2 = k2 = 0;
5636
- while (j2 < regex.length && !matches) {
5637
- if (!regex[j2]) {
5635
+ j = k2 = 0;
5636
+ while (j < regex.length && !matches) {
5637
+ if (!regex[j]) {
5638
5638
  break;
5639
5639
  }
5640
- matches = regex[j2++].exec(ua);
5640
+ matches = regex[j++].exec(ua2);
5641
5641
  if (!!matches) {
5642
5642
  for (p = 0; p < props.length; p++) {
5643
5643
  match18 = matches[++k2];
@@ -5669,8 +5669,8 @@ var require_ua_parser = __commonJS({
5669
5669
  }, strMapper = function(str, map) {
5670
5670
  for (var i in map) {
5671
5671
  if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {
5672
- for (var j2 = 0; j2 < map[i].length; j2++) {
5673
- if (has(map[i][j2], str)) {
5672
+ for (var j = 0; j < map[i].length; j++) {
5673
+ if (has(map[i][j], str)) {
5674
5674
  return i === UNKNOWN ? undefined2 : i;
5675
5675
  }
5676
5676
  }
@@ -6726,16 +6726,16 @@ var require_ua_parser = __commonJS({
6726
6726
  [NAME, VERSION]
6727
6727
  ]
6728
6728
  };
6729
- var UAParser = function(ua, extensions) {
6730
- if (typeof ua === OBJ_TYPE) {
6731
- extensions = ua;
6732
- ua = undefined2;
6729
+ var UAParser = function(ua2, extensions) {
6730
+ if (typeof ua2 === OBJ_TYPE) {
6731
+ extensions = ua2;
6732
+ ua2 = undefined2;
6733
6733
  }
6734
6734
  if (!(this instanceof UAParser)) {
6735
- return new UAParser(ua, extensions).getResult();
6735
+ return new UAParser(ua2, extensions).getResult();
6736
6736
  }
6737
6737
  var _navigator = typeof window2 !== UNDEF_TYPE && window2.navigator ? window2.navigator : undefined2;
6738
- var _ua = ua || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6738
+ var _ua = ua2 || (_navigator && _navigator.userAgent ? _navigator.userAgent : EMPTY);
6739
6739
  var _uach = _navigator && _navigator.userAgentData ? _navigator.userAgentData : undefined2;
6740
6740
  var _rgxmap = extensions ? extend(regexes, extensions) : regexes;
6741
6741
  var _isSelfNav = _navigator && _navigator.userAgent == _ua;
@@ -6801,8 +6801,8 @@ var require_ua_parser = __commonJS({
6801
6801
  this.getUA = function() {
6802
6802
  return _ua;
6803
6803
  };
6804
- this.setUA = function(ua2) {
6805
- _ua = typeof ua2 === STR_TYPE && ua2.length > UA_MAX_LENGTH ? trim(ua2, UA_MAX_LENGTH) : ua2;
6804
+ this.setUA = function(ua3) {
6805
+ _ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
6806
6806
  return this;
6807
6807
  };
6808
6808
  this.setUA(_ua);
@@ -6827,18 +6827,18 @@ var require_ua_parser = __commonJS({
6827
6827
  window2.UAParser = UAParser;
6828
6828
  }
6829
6829
  }
6830
- var $ = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
- if ($ && !$.ua) {
6830
+ var $2 = typeof window2 !== UNDEF_TYPE && (window2.jQuery || window2.Zepto);
6831
+ if ($2 && !$2.ua) {
6832
6832
  var parser = new UAParser();
6833
- $.ua = parser.getResult();
6834
- $.ua.get = function() {
6833
+ $2.ua = parser.getResult();
6834
+ $2.ua.get = function() {
6835
6835
  return parser.getUA();
6836
6836
  };
6837
- $.ua.set = function(ua) {
6838
- parser.setUA(ua);
6837
+ $2.ua.set = function(ua2) {
6838
+ parser.setUA(ua2);
6839
6839
  var result = parser.getResult();
6840
6840
  for (var prop in result) {
6841
- $.ua[prop] = result[prop];
6841
+ $2.ua[prop] = result[prop];
6842
6842
  }
6843
6843
  };
6844
6844
  }
@@ -7671,12 +7671,12 @@ var require_sdp = __commonJS({
7671
7671
  return parsed;
7672
7672
  };
7673
7673
  SDPUtils2.writeRtpMap = function(codec) {
7674
- let pt2 = codec.payloadType;
7674
+ let pt = codec.payloadType;
7675
7675
  if (codec.preferredPayloadType !== void 0) {
7676
- pt2 = codec.preferredPayloadType;
7676
+ pt = codec.preferredPayloadType;
7677
7677
  }
7678
7678
  const channels = codec.channels || codec.numChannels || 1;
7679
- return "a=rtpmap:" + pt2 + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7679
+ return "a=rtpmap:" + pt + " " + codec.name + "/" + codec.clockRate + (channels !== 1 ? "/" + channels : "") + "\r\n";
7680
7680
  };
7681
7681
  SDPUtils2.parseExtmap = function(line) {
7682
7682
  const parts = line.substring(9).split(" ");
@@ -7694,17 +7694,17 @@ var require_sdp = __commonJS({
7694
7694
  const parsed = {};
7695
7695
  let kv;
7696
7696
  const parts = line.substring(line.indexOf(" ") + 1).split(";");
7697
- for (let j2 = 0; j2 < parts.length; j2++) {
7698
- kv = parts[j2].trim().split("=");
7697
+ for (let j = 0; j < parts.length; j++) {
7698
+ kv = parts[j].trim().split("=");
7699
7699
  parsed[kv[0].trim()] = kv[1];
7700
7700
  }
7701
7701
  return parsed;
7702
7702
  };
7703
7703
  SDPUtils2.writeFmtp = function(codec) {
7704
7704
  let line = "";
7705
- let pt2 = codec.payloadType;
7705
+ let pt = codec.payloadType;
7706
7706
  if (codec.preferredPayloadType !== void 0) {
7707
- pt2 = codec.preferredPayloadType;
7707
+ pt = codec.preferredPayloadType;
7708
7708
  }
7709
7709
  if (codec.parameters && Object.keys(codec.parameters).length) {
7710
7710
  const params = [];
@@ -7715,7 +7715,7 @@ var require_sdp = __commonJS({
7715
7715
  params.push(param);
7716
7716
  }
7717
7717
  });
7718
- line += "a=fmtp:" + pt2 + " " + params.join(";") + "\r\n";
7718
+ line += "a=fmtp:" + pt + " " + params.join(";") + "\r\n";
7719
7719
  }
7720
7720
  return line;
7721
7721
  };
@@ -7728,13 +7728,13 @@ var require_sdp = __commonJS({
7728
7728
  };
7729
7729
  SDPUtils2.writeRtcpFb = function(codec) {
7730
7730
  let lines = "";
7731
- let pt2 = codec.payloadType;
7731
+ let pt = codec.payloadType;
7732
7732
  if (codec.preferredPayloadType !== void 0) {
7733
- pt2 = codec.preferredPayloadType;
7733
+ pt = codec.preferredPayloadType;
7734
7734
  }
7735
7735
  if (codec.rtcpFeedback && codec.rtcpFeedback.length) {
7736
7736
  codec.rtcpFeedback.forEach((fb) => {
7737
- lines += "a=rtcp-fb:" + pt2 + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7737
+ lines += "a=rtcp-fb:" + pt + " " + fb.type + (fb.parameter && fb.parameter.length ? " " + fb.parameter : "") + "\r\n";
7738
7738
  });
7739
7739
  }
7740
7740
  return lines;
@@ -7862,21 +7862,21 @@ var require_sdp = __commonJS({
7862
7862
  const mline = lines[0].split(" ");
7863
7863
  description.profile = mline[2];
7864
7864
  for (let i = 3; i < mline.length; i++) {
7865
- const pt2 = mline[i];
7865
+ const pt = mline[i];
7866
7866
  const rtpmapline = SDPUtils2.matchPrefix(
7867
7867
  mediaSection,
7868
- "a=rtpmap:" + pt2 + " "
7868
+ "a=rtpmap:" + pt + " "
7869
7869
  )[0];
7870
7870
  if (rtpmapline) {
7871
7871
  const codec = SDPUtils2.parseRtpMap(rtpmapline);
7872
7872
  const fmtps = SDPUtils2.matchPrefix(
7873
7873
  mediaSection,
7874
- "a=fmtp:" + pt2 + " "
7874
+ "a=fmtp:" + pt + " "
7875
7875
  );
7876
7876
  codec.parameters = fmtps.length ? SDPUtils2.parseFmtp(fmtps[0]) : {};
7877
7877
  codec.rtcpFeedback = SDPUtils2.matchPrefix(
7878
7878
  mediaSection,
7879
- "a=rtcp-fb:" + pt2 + " "
7879
+ "a=rtcp-fb:" + pt + " "
7880
7880
  ).map(SDPUtils2.parseRtcpFb);
7881
7881
  description.codecs.push(codec);
7882
7882
  switch (codec.name.toUpperCase()) {
@@ -8675,8 +8675,8 @@ var require_parser = __commonJS({
8675
8675
  media.push({ rtp: [], fmtp: [] });
8676
8676
  location = media[media.length - 1];
8677
8677
  }
8678
- for (var j2 = 0; j2 < (grammar[type] || []).length; j2 += 1) {
8679
- var obj = grammar[type][j2];
8678
+ for (var j = 0; j < (grammar[type] || []).length; j += 1) {
8679
+ var obj = grammar[type][j];
8680
8680
  if (obj.reg.test(content)) {
8681
8681
  return parseReg(obj, location, content);
8682
8682
  }
@@ -8873,10 +8873,10 @@ var require_react_is_production_min = __commonJS({
8873
8873
  var e = b2 ? Symbol.for("react.fragment") : 60107;
8874
8874
  var f = b2 ? Symbol.for("react.strict_mode") : 60108;
8875
8875
  var g = b2 ? Symbol.for("react.profiler") : 60114;
8876
- var h = b2 ? Symbol.for("react.provider") : 60109;
8876
+ var h2 = b2 ? Symbol.for("react.provider") : 60109;
8877
8877
  var k2 = b2 ? Symbol.for("react.context") : 60110;
8878
8878
  var l2 = b2 ? Symbol.for("react.async_mode") : 60111;
8879
- var m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8879
+ var m = b2 ? Symbol.for("react.concurrent_mode") : 60111;
8880
8880
  var n = b2 ? Symbol.for("react.forward_ref") : 60112;
8881
8881
  var p = b2 ? Symbol.for("react.suspense") : 60113;
8882
8882
  var q = b2 ? Symbol.for("react.suspense_list") : 60120;
@@ -8893,7 +8893,7 @@ var require_react_is_production_min = __commonJS({
8893
8893
  case c2:
8894
8894
  switch (a2 = a2.type, a2) {
8895
8895
  case l2:
8896
- case m2:
8896
+ case m:
8897
8897
  case e:
8898
8898
  case g:
8899
8899
  case f:
@@ -8905,7 +8905,7 @@ var require_react_is_production_min = __commonJS({
8905
8905
  case n:
8906
8906
  case t:
8907
8907
  case r:
8908
- case h:
8908
+ case h2:
8909
8909
  return a2;
8910
8910
  default:
8911
8911
  return u;
@@ -8917,12 +8917,12 @@ var require_react_is_production_min = __commonJS({
8917
8917
  }
8918
8918
  }
8919
8919
  function A(a2) {
8920
- return z2(a2) === m2;
8920
+ return z2(a2) === m;
8921
8921
  }
8922
8922
  exports.AsyncMode = l2;
8923
- exports.ConcurrentMode = m2;
8923
+ exports.ConcurrentMode = m;
8924
8924
  exports.ContextConsumer = k2;
8925
- exports.ContextProvider = h;
8925
+ exports.ContextProvider = h2;
8926
8926
  exports.Element = c2;
8927
8927
  exports.ForwardRef = n;
8928
8928
  exports.Fragment = e;
@@ -8940,7 +8940,7 @@ var require_react_is_production_min = __commonJS({
8940
8940
  return z2(a2) === k2;
8941
8941
  };
8942
8942
  exports.isContextProvider = function(a2) {
8943
- return z2(a2) === h;
8943
+ return z2(a2) === h2;
8944
8944
  };
8945
8945
  exports.isElement = function(a2) {
8946
8946
  return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
@@ -8970,7 +8970,7 @@ var require_react_is_production_min = __commonJS({
8970
8970
  return z2(a2) === p;
8971
8971
  };
8972
8972
  exports.isValidElementType = function(a2) {
8973
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8973
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y2 || a2.$$typeof === v);
8974
8974
  };
8975
8975
  exports.typeOf = z2;
8976
8976
  }
@@ -9359,7 +9359,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9359
9359
  shape: createShapeTypeChecker,
9360
9360
  exact: createStrictShapeTypeChecker
9361
9361
  };
9362
- function is(x, y2) {
9362
+ function is2(x, y2) {
9363
9363
  if (x === y2) {
9364
9364
  return x !== 0 || 1 / x === 1 / y2;
9365
9365
  } else {
@@ -9502,7 +9502,7 @@ var require_factoryWithTypeCheckers = __commonJS({
9502
9502
  function validate(props, propName, componentName, location, propFullName) {
9503
9503
  var propValue = props[propName];
9504
9504
  for (var i = 0; i < expectedValues.length; i++) {
9505
- if (is(propValue, expectedValues[i])) {
9505
+ if (is2(propValue, expectedValues[i])) {
9506
9506
  return null;
9507
9507
  }
9508
9508
  }
@@ -14602,8 +14602,8 @@ var AuthToken = React26.memo(({ authTokenByRoomCodeEndpoint, defaultAuthToken, a
14602
14602
  var convertError = (error) => {
14603
14603
  console.error("[error]", { error });
14604
14604
  console.warn(
14605
- "If you think this is a mistake on our side, please reach out to us over Discord:",
14606
- "https://discord.com/invite/kGdmszyzq2"
14605
+ "If you think this is a mistake on our side, please reach out to us on Dashboard:",
14606
+ "https://dashboard.100ms.live/dashboard"
14607
14607
  );
14608
14608
  return match3([error.action, error.code]).with(["GET_TOKEN", 403], () => ({
14609
14609
  title: "Psst! This room is currently inactive.",
@@ -19348,8 +19348,8 @@ var createSelector = createSelectorCreator(defaultMemoize);
19348
19348
  // ../hms-video-store/dist/index.js
19349
19349
  var import_ua_parser_js = __toESM(require_ua_parser());
19350
19350
  var import_lodash3 = __toESM(require_lodash2());
19351
+ import { v4 as vo } from "uuid";
19351
19352
  import { v4 as To } from "uuid";
19352
- import { v4 as So } from "uuid";
19353
19353
 
19354
19354
  // ../../node_modules/webrtc-adapter/src/js/adapter_core.js
19355
19355
  init_define_process_env();
@@ -19720,8 +19720,8 @@ function shimGetUserMedia(window2, browserDetails) {
19720
19720
  navigator2.getUserMedia = getUserMedia_.bind(navigator2);
19721
19721
  if (navigator2.mediaDevices.getUserMedia) {
19722
19722
  const origGetUserMedia = navigator2.mediaDevices.getUserMedia.bind(navigator2.mediaDevices);
19723
- navigator2.mediaDevices.getUserMedia = function(cs2) {
19724
- return shimConstraints_(cs2, (c2) => origGetUserMedia(c2).then((stream) => {
19723
+ navigator2.mediaDevices.getUserMedia = function(cs) {
19724
+ return shimConstraints_(cs, (c2) => origGetUserMedia(c2).then((stream) => {
19725
19725
  if (c2.audio && !stream.getAudioTracks().length || c2.video && !stream.getVideoTracks().length) {
19726
19726
  stream.getTracks().forEach((track) => {
19727
19727
  track.stop();
@@ -19841,20 +19841,20 @@ function shimOnTrack(window2) {
19841
19841
  }
19842
19842
  function shimGetSendersWithDtmf(window2) {
19843
19843
  if (typeof window2 === "object" && window2.RTCPeerConnection && !("getSenders" in window2.RTCPeerConnection.prototype) && "createDTMFSender" in window2.RTCPeerConnection.prototype) {
19844
- const shimSenderWithDtmf = function(pc, track) {
19844
+ const shimSenderWithDtmf = function(pc2, track) {
19845
19845
  return {
19846
19846
  track,
19847
19847
  get dtmf() {
19848
19848
  if (this._dtmf === void 0) {
19849
19849
  if (track.kind === "audio") {
19850
- this._dtmf = pc.createDTMFSender(track);
19850
+ this._dtmf = pc2.createDTMFSender(track);
19851
19851
  } else {
19852
19852
  this._dtmf = null;
19853
19853
  }
19854
19854
  }
19855
19855
  return this._dtmf;
19856
19856
  },
19857
- _pc: pc
19857
+ _pc: pc2
19858
19858
  };
19859
19859
  };
19860
19860
  if (!window2.RTCPeerConnection.prototype.getSenders) {
@@ -20209,11 +20209,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20209
20209
  }
20210
20210
  return this.getSenders().find((s) => s.track === track);
20211
20211
  };
20212
- function replaceInternalStreamId(pc, description) {
20212
+ function replaceInternalStreamId(pc2, description) {
20213
20213
  let sdp2 = description.sdp;
20214
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20215
- const externalStream = pc._reverseStreams[internalId];
20216
- const internalStream = pc._streams[externalStream.id];
20214
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20215
+ const externalStream = pc2._reverseStreams[internalId];
20216
+ const internalStream = pc2._streams[externalStream.id];
20217
20217
  sdp2 = sdp2.replace(
20218
20218
  new RegExp(internalStream.id, "g"),
20219
20219
  externalStream.id
@@ -20224,11 +20224,11 @@ function shimAddTrackRemoveTrack(window2, browserDetails) {
20224
20224
  sdp: sdp2
20225
20225
  });
20226
20226
  }
20227
- function replaceExternalStreamId(pc, description) {
20227
+ function replaceExternalStreamId(pc2, description) {
20228
20228
  let sdp2 = description.sdp;
20229
- Object.keys(pc._reverseStreams || []).forEach((internalId) => {
20230
- const externalStream = pc._reverseStreams[internalId];
20231
- const internalStream = pc._streams[externalStream.id];
20229
+ Object.keys(pc2._reverseStreams || []).forEach((internalId) => {
20230
+ const externalStream = pc2._reverseStreams[internalId];
20231
+ const internalStream = pc2._streams[externalStream.id];
20232
20232
  sdp2 = sdp2.replace(
20233
20233
  new RegExp(externalStream.id, "g"),
20234
20234
  internalStream.id
@@ -20342,9 +20342,9 @@ function shimPeerConnection(window2, browserDetails) {
20342
20342
  }
20343
20343
  function fixNegotiationNeeded(window2, browserDetails) {
20344
20344
  wrapPeerConnectionEvent(window2, "negotiationneeded", (e) => {
20345
- const pc = e.target;
20346
- if (browserDetails.version < 72 || pc.getConfiguration && pc.getConfiguration().sdpSemantics === "plan-b") {
20347
- if (pc.signalingState !== "stable") {
20345
+ const pc2 = e.target;
20346
+ if (browserDetails.version < 72 || pc2.getConfiguration && pc2.getConfiguration().sdpSemantics === "plan-b") {
20347
+ if (pc2.signalingState !== "stable") {
20348
20348
  return;
20349
20349
  }
20350
20350
  }
@@ -20791,24 +20791,24 @@ function shimRemoteStreamsAPI(window2) {
20791
20791
  });
20792
20792
  const origSetRemoteDescription = window2.RTCPeerConnection.prototype.setRemoteDescription;
20793
20793
  window2.RTCPeerConnection.prototype.setRemoteDescription = function setRemoteDescription() {
20794
- const pc = this;
20794
+ const pc2 = this;
20795
20795
  if (!this._onaddstreampoly) {
20796
20796
  this.addEventListener("track", this._onaddstreampoly = function(e) {
20797
20797
  e.streams.forEach((stream) => {
20798
- if (!pc._remoteStreams) {
20799
- pc._remoteStreams = [];
20798
+ if (!pc2._remoteStreams) {
20799
+ pc2._remoteStreams = [];
20800
20800
  }
20801
- if (pc._remoteStreams.indexOf(stream) >= 0) {
20801
+ if (pc2._remoteStreams.indexOf(stream) >= 0) {
20802
20802
  return;
20803
20803
  }
20804
- pc._remoteStreams.push(stream);
20804
+ pc2._remoteStreams.push(stream);
20805
20805
  const event = new Event("addstream");
20806
20806
  event.stream = stream;
20807
- pc.dispatchEvent(event);
20807
+ pc2.dispatchEvent(event);
20808
20808
  });
20809
20809
  });
20810
20810
  }
20811
- return origSetRemoteDescription.apply(pc, arguments);
20811
+ return origSetRemoteDescription.apply(pc2, arguments);
20812
20812
  };
20813
20813
  }
20814
20814
  }
@@ -21174,13 +21174,13 @@ function shimSendThrowTypeError(window2) {
21174
21174
  if (!(window2.RTCPeerConnection && "createDataChannel" in window2.RTCPeerConnection.prototype)) {
21175
21175
  return;
21176
21176
  }
21177
- function wrapDcSend(dc, pc) {
21177
+ function wrapDcSend(dc, pc2) {
21178
21178
  const origDataChannelSend = dc.send;
21179
21179
  dc.send = function send() {
21180
21180
  const data3 = arguments[0];
21181
21181
  const length = data3.length || data3.size || data3.byteLength;
21182
- if (dc.readyState === "open" && pc.sctp && length > pc.sctp.maxMessageSize) {
21183
- throw new TypeError("Message too large (can send a maximum of " + pc.sctp.maxMessageSize + " bytes)");
21182
+ if (dc.readyState === "open" && pc2.sctp && length > pc2.sctp.maxMessageSize) {
21183
+ throw new TypeError("Message too large (can send a maximum of " + pc2.sctp.maxMessageSize + " bytes)");
21184
21184
  }
21185
21185
  return origDataChannelSend.apply(dc, arguments);
21186
21186
  };
@@ -21238,11 +21238,11 @@ function shimConnectionState(window2) {
21238
21238
  proto[method] = function() {
21239
21239
  if (!this._connectionstatechangepoly) {
21240
21240
  this._connectionstatechangepoly = (e) => {
21241
- const pc = e.target;
21242
- if (pc._lastConnectionState !== pc.connectionState) {
21243
- pc._lastConnectionState = pc.connectionState;
21241
+ const pc2 = e.target;
21242
+ if (pc2._lastConnectionState !== pc2.connectionState) {
21243
+ pc2._lastConnectionState = pc2.connectionState;
21244
21244
  const newEvent = new Event("connectionstatechange", e);
21245
- pc.dispatchEvent(newEvent);
21245
+ pc2.dispatchEvent(newEvent);
21246
21246
  }
21247
21247
  return e;
21248
21248
  };
@@ -21446,43 +21446,43 @@ var adapter = adapterFactory({ window: typeof window === "undefined" ? void 0 :
21446
21446
 
21447
21447
  // ../hms-video-store/dist/index.js
21448
21448
  var import_lodash4 = __toESM(require_lodash2());
21449
- import { v4 as Io } from "uuid";
21450
- import { v4 as Lo } from "uuid";
21451
- import { v4 as No } from "uuid";
21452
- import { EventEmitter2 as Oo } from "eventemitter2";
21453
- var jt = __toESM(require_lib());
21454
- import { EventEmitter2 as ln } from "eventemitter2";
21455
- import { v4 as Sn } from "uuid";
21456
- import { EventEmitter2 as gn } from "eventemitter2";
21457
- import fn from "eventemitter2";
21458
- import { v4 as vn } from "uuid";
21459
- import { v4 as kn } from "uuid";
21460
- var to = Object.defineProperty;
21461
- var io = Object.defineProperties;
21462
- var ro = Object.getOwnPropertyDescriptors;
21463
- var ti = Object.getOwnPropertySymbols;
21464
- var ds = Object.prototype.hasOwnProperty;
21465
- var ls = Object.prototype.propertyIsEnumerable;
21466
- var cs = (a2, e, t) => e in a2 ? to(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21467
- var m = (a2, e) => {
21449
+ import { v4 as Ro } from "uuid";
21450
+ import { v4 as Do } from "uuid";
21451
+ import { v4 as Oo } from "uuid";
21452
+ import { EventEmitter2 as xo } from "eventemitter2";
21453
+ var Jt = __toESM(require_lib());
21454
+ import { EventEmitter2 as un } from "eventemitter2";
21455
+ import { v4 as gn } from "uuid";
21456
+ import { EventEmitter2 as Tn } from "eventemitter2";
21457
+ import vn from "eventemitter2";
21458
+ import { v4 as Mn } from "uuid";
21459
+ import { v4 as En } from "uuid";
21460
+ var ro = Object.defineProperty;
21461
+ var so = Object.defineProperties;
21462
+ var ao = Object.getOwnPropertyDescriptors;
21463
+ var ii = Object.getOwnPropertySymbols;
21464
+ var ls = Object.prototype.hasOwnProperty;
21465
+ var us = Object.prototype.propertyIsEnumerable;
21466
+ var ds = (a2, e, t) => e in a2 ? ro(a2, e, { enumerable: true, configurable: true, writable: true, value: t }) : a2[e] = t;
21467
+ var h = (a2, e) => {
21468
21468
  for (var t in e || (e = {}))
21469
- ds.call(e, t) && cs(a2, t, e[t]);
21470
- if (ti)
21471
- for (var t of ti(e))
21472
- ls.call(e, t) && cs(a2, t, e[t]);
21469
+ ls.call(e, t) && ds(a2, t, e[t]);
21470
+ if (ii)
21471
+ for (var t of ii(e))
21472
+ us.call(e, t) && ds(a2, t, e[t]);
21473
21473
  return a2;
21474
21474
  };
21475
- var y = (a2, e) => io(a2, ro(e));
21476
- var gr = (a2, e) => {
21475
+ var M = (a2, e) => so(a2, ao(e));
21476
+ var Tr = (a2, e) => {
21477
21477
  var t = {};
21478
21478
  for (var i in a2)
21479
- ds.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21480
- if (a2 != null && ti)
21481
- for (var i of ti(a2))
21482
- e.indexOf(i) < 0 && ls.call(a2, i) && (t[i] = a2[i]);
21479
+ ls.call(a2, i) && e.indexOf(i) < 0 && (t[i] = a2[i]);
21480
+ if (a2 != null && ii)
21481
+ for (var i of ii(a2))
21482
+ e.indexOf(i) < 0 && us.call(a2, i) && (t[i] = a2[i]);
21483
21483
  return t;
21484
21484
  };
21485
- var oo = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21485
+ var co = (a2, e) => () => (e || a2((e = { exports: {} }).exports, e), e.exports);
21486
21486
  var c = (a2, e, t) => new Promise((i, r) => {
21487
21487
  var s = (d) => {
21488
21488
  try {
@@ -21499,51 +21499,51 @@ var c = (a2, e, t) => new Promise((i, r) => {
21499
21499
  }, n = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(s, o);
21500
21500
  n((t = t.apply(a2, e)).next());
21501
21501
  });
21502
- var yr = oo((xc, go) => {
21503
- go.exports = { version: "0.12.24-alpha.5", license: "MIT", repository: { type: "git", url: "https://github.com/100mslive/web-sdks.git", directory: "packages/hms-video-store" }, main: "dist/index.cjs.js", module: "dist/index.js", typings: "dist/index.d.ts", files: ["dist", "src"], engines: { node: ">=12" }, exports: { ".": { require: "./dist/index.cjs.js", import: "./dist/index.js", default: "./dist/index.js" } }, sideEffects: false, scripts: { prestart: "rm -rf dist && yarn types:build", start: 'concurrently "yarn dev" "yarn types"', dev: "node ../../scripts/dev", "build:only": "node ../../scripts/build", build: "yarn build:only && yarn types:build", types: "tsc -w", "types:build": "tsc -p tsconfig.json", format: "prettier --write src/**/*.ts", test: "jest --maxWorkers=1", "test:watch": "jest --watch", "test:coverage": "jest --coverage", lint: "eslint -c ../../.eslintrc .", "lint:fix": "yarn lint --fix", prepare: "yarn build", size: "size-limit", analyze: "size-limit --why", docs: "rm -rf ./docs && typedoc && rm -f ./docs/README.md && mkdir ./docs/home &&mv ./docs/modules.md ./docs/home/content.md && node ../../scripts/docs-store && npx prettier --write './docs/**/*'" }, name: "@100mslive/hms-video-store", author: "100ms", dependencies: { eventemitter2: "^6.4.9", immer: "^9.0.6", "lodash.isequal": "^4.5.0", reselect: "4.0.0", "sdp-transform": "^2.14.1", "ua-parser-js": "^1.0.1", uuid: "^8.3.2", "webrtc-adapter": "^8.0.0", zustand: "3.5.7" }, devDependencies: { "@types/dom-screen-wake-lock": "^1.0.1", "@types/lodash.isequal": "^4.5.8", "@types/sdp-transform": "^2.4.4", "@types/ua-parser-js": "^0.7.36", "@types/uuid": "^8.3.0", "jest-canvas-mock": "^2.3.1", "jsdom-worker": "^0.3.0", tslib: "^2.2.0" }, description: "@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow", keywords: ["video", "webrtc", "conferencing", "100ms"] };
21502
+ var kr = co((Wc, fo) => {
21503
+ fo.exports = { version: "0.12.24-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"] };
21504
21504
  });
21505
- var Tr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(Tr || {});
21506
- var no = ((e) => (e.CHAT = "chat", e))(no || {});
21507
- var us = ((t) => (t.INFO = "info", t.ERROR = "error", t))(us || {});
21508
- var fr = ((D) => (D.PEER_JOINED = "PEER_JOINED", D.PEER_LEFT = "PEER_LEFT", D.PEER_LIST = "PEER_LIST", D.NEW_MESSAGE = "NEW_MESSAGE", D.ERROR = "ERROR", D.RECONNECTING = "RECONNECTING", D.RECONNECTED = "RECONNECTED", D.TRACK_ADDED = "TRACK_ADDED", D.TRACK_REMOVED = "TRACK_REMOVED", D.TRACK_MUTED = "TRACK_MUTED", D.TRACK_UNMUTED = "TRACK_UNMUTED", D.TRACK_DEGRADED = "TRACK_DEGRADED", D.TRACK_RESTORED = "TRACK_RESTORED", D.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", D.ROLE_UPDATED = "ROLE_UPDATED", D.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", D.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", D.ROOM_ENDED = "ROOM_ENDED", D.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", D.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", D.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", D.NAME_UPDATED = "NAME_UPDATED", D.METADATA_UPDATED = "METADATA_UPDATED", D.POLL_CREATED = "POLL_CREATED", D.POLL_STARTED = "POLL_STARTED", D.POLL_STOPPED = "POLL_STOPPED", D.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", D.POLLS_LIST = "POLLS_LIST", D.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", D.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", D))(fr || {});
21509
- var ps = ((t) => (t.audio = "audio", t.video = "video", t))(ps || {});
21510
- function Ue(a2, e) {
21505
+ var fr = ((n) => (n.Disconnected = "Disconnected", n.Preview = "Preview", n.Connecting = "Connecting", n.Connected = "Connected", n.Reconnecting = "Reconnecting", n.Disconnecting = "Disconnecting", n.Failed = "Failed", n))(fr || {});
21506
+ var lo = ((e) => (e.CHAT = "chat", e))(lo || {});
21507
+ var ps = ((t) => (t.INFO = "info", t.ERROR = "error", t))(ps || {});
21508
+ var vr = ((w) => (w.PEER_JOINED = "PEER_JOINED", w.PEER_LEFT = "PEER_LEFT", w.PEER_LIST = "PEER_LIST", w.NEW_MESSAGE = "NEW_MESSAGE", w.ERROR = "ERROR", w.RECONNECTING = "RECONNECTING", w.RECONNECTED = "RECONNECTED", w.TRACK_ADDED = "TRACK_ADDED", w.TRACK_REMOVED = "TRACK_REMOVED", w.TRACK_MUTED = "TRACK_MUTED", w.TRACK_UNMUTED = "TRACK_UNMUTED", w.TRACK_DEGRADED = "TRACK_DEGRADED", w.TRACK_RESTORED = "TRACK_RESTORED", w.TRACK_DESCRIPTION_CHANGED = "TRACK_DESCRIPTION_CHANGED", w.ROLE_UPDATED = "ROLE_UPDATED", w.CHANGE_TRACK_STATE_REQUEST = "CHANGE_TRACK_STATE_REQUEST", w.CHANGE_MULTI_TRACK_STATE_REQUEST = "CHANGE_MULTI_TRACK_STATE_REQUEST", w.ROOM_ENDED = "ROOM_ENDED", w.REMOVED_FROM_ROOM = "REMOVED_FROM_ROOM", w.DEVICE_CHANGE_UPDATE = "DEVICE_CHANGE_UPDATE", w.PLAYLIST_TRACK_ENDED = "PLAYLIST_TRACK_ENDED", w.NAME_UPDATED = "NAME_UPDATED", w.METADATA_UPDATED = "METADATA_UPDATED", w.POLL_CREATED = "POLL_CREATED", w.POLL_STARTED = "POLL_STARTED", w.POLL_STOPPED = "POLL_STOPPED", w.POLL_VOTES_UPDATED = "POLL_VOTES_UPDATED", w.POLLS_LIST = "POLLS_LIST", w.HAND_RAISE_CHANGED = "HAND_RAISE_CHANGED", w.TRANSCRIPTION_STATE_UPDATED = "TRANSCRIPTION_STATE_UPDATED", w))(vr || {});
21509
+ var hs = ((t) => (t.audio = "audio", t.video = "video", t))(hs || {});
21510
+ function Be(a2, e) {
21511
21511
  let t, i;
21512
21512
  if (e)
21513
21513
  for (let r of e.auxiliaryTracks) {
21514
21514
  let s = a2[r];
21515
- co(s) && (i = pt(s) ? s : i, t = ht(s) ? s : t);
21515
+ uo(s) && (i = ht(s) ? s : i, t = mt(s) ? s : t);
21516
21516
  }
21517
21517
  return { video: t, audio: i };
21518
21518
  }
21519
- function pt(a2) {
21519
+ function ht(a2) {
21520
21520
  return a2 && a2.type === "audio";
21521
21521
  }
21522
- function ht(a2) {
21522
+ function mt(a2) {
21523
21523
  return a2 && a2.type === "video";
21524
21524
  }
21525
- function co(a2) {
21525
+ function uo(a2) {
21526
21526
  return a2 && a2.source === "screen";
21527
21527
  }
21528
- function si(a2) {
21528
+ function ai(a2) {
21529
21529
  return a2 && a2.source === "audioplaylist";
21530
21530
  }
21531
- function mt(a2) {
21531
+ function St(a2) {
21532
21532
  return a2 && a2.source === "videoplaylist";
21533
21533
  }
21534
- function hs(a2) {
21534
+ function ms(a2) {
21535
21535
  return a2 ? !!(a2 != null && a2.degraded) : false;
21536
21536
  }
21537
- function je(a2, e) {
21537
+ function Je(a2, e) {
21538
21538
  return e && a2.tracks[e] ? a2.tracks[e].enabled : false;
21539
21539
  }
21540
- function St(a2) {
21540
+ function gt(a2) {
21541
21541
  var r;
21542
21542
  let e = false, t = false, i = false;
21543
21543
  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 };
21544
21544
  }
21545
- var Ss = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(Ss || {});
21546
- var lo = typeof window != "undefined" && typeof window.expect != "undefined";
21545
+ var gs = ((d) => (d[d.VERBOSE = 0] = "VERBOSE", d[d.DEBUG = 1] = "DEBUG", d[d.INFO = 2] = "INFO", d[d.WARN = 3] = "WARN", d[d.TIME = 4] = "TIME", d[d.TIMEEND = 5] = "TIMEEND", d[d.ERROR = 6] = "ERROR", d[d.NONE = 7] = "NONE", d))(gs || {});
21546
+ var po = typeof window != "undefined" && typeof window.expect != "undefined";
21547
21547
  var l = class {
21548
21548
  static v(e, ...t) {
21549
21549
  this.log(0, e, ...t);
@@ -21609,30 +21609,30 @@ var l = class {
21609
21609
  }
21610
21610
  }
21611
21611
  };
21612
- l.level = lo ? 7 : 0;
21613
- var he = new import_ua_parser_js.UAParser();
21612
+ l.level = po ? 7 : 0;
21613
+ var me = new import_ua_parser_js.UAParser();
21614
21614
  var B = typeof window != "undefined";
21615
- var gs;
21616
- var Be = typeof window == "undefined" && !((gs = he.getBrowser().name) != null && gs.toLowerCase().includes("electron"));
21617
- var po = () => !Be;
21618
- var uc = po();
21619
21615
  var Ts;
21616
+ var Ve = typeof window == "undefined" && !((Ts = me.getBrowser().name) != null && Ts.toLowerCase().includes("electron"));
21617
+ var mo = () => !Ve;
21618
+ var pc = mo();
21620
21619
  var fs;
21621
- var Es = (fs = (Ts = he.getBrowser()) == null ? void 0 : Ts.name) == null ? void 0 : fs.toLowerCase().includes("safari");
21622
21620
  var vs;
21621
+ var Ps = (vs = (fs = me.getBrowser()) == null ? void 0 : fs.name) == null ? void 0 : vs.toLowerCase().includes("safari");
21623
21622
  var Ms;
21624
- var Ps = ((Ms = (vs = he.getBrowser()) == null ? void 0 : vs.name) == null ? void 0 : Ms.toLowerCase()) === "firefox";
21625
- var bs = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(bs || {});
21626
- function ho() {
21623
+ var ys;
21624
+ var bs = ((ys = (Ms = me.getBrowser()) == null ? void 0 : Ms.name) == null ? void 0 : ys.toLowerCase()) === "firefox";
21625
+ var As = ((i) => (i.CUSTOM = "CUSTOM", i.LOCAL = "LOCAL", i.HMS = "HMS", i))(As || {});
21626
+ function So() {
21627
21627
  if (B && window) {
21628
21628
  let a2 = window.location.hostname;
21629
21629
  return a2 === "localhost" || a2 === "127.0.0.1" ? "LOCAL" : a2.includes("app.100ms.live") ? "HMS" : "CUSTOM";
21630
21630
  }
21631
21631
  return "CUSTOM";
21632
21632
  }
21633
- var Qe = ho();
21633
+ var ze = So();
21634
21634
  var P4 = { WebSocketConnectionErrors: { FAILED_TO_CONNECT: 1e3, WEBSOCKET_CONNECTION_LOST: 1003, ABNORMAL_CLOSE: 1006 }, APIErrors: { SERVER_ERRORS: 2e3, INIT_CONFIG_NOT_AVAILABLE: 2002, ENDPOINT_UNREACHABLE: 2003, INVALID_TOKEN_FORMAT: 2004 }, TracksErrors: { GENERIC_TRACK: 3e3, CANT_ACCESS_CAPTURE_DEVICE: 3001, DEVICE_NOT_AVAILABLE: 3002, DEVICE_IN_USE: 3003, DEVICE_LOST_MIDWAY: 3004, NOTHING_TO_RETURN: 3005, INVALID_VIDEO_SETTINGS: 3006, CODEC_CHANGE_NOT_PERMITTED: 3007, AUTOPLAY_ERROR: 3008, OVER_CONSTRAINED: 3009, NO_AUDIO_DETECTED: 3010, SYSTEM_DENIED_PERMISSION: 3011, CURRENT_TAB_NOT_SHARED: 3012, AUDIO_PLAYBACK_ERROR: 3013, SELECTED_DEVICE_MISSING: 3014, NO_DATA: 3015 }, WebrtcErrors: { CREATE_OFFER_FAILED: 4001, CREATE_ANSWER_FAILED: 4002, SET_LOCAL_DESCRIPTION_FAILED: 4003, SET_REMOTE_DESCRIPTION_FAILED: 4004, ICE_FAILURE: 4005, ICE_DISCONNECTED: 4006, STATS_FAILED: 4007 }, WebsocketMethodErrors: { SERVER_ERRORS: 5e3, ALREADY_JOINED: 5001, CANNOT_JOIN_PREVIEW_IN_PROGRESS: 5002 }, GenericErrors: { NOT_CONNECTED: 6e3, SIGNALLING: 6001, UNKNOWN: 6002, NOT_READY: 6003, JSON_PARSING_FAILED: 6004, TRACK_METADATA_MISSING: 6005, RTC_TRACK_MISSING: 6006, PEER_METADATA_MISSING: 6007, INVALID_ROLE: 6008, PREVIEW_IN_PROGRESS: 6009, MISSING_MEDIADEVICES: 6010, MISSING_RTCPEERCONNECTION: 6011, LOCAL_STORAGE_ACCESS_DENIED: 6012, VALIDATION_FAILED: 6013 }, PlaylistErrors: { NO_ENTRY_TO_PLAY: 8001, NO_ENTRY_IS_PLAYING: 8002 } };
21635
- var M = class a extends Error {
21635
+ var k = class a extends Error {
21636
21636
  constructor(t, i, r, s, o, n = false) {
21637
21637
  super(s);
21638
21638
  this.code = t;
@@ -21651,127 +21651,154 @@ var M = class a extends Error {
21651
21651
  toString() {
21652
21652
  var t;
21653
21653
  return `{
21654
- code: ${this.code};
21655
- name: ${this.name};
21656
- action: ${this.action};
21657
- message: ${this.message};
21658
- description: ${this.description};
21659
- isTerminal: ${this.isTerminal};
21660
- nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21661
- }`;
21654
+ code: ${this.code};
21655
+ name: ${this.name};
21656
+ action: ${this.action};
21657
+ message: ${this.message};
21658
+ description: ${this.description};
21659
+ isTerminal: ${this.isTerminal};
21660
+ nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21661
+ }`;
21662
+ }
21663
+ };
21664
+ var $ = class extends k {
21665
+ constructor(t, i, r, s, o, n) {
21666
+ super(t, i, r, s, o, false);
21667
+ this.code = t;
21668
+ this.name = i;
21669
+ this.message = s;
21670
+ this.description = o;
21671
+ this.trackType = n;
21662
21672
  }
21663
- };
21664
- var mo = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21673
+ toAnalyticsProperties() {
21674
+ return M(h({}, super.toAnalyticsProperties()), { track_type: this.trackType });
21675
+ }
21676
+ toString() {
21677
+ var t;
21678
+ return `{
21679
+ code: ${this.code};
21680
+ name: ${this.name};
21681
+ action: ${this.action};
21682
+ message: ${this.message};
21683
+ description: ${this.description};
21684
+ isTerminal: ${this.isTerminal};
21685
+ nativeError: ${(t = this.nativeError) == null ? void 0 : t.message};
21686
+ trackType: ${this.trackType};
21687
+ }`;
21688
+ }
21689
+ };
21690
+ var Is = ((r) => (r.AUDIO = "audio", r.VIDEO = "video", r.AUDIO_VIDEO = "audio, video", r.SCREEN = "screen", r))(Is || {});
21691
+ var go = ["join", "offer", "answer", "trickle", "on-error", "JOIN"];
21665
21692
  var S = { WebSocketConnectionErrors: { FailedToConnect(a2, e = "") {
21666
- return new M(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21693
+ return new k(P4.WebSocketConnectionErrors.FAILED_TO_CONNECT, "WebsocketFailedToConnect", a2, `[WS]: ${e}`, `[WS]: ${e}`);
21667
21694
  }, WebSocketConnectionLost(a2, e = "") {
21668
- return new M(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21695
+ return new k(P4.WebSocketConnectionErrors.WEBSOCKET_CONNECTION_LOST, "WebSocketConnectionLost", a2, "Network connection lost", e);
21669
21696
  }, AbnormalClose(a2, e = "") {
21670
- return new M(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21697
+ return new k(P4.WebSocketConnectionErrors.ABNORMAL_CLOSE, "WebSocketAbnormalClose", a2, "Websocket closed abnormally", e);
21671
21698
  } }, APIErrors: { ServerErrors(a2, e, t = "", i = true) {
21672
- return new M(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21699
+ return new k(a2, "ServerErrors", e, `[${e}]: Server error ${t}`, t, i);
21673
21700
  }, EndpointUnreachable(a2, e = "") {
21674
- return new M(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21701
+ return new k(P4.APIErrors.ENDPOINT_UNREACHABLE, "EndpointUnreachable", a2, `Endpoint is not reachable - ${e}`, e);
21675
21702
  }, InvalidTokenFormat(a2, e = "") {
21676
- return new M(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21703
+ return new k(P4.APIErrors.INVALID_TOKEN_FORMAT, "InvalidTokenFormat", a2, `Token is not in proper JWT format - ${e}`, e, true);
21677
21704
  }, InitConfigNotAvailable(a2, e = "") {
21678
- return new M(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21705
+ return new k(P4.APIErrors.INIT_CONFIG_NOT_AVAILABLE, "InitError", a2, `[INIT]: ${e}`, `[INIT]: ${e}`);
21679
21706
  } }, TracksErrors: { GenericTrack(a2, e = "") {
21680
- return new M(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`);
21707
+ return new $(P4.TracksErrors.GENERIC_TRACK, "GenericTrack", a2, `[TRACK]: ${e}`, `[TRACK]: ${e}`, "audio, video");
21681
21708
  }, CantAccessCaptureDevice(a2, e, t = "") {
21682
- return new M(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t);
21709
+ return new $(P4.TracksErrors.CANT_ACCESS_CAPTURE_DEVICE, "CantAccessCaptureDevice", a2, `User denied permission to access capture device - ${e}`, t, e);
21683
21710
  }, DeviceNotAvailable(a2, e, t = "") {
21684
- return new M(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t);
21711
+ return new $(P4.TracksErrors.DEVICE_NOT_AVAILABLE, "DeviceNotAvailable", a2, `[TRACK]: Capture device is no longer available - ${e}`, t, e);
21685
21712
  }, DeviceInUse(a2, e, t = "") {
21686
- return new M(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t);
21713
+ return new $(P4.TracksErrors.DEVICE_IN_USE, "DeviceInUse", a2, `[TRACK]: Capture device is in use by another application - ${e}`, t, e);
21687
21714
  }, DeviceLostMidway(a2, e, t = "") {
21688
- return new M(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t);
21715
+ return new $(P4.TracksErrors.DEVICE_LOST_MIDWAY, "DeviceLostMidway", a2, `Lost access to capture device midway - ${e}`, t, e);
21689
21716
  }, NothingToReturn(a2, e = "", t = "There is no media to return. Please select either video or audio or both.") {
21690
- return new M(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e);
21717
+ return new $(P4.TracksErrors.NOTHING_TO_RETURN, "NothingToReturn", a2, t, e, "audio, video");
21691
21718
  }, InvalidVideoSettings(a2, e = "") {
21692
- return new M(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e);
21719
+ return new $(P4.TracksErrors.INVALID_VIDEO_SETTINGS, "InvalidVideoSettings", a2, "Cannot enable simulcast when no video settings are provided", e, "video");
21693
21720
  }, AutoplayBlocked(a2, e = "") {
21694
- return new M(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e);
21721
+ return new $(P4.TracksErrors.AUTOPLAY_ERROR, "AutoplayBlocked", a2, "Autoplay blocked because the user didn't interact with the document first", e, "audio");
21695
21722
  }, CodecChangeNotPermitted(a2, e = "") {
21696
- return new M(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e);
21723
+ return new $(P4.TracksErrors.CODEC_CHANGE_NOT_PERMITTED, "CodecChangeNotPermitted", a2, "Codec can't be changed mid call.", e, "audio, video");
21697
21724
  }, OverConstrained(a2, e, t = "") {
21698
- return new M(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t);
21725
+ return new $(P4.TracksErrors.OVER_CONSTRAINED, "OverConstrained", a2, `[TRACK]: Requested constraints cannot be satisfied with the device hardware - ${e}`, t, e);
21699
21726
  }, NoAudioDetected(a2, e = "Please check the mic or use another audio input") {
21700
- return new M(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e);
21727
+ return new $(P4.TracksErrors.NO_AUDIO_DETECTED, "NoAudioDetected", a2, "No audio input detected from microphone", e, "audio");
21701
21728
  }, SystemDeniedPermission(a2, e, t = "") {
21702
- return new M(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t);
21729
+ return new $(P4.TracksErrors.SYSTEM_DENIED_PERMISSION, "SystemDeniedPermission", a2, `Operating System denied permission to access capture device - ${e}`, t, e);
21703
21730
  }, CurrentTabNotShared() {
21704
- return new M(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed");
21731
+ return new $(P4.TracksErrors.CURRENT_TAB_NOT_SHARED, "CurrentTabNotShared", "TRACK", "The app requires you to share the current tab", "You must screen share the current tab in order to proceed", "screen");
21705
21732
  }, AudioPlaybackError(a2) {
21706
- return new M(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2);
21733
+ return new $(P4.TracksErrors.AUDIO_PLAYBACK_ERROR, "Audio playback error", "TRACK", a2, a2, "audio");
21707
21734
  }, SelectedDeviceMissing(a2) {
21708
- return new M(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, false);
21735
+ return new $(P4.TracksErrors.SELECTED_DEVICE_MISSING, "SelectedDeviceMissing", "TRACK", `Could not detect selected ${a2} device`, `Please check connection to the ${a2} device`, a2);
21709
21736
  }, NoDataInTrack(a2) {
21710
- return new M(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call");
21737
+ return new $(P4.TracksErrors.NO_DATA, "Track does not have any data", "TRACK", a2, "This could possibily due to another application taking priority over the access to camera or microphone or due to an incoming call", "audio, video");
21711
21738
  } }, WebrtcErrors: { CreateOfferFailed(a2, e = "") {
21712
- return new M(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21739
+ return new k(P4.WebrtcErrors.CREATE_OFFER_FAILED, "CreateOfferFailed", a2, `[${a2.toString()}]: Failed to create offer. `, e);
21713
21740
  }, CreateAnswerFailed(a2, e = "") {
21714
- return new M(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21741
+ return new k(P4.WebrtcErrors.CREATE_ANSWER_FAILED, "CreateAnswerFailed", a2, `[${a2.toString()}]: Failed to create answer. `, e);
21715
21742
  }, SetLocalDescriptionFailed(a2, e = "") {
21716
- return new M(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21743
+ return new k(P4.WebrtcErrors.SET_LOCAL_DESCRIPTION_FAILED, "SetLocalDescriptionFailed", a2, `[${a2.toString()}]: Failed to set offer. `, e);
21717
21744
  }, SetRemoteDescriptionFailed(a2, e = "") {
21718
- return new M(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21745
+ return new k(P4.WebrtcErrors.SET_REMOTE_DESCRIPTION_FAILED, "SetRemoteDescriptionFailed", a2, `[${a2.toString()}]: Failed to set answer. `, e, true);
21719
21746
  }, ICEFailure(a2, e = "", t = false) {
21720
- return new M(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21747
+ return new k(P4.WebrtcErrors.ICE_FAILURE, "ICEFailure", a2, `[${a2.toString()}]: Ice connection state FAILED`, e, t);
21721
21748
  }, ICEDisconnected(a2, e = "") {
21722
- return new M(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21749
+ return new k(P4.WebrtcErrors.ICE_DISCONNECTED, "ICEDisconnected", a2, `[${a2.toString()}]: Ice connection state DISCONNECTED`, e);
21723
21750
  }, StatsFailed(a2, e = "") {
21724
- return new M(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21751
+ return new k(P4.WebrtcErrors.STATS_FAILED, "StatsFailed", a2, `Failed to WebRTC get stats - ${e}`, e);
21725
21752
  } }, WebsocketMethodErrors: { ServerErrors(a2, e, t) {
21726
- return new M(a2, "ServerErrors", e, t, t, mo.includes(e));
21753
+ return new k(a2, "ServerErrors", e, t, t, go.includes(e));
21727
21754
  }, AlreadyJoined(a2, e = "") {
21728
- return new M(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21755
+ return new k(P4.WebsocketMethodErrors.ALREADY_JOINED, "AlreadyJoined", a2, "[JOIN]: You have already joined this room.", e);
21729
21756
  }, CannotJoinPreviewInProgress(a2, e = "") {
21730
- return new M(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21757
+ return new k(P4.WebsocketMethodErrors.CANNOT_JOIN_PREVIEW_IN_PROGRESS, "CannotJoinPreviewInProgress", a2, "[JOIN]: Cannot join if preview is in progress", e);
21731
21758
  } }, GenericErrors: { NotConnected(a2, e = "") {
21732
- return new M(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21759
+ return new k(P4.GenericErrors.NOT_CONNECTED, "NotConnected", a2, "Client is not connected", e);
21733
21760
  }, Signalling(a2, e) {
21734
- return new M(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21761
+ return new k(P4.GenericErrors.SIGNALLING, "Signalling", a2, `Unknown signalling error: ${a2.toString()} ${e} `, e);
21735
21762
  }, Unknown(a2, e) {
21736
- return new M(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21763
+ return new k(P4.GenericErrors.UNKNOWN, "Unknown", a2, `Unknown exception: ${e}`, e);
21737
21764
  }, NotReady(a2, e = "") {
21738
- return new M(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21765
+ return new k(P4.GenericErrors.NOT_READY, "NotReady", a2, e, e);
21739
21766
  }, JsonParsingFailed(a2, e, t = "") {
21740
- return new M(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21767
+ return new k(P4.GenericErrors.JSON_PARSING_FAILED, "JsonParsingFailed", a2, `Failed to parse JSON message - ${e}`, t);
21741
21768
  }, TrackMetadataMissing(a2, e = "") {
21742
- return new M(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21769
+ return new k(P4.GenericErrors.TRACK_METADATA_MISSING, "TrackMetadataMissing", a2, "Track Metadata Missing", e);
21743
21770
  }, RTCTrackMissing(a2, e = "") {
21744
- return new M(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21771
+ return new k(P4.GenericErrors.RTC_TRACK_MISSING, "RTCTrackMissing", a2, "RTC Track missing", e);
21745
21772
  }, PeerMetadataMissing(a2, e = "") {
21746
- return new M(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21773
+ return new k(P4.GenericErrors.PEER_METADATA_MISSING, "PeerMetadataMissing", a2, "Peer Metadata Missing", e);
21747
21774
  }, ValidationFailed(a2, e) {
21748
- return new M(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21775
+ return new k(P4.GenericErrors.VALIDATION_FAILED, "ValidationFailed", "VALIDATION", a2, e ? JSON.stringify(e) : "");
21749
21776
  }, InvalidRole(a2, e) {
21750
- return new M(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21777
+ return new k(P4.GenericErrors.INVALID_ROLE, "InvalidRole", a2, "Invalid role. Join with valid role", e, true);
21751
21778
  }, PreviewAlreadyInProgress(a2, e = "") {
21752
- return new M(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21779
+ return new k(P4.GenericErrors.PREVIEW_IN_PROGRESS, "PreviewAlreadyInProgress", a2, "[Preview]: Cannot join if preview is in progress", e);
21753
21780
  }, LocalStorageAccessDenied(a2 = "Access to localStorage has been denied") {
21754
- return new M(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21781
+ return new k(P4.GenericErrors.LOCAL_STORAGE_ACCESS_DENIED, "LocalStorageAccessDenied", "NONE", "LocalStorageAccessDenied", a2);
21755
21782
  }, MissingMediaDevices() {
21756
- return new M(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21783
+ return new k(P4.GenericErrors.MISSING_MEDIADEVICES, "MissingMediaDevices", "JOIN", "navigator.mediaDevices is undefined. 100ms SDK won't work on this website as WebRTC is not supported on HTTP endpoints(missing navigator.mediaDevices). Please ensure you're using the SDK either on localhost or a valid HTTPS endpoint.", "", true);
21757
21784
  }, MissingRTCPeerConnection() {
21758
- return new M(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21785
+ return new k(P4.GenericErrors.MISSING_RTCPEERCONNECTION, "MissingRTCPeerConnection", "JOIN", "RTCPeerConnection which is a core requirement for WebRTC call was not found, this could be due to an unsupported browser or browser extensions blocking WebRTC", "", true);
21759
21786
  } }, MediaPluginErrors: { PlatformNotSupported(a2, e = "") {
21760
- return new M(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21787
+ return new k(7001, "PlatformNotSupported", a2, "Check HMS Docs to see the list of supported platforms", e);
21761
21788
  }, InitFailed(a2, e = "") {
21762
- return new M(7002, "InitFailed", a2, "Plugin init failed", e);
21789
+ return new k(7002, "InitFailed", a2, "Plugin init failed", e);
21763
21790
  }, ProcessingFailed(a2, e = "") {
21764
- return new M(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
21791
+ return new k(7003, "ProcessingFailed", a2, "Plugin processing failed", e);
21765
21792
  }, AddAlreadyInProgress(a2, e = "") {
21766
- return new M(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
21793
+ return new k(7004, "AddAlreadyInProgress", a2, "Plugin add already in progress", e);
21767
21794
  }, DeviceNotSupported(a2, e = "") {
21768
- return new M(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21795
+ return new k(7005, "DeviceNotSupported", a2, "Check HMS Docs to see the list of supported devices", e);
21769
21796
  } }, PlaylistErrors: { NoEntryToPlay(a2, e) {
21770
- return new M(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21797
+ return new k(P4.PlaylistErrors.NO_ENTRY_TO_PLAY, "NoEntryToPlay", a2, "Reached end of playlist", e);
21771
21798
  }, NoEntryPlaying(a2, e) {
21772
- return new M(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21799
+ return new k(P4.PlaylistErrors.NO_ENTRY_IS_PLAYING, "NoEntryIsPlaying", a2, "No entry is playing at this time", e);
21773
21800
  } } };
21774
- var Mr = class {
21801
+ var yr = class {
21775
21802
  constructor() {
21776
21803
  this.valuesMap = /* @__PURE__ */ new Map();
21777
21804
  }
@@ -21796,21 +21823,21 @@ var Mr = class {
21796
21823
  return this.valuesMap.size;
21797
21824
  }
21798
21825
  };
21799
- var As = () => {
21826
+ var Rs = () => {
21800
21827
  try {
21801
- B && !localStorage && (window.localStorage = new Mr());
21828
+ B && !localStorage && (window.localStorage = new yr());
21802
21829
  } catch (a2) {
21803
21830
  l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied());
21804
21831
  }
21805
21832
  };
21806
- var me = class {
21833
+ var Se = class {
21807
21834
  constructor(e) {
21808
21835
  this.key = e;
21809
21836
  this.storage = null;
21810
21837
  }
21811
21838
  getStorage() {
21812
21839
  try {
21813
- return B && !this.storage && (As(), this.storage = window.localStorage), this.storage;
21840
+ return B && !this.storage && (Rs(), this.storage = window.localStorage), this.storage;
21814
21841
  } catch (e) {
21815
21842
  return l.e("Error initialising localStorage", S.GenericErrors.LocalStorageAccessDenied()), null;
21816
21843
  }
@@ -21830,37 +21857,37 @@ var me = class {
21830
21857
  (e = this.getStorage()) == null || e.removeItem(this.key);
21831
21858
  }
21832
21859
  };
21833
- var ai = () => {
21834
- let a2, e = new me("hms-analytics-deviceId"), t = e.get();
21835
- return t ? a2 = t : (a2 = So(), e.set(a2)), a2;
21860
+ var oi = () => {
21861
+ let a2, e = new Se("hms-analytics-deviceId"), t = e.get();
21862
+ return t ? a2 = t : (a2 = To(), e.set(a2)), a2;
21836
21863
  };
21837
- function de(a2) {
21864
+ function le(a2) {
21838
21865
  return a2 != null;
21839
21866
  }
21840
- var Hs = yr().version;
21841
- function vt(a2 = "prod", e) {
21842
- let t = "web", i = Qe !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21843
- if (Be)
21844
- return Cs({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Hs, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21845
- let r = he.getOS(), s = he.getDevice(), o = he.getBrowser(), n = kr(`web_${r.name}`), d = r.version || "", u = kr(`${o.name}_${o.version}`), p = u;
21846
- return s.type && (p = `${kr(`${s.vendor}_${s.type}`)}/${u}`), Cs({ os: n, os_version: d, sdk: t, sdk_version: Hs, device_model: p, env: i, domain: Qe, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21867
+ var Ls = kr().version;
21868
+ function Mt(a2 = "prod", e) {
21869
+ let t = "web", i = ze !== "LOCAL" && a2 === "prod" ? "prod" : "debug";
21870
+ if (Ve)
21871
+ return Ds({ os: "web_nodejs", os_version: process.version, sdk: t, sdk_version: Ls, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: "node", framework_version: process.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21872
+ let r = me.getOS(), s = me.getDevice(), o = me.getBrowser(), n = Er(`web_${r.name}`), d = r.version || "", u = Er(`${o.name}_${o.version}`), p = u;
21873
+ return s.type && (p = `${Er(`${s.vendor}_${s.type}`)}/${u}`), Ds({ os: n, os_version: d, sdk: t, sdk_version: Ls, device_model: p, env: i, domain: ze, is_prebuilt: !!(e != null && e.isPrebuilt), framework: e == null ? void 0 : e.type, framework_version: e == null ? void 0 : e.version, framework_sdk_version: e == null ? void 0 : e.sdkVersion });
21847
21874
  }
21848
- function kr(a2) {
21875
+ function Er(a2) {
21849
21876
  return a2.replace(/ /g, "_");
21850
21877
  }
21851
- var Cs = (a2, e = ",") => Object.keys(a2).filter((t) => de(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21878
+ var Ds = (a2, e = ",") => Object.keys(a2).filter((t) => le(a2[t])).map((t) => `${t}:${a2[t]}`).join(e);
21852
21879
  var C = class {
21853
21880
  constructor({ name: e, level: t, properties: i, includesPII: r, timestamp: s }) {
21854
- this.metadata = { peer: {}, userAgent: vt() };
21855
- this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = To(), this.device_id = ai();
21881
+ this.metadata = { peer: {}, userAgent: Mt() };
21882
+ this.name = e, this.level = t, this.includesPII = r || false, this.properties = i || {}, this.timestamp = s || (/* @__PURE__ */ new Date()).getTime(), this.event_id = vo(), this.device_id = oi();
21856
21883
  }
21857
21884
  toSignalParams() {
21858
- return { name: this.name, info: y(m({}, this.properties), { timestamp: this.timestamp, domain: Qe }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21885
+ return { name: this.name, info: M(h({}, this.properties), { timestamp: this.timestamp, domain: ze }), timestamp: (/* @__PURE__ */ new Date()).getTime() };
21859
21886
  }
21860
21887
  };
21861
- var k = class {
21888
+ var y = class {
21862
21889
  static connect(e, t, i = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date(), s) {
21863
- let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(y(m({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21890
+ let o = this.eventNameFor("connect", e === void 0), n = e ? 2 : 1, d = this.getPropertiesWithError(M(h({}, t), { [this.KEY_REQUESTED_AT]: i == null ? void 0 : i.getTime(), [this.KEY_RESPONDED_AT]: r == null ? void 0 : r.getTime(), endpoint: s }), e);
21864
21891
  return new C({ name: o, level: n, properties: d });
21865
21892
  }
21866
21893
  static disconnect(e, t) {
@@ -21868,13 +21895,13 @@ var k = class {
21868
21895
  return new C({ name: i, level: r, properties: s });
21869
21896
  }
21870
21897
  static preview(i) {
21871
- var r = i, { error: e } = r, t = gr(r, ["error"]);
21898
+ var r = i, { error: e } = r, t = Tr(r, ["error"]);
21872
21899
  let s = this.eventNameFor("preview", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(t, e);
21873
21900
  return new C({ name: s, level: o, properties: n });
21874
21901
  }
21875
21902
  static join(i) {
21876
- var r = i, { error: e } = r, t = gr(r, ["error"]);
21877
- let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(y(m({}, t), { is_preview_called: !!t.is_preview_called }), e);
21903
+ var r = i, { error: e } = r, t = Tr(r, ["error"]);
21904
+ let s = this.eventNameFor("join", e === void 0), o = e ? 2 : 1, n = this.getPropertiesWithError(M(h({}, t), { is_preview_called: !!t.is_preview_called }), e);
21878
21905
  return new C({ name: s, level: o, properties: n });
21879
21906
  }
21880
21907
  static publish({ devices: e, settings: t, error: i }) {
@@ -21920,7 +21947,7 @@ var k = class {
21920
21947
  let i = "video.degradation.stats", r = 1, s = { degradedAt: e.degradedAt, trackId: e.trackId };
21921
21948
  if (!t && e.degradedAt instanceof Date) {
21922
21949
  let o = /* @__PURE__ */ new Date(), n = o.valueOf() - e.degradedAt.valueOf();
21923
- s = y(m({}, s), { duration: n, restoredAt: o });
21950
+ s = M(h({}, s), { duration: n, restoredAt: o });
21924
21951
  }
21925
21952
  return new C({ name: i, level: r, properties: s });
21926
21953
  }
@@ -21947,23 +21974,23 @@ var k = class {
21947
21974
  return new C({ name: "krisp.stop", level: 1 });
21948
21975
  }
21949
21976
  static interruption({ started: e, type: t, reason: i, deviceInfo: r }) {
21950
- return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: m({ reason: i, type: t }, r) });
21977
+ return new C({ name: `${e ? "interruption.start" : "interruption.stop"}`, level: 1, properties: h({ reason: i, type: t }, r) });
21951
21978
  }
21952
21979
  static eventNameFor(e, t) {
21953
21980
  return `${e}.${t ? "success" : "failed"}`;
21954
21981
  }
21955
21982
  static getPropertiesWithError(e, t) {
21956
21983
  let i = this.getErrorProperties(t);
21957
- return e = m(m({}, i), e), e;
21984
+ return e = h(h({}, i), e), e;
21958
21985
  }
21959
21986
  static getErrorProperties(e) {
21960
- return e ? e instanceof M ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
21987
+ return e ? e instanceof k ? e.toAnalyticsProperties() : { error_name: e.name, error_message: e.message, error_description: e.cause } : {};
21961
21988
  }
21962
21989
  };
21963
- k.KEY_REQUESTED_AT = "requested_at", k.KEY_RESPONDED_AT = "responded_at";
21964
- var Er = class {
21990
+ y.KEY_REQUESTED_AT = "requested_at", y.KEY_RESPONDED_AT = "responded_at";
21991
+ var Pr = class {
21965
21992
  constructor() {
21966
- this.storage = new me("hms-device-selection");
21993
+ this.storage = new Se("hms-device-selection");
21967
21994
  this.remember = false;
21968
21995
  this.TAG = "[HMSDeviceStorage]";
21969
21996
  }
@@ -21995,11 +22022,11 @@ var Er = class {
21995
22022
  return e.deviceId === t.deviceId && (e.groupId === t.groupId || !e.groupId);
21996
22023
  }
21997
22024
  };
21998
- var Y = new Er();
21999
- var Pr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Pr || {});
22000
- var br = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(br || {});
22001
- var Rr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Rr || {});
22002
- function ci(a2, e = 300) {
22025
+ var X = new Pr();
22026
+ var br = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(br || {});
22027
+ var Ar = ((t) => (t.PLATFORM_NOT_SUPPORTED = "PLATFORM_NOT_SUPPORTED", t.DEVICE_NOT_SUPPORTED = "DEVICE_NOT_SUPPORTED", t))(Ar || {});
22028
+ var Hr = ((r) => (r.SPEAKERPHONE = "SPEAKERPHONE", r.WIRED = "WIRED", r.BLUETOOTH = "BLUETOOTH", r.EARPIECE = "EARPIECE", r))(Hr || {});
22029
+ function di(a2, e = 300) {
22003
22030
  let t;
22004
22031
  return function(...i) {
22005
22032
  clearTimeout(t), t = void 0;
@@ -22009,14 +22036,14 @@ function ci(a2, e = 300) {
22009
22036
  }, e);
22010
22037
  };
22011
22038
  }
22012
- var Cr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Cr || {});
22013
- var _s = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(_s || {});
22014
- var Ns = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(Ns || {});
22015
- var Os = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Os || {});
22016
- var xs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(xs || {});
22017
- var Us = ((e) => (e.CAPTION = "caption", e))(Us || {});
22018
- var Lr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Lr || {});
22019
- var Bs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Bs || {});
22039
+ var Lr = ((t) => (t.SIP = "sip", t.REGULAR = "regular", t))(Lr || {});
22040
+ var Os = ((n) => (n.NONE = "none", n.INITIALISED = "initialised", n.STARTED = "started", n.PAUSED = "paused", n.RESUMED = "resumed", n.STOPPED = "stopped", n.FAILED = "failed", n))(Os || {});
22041
+ var xs = ((t) => (t.DVR = "dvr", t.NO_DVR = "no-dvr", t))(xs || {});
22042
+ var Us = ((i) => (i.REGULAR = "regular", i.SCREEN = "screen", i.COMPOSITE = "composite", i))(Us || {});
22043
+ var Bs = ((r) => (r.INITIALISED = "initialised", r.STARTED = "started", r.STOPPED = "stopped", r.FAILED = "failed", r))(Bs || {});
22044
+ var Vs = ((e) => (e.CAPTION = "caption", e))(Vs || {});
22045
+ var Dr = ((t) => (t.VOICE = "voice", t.MUSIC = "music", t))(Dr || {});
22046
+ var Fs = ((i) => (i.videoInput = "videoInput", i.audioInput = "audioInput", i.audioOutput = "audioOutput", i))(Fs || {});
22020
22047
  var wr = class {
22021
22048
  constructor() {
22022
22049
  this.TAG = "[HMSIntersectionObserverWrapper]";
@@ -22044,8 +22071,8 @@ var wr = class {
22044
22071
  return e || l.w(this.TAG, "IntersectionObserver is not supported, fallback will be used instead"), e;
22045
22072
  }
22046
22073
  };
22047
- var Ws = new wr();
22048
- var Dr = class {
22074
+ var Ks = new wr();
22075
+ var _r = class {
22049
22076
  constructor() {
22050
22077
  this.TAG = "[HMSResizeObserverWrapper]";
22051
22078
  this.listeners = /* @__PURE__ */ new WeakMap();
@@ -22058,7 +22085,7 @@ var Dr = class {
22058
22085
  (t = this.resizeObserver) == null || t.unobserve(e), this.listeners.delete(e);
22059
22086
  };
22060
22087
  this.createObserver = () => {
22061
- this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(ci(this.handleResize, 300)));
22088
+ this.isSupported() && !this.resizeObserver && (this.resizeObserver = new ResizeObserver(di(this.handleResize, 300)));
22062
22089
  };
22063
22090
  this.handleResize = (e) => {
22064
22091
  var t;
@@ -22072,43 +22099,43 @@ var Dr = class {
22072
22099
  return e || l.w(this.TAG, "Resize Observer is not supported"), e;
22073
22100
  }
22074
22101
  };
22075
- var $s = new Dr();
22076
- var _r = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(_r || {});
22077
- var Nr = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Nr || {});
22078
- var js = "https://event.100ms.live/v2/client/report";
22079
- var Js = "https://event-nonprod.100ms.live/v2/client/report";
22080
- var Pt = Math.pow(2, 31) - 1;
22081
- var rt = class {
22102
+ var qs = new _r();
22103
+ var Nr = ((t) => (t.TRANSFORM = "TRANSFORM", t.ANALYZE = "ANALYZE", t))(Nr || {});
22104
+ var Or = ((t) => (t["2D"] = "2d", t.WEBGL = "webgl", t.WEBGL2 = "webgl2", t))(Or || {});
22105
+ var Qs = "https://event.100ms.live/v2/client/report";
22106
+ var zs = "https://event-nonprod.100ms.live/v2/client/report";
22107
+ var bt = Math.pow(2, 31) - 1;
22108
+ var st = class {
22082
22109
  };
22083
- rt.makePeerId = () => No();
22110
+ st.makePeerId = () => Oo();
22084
22111
  var F = (a2) => a2.room;
22085
- var xo = (a2) => a2.errors;
22086
- var rm = createSelector(xo, (a2) => a2.length === 0 ? null : a2.at(-1));
22087
- var sm = createSelector(F, (a2) => a2.id);
22088
- var Q = (a2) => a2.peers;
22089
- var Mi = (a2) => a2.messages.byID;
22090
- var ra = (a2) => a2.messages.allIDs;
22112
+ var Uo = (a2) => a2.errors;
22113
+ var dm = createSelector(Uo, (a2) => a2.length === 0 ? null : a2.at(-1));
22114
+ var lm = createSelector(F, (a2) => a2.id);
22115
+ var z = (a2) => a2.peers;
22116
+ var yi = (a2) => a2.messages.byID;
22117
+ var aa = (a2) => a2.messages.allIDs;
22091
22118
  var O = (a2) => a2.tracks;
22092
- var $r = (a2) => a2.appData;
22093
- var Uo = (a2) => a2.speakers;
22094
- var Oe = createSelector([F], (a2) => a2 && a2.isConnected);
22095
- var nm = createSelector([Oe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22096
- var Bo = (a2) => a2.hideLocalPeer;
22097
- var fe = createSelector([F, Q, Bo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22098
- var Vo = createSelector(O, (a2) => Object.values(a2));
22099
- var ie = createSelector(F, Q, (a2, e) => e[a2.localPeer]);
22100
- var Ee = createSelector(F, (a2) => a2.localPeer);
22101
- var cm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.name);
22102
- var dm = createSelector(ie, (a2) => a2 == null ? void 0 : a2.roleName);
22103
- var ne = createSelector(ie, (a2) => a2 == null ? void 0 : a2.audioTrack);
22104
- var X = createSelector(ie, (a2) => a2 == null ? void 0 : a2.videoTrack);
22105
- var Fo = createSelector(ie, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22106
- var aa = createSelector([ne, X, Fo], (a2, e, t) => {
22119
+ var Kr = (a2) => a2.appData;
22120
+ var Bo = (a2) => a2.speakers;
22121
+ var xe = createSelector([F], (a2) => a2 && a2.isConnected);
22122
+ var hm = createSelector([xe, F], (a2, e) => a2 ? e.peerCount !== void 0 ? e.peerCount || 1 : e.peers.length : Math.max(e.peerCount !== void 0 ? e.peerCount : e.peers.length - 1, 0));
22123
+ var Vo = (a2) => a2.hideLocalPeer;
22124
+ var ve = createSelector([F, z, Vo], (a2, e, t) => t ? a2.peers.filter((i) => a2.localPeer !== i).map((i) => e[i]) : a2.peers.map((i) => e[i]));
22125
+ var Fo = createSelector(O, (a2) => Object.values(a2));
22126
+ var re = createSelector(F, z, (a2, e) => e[a2.localPeer]);
22127
+ var Pe = createSelector(F, (a2) => a2.localPeer);
22128
+ var mm = createSelector(re, (a2) => a2 == null ? void 0 : a2.name);
22129
+ var Sm = createSelector(re, (a2) => a2 == null ? void 0 : a2.roleName);
22130
+ var ce = createSelector(re, (a2) => a2 == null ? void 0 : a2.audioTrack);
22131
+ var Z = createSelector(re, (a2) => a2 == null ? void 0 : a2.videoTrack);
22132
+ var Go = createSelector(re, (a2) => a2 == null ? void 0 : a2.auxiliaryTracks);
22133
+ var na = createSelector([ce, Z, Go], (a2, e, t) => {
22107
22134
  let i = t ? [...t] : [];
22108
22135
  return a2 && i.unshift(a2), e && i.unshift(e), i;
22109
22136
  });
22110
- var lm = createSelector(fe, (a2) => a2.filter((e) => !e.isLocal));
22111
- var um = createSelector(Q, Uo, (a2, e) => {
22137
+ var gm = createSelector(ve, (a2) => a2.filter((e) => !e.isLocal));
22138
+ var Tm = createSelector(z, Bo, (a2, e) => {
22112
22139
  let t = Object.entries(e).sort((i, r) => {
22113
22140
  var n, d;
22114
22141
  let s = ((n = i[1]) == null ? void 0 : n.audioLevel) || 0;
@@ -22121,112 +22148,112 @@ var um = createSelector(Q, Uo, (a2, e) => {
22121
22148
  }
22122
22149
  return null;
22123
22150
  });
22124
- var qr = createSelector(ie, O, (a2, e) => {
22125
- let { video: t, audio: i } = Ue(e, a2);
22151
+ var jr = createSelector(re, O, (a2, e) => {
22152
+ let { video: t, audio: i } = Be(e, a2);
22126
22153
  return !!(t || i);
22127
22154
  });
22128
- var Go = createSelector(Q, O, (a2, e) => {
22155
+ var Wo = createSelector(z, O, (a2, e) => {
22129
22156
  let t;
22130
22157
  for (let i in a2) {
22131
- let r = a2[i], { video: s, audio: o } = Ue(e, r);
22158
+ let r = a2[i], { video: s, audio: o } = Be(e, r);
22132
22159
  if (s)
22133
22160
  return r;
22134
22161
  o && !t && (t = r);
22135
22162
  }
22136
22163
  return t;
22137
22164
  });
22138
- var hm = createSelector(Go, (a2) => !!a2);
22139
- var mm = createSelector(Q, O, (a2, e) => {
22165
+ var vm = createSelector(Wo, (a2) => !!a2);
22166
+ var Mm = createSelector(z, O, (a2, e) => {
22140
22167
  for (let t in a2) {
22141
- let i = a2[t], { audio: r, video: s } = Ue(e, i);
22168
+ let i = a2[t], { audio: r, video: s } = Be(e, i);
22142
22169
  if (!s && r)
22143
22170
  return i;
22144
22171
  }
22145
22172
  });
22146
- var Sm = createSelector(Q, O, (a2, e) => {
22173
+ var ym = createSelector(z, O, (a2, e) => {
22147
22174
  let t = [], i = [];
22148
22175
  for (let r in a2) {
22149
- let s = a2[r], { video: o, audio: n } = Ue(e, s);
22176
+ let s = a2[r], { video: o, audio: n } = Be(e, s);
22150
22177
  o ? t.push(s) : n && i.push(s);
22151
22178
  }
22152
22179
  return t.concat(i);
22153
22180
  });
22154
- var gm = createSelector(Q, O, (a2, e) => {
22181
+ var km = createSelector(z, O, (a2, e) => {
22155
22182
  for (let t in e) {
22156
22183
  let i = e[t];
22157
- if (mt(i) && ht(i) && i.peerId)
22184
+ if (St(i) && mt(i) && i.peerId)
22158
22185
  return a2[i.peerId];
22159
22186
  }
22160
22187
  });
22161
- var Tm = createSelector(Q, O, (a2, e) => {
22188
+ var Em = createSelector(z, O, (a2, e) => {
22162
22189
  for (let t in e) {
22163
22190
  let i = e[t];
22164
- if (si(i) && i.peerId)
22191
+ if (ai(i) && i.peerId)
22165
22192
  return a2[i.peerId];
22166
22193
  }
22167
22194
  });
22168
- var fm = createSelector(Vo, (a2) => a2.filter(hs));
22169
- var vm = createSelector(ra, (a2) => a2.length);
22170
- var Mm = createSelector(Mi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22171
- var Rt = createSelector(ra, Mi, (a2, e) => {
22195
+ var Pm = createSelector(Fo, (a2) => a2.filter(ms));
22196
+ var bm = createSelector(aa, (a2) => a2.length);
22197
+ var Am = createSelector(yi, (a2) => Object.values(a2).filter((e) => !e.read).length);
22198
+ var Ht = createSelector(aa, yi, (a2, e) => {
22172
22199
  let t = [];
22173
22200
  return a2.forEach((i) => {
22174
22201
  t.push(e[i]);
22175
22202
  }), t;
22176
22203
  });
22177
- var Wo = createSelector(Rt, (a2) => a2.filter((e) => {
22204
+ var $o = createSelector(Ht, (a2) => a2.filter((e) => {
22178
22205
  var t;
22179
22206
  return !e.recipientPeer && !(e.recipientRoles && ((t = e.recipientRoles) == null ? void 0 : t.length) > 0);
22180
22207
  }));
22181
- var ym = createSelector(Wo, (a2) => a2.filter((e) => !e.read).length);
22182
- var re = createSelector([F], (a2) => a2 && a2.roomState);
22183
- var na = createSelector(re, (a2) => a2 === "Preview");
22184
- var km = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22185
- var Em = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22186
- var ve = (a2) => a2.roles;
22187
- var Pm = createSelector([ve], (a2) => Object.keys(a2));
22188
- var at = createSelector([ie, ve], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22189
- var $o = (a2) => {
22208
+ var Im = createSelector($o, (a2) => a2.filter((e) => !e.read).length);
22209
+ var se = createSelector([F], (a2) => a2 && a2.roomState);
22210
+ var da = createSelector(se, (a2) => a2 === "Preview");
22211
+ var Rm = createSelector(F, (a2) => a2.roomState !== "Disconnected");
22212
+ var Hm = createSelector(F, (a2) => !a2.transcriptions || a2.transcriptions.length <= 0 ? false : a2.transcriptions.some((e) => e.mode === "caption" && e.state === "started"));
22213
+ var Me = (a2) => a2.roles;
22214
+ var Cm = createSelector([Me], (a2) => Object.keys(a2));
22215
+ var ot = createSelector([re, Me], (a2, e) => a2 != null && a2.roleName ? e[a2.roleName] : null);
22216
+ var Ko = (a2) => {
22190
22217
  var e;
22191
22218
  return (e = a2.preview) == null ? void 0 : e.asRole;
22192
22219
  };
22193
- var ca = createSelector([$o, ve], (a2, e) => a2 ? e[a2] : null);
22194
- var bm = createSelector([at], (a2) => {
22220
+ var la = createSelector([Ko, Me], (a2, e) => a2 ? e[a2] : null);
22221
+ var Lm = createSelector([ot], (a2) => {
22195
22222
  var e;
22196
22223
  return (e = a2 == null ? void 0 : a2.subscribeParams) != null && e.subscribeToRoles ? a2.subscribeParams.subscribeToRoles.length > 0 : false;
22197
22224
  });
22198
- var da = createSelector(at, (a2) => a2 == null ? void 0 : a2.permissions);
22199
- var Am = createSelector(F, (a2) => a2.recording);
22200
- var Im = createSelector(F, (a2) => a2.rtmp);
22201
- var Rm = createSelector(F, (a2) => a2.hls);
22202
- var Hm = createSelector(F, (a2) => a2.transcriptions);
22203
- var Cm = createSelector(F, (a2) => a2.sessionId);
22204
- var Lm = createSelector(F, (a2) => a2.startedAt);
22205
- var wm = createSelector(F, (a2) => !!a2.isLargeRoom);
22206
- var Dm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22207
- var _m = createSelector(F, (a2) => !!a2.isVBEnabled);
22208
- var Nm = createSelector(F, (a2) => a2.effectsKey);
22209
- var la = (a2) => a2.polls;
22210
- var Bm = createSelector(fe, (a2) => a2.filter((e) => e.isHandRaised));
22211
- var Ko = (a2) => a2.whiteboards;
22212
- var Vm = createSelector(Ko, (a2) => Object.values(a2)[0]);
22213
- var pa = (a2 = "audio") => (e) => e.playlist[a2].list;
22214
- var jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22215
- var ha = (a2 = "audio") => (e) => e.playlist[a2].progress;
22216
- var ma = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22217
- var Sa = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22218
- var ga = (a2 = "audio") => (e) => e.playlist[a2].volume;
22219
- var Ta = (a2 = "audio") => createSelector(pa(a2), (e) => Object.values(e));
22220
- var fa = (a2 = "audio") => createSelector(pa(a2), jr(a2), (e, t) => {
22225
+ var ua = createSelector(ot, (a2) => a2 == null ? void 0 : a2.permissions);
22226
+ var Dm = createSelector(F, (a2) => a2.recording);
22227
+ var wm = createSelector(F, (a2) => a2.rtmp);
22228
+ var _m = createSelector(F, (a2) => a2.hls);
22229
+ var Nm = createSelector(F, (a2) => a2.transcriptions);
22230
+ var Om = createSelector(F, (a2) => a2.sessionId);
22231
+ var xm = createSelector(F, (a2) => a2.startedAt);
22232
+ var Um = createSelector(F, (a2) => !!a2.isLargeRoom);
22233
+ var Bm = createSelector(F, (a2) => !!a2.isEffectsEnabled);
22234
+ var Vm = createSelector(F, (a2) => !!a2.isVBEnabled);
22235
+ var Fm = createSelector(F, (a2) => a2.effectsKey);
22236
+ var pa = (a2) => a2.polls;
22237
+ var Km = createSelector(ve, (a2) => a2.filter((e) => e.isHandRaised));
22238
+ var qo = (a2) => a2.whiteboards;
22239
+ var qm = createSelector(qo, (a2) => Object.values(a2)[0]);
22240
+ var ma = (a2 = "audio") => (e) => e.playlist[a2].list;
22241
+ var Jr = (a2 = "audio") => (e) => e.playlist[a2].selection;
22242
+ var Sa = (a2 = "audio") => (e) => e.playlist[a2].progress;
22243
+ var ga = (a2 = "audio") => (e) => e.playlist[a2].currentTime;
22244
+ var Ta = (a2 = "audio") => (e) => e.playlist[a2].playbackRate;
22245
+ var fa = (a2 = "audio") => (e) => e.playlist[a2].volume;
22246
+ var va = (a2 = "audio") => createSelector(ma(a2), (e) => Object.values(e));
22247
+ var Ma = (a2 = "audio") => createSelector(ma(a2), Jr(a2), (e, t) => {
22221
22248
  if (t.id)
22222
22249
  return e[t.id];
22223
22250
  });
22224
- var va = { selection: jr("audio"), progress: ha("audio"), currentTime: ma("audio"), playbackRate: Sa("audio"), volume: ga("audio"), list: Ta("audio"), selectedItem: fa("audio") };
22225
- var Ma = { selection: jr("video"), progress: ha("video"), currentTime: ma("video"), playbackRate: Sa("video"), volume: ga("video"), list: Ta("video"), selectedItem: fa("video") };
22251
+ var ya = { selection: Jr("audio"), progress: Sa("audio"), currentTime: ga("audio"), playbackRate: Ta("audio"), volume: fa("audio"), list: va("audio"), selectedItem: Ma("audio") };
22252
+ var ka = { selection: Jr("video"), progress: Sa("video"), currentTime: ga("video"), playbackRate: Ta("video"), volume: fa("video"), list: va("video"), selectedItem: Ma("video") };
22226
22253
  function H(a2) {
22227
22254
  return (e) => (t) => a2(t, e);
22228
22255
  }
22229
- var Ht = "HMS-Store:";
22256
+ var Ct = "HMS-Store:";
22230
22257
  var b = class {
22231
22258
  static v(e, ...t) {
22232
22259
  this.log(0, e, ...t);
@@ -22256,23 +22283,23 @@ var b = class {
22256
22283
  if (!(this.level.valueOf() > e.valueOf()))
22257
22284
  switch (e) {
22258
22285
  case 0: {
22259
- console.log(Ht, ...t);
22286
+ console.log(Ct, ...t);
22260
22287
  break;
22261
22288
  }
22262
22289
  case 1: {
22263
- console.debug(Ht, ...t);
22290
+ console.debug(Ct, ...t);
22264
22291
  break;
22265
22292
  }
22266
22293
  case 2: {
22267
- console.info(Ht, ...t);
22294
+ console.info(Ct, ...t);
22268
22295
  break;
22269
22296
  }
22270
22297
  case 3: {
22271
- console.warn(Ht, ...t);
22298
+ console.warn(Ct, ...t);
22272
22299
  break;
22273
22300
  }
22274
22301
  case 6: {
22275
- console.error(Ht, ...t);
22302
+ console.error(Ct, ...t);
22276
22303
  break;
22277
22304
  }
22278
22305
  case 4: {
@@ -22293,133 +22320,133 @@ var b = class {
22293
22320
  }
22294
22321
  };
22295
22322
  b.level = 0;
22296
- var Jr = (a2, e) => e;
22297
- var Ct = (a2, e) => e;
22298
- var ya = (a2, e) => e;
22299
- var qo = (a2, e) => e;
22323
+ var Qr = (a2, e) => e;
22324
+ var Lt = (a2, e) => e;
22325
+ var Ea = (a2, e) => e;
22300
22326
  var jo = (a2, e) => e;
22301
- var z = createSelector([Q, Jr], (a2, e) => e ? a2[e] : null);
22302
- var Qr = createSelector([O, Ct], (a2, e) => e ? a2[e] : null);
22303
- var Jo = createSelector([O, Ct], (a2, e) => {
22327
+ var Jo = (a2, e) => e;
22328
+ var Y = createSelector([z, Qr], (a2, e) => e ? a2[e] : null);
22329
+ var zr = createSelector([O, Lt], (a2, e) => e ? a2[e] : null);
22330
+ var Qo = createSelector([O, Lt], (a2, e) => {
22304
22331
  if (!e)
22305
22332
  return null;
22306
22333
  let t = a2[e];
22307
22334
  return (t == null ? void 0 : t.type) === "video" ? t : null;
22308
22335
  });
22309
- var Qo = createSelector([O, Ct], (a2, e) => {
22336
+ var zo = createSelector([O, Lt], (a2, e) => {
22310
22337
  if (!e)
22311
22338
  return null;
22312
22339
  let t = a2[e];
22313
22340
  return (t == null ? void 0 : t.type) === "audio" ? t : null;
22314
22341
  });
22315
- var zo = createSelector([O, Ct], (a2, e) => {
22342
+ var Yo = createSelector([O, Lt], (a2, e) => {
22316
22343
  if (!e)
22317
22344
  return null;
22318
22345
  let t = a2[e];
22319
22346
  return (t == null ? void 0 : t.type) === "audio" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22320
22347
  });
22321
- var Yo = createSelector([O, Ct], (a2, e) => {
22348
+ var Xo = createSelector([O, Lt], (a2, e) => {
22322
22349
  if (!e)
22323
22350
  return null;
22324
22351
  let t = a2[e];
22325
22352
  return (t == null ? void 0 : t.type) === "video" && (t == null ? void 0 : t.source) === "screen" ? t : null;
22326
22353
  });
22327
- var Xo = createSelector([la, jo], (a2, e) => e ? a2[e] : null);
22328
- var Z = H(z);
22329
- var Ym = H(createSelector([$r, qo], (a2, e) => {
22354
+ var Zo = createSelector([pa, Jo], (a2, e) => e ? a2[e] : null);
22355
+ var ee = H(Y);
22356
+ var rS = H(createSelector([Kr, jo], (a2, e) => {
22330
22357
  if (a2)
22331
22358
  return e ? a2[e] : a2;
22332
22359
  }));
22333
- function Xm(a2) {
22360
+ function sS(a2) {
22334
22361
  return (e) => {
22335
22362
  if (e.sessionStore)
22336
22363
  return a2 ? e.sessionStore[a2] : e.sessionStore;
22337
22364
  };
22338
22365
  }
22339
- var eS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.name));
22340
- var tS = H(createSelector(z, (a2) => a2 == null ? void 0 : a2.type));
22341
- var yi = H(Qr);
22342
- var ka = H(Jo);
22343
- var iS = H(Qo);
22344
- var rS = H(zo);
22345
- var sS = H(Yo);
22346
- var Zo = H((a2, e) => {
22347
- let t = z(a2, e);
22366
+ var oS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.name));
22367
+ var nS = H(createSelector(Y, (a2) => a2 == null ? void 0 : a2.type));
22368
+ var ki = H(zr);
22369
+ var Pa = H(Qo);
22370
+ var cS = H(zo);
22371
+ var dS = H(Yo);
22372
+ var lS = H(Xo);
22373
+ var en = H((a2, e) => {
22374
+ let t = Y(a2, e);
22348
22375
  if (t && t.videoTrack && t.videoTrack !== "")
22349
22376
  return a2.tracks[t.videoTrack];
22350
22377
  });
22351
- var en = H((a2, e) => {
22352
- let t = z(a2, e);
22378
+ var tn = H((a2, e) => {
22379
+ let t = Y(a2, e);
22353
22380
  if (t && t.audioTrack && t.audioTrack !== "")
22354
22381
  return a2.tracks[t.audioTrack];
22355
22382
  });
22356
- var oS = H((a2, e) => {
22357
- let t = z(a2, e);
22383
+ var pS = H((a2, e) => {
22384
+ let t = Y(a2, e);
22358
22385
  return (t == null ? void 0 : t.auxiliaryTracks.map((i) => a2.tracks[i])) || [];
22359
22386
  });
22360
- var Ea = (a2, e) => e ? a2.speakers[e] : null;
22361
- var nS = H(createSelector(Ea, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22362
- var tn = (a2, e) => {
22363
- let t = en(e)(a2);
22364
- return Ea(a2, t == null ? void 0 : t.id);
22365
- };
22366
- var cS = H(createSelector(tn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22367
- var dS = H((a2, e) => {
22387
+ var ba = (a2, e) => e ? a2.speakers[e] : null;
22388
+ var hS = H(createSelector(ba, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22389
+ var rn = (a2, e) => {
22390
+ let t = tn(e)(a2);
22391
+ return ba(a2, t == null ? void 0 : t.id);
22392
+ };
22393
+ var mS = H(createSelector(rn, (a2) => (a2 == null ? void 0 : a2.audioLevel) || 0));
22394
+ var SS = H((a2, e) => {
22368
22395
  if (e)
22369
22396
  return a2.connectionQualities[e];
22370
22397
  });
22371
- var lS = H((a2, e) => {
22372
- let t = z(a2, e);
22398
+ var gS = H((a2, e) => {
22399
+ let t = Y(a2, e);
22373
22400
  if (t) {
22374
- let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => pt(a2.tracks[r]));
22401
+ let i = t == null ? void 0 : t.auxiliaryTracks.find((r) => ht(a2.tracks[r]));
22375
22402
  return i ? a2.tracks[i] : void 0;
22376
22403
  }
22377
22404
  });
22378
- var uS = H(createSelector(O, z, (a2, e) => {
22405
+ var TS = H(createSelector(O, Y, (a2, e) => {
22379
22406
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22380
22407
  let r = a2[i];
22381
- return mt(r) && ht(r);
22408
+ return St(r) && mt(r);
22382
22409
  });
22383
22410
  return t ? a2[t] : void 0;
22384
22411
  }));
22385
- var pS = H(createSelector(O, z, (a2, e) => {
22412
+ var fS = H(createSelector(O, Y, (a2, e) => {
22386
22413
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22387
22414
  let r = a2[i];
22388
- return mt(r) && pt(r);
22415
+ return St(r) && ht(r);
22389
22416
  });
22390
22417
  return t ? a2[t] : void 0;
22391
22418
  }));
22392
- var hS = H(createSelector(O, z, (a2, e) => {
22419
+ var vS = H(createSelector(O, Y, (a2, e) => {
22393
22420
  let t = e == null ? void 0 : e.auxiliaryTracks.find((i) => {
22394
22421
  let r = a2[i];
22395
- return si(r) && pt(r);
22422
+ return ai(r) && ht(r);
22396
22423
  });
22397
22424
  return t ? a2[t] : void 0;
22398
22425
  }));
22399
- var Pa = H(createSelector(O, z, (a2, e) => Ue(a2, e)));
22400
- var ba = (a2) => createSelector(Pa(a2), (e) => e.audio);
22401
- var SS = H((a2, e) => {
22402
- let t = z(a2, e);
22403
- return je(a2, t == null ? void 0 : t.audioTrack);
22426
+ var Aa = H(createSelector(O, Y, (a2, e) => Be(a2, e)));
22427
+ var Ia = (a2) => createSelector(Aa(a2), (e) => e.audio);
22428
+ var yS = H((a2, e) => {
22429
+ let t = Y(a2, e);
22430
+ return Je(a2, t == null ? void 0 : t.audioTrack);
22404
22431
  });
22405
- var gS = H((a2, e) => {
22406
- let t = z(a2, e);
22407
- return je(a2, t == null ? void 0 : t.videoTrack);
22432
+ var kS = H((a2, e) => {
22433
+ let t = Y(a2, e);
22434
+ return Je(a2, t == null ? void 0 : t.videoTrack);
22408
22435
  });
22409
- var Aa = H((a2, e) => {
22436
+ var Ra = H((a2, e) => {
22410
22437
  if (e && a2.tracks[e])
22411
22438
  return a2.tracks[e].volume === 0;
22412
22439
  });
22413
- var TS = H((a2, e) => {
22414
- let t = z(a2, e);
22415
- return Aa(t == null ? void 0 : t.audioTrack)(a2);
22440
+ var ES = H((a2, e) => {
22441
+ let t = Y(a2, e);
22442
+ return Ra(t == null ? void 0 : t.audioTrack)(a2);
22416
22443
  });
22417
- var fS = H((a2, e) => {
22418
- let t = ba(e)(a2);
22419
- return Aa(t == null ? void 0 : t.id)(a2);
22444
+ var PS = H((a2, e) => {
22445
+ let t = Ia(e)(a2);
22446
+ return Ra(t == null ? void 0 : t.id)(a2);
22420
22447
  });
22421
- var Ia = H((a2, e) => {
22422
- let t = Qr(a2, e);
22448
+ var Ha = H((a2, e) => {
22449
+ let t = zr(a2, e);
22423
22450
  if (t) {
22424
22451
  if (t.type !== "audio") {
22425
22452
  b.w("Please pass audio track here");
@@ -22428,16 +22455,16 @@ var Ia = H((a2, e) => {
22428
22455
  return t.volume;
22429
22456
  }
22430
22457
  });
22431
- var vS = H((a2, e) => {
22432
- let t = z(a2, e);
22433
- return Ia(t == null ? void 0 : t.audioTrack)(a2);
22458
+ var bS = H((a2, e) => {
22459
+ let t = Y(a2, e);
22460
+ return Ha(t == null ? void 0 : t.audioTrack)(a2);
22434
22461
  });
22435
- var MS = H((a2, e) => {
22436
- let t = ba(e)(a2);
22437
- return Ia(t == null ? void 0 : t.id)(a2);
22462
+ var AS = H((a2, e) => {
22463
+ let t = Ia(e)(a2);
22464
+ return Ha(t == null ? void 0 : t.id)(a2);
22438
22465
  });
22439
- var yS = H((a2, e) => {
22440
- let t = Qr(a2, e);
22466
+ var IS = H((a2, e) => {
22467
+ let t = zr(a2, e);
22441
22468
  if (t) {
22442
22469
  if (t.type !== "video") {
22443
22470
  b.w("Please pass video track here");
@@ -22446,53 +22473,53 @@ var yS = H((a2, e) => {
22446
22473
  return t.layer;
22447
22474
  }
22448
22475
  });
22449
- var Ra = createSelector([Rt, Ee, Jr], (a2, e, t) => {
22476
+ var Ca = createSelector([Ht, Pe, Qr], (a2, e, t) => {
22450
22477
  if (t)
22451
22478
  return a2.filter((i) => {
22452
22479
  var r;
22453
22480
  return !i.recipientPeer && !((r = i.recipientRoles) != null && r.length) || i.sender && ![e, t].includes(i.sender) ? false : [e, t].includes(i.recipientPeer);
22454
22481
  });
22455
22482
  });
22456
- var Ha = createSelector([Rt, ya], (a2, e) => {
22483
+ var La = createSelector([Ht, Ea], (a2, e) => {
22457
22484
  if (e)
22458
22485
  return a2.filter((t) => {
22459
22486
  var i, r;
22460
22487
  return (i = t.recipientRoles) != null && i.length ? (r = t.recipientRoles) == null ? void 0 : r.includes(e) : false;
22461
22488
  });
22462
22489
  });
22463
- var rn = createSelector(Rt, (a2) => a2.filter((e) => {
22490
+ var sn = createSelector(Ht, (a2) => a2.filter((e) => {
22464
22491
  var t;
22465
22492
  return !e.recipientPeer && !((t = e.recipientRoles) != null && t.length);
22466
22493
  }));
22467
- var sn = createSelector([Ha, ya], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22468
- var an = createSelector([Ra, Jr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22469
- var kS = createSelector(rn, (a2) => a2.filter((e) => !e.read).length);
22470
- var ES = H(Ra);
22471
- var PS = H(Ha);
22472
- var bS = H(sn);
22473
- var AS = H(an);
22474
- var Ca = H(Xo);
22475
- var US = createSelector([Q, O], (a2, e) => Object.values(a2).map((i) => {
22494
+ var an = createSelector([La, Ea], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22495
+ var on = createSelector([Ca, Qr], (a2) => a2 ? a2.filter((e) => !e.read).length : 0);
22496
+ var RS = createSelector(sn, (a2) => a2.filter((e) => !e.read).length);
22497
+ var HS = H(Ca);
22498
+ var CS = H(La);
22499
+ var LS = H(an);
22500
+ var DS = H(on);
22501
+ var Da = H(Zo);
22502
+ var $S = createSelector([z, O], (a2, e) => Object.values(a2).map((i) => {
22476
22503
  var r;
22477
22504
  return { peer: i, isAudioEnabled: i.audioTrack ? (r = e[i.audioTrack]) == null ? void 0 : r.enabled : false };
22478
22505
  }));
22479
- var on = (a2) => a2.roleChangeRequests[0] || null;
22480
- var BS = createSelector([on, Q, ve], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22481
- var VS = createSelector([at], (a2) => St(a2));
22482
- var FS = createSelector([ca], (a2) => St(a2));
22483
- var cn = createSelector([X, O], (a2, e) => {
22506
+ var nn = (a2) => a2.roleChangeRequests[0] || null;
22507
+ var KS = createSelector([nn, z, Me], (a2, e, t) => a2 ? { requestedBy: a2.requestedBy ? e[a2.requestedBy] : void 0, role: t[a2.roleName], token: a2.token } : null);
22508
+ var qS = createSelector([ot], (a2) => gt(a2));
22509
+ var jS = createSelector([la], (a2) => gt(a2));
22510
+ var dn = createSelector([Z, O], (a2, e) => {
22484
22511
  let t = null;
22485
22512
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22486
22513
  });
22487
- var dn = createSelector([ne, O], (a2, e) => {
22514
+ var ln = createSelector([ce, O], (a2, e) => {
22488
22515
  let t = null;
22489
22516
  return a2 && (t = e[a2]), (t == null ? void 0 : t.plugins) || [];
22490
22517
  });
22491
- var pn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(pn || {});
22492
- var es = class {
22518
+ var hn = ((n) => (n[n.STARTING = 0] = "STARTING", n[n.INIT_FETCHED = 1] = "INIT_FETCHED", n[n.SIGNAL_CONNECTED = 2] = "SIGNAL_CONNECTED", n[n.ICE_ESTABLISHED = 3] = "ICE_ESTABLISHED", n[n.MEDIA_CAPTURED = 4] = "MEDIA_CAPTURED", n[n.MEDIA_PUBLISHED = 5] = "MEDIA_PUBLISHED", n[n.COMPLETED = 6] = "COMPLETED", n))(hn || {});
22519
+ var ts = class {
22493
22520
  constructor() {
22494
22521
  this.TAG = "[HTTPAnalyticsTransport]";
22495
- this.failedEvents = new me("client-events");
22522
+ this.failedEvents = new Se("client-events");
22496
22523
  this.isConnected = true;
22497
22524
  this.env = null;
22498
22525
  this.websocketURL = "";
@@ -22508,7 +22535,7 @@ var es = class {
22508
22535
  this.addEventToStorage(e);
22509
22536
  return;
22510
22537
  }
22511
- let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? js : Js;
22538
+ let t = { event: e.name, payload: e.properties, event_id: String(e.timestamp), peer: e.metadata.peer, timestamp: e.timestamp, device_id: e.device_id, cluster: { websocket_url: this.websocketURL } }, i = this.env === "prod" ? Qs : zs;
22512
22539
  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) => {
22513
22540
  if (r.status === 401) {
22514
22541
  this.removeFromStorage(e);
@@ -22534,8 +22561,8 @@ var es = class {
22534
22561
  i > -1 && (t.splice(i, 1), this.failedEvents.set(t));
22535
22562
  }
22536
22563
  };
22537
- var be = new es();
22538
- var Vt = class {
22564
+ var Ae = new ts();
22565
+ var Ft = class {
22539
22566
  static handleError(e) {
22540
22567
  if (e.status === 404)
22541
22568
  throw S.APIErrors.EndpointUnreachable("FEEDBACK", e.statusText);
@@ -22545,14 +22572,14 @@ var Vt = class {
22545
22572
  static sendFeedback(s) {
22546
22573
  return c(this, arguments, function* ({ token: e, eventEndpoint: t = "https://event.100ms.live", info: i, feedback: r }) {
22547
22574
  l.d(this.TAG, `sendFeedback: feedbackEndpoint=${t} peerId=${i.peer.peer_id} session=${i.peer.session_id} `);
22548
- let o = new URL("v2/client/feedback", t), n = y(m({}, i), { payload: r });
22575
+ let o = new URL("v2/client/feedback", t), n = M(h({}, i), { payload: r });
22549
22576
  try {
22550
22577
  let d = yield fetch(o, { headers: { Authorization: `Bearer ${e}` }, body: JSON.stringify(n), method: "POST" });
22551
22578
  try {
22552
22579
  this.handleError(d);
22553
22580
  return;
22554
22581
  } catch (u) {
22555
- throw l.e(this.TAG, "error", u.message, d.status), u instanceof M ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
22582
+ throw l.e(this.TAG, "error", u.message, d.status), u instanceof k ? u : S.APIErrors.ServerErrors(d.status, "FEEDBACK", u.message);
22556
22583
  }
22557
22584
  } catch (d) {
22558
22585
  let u = d;
@@ -22561,67 +22588,67 @@ var Vt = class {
22561
22588
  });
22562
22589
  }
22563
22590
  };
22564
- Vt.TAG = "[FeedbackService]";
22565
- var ts = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(ts || {});
22566
- var j = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(j || {});
22567
- var sr = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(sr || {});
22568
- var lt = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(lt || {});
22591
+ Ft.TAG = "[FeedbackService]";
22592
+ var is = ((f) => (f.FLAG_SERVER_SUB_DEGRADATION = "subscribeDegradation", f.FLAG_SERVER_SIMULCAST = "simulcast", f.FLAG_NON_WEBRTC_DISABLE_OFFER = "nonWebRTCDisableOffer", f.FLAG_PUBLISH_STATS = "publishStats", f.FLAG_SUBSCRIBE_STATS = "subscribeStats", f.FLAG_ON_DEMAND_TRACKS = "onDemandTracks", f.FLAG_DISABLE_VIDEO_TRACK_AUTO_UNSUBSCRIBE = "disableVideoTrackAutoUnsubscribe", f.FLAG_WHITEBOARD_ENABLED = "whiteboardEnabled", f.FLAG_EFFECTS_SDK_ENABLED = "effectsSDKEnabled", f.FLAG_VB_ENABLED = "vb", f.FLAG_HIPAA_ENABLED = "hipaa", f.FLAG_NOISE_CANCELLATION = "noiseCancellation", f.FLAG_SCALE_SCREENSHARE_BASED_ON_PIXELS = "scaleScreenshareBasedOnPixels", f.FLAG_DISABLE_NONE_LAYER_REQUEST = "disableNoneLayerRequest", f))(is || {});
22593
+ var J = ((s) => (s[s.ConnectFailed = 0] = "ConnectFailed", s[s.SignalDisconnect = 1] = "SignalDisconnect", s[s.JoinWSMessageFailed = 2] = "JoinWSMessageFailed", s[s.PublishIceConnectionFailed = 3] = "PublishIceConnectionFailed", s[s.SubscribeIceConnectionFailed = 4] = "SubscribeIceConnectionFailed", s))(J || {});
22594
+ var ar = ((n) => (n.Disconnected = "Disconnected", n.Connecting = "Connecting", n.Joined = "Joined", n.Preview = "Preview", n.Failed = "Failed", n.Reconnecting = "Reconnecting", n.Leaving = "Leaving", n))(ar || {});
22595
+ var ut = ((t) => (t[t.Publish = 0] = "Publish", t[t.Subscribe = 1] = "Subscribe", t))(ut || {});
22569
22596
  var wn = (a2) => a2.localPeer.id;
22570
- var Dn = (a2) => a2.localPeer.audioTrack;
22571
- var _n = (a2) => a2.localPeer.videoTrack;
22572
- var Nn = (a2, e) => e;
22573
- var Za = (a2, e) => e;
22574
- var On = (a2) => a2.remoteTrackStats;
22575
- var eo = (a2) => a2.peerStats;
22576
- var as = (a2) => a2.localTrackStats;
22577
- var Ie = createSelector([eo, wn], (a2, e) => a2[e]);
22578
- var xn = createSelector(Ie, (a2) => {
22597
+ var _n = (a2) => a2.localPeer.audioTrack;
22598
+ var Nn = (a2) => a2.localPeer.videoTrack;
22599
+ var On = (a2, e) => e;
22600
+ var to = (a2, e) => e;
22601
+ var xn = (a2) => a2.remoteTrackStats;
22602
+ var io = (a2) => a2.peerStats;
22603
+ var os = (a2) => a2.localTrackStats;
22604
+ var Re = createSelector([io, wn], (a2, e) => a2[e]);
22605
+ var Un = createSelector(Re, (a2) => {
22579
22606
  var e;
22580
22607
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.packetsLost;
22581
22608
  });
22582
- var Un = createSelector(Ie, (a2) => {
22609
+ var Bn = createSelector(Re, (a2) => {
22583
22610
  var e;
22584
22611
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.jitter;
22585
22612
  });
22586
- var Bn = createSelector(Ie, (a2) => {
22613
+ var Vn = createSelector(Re, (a2) => {
22587
22614
  var e;
22588
22615
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bitrate;
22589
22616
  });
22590
- var Vn = createSelector(Ie, (a2) => {
22617
+ var Fn = createSelector(Re, (a2) => {
22591
22618
  var e;
22592
22619
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bitrate;
22593
22620
  });
22594
- var Fn = createSelector(Ie, (a2) => {
22621
+ var Gn = createSelector(Re, (a2) => {
22595
22622
  var e;
22596
22623
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.availableOutgoingBitrate;
22597
22624
  });
22598
- var Gn = createSelector(Ie, (a2) => {
22625
+ var Wn = createSelector(Re, (a2) => {
22599
22626
  var e;
22600
22627
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.availableIncomingBitrate;
22601
22628
  });
22602
- var Wn = createSelector(Ie, (a2) => {
22629
+ var $n = createSelector(Re, (a2) => {
22603
22630
  var e;
22604
22631
  return (e = a2 == null ? void 0 : a2.publish) == null ? void 0 : e.bytesSent;
22605
22632
  });
22606
- var $n = createSelector(Ie, (a2) => {
22633
+ var Kn = createSelector(Re, (a2) => {
22607
22634
  var e;
22608
22635
  return (e = a2 == null ? void 0 : a2.subscribe) == null ? void 0 : e.bytesReceived;
22609
22636
  });
22610
- var Kn = createSelector([eo, Nn], (a2, e) => e ? a2[e] : void 0);
22611
- var qn = createSelector([On, Za], (a2, e) => e ? a2[e] : void 0);
22612
- var os = createSelector([as, Za], (a2, e) => e ? a2[e] : void 0);
22613
- var jn = H(Kn);
22637
+ var qn = createSelector([io, On], (a2, e) => e ? a2[e] : void 0);
22638
+ var jn = createSelector([xn, to], (a2, e) => e ? a2[e] : void 0);
22639
+ var ns = createSelector([os, to], (a2, e) => e ? a2[e] : void 0);
22614
22640
  var Jn = H(qn);
22615
- var Qn = createSelector([as, Dn], (a2, e) => {
22641
+ var Qn = H(jn);
22642
+ var zn = createSelector([os, _n], (a2, e) => {
22616
22643
  var t;
22617
22644
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22618
22645
  });
22619
- var zn = H(createSelector(os, (a2) => a2 == null ? void 0 : a2[0]));
22620
- var Yn = createSelector([as, _n], (a2, e) => {
22646
+ var Yn = H(createSelector(ns, (a2) => a2 == null ? void 0 : a2[0]));
22647
+ var Xn = createSelector([os, Nn], (a2, e) => {
22621
22648
  var t;
22622
22649
  return e ? (t = a2[e]) == null ? void 0 : t[0] : void 0;
22623
22650
  });
22624
- var Xn = H(createSelector(os, (a2) => a2));
22651
+ var Zn = H(createSelector(ns, (a2) => a2));
22625
22652
 
22626
22653
  // src/Prebuilt/components/Header/StreamActions.tsx
22627
22654
  import {
@@ -22740,7 +22767,7 @@ var RecordingStatus = () => {
22740
22767
  };
22741
22768
  var RecordingPauseStatus = () => {
22742
22769
  const recording = useHMSStore29(selectRecordingState2);
22743
- if (recording.hls && recording.hls.state === _s.PAUSED) {
22770
+ if (recording.hls && recording.hls.state === Os.PAUSED) {
22744
22771
  return /* @__PURE__ */ React64.createElement(
22745
22772
  Tooltip,
22746
22773
  {
@@ -23029,7 +23056,7 @@ init_define_process_env();
23029
23056
  import { useEffect as useEffect24, useState as useState30 } from "react";
23030
23057
  import { HMSNotificationTypes, useHMSNotifications, useHMSStore as useHMSStore32 } from "@100mslive/react-sdk";
23031
23058
  var useUnreadPollQuizPresent = () => {
23032
- const localPeerID = useHMSStore32(Ee);
23059
+ const localPeerID = useHMSStore32(Pe);
23033
23060
  const notification = useHMSNotifications(HMSNotificationTypes.POLL_STARTED);
23034
23061
  const [unreadPollQuiz, setUnreadPollQuiz] = useState30(false);
23035
23062
  useEffect24(() => {
@@ -27580,7 +27607,7 @@ var Chat = () => {
27580
27607
  const listRef = useRef26(null);
27581
27608
  const hmsActions = useHMSActions43();
27582
27609
  const vanillaStore = useHMSVanillaStore11();
27583
- const { enabled: isChatEnabled = true } = useHMSStore61(Xm("chatState" /* CHAT_STATE */)) || {};
27610
+ const { enabled: isChatEnabled = true } = useHMSStore61(sS("chatState" /* CHAT_STATE */)) || {};
27584
27611
  const isMobile = useMedia21(config.media.md);
27585
27612
  const isMobileHLSStream = useMobileHLSStream();
27586
27613
  const isLandscapeStream = useLandscapeHLSStream();
@@ -27670,7 +27697,7 @@ var NewMessageIndicator = ({
27670
27697
  scrollToBottom,
27671
27698
  listRef
27672
27699
  }) => {
27673
- const unreadCount = useHMSStore61(Mm);
27700
+ const unreadCount = useHMSStore61(Am);
27674
27701
  if (!unreadCount || !listRef.current) {
27675
27702
  return null;
27676
27703
  }
@@ -28683,7 +28710,7 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28683
28710
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
28684
28711
  const hmsActions = useHMSActions46();
28685
28712
  const localPeer = useHMSStore69(selectLocalPeer8);
28686
- const role = useHMSStore69(at);
28713
+ const role = useHMSStore69(ot);
28687
28714
  const isVideoOn = useHMSStore69(selectIsLocalVideoEnabled6);
28688
28715
  const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
28689
28716
  const trackSelector = selectVideoTrackByID4(localPeer == null ? void 0 : localPeer.videoTrack);
@@ -28692,12 +28719,12 @@ var VBPicker = ({ backgroundMedia = [] }) => {
28692
28719
  const roomState = useHMSStore69(selectRoomState5);
28693
28720
  const isLargeRoom = useHMSStore69(selectIsLargeRoom3);
28694
28721
  const isEffectsSupported = VBHandler.isEffectsSupported();
28695
- const isEffectsEnabled = useHMSStore69(Dm);
28696
- const effectsKey = useHMSStore69(Nm);
28722
+ const isEffectsEnabled = useHMSStore69(Bm);
28723
+ const effectsKey = useHMSStore69(Fm);
28697
28724
  const isMobile = useMedia25(config.media.md);
28698
28725
  const [loadingEffects, setLoadingEffects] = useSetAppDataByKey(APP_DATA.loadingEffects);
28699
28726
  const isPluginAdded = useHMSStore69(selectIsLocalVideoPluginPresent(((_a7 = VBHandler) == null ? void 0 : _a7.getName()) || ""));
28700
- const background = useHMSStore69(Ym(APP_DATA.background));
28727
+ const background = useHMSStore69(rS(APP_DATA.background));
28701
28728
  const mediaList = backgroundMedia.map((media) => media.url || "");
28702
28729
  const pluginLoadingRef = useRef27(false);
28703
28730
  const isBlurSupported = (_b7 = VBHandler) == null ? void 0 : _b7.isBlurSupported();
@@ -29711,7 +29738,7 @@ var Grid = React143.forwardRef(
29711
29738
  justifyContent: "center",
29712
29739
  flexFlow: "row wrap",
29713
29740
  minHeight: 0,
29714
- "@md": { gap: edgeToEdge ? 0 : "$4" }
29741
+ "@lg": { gap: edgeToEdge ? 0 : "$4" }
29715
29742
  }
29716
29743
  },
29717
29744
  tiles == null ? void 0 : tiles.map((tile) => {
@@ -29789,14 +29816,14 @@ var useTileLayout = ({
29789
29816
  const matrix = new Array(maxRows).fill(null).map((_, i) => {
29790
29817
  const numCols = Math.min(maxCols, noOfTilesInPage - i * maxCols);
29791
29818
  const rowElements = [];
29792
- for (let j2 = 0; j2 < numCols; j2++) {
29819
+ for (let j = 0; j < numCols; j++) {
29793
29820
  if (index < page.length) {
29794
29821
  rowElements.push(page[index++]);
29795
29822
  }
29796
29823
  }
29797
29824
  return rowElements;
29798
29825
  });
29799
- const gap = edgeToEdge ? 0 : 8;
29826
+ const gap = edgeToEdge && isMobile ? 0 : 8;
29800
29827
  const maxHeight = height - (maxRows - 1) * gap;
29801
29828
  const maxRowHeight = maxHeight / matrix.length;
29802
29829
  const aspectRatios = isMobile && (noOfTilesInPage === 1 || noOfTilesInPage > 3) ? aspectRatioConfig.mobile : aspectRatioConfig.default;
@@ -29807,10 +29834,10 @@ var useTileLayout = ({
29807
29834
  tileHeight = maxRowHeight;
29808
29835
  } else {
29809
29836
  const calcHeights = aspectRatios.map((aR) => tileWidth / aR);
29810
- for (const h of calcHeights) {
29811
- if (h < maxRowHeight) {
29812
- if (tileHeight < h) {
29813
- tileHeight = h;
29837
+ for (const h2 of calcHeights) {
29838
+ if (h2 < maxRowHeight) {
29839
+ if (tileHeight < h2) {
29840
+ tileHeight = h2;
29814
29841
  }
29815
29842
  }
29816
29843
  }
@@ -29828,8 +29855,8 @@ var useTileLayout = ({
29828
29855
  }
29829
29856
  }
29830
29857
  for (let i = 0; i < row.length; i++) {
29831
- row[i].width = tileWidth - gap / maxCols * (maxCols - 1);
29832
- row[i].height = tileHeight - gap / maxRows * (maxRows - 1);
29858
+ row[i].width = tileWidth;
29859
+ row[i].height = tileHeight;
29833
29860
  }
29834
29861
  }
29835
29862
  }
@@ -33252,7 +33279,7 @@ var ErrorBoundary = class extends Component {
33252
33279
  left: 0
33253
33280
  }
33254
33281
  },
33255
- /* @__PURE__ */ React177.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React177.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React177.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React177.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ React177.createElement("a", { href: "https://discord.com/invite/kGdmszyzq2", target: "_blank", rel: "noreferrer" }, "Discord")),
33282
+ /* @__PURE__ */ React177.createElement("div", { style: { margin: "1.5rem", width: "100%" } }, /* @__PURE__ */ React177.createElement(Text, null, "Something went wrong"), /* @__PURE__ */ React177.createElement(Text, null, "Message: $", this.state.error), /* @__PURE__ */ React177.createElement("br", null), "Please reload to see if it works. If you think this is a mistake on our side, please reach out to us on", /* @__PURE__ */ React177.createElement("a", { href: "https://dashboard.100ms.live/dashboard", target: "_blank", rel: "noreferrer" }, "Dashboard")),
33256
33283
  /* @__PURE__ */ React177.createElement(Flex, null, /* @__PURE__ */ React177.createElement(Tooltip, { title: "Reload page" }, /* @__PURE__ */ React177.createElement(
33257
33284
  Button,
33258
33285
  {
@@ -34128,7 +34155,11 @@ var DeviceChangeNotifications = () => {
34128
34155
  // src/Prebuilt/components/Notifications/DeviceInUseError.tsx
34129
34156
  init_define_process_env();
34130
34157
  import React186, { useEffect as useEffect72, useState as useState79 } from "react";
34131
- import { HMSNotificationTypes as HMSNotificationTypes4, useHMSNotifications as useHMSNotifications4 } from "@100mslive/react-sdk";
34158
+ import {
34159
+ HMSNotificationTypes as HMSNotificationTypes4,
34160
+ HMSTrackExceptionTrackType,
34161
+ useHMSNotifications as useHMSNotifications4
34162
+ } from "@100mslive/react-sdk";
34132
34163
  var Instruction = ({ description }) => /* @__PURE__ */ React186.createElement("li", null, /* @__PURE__ */ React186.createElement(DialogRow, { css: { ml: "$4" } }, /* @__PURE__ */ React186.createElement(Text, { variant: "body2" }, description)));
34133
34164
  function DeviceInUseError() {
34134
34165
  const notification = useHMSNotifications4(HMSNotificationTypes4.ERROR);
@@ -34139,15 +34170,17 @@ function DeviceInUseError() {
34139
34170
  if (!error || error.code !== 3003) {
34140
34171
  return;
34141
34172
  }
34173
+ const errorTrackExceptionType = error == null ? void 0 : error.trackType;
34174
+ const hasAudio = errorTrackExceptionType === HMSTrackExceptionTrackType.AUDIO;
34175
+ const hasVideo = errorTrackExceptionType === HMSTrackExceptionTrackType.VIDEO;
34176
+ const hasAudioVideo = errorTrackExceptionType === HMSTrackExceptionTrackType.AUDIO_VIDEO;
34177
+ const hasScreen = errorTrackExceptionType === HMSTrackExceptionTrackType.SCREEN;
34142
34178
  const errorMessage = error == null ? void 0 : error.message;
34143
34179
  ToastManager.addToast({
34144
34180
  title: `Error: ${errorMessage} - ${error == null ? void 0 : error.description}`,
34145
34181
  action: /* @__PURE__ */ React186.createElement(Button, { outlined: true, variant: "standard", css: { w: "max-content" }, onClick: () => setShowDeviceInUseModal(true) }, "Help")
34146
34182
  });
34147
- const hasAudio = errorMessage.includes("audio");
34148
- const hasVideo = errorMessage.includes("video");
34149
- const hasScreen = errorMessage.includes("screen");
34150
- if (hasAudio && hasVideo) {
34183
+ if (hasAudioVideo) {
34151
34184
  setDeviceType("camera and microphone");
34152
34185
  } else if (hasAudio) {
34153
34186
  setDeviceType("microphone");
@@ -34562,8 +34595,8 @@ import { useEffect as useEffect76 } from "react";
34562
34595
  import { useAwayNotifications as useAwayNotifications5, useHMSNotifications as useHMSNotifications8, useHMSStore as useHMSStore92 } from "@100mslive/react-sdk";
34563
34596
  var MessageNotifications = () => {
34564
34597
  var _a7, _b7;
34565
- const notification = useHMSNotifications8(fr.NEW_MESSAGE);
34566
- const amIScreenSharing = useHMSStore92(qr);
34598
+ const notification = useHMSNotifications8(vr.NEW_MESSAGE);
34599
+ const amIScreenSharing = useHMSStore92(jr);
34567
34600
  const logoURL = (_b7 = (_a7 = useRoomLayout()) == null ? void 0 : _a7.logo) == null ? void 0 : _b7.url;
34568
34601
  const { pipWindow } = usePIPWindow();
34569
34602
  const { showNotification } = useAwayNotifications5();
@@ -34627,7 +34660,11 @@ var PeerNotifications = () => {
34627
34660
  init_define_process_env();
34628
34661
  import React190, { useEffect as useEffect78, useState as useState81 } from "react";
34629
34662
  import { useMedia as useMedia50 } from "react-use";
34630
- import { HMSNotificationTypes as HMSNotificationTypes9, useHMSNotifications as useHMSNotifications10 } from "@100mslive/react-sdk";
34663
+ import {
34664
+ HMSNotificationTypes as HMSNotificationTypes9,
34665
+ HMSTrackExceptionTrackType as HMSTrackExceptionTrackType2,
34666
+ useHMSNotifications as useHMSNotifications10
34667
+ } from "@100mslive/react-sdk";
34631
34668
  import androidPermissionAlert from "./android-perm-1.png";
34632
34669
  import iosPermissions from "./ios-perm-0.png";
34633
34670
  function PermissionErrorNotificationModal() {
@@ -34642,11 +34679,12 @@ var PermissionErrorModal = ({ error }) => {
34642
34679
  if (!error || (error == null ? void 0 : error.code) !== 3001 && (error == null ? void 0 : error.code) !== 3011 || (error == null ? void 0 : error.code) === 3001 && (error == null ? void 0 : error.message.includes("screen"))) {
34643
34680
  return;
34644
34681
  }
34645
- const errorMessage = error == null ? void 0 : error.message;
34646
- const hasAudio = errorMessage.includes("audio");
34647
- const hasVideo = errorMessage.includes("video");
34648
- const hasScreen = errorMessage.includes("screen");
34649
- if (hasAudio && hasVideo) {
34682
+ const errorTrackExceptionType = error == null ? void 0 : error.trackType;
34683
+ const hasAudio = errorTrackExceptionType === HMSTrackExceptionTrackType2.AUDIO;
34684
+ const hasVideo = errorTrackExceptionType === HMSTrackExceptionTrackType2.VIDEO;
34685
+ const hasAudioVideo = errorTrackExceptionType === HMSTrackExceptionTrackType2.AUDIO_VIDEO;
34686
+ const hasScreen = errorTrackExceptionType === HMSTrackExceptionTrackType2.SCREEN;
34687
+ if (hasAudioVideo) {
34650
34688
  setDeviceType("camera and microphone");
34651
34689
  } else if (hasAudio) {
34652
34690
  setDeviceType("microphone");