diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ec50927..131be028 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Suibase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - New VSCode extension https://marketplace.visualstudio.com/items?itemName=suibase.suibase ### Fixed +- "lsui/dsui/tsui client faucet" commands now work. - More robust handling of backend (suibase-daemon) - Reduce localnet storage need (delete full_node_db on regen). diff --git a/repair b/repair index 29b16818..656d8392 100755 --- a/repair +++ b/repair @@ -188,13 +188,13 @@ suibase_repair() { if [ -z "$SUIBASE_DAEMON_VERSION_FILE" ]; then # shellcheck source=SCRIPTDIR/scripts/common/__suibase-daemon.sh source "$REPAIR_SB_DIR/scripts/common/__suibase-daemon.sh" - update_suibase_daemon_as_needed + start_suibase_daemon_as_needed fi if [ -z "$DTP_DAEMON_VERSION_FILE" ]; then # shellcheck source=SCRIPTDIR/scripts/common/__dtp-daemon.sh source "$REPAIR_SB_DIR/scripts/common/__dtp-daemon.sh" - update_dtp_daemon_as_needed + start_dtp_daemon_as_needed fi # Exit instruction to the user. diff --git a/restart b/restart index a13863b3..fadf69e4 100755 --- a/restart +++ b/restart @@ -7,7 +7,7 @@ # Source '__globals.sh'. SUIBASE_DIR="$HOME/suibase" SCRIPT_COMMON_CALLER="$(readlink -f "$0")" -WORKDIR="localnet" +WORKDIR="none" main() { # Detect if suibase is not installed! @@ -27,16 +27,19 @@ main() { exit_if_deps_missing # Block users from running any concurrent CLI commands. - cli_mutex_lock "localnet" - cli_mutex_lock "mainnet" - cli_mutex_lock "devnet" - cli_mutex_lock "testnet" - cli_mutex_lock "cargobin" - cli_mutex_lock "active" - - restart_suibase_daemon - # Check for any JSON-RPC up, except for localnet. - wait_for_json_rpc_up "exclude-localnet" + cli_mutex_lock "suibase_daemon" + + + update_SUIBASE_DAEMON_PID_var + + local _OLD_PID=$SUIBASE_DAEMON_PID + start_suibase_daemon_as_needed + + if [ "$_OLD_PID" == "$SUIBASE_DAEMON_PID" ]; then + restart_suibase_daemon + # Check for any JSON-RPC up, except for localnet. + wait_for_json_rpc_up "exclude-localnet" + fi } main "$@" diff --git a/scripts/common/__globals.sh b/scripts/common/__globals.sh index fff2a1b4..b324feb4 100644 --- a/scripts/common/__globals.sh +++ b/scripts/common/__globals.sh @@ -155,16 +155,33 @@ export SUIBASE_CLI_LOCK_ACQUIRED_TESTNET=0 export SUIBASE_CLI_LOCK_ACQUIRED_MAINNET=0 export SUIBASE_CLI_LOCK_ACQUIRED_CARGOBIN=0 export SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE=0 +export SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON=0 +export SUIBASE_CLI_LOCK_DISABLED=0 +# Disable CLI mutex mechanism. +# +# Useful for when a script is called by a script that already acquired the necessary lock. +# In that case, the child script should not use any of the mutex. +cli_mutex_disable() { + SUIBASE_CLI_LOCK_DISABLED=1 +} +export -f cli_mutex_disable + +# Allow to disable a lock. Used for cleanup() { # echo "Cleanup called" # Clear progress files created by this script. - if [ "$SUIBASE_DAEMON_UPGRADING" == "1" ]; then + if [ "$SUIBASE_DAEMON_UPGRADING" == "true" ]; then rm -f /tmp/.suibase/suibase-daemon-upgrading >/dev/null 2>&1 fi # Associative arrays are not working for the trap. bash limitation? # Did workaround by painfully defining variables for each workdir. + if [ "$SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE" == "1" ]; then + cli_mutex_release "active" + SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE=0 + fi + if [ "$SUIBASE_CLI_LOCK_ACQUIRED_LOCALNET" == "1" ]; then cli_mutex_release "localnet" SUIBASE_CLI_LOCK_ACQUIRED_LOCALNET=0 @@ -190,11 +207,10 @@ cleanup() { SUIBASE_CLI_LOCK_ACQUIRED_CARGOBIN=0 fi - if [ "$SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE" == "1" ]; then - cli_mutex_release "active" - SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE=0 + if [ "$SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON" == "1" ]; then + cli_mutex_release "suibase_daemon" + SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON=0 fi - } # Add color @@ -384,8 +400,7 @@ try_locked_command() { export -f try_locked_command -cli_mutex_lock() -{ +cli_mutex_lock() { # mutex is re-entrant (only first call to cli_mutex_lock will acquire the lock). # Design choice: @@ -404,6 +419,10 @@ cli_mutex_lock() # # Worst case, because the lock is in /tmp, a stale lock can be workaround with a reboot... + if [ "$SUIBASE_CLI_LOCK_DISABLED" == "1" ]; then + return + fi + local _WORKDIR=$1 if [ -z "$_WORKDIR" ]; then @@ -433,6 +452,9 @@ cli_mutex_lock() active) _IS_ACQUIRED=$SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE ;; + suibase_daemon) + _IS_ACQUIRED=$SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON + ;; *) setup_error "Internal error. cli_mutex_lock called with an unknown workdir $_WORKDIR" ;; @@ -467,12 +489,13 @@ cli_mutex_lock() active) SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE=1 ;; + suibase_daemon) + SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON=1 + ;; *) setup_error "Internal error. cli_mutex_lock called with an unknown workdir $_WORKDIR" ;; esac - - # echo "Lock acquired for $_WORKDIR" } export -f cli_mutex_lock @@ -506,8 +529,11 @@ cli_mutex_release() active) _IS_ACQUIRED=$SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE ;; + suibase_daemon) + _IS_ACQUIRED=$SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON + ;; *) - setup_error "Internal error. cli_mutex_lock called with an unknown workdir $_WORKDIR" + setup_error "Internal error. cli_mutex_release called with an unknown workdir $_WORKDIR" ;; esac if [ "$_IS_ACQUIRED" == "0" ]; then @@ -537,6 +563,9 @@ cli_mutex_release() active) SUIBASE_CLI_LOCK_ACQUIRED_ACTIVE=0 ;; + suibase_daemon) + SUIBASE_CLI_LOCK_ACQUIRED_SUIBASE_DAEMON=0 + ;; esac #echo "Lock released for $_WORKDIR" @@ -3327,9 +3356,9 @@ has_param() { } export -f has_param -export SUIBASE_DAEMON_UPGRADING=0 +export SUIBASE_DAEMON_UPGRADING=false progress_suibase_daemon_upgrading() { - SUIBASE_DAEMON_UPGRADING=1 + SUIBASE_DAEMON_UPGRADING=true mkdir -p "$SUIBASE_TMP_DIR" touch "$SUIBASE_TMP_DIR/suibase-daemon-upgrading" } diff --git a/scripts/common/__sui-exec.sh b/scripts/common/__sui-exec.sh index a4dd0d0a..e5acdc08 100755 --- a/scripts/common/__sui-exec.sh +++ b/scripts/common/__sui-exec.sh @@ -147,6 +147,8 @@ sui_exec() { # does not specify path (and default to current dir). local _OPT_DEFAULT_PATH="" local _OPT_DEFAULT_INSTALLDIR="" + local _OPT_URL_PARAM="" + if [[ $SUI_SUBCOMMAND == "client" ]]; then case $1 in publish | verify-source | verify-bytecode-meter | upgrade) @@ -158,6 +160,20 @@ sui_exec() { _OPT_DEFAULT_INSTALLDIR="--install-dir $USER_CWD" fi ;; + faucet) + if ! has_param "" "--url" "$@"; then + if [ "$WORKDIR" = "localnet" ]; then + if [ "${CFG_sui_faucet_enabled:?}" != "true" ]; then + error_exit "suibase faucet not enabled for localnet. Check suibase.yaml config." + fi + _OPT_URL_PARAM="--url http://${CFG_sui_faucet_host_ip:?}:${CFG_sui_faucet_port:?}/gas" + elif [ "$WORKDIR" = "devnet" ] || [ "$WORKDIR" = "testnet" ]; then + _OPT_URL_PARAM="--url https://faucet.${WORKDIR}.sui.io/gas" + else + error_exit "faucet command not applicable to $WORKDIR" + fi + fi + ;; *) ;; # Do nothing esac fi @@ -166,7 +182,7 @@ sui_exec() { update_CANONICAL_ARGS_var "$@" # shellcheck disable=SC2086,SC2068 - $SUI_BIN "$SUI_SUBCOMMAND" --client.config "$CLIENT_CONFIG" ${CANONICAL_ARGS[@]} $_OPT_DEFAULT_INSTALLDIR $_OPT_DEFAULT_PATH + $SUI_BIN "$SUI_SUBCOMMAND" --client.config "$CLIENT_CONFIG" ${CANONICAL_ARGS[@]} $_OPT_DEFAULT_INSTALLDIR $_OPT_URL_PARAM $_OPT_DEFAULT_PATH if [ "$WORKDIR" = "localnet" ]; then # Print a friendly warning if localnet sui process found not running. diff --git a/scripts/common/__suibase-daemon.sh b/scripts/common/__suibase-daemon.sh index 470867df..8b63071b 100644 --- a/scripts/common/__suibase-daemon.sh +++ b/scripts/common/__suibase-daemon.sh @@ -85,16 +85,17 @@ need_suibase_daemon_upgrade() { export -f need_suibase_daemon_upgrade build_suibase_daemon() { + # Note: lock function is re-entrant. Won't block if this script is already holding the lock. + cli_mutex_lock "suibase_daemon" + # # (re)build suibase-daemon and install it. # echo "Building $SUIBASE_DAEMON_NAME" rm -f "$SUIBASE_DAEMON_VERSION_FILE" >/dev/null 2>&1 - if [ "${CFG_proxy_enabled:?}" != "dev" ]; then - # Clean the build directory. - rm -rf "$SUIBASE_DAEMON_BUILD_DIR/target" >/dev/null 2>&1 - fi + # Clean the build directory. + rm -rf "$SUIBASE_DAEMON_BUILD_DIR/target" >/dev/null 2>&1 (if cd "$SUIBASE_DAEMON_BUILD_DIR"; then cargo build -p "$SUIBASE_DAEMON_NAME"; else setup_error "unexpected missing $SUIBASE_DAEMON_BUILD_DIR"; fi) # Copy the build result from target to $SUIBASE_BIN_DIR @@ -127,10 +128,9 @@ build_suibase_daemon() { # Update the installed version file. echo "$SUIBASE_DAEMON_VERSION_SOURCE_CODE" >|"$SUIBASE_DAEMON_VERSION_FILE" - if [ "${CFG_proxy_enabled:?}" != "dev" ]; then - # Clean the build directory. - rm -rf "$SUIBASE_DAEMON_BUILD_DIR/target" >/dev/null 2>&1 - fi + + # Clean the build directory. + rm -rf "$SUIBASE_DAEMON_BUILD_DIR/target" >/dev/null 2>&1 } export -f build_suibase_daemon @@ -155,14 +155,17 @@ start_suibase_daemon() { return fi - echo "Starting $SUIBASE_DAEMON_NAME" + # Note: lock function is re-entrant. Won't block if this script is already holding the lock. + cli_mutex_lock "suibase_daemon" - if [ "${CFG_proxy_enabled:?}" = "dev" ]; then - # Run it in the foreground and just exit when done. - "$HOME"/suibase/scripts/common/run-daemon.sh suibase foreground - exit + # Check again while holding the lock. + if is_suibase_daemon_running; then + return fi + echo "Starting $SUIBASE_DAEMON_NAME" + mkdir -p "$HOME/suibase/workdirs/common/logs" + # Try until can confirm the suibase-daemon is running healthy, or exit # if takes too much time. end=$((SECONDS + 50)) @@ -177,7 +180,9 @@ start_suibase_daemon() { # All errors will be visible through the suibase-daemon own logs or by observing # which PID owns the flock file. So all output of the script (if any) can # safely be ignored to /dev/null. - nohup "$HOME/suibase/scripts/common/run-daemon.sh" suibase >/dev/null 2>&1 & + # + # "cli-call" param prevent run-daemon to try locking the CLI mutex. + nohup "$HOME/suibase/scripts/common/run-daemon.sh" suibase cli-call >"$HOME/suibase/workdirs/common/logs/run-daemon.log" 2>&1 & local _NEXT_RETRY=$((SECONDS + 10)) while [ $SECONDS -lt $end ]; do @@ -221,7 +226,7 @@ start_suibase_daemon() { export -f start_suibase_daemon wait_for_json_rpc_up() { - local _CMD=$1 # a specific workdir, "any" or "exclude-localnet" + local _CMD=$1 # a specific workdir, "any", "none" or "exclude-localnet" # Array of valid workdirs local _WORKDIRS_VALID_LIST=("localnet" "testnet" "devnet" "mainnet") @@ -234,7 +239,7 @@ wait_for_json_rpc_up() { fi done - if [ "$_WORKDIR_VALID" = false ] && [ "$_CMD" != "any" ] && [ "$_CMD" != "exclude-localnet" ]; then + if [ "$_WORKDIR_VALID" = false ] && [ "$_CMD" != "any" ] && [ "$_CMD" != "none" ] && [ "$_CMD" != "exclude-localnet" ]; then warn_user "wait_for_json_rpc_up unexpected workdir name: $_CMD" return fi @@ -246,6 +251,9 @@ wait_for_json_rpc_up() { local _WORKDIRS_ORDERED_LIST if $_WORKDIR_VALID; then _WORKDIRS_ORDERED_LIST=("$_CMD") + elif [ "$_CMD" == "any" ] || [ "$_CMD" == "none" ]; then + # Try one of the remote workdirs (localnet might not be started yet). + _WORKDIRS_ORDERED_LIST=("testnet" "devnet" "mainnet") else _WORKDIRS_ORDERED_LIST=("$WORKDIR_NAME") # Append the other workdirs in the order of the _WORKDIRS_VALID_LIST @@ -331,12 +339,15 @@ wait_for_json_rpc_up() { export -f wait_for_json_rpc_up restart_suibase_daemon() { + # Note: lock function is re-entrant. Won't block if this script is already holding the lock. + cli_mutex_lock "suibase_daemon" + update_SUIBASE_DAEMON_PID_var if [ -z "$SUIBASE_DAEMON_PID" ]; then start_suibase_daemon else # This is a clean restart of the daemon (Ctrl-C). Should be fast. - kill -s SIGTERM "$SUIBASE_DAEMON_PID" + stop_suibase_daemon echo -n "Restarting $SUIBASE_DAEMON_NAME" local _OLD_PID="$SUIBASE_DAEMON_PID" end=$((SECONDS + 30)) @@ -354,13 +365,14 @@ restart_suibase_daemon() { export -f restart_suibase_daemon stop_suibase_daemon() { - # TODO currently unused. Revisit if needed versus a self-exit design. + # Note: lock function is re-entrant. Won't block if this script is already holding the lock. + cli_mutex_lock "suibase_daemon" # success/failure is reflected by the SUI_PROCESS_PID var. # noop if the process is already stopped. update_SUIBASE_DAEMON_PID_var if [ -n "$SUIBASE_DAEMON_PID" ]; then - echo "Stopping $SUIBASE_DAEMON_NAME (process pid $SUIBASE_DAEMON_PID)" + echo "Stopping $SUIBASE_DAEMON_NAME (pid $SUIBASE_DAEMON_PID)" # TODO This will just restart the daemon... need to actually kill the parents as well! kill -s SIGTERM "$SUIBASE_DAEMON_PID" @@ -438,16 +450,6 @@ update_SUIBASE_DAEMON_PID_var() { } export -f update_SUIBASE_DAEMON_PID_var -update_suibase_daemon_as_needed() { - start_suibase_daemon_as_needed "force-update" -} -export -f update_suibase_daemon_as_needed - -update_suibase_daemon_and_start() { - start_suibase_daemon_as_needed "force-start" -} -export -f update_suibase_daemon_and_start - export SUIBASE_DAEMON_STARTED=false start_suibase_daemon_as_needed() { @@ -455,109 +457,76 @@ start_suibase_daemon_as_needed() { # anywhere within this call. SUIBASE_DAEMON_STARTED=false - # When _UPGRADE_ONLY=true: - # - Always check to upgrade the daemon. - # - Do not start, but restart if *already* running. - # else: - # - if 'proxy_enabled' is true, then check to - # upgrade and (re)starts. - # - local _UPGRADE_ONLY - local _SUPPORT_PROXY - if [ "$1" = "force-update" ]; then - _UPGRADE_ONLY=true - _SUPPORT_PROXY=true - elif [ "$1" = "force-start" ]; then - _UPGRADE_ONLY=false - _SUPPORT_PROXY=true - else - # Verify from suibase.yaml if the suibase daemon should be started. - _UPGRADE_ONLY=false - if [ "${CFG_proxy_enabled:?}" = "false" ]; then - _SUPPORT_PROXY=false - else - _SUPPORT_PROXY=true - fi - fi # Return 0 on success or not needed. - if [ "$_SUPPORT_PROXY" = true ]; then - update_SUIBASE_DAEMON_VERSION_INSTALLED - update_SUIBASE_DAEMON_VERSION_SOURCE_CODE - #echo SUIBASE_DAEMON_VERSION_INSTALLED="$SUIBASE_DAEMON_VERSION_INSTALLED" - #echo SUIBASE_DAEMON_VERSION_SOURCE_CODE="$SUIBASE_DAEMON_VERSION_SOURCE_CODE" - local _PERFORM_UPGRADE=false - - if need_suibase_daemon_upgrade; then - _PERFORM_UPGRADE=true - - # To try to minimize race conditions, wait until a concurrent script - # is done doing the same. Not perfect... good enough. - # - # This also hint the VSCode extension to step back from using the - # backend while this is on-going. - local _CHECK_IF_NEEDED_AGAIN=false - local _FIRST_ITERATION=true - while [ -f /tmp/.suibase/suibase-daemon-upgrading ]; do - if $_FIRST_ITERATION; then - echo "Waiting for concurrent script to finish upgrading suibase daemon..." - _FIRST_ITERATION=false - fi - sleep 1 - _PERFORM_UPGRADE=false - done - - if [ "$_PERFORM_UPGRADE" = false ]; then - # Was block by another script... check again if the upgrade is still needed. - update_SUIBASE_DAEMON_VERSION_INSTALLED - update_SUIBASE_DAEMON_VERSION_SOURCE_CODE - if need_suibase_daemon_upgrade; then - _PERFORM_UPGRADE=true - fi + update_SUIBASE_DAEMON_VERSION_INSTALLED + update_SUIBASE_DAEMON_VERSION_SOURCE_CODE + #echo SUIBASE_DAEMON_VERSION_INSTALLED="$SUIBASE_DAEMON_VERSION_INSTALLED" + #echo SUIBASE_DAEMON_VERSION_SOURCE_CODE="$SUIBASE_DAEMON_VERSION_SOURCE_CODE" + local _PERFORM_UPGRADE=false + + # Check SUIBASE_DAEMON_UPGRADING to prevent multiple attempts to upgrade + # within the same CLI call. + if need_suibase_daemon_upgrade && [ "$SUIBASE_DAEMON_UPGRADING" == "false" ]; then + _PERFORM_UPGRADE=true + + # To try to minimize race conditions, wait until a concurrent script + # is done doing the same. Not perfect... good enough. + # + # This also hint the VSCode extension to step back from using the + # backend while this is on-going. + local _CHECK_IF_NEEDED_AGAIN=false + local _FIRST_ITERATION=true + while [ -f /tmp/.suibase/suibase-daemon-upgrading ]; do + if $_FIRST_ITERATION; then + echo "Waiting for concurrent script to finish upgrading suibase daemon..." + _FIRST_ITERATION=false fi - fi + sleep 1 + _PERFORM_UPGRADE=false + done - if [ "$_PERFORM_UPGRADE" = true ]; then - progress_suibase_daemon_upgrading - local _OLD_VERSION=$SUIBASE_DAEMON_VERSION_INSTALLED - build_suibase_daemon + # Note: lock function is re-entrant. Won't block if this script is already holding the lock. + cli_mutex_lock "suibase_daemon" + + if [ "$_PERFORM_UPGRADE" = false ]; then + # Was block by another script... check again if the upgrade is still needed. update_SUIBASE_DAEMON_VERSION_INSTALLED - local _NEW_VERSION=$SUIBASE_DAEMON_VERSION_INSTALLED - if [ "$_OLD_VERSION" != "$_NEW_VERSION" ]; then - if [ -n "$_OLD_VERSION" ]; then - echo "$SUIBASE_DAEMON_NAME upgraded from $_OLD_VERSION to $_NEW_VERSION" - fi - fi - update_SUIBASE_DAEMON_PID_var - if [ "$_UPGRADE_ONLY" = true ]; then - # Restart only if already running. - if [ -n "$SUIBASE_DAEMON_PID" ]; then - restart_suibase_daemon - SUIBASE_DAEMON_STARTED=true - fi - else - # (re)start - if [ -z "$SUIBASE_DAEMON_PID" ]; then - start_suibase_daemon - else - # Needed for the upgrade to take effect. - restart_suibase_daemon - fi - SUIBASE_DAEMON_STARTED=true - fi - else - if [ -z "$SUIBASE_DAEMON_PID" ] && [ "$_UPGRADE_ONLY" = false ]; then - # There was no upgrade, but the process need to be started. - start_suibase_daemon - SUIBASE_DAEMON_STARTED=true + update_SUIBASE_DAEMON_VERSION_SOURCE_CODE + if need_suibase_daemon_upgrade; then + _PERFORM_UPGRADE=true fi fi fi - # The caller decide what to do if failed. - if [ "$_SUPPORT_PROXY" = true ] && [ -z "$SUIBASE_DAEMON_PID" ]; then - return 1 + if [ "$_PERFORM_UPGRADE" = true ]; then + progress_suibase_daemon_upgrading + local _OLD_VERSION=$SUIBASE_DAEMON_VERSION_INSTALLED + build_suibase_daemon + update_SUIBASE_DAEMON_VERSION_INSTALLED + local _NEW_VERSION=$SUIBASE_DAEMON_VERSION_INSTALLED + if [ "$_OLD_VERSION" != "$_NEW_VERSION" ]; then + if [ -n "$_OLD_VERSION" ]; then + echo "$SUIBASE_DAEMON_NAME upgraded from $_OLD_VERSION to $_NEW_VERSION" + fi + fi + update_SUIBASE_DAEMON_PID_var + # (re)start + if [ -z "$SUIBASE_DAEMON_PID" ]; then + start_suibase_daemon + else + # Needed for the upgrade to take effect. + restart_suibase_daemon + fi + SUIBASE_DAEMON_STARTED=true + else + update_SUIBASE_DAEMON_PID_var + if [ -z "$SUIBASE_DAEMON_PID" ]; then + # There was no upgrade, but the process need to be started. + start_suibase_daemon + SUIBASE_DAEMON_STARTED=true + fi fi return 0 diff --git a/scripts/common/run-daemon.sh b/scripts/common/run-daemon.sh index 53dd85f5..020461b6 100755 --- a/scripts/common/run-daemon.sh +++ b/scripts/common/run-daemon.sh @@ -130,6 +130,12 @@ main() { echo "Starting $_DAEMON_NAME in background. Check logs at: $_LOG" echo "$_CMD_LINE" + if [ "$PARAM_CMD" == "cli-call" ]; then + # Subsequent cli_mutex_ calls are NOOP because the script + # was called by a script already holding the proper locks. + cli_mutex_disable + fi + # Detect scenario where the suibase-daemon is not running and # the lockfile is still present. # @@ -144,6 +150,7 @@ main() { # # The suibase-daemon is responsible to properly re-start the child processes/services. if [ "$PARAM_NAME" = "suibase" ]; then + cli_mutex_lock "suibase_daemon" if [ -f "$_LOCKFILE" ]; then for i in 1 2 3; do if is_suibase_daemon_running; then @@ -162,6 +169,8 @@ main() { force_stop_all_services done fi + # Must release here, because this process might "never" exit and clean-up from trap. + cli_mutex_release "suibase_daemon" fi # shellcheck disable=SC2086,SC2016 diff --git a/scripts/dev/stop-daemon b/scripts/dev/stop-daemon index b5d0bfb2..f096b8e4 100755 --- a/scripts/dev/stop-daemon +++ b/scripts/dev/stop-daemon @@ -10,6 +10,8 @@ trap cleanup EXIT # shellcheck source=SCRIPTDIR/../common/__globals.sh source "$SUIBASE_DIR/scripts/common/__suibase-daemon.sh" +cli_mutex_lock "suibase_daemon" + # Force stop the daemon. rm "$SUIBASE_DIR/workdirs/common/bin/suibase-daemon" >/dev/null 2>&1 stop_suibase_daemon \ No newline at end of file diff --git a/scripts/dev/update-daemon b/scripts/dev/update-daemon index 1da67ab0..46ac682f 100755 --- a/scripts/dev/update-daemon +++ b/scripts/dev/update-daemon @@ -10,9 +10,11 @@ trap cleanup EXIT # shellcheck source=SCRIPTDIR/../common/__globals.sh source "$SUIBASE_DIR/scripts/common/__suibase-daemon.sh" +cli_mutex_lock "suibase_daemon" + # Stop the daemon. Force rebuild by deleting the binary. rm "$SUIBASE_DIR/workdirs/common/bin/suibase-daemon" >/dev/null 2>&1 stop_suibase_daemon -update_suibase_daemon_and_start +start_suibase_daemon_as_needed wait_for_json_rpc_up "any" diff --git a/typescript/vscode-extension/src/SuibaseExec.ts b/typescript/vscode-extension/src/SuibaseExec.ts index 5b0d53b7..4d8079d8 100644 --- a/typescript/vscode-extension/src/SuibaseExec.ts +++ b/typescript/vscode-extension/src/SuibaseExec.ts @@ -37,7 +37,7 @@ const execShellBackground = (cmd: string): Promise => new Promise((resolve) => { cp.exec(cmd, (err, stdout, stderr) => { if (err) { - console.warn(err,`${stdout}${stderr}`); + console.warn(err, `${stdout}${stderr}`); } resolve(); }); @@ -177,9 +177,10 @@ export class SuibaseExec { public async isSuibaseInstalled(): Promise { // Verify if Suibase itself is installed. // - // Good enough to just check that the script to start the backend daemon exists. + // Good enough to just check that the script to repair exists + // (it is used for recovery attempt by the extension). try { - return await this.fileExists("~/suibase/scripts/common/run-daemon.sh"); + return await this.fileExists("~/suibase/repair"); } catch (error) { return false; } @@ -263,11 +264,11 @@ export class SuibaseExec { if (!suibaseRunning) { // Start suibase daemon - const pathname = this.canonicalPath("~/suibase/scripts/common/run-daemon.sh"); - void execShellBackground( `${pathname} suibase` ); + const pathname = this.canonicalPath("~/suibase/repair"); + void execShellBackground(`${pathname}`); - // Check for up to ~5 seconds that it is started. - let attempts = 10; + // Check for up to ~60 seconds that it is started. + let attempts = 120; while (!suibaseRunning && attempts > 0) { // Sleep 500 millisecs to give it a chance to start. await new Promise((r) => setTimeout(r, 500)); diff --git a/typescript/vscode-extension/src/common/Consts.ts b/typescript/vscode-extension/src/common/Consts.ts index dd64dae9..4e42632e 100644 --- a/typescript/vscode-extension/src/common/Consts.ts +++ b/typescript/vscode-extension/src/common/Consts.ts @@ -6,7 +6,7 @@ // // No dependency allowed here. -export const BACKEND_MIN_VERSION = "0.0.12"; +export const BACKEND_MIN_VERSION = "0.0.16"; // workdir_idx are hard coded for performance. // Note: These matches the definition used in the backend. diff --git a/typescript/vscode-extension/webview-ui/build/assets/index.js b/typescript/vscode-extension/webview-ui/build/assets/index.js index 94ed8b71..d7d1bcc4 100644 --- a/typescript/vscode-extension/webview-ui/build/assets/index.js +++ b/typescript/vscode-extension/webview-ui/build/assets/index.js @@ -1,4 +1,4 @@ -var aw=Object.defineProperty;var cw=(e,t,n)=>t in e?aw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ce=(e,t,n)=>cw(e,typeof t!="symbol"?t+"":t,n);function uw(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ff(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Kn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Fv={exports:{}},tc={},jv={exports:{}},ne={};/** +var uw=Object.defineProperty;var dw=(e,t,n)=>t in e?uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>dw(e,typeof t!="symbol"?t+"":t,n);function fw(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Qf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Vv={exports:{}},lc={},Hv={exports:{}},ne={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var aw=Object.defineProperty;var cw=(e,t,n)=>t in e?aw(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var qs=Symbol.for("react.element"),dw=Symbol.for("react.portal"),fw=Symbol.for("react.fragment"),hw=Symbol.for("react.strict_mode"),pw=Symbol.for("react.profiler"),mw=Symbol.for("react.provider"),gw=Symbol.for("react.context"),vw=Symbol.for("react.forward_ref"),yw=Symbol.for("react.suspense"),bw=Symbol.for("react.memo"),xw=Symbol.for("react.lazy"),Fp=Symbol.iterator;function ww(e){return e===null||typeof e!="object"?null:(e=Fp&&e[Fp]||e["@@iterator"],typeof e=="function"?e:null)}var zv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bv=Object.assign,Vv={};function vo(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||zv}vo.prototype.isReactComponent={};vo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};vo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hv(){}Hv.prototype=vo.prototype;function jf(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||zv}var zf=jf.prototype=new Hv;zf.constructor=jf;Bv(zf,vo.prototype);zf.isPureReactComponent=!0;var jp=Array.isArray,Uv=Object.prototype.hasOwnProperty,Bf={current:null},Wv={key:!0,ref:!0,__self:!0,__source:!0};function Gv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Uv.call(t,r)&&!Wv.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1t in e?aw(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Iw=x,Tw=Symbol.for("react.element"),Ew=Symbol.for("react.fragment"),Rw=Object.prototype.hasOwnProperty,Pw=Iw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ow={key:!0,ref:!0,__self:!0,__source:!0};function Qv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Rw.call(t,r)&&!Ow.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Tw,type:e,key:o,ref:s,props:i,_owner:Pw.current}}tc.Fragment=Ew;tc.jsx=Qv;tc.jsxs=Qv;Fv.exports=tc;var k=Fv.exports,kd={},Xv={exports:{}},Vt={},Yv={exports:{}},Kv={};/** + */var Ew=x,Rw=Symbol.for("react.element"),Pw=Symbol.for("react.fragment"),Ow=Object.prototype.hasOwnProperty,_w=Ew.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Aw={key:!0,ref:!0,__self:!0,__source:!0};function Jv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ow.call(t,r)&&!Aw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Rw,type:e,key:o,ref:s,props:i,_owner:_w.current}}lc.Fragment=Pw;lc.jsx=Jv;lc.jsxs=Jv;Vv.exports=lc;var k=Vv.exports,Od={},Zv={exports:{}},Ut={},ey={exports:{}},ty={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var aw=Object.defineProperty;var cw=(e,t,n)=>t in e?aw(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(P,M){var O=P.length;P.push(M);e:for(;0>>1,H=P[D];if(0>>1;Di(tt,O))Gi(me,tt)?(P[D]=me,P[G]=O,D=G):(P[D]=tt,P[ke]=O,D=ke);else if(Gi(me,O))P[D]=me,P[G]=O,D=G;else break e}}return M}function i(P,M){var O=P.sortIndex-M.sortIndex;return O!==0?O:P.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],u=1,d=null,f=3,v=!1,g=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=P)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(P){if(p=!1,y(P),!g)if(n(a)!==null)g=!0,K(C);else{var M=n(c);M!==null&&q(w,M.startTime-P)}}function C(P,M){g=!1,p&&(p=!1,m(E),E=-1),v=!0;var O=f;try{for(y(M),d=n(a);d!==null&&(!(d.expirationTime>M)||P&&!z());){var D=d.callback;if(typeof D=="function"){d.callback=null,f=d.priorityLevel;var H=D(d.expirationTime<=M);M=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(a)&&r(a),y(M)}else r(a);d=n(a)}if(d!==null)var se=!0;else{var ke=n(c);ke!==null&&q(w,ke.startTime-M),se=!1}return se}finally{d=null,f=O,v=!1}}var S=!1,T=null,E=-1,L=5,_=-1;function z(){return!(e.unstable_now()-_P||125D?(P.sortIndex=O,t(c,P),n(a)===null&&P===n(c)&&(p?(m(E),E=-1):p=!0,q(w,O-D))):(P.sortIndex=H,t(a,P),g||v||(g=!0,K(C))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var M=f;return function(){var O=f;f=M;try{return P.apply(this,arguments)}finally{f=O}}}})(Kv);Yv.exports=Kv;var _w=Yv.exports;/** + */(function(e){function t(R,M){var W=R.length;R.push(M);e:for(;0>>1,le=R[se];if(0>>1;sei(Be,W))Ei(D,Be)?(R[se]=D,R[E]=W,se=E):(R[se]=Be,R[me]=W,se=me);else if(Ei(D,W))R[se]=D,R[E]=W,se=E;else break e}}return M}function i(R,M){var W=R.sortIndex-M.sortIndex;return W!==0?W:R.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],u=1,d=null,f=3,v=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=R)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(R){if(g=!1,y(R),!m)if(n(a)!==null)m=!0,K(C);else{var M=n(c);M!==null&&H(w,M.startTime-R)}}function C(R,M){m=!1,g&&(g=!1,p(P),P=-1),v=!0;var W=f;try{for(y(M),d=n(a);d!==null&&(!(d.expirationTime>M)||R&&!F());){var se=d.callback;if(typeof se=="function"){d.callback=null,f=d.priorityLevel;var le=se(d.expirationTime<=M);M=e.unstable_now(),typeof le=="function"?d.callback=le:d===n(a)&&r(a),y(M)}else r(a);d=n(a)}if(d!==null)var ht=!0;else{var me=n(c);me!==null&&H(w,me.startTime-M),ht=!1}return ht}finally{d=null,f=W,v=!1}}var $=!1,I=null,P=-1,L=5,_=-1;function F(){return!(e.unstable_now()-_R||125se?(R.sortIndex=W,t(c,R),n(a)===null&&R===n(c)&&(g?(p(P),P=-1):g=!0,H(w,W-se))):(R.sortIndex=le,t(a,R),m||v||(m=!0,K(C))),R},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(R){var M=f;return function(){var W=f;f=M;try{return R.apply(this,arguments)}finally{f=W}}}})(ty);ey.exports=ty;var Dw=ey.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var aw=Object.defineProperty;var cw=(e,t,n)=>t in e?aw(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Aw=x,Bt=_w;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cd=Object.prototype.hasOwnProperty,Dw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bp={},Vp={};function Mw(e){return Cd.call(Vp,e)?!0:Cd.call(Bp,e)?!1:Dw.test(e)?Vp[e]=!0:(Bp[e]=!0,!1)}function Lw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Nw(e,t,n,r){if(t===null||typeof t>"u"||Lw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hf=/[\-:]([a-z])/g;function Uf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hf,Uf);Ze[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hf,Uf);Ze[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hf,Uf);Ze[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wf(e,t,n,r){var i=Ze.hasOwnProperty(t)?Ze[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_d=Object.prototype.hasOwnProperty,Lw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Gp={},qp={};function Nw(e){return _d.call(qp,e)?!0:_d.call(Gp,e)?!1:Lw.test(e)?qp[e]=!0:(Gp[e]=!0,!1)}function Fw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jw(e,t,n,r){if(t===null||typeof t>"u"||Fw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $t(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new $t(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zf=/[\-:]([a-z])/g;function eh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zf,eh);et[t]=new $t(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zf,eh);et[t]=new $t(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zf,eh);et[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function th(e,t,n,r){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{$u=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zo(e):""}function Fw(e){switch(e.tag){case 5:return Zo(e.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return e=Iu(e.type,!1),e;case 11:return e=Iu(e.type.render,!1),e;case 1:return e=Iu(e.type,!0),e;default:return""}}function Td(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ii:return"Fragment";case $i:return"Portal";case Sd:return"Profiler";case Gf:return"StrictMode";case $d:return"Suspense";case Id:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ey:return(e.displayName||"Context")+".Consumer";case Zv:return(e._context.displayName||"Context")+".Provider";case qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qf:return t=e.displayName||null,t!==null?t:Td(e.type)||"Memo";case cr:t=e._payload,e=e._init;try{return Td(e(t))}catch{}}return null}function jw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Td(t);case 8:return t===Gf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ny(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zw(e){var t=ny(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gl(e){e._valueTracker||(e._valueTracker=zw(e))}function ry(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ny(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ha(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ed(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Up(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iy(e,t){t=t.checked,t!=null&&Wf(e,"checked",t,!1)}function Rd(e,t){iy(e,t);var n=Tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pd(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Pd(e,t,n){(t!=="number"||ha(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var es=Array.isArray;function zi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var is={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bw=["Webkit","ms","Moz","O"];Object.keys(is).forEach(function(e){Bw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),is[t]=is[e]})});function ay(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||is.hasOwnProperty(e)&&is[e]?(""+t).trim():t+"px"}function cy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ay(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Vw=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ad(e,t){if(t){if(Vw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Dd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Md=null;function Xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ld=null,Bi=null,Vi=null;function Qp(e){if(e=Ys(e)){if(typeof Ld!="function")throw Error(A(280));var t=e.stateNode;t&&(t=sc(t),Ld(e.stateNode,e.type,t))}}function uy(e){Bi?Vi?Vi.push(e):Vi=[e]:Bi=e}function dy(){if(Bi){var e=Bi,t=Vi;if(Vi=Bi=null,Qp(e),t)for(e=0;e>>=0,e===0?32:31-(Zw(e)/ek|0)|0}var yl=64,bl=4194304;function ts(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function va(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=ts(l):(o&=s,o!==0&&(r=ts(o)))}else s=n&~i,s!==0?r=ts(s):o!==0&&(r=ts(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function ik(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ss),rm=" ",im=!1;function Oy(e,t){switch(e){case"keyup":return _k.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _y(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function Dk(e,t){switch(e){case"compositionend":return _y(t);case"keypress":return t.which!==32?null:(im=!0,rm);case"textInput":return e=t.data,e===rm&&im?null:e;default:return null}}function Mk(e,t){if(Ti)return e==="compositionend"||!rh&&Oy(e,t)?(e=Ry(),ql=eh=pr=null,Ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=am(n)}}function Ly(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ly(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ny(){for(var e=window,t=ha();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ha(e.document)}return t}function ih(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uk(e){var t=Ny(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ly(n.ownerDocument.documentElement,n)){if(r!==null&&ih(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cm(n,o);var s=cm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ei=null,Vd=null,as=null,Hd=!1;function um(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hd||Ei==null||Ei!==ha(r)||(r=Ei,"selectionStart"in r&&ih(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),as&&$s(as,r)||(as=r,r=xa(Vd,"onSelect"),0Oi||(e.current=Xd[Oi],Xd[Oi]=null,Oi--)}function pe(e,t){Oi++,Xd[Oi]=e.current,e.current=t}var Er={},lt=Mr(Er),Et=Mr(!1),ti=Er;function ro(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Rt(e){return e=e.childContextTypes,e!=null}function ka(){ve(Et),ve(lt)}function vm(e,t,n){if(lt.current!==Er)throw Error(A(168));pe(lt,t),pe(Et,n)}function Gy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,jw(e)||"Unknown",i));return Te({},n,r)}function Ca(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,ti=lt.current,pe(lt,e),pe(Et,Et.current),!0}function ym(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Gy(e,t,ti),r.__reactInternalMemoizedMergedChildContext=e,ve(Et),ve(lt),pe(lt,e)):ve(Et),pe(Et,n)}var Fn=null,lc=!1,zu=!1;function qy(e){Fn===null?Fn=[e]:Fn.push(e)}function nC(e){lc=!0,qy(e)}function Lr(){if(!zu&&Fn!==null){zu=!0;var e=0,t=de;try{var n=Fn;for(de=1;e>=s,i-=s,Bn=1<<32-mn(t)+i|n<E?(L=T,T=null):L=T.sibling;var _=f(m,T,y[E],w);if(_===null){T===null&&(T=L);break}e&&T&&_.alternate===null&&t(m,T),h=o(_,h,E),S===null?C=_:S.sibling=_,S=_,T=L}if(E===y.length)return n(m,T),be&&Br(m,E),C;if(T===null){for(;EE?(L=T,T=null):L=T.sibling;var z=f(m,T,_.value,w);if(z===null){T===null&&(T=L);break}e&&T&&z.alternate===null&&t(m,T),h=o(z,h,E),S===null?C=z:S.sibling=z,S=z,T=L}if(_.done)return n(m,T),be&&Br(m,E),C;if(T===null){for(;!_.done;E++,_=y.next())_=d(m,_.value,w),_!==null&&(h=o(_,h,E),S===null?C=_:S.sibling=_,S=_);return be&&Br(m,E),C}for(T=r(m,T);!_.done;E++,_=y.next())_=v(T,m,E,_.value,w),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?E:_.key),h=o(_,h,E),S===null?C=_:S.sibling=_,S=_);return e&&T.forEach(function(N){return t(m,N)}),be&&Br(m,E),C}function b(m,h,y,w){if(typeof y=="object"&&y!==null&&y.type===Ii&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ml:e:{for(var C=y.key,S=h;S!==null;){if(S.key===C){if(C=y.type,C===Ii){if(S.tag===7){n(m,S.sibling),h=i(S,y.props.children),h.return=m,m=h;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===cr&&wm(C)===S.type){n(m,S.sibling),h=i(S,y.props),h.ref=Ho(m,S,y),h.return=m,m=h;break e}n(m,S);break}else t(m,S);S=S.sibling}y.type===Ii?(h=Jr(y.props.children,m.mode,w,y.key),h.return=m,m=h):(w=ta(y.type,y.key,y.props,null,m.mode,w),w.ref=Ho(m,h,y),w.return=m,m=w)}return s(m);case $i:e:{for(S=y.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=i(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Qu(y,m.mode,w),h.return=m,m=h}return s(m);case cr:return S=y._init,b(m,h,S(y._payload),w)}if(es(y))return g(m,h,y,w);if(Fo(y))return p(m,h,y,w);Il(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,y),h.return=m,m=h):(n(m,h),h=qu(y,m.mode,w),h.return=m,m=h),s(m)):n(m,h)}return b}var oo=Ky(!0),Jy=Ky(!1),Ia=Mr(null),Ta=null,Di=null,ah=null;function ch(){ah=Di=Ta=null}function uh(e){var t=Ia.current;ve(Ia),e._currentValue=t}function Jd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ui(e,t){Ta=e,ah=Di=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tt=!0),e.firstContext=null)}function nn(e){var t=e._currentValue;if(ah!==e)if(e={context:e,memoizedValue:t,next:null},Di===null){if(Ta===null)throw Error(A(308));Di=e,Ta.dependencies={lanes:0,firstContext:e}}else Di=Di.next=e;return t}var qr=null;function dh(e){qr===null?qr=[e]:qr.push(e)}function Zy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,dh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qn(e,r)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ur=!1;function fh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qn(e,n)}return i=r.interleaved,i===null?(t.next=t,dh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qn(e,n)}function Xl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kf(e,n)}}function km(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ea(e,t,n,r){var i=e.updateQueue;ur=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==s&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,u=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,p=l;switch(f=t,v=n,p.tag){case 1:if(g=p.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=Te({},d,f);break e;case 2:ur=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=v,a=d):u=u.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(a=d),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ii|=s,e.lanes=s,e.memoizedState=d}}function Cm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vu.transition;Vu.transition={};try{e(!1),t()}finally{de=n,Vu.transition=r}}function v0(){return rn().memoizedState}function sC(e,t,n){var r=Sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},y0(e))b0(t,n);else if(n=Zy(e,t,n,r),n!==null){var i=vt();gn(n,e,r,i),x0(n,t,r)}}function lC(e,t,n){var r=Sr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(y0(e))b0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,vn(l,s)){var a=t.interleaved;a===null?(i.next=i,dh(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Zy(e,t,i,r),n!==null&&(i=vt(),gn(n,e,r,i),x0(n,t,r))}}function y0(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function b0(e,t){cs=Pa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kf(e,n)}}var Oa={readContext:nn,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},aC={readContext:nn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:$m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kl(4194308,4,f0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kl(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sC.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:Sm,useDebugValue:xh,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=Sm(!1),t=e[0];return e=oC.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,i=Cn();if(be){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),qe===null)throw Error(A(349));ri&30||i0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,$m(s0.bind(null,r,o,e),[e]),r.flags|=2048,As(9,o0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Cn(),t=qe.identifierPrefix;if(be){var n=Vn,r=Bn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Os++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Du=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rs(e):""}function zw(e){switch(e.tag){case 5:return rs(e.type);case 16:return rs("Lazy");case 13:return rs("Suspense");case 19:return rs("SuspenseList");case 0:case 2:case 15:return e=Mu(e.type,!1),e;case 11:return e=Mu(e.type.render,!1),e;case 1:return e=Mu(e.type,!0),e;default:return""}}function Ld(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ti:return"Fragment";case Ii:return"Portal";case Ad:return"Profiler";case nh:return"StrictMode";case Dd:return"Suspense";case Md:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iy:return(e.displayName||"Context")+".Consumer";case ry:return(e._context.displayName||"Context")+".Provider";case rh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ih:return t=e.displayName||null,t!==null?t:Ld(e.type)||"Memo";case dr:t=e._payload,e=e._init;try{return Ld(e(t))}catch{}}return null}function Bw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ld(t);case 8:return t===nh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vw(e){var t=sy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kl(e){e._valueTracker||(e._valueTracker=Vw(e))}function ly(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ba(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nd(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ay(e,t){t=t.checked,t!=null&&th(e,"checked",t,!1)}function Fd(e,t){ay(e,t);var n=Tr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jd(e,t.type,n):t.hasOwnProperty("defaultValue")&&jd(e,t.type,Tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jd(e,t,n){(t!=="number"||ba(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var is=Array.isArray;function Bi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var as={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hw=["Webkit","ms","Moz","O"];Object.keys(as).forEach(function(e){Hw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),as[t]=as[e]})});function fy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||as.hasOwnProperty(e)&&as[e]?(""+t).trim():t+"px"}function hy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=fy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Uw=Ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vd(e,t){if(t){if(Uw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Hd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ud=null;function oh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wd=null,Vi=null,Hi=null;function Zp(e){if(e=el(e)){if(typeof Wd!="function")throw Error(A(280));var t=e.stateNode;t&&(t=fc(t),Wd(e.stateNode,e.type,t))}}function py(e){Vi?Hi?Hi.push(e):Hi=[e]:Vi=e}function my(){if(Vi){var e=Vi,t=Hi;if(Hi=Vi=null,Zp(e),t)for(e=0;e>>=0,e===0?32:31-(tk(e)/nk|0)|0}var Sl=64,$l=4194304;function os(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=os(l):(o&=s,o!==0&&(r=os(o)))}else s=n&~i,s!==0?r=os(s):o!==0&&(r=os(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Js(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=n}function sk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=us),am=" ",cm=!1;function My(e,t){switch(e){case"keyup":return Dk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ly(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function Lk(e,t){switch(e){case"compositionend":return Ly(t);case"keypress":return t.which!==32?null:(cm=!0,am);case"textInput":return e=t.data,e===am&&cm?null:e;default:return null}}function Nk(e,t){if(Ei)return e==="compositionend"||!hh&&My(e,t)?(e=Ay(),Zl=uh=gr=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hm(n)}}function zy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function By(){for(var e=window,t=ba();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ba(e.document)}return t}function ph(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gk(e){var t=By(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zy(n.ownerDocument.documentElement,n)){if(r!==null&&ph(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=pm(n,o);var s=pm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ri=null,Kd=null,fs=null,Jd=!1;function mm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jd||Ri==null||Ri!==ba(r)||(r=Ri,"selectionStart"in r&&ph(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),fs&&Rs(fs,r)||(fs=r,r=Ia(Kd,"onSelect"),0_i||(e.current=of[_i],of[_i]=null,_i--)}function ge(e,t){_i++,of[_i]=e.current,e.current=t}var Er={},lt=Mr(Er),Pt=Mr(!1),ni=Er;function io(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ot(e){return e=e.childContextTypes,e!=null}function Ea(){ye(Pt),ye(lt)}function km(e,t,n){if(lt.current!==Er)throw Error(A(168));ge(lt,t),ge(Pt,n)}function Yy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Bw(e)||"Unknown",i));return Ee({},n,r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,ni=lt.current,ge(lt,e),ge(Pt,Pt.current),!0}function Cm(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Yy(e,t,ni),r.__reactInternalMemoizedMergedChildContext=e,ye(Pt),ye(lt),ge(lt,e)):ye(Pt),ge(Pt,n)}var Bn=null,hc=!1,Xu=!1;function Ky(e){Bn===null?Bn=[e]:Bn.push(e)}function iC(e){hc=!0,Ky(e)}function Lr(){if(!Xu&&Bn!==null){Xu=!0;var e=0,t=fe;try{var n=Bn;for(fe=1;e>=s,i-=s,Un=1<<32-yn(t)+i|n<P?(L=I,I=null):L=I.sibling;var _=f(p,I,y[P],w);if(_===null){I===null&&(I=L);break}e&&I&&_.alternate===null&&t(p,I),h=o(_,h,P),$===null?C=_:$.sibling=_,$=_,I=L}if(P===y.length)return n(p,I),xe&&Vr(p,P),C;if(I===null){for(;PP?(L=I,I=null):L=I.sibling;var F=f(p,I,_.value,w);if(F===null){I===null&&(I=L);break}e&&I&&F.alternate===null&&t(p,I),h=o(F,h,P),$===null?C=F:$.sibling=F,$=F,I=L}if(_.done)return n(p,I),xe&&Vr(p,P),C;if(I===null){for(;!_.done;P++,_=y.next())_=d(p,_.value,w),_!==null&&(h=o(_,h,P),$===null?C=_:$.sibling=_,$=_);return xe&&Vr(p,P),C}for(I=r(p,I);!_.done;P++,_=y.next())_=v(I,p,P,_.value,w),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?P:_.key),h=o(_,h,P),$===null?C=_:$.sibling=_,$=_);return e&&I.forEach(function(V){return t(p,V)}),xe&&Vr(p,P),C}function b(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===Ti&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wl:e:{for(var C=y.key,$=h;$!==null;){if($.key===C){if(C=y.type,C===Ti){if($.tag===7){n(p,$.sibling),h=i($,y.props.children),h.return=p,p=h;break e}}else if($.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===dr&&Im(C)===$.type){n(p,$.sibling),h=i($,y.props),h.ref=qo(p,$,y),h.return=p,p=h;break e}n(p,$);break}else t(p,$);$=$.sibling}y.type===Ti?(h=Zr(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=la(y.type,y.key,y.props,null,p.mode,w),w.ref=qo(p,h,y),w.return=p,p=w)}return s(p);case Ii:e:{for($=y.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=rd(y,p.mode,w),h.return=p,p=h}return s(p);case dr:return $=y._init,b(p,h,$(y._payload),w)}if(is(y))return m(p,h,y,w);if(Vo(y))return g(p,h,y,w);_l(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=nd(y,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return b}var so=t0(!0),n0=t0(!1),_a=Mr(null),Aa=null,Mi=null,yh=null;function bh(){yh=Mi=Aa=null}function xh(e){var t=_a.current;ye(_a),e._currentValue=t}function af(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wi(e,t){Aa=e,yh=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Rt=!0),e.firstContext=null)}function on(e){var t=e._currentValue;if(yh!==e)if(e={context:e,memoizedValue:t,next:null},Mi===null){if(Aa===null)throw Error(A(308));Mi=e,Aa.dependencies={lanes:0,firstContext:e}}else Mi=Mi.next=e;return t}var Qr=null;function wh(e){Qr===null?Qr=[e]:Qr.push(e)}function r0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,wh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jn(e,r)}function Jn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fr=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jn(e,n)}return i=r.interleaved,i===null?(t.next=t,wh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jn(e,n)}function ta(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lh(e,n)}}function Tm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Da(e,t,n,r){var i=e.updateQueue;fr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==s&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;s=0,u=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(f=t,v=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(v,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(v,d,f):m,f==null)break e;d=Ee({},d,f);break e;case 2:fr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=v,a=d):u=u.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(a=d),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);oi|=s,e.lanes=s,e.memoizedState=d}}function Em(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ku.transition;Ku.transition={};try{e(!1),t()}finally{fe=n,Ku.transition=r}}function w0(){return sn().memoizedState}function aC(e,t,n){var r=Sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},k0(e))C0(t,n);else if(n=r0(e,t,n,r),n!==null){var i=xt();bn(n,e,r,i),S0(n,t,r)}}function cC(e,t,n){var r=Sr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(k0(e))C0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,xn(l,s)){var a=t.interleaved;a===null?(i.next=i,wh(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=r0(e,t,i,r),n!==null&&(i=xt(),bn(n,e,r,i),S0(n,t,r))}}function k0(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function C0(e,t){hs=La=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lh(e,n)}}var Na={readContext:on,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},uC={readContext:on,useCallback:function(e,t){return Tn().memoizedState=[e,t===void 0?null:t],e},useContext:on,useEffect:Pm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ra(4194308,4,g0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Tn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=aC.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Tn();return e={current:e},t.memoizedState=e},useState:Rm,useDebugValue:Ph,useDeferredValue:function(e){return Tn().memoizedState=e},useTransition:function(){var e=Rm(!1),t=e[0];return e=lC.bind(null,e[1]),Tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,i=Tn();if(xe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Xe===null)throw Error(A(349));ii&30||a0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Pm(u0.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,c0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Tn(),t=Xe.identifierPrefix;if(xe){var n=Wn,r=Un;n=(r&~(1<<32-yn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ms++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Tn]=t,e[Es]=r,P0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Dd(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;iao&&(t.flags|=128,r=!0,Uo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ra(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Uo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!be)return rt(t),null}else 2*Ae()-o.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,r=!0,Uo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ae(),t.sibling=null,n=$e.current,pe($e,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Ih(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function gC(e,t){switch(sh(t),t.tag){case 1:return Rt(t.type)&&ka(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ve(Et),ve(lt),mh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ph(t),null;case 13:if(ve($e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve($e),null;case 4:return so(),null;case 10:return uh(t.type._context),null;case 22:case 23:return Ih(),null;case 24:return null;default:return null}}var El=!1,ot=!1,vC=typeof WeakSet=="function"?WeakSet:Set,j=null;function Mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function af(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Lm=!1;function yC(e,t){if(Ud=ya,e=Ny(),ih(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++u===r&&(a=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wd={focusedElem:e,selectionRange:n},ya=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,b=g.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?p:dn(t.type,p),b);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return g=Lm,Lm=!1,g}function us(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&af(t,n,o)}i=i.next}while(i!==r)}}function uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function A0(e){var t=e.alternate;t!==null&&(e.alternate=null,A0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tn],delete t[Es],delete t[Qd],delete t[eC],delete t[tC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function D0(e){return e.tag===5||e.tag===3||e.tag===4}function Nm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wa));else if(r!==4&&(e=e.child,e!==null))for(uf(e,t,n),e=e.sibling;e!==null;)uf(e,t,n),e=e.sibling}function df(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(df(e,t,n),e=e.sibling;e!==null;)df(e,t,n),e=e.sibling}var Ye=null,fn=!1;function ir(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(nc,n)}catch{}switch(n.tag){case 5:ot||Mi(n,t);case 6:var r=Ye,i=fn;Ye=null,ir(e,t,n),Ye=r,fn=i,Ye!==null&&(fn?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(fn?(e=Ye,n=n.stateNode,e.nodeType===8?ju(e.parentNode,n):e.nodeType===1&&ju(e,n),Cs(e)):ju(Ye,n.stateNode));break;case 4:r=Ye,i=fn,Ye=n.stateNode.containerInfo,fn=!0,ir(e,t,n),Ye=r,fn=i;break;case 0:case 11:case 14:case 15:if(!ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&af(n,t,s),i=i.next}while(i!==r)}ir(e,t,n);break;case 1:if(!ot&&(Mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Oe(n,t,l)}ir(e,t,n);break;case 21:ir(e,t,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,ir(e,t,n),ot=r):ir(e,t,n);break;default:ir(e,t,n)}}function Fm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vC),t.forEach(function(r){var i=TC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function un(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xC(r/1960))-r,10e?16:e,mr===null)var r=!1;else{if(e=mr,mr=null,Da=0,oe&6)throw Error(A(331));var i=oe;for(oe|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aAe()-Sh?Kr(e,0):Ch|=n),Pt(e,t)}function H0(e,t){t===0&&(e.mode&1?(t=bl,bl<<=1,!(bl&130023424)&&(bl=4194304)):t=1);var n=vt();e=Qn(e,t),e!==null&&(Qs(e,t,n),Pt(e,n))}function IC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),H0(e,n)}function TC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),H0(e,n)}var U0;U0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tt=!1,pC(e,t,n);Tt=!!(e.flags&131072)}else Tt=!1,be&&t.flags&1048576&&Qy(t,$a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jl(e,t),e=t.pendingProps;var i=ro(t,lt.current);Ui(t,n),i=vh(null,t,r,e,i,n);var o=yh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(r)?(o=!0,Ca(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fh(t),i.updater=cc,t.stateNode=i,i._reactInternals=t,ef(t,r,e,n),t=rf(null,t,r,!0,o,n)):(t.tag=0,be&&o&&oh(t),pt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=RC(r),e=dn(r,e),i){case 0:t=nf(null,t,r,e,n);break e;case 1:t=Am(null,t,r,e,n);break e;case 11:t=Om(null,t,r,e,n);break e;case 14:t=_m(null,t,r,dn(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),nf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Am(e,t,r,i,n);case 3:e:{if(T0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,e0(e,t),Ea(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=lo(Error(A(423)),t),t=Dm(e,t,r,n,i);break e}else if(r!==i){i=lo(Error(A(424)),t),t=Dm(e,t,r,n,i);break e}else for(Nt=wr(t.stateNode.containerInfo.firstChild),Ft=t,be=!0,hn=null,n=Jy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(io(),r===i){t=Xn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return t0(t),e===null&&Kd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Gd(r,i)?s=null:o!==null&&Gd(r,o)&&(t.flags|=32),I0(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&Kd(t),null;case 13:return E0(e,t,n);case 4:return hh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Om(e,t,r,i,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,pe(Ia,r._currentValue),r._currentValue=s,o!==null)if(vn(o.value,s)){if(o.children===i.children&&!Et.current){t=Xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Un(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Jd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Jd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}pt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ui(t,n),i=nn(i),r=r(i),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,i=dn(r,t.pendingProps),i=dn(r.type,i),_m(e,t,r,i,n);case 15:return S0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dn(r,i),Jl(e,t),t.tag=1,Rt(r)?(e=!0,Ca(t)):e=!1,Ui(t,n),w0(t,r,i),ef(t,r,i,n),rf(null,t,r,!0,e,n);case 19:return R0(e,t,n);case 22:return $0(e,t,n)}throw Error(A(156,t.tag))};function W0(e,t){return yy(e,t)}function EC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,n,r){return new EC(e,t,n,r)}function Eh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RC(e){if(typeof e=="function")return Eh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qf)return 11;if(e===Qf)return 14}return 2}function $r(e,t){var n=e.alternate;return n===null?(n=Jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Eh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ii:return Jr(n.children,i,o,t);case Gf:s=8,i|=8;break;case Sd:return e=Jt(12,n,t,i|2),e.elementType=Sd,e.lanes=o,e;case $d:return e=Jt(13,n,t,i),e.elementType=$d,e.lanes=o,e;case Id:return e=Jt(19,n,t,i),e.elementType=Id,e.lanes=o,e;case ty:return fc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zv:s=10;break e;case ey:s=9;break e;case qf:s=11;break e;case Qf:s=14;break e;case cr:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Jt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Jr(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function fc(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=ty,e.lanes=n,e.stateNode={isHidden:!1},e}function qu(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function Qu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rh(e,t,n,r,i,o,s,l,a){return e=new PC(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fh(o),e}function OC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),Xv.exports=Vt;var vc=Xv.exports;const Ol=Ff(vc);var Gm=vc;kd.createRoot=Gm.createRoot,kd.hydrateRoot=Gm.hydrateRoot;const Ms={black:"#000",white:"#fff"},yi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Sn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},bi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},xi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},wi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Go={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},LC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function si(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ke(xo,--_t):0,co--,Ne===10&&(co=1,bc--),Ne}function jt(){return Ne=_t2||Ns(Ne)>3?"":" "}function eS(e,t){for(;--t&&jt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Js(e,na()+(t<6&&Pn()==32&&jt()==32))}function vf(e){for(;jt();)switch(Ne){case e:return _t;case 34:case 39:e!==34&&e!==39&&vf(Ne);break;case 40:e===41&&vf(e);break;case 92:jt();break}return _t}function tS(e,t){for(;jt()&&e+Ne!==57;)if(e+Ne===84&&Pn()===47)break;return"/*"+Js(t,_t-1)+"*"+yc(e===47?e:jt())}function nS(e){for(;!Ns(Pn());)jt();return Js(e,_t)}function rS(e){return nb(ia("",null,null,null,[""],e=tb(e),0,[0],e))}function ia(e,t,n,r,i,o,s,l,a){for(var c=0,u=0,d=s,f=0,v=0,g=0,p=1,b=1,m=1,h=0,y="",w=i,C=o,S=r,T=y;b;)switch(g=h,h=jt()){case 40:if(g!=108&&Ke(T,d-1)==58){gf(T+=ae(ra(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=ra(h);break;case 9:case 10:case 13:case 32:T+=ZC(g);break;case 92:T+=eS(na()-1,7);continue;case 47:switch(Pn()){case 42:case 47:_l(iS(tS(jt(),na()),t,n),a);break;default:T+="/"}break;case 123*p:l[c++]=$n(T)*m;case 125*p:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+u:m==-1&&(T=ae(T,/\f/g,"")),v>0&&$n(T)-d&&_l(v>32?Qm(T+";",r,n,d-1):Qm(ae(T," ","")+";",r,n,d-2),a);break;case 59:T+=";";default:if(_l(S=qm(T,t,n,c,u,i,l,y,w=[],C=[],d),o),h===123)if(u===0)ia(T,t,S,S,w,o,d,l,C);else switch(f===99&&Ke(T,3)===110?100:f){case 100:case 108:case 109:case 115:ia(e,S,S,r&&_l(qm(e,S,S,0,0,i,l,y,i,w=[],d),C),i,C,d,l,r?w:C);break;default:ia(T,S,S,S,[""],C,0,l,C)}}c=u=v=0,p=m=1,y=T="",d=s;break;case 58:d=1+$n(T),v=g;default:if(p<1){if(h==123)--p;else if(h==125&&p++==0&&JC()==125)continue}switch(T+=yc(h),h*p){case 38:m=u>0?1:(T+="\f",-1);break;case 44:l[c++]=($n(T)-1)*m,m=1;break;case 64:Pn()===45&&(T+=ra(jt())),f=Pn(),u=d=$n(y=T+=nS(na())),h++;break;case 45:g===45&&$n(T)==2&&(p=0)}}return o}function qm(e,t,n,r,i,o,s,l,a,c,u){for(var d=i-1,f=i===0?o:[""],v=Mh(f),g=0,p=0,b=0;g0?f[m]+" "+h:ae(h,/&\f/g,f[m])))&&(a[b++]=y);return xc(e,t,n,i===0?Ah:l,a,c,u)}function iS(e,t,n){return xc(e,t,n,K0,yc(KC()),Ls(e,2,-2),0)}function Qm(e,t,n,r){return xc(e,t,n,Dh,Ls(e,0,r),Ls(e,r+1,-1),r)}function Gi(e,t){for(var n="",r=Mh(e),i=0;i6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+Na+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gf(e,"stretch")?rb(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,$n(e)-3-(~gf(e,"!important")&&10))){case 107:return ae(e,":",":"+le)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(Ke(e,14)===45?"inline-":"")+"box$3$1"+le+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return le+e+it+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+it+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+it+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+it+e+e}return e}var hS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Dh:t.return=rb(t.value,t.length);break;case J0:return Gi([qo(t,{value:ae(t.value,"@","@"+le)})],i);case Ah:if(t.length)return YC(t.props,function(o){switch(XC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gi([qo(t,{props:[ae(o,/:(read-\w+)/,":"+Na+"$1")]})],i);case"::placeholder":return Gi([qo(t,{props:[ae(o,/:(plac\w+)/,":"+le+"input-$1")]}),qo(t,{props:[ae(o,/:(plac\w+)/,":"+Na+"$1")]}),qo(t,{props:[ae(o,/:(plac\w+)/,it+"input-$1")]})],i)}return""})}},pS=[hS],ib=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||pS,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[On]=t,e[_s]=r,D0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hd(n,r),n){case"dialog":ve("cancel",e),ve("close",e),i=r;break;case"iframe":case"object":case"embed":ve("load",e),i=r;break;case"video":case"audio":for(i=0;ico&&(t.flags|=128,r=!0,Qo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ma(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!xe)return rt(t),null}else 2*De()-o.renderingStartTime>co&&n!==1073741824&&(t.flags|=128,r=!0,Qo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=Ie.current,ge(Ie,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Lh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Nt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function yC(e,t){switch(gh(t),t.tag){case 1:return Ot(t.type)&&Ea(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lo(),ye(Pt),ye(lt),$h(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sh(t),null;case 13:if(ye(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ie),null;case 4:return lo(),null;case 10:return xh(t.type._context),null;case 22:case 23:return Lh(),null;case 24:return null;default:return null}}var Dl=!1,ot=!1,bC=typeof WeakSet=="function"?WeakSet:Set,z=null;function Li(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function vf(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Bm=!1;function xC(e,t){if(Zd=Sa,e=By(),ph(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++u===r&&(a=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},Sa=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:hn(t.type,g),b);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){_e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=Bm,Bm=!1,m}function ps(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vf(t,n,o)}i=i.next}while(i!==r)}}function gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function N0(e){var t=e.alternate;t!==null&&(e.alternate=null,N0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[On],delete t[_s],delete t[rf],delete t[nC],delete t[rC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function F0(e){return e.tag===5||e.tag===3||e.tag===4}function Vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ta));else if(r!==4&&(e=e.child,e!==null))for(bf(e,t,n),e=e.sibling;e!==null;)bf(e,t,n),e=e.sibling}function xf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xf(e,t,n),e=e.sibling;e!==null;)xf(e,t,n),e=e.sibling}var Ke=null,mn=!1;function sr(e,t,n){for(n=n.child;n!==null;)j0(e,t,n),n=n.sibling}function j0(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(ac,n)}catch{}switch(n.tag){case 5:ot||Li(n,t);case 6:var r=Ke,i=mn;Ke=null,sr(e,t,n),Ke=r,mn=i,Ke!==null&&(mn?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(mn?(e=Ke,n=n.stateNode,e.nodeType===8?Qu(e.parentNode,n):e.nodeType===1&&Qu(e,n),Ts(e)):Qu(Ke,n.stateNode));break;case 4:r=Ke,i=mn,Ke=n.stateNode.containerInfo,mn=!0,sr(e,t,n),Ke=r,mn=i;break;case 0:case 11:case 14:case 15:if(!ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&vf(n,t,s),i=i.next}while(i!==r)}sr(e,t,n);break;case 1:if(!ot&&(Li(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_e(n,t,l)}sr(e,t,n);break;case 21:sr(e,t,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,sr(e,t,n),ot=r):sr(e,t,n);break;default:sr(e,t,n)}}function Hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bC),t.forEach(function(r){var i=RC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kC(r/1960))-r,10e?16:e,vr===null)var r=!1;else{if(e=vr,vr=null,za=0,oe&6)throw Error(A(331));var i=oe;for(oe|=4,z=e.current;z!==null;){var o=z,s=o.child;if(z.flags&16){var l=o.deletions;if(l!==null){for(var a=0;aDe()-Dh?Jr(e,0):Ah|=n),_t(e,t)}function q0(e,t){t===0&&(e.mode&1?(t=$l,$l<<=1,!($l&130023424)&&($l=4194304)):t=1);var n=xt();e=Jn(e,t),e!==null&&(Js(e,t,n),_t(e,n))}function EC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q0(e,n)}function RC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),q0(e,n)}var Q0;Q0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Rt=!1,gC(e,t,n);Rt=!!(e.flags&131072)}else Rt=!1,xe&&t.flags&1048576&&Jy(t,Oa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ia(e,t),e=t.pendingProps;var i=io(t,lt.current);Wi(t,n),i=Th(null,t,r,e,i,n);var o=Eh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ot(r)?(o=!0,Ra(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kh(t),i.updater=mc,t.stateNode=i,i._reactInternals=t,uf(t,r,e,n),t=hf(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&mh(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ia(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=OC(r),e=hn(r,e),i){case 0:t=ff(null,t,r,e,n);break e;case 1:t=Fm(null,t,r,e,n);break e;case 11:t=Lm(null,t,r,e,n);break e;case 14:t=Nm(null,t,r,hn(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),ff(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),Fm(e,t,r,i,n);case 3:e:{if(O0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,i0(e,t),Da(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ao(Error(A(423)),t),t=jm(e,t,r,n,i);break e}else if(r!==i){i=ao(Error(A(424)),t),t=jm(e,t,r,n,i);break e}else for(jt=wr(t.stateNode.containerInfo.firstChild),zt=t,xe=!0,gn=null,n=n0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oo(),r===i){t=Zn(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return o0(t),e===null&&lf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,tf(r,i)?s=null:o!==null&&tf(r,o)&&(t.flags|=32),P0(e,t),gt(e,t,s,n),t.child;case 6:return e===null&&lf(t),null;case 13:return _0(e,t,n);case 4:return Ch(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=so(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),Lm(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ge(_a,r._currentValue),r._currentValue=s,o!==null)if(xn(o.value,s)){if(o.children===i.children&&!Pt.current){t=Zn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Qn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),af(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),af(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wi(t,n),i=on(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=hn(r,t.pendingProps),i=hn(r.type,i),Nm(e,t,r,i,n);case 15:return E0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),ia(e,t),t.tag=1,Ot(r)?(e=!0,Ra(t)):e=!1,Wi(t,n),$0(t,r,i),uf(t,r,i,n),hf(null,t,r,!0,e,n);case 19:return A0(e,t,n);case 22:return R0(e,t,n)}throw Error(A(156,t.tag))};function X0(e,t){return ky(e,t)}function PC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,n,r){return new PC(e,t,n,r)}function Fh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function OC(e){if(typeof e=="function")return Fh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rh)return 11;if(e===ih)return 14}return 2}function $r(e,t){var n=e.alternate;return n===null?(n=en(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function la(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Fh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ti:return Zr(n.children,i,o,t);case nh:s=8,i|=8;break;case Ad:return e=en(12,n,t,i|2),e.elementType=Ad,e.lanes=o,e;case Dd:return e=en(13,n,t,i),e.elementType=Dd,e.lanes=o,e;case Md:return e=en(19,n,t,i),e.elementType=Md,e.lanes=o,e;case oy:return yc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ry:s=10;break e;case iy:s=9;break e;case rh:s=11;break e;case ih:s=14;break e;case dr:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=en(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zr(e,t,n,r){return e=en(7,e,r,t),e.lanes=n,e}function yc(e,t,n,r){return e=en(22,e,r,t),e.elementType=oy,e.lanes=n,e.stateNode={isHidden:!1},e}function nd(e,t,n){return e=en(6,e,null,t),e.lanes=n,e}function rd(e,t,n){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _C(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jh(e,t,n,r,i,o,s,l,a){return e=new _C(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=en(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(o),e}function AC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z0)}catch(e){console.error(e)}}Z0(),Zv.exports=Ut;var Cc=Zv.exports;const Nl=Qf(Cc);var Km=Cc;Od.createRoot=Km.createRoot,Od.hydrateRoot=Km.hydrateRoot;const js={black:"#000",white:"#fff"},bi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},En={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},xi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},wi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ki={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Yo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},FC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function li(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Je(wo,--Dt):0,uo--,Fe===10&&(uo=1,$c--),Fe}function Bt(){return Fe=Dt2||Bs(Fe)>3?"":" "}function nS(e,t){for(;--t&&Bt()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return nl(e,aa()+(t<6&&Dn()==32&&Bt()==32))}function If(e){for(;Bt();)switch(Fe){case e:return Dt;case 34:case 39:e!==34&&e!==39&&If(Fe);break;case 40:e===41&&If(e);break;case 92:Bt();break}return Dt}function rS(e,t){for(;Bt()&&e+Fe!==57;)if(e+Fe===84&&Dn()===47)break;return"/*"+nl(t,Dt-1)+"*"+Sc(e===47?e:Bt())}function iS(e){for(;!Bs(Dn());)Bt();return nl(e,Dt)}function oS(e){return sb(ua("",null,null,null,[""],e=ob(e),0,[0],e))}function ua(e,t,n,r,i,o,s,l,a){for(var c=0,u=0,d=s,f=0,v=0,m=0,g=1,b=1,p=1,h=0,y="",w=i,C=o,$=r,I=y;b;)switch(m=h,h=Bt()){case 40:if(m!=108&&Je(I,d-1)==58){$f(I+=ue(ca(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:I+=ca(h);break;case 9:case 10:case 13:case 32:I+=tS(m);break;case 92:I+=nS(aa()-1,7);continue;case 47:switch(Dn()){case 42:case 47:Fl(sS(rS(Bt(),aa()),t,n),a);break;default:I+="/"}break;case 123*g:l[c++]=Rn(I)*p;case 125*g:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+u:p==-1&&(I=ue(I,/\f/g,"")),v>0&&Rn(I)-d&&Fl(v>32?Zm(I+";",r,n,d-1):Zm(ue(I," ","")+";",r,n,d-2),a);break;case 59:I+=";";default:if(Fl($=Jm(I,t,n,c,u,i,l,y,w=[],C=[],d),o),h===123)if(u===0)ua(I,t,$,$,w,o,d,l,C);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:ua(e,$,$,r&&Fl(Jm(e,$,$,0,0,i,l,y,i,w=[],d),C),i,C,d,l,r?w:C);break;default:ua(I,$,$,$,[""],C,0,l,C)}}c=u=v=0,g=p=1,y=I="",d=s;break;case 58:d=1+Rn(I),v=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&eS()==125)continue}switch(I+=Sc(h),h*g){case 38:p=u>0?1:(I+="\f",-1);break;case 44:l[c++]=(Rn(I)-1)*p,p=1;break;case 64:Dn()===45&&(I+=ca(Bt())),f=Dn(),u=d=Rn(y=I+=iS(aa())),h++;break;case 45:m===45&&Rn(I)==2&&(g=0)}}return o}function Jm(e,t,n,r,i,o,s,l,a,c,u){for(var d=i-1,f=i===0?o:[""],v=Wh(f),m=0,g=0,b=0;m0?f[p]+" "+h:ue(h,/&\f/g,f[p])))&&(a[b++]=y);return Ic(e,t,n,i===0?Hh:l,a,c,u)}function sS(e,t,n){return Ic(e,t,n,tb,Sc(ZC()),zs(e,2,-2),0)}function Zm(e,t,n,r){return Ic(e,t,n,Uh,zs(e,0,r),zs(e,r+1,-1),r)}function qi(e,t){for(var n="",r=Wh(e),i=0;i6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+Ha+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$f(e,"stretch")?lb(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Rn(e)-3-(~$f(e,"!important")&&10))){case 107:return ue(e,":",":"+ce)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(Je(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return ce+e+it+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+it+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+it+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+it+e+e}return e}var mS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Uh:t.return=lb(t.value,t.length);break;case nb:return qi([Ko(t,{value:ue(t.value,"@","@"+ce)})],i);case Hh:if(t.length)return JC(t.props,function(o){switch(KC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qi([Ko(t,{props:[ue(o,/:(read-\w+)/,":"+Ha+"$1")]})],i);case"::placeholder":return qi([Ko(t,{props:[ue(o,/:(plac\w+)/,":"+ce+"input-$1")]}),Ko(t,{props:[ue(o,/:(plac\w+)/,":"+Ha+"$1")]}),Ko(t,{props:[ue(o,/:(plac\w+)/,it+"input-$1")]})],i)}return""})}},gS=[mS],ab=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||gS,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),p=1;p=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var IS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TS=!1,ES=/[A-Z]|^ms/g,RS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,db=function(t){return t.charCodeAt(1)===45},Ym=function(t){return t!=null&&typeof t!="boolean"},Xu=Y0(function(e){return db(e)?e:e.replace(ES,"-$&").toLowerCase()}),Km=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(RS,function(r,i,o){return In={name:i,styles:o,next:In},i})}return IS[t]!==1&&!db(t)&&typeof n=="number"&&n!==0?n+"px":n},PS="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return In={name:i.name,styles:i.styles,next:In},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)In={name:s.name,styles:s.styles,next:In},s=s.next;var l=o.styles+";";return l}return OS(e,t,n)}case"function":{if(e!==void 0){var a=In,c=n(e);return In=a,Fs(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function OS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?LS:NS},ng=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},FS=!1,jS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return cb(n,r,i),AS(function(){return ub(n,r,i)}),null},zS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=ng(t,n,r),a=l||tg(i),c=!a("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,v=1;vt(QS(i)?n:i):t;return k.jsx(MS,{styles:r})}function xb(e,t){return yf(e,t)}const XS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},YS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:bb,StyledEngineProvider:qS,ThemeContext:Zs,css:Oc,default:xb,internal_processStyles:XS,keyframes:wo},Symbol.toStringTag,{value:"Module"}));function hr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wb(e){if(!hr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=wb(e[n])}),t}function On(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return hr(e)&&hr(t)&&Object.keys(t).forEach(i=>{hr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&hr(e[i])?r[i]=On(e[i],t[i],n):n.clone?r[i]=hr(t[i])?wb(t[i]):t[i]:r[i]=t[i]}),r}const KS=Object.freeze(Object.defineProperty({__proto__:null,default:On,isPlainObject:hr},Symbol.toStringTag,{value:"Module"})),JS=["values","unit","step"],ZS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function kb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Y(e,JS),o=ZS(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${zh[e]}px)`};function Yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||ig;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||ig;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||zh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function t$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function n$(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(si(7));return e.charAt(0).toUpperCase()+e.slice(1)}const r$=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function uo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Fa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=uo(e,n)||r,t&&(i=t(i,r,e)),i}function Me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=uo(a,r)||{};return Yn(s,l,d=>{let f=Fa(c,i,d);return d===f&&typeof d=="string"&&(f=Fa(c,i,`${t}${d==="default"?"":X(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function i$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const o$={m:"margin",p:"padding"},s$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},og={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l$=i$(e=>{if(e.length>2)if(og[e])e=og[e];else return[e];const[t,n]=e.split(""),r=o$[t],i=s$[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Bh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Bh,...Vh];function el(e,t,n,r){var i;const o=(i=uo(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function Cb(e){return el(e,"spacing",8)}function tl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function a$(e,t){return n=>e.reduce((r,i)=>(r[i]=tl(t,n),r),{})}function c$(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=l$(n),o=a$(i,r),s=e[n];return Yn(e,s,o)}function Sb(e,t){const n=Cb(e.theme);return Object.keys(e).map(r=>c$(e,t,r,n)).reduce(hs,{})}function Re(e){return Sb(e,Bh)}Re.propTypes={};Re.filterProps=Bh;function Pe(e){return Sb(e,Vh)}Pe.propTypes={};Pe.filterProps=Vh;function u$(e=8){if(e.mui)return e;const t=Cb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function _c(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?hs(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Yt(e){return typeof e!="number"?e:`${e}px solid`}function ln(e,t){return Me({prop:e,themeKey:"borders",transform:t})}const d$=ln("border",Yt),f$=ln("borderTop",Yt),h$=ln("borderRight",Yt),p$=ln("borderBottom",Yt),m$=ln("borderLeft",Yt),g$=ln("borderColor"),v$=ln("borderTopColor"),y$=ln("borderRightColor"),b$=ln("borderBottomColor"),x$=ln("borderLeftColor"),w$=ln("outline",Yt),k$=ln("outlineColor"),Ac=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=el(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tl(t,r)});return Yn(e,e.borderRadius,n)}return null};Ac.propTypes={};Ac.filterProps=["borderRadius"];_c(d$,f$,h$,p$,m$,g$,v$,y$,b$,x$,Ac,w$,k$);const Dc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=el(e.theme,"spacing",8),n=r=>({gap:tl(t,r)});return Yn(e,e.gap,n)}return null};Dc.propTypes={};Dc.filterProps=["gap"];const Mc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=el(e.theme,"spacing",8),n=r=>({columnGap:tl(t,r)});return Yn(e,e.columnGap,n)}return null};Mc.propTypes={};Mc.filterProps=["columnGap"];const Lc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=el(e.theme,"spacing",8),n=r=>({rowGap:tl(t,r)});return Yn(e,e.rowGap,n)}return null};Lc.propTypes={};Lc.filterProps=["rowGap"];const C$=Me({prop:"gridColumn"}),S$=Me({prop:"gridRow"}),$$=Me({prop:"gridAutoFlow"}),I$=Me({prop:"gridAutoColumns"}),T$=Me({prop:"gridAutoRows"}),E$=Me({prop:"gridTemplateColumns"}),R$=Me({prop:"gridTemplateRows"}),P$=Me({prop:"gridTemplateAreas"}),O$=Me({prop:"gridArea"});_c(Dc,Mc,Lc,C$,S$,$$,I$,T$,E$,R$,P$,O$);function qi(e,t){return t==="grey"?t:e}const _$=Me({prop:"color",themeKey:"palette",transform:qi}),A$=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qi}),D$=Me({prop:"backgroundColor",themeKey:"palette",transform:qi});_c(_$,A$,D$);function Lt(e){return e<=1&&e!==0?`${e*100}%`:e}const M$=Me({prop:"width",transform:Lt}),Hh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Lt(n)}};return Yn(e,e.maxWidth,t)}return null};Hh.filterProps=["maxWidth"];const L$=Me({prop:"minWidth",transform:Lt}),N$=Me({prop:"height",transform:Lt}),F$=Me({prop:"maxHeight",transform:Lt}),j$=Me({prop:"minHeight",transform:Lt});Me({prop:"size",cssProperty:"width",transform:Lt});Me({prop:"size",cssProperty:"height",transform:Lt});const z$=Me({prop:"boxSizing"});_c(M$,Hh,L$,N$,F$,j$,z$);const nl={border:{themeKey:"borders",transform:Yt},borderTop:{themeKey:"borders",transform:Yt},borderRight:{themeKey:"borders",transform:Yt},borderBottom:{themeKey:"borders",transform:Yt},borderLeft:{themeKey:"borders",transform:Yt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ac},color:{themeKey:"palette",transform:qi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qi},backgroundColor:{themeKey:"palette",transform:qi},p:{style:Pe},pt:{style:Pe},pr:{style:Pe},pb:{style:Pe},pl:{style:Pe},px:{style:Pe},py:{style:Pe},padding:{style:Pe},paddingTop:{style:Pe},paddingRight:{style:Pe},paddingBottom:{style:Pe},paddingLeft:{style:Pe},paddingX:{style:Pe},paddingY:{style:Pe},paddingInline:{style:Pe},paddingInlineStart:{style:Pe},paddingInlineEnd:{style:Pe},paddingBlock:{style:Pe},paddingBlockStart:{style:Pe},paddingBlockEnd:{style:Pe},m:{style:Re},mt:{style:Re},mr:{style:Re},mb:{style:Re},ml:{style:Re},mx:{style:Re},my:{style:Re},margin:{style:Re},marginTop:{style:Re},marginRight:{style:Re},marginBottom:{style:Re},marginLeft:{style:Re},marginX:{style:Re},marginY:{style:Re},marginInline:{style:Re},marginInlineStart:{style:Re},marginInlineEnd:{style:Re},marginBlock:{style:Re},marginBlockStart:{style:Re},marginBlockEnd:{style:Re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Dc},rowGap:{style:Lc},columnGap:{style:Mc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Lt},maxWidth:{style:Hh},minWidth:{transform:Lt},height:{transform:Lt},maxHeight:{transform:Lt},minHeight:{transform:Lt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function B$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function V$(e,t){return typeof e=="function"?e(t):e}function $b(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:u,style:d}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=uo(i,c)||{};return d?d(s):Yn(s,r,g=>{let p=Fa(f,u,g);return g===p&&typeof g=="string"&&(p=Fa(f,u,`${n}${g==="default"?"":X(g)}`,g)),a===!1?p:{[a]:p}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:nl;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const u=t$(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const g=V$(c[v],o);if(g!=null)if(typeof g=="object")if(s[v])f=hs(f,e(v,g,o,s));else{const p=Yn({theme:o},g,b=>({[v]:b}));B$(p,g)?f[v]=t({sx:g,theme:o}):f=hs(f,p)}else f=hs(f,e(v,g,o,s))}),n$(d,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const rl=$b();rl.filterProps=["sx"];function Ib(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const H$=["breakpoints","palette","spacing","shape"];function Uh(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Y(e,H$),l=kb(n),a=u$(i);let c=On({breakpoints:l,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:a,shape:$({},e$,o)},s);return c.applyStyles=Ib,c=t.reduce((u,d)=>On(u,d),c),c.unstable_sxConfig=$({},nl,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return rl({sx:d,theme:this})},c}const U$=Object.freeze(Object.defineProperty({__proto__:null,default:Uh,private_createBreakpoints:kb,unstable_applyStyles:Ib},Symbol.toStringTag,{value:"Module"}));function W$(e){return Object.keys(e).length===0}function Tb(e=null){const t=x.useContext(Zs);return!t||W$(t)?e:t}const G$=Uh();function Nc(e=G$){return Tb(e)}function q$({styles:e,themeId:t,defaultTheme:n={}}){const r=Nc(n),i=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(bb,{styles:i})}const Q$=["sx"],X$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:nl;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Wh(e){const{sx:t}=e,n=Y(e,Q$),{systemProps:r,otherProps:i}=X$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return hr(l)?$({},r,l):r}:o=$({},r,t),$({},i,{sx:o})}const Y$=Object.freeze(Object.defineProperty({__proto__:null,default:rl,extendSxProp:Wh,unstable_createStyleFunctionSx:$b,unstable_defaultSxConfig:nl},Symbol.toStringTag,{value:"Module"})),sg=e=>e,K$=()=>{let e=sg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sg}}},Gh=K$();function Eb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(rl);return x.forwardRef(function(a,c){const u=Nc(n),d=Wh(a),{className:f,component:v="div"}=d,g=Y(d,J$);return k.jsx(o,$({as:v,ref:c,className:ie(f,i?i(r):r),theme:t&&u[t]||u},g))})}const Rb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ve(e,t,n="Mui"){const r=Rb[t];return r?`${n}-${r}`:`${Gh.generate(e)}-${t}`}function je(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ve(e,i,n)}),r}var Pb={exports:{}},he={};/** + */var Ye=typeof Symbol=="function"&&Symbol.for,Gh=Ye?Symbol.for("react.element"):60103,qh=Ye?Symbol.for("react.portal"):60106,Tc=Ye?Symbol.for("react.fragment"):60107,Ec=Ye?Symbol.for("react.strict_mode"):60108,Rc=Ye?Symbol.for("react.profiler"):60114,Pc=Ye?Symbol.for("react.provider"):60109,Oc=Ye?Symbol.for("react.context"):60110,Qh=Ye?Symbol.for("react.async_mode"):60111,_c=Ye?Symbol.for("react.concurrent_mode"):60111,Ac=Ye?Symbol.for("react.forward_ref"):60112,Dc=Ye?Symbol.for("react.suspense"):60113,vS=Ye?Symbol.for("react.suspense_list"):60120,Mc=Ye?Symbol.for("react.memo"):60115,Lc=Ye?Symbol.for("react.lazy"):60116,yS=Ye?Symbol.for("react.block"):60121,bS=Ye?Symbol.for("react.fundamental"):60117,xS=Ye?Symbol.for("react.responder"):60118,wS=Ye?Symbol.for("react.scope"):60119;function Gt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gh:switch(e=e.type,e){case Qh:case _c:case Tc:case Rc:case Ec:case Dc:return e;default:switch(e=e&&e.$$typeof,e){case Oc:case Ac:case Lc:case Mc:case Pc:return e;default:return t}}case qh:return t}}}function ub(e){return Gt(e)===_c}he.AsyncMode=Qh;he.ConcurrentMode=_c;he.ContextConsumer=Oc;he.ContextProvider=Pc;he.Element=Gh;he.ForwardRef=Ac;he.Fragment=Tc;he.Lazy=Lc;he.Memo=Mc;he.Portal=qh;he.Profiler=Rc;he.StrictMode=Ec;he.Suspense=Dc;he.isAsyncMode=function(e){return ub(e)||Gt(e)===Qh};he.isConcurrentMode=ub;he.isContextConsumer=function(e){return Gt(e)===Oc};he.isContextProvider=function(e){return Gt(e)===Pc};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gh};he.isForwardRef=function(e){return Gt(e)===Ac};he.isFragment=function(e){return Gt(e)===Tc};he.isLazy=function(e){return Gt(e)===Lc};he.isMemo=function(e){return Gt(e)===Mc};he.isPortal=function(e){return Gt(e)===qh};he.isProfiler=function(e){return Gt(e)===Rc};he.isStrictMode=function(e){return Gt(e)===Ec};he.isSuspense=function(e){return Gt(e)===Dc};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tc||e===_c||e===Rc||e===Ec||e===Dc||e===vS||typeof e=="object"&&e!==null&&(e.$$typeof===Lc||e.$$typeof===Mc||e.$$typeof===Pc||e.$$typeof===Oc||e.$$typeof===Ac||e.$$typeof===bS||e.$$typeof===xS||e.$$typeof===wS||e.$$typeof===yS)};he.typeOf=Gt;cb.exports=he;var kS=cb.exports,db=kS,CS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},SS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fb={};fb[db.ForwardRef]=CS;fb[db.Memo]=SS;var $S=!0;function IS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var hb=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||$S===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},pb=function(t,n,r){hb(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function TS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ES={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RS=!1,PS=/[A-Z]|^ms/g,OS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mb=function(t){return t.charCodeAt(1)===45},tg=function(t){return t!=null&&typeof t!="boolean"},id=eb(function(e){return mb(e)?e:e.replace(PS,"-$&").toLowerCase()}),ng=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(OS,function(r,i,o){return Pn={name:i,styles:o,next:Pn},i})}return ES[t]!==1&&!mb(t)&&typeof n=="number"&&n!==0?n+"px":n},_S="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Pn={name:i.name,styles:i.styles,next:Pn},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Pn={name:s.name,styles:s.styles,next:Pn},s=s.next;var l=o.styles+";";return l}return AS(e,t,n)}case"function":{if(e!==void 0){var a=Pn,c=n(e);return Pn=a,Vs(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function AS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?FS:jS},lg=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},zS=!1,BS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hb(n,r,i),MS(function(){return pb(n,r,i)}),null},VS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=lg(t,n,r),a=l||sg(i),c=!a("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,v=1;vt(YS(i)?n:i):t;return k.jsx(NS,{styles:r})}function Sb(e,t){return Tf(e,t)}const KS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},JS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Cb,StyledEngineProvider:XS,ThemeContext:rl,css:Nc,default:Sb,internal_processStyles:KS,keyframes:ko},Symbol.toStringTag,{value:"Module"}));function mr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $b(e){if(!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$b(e[n])}),t}function Mn(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return mr(e)&&mr(t)&&Object.keys(t).forEach(i=>{mr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&mr(e[i])?r[i]=Mn(e[i],t[i],n):n.clone?r[i]=mr(t[i])?$b(t[i]):t[i]:r[i]=t[i]}),r}const ZS=Object.freeze(Object.defineProperty({__proto__:null,default:Mn,isPlainObject:mr},Symbol.toStringTag,{value:"Module"})),e$=["values","unit","step"],t$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function Ib(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=J(e,e$),o=t$(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const m=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:v)-r/100}${n})`}function u(f){return s.indexOf(f)+1`@media (min-width:${Yh[e]}px)`};function er(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||cg;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||cg;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Yh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function r$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function i$(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(li(7));return e.charAt(0).toUpperCase()+e.slice(1)}const o$=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function fo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ua(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=fo(e,n)||r,t&&(i=t(i,r,e)),i}function Le(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=fo(a,r)||{};return er(s,l,d=>{let f=Ua(c,i,d);return d===f&&typeof d=="string"&&(f=Ua(c,i,`${t}${d==="default"?"":X(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function s$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const l$={m:"margin",p:"padding"},a$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ug={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c$=s$(e=>{if(e.length>2)if(ug[e])e=ug[e];else return[e];const[t,n]=e.split(""),r=l$[t],i=a$[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Kh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Kh,...Jh];function il(e,t,n,r){var i;const o=(i=fo(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function Tb(e){return il(e,"spacing",8)}function ol(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function u$(e,t){return n=>e.reduce((r,i)=>(r[i]=ol(t,n),r),{})}function d$(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=c$(n),o=u$(i,r),s=e[n];return er(e,s,o)}function Eb(e,t){const n=Tb(e.theme);return Object.keys(e).map(r=>d$(e,t,r,n)).reduce(vs,{})}function Pe(e){return Eb(e,Kh)}Pe.propTypes={};Pe.filterProps=Kh;function Oe(e){return Eb(e,Jh)}Oe.propTypes={};Oe.filterProps=Jh;function f$(e=8){if(e.mui)return e;const t=Tb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Fc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?vs(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Jt(e){return typeof e!="number"?e:`${e}px solid`}function cn(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const h$=cn("border",Jt),p$=cn("borderTop",Jt),m$=cn("borderRight",Jt),g$=cn("borderBottom",Jt),v$=cn("borderLeft",Jt),y$=cn("borderColor"),b$=cn("borderTopColor"),x$=cn("borderRightColor"),w$=cn("borderBottomColor"),k$=cn("borderLeftColor"),C$=cn("outline",Jt),S$=cn("outlineColor"),jc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=il(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ol(t,r)});return er(e,e.borderRadius,n)}return null};jc.propTypes={};jc.filterProps=["borderRadius"];Fc(h$,p$,m$,g$,v$,y$,b$,x$,w$,k$,jc,C$,S$);const zc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=il(e.theme,"spacing",8),n=r=>({gap:ol(t,r)});return er(e,e.gap,n)}return null};zc.propTypes={};zc.filterProps=["gap"];const Bc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=il(e.theme,"spacing",8),n=r=>({columnGap:ol(t,r)});return er(e,e.columnGap,n)}return null};Bc.propTypes={};Bc.filterProps=["columnGap"];const Vc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=il(e.theme,"spacing",8),n=r=>({rowGap:ol(t,r)});return er(e,e.rowGap,n)}return null};Vc.propTypes={};Vc.filterProps=["rowGap"];const $$=Le({prop:"gridColumn"}),I$=Le({prop:"gridRow"}),T$=Le({prop:"gridAutoFlow"}),E$=Le({prop:"gridAutoColumns"}),R$=Le({prop:"gridAutoRows"}),P$=Le({prop:"gridTemplateColumns"}),O$=Le({prop:"gridTemplateRows"}),_$=Le({prop:"gridTemplateAreas"}),A$=Le({prop:"gridArea"});Fc(zc,Bc,Vc,$$,I$,T$,E$,R$,P$,O$,_$,A$);function Qi(e,t){return t==="grey"?t:e}const D$=Le({prop:"color",themeKey:"palette",transform:Qi}),M$=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qi}),L$=Le({prop:"backgroundColor",themeKey:"palette",transform:Qi});Fc(D$,M$,L$);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const N$=Le({prop:"width",transform:Ft}),Zh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Yh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ft(n)}};return er(e,e.maxWidth,t)}return null};Zh.filterProps=["maxWidth"];const F$=Le({prop:"minWidth",transform:Ft}),j$=Le({prop:"height",transform:Ft}),z$=Le({prop:"maxHeight",transform:Ft}),B$=Le({prop:"minHeight",transform:Ft});Le({prop:"size",cssProperty:"width",transform:Ft});Le({prop:"size",cssProperty:"height",transform:Ft});const V$=Le({prop:"boxSizing"});Fc(N$,Zh,F$,j$,z$,B$,V$);const sl={border:{themeKey:"borders",transform:Jt},borderTop:{themeKey:"borders",transform:Jt},borderRight:{themeKey:"borders",transform:Jt},borderBottom:{themeKey:"borders",transform:Jt},borderLeft:{themeKey:"borders",transform:Jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jc},color:{themeKey:"palette",transform:Qi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qi},backgroundColor:{themeKey:"palette",transform:Qi},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zc},rowGap:{style:Vc},columnGap:{style:Bc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:Zh},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function H$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function U$(e,t){return typeof e=="function"?e(t):e}function Rb(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:u,style:d}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=fo(i,c)||{};return d?d(s):er(s,r,m=>{let g=Ua(f,u,m);return m===g&&typeof m=="string"&&(g=Ua(f,u,`${n}${m==="default"?"":X(m)}`,m)),a===!1?g:{[a]:g}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:sl;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const u=r$(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const m=U$(c[v],o);if(m!=null)if(typeof m=="object")if(s[v])f=vs(f,e(v,m,o,s));else{const g=er({theme:o},m,b=>({[v]:b}));H$(g,m)?f[v]=t({sx:m,theme:o}):f=vs(f,g)}else f=vs(f,e(v,m,o,s))}),i$(d,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const ll=Rb();ll.filterProps=["sx"];function Pb(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const W$=["breakpoints","palette","spacing","shape"];function Hc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=J(e,W$),l=Ib(n),a=f$(i);let c=Mn({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},n$,o)},s);return c.applyStyles=Pb,c=t.reduce((u,d)=>Mn(u,d),c),c.unstable_sxConfig=S({},sl,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return ll({sx:d,theme:this})},c}const G$=Object.freeze(Object.defineProperty({__proto__:null,default:Hc,private_createBreakpoints:Ib,unstable_applyStyles:Pb},Symbol.toStringTag,{value:"Module"}));function q$(e){return Object.keys(e).length===0}function Ob(e=null){const t=x.useContext(rl);return!t||q$(t)?e:t}const Q$=Hc();function Uc(e=Q$){return Ob(e)}function X$({styles:e,themeId:t,defaultTheme:n={}}){const r=Uc(n),i=typeof e=="function"?e(t&&r[t]||r):e;return k.jsx(Cb,{styles:i})}const Y$=["sx"],K$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:sl;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function ep(e){const{sx:t}=e,n=J(e,Y$),{systemProps:r,otherProps:i}=K$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return mr(l)?S({},r,l):r}:o=S({},r,t),S({},i,{sx:o})}const J$=Object.freeze(Object.defineProperty({__proto__:null,default:ll,extendSxProp:ep,unstable_createStyleFunctionSx:Rb,unstable_defaultSxConfig:sl},Symbol.toStringTag,{value:"Module"})),dg=e=>e,Z$=()=>{let e=dg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=dg}}},tp=Z$();function _b(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(ll);return x.forwardRef(function(a,c){const u=Uc(n),d=ep(a),{className:f,component:v="div"}=d,m=J(d,eI);return k.jsx(o,S({as:v,ref:c,className:ie(f,i?i(r):r),theme:t&&u[t]||u},m))})}const Ab={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ue(e,t,n="Mui"){const r=Ab[t];return r?`${n}-${r}`:`${tp.generate(e)}-${t}`}function ze(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ue(e,i,n)}),r}var Db={exports:{}},pe={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var qh=Symbol.for("react.element"),Qh=Symbol.for("react.portal"),Fc=Symbol.for("react.fragment"),jc=Symbol.for("react.strict_mode"),zc=Symbol.for("react.profiler"),Bc=Symbol.for("react.provider"),Vc=Symbol.for("react.context"),eI=Symbol.for("react.server_context"),Hc=Symbol.for("react.forward_ref"),Uc=Symbol.for("react.suspense"),Wc=Symbol.for("react.suspense_list"),Gc=Symbol.for("react.memo"),qc=Symbol.for("react.lazy"),tI=Symbol.for("react.offscreen"),Ob;Ob=Symbol.for("react.module.reference");function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Fc:case zc:case jc:case Uc:case Wc:return e;default:switch(e=e&&e.$$typeof,e){case eI:case Vc:case Hc:case qc:case Gc:case Bc:return e;default:return t}}case Qh:return t}}}he.ContextConsumer=Vc;he.ContextProvider=Bc;he.Element=qh;he.ForwardRef=Hc;he.Fragment=Fc;he.Lazy=qc;he.Memo=Gc;he.Portal=Qh;he.Profiler=zc;he.StrictMode=jc;he.Suspense=Uc;he.SuspenseList=Wc;he.isAsyncMode=function(){return!1};he.isConcurrentMode=function(){return!1};he.isContextConsumer=function(e){return an(e)===Vc};he.isContextProvider=function(e){return an(e)===Bc};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};he.isForwardRef=function(e){return an(e)===Hc};he.isFragment=function(e){return an(e)===Fc};he.isLazy=function(e){return an(e)===qc};he.isMemo=function(e){return an(e)===Gc};he.isPortal=function(e){return an(e)===Qh};he.isProfiler=function(e){return an(e)===zc};he.isStrictMode=function(e){return an(e)===jc};he.isSuspense=function(e){return an(e)===Uc};he.isSuspenseList=function(e){return an(e)===Wc};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fc||e===zc||e===jc||e===Uc||e===Wc||e===tI||typeof e=="object"&&e!==null&&(e.$$typeof===qc||e.$$typeof===Gc||e.$$typeof===Bc||e.$$typeof===Vc||e.$$typeof===Hc||e.$$typeof===Ob||e.getModuleId!==void 0)};he.typeOf=an;Pb.exports=he;var lg=Pb.exports;const nI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _b(e){const t=`${e}`.match(nI);return t&&t[1]||""}function Ab(e,t=""){return e.displayName||e.name||_b(e)||t}function ag(e,t,n){const r=Ab(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function rI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ab(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lg.ForwardRef:return ag(e,e.render,"ForwardRef");case lg.Memo:return ag(e,e.type,"memo");default:return}}}const iI=Object.freeze(Object.defineProperty({__proto__:null,default:rI,getFunctionName:_b},Symbol.toStringTag,{value:"Module"}));function ja(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=ja(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function oI(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ja(t.components[n].defaultProps,r)}function sI({props:e,name:t,defaultTheme:n,themeId:r}){let i=Nc(n);return r&&(i=i[r]||i),oI({theme:i,name:t,props:e})}const js=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Db(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const lI=Object.freeze(Object.defineProperty({__proto__:null,default:Db},Symbol.toStringTag,{value:"Module"}));function aI(e,t=0,n=1){return Db(e,t,n)}function cI(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Mb(e){if(e.type)return e;if(e.charAt(0)==="#")return Mb(cI(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(si(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(si(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function uI(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gr(e,t){return e=Mb(e),t=aI(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,uI(e)}function dI(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function fI(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function hI(e,t){return()=>null}function pI(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Qi(e){return e&&e.ownerDocument||document}function mI(e){return Qi(e).defaultView||window}function gI(e,t){return()=>null}function za(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let cg=0;function vI(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(cg+=1,n(`mui-${cg}`))},[t]),r}const ug=wd.useId;function Lb(e){if(ug!==void 0){const t=ug();return e??t}return vI(e)}function yI(e,t,n,r,i){return null}function Nb({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function Zt(e){const t=x.useRef(e);return js(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function bt(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{za(n,t)})},e)}const dg={};function bI(e,t){const n=x.useRef(dg);return n.current===dg&&(n.current=e(t)),n}const xI=[];function wI(e){x.useEffect(e,xI)}class Qc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Fb(){const e=bI(Qc.create).current;return wI(e.disposeEffect),e}let Xc=!0,xf=!1;const kI=new Qc,CI={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function SI(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&CI[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $I(e){e.metaKey||e.altKey||e.ctrlKey||(Xc=!0)}function Ku(){Xc=!1}function II(){this.visibilityState==="hidden"&&xf&&(Xc=!0)}function TI(e){e.addEventListener("keydown",$I,!0),e.addEventListener("mousedown",Ku,!0),e.addEventListener("pointerdown",Ku,!0),e.addEventListener("touchstart",Ku,!0),e.addEventListener("visibilitychange",II,!0)}function EI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Xc||SI(t)}function Xh(){const e=x.useCallback(i=>{i!=null&&TI(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(xf=!0,kI.start(100,()=>{xf=!1}),t.current=!1,!0):!1}function r(i){return EI(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const jb=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function He(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}function RI(e){return typeof e=="string"}function PI(e,t,n){return e===void 0||RI(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function OI(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function fg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function _I(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=ie(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},n,i,r);return v.length>0&&(p.className=v),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const s=OI($({},i,r)),l=fg(r),a=fg(i),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=$({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=$({},c,n,a,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function AI(e,t,n){return typeof e=="function"?e(t,n):e}const DI=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hg(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Y(e,DI),l=o?{}:AI(r,i),{props:a,internalRef:c}=_I($({},s,{externalSlotProps:l})),u=bt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return PI(n,$({},a,{ref:u}),i)}const zb=x.createContext(null);function Bb(){return x.useContext(zb)}const MI=typeof Symbol=="function"&&Symbol.for,LI=MI?Symbol.for("mui.nested"):"__THEME_NESTED__";function NI(e,t){return typeof t=="function"?t(e):$({},e,t)}function FI(e){const{children:t,theme:n}=e,r=Bb(),i=x.useMemo(()=>{const o=r===null?n:NI(r,n);return o!=null&&(o[LI]=r!==null),o},[n,r]);return k.jsx(zb.Provider,{value:i,children:t})}const jI=["value"],Vb=x.createContext();function zI(e){let{value:t}=e,n=Y(e,jI);return k.jsx(Vb.Provider,$({value:t??!0},n))}const BI=()=>{const e=x.useContext(Vb);return e??!1},Hb=x.createContext(void 0);function VI({value:e,children:t}){return k.jsx(Hb.Provider,{value:e,children:t})}function HI(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?ja(i.defaultProps,r):!i.styleOverrides&&!i.variants?ja(i,r):r}function UI({props:e,name:t}){const n=x.useContext(Hb);return HI({props:e,name:t,theme:{components:n}})}const pg={};function mg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function WI(e){const{children:t,theme:n,themeId:r}=e,i=Tb(pg),o=Bb()||pg,s=mg(r,i,n),l=mg(r,o,n,!0),a=s.direction==="rtl";return k.jsx(FI,{theme:l,children:k.jsx(Zs.Provider,{value:s,children:k.jsx(zI,{value:a,children:k.jsx(VI,{value:s==null?void 0:s.components,children:t})})})})}function GI(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Le={},Ub={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ub);var Yc=Ub.exports;const qI=Kn(NC),QI=Kn(lI);var Wb=Yc;Object.defineProperty(Le,"__esModule",{value:!0});var Rr=Le.alpha=Xb;Le.blend=oT;Le.colorChannel=void 0;var Yh=Le.darken=Zh;Le.decomposeColor=on;Le.emphasize=Yb;var XI=Le.getContrastRatio=eT;Le.getLuminance=Ba;Le.hexToRgb=Gb;Le.hslToRgb=Qb;var Kh=Le.lighten=ep;Le.private_safeAlpha=tT;Le.private_safeColorChannel=void 0;Le.private_safeDarken=nT;Le.private_safeEmphasize=iT;Le.private_safeLighten=rT;Le.recomposeColor=ko;Le.rgbToHex=ZI;var gg=Wb(qI),YI=Wb(QI);function Jh(e,t=0,n=1){return(0,YI.default)(e,t,n)}function Gb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function KI(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function on(e){if(e.type)return e;if(e.charAt(0)==="#")return on(Gb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,gg.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,gg.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const qb=e=>{const t=on(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Le.colorChannel=qb;const JI=(e,t)=>{try{return qb(e)}catch{return e}};Le.private_safeColorChannel=JI;function ko(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZI(e){if(e.indexOf("#")===0)return e;const{values:t}=on(e);return`#${t.map((n,r)=>KI(r===3?Math.round(255*n):n)).join("")}`}function Qb(e){e=on(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),ko({type:l,values:a})}function Ba(e){e=on(e);let t=e.type==="hsl"||e.type==="hsla"?on(Qb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function eT(e,t){const n=Ba(e),r=Ba(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xb(e,t){return e=on(e),t=Jh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ko(e)}function tT(e,t,n){try{return Xb(e,t)}catch{return e}}function Zh(e,t){if(e=on(e),t=Jh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ko(e)}function nT(e,t,n){try{return Zh(e,t)}catch{return e}}function ep(e,t){if(e=on(e),t=Jh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ko(e)}function rT(e,t,n){try{return ep(e,t)}catch{return e}}function Yb(e,t=.15){return Ba(e)>.5?Zh(e,t):ep(e,t)}function iT(e,t,n){try{return Yb(e,t)}catch{return e}}function oT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=on(e),s=on(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return ko({type:"rgb",values:l})}const sT=["mode","contrastThreshold","tonalOffset"],vg={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ms.white,default:Ms.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ju={text:{primary:Ms.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ms.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Kh(e.main,i):t==="dark"&&(e.dark=Yh(e.main,o)))}function lT(e="light"){return e==="dark"?{main:bi[200],light:bi[50],dark:bi[400]}:{main:bi[700],light:bi[400],dark:bi[800]}}function aT(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function cT(e="light"){return e==="dark"?{main:yi[500],light:yi[300],dark:yi[700]}:{main:yi[700],light:yi[400],dark:yi[800]}}function uT(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[700],light:xi[500],dark:xi[900]}}function dT(e="light"){return e==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:wi[800],light:wi[500],dark:wi[900]}}function fT(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:"#ed6c02",light:Go[500],dark:Go[900]}}function hT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Y(e,sT),o=e.primary||lT(t),s=e.secondary||aT(t),l=e.error||cT(t),a=e.info||uT(t),c=e.success||dT(t),u=e.warning||fT(t);function d(p){return XI(p,Ju.text.primary)>=n?Ju.text.primary:vg.text.primary}const f=({color:p,name:b,mainShade:m=500,lightShade:h=300,darkShade:y=700})=>{if(p=$({},p),!p.main&&p[m]&&(p.main=p[m]),!p.hasOwnProperty("main"))throw new Error(si(11,b?` (${b})`:"",m));if(typeof p.main!="string")throw new Error(si(12,b?` (${b})`:"",JSON.stringify(p.main)));return yg(p,"light",h,r),yg(p,"dark",y,r),p.contrastText||(p.contrastText=d(p.main)),p},v={dark:Ju,light:vg};return On($({common:$({},Ms),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:LC,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),i)}const pT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mT(e){return Math.round(e*1e5)/1e5}const bg={textTransform:"uppercase"},xg='"Roboto", "Helvetica", "Arial", sans-serif';function gT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=xg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=Y(n,pT),v=i/14,g=d||(m=>`${m/c*v}rem`),p=(m,h,y,w,C)=>$({fontFamily:r,fontWeight:m,fontSize:g(h),lineHeight:y},r===xg?{letterSpacing:`${mT(w/h)}em`}:{},C,u),b={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(l,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(l,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(l,14,1.75,.4,bg),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,bg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return On($({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const vT=.2,yT=.14,bT=.12;function ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${yT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${bT})`].join(",")}const xT=["none",ye(0,2,1,-1,0,1,1,0,0,1,3,0),ye(0,3,1,-2,0,2,2,0,0,1,5,0),ye(0,3,3,-2,0,3,4,0,0,1,8,0),ye(0,2,4,-1,0,4,5,0,0,1,10,0),ye(0,3,5,-1,0,5,8,0,0,1,14,0),ye(0,3,5,-1,0,6,10,0,0,1,18,0),ye(0,4,5,-2,0,7,10,1,0,2,16,1),ye(0,5,5,-3,0,8,10,1,0,3,14,2),ye(0,5,6,-3,0,9,12,1,0,3,16,2),ye(0,6,6,-3,0,10,14,1,0,4,18,3),ye(0,6,7,-4,0,11,15,1,0,4,20,3),ye(0,7,8,-4,0,12,17,2,0,5,22,4),ye(0,7,8,-4,0,13,19,2,0,5,24,4),ye(0,7,9,-4,0,14,21,2,0,5,26,4),ye(0,8,9,-5,0,15,22,2,0,6,28,5),ye(0,8,10,-5,0,16,24,2,0,6,30,5),ye(0,8,11,-5,0,17,26,2,0,6,32,5),ye(0,9,11,-5,0,18,28,2,0,7,34,6),ye(0,9,12,-6,0,19,29,2,0,7,36,6),ye(0,10,13,-6,0,20,31,3,0,8,38,7),ye(0,10,13,-6,0,21,33,3,0,8,40,7),ye(0,10,14,-6,0,22,35,3,0,8,42,7),ye(0,11,14,-7,0,23,36,3,0,9,44,8),ye(0,11,15,-7,0,24,38,3,0,9,46,8)],wT=["duration","easing","delay"],kT={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Kb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wg(e){return`${Math.round(e)}ms`}function CT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ST(e){const t=$({},kT,e.easing),n=$({},Kb,e.duration);return $({getAutoHeightDuration:CT,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return Y(o,wT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:wg(s)} ${l} ${typeof a=="string"?a:wg(a)}`).join(",")}},e,{easing:t,duration:n})}const $T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},IT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tp(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Y(e,IT);if(e.vars)throw new Error(si(18));const l=hT(r),a=Uh(e);let c=On(a,{mixins:GI(a.breakpoints,n),palette:l,shadows:xT.slice(),typography:gT(l,o),transitions:ST(i),zIndex:$({},$T)});return c=On(c,s),c=t.reduce((u,d)=>On(u,d),c),c.unstable_sxConfig=$({},nl,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return rl({sx:d,theme:this})},c}const Kc=tp();function np(){const e=Nc(Kc);return e[li]||e}function TT({props:e,name:t}){return sI({props:e,name:t,defaultTheme:Kc,themeId:li})}var il={},Zu={exports:{}},kg;function ET(){return kg||(kg=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Zu)),Zu.exports}const RT=Kn(YS),PT=Kn(KS),OT=Kn(r$),_T=Kn(iI),AT=Kn(U$),DT=Kn(Y$);var Co=Yc;Object.defineProperty(il,"__esModule",{value:!0});var MT=il.default=QT,Jc=il.shouldForwardProp=oa;il.systemDefaultTheme=void 0;var Gt=Co(mb()),wf=Co(ET()),Cg=VT(RT),LT=PT;Co(OT);Co(_T);var NT=Co(AT),FT=Co(DT);const jT=["ownerState"],zT=["variants"],BT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Jb=function(r){return r?n:t})(e)}function VT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Jb(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function HT(e){return Object.keys(e).length===0}function UT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function oa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const WT=il.systemDefaultTheme=(0,NT.default)(),GT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Al({defaultTheme:e,theme:t,themeId:n}){return HT(t)?e:t[n]||t}function qT(e){return e?(t,n)=>n[e]:null}function sa(e,t){let{ownerState:n}=t,r=(0,wf.default)(t,jT);const i=typeof e=="function"?e((0,Gt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>sa(o,(0,Gt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,wf.default)(i,zT);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,Gt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(u=>{(n==null?void 0:n[u])!==a.props[u]&&r[u]!==a.props[u]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Gt.default)({ownerState:n},r,n)):a.style))}),l}return i}function QT(e={}){const{themeId:t,defaultTheme:n=WT,rootShouldForwardProp:r=oa,slotShouldForwardProp:i=oa}=e,o=s=>(0,FT.default)((0,Gt.default)({},s,{theme:Al((0,Gt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,Cg.internal_processStyles)(s,C=>C.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=qT(GT(c))}=l,v=(0,wf.default)(l,BT),g=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,p=d||!1;let b,m=oa;c==="Root"||c==="root"?m=r:c?m=i:UT(s)&&(m=void 0);const h=(0,Cg.default)(s,(0,Gt.default)({shouldForwardProp:m,label:b},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,LT.isPlainObject)(C)?S=>sa(C,(0,Gt.default)({},S,{theme:Al({theme:S.theme,defaultTheme:n,themeId:t})})):C,w=(C,...S)=>{let T=y(C);const E=S?S.map(y):[];a&&f&&E.push(z=>{const N=Al((0,Gt.default)({},z,{defaultTheme:n,themeId:t}));if(!N.components||!N.components[a]||!N.components[a].styleOverrides)return null;const U=N.components[a].styleOverrides,V={};return Object.entries(U).forEach(([W,K])=>{V[W]=sa(K,(0,Gt.default)({},z,{theme:N}))}),f(z,V)}),a&&!g&&E.push(z=>{var N;const U=Al((0,Gt.default)({},z,{defaultTheme:n,themeId:t})),V=U==null||(N=U.components)==null||(N=N[a])==null?void 0:N.variants;return sa({variants:V},(0,Gt.default)({},z,{theme:U}))}),p||E.push(o);const L=E.length-S.length;if(Array.isArray(C)&&L>0){const z=new Array(L).fill("");T=[...C,...z],T.raw=[...C.raw,...z]}const _=h(T,...E);return s.muiName&&(_.muiName=s.muiName),_};return h.withConfig&&(w.withConfig=h.withConfig),w}}function XT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rp=e=>XT(e)&&e!=="classes",Z=MT({themeId:li,defaultTheme:Kc,rootShouldForwardProp:rp}),YT=["theme"];function KT(e){let{theme:t}=e,n=Y(e,YT);const r=t[li];return k.jsx(WI,$({},n,{themeId:r?li:void 0,theme:r||t}))}function et(e){return UI(e)}function JT(e){return Ve("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],eE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return He(i,JT,r)},tE=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,u,d,f,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),kf=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,v=Y(r,ZT),g=x.isValidElement(i)&&i.type==="svg",p=$({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g}),b={};u||(b.viewBox=f);const m=eE(p);return k.jsxs(tE,$({as:l,className:ie(m.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,v,g&&i.props,{ownerState:p,children:[g?i.props.children:i,d?k.jsx("title",{children:d}):null]}))});kf.muiName="SvgIcon";function So(e,t){function n(r,i){return k.jsx(kf,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=kf.muiName,x.memo(x.forwardRef(n))}const nE={configure:e=>{Gh.configure(e)}},rE=Object.freeze(Object.defineProperty({__proto__:null,capitalize:X,createChainedFunction:dI,createSvgIcon:So,debounce:fI,deprecatedPropType:hI,isMuiElement:pI,ownerDocument:Qi,ownerWindow:mI,requirePropFactory:gI,setRef:za,unstable_ClassNameGenerator:nE,unstable_useEnhancedEffect:js,unstable_useId:Lb,unsupportedProp:yI,useControlled:Nb,useEventCallback:Zt,useForkRef:bt,useIsFocusVisible:Xh},Symbol.toStringTag,{value:"Module"}));function Cf(e,t){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Cf(e,t)}function Zb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cf(e,t)}const Sg={disabled:!1},Va=It.createContext(null);var iE=function(t){return t.scrollTop},rs="unmounted",Hr="exited",Ur="entering",Ci="entered",Sf="exiting",Dn=function(e){Zb(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=Hr,o.appearStatus=Ur):a=Ci:r.unmountOnExit||r.mountOnEnter?a=rs:a=Hr,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===rs?{status:Hr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ur&&s!==Ci&&(o=Ur):(s===Ur||s===Ci)&&(o=Sf)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ur){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ol.findDOMNode(this);s&&iE(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hr&&this.setState({status:rs})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Ol.findDOMNode(this),l],c=a[0],u=a[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!i&&!s||Sg.disabled){this.safeSetState({status:Ci},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ur},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Ci},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Ol.findDOMNode(this);if(!o||Sg.disabled){this.safeSetState({status:Hr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Sf},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Hr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Ol.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],u=a[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===rs)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Y(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return It.createElement(Va.Provider,{value:null},typeof s=="function"?s(i,l):It.cloneElement(It.Children.only(s),l))},t}(It.Component);Dn.contextType=Va;Dn.propTypes={};function ki(){}Dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ki,onEntering:ki,onEntered:ki,onExit:ki,onExiting:ki,onExited:ki};Dn.UNMOUNTED=rs;Dn.EXITED=Hr;Dn.ENTERING=Ur;Dn.ENTERED=Ci;Dn.EXITING=Sf;function oE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ip(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function sE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Ha(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function fE(e){return Ve("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const hE=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],pE=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return He(r,fE,n)},mE=Z("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),gE=Z("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),vE=Z("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),sp=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:u,onEnter:d,onEntered:f,onEntering:v,onExit:g,onExited:p,onExiting:b,orientation:m="vertical",style:h,timeout:y=Kb.standard,TransitionComponent:w=Dn}=r,C=Y(r,hE),S=$({},r,{orientation:m,collapsedSize:l}),T=pE(S),E=np(),L=Fb(),_=x.useRef(null),z=x.useRef(),N=typeof l=="number"?`${l}px`:l,U=m==="horizontal",V=U?"width":"height",W=x.useRef(null),K=bt(n,W),q=G=>me=>{if(G){const ft=W.current;me===void 0?G(ft):G(ft,me)}},P=()=>_.current?_.current[U?"clientWidth":"clientHeight"]:0,M=q((G,me)=>{_.current&&U&&(_.current.style.position="absolute"),G.style[V]=N,d&&d(G,me)}),O=q((G,me)=>{const ft=P();_.current&&U&&(_.current.style.position="");const{duration:Xe,easing:nr}=Ha({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const rr=E.transitions.getAutoHeightDuration(ft);G.style.transitionDuration=`${rr}ms`,z.current=rr}else G.style.transitionDuration=typeof Xe=="string"?Xe:`${Xe}ms`;G.style[V]=`${ft}px`,G.style.transitionTimingFunction=nr,v&&v(G,me)}),D=q((G,me)=>{G.style[V]="auto",f&&f(G,me)}),H=q(G=>{G.style[V]=`${P()}px`,g&&g(G)}),se=q(p),ke=q(G=>{const me=P(),{duration:ft,easing:Xe}=Ha({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const nr=E.transitions.getAutoHeightDuration(me);G.style.transitionDuration=`${nr}ms`,z.current=nr}else G.style.transitionDuration=typeof ft=="string"?ft:`${ft}ms`;G.style[V]=N,G.style.transitionTimingFunction=Xe,b&&b(G)}),tt=G=>{y==="auto"&&L.start(z.current||0,G),i&&i(W.current,G)};return k.jsx(w,$({in:u,onEnter:M,onEntered:D,onEntering:O,onExit:H,onExited:se,onExiting:ke,addEndListener:tt,nodeRef:W,timeout:y==="auto"?null:y},C,{children:(G,me)=>k.jsx(mE,$({as:a,className:ie(T.root,s,{entered:T.entered,exited:!u&&N==="0px"&&T.hidden}[G]),style:$({[U?"minWidth":"minHeight"]:N},h),ref:K},me,{ownerState:$({},S,{state:G}),children:k.jsx(gE,{ownerState:$({},S,{state:G}),className:T.wrapper,ref:_,children:k.jsx(vE,{ownerState:$({},S,{state:G}),className:T.wrapperInner,children:o})})}))}))});sp.muiSupportAuto=!0;function yE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[u,d]=x.useState(!1),f=ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&d(!0),x.useEffect(()=>{if(!l&&a!=null){const p=setTimeout(a,c);return()=>{clearTimeout(p)}}},[a,l,c]),k.jsx("span",{className:f,style:v,children:k.jsx("span",{className:g})})}const qt=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bE=["center","classes","className"];let Zc=e=>e,$g,Ig,Tg,Eg;const $f=550,xE=80,wE=wo($g||($g=Zc` + */var np=Symbol.for("react.element"),rp=Symbol.for("react.portal"),Wc=Symbol.for("react.fragment"),Gc=Symbol.for("react.strict_mode"),qc=Symbol.for("react.profiler"),Qc=Symbol.for("react.provider"),Xc=Symbol.for("react.context"),nI=Symbol.for("react.server_context"),Yc=Symbol.for("react.forward_ref"),Kc=Symbol.for("react.suspense"),Jc=Symbol.for("react.suspense_list"),Zc=Symbol.for("react.memo"),eu=Symbol.for("react.lazy"),rI=Symbol.for("react.offscreen"),Mb;Mb=Symbol.for("react.module.reference");function un(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case np:switch(e=e.type,e){case Wc:case qc:case Gc:case Kc:case Jc:return e;default:switch(e=e&&e.$$typeof,e){case nI:case Xc:case Yc:case eu:case Zc:case Qc:return e;default:return t}}case rp:return t}}}pe.ContextConsumer=Xc;pe.ContextProvider=Qc;pe.Element=np;pe.ForwardRef=Yc;pe.Fragment=Wc;pe.Lazy=eu;pe.Memo=Zc;pe.Portal=rp;pe.Profiler=qc;pe.StrictMode=Gc;pe.Suspense=Kc;pe.SuspenseList=Jc;pe.isAsyncMode=function(){return!1};pe.isConcurrentMode=function(){return!1};pe.isContextConsumer=function(e){return un(e)===Xc};pe.isContextProvider=function(e){return un(e)===Qc};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===np};pe.isForwardRef=function(e){return un(e)===Yc};pe.isFragment=function(e){return un(e)===Wc};pe.isLazy=function(e){return un(e)===eu};pe.isMemo=function(e){return un(e)===Zc};pe.isPortal=function(e){return un(e)===rp};pe.isProfiler=function(e){return un(e)===qc};pe.isStrictMode=function(e){return un(e)===Gc};pe.isSuspense=function(e){return un(e)===Kc};pe.isSuspenseList=function(e){return un(e)===Jc};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wc||e===qc||e===Gc||e===Kc||e===Jc||e===rI||typeof e=="object"&&e!==null&&(e.$$typeof===eu||e.$$typeof===Zc||e.$$typeof===Qc||e.$$typeof===Xc||e.$$typeof===Yc||e.$$typeof===Mb||e.getModuleId!==void 0)};pe.typeOf=un;Db.exports=pe;var fg=Db.exports;const iI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Lb(e){const t=`${e}`.match(iI);return t&&t[1]||""}function Nb(e,t=""){return e.displayName||e.name||Lb(e)||t}function hg(e,t,n){const r=Nb(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function oI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Nb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fg.ForwardRef:return hg(e,e.render,"ForwardRef");case fg.Memo:return hg(e,e.type,"memo");default:return}}}const sI=Object.freeze(Object.defineProperty({__proto__:null,default:oI,getFunctionName:Lb},Symbol.toStringTag,{value:"Module"}));function lI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}Hc();function Wa(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=S({},o),Object.keys(i).forEach(s=>{n[r][s]=Wa(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function aI(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Wa(t.components[n].defaultProps,r)}function cI({props:e,name:t,defaultTheme:n,themeId:r}){let i=Uc(n);return r&&(i=i[r]||i),aI({theme:i,name:t,props:e})}const Hs=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Fb(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const uI=Object.freeze(Object.defineProperty({__proto__:null,default:Fb},Symbol.toStringTag,{value:"Module"}));function dI(e,t=0,n=1){return Fb(e,t,n)}function fI(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jb(e){if(e.type)return e;if(e.charAt(0)==="#")return jb(fI(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(li(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(li(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function hI(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vt(e,t){return e=jb(e),t=dI(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hI(e)}function pI(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function mI(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function gI(e,t){return()=>null}function vI(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Xi(e){return e&&e.ownerDocument||document}function yI(e){return Xi(e).defaultView||window}function bI(e,t){return()=>null}function Ga(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let pg=0;function xI(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(pg+=1,n(`mui-${pg}`))},[t]),r}const mg=Pd.useId;function zb(e){if(mg!==void 0){const t=mg();return e??t}return xI(e)}function wI(e,t,n,r,i){return null}function Bb({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function tn(e){const t=x.useRef(e);return Hs(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function at(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ga(n,t)})},e)}const gg={};function kI(e,t){const n=x.useRef(gg);return n.current===gg&&(n.current=e(t)),n}const CI=[];function SI(e){x.useEffect(e,CI)}class tu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Vb(){const e=kI(tu.create).current;return SI(e.disposeEffect),e}let nu=!0,Rf=!1;const $I=new tu,II={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function TI(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&II[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function EI(e){e.metaKey||e.altKey||e.ctrlKey||(nu=!0)}function sd(){nu=!1}function RI(){this.visibilityState==="hidden"&&Rf&&(nu=!0)}function PI(e){e.addEventListener("keydown",EI,!0),e.addEventListener("mousedown",sd,!0),e.addEventListener("pointerdown",sd,!0),e.addEventListener("touchstart",sd,!0),e.addEventListener("visibilitychange",RI,!0)}function OI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nu||TI(t)}function ip(){const e=x.useCallback(i=>{i!=null&&PI(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Rf=!0,$I.start(100,()=>{Rf=!1}),t.current=!1,!0):!1}function r(i){return OI(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Hb=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function We(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}function _I(e){return typeof e=="string"}function AI(e,t,n){return e===void 0||_I(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function pn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function vg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function DI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=ie(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=S({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=S({},n,i,r);return v.length>0&&(g.className=v),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=pn(S({},i,r)),l=vg(r),a=vg(i),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=S({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=S({},c,n,a,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Vn(e,t,n){return typeof e=="function"?e(t,n):e}const MI=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=J(e,MI),l=o?{}:Vn(r,i),{props:a,internalRef:c}=DI(S({},s,{externalSlotProps:l})),u=at(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return AI(n,S({},a,{ref:u}),i)}const Ub=x.createContext(null);function Wb(){return x.useContext(Ub)}const LI=typeof Symbol=="function"&&Symbol.for,NI=LI?Symbol.for("mui.nested"):"__THEME_NESTED__";function FI(e,t){return typeof t=="function"?t(e):S({},e,t)}function jI(e){const{children:t,theme:n}=e,r=Wb(),i=x.useMemo(()=>{const o=r===null?n:FI(r,n);return o!=null&&(o[NI]=r!==null),o},[n,r]);return k.jsx(Ub.Provider,{value:i,children:t})}const zI=["value"],Gb=x.createContext();function BI(e){let{value:t}=e,n=J(e,zI);return k.jsx(Gb.Provider,S({value:t??!0},n))}const VI=()=>{const e=x.useContext(Gb);return e??!1},qb=x.createContext(void 0);function HI({value:e,children:t}){return k.jsx(qb.Provider,{value:e,children:t})}function UI(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Wa(i.defaultProps,r):!i.styleOverrides&&!i.variants?Wa(i,r):r}function WI({props:e,name:t}){const n=x.useContext(qb);return UI({props:e,name:t,theme:{components:n}})}const yg={};function bg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?S({},t,{[e]:o}):o;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function GI(e){const{children:t,theme:n,themeId:r}=e,i=Ob(yg),o=Wb()||yg,s=bg(r,i,n),l=bg(r,o,n,!0),a=s.direction==="rtl";return k.jsx(jI,{theme:l,children:k.jsx(rl.Provider,{value:s,children:k.jsx(BI,{value:a,children:k.jsx(HI,{value:s==null?void 0:s.components,children:t})})})})}function qI(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ne={},Qb={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qb);var ru=Qb.exports;const QI=tr(jC),XI=tr(uI);var Xb=ru;Object.defineProperty(Ne,"__esModule",{value:!0});var Rr=Ne.alpha=Zb;Ne.blend=sT;Ne.colorChannel=void 0;var op=Ne.darken=ap;Ne.decomposeColor=ln;Ne.emphasize=ex;var YI=Ne.getContrastRatio=tT;Ne.getLuminance=qa;Ne.hexToRgb=Yb;Ne.hslToRgb=Jb;var sp=Ne.lighten=cp;Ne.private_safeAlpha=nT;Ne.private_safeColorChannel=void 0;Ne.private_safeDarken=rT;Ne.private_safeEmphasize=oT;Ne.private_safeLighten=iT;Ne.recomposeColor=Co;Ne.rgbToHex=eT;var xg=Xb(QI),KI=Xb(XI);function lp(e,t=0,n=1){return(0,KI.default)(e,t,n)}function Yb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function JI(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ln(e){if(e.type)return e;if(e.charAt(0)==="#")return ln(Yb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,xg.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,xg.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Kb=e=>{const t=ln(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ne.colorChannel=Kb;const ZI=(e,t)=>{try{return Kb(e)}catch{return e}};Ne.private_safeColorChannel=ZI;function Co(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function eT(e){if(e.indexOf("#")===0)return e;const{values:t}=ln(e);return`#${t.map((n,r)=>JI(r===3?Math.round(255*n):n)).join("")}`}function Jb(e){e=ln(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),Co({type:l,values:a})}function qa(e){e=ln(e);let t=e.type==="hsl"||e.type==="hsla"?ln(Jb(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tT(e,t){const n=qa(e),r=qa(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Zb(e,t){return e=ln(e),t=lp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Co(e)}function nT(e,t,n){try{return Zb(e,t)}catch{return e}}function ap(e,t){if(e=ln(e),t=lp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Co(e)}function rT(e,t,n){try{return ap(e,t)}catch{return e}}function cp(e,t){if(e=ln(e),t=lp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Co(e)}function iT(e,t,n){try{return cp(e,t)}catch{return e}}function ex(e,t=.15){return qa(e)>.5?ap(e,t):cp(e,t)}function oT(e,t,n){try{return ex(e,t)}catch{return e}}function sT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=ln(e),s=ln(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return Co({type:"rgb",values:l})}const lT=["mode","contrastThreshold","tonalOffset"],wg={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:js.white,default:js.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ld={text:{primary:js.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:js.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function kg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=sp(e.main,i):t==="dark"&&(e.dark=op(e.main,o)))}function aT(e="light"){return e==="dark"?{main:xi[200],light:xi[50],dark:xi[400]}:{main:xi[700],light:xi[400],dark:xi[800]}}function cT(e="light"){return e==="dark"?{main:En[200],light:En[50],dark:En[400]}:{main:En[500],light:En[300],dark:En[700]}}function uT(e="light"){return e==="dark"?{main:bi[500],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[400],dark:bi[800]}}function dT(e="light"){return e==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:wi[700],light:wi[500],dark:wi[900]}}function fT(e="light"){return e==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[800],light:ki[500],dark:ki[900]}}function hT(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:"#ed6c02",light:Yo[500],dark:Yo[900]}}function pT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=J(e,lT),o=e.primary||aT(t),s=e.secondary||cT(t),l=e.error||uT(t),a=e.info||dT(t),c=e.success||fT(t),u=e.warning||hT(t);function d(g){return YI(g,ld.text.primary)>=n?ld.text.primary:wg.text.primary}const f=({color:g,name:b,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(g=S({},g),!g.main&&g[p]&&(g.main=g[p]),!g.hasOwnProperty("main"))throw new Error(li(11,b?` (${b})`:"",p));if(typeof g.main!="string")throw new Error(li(12,b?` (${b})`:"",JSON.stringify(g.main)));return kg(g,"light",h,r),kg(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},v={dark:ld,light:wg};return Mn(S({common:S({},js),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:FC,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),i)}const mT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gT(e){return Math.round(e*1e5)/1e5}const Cg={textTransform:"uppercase"},Sg='"Roboto", "Helvetica", "Arial", sans-serif';function vT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Sg,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=J(n,mT),v=i/14,m=d||(p=>`${p/c*v}rem`),g=(p,h,y,w,C)=>S({fontFamily:r,fontWeight:p,fontSize:m(h),lineHeight:y},r===Sg?{letterSpacing:`${gT(w/h)}em`}:{},C,u),b={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,Cg),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Cg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mn(S({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const yT=.2,bT=.14,xT=.12;function be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${yT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xT})`].join(",")}const wT=["none",be(0,2,1,-1,0,1,1,0,0,1,3,0),be(0,3,1,-2,0,2,2,0,0,1,5,0),be(0,3,3,-2,0,3,4,0,0,1,8,0),be(0,2,4,-1,0,4,5,0,0,1,10,0),be(0,3,5,-1,0,5,8,0,0,1,14,0),be(0,3,5,-1,0,6,10,0,0,1,18,0),be(0,4,5,-2,0,7,10,1,0,2,16,1),be(0,5,5,-3,0,8,10,1,0,3,14,2),be(0,5,6,-3,0,9,12,1,0,3,16,2),be(0,6,6,-3,0,10,14,1,0,4,18,3),be(0,6,7,-4,0,11,15,1,0,4,20,3),be(0,7,8,-4,0,12,17,2,0,5,22,4),be(0,7,8,-4,0,13,19,2,0,5,24,4),be(0,7,9,-4,0,14,21,2,0,5,26,4),be(0,8,9,-5,0,15,22,2,0,6,28,5),be(0,8,10,-5,0,16,24,2,0,6,30,5),be(0,8,11,-5,0,17,26,2,0,6,32,5),be(0,9,11,-5,0,18,28,2,0,7,34,6),be(0,9,12,-6,0,19,29,2,0,7,36,6),be(0,10,13,-6,0,20,31,3,0,8,38,7),be(0,10,13,-6,0,21,33,3,0,8,40,7),be(0,10,14,-6,0,22,35,3,0,8,42,7),be(0,11,14,-7,0,23,36,3,0,9,44,8),be(0,11,15,-7,0,24,38,3,0,9,46,8)],kT=["duration","easing","delay"],CT={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $g(e){return`${Math.round(e)}ms`}function ST(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function $T(e){const t=S({},CT,e.easing),n=S({},tx,e.duration);return S({getAutoHeightDuration:ST,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return J(o,kT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:$g(s)} ${l} ${typeof a=="string"?a:$g(a)}`).join(",")}},e,{easing:t,duration:n})}const IT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},TT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function up(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=J(e,TT);if(e.vars)throw new Error(li(18));const l=pT(r),a=Hc(e);let c=Mn(a,{mixins:qI(a.breakpoints,n),palette:l,shadows:wT.slice(),typography:vT(l,o),transitions:$T(i),zIndex:S({},IT)});return c=Mn(c,s),c=t.reduce((u,d)=>Mn(u,d),c),c.unstable_sxConfig=S({},sl,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return ll({sx:d,theme:this})},c}const iu=up();function dp(){const e=Uc(iu);return e[ai]||e}function ET({props:e,name:t}){return cI({props:e,name:t,defaultTheme:iu,themeId:ai})}var al={},ad={exports:{}},Ig;function RT(){return Ig||(Ig=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ad)),ad.exports}const PT=tr(JS),OT=tr(ZS),_T=tr(o$),AT=tr(sI),DT=tr(G$),MT=tr(J$);var So=ru;Object.defineProperty(al,"__esModule",{value:!0});var LT=al.default=XT,ou=al.shouldForwardProp=da;al.systemDefaultTheme=void 0;var Qt=So(bb()),Pf=So(RT()),Tg=HT(PT),NT=OT;So(_T);So(AT);var FT=So(DT),jT=So(MT);const zT=["ownerState"],BT=["variants"],VT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nx=function(r){return r?n:t})(e)}function HT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function UT(e){return Object.keys(e).length===0}function WT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function da(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GT=al.systemDefaultTheme=(0,FT.default)(),qT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function jl({defaultTheme:e,theme:t,themeId:n}){return UT(t)?e:t[n]||t}function QT(e){return e?(t,n)=>n[e]:null}function fa(e,t){let{ownerState:n}=t,r=(0,Pf.default)(t,zT);const i=typeof e=="function"?e((0,Qt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>fa(o,(0,Qt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,Pf.default)(i,BT);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,Qt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(u=>{(n==null?void 0:n[u])!==a.props[u]&&r[u]!==a.props[u]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Qt.default)({ownerState:n},r,n)):a.style))}),l}return i}function XT(e={}){const{themeId:t,defaultTheme:n=GT,rootShouldForwardProp:r=da,slotShouldForwardProp:i=da}=e,o=s=>(0,jT.default)((0,Qt.default)({},s,{theme:jl((0,Qt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,Tg.internal_processStyles)(s,C=>C.filter($=>!($!=null&&$.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=QT(qT(c))}=l,v=(0,Pf.default)(l,VT),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,g=d||!1;let b,p=da;c==="Root"||c==="root"?p=r:c?p=i:WT(s)&&(p=void 0);const h=(0,Tg.default)(s,(0,Qt.default)({shouldForwardProp:p,label:b},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,NT.isPlainObject)(C)?$=>fa(C,(0,Qt.default)({},$,{theme:jl({theme:$.theme,defaultTheme:n,themeId:t})})):C,w=(C,...$)=>{let I=y(C);const P=$?$.map(y):[];a&&f&&P.push(F=>{const V=jl((0,Qt.default)({},F,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[a]||!V.components[a].styleOverrides)return null;const G=V.components[a].styleOverrides,N={};return Object.entries(G).forEach(([U,K])=>{N[U]=fa(K,(0,Qt.default)({},F,{theme:V}))}),f(F,N)}),a&&!m&&P.push(F=>{var V;const G=jl((0,Qt.default)({},F,{defaultTheme:n,themeId:t})),N=G==null||(V=G.components)==null||(V=V[a])==null?void 0:V.variants;return fa({variants:N},(0,Qt.default)({},F,{theme:G}))}),g||P.push(o);const L=P.length-$.length;if(Array.isArray(C)&&L>0){const F=new Array(L).fill("");I=[...C,...F],I.raw=[...C.raw,...F]}const _=h(I,...P);return s.muiName&&(_.muiName=s.muiName),_};return h.withConfig&&(w.withConfig=h.withConfig),w}}function YT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fp=e=>YT(e)&&e!=="classes",Z=LT({themeId:ai,defaultTheme:iu,rootShouldForwardProp:fp}),KT=["theme"];function JT(e){let{theme:t}=e,n=J(e,KT);const r=t[ai];return k.jsx(GI,S({},n,{themeId:r?ai:void 0,theme:r||t}))}function tt(e){return WI(e)}function ZT(e){return Ue("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const eE=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tE=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return We(i,ZT,r)},nE=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,u,d,f,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Of=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,v=J(r,eE),m=x.isValidElement(i)&&i.type==="svg",g=S({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:m}),b={};u||(b.viewBox=f);const p=tE(g);return k.jsxs(nE,S({as:l,className:ie(p.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,v,m&&i.props,{ownerState:g,children:[m?i.props.children:i,d?k.jsx("title",{children:d}):null]}))});Of.muiName="SvgIcon";function $o(e,t){function n(r,i){return k.jsx(Of,S({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Of.muiName,x.memo(x.forwardRef(n))}const rE={configure:e=>{tp.configure(e)}},iE=Object.freeze(Object.defineProperty({__proto__:null,capitalize:X,createChainedFunction:pI,createSvgIcon:$o,debounce:mI,deprecatedPropType:gI,isMuiElement:vI,ownerDocument:Xi,ownerWindow:yI,requirePropFactory:bI,setRef:Ga,unstable_ClassNameGenerator:rE,unstable_useEnhancedEffect:Hs,unstable_useId:zb,unsupportedProp:wI,useControlled:Bb,useEventCallback:tn,useForkRef:at,useIsFocusVisible:ip},Symbol.toStringTag,{value:"Module"}));function _f(e,t){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_f(e,t)}function rx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_f(e,t)}const Eg={disabled:!1},Qa=Et.createContext(null);var oE=function(t){return t.scrollTop},ls="unmounted",Ur="exited",Wr="entering",Si="entered",Af="exiting",Nn=function(e){rx(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=Ur,o.appearStatus=Wr):a=Si:r.unmountOnExit||r.mountOnEnter?a=ls:a=Ur,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===ls?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Wr&&s!==Si&&(o=Wr):(s===Wr||s===Si)&&(o=Af)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Wr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Nl.findDOMNode(this);s&&oE(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:ls})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Nl.findDOMNode(this),l],c=a[0],u=a[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!i&&!s||Eg.disabled){this.safeSetState({status:Si},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Wr},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Si},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Nl.findDOMNode(this);if(!o||Eg.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Af},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Nl.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],u=a[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ls)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=J(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Et.createElement(Qa.Provider,{value:null},typeof s=="function"?s(i,l):Et.cloneElement(Et.Children.only(s),l))},t}(Et.Component);Nn.contextType=Qa;Nn.propTypes={};function Ci(){}Nn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ci,onEntering:Ci,onEntered:Ci,onExit:Ci,onExiting:Ci,onExited:Ci};Nn.UNMOUNTED=ls;Nn.EXITED=Ur;Nn.ENTERING=Wr;Nn.ENTERED=Si;Nn.EXITING=Af;function sE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hp(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function lE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Xa(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function hE(e){return Ue("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const pE=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],mE=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return We(r,hE,n)},gE=Z("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),vE=Z("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),yE=Z("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),mp=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:u,onEnter:d,onEntered:f,onEntering:v,onExit:m,onExited:g,onExiting:b,orientation:p="vertical",style:h,timeout:y=tx.standard,TransitionComponent:w=Nn}=r,C=J(r,pE),$=S({},r,{orientation:p,collapsedSize:l}),I=mE($),P=dp(),L=Vb(),_=x.useRef(null),F=x.useRef(),V=typeof l=="number"?`${l}px`:l,G=p==="horizontal",N=G?"width":"height",U=x.useRef(null),K=at(n,U),H=E=>D=>{if(E){const q=U.current;D===void 0?E(q):E(q,D)}},R=()=>_.current?_.current[G?"clientWidth":"clientHeight"]:0,M=H((E,D)=>{_.current&&G&&(_.current.style.position="absolute"),E.style[N]=V,d&&d(E,D)}),W=H((E,D)=>{const q=R();_.current&&G&&(_.current.style.position="");const{duration:ae,easing:pt}=Xa({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const Fn=P.transitions.getAutoHeightDuration(q);E.style.transitionDuration=`${Fn}ms`,F.current=Fn}else E.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;E.style[N]=`${q}px`,E.style.transitionTimingFunction=pt,v&&v(E,D)}),se=H((E,D)=>{E.style[N]="auto",f&&f(E,D)}),le=H(E=>{E.style[N]=`${R()}px`,m&&m(E)}),ht=H(g),me=H(E=>{const D=R(),{duration:q,easing:ae}=Xa({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const pt=P.transitions.getAutoHeightDuration(D);E.style.transitionDuration=`${pt}ms`,F.current=pt}else E.style.transitionDuration=typeof q=="string"?q:`${q}ms`;E.style[N]=V,E.style.transitionTimingFunction=ae,b&&b(E)}),Be=E=>{y==="auto"&&L.start(F.current||0,E),i&&i(U.current,E)};return k.jsx(w,S({in:u,onEnter:M,onEntered:se,onEntering:W,onExit:le,onExited:ht,onExiting:me,addEndListener:Be,nodeRef:U,timeout:y==="auto"?null:y},C,{children:(E,D)=>k.jsx(gE,S({as:a,className:ie(I.root,s,{entered:I.entered,exited:!u&&V==="0px"&&I.hidden}[E]),style:S({[G?"minWidth":"minHeight"]:V},h),ref:K},D,{ownerState:S({},$,{state:E}),children:k.jsx(vE,{ownerState:S({},$,{state:E}),className:I.wrapper,ref:_,children:k.jsx(yE,{ownerState:S({},$,{state:E}),className:I.wrapperInner,children:o})})}))}))});mp.muiSupportAuto=!0;function bE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[u,d]=x.useState(!1),f=ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},m=ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&d(!0),x.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,c);return()=>{clearTimeout(g)}}},[a,l,c]),k.jsx("span",{className:f,style:v,children:k.jsx("span",{className:m})})}const Xt=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xE=["center","classes","className"];let su=e=>e,Rg,Pg,Og,_g;const Df=550,wE=80,kE=ko(Rg||(Rg=su` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),kE=wo(Ig||(Ig=Zc` +`)),CE=ko(Pg||(Pg=su` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),CE=wo(Tg||(Tg=Zc` +`)),SE=ko(Og||(Og=su` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),SE=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$E=Z(yE,{name:"MuiTouchRipple",slot:"Ripple"})(Eg||(Eg=Zc` +`)),$E=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),IE=Z(bE,{name:"MuiTouchRipple",slot:"Ripple"})(_g||(_g=su` opacity: 0; position: absolute; @@ -125,7 +125,7 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),qt.rippleVisible,wE,$f,({theme:e})=>e.transitions.easing.easeInOut,qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qt.child,qt.childLeaving,kE,$f,({theme:e})=>e.transitions.easing.easeInOut,qt.childPulsate,CE,({theme:e})=>e.transitions.easing.easeInOut),IE=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=Y(r,bE),[a,c]=x.useState([]),u=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=x.useRef(!1),v=Fb(),g=x.useRef(null),p=x.useRef(null),b=x.useCallback(w=>{const{pulsate:C,rippleX:S,rippleY:T,rippleSize:E,cb:L}=w;c(_=>[..._,k.jsx($E,{classes:{ripple:ie(o.ripple,qt.ripple),rippleVisible:ie(o.rippleVisible,qt.rippleVisible),ripplePulsate:ie(o.ripplePulsate,qt.ripplePulsate),child:ie(o.child,qt.child),childLeaving:ie(o.childLeaving,qt.childLeaving),childPulsate:ie(o.childPulsate,qt.childPulsate)},timeout:$f,pulsate:C,rippleX:S,rippleY:T,rippleSize:E},u.current)]),u.current+=1,d.current=L},[o]),m=x.useCallback((w={},C={},S=()=>{})=>{const{pulsate:T=!1,center:E=i||C.pulsate,fakeElement:L=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const _=L?null:p.current,z=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,U,V;if(E||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)N=Math.round(z.width/2),U=Math.round(z.height/2);else{const{clientX:W,clientY:K}=w.touches&&w.touches.length>0?w.touches[0]:w;N=Math.round(W-z.left),U=Math.round(K-z.top)}if(E)V=Math.sqrt((2*z.width**2+z.height**2)/3),V%2===0&&(V+=1);else{const W=Math.max(Math.abs((_?_.clientWidth:0)-N),N)*2+2,K=Math.max(Math.abs((_?_.clientHeight:0)-U),U)*2+2;V=Math.sqrt(W**2+K**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{b({pulsate:T,rippleX:N,rippleY:U,rippleSize:V,cb:S})},v.start(xE,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:T,rippleX:N,rippleY:U,rippleSize:V,cb:S})},[i,b,v]),h=x.useCallback(()=>{m({},{pulsate:!0})},[m]),y=x.useCallback((w,C)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{y(w,C)});return}g.current=null,c(S=>S.length>0?S.slice(1):S),d.current=C},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:m,stop:y}),[h,m,y]),k.jsx(SE,$({className:ie(qt.root,o.root,s),ref:p},l,{children:k.jsx(op,{component:null,exit:!0,children:a})}))});function TE(e){return Ve("MuiButtonBase",e)}const EE=je("MuiButtonBase",["root","disabled","focusVisible"]),RE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],PE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=He({root:["root",t&&"disabled",n&&"focusVisible"]},TE,i);return n&&r&&(s.root+=` ${r}`),s},OE=Z("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${EE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_E=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:g,onClick:p,onContextMenu:b,onDragLeave:m,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:C,onMouseDown:S,onMouseLeave:T,onMouseUp:E,onTouchEnd:L,onTouchMove:_,onTouchStart:z,tabIndex:N=0,TouchRippleProps:U,touchRippleRef:V,type:W}=r,K=Y(r,RE),q=x.useRef(null),P=x.useRef(null),M=bt(P,V),{isFocusVisibleRef:O,onFocus:D,onBlur:H,ref:se}=Xh(),[ke,tt]=x.useState(!1);c&&ke&&tt(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{tt(!0),q.current.focus()}}),[]);const[G,me]=x.useState(!1);x.useEffect(()=>{me(!0)},[]);const ft=G&&!u&&!c;x.useEffect(()=>{ke&&f&&!u&&G&&P.current.pulsate()},[u,f,ke,G]);function Xe(J,Lp,lw=d){return Zt(Np=>(Lp&&Lp(Np),!lw&&P.current&&P.current[J](Np),!0))}const nr=Xe("start",S),rr=Xe("stop",b),mu=Xe("stop",m),gu=Xe("stop",E),vu=Xe("stop",J=>{ke&&J.preventDefault(),T&&T(J)}),Do=Xe("start",z),yu=Xe("stop",L),bu=Xe("stop",_),xu=Xe("stop",J=>{H(J),O.current===!1&&tt(!1),g&&g(J)},!1),Mo=Zt(J=>{q.current||(q.current=J.currentTarget),D(J),O.current===!0&&(tt(!0),y&&y(J)),h&&h(J)}),Lo=()=>{const J=q.current;return a&&a!=="button"&&!(J.tagName==="A"&&J.href)},No=x.useRef(!1),wu=Zt(J=>{f&&!No.current&&ke&&P.current&&J.key===" "&&(No.current=!0,P.current.stop(J,()=>{P.current.start(J)})),J.target===J.currentTarget&&Lo()&&J.key===" "&&J.preventDefault(),w&&w(J),J.target===J.currentTarget&&Lo()&&J.key==="Enter"&&!c&&(J.preventDefault(),p&&p(J))}),ku=Zt(J=>{f&&J.key===" "&&P.current&&ke&&!J.defaultPrevented&&(No.current=!1,P.current.stop(J,()=>{P.current.pulsate(J)})),C&&C(J),p&&J.target===J.currentTarget&&Lo()&&J.key===" "&&!J.defaultPrevented&&p(J)});let gi=a;gi==="button"&&(K.href||K.to)&&(gi=v);const ue={};gi==="button"?(ue.type=W===void 0?"button":W,ue.disabled=c):(!K.href&&!K.to&&(ue.role="button"),c&&(ue["aria-disabled"]=c));const Dp=bt(n,se,q),Mp=$({},r,{centerRipple:o,component:a,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:N,focusVisible:ke}),sw=PE(Mp);return k.jsxs(OE,$({as:gi,className:ie(sw.root,l),ownerState:Mp,onBlur:xu,onClick:p,onContextMenu:rr,onFocus:Mo,onKeyDown:wu,onKeyUp:ku,onMouseDown:nr,onMouseLeave:vu,onMouseUp:gu,onDragLeave:mu,onTouchEnd:yu,onTouchMove:bu,onTouchStart:Do,ref:Dp,tabIndex:c?-1:N,type:W},ue,K,{children:[s,ft?k.jsx(IE,$({ref:M,center:o},U)):null]}))});function AE(e){return Ve("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const DE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ME=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return He(l,AE,s)},LE=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Rg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FE=e=>NE[e]||e,en=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTypography"}),i=FE(r.color),o=Wh($({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:v=Rg}=o,g=Y(o,DE),p=$({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:v}),b=a||(d?"p":v[f]||Rg[f])||"span",m=ME(p);return k.jsx(LE,$({as:b,ref:n,ownerState:p,className:ie(m.root,l)},g))}),jE=x.createContext(void 0);function zE(){return x.useContext(jE)}function BE(e){return k.jsx(q$,$({},e,{defaultTheme:Kc,themeId:li}))}const VE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],HE={entering:{opacity:1},entered:{opacity:1}},UE=x.forwardRef(function(t,n){const r=np(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:v,onExited:g,onExiting:p,style:b,timeout:m=i,TransitionComponent:h=Dn}=t,y=Y(t,VE),w=x.useRef(null),C=bt(w,l.ref,n),S=V=>W=>{if(V){const K=w.current;W===void 0?V(K):V(K,W)}},T=S(f),E=S((V,W)=>{dE(V);const K=Ha({style:b,timeout:m,easing:a},{mode:"enter"});V.style.webkitTransition=r.transitions.create("opacity",K),V.style.transition=r.transitions.create("opacity",K),u&&u(V,W)}),L=S(d),_=S(p),z=S(V=>{const W=Ha({style:b,timeout:m,easing:a},{mode:"exit"});V.style.webkitTransition=r.transitions.create("opacity",W),V.style.transition=r.transitions.create("opacity",W),v&&v(V)}),N=S(g),U=V=>{o&&o(w.current,V)};return k.jsx(h,$({appear:s,in:c,nodeRef:w,onEnter:E,onEntered:L,onEntering:T,onExit:z,onExited:N,onExiting:_,addEndListener:U,timeout:m},y,{children:(V,W)=>x.cloneElement(l,$({style:$({opacity:0,visibility:V==="exited"&&!c?"hidden":void 0},HE[V],b,l.props.style),ref:C},W))}))});function WE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=jb({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}function GE(e){return Ve("MuiBadge",e)}const or=je("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),qE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ed=10,td=4,QE=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return He(l,GE,s)},XE=Z("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),YE=Z("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ed*2,lineHeight:1,padding:"0 6px",height:ed*2,borderRadius:ed,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:td,height:td*2,minWidth:td*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${or.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${or.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${or.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${or.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${or.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${or.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${or.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${or.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),KE=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=et({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:f,components:v={},componentsProps:g={},children:p,overlap:b="rectangular",color:m="default",invisible:h=!1,max:y=99,badgeContent:w,slots:C,slotProps:S,showZero:T=!1,variant:E="standard"}=c,L=Y(c,qE),{badgeContent:_,invisible:z,max:N,displayValue:U}=WE({max:y,invisible:h,badgeContent:w,showZero:T}),V=jb({anchorOrigin:u,color:m,overlap:b,variant:E,badgeContent:w}),W=z||_==null&&E!=="dot",{color:K=m,overlap:q=b,anchorOrigin:P=u,variant:M=E}=W?V:c,O=M!=="dot"?U:void 0,D=$({},c,{badgeContent:_,invisible:W,max:N,displayValue:O,showZero:T,anchorOrigin:P,color:K,overlap:q,variant:M}),H=QE(D),se=(r=(i=C==null?void 0:C.root)!=null?i:v.Root)!=null?r:XE,ke=(o=(s=C==null?void 0:C.badge)!=null?s:v.Badge)!=null?o:YE,tt=(l=S==null?void 0:S.root)!=null?l:g.root,G=(a=S==null?void 0:S.badge)!=null?a:g.badge,me=hg({elementType:se,externalSlotProps:tt,externalForwardedProps:L,additionalProps:{ref:n,as:f},ownerState:D,className:ie(tt==null?void 0:tt.className,H.root,d)}),ft=hg({elementType:ke,externalSlotProps:G,ownerState:D,className:ie(H.badge,G==null?void 0:G.className)});return k.jsxs(se,$({},me,{children:[p,k.jsx(ke,$({},ft,{children:O}))]}))}),JE=je("MuiBox",["root"]),ZE=tp(),gt=Z$({themeId:li,defaultTheme:ZE,defaultClassName:JE.root,generateClassName:Gh.generate});function eR(e){return Ve("PrivateSwitchBase",e)}je("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return He(o,eR,t)},rR=Z(_E)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),iR=Z("input",{shouldForwardProp:rp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ex=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:v,inputRef:g,name:p,onBlur:b,onChange:m,onFocus:h,readOnly:y,required:w=!1,tabIndex:C,type:S,value:T}=t,E=Y(t,tR),[L,_]=Nb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),z=zE(),N=M=>{h&&h(M),z&&z.onFocus&&z.onFocus(M)},U=M=>{b&&b(M),z&&z.onBlur&&z.onBlur(M)},V=M=>{if(M.nativeEvent.defaultPrevented)return;const O=M.target.checked;_(O),m&&m(M,O)};let W=a;z&&typeof W>"u"&&(W=z.disabled);const K=S==="checkbox"||S==="radio",q=$({},t,{checked:L,disabled:W,disableFocusRipple:c,edge:u}),P=nR(q);return k.jsxs(rR,$({component:"span",className:ie(P.root,s),centerRipple:!0,focusRipple:!c,disabled:W,tabIndex:null,role:void 0,onFocus:N,onBlur:U,ownerState:q,ref:n},E,{children:[k.jsx(iR,$({autoFocus:r,checked:i,defaultChecked:l,className:P.input,disabled:W,id:K?f:void 0,name:p,onChange:V,readOnly:y,ref:g,required:w,ownerState:q,tabIndex:C,type:S},S==="checkbox"&&T===void 0?{}:{value:T},v)),L?o:d]}))}),oR=So(k.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),sR=So(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lR=So(k.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function aR(e){return Ve("MuiCheckbox",e)}const nd=je("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cR=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uR=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${X(r)}`,`size${X(i)}`]},s=He(o,aR,t);return $({},t,s)},dR=Z(ex,{shouldForwardProp:e=>rp(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${X(n.size)}`],n.color!=="default"&&t[`color${X(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${nd.checked}, &.${nd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),fR=k.jsx(sR,{}),hR=k.jsx(oR,{}),pR=k.jsx(lR,{}),tx=x.forwardRef(function(t,n){var r,i;const o=et({props:t,name:"MuiCheckbox"}),{checkedIcon:s=fR,color:l="primary",icon:a=hR,indeterminate:c=!1,indeterminateIcon:u=pR,inputProps:d,size:f="medium",className:v}=o,g=Y(o,cR),p=c?u:a,b=c?u:s,m=$({},o,{color:l,indeterminate:c,size:f}),h=uR(m);return k.jsx(dR,$({type:"checkbox",inputProps:$({"data-indeterminate":c},d),icon:x.cloneElement(p,{fontSize:(r=p.props.fontSize)!=null?r:f}),checkedIcon:x.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:f}),ownerState:m,ref:n,className:ie(h.root,v)},g,{classes:h}))});function mR(e){return Ve("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gR=["className","color","disableShrink","size","style","thickness","value","variant"];let eu=e=>e,Pg,Og,_g,Ag;const sr=44,vR=wo(Pg||(Pg=eu` +`),Xt.rippleVisible,kE,Df,({theme:e})=>e.transitions.easing.easeInOut,Xt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xt.child,Xt.childLeaving,CE,Df,({theme:e})=>e.transitions.easing.easeInOut,Xt.childPulsate,SE,({theme:e})=>e.transitions.easing.easeInOut),TE=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=J(r,xE),[a,c]=x.useState([]),u=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=x.useRef(!1),v=Vb(),m=x.useRef(null),g=x.useRef(null),b=x.useCallback(w=>{const{pulsate:C,rippleX:$,rippleY:I,rippleSize:P,cb:L}=w;c(_=>[..._,k.jsx(IE,{classes:{ripple:ie(o.ripple,Xt.ripple),rippleVisible:ie(o.rippleVisible,Xt.rippleVisible),ripplePulsate:ie(o.ripplePulsate,Xt.ripplePulsate),child:ie(o.child,Xt.child),childLeaving:ie(o.childLeaving,Xt.childLeaving),childPulsate:ie(o.childPulsate,Xt.childPulsate)},timeout:Df,pulsate:C,rippleX:$,rippleY:I,rippleSize:P},u.current)]),u.current+=1,d.current=L},[o]),p=x.useCallback((w={},C={},$=()=>{})=>{const{pulsate:I=!1,center:P=i||C.pulsate,fakeElement:L=!1}=C;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const _=L?null:g.current,F=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,G,N;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)V=Math.round(F.width/2),G=Math.round(F.height/2);else{const{clientX:U,clientY:K}=w.touches&&w.touches.length>0?w.touches[0]:w;V=Math.round(U-F.left),G=Math.round(K-F.top)}if(P)N=Math.sqrt((2*F.width**2+F.height**2)/3),N%2===0&&(N+=1);else{const U=Math.max(Math.abs((_?_.clientWidth:0)-V),V)*2+2,K=Math.max(Math.abs((_?_.clientHeight:0)-G),G)*2+2;N=Math.sqrt(U**2+K**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{b({pulsate:I,rippleX:V,rippleY:G,rippleSize:N,cb:$})},v.start(wE,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:I,rippleX:V,rippleY:G,rippleSize:N,cb:$})},[i,b,v]),h=x.useCallback(()=>{p({},{pulsate:!0})},[p]),y=x.useCallback((w,C)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,v.start(0,()=>{y(w,C)});return}m.current=null,c($=>$.length>0?$.slice(1):$),d.current=C},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:y}),[h,p,y]),k.jsx($E,S({className:ie(Xt.root,o.root,s),ref:g},l,{children:k.jsx(pp,{component:null,exit:!0,children:a})}))});function EE(e){return Ue("MuiButtonBase",e)}const RE=ze("MuiButtonBase",["root","disabled","focusVisible"]),PE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],OE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=We({root:["root",t&&"disabled",n&&"focusVisible"]},EE,i);return n&&r&&(s.root+=` ${r}`),s},_E=Z("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${RE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),AE=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:p,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:C,onMouseDown:$,onMouseLeave:I,onMouseUp:P,onTouchEnd:L,onTouchMove:_,onTouchStart:F,tabIndex:V=0,TouchRippleProps:G,touchRippleRef:N,type:U}=r,K=J(r,PE),H=x.useRef(null),R=x.useRef(null),M=at(R,N),{isFocusVisibleRef:W,onFocus:se,onBlur:le,ref:ht}=ip(),[me,Be]=x.useState(!1);c&&me&&Be(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{Be(!0),H.current.focus()}}),[]);const[E,D]=x.useState(!1);x.useEffect(()=>{D(!0)},[]);const q=E&&!u&&!c;x.useEffect(()=>{me&&f&&!u&&E&&R.current.pulsate()},[u,f,me,E]);function ae(Y,zo,bl=d){return tn(Bo=>(zo&&zo(Bo),!bl&&R.current&&R.current[Y](Bo),!0))}const pt=ae("start",$),Fn=ae("stop",b),ku=ae("stop",p),Cu=ae("stop",P),Mo=ae("stop",Y=>{me&&Y.preventDefault(),I&&I(Y)}),Su=ae("start",F),$u=ae("stop",L),Iu=ae("stop",_),Lo=ae("stop",Y=>{le(Y),W.current===!1&&Be(!1),m&&m(Y)},!1),Tu=tn(Y=>{H.current||(H.current=Y.currentTarget),se(Y),W.current===!0&&(Be(!0),y&&y(Y)),h&&h(Y)}),No=()=>{const Y=H.current;return a&&a!=="button"&&!(Y.tagName==="A"&&Y.href)},Fo=x.useRef(!1),jo=tn(Y=>{f&&!Fo.current&&me&&R.current&&Y.key===" "&&(Fo.current=!0,R.current.stop(Y,()=>{R.current.start(Y)})),Y.target===Y.currentTarget&&No()&&Y.key===" "&&Y.preventDefault(),w&&w(Y),Y.target===Y.currentTarget&&No()&&Y.key==="Enter"&&!c&&(Y.preventDefault(),g&&g(Y))}),Eu=tn(Y=>{f&&Y.key===" "&&R.current&&me&&!Y.defaultPrevented&&(Fo.current=!1,R.current.stop(Y,()=>{R.current.pulsate(Y)})),C&&C(Y),g&&Y.target===Y.currentTarget&&No()&&Y.key===" "&&!Y.defaultPrevented&&g(Y)});let vi=a;vi==="button"&&(K.href||K.to)&&(vi=v);const zr={};vi==="button"?(zr.type=U===void 0?"button":U,zr.disabled=c):(!K.href&&!K.to&&(zr.role="button"),c&&(zr["aria-disabled"]=c));const Ru=at(n,ht,H),yl=S({},r,{centerRipple:o,component:a,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:V,focusVisible:me}),Pu=OE(yl);return k.jsxs(_E,S({as:vi,className:ie(Pu.root,l),ownerState:yl,onBlur:Lo,onClick:g,onContextMenu:Fn,onFocus:Tu,onKeyDown:jo,onKeyUp:Eu,onMouseDown:pt,onMouseLeave:Mo,onMouseUp:Cu,onDragLeave:ku,onTouchEnd:$u,onTouchMove:Iu,onTouchStart:Su,ref:Ru,tabIndex:c?-1:V,type:U},zr,K,{children:[s,q?k.jsx(TE,S({ref:M,center:o},G)):null]}))});function DE(e){return Ue("MuiTypography",e)}ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ME=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],LE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return We(l,DE,s)},NE=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ag={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},FE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jE=e=>FE[e]||e,nn=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTypography"}),i=jE(r.color),o=ep(S({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:v=Ag}=o,m=J(o,ME),g=S({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:v}),b=a||(d?"p":v[f]||Ag[f])||"span",p=LE(g);return k.jsx(NE,S({as:b,ref:n,ownerState:g,className:ie(p.root,l)},m))}),zE=x.createContext(void 0);function BE(){return x.useContext(zE)}function VE(e){return k.jsx(X$,S({},e,{defaultTheme:iu,themeId:ai}))}const HE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],UE={entering:{opacity:1},entered:{opacity:1}},WE=x.forwardRef(function(t,n){const r=dp(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:v,onExited:m,onExiting:g,style:b,timeout:p=i,TransitionComponent:h=Nn}=t,y=J(t,HE),w=x.useRef(null),C=at(w,l.ref,n),$=N=>U=>{if(N){const K=w.current;U===void 0?N(K):N(K,U)}},I=$(f),P=$((N,U)=>{fE(N);const K=Xa({style:b,timeout:p,easing:a},{mode:"enter"});N.style.webkitTransition=r.transitions.create("opacity",K),N.style.transition=r.transitions.create("opacity",K),u&&u(N,U)}),L=$(d),_=$(g),F=$(N=>{const U=Xa({style:b,timeout:p,easing:a},{mode:"exit"});N.style.webkitTransition=r.transitions.create("opacity",U),N.style.transition=r.transitions.create("opacity",U),v&&v(N)}),V=$(m),G=N=>{o&&o(w.current,N)};return k.jsx(h,S({appear:s,in:c,nodeRef:w,onEnter:P,onEntered:L,onEntering:I,onExit:F,onExited:V,onExiting:_,addEndListener:G,timeout:p},y,{children:(N,U)=>x.cloneElement(l,S({style:S({opacity:0,visibility:N==="exited"&&!c?"hidden":void 0},UE[N],b,l.props.style),ref:C},U))}))});function GE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Hb({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}function qE(e){return Ue("MuiBadge",e)}const lr=ze("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),QE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],cd=10,ud=4,XE=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return We(l,qE,s)},YE=Z("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KE=Z("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:cd*2,lineHeight:1,padding:"0 6px",height:cd*2,borderRadius:cd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:ud,height:ud*2,minWidth:ud*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${lr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),JE=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=tt({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:f,components:v={},componentsProps:m={},children:g,overlap:b="rectangular",color:p="default",invisible:h=!1,max:y=99,badgeContent:w,slots:C,slotProps:$,showZero:I=!1,variant:P="standard"}=c,L=J(c,QE),{badgeContent:_,invisible:F,max:V,displayValue:G}=GE({max:y,invisible:h,badgeContent:w,showZero:I}),N=Hb({anchorOrigin:u,color:p,overlap:b,variant:P,badgeContent:w}),U=F||_==null&&P!=="dot",{color:K=p,overlap:H=b,anchorOrigin:R=u,variant:M=P}=U?N:c,W=M!=="dot"?G:void 0,se=S({},c,{badgeContent:_,invisible:U,max:V,displayValue:W,showZero:I,anchorOrigin:R,color:K,overlap:H,variant:M}),le=XE(se),ht=(r=(i=C==null?void 0:C.root)!=null?i:v.Root)!=null?r:YE,me=(o=(s=C==null?void 0:C.badge)!=null?s:v.Badge)!=null?o:KE,Be=(l=$==null?void 0:$.root)!=null?l:m.root,E=(a=$==null?void 0:$.badge)!=null?a:m.badge,D=Gn({elementType:ht,externalSlotProps:Be,externalForwardedProps:L,additionalProps:{ref:n,as:f},ownerState:se,className:ie(Be==null?void 0:Be.className,le.root,d)}),q=Gn({elementType:me,externalSlotProps:E,ownerState:se,className:ie(le.badge,E==null?void 0:E.className)});return k.jsxs(ht,S({},D,{children:[g,k.jsx(me,S({},q,{children:W}))]}))}),ZE=ze("MuiBox",["root"]),eR=up(),bt=tI({themeId:ai,defaultTheme:eR,defaultClassName:ZE.root,generateClassName:tp.generate});function tR(e){return Ue("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],rR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return We(o,tR,t)},iR=Z(AE)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),oR=Z("input",{shouldForwardProp:fp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ix=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:v,inputRef:m,name:g,onBlur:b,onChange:p,onFocus:h,readOnly:y,required:w=!1,tabIndex:C,type:$,value:I}=t,P=J(t,nR),[L,_]=Bb({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),F=BE(),V=M=>{h&&h(M),F&&F.onFocus&&F.onFocus(M)},G=M=>{b&&b(M),F&&F.onBlur&&F.onBlur(M)},N=M=>{if(M.nativeEvent.defaultPrevented)return;const W=M.target.checked;_(W),p&&p(M,W)};let U=a;F&&typeof U>"u"&&(U=F.disabled);const K=$==="checkbox"||$==="radio",H=S({},t,{checked:L,disabled:U,disableFocusRipple:c,edge:u}),R=rR(H);return k.jsxs(iR,S({component:"span",className:ie(R.root,s),centerRipple:!0,focusRipple:!c,disabled:U,tabIndex:null,role:void 0,onFocus:V,onBlur:G,ownerState:H,ref:n},P,{children:[k.jsx(oR,S({autoFocus:r,checked:i,defaultChecked:l,className:R.input,disabled:U,id:K?f:void 0,name:g,onChange:N,readOnly:y,ref:m,required:w,ownerState:H,tabIndex:C,type:$},$==="checkbox"&&I===void 0?{}:{value:I},v)),L?o:d]}))}),sR=$o(k.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),lR=$o(k.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),aR=$o(k.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function cR(e){return Ue("MuiCheckbox",e)}const dd=ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uR=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dR=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${X(r)}`,`size${X(i)}`]},s=We(o,cR,t);return S({},t,s)},fR=Z(ix,{shouldForwardProp:e=>fp(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${X(n.size)}`],n.color!=="default"&&t[`color${X(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dd.checked}, &.${dd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${dd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),hR=k.jsx(lR,{}),pR=k.jsx(sR,{}),mR=k.jsx(aR,{}),ox=x.forwardRef(function(t,n){var r,i;const o=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=hR,color:l="primary",icon:a=pR,indeterminate:c=!1,indeterminateIcon:u=mR,inputProps:d,size:f="medium",className:v}=o,m=J(o,uR),g=c?u:a,b=c?u:s,p=S({},o,{color:l,indeterminate:c,size:f}),h=dR(p);return k.jsx(fR,S({type:"checkbox",inputProps:S({"data-indeterminate":c},d),icon:x.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:x.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:f}),ownerState:p,ref:n,className:ie(h.root,v)},m,{classes:h}))});function gR(e){return Ue("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vR=["className","color","disableShrink","size","style","thickness","value","variant"];let lu=e=>e,Dg,Mg,Lg,Ng;const ar=44,yR=ko(Dg||(Dg=lu` 0% { transform: rotate(0deg); } @@ -133,7 +133,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),yR=wo(Og||(Og=eu` +`)),bR=ko(Mg||(Mg=lu` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -148,48 +148,48 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),bR=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return He(o,mR,t)},xR=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Oc(_g||(_g=eu` +`)),xR=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return We(o,gR,t)},wR=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Nc(Lg||(Lg=lu` animation: ${0} 1.4s linear infinite; - `),vR)),wR=Z("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),kR=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Oc(Ag||(Ag=eu` + `),yR)),kR=Z("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),CR=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Nc(Ng||(Ng=lu` animation: ${0} 1.4s ease-in-out infinite; - `),yR)),Ua=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,f=Y(r,gR),v=$({},r,{color:o,disableShrink:s,size:l,thickness:c,value:u,variant:d}),g=bR(v),p={},b={},m={};if(d==="determinate"){const h=2*Math.PI*((sr-c)/2);p.strokeDasharray=h.toFixed(3),m["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return k.jsx(xR,$({className:ie(g.root,i),style:$({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},m,f,{children:k.jsx(wR,{className:g.svg,ownerState:v,viewBox:`${sr/2} ${sr/2} ${sr} ${sr}`,children:k.jsx(kR,{className:g.circle,style:p,ownerState:v,cx:sr,cy:sr,r:(sr-c)/2,fill:"none",strokeWidth:c})})}))});function Dg(e){return e.substring(2).toLowerCase()}function CR(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const u=bt(t.ref,l),d=Zt(g=>{const p=c.current;c.current=!1;const b=Qi(l.current);if(!a.current||!l.current||"clientX"in g&&CR(g,b))return;if(s.current){s.current=!1;return}let m;g.composedPath?m=g.composedPath().indexOf(l.current)>-1:m=!b.documentElement.contains(g.target)||l.current.contains(g.target),!m&&(n||!p)&&i(g)}),f=g=>p=>{c.current=!0;const b=t.props[g];b&&b(p)},v={ref:u};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const g=Dg(o),p=Qi(l.current),b=()=>{s.current=!0};return p.addEventListener(g,d),p.addEventListener("touchmove",b),()=>{p.removeEventListener(g,d),p.removeEventListener("touchmove",b)}}},[d,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const g=Dg(r),p=Qi(l.current);return p.addEventListener(g,d),()=>{p.removeEventListener(g,d)}}},[d,r]),k.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const $R=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),IR=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),TR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=$({html:$R(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},IR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function ER(e){const t=et({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return k.jsxs(x.Fragment,{children:[k.jsx(BE,{styles:i=>TR(i,r)}),n]})}function RR(e){return Ve("MuiLink",e)}const PR=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},OR=e=>nx[e]||e,_R=({theme:e,ownerState:t})=>{const n=OR(t.color),r=uo(e,`palette.${n}`,!1)||t.color,i=uo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Rr(r,.4)},AR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],DR=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return He(o,RR,t)},MR=Z(en,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:_R({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${PR.focusVisible}`]:{outline:"auto"}})),Xi=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:f}=r,v=Y(r,AR),{isFocusVisibleRef:g,onBlur:p,onFocus:b,ref:m}=Xh(),[h,y]=x.useState(!1),w=bt(n,m),C=L=>{p(L),g.current===!1&&y(!1),l&&l(L)},S=L=>{b(L),g.current===!0&&y(!0),a&&a(L)},T=$({},r,{color:o,component:s,focusVisible:h,underline:u,variant:d}),E=DR(T);return k.jsx(MR,$({color:o,className:ie(E.root,i),classes:c,component:s,onBlur:C,onFocus:S,ref:w,ownerState:T,variant:d,sx:[...Object.keys(nx).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function LR(e){return Ve("MuiSwitch",e)}const ht=je("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),NR=["className","color","edge","size","sx"],FR=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=He(l,LR,t);return $({},t,a)},jR=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ht.thumb}`]:{width:16,height:16},[`& .${ht.switchBase}`]:{padding:4,[`&.${ht.checked}`]:{transform:"translateX(16px)"}}}}]}),zR=Z(ex,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ht.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ht.checked}`]:{transform:"translateX(20px)"},[`&.${ht.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ht.checked} + .${ht.track}`]:{opacity:.5},[`&.${ht.disabled} + .${ht.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ht.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ht.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ht.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Kh(e.palette[t].main,.62):Yh(e.palette[t].main,.55)}`}},[`&.${ht.checked} + .${ht.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),BR=Z("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),VR=Z("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),HR=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=Y(r,NR),u=$({},r,{color:o,edge:s,size:l}),d=FR(u),f=k.jsx(VR,{className:d.thumb,ownerState:u});return k.jsxs(jR,{className:ie(d.root,i),sx:a,ownerState:u,children:[k.jsx(zR,$({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:$({},d,{root:d.switchBase})})),k.jsx(BR,{className:d.track,ownerState:u})]})}),rx=x.createContext();function UR(e){return Ve("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const WR=["className","component","padding","size","stickyHeader"],GR=e=>{const{classes:t,stickyHeader:n}=e;return He({root:["root",n&&"stickyHeader"]},UR,t)},qR=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Mg="table",QR=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTable"}),{className:i,component:o=Mg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=Y(r,WR),u=$({},r,{component:o,padding:s,size:l,stickyHeader:a}),d=GR(u),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return k.jsx(rx.Provider,{value:f,children:k.jsx(qR,$({as:o,role:o===Mg?null:"table",ref:n,className:ie(d.root,i),ownerState:u},c))})}),tu=x.createContext();function XR(e){return Ve("MuiTableBody",e)}je("MuiTableBody",["root"]);const YR=["className","component"],KR=e=>{const{classes:t}=e;return He({root:["root"]},XR,t)},JR=Z("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),ZR={variant:"body"},Lg="tbody",eP=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableBody"}),{className:i,component:o=Lg}=r,s=Y(r,YR),l=$({},r,{component:o}),a=KR(l);return k.jsx(tu.Provider,{value:ZR,children:k.jsx(JR,$({className:ie(a.root,i),as:o,ref:n,role:o===Lg?null:"rowgroup",ownerState:l},s))})});function tP(e){return Ve("MuiTableCell",e)}const nP=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),rP=["align","className","component","padding","scope","size","sortDirection","variant"],iP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return He(l,tP,t)},oP=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Kh(Rr(e.palette.divider,1),.88):Yh(Rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${nP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),lr=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:u,variant:d}=r,f=Y(r,rP),v=x.useContext(rx),g=x.useContext(tu),p=g&&g.variant==="head";let b;s?b=s:b=p?"th":"td";let m=a;b==="td"?m=void 0:!m&&p&&(m="col");const h=d||g&&g.variant,y=$({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:u,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=iP(y);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),k.jsx(oP,$({as:b,ref:n,className:ie(w.root,o),"aria-sort":C,scope:m,ownerState:y},f))});function sP(e){return Ve("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const lP=["className","component"],aP=e=>{const{classes:t}=e;return He({root:["root"]},sP,t)},cP=Z("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),uP=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=Y(r,lP),l=$({},r,{component:o}),a=aP(l);return k.jsx(cP,$({ref:n,as:o,className:ie(a.root,i),ownerState:l},s))});function dP(e){return Ve("MuiTableHead",e)}je("MuiTableHead",["root"]);const fP=["className","component"],hP=e=>{const{classes:t}=e;return He({root:["root"]},dP,t)},pP=Z("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),mP={variant:"head"},Ng="thead",gP=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableHead"}),{className:i,component:o=Ng}=r,s=Y(r,fP),l=$({},r,{component:o}),a=hP(l);return k.jsx(tu.Provider,{value:mP,children:k.jsx(pP,$({as:o,className:ie(a.root,i),ref:n,role:o===Ng?null:"rowgroup",ownerState:l},s))})});function vP(e){return Ve("MuiTableRow",e)}const Fg=je("MuiTableRow",["root","selected","hover","head","footer"]),yP=["className","component","hover","selected"],bP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return He({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},vP,t)},xP=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),jg="tr",zg=x.forwardRef(function(t,n){const r=et({props:t,name:"MuiTableRow"}),{className:i,component:o=jg,hover:s=!1,selected:l=!1}=r,a=Y(r,yP),c=x.useContext(tu),u=$({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=bP(u);return k.jsx(xP,$({as:o,ref:n,className:ie(d.root,i),role:o===jg?null:"row",ownerState:u},a))}),wP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||Sn[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),Sn[500]}},Dl=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=wP(`${t}`);return k.jsxs(gt,{display:"flex",alignItems:"center",gap:1,children:[k.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),k.jsx(gt,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},kP=()=>k.jsxs(k.Fragment,{children:["Note: Not implemented yet.",k.jsx("br",{})," Will show events from your last published module(s).",Dl("editor-foreground"),Dl("editor-background"),Dl("badge-background"),Dl("badge-foreground")]});class lp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class CP extends lp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class $P extends lp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Wn=["mainnet","testnet","devnet","localnet"],If=["Mainnet","Testnet","Devnet","Localnet"],Tf="suibase.dashboard",IP="suibase.console",Ef="suibase.explorer",Wa="0",Bg="2",ix="P",ox="x",ap=`${ox}-${Wa}-help`,sx="[TREE_ID_INSERT_ADDR]",Vg="Suibase not installed",Hg="Suibase scripts not on $PATH",Ug="Git not installed";class TP{constructor(){Ce(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const Yi=new TP;class ol{constructor(t,n){this.name=t,this.sender=n}}class lx extends ol{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class EP extends ol{constructor(t){super("InitView",t)}}class RP extends ol{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class PP extends ol{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class OP extends ol{constructor(){super("OpenDashboardPanel","")}}class _P{constructor(t,n){Ce(this,"label");Ce(this,"workdir");Ce(this,"workdirIdx");Ce(this,"versions");Ce(this,"workdirStatus");Ce(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new CP,this.workdirStatus=new SP,this.workdirPackages=new $P}}class AP{constructor(){Ce(this,"_activeWorkdir");Ce(this,"_activeWorkdirIdx");Ce(this,"_activeLoaded");Ce(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Wn.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Wn.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Wn[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const ax=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,i=x.useRef(new AP),[o]=x.useState(Wn.map((g,p)=>new _P(g,p))),s=!1,[l,a]=x.useState(0),[c,u]=x.useState(0),[d,f]=x.useState(0);x.useEffect(()=>{const g=p=>{p.data&&v(p.data)};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[]),x.useEffect(()=>{let g=i.current.activeLoaded===!1;if(!g){for(let p=0;p{try{if(g.name){let p=!1,b=!1,m=!1;switch(g.name){case"UpdateVersions":{s&&console.log("UpdateVersions",g);let h=!1;if(g.setupIssue){const y=g.setupIssue;y!==i.current.setupIssue&&(i.current.setupIssue=y,p=!0),y!==""&&(h=!0)}if(h===!1&&i.current.setupIssue!==""&&(i.current.setupIssue="",p=!0),h===!1&&g.json){const y=o[g.workdirIdx];if(s&&console.log("workdir ",g.workdirIdx,"this.json",y.versions.getJson(),"this.json === null",y.versions.getJson()===null),!y.versions.update(g.json))s&&console.log("workdir ",g.workdirIdx,"UpdateVersions NOT changed",g.json);else{if(s&&console.log("workdir ",g.workdirIdx,"UpdateVersions changed",g.json),p=!0,n){const[C,S,T]=y.versions.isWorkdirStatusUpdateNeeded(y.workdirStatus);C&&(s&&console.log("workdir ",g.workdirIdx,"UpdateVersion update needed request posted"),Yi.postMessage(new RP(e,g.workdirIdx,S,T)))}if(r){const[C,S,T]=y.versions.isWorkdirPackagesUpdateNeeded(y.workdirPackages);C&&Yi.postMessage(new PP(e,g.workdirIdx,S,T))}}i.current.activeWorkdir!==g.json.asuiSelection&&(i.current.activeWorkdir=g.json.asuiSelection,p=!0)}break}case"UpdateWorkdirStatus":{n&&o[g.workdirIdx].workdirStatus.update(g.json)&&(b=!0);break}case"UpdateWorkdirPackages":{r&&o[g.workdirIdx].workdirPackages.update(g.json)&&(m=!0);break}default:console.log("Received an unknown command",g)}p&&a(h=>h+1),b&&u(h=>h+1),m&&f(h=>h+1)}}catch(p){console.error("An error occurred in useCommonController:",p)}};return{commonTrigger:l,statusTrigger:c,packagesTrigger:d,common:i,workdirs:o}},Pr=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Pr.trustedTypes===void 0&&(Pr.trustedTypes={createPolicy:(e,t)=>t});const cx={configurable:!1,enumerable:!1,writable:!1};Pr.FAST===void 0&&Reflect.defineProperty(Pr,"FAST",Object.assign({value:Object.create(null)},cx));const zs=Pr.FAST;if(zs.getById===void 0){const e=Object.create(null);Reflect.defineProperty(zs,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},cx))}const Zr=Object.freeze([]);function ux(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const rd=Pr.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let id=dx;const ps=`fast-${Math.random().toString(36).substring(2,8)}`,fx=`${ps}{`,cp=`}${ps}`,te=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(id!==dx)throw new Error("The HTML policy can only be set once.");id=e},createHTML(e){return id.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(ps)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${ps}:`,""))},createInterpolationPlaceholder(e){return`${fx}${e}${cp}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:rd.enqueue,processUpdates:rd.process,nextUpdate(){return new Promise(rd.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Ga{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=te.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let u=c.$fastController||t.get(c);return u===void 0&&(Array.isArray(c)?u=i(c):t.set(c,u=new hx(c))),u}const s=ux();class l{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return r!==void 0&&r.watch(u,this.name),u[this.field]}setValue(u,d){const f=this.field,v=u[f];if(v!==d){u[f]=d;const g=u[this.callback];typeof g=="function"&&g.call(u,v,d),o(u).notify(this.name)}}}class a extends Ga{constructor(u,d,f=!1){super(u,d),this.binding=u,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,d){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(u,d);return r=f,v}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,d){const f=this.last,v=o(u),g=f===null?this.first:{};if(g.propertySource=u,g.propertyName=d,g.notifier=v,v.subscribe(this,d),f!==null){if(!this.needsRefresh){let p;r=void 0,p=f.propertySource[f.propertyName],r=this,u===p&&(this.needsRefresh=!0)}f.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{const d=u;return d===void 0?{value:void 0,done:!0}:(u=u.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,u){r!==void 0&&r.watch(c,u)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,u){o(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new l(u)),s(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(d){u.setValue(this,d)}})},getAccessors:s,binding(c,u,d=this.isVolatileBinding(c)){return new a(c,u,d)},isVolatileBinding(c){return e.test(c.toString())}})});function B(e,t){ee.defineProperty(e,t)}function DP(e,t,n){return Object.assign({},n,{get:function(){return ee.trackVolatile(),n.get.apply(this)}})}const Wg=zs.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Bs{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Wg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Wg.set(t)}}ee.defineProperty(Bs.prototype,"index");ee.defineProperty(Bs.prototype,"length");const ms=Object.seal(new Bs);class nu{constructor(){this.targetIndex=0}}class px extends nu{constructor(){super(...arguments),this.createPlaceholder=te.createInterpolationPlaceholder}}class up extends nu{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return te.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function MP(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=ee.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function LP(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function NP(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function FP(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function jP(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function zP(e){te.setAttribute(this.target,this.targetName,e)}function BP(e){te.setBooleanAttribute(this.target,this.targetName,e)}function VP(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function HP(e){this.target[this.targetName]=e}function UP(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;ote.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=BP;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=LP,this.unbind=jP;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=UP);break}}targetAtContent(){this.updateTarget=VP,this.unbind=FP}createBehavior(t){return new WP(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class WP{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Bs.setEvent(t);const n=this.binding(this.source,this.context);Bs.setEvent(null),n!==!0&&t.preventDefault()}}let od=null;class fp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){od=this}static borrow(t){const n=od||new fp;return n.directives=t,n.reset(),od=null,n}}function GP(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=GP(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function QP(e,t,n){const r=mx(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=te.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function ce(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new dp(l)),l instanceof px){const a=YP.exec(s);a!==null&&(l.targetName=a[2])}l instanceof nu?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new qg(r,n)}class Ot{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Ot.create=(()=>{if(te.supportsAdoptedStyleSheets){const e=new Map;return t=>new KP(t,e)}return e=>new e2(e)})();function hp(e){return e.map(t=>t instanceof Ot?hp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function vx(e){return e.map(t=>t instanceof Ot?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const yx=Symbol("prependToAdoptedStyleSheets");function bx(e){const t=[],n=[];return e.forEach(r=>(r[yx]?t:n).push(r)),{prepend:t,append:n}}let xx=(e,t)=>{const{prepend:n,append:r}=bx(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},wx=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(te.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),xx=(e,t)=>{const{prepend:n,append:r}=bx(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},wx=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class KP extends Ot{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=vx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=hp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){xx(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){wx(t,this.styleSheets),super.removeStylesFrom(t)}}let JP=0;function ZP(){return`fast-style-class-${++JP}`}class e2 extends Ot{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=vx(t),this.styleSheets=hp(t),this.styleClass=ZP()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;te.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":te.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(qa.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),qa.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Qg={mode:"open"},Xg={},Rf=zs.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class sl{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=Qa.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(Pf),n--;continue}if(n===0){i.push(Of),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const u=i.removed.length+a.removed.length-c;if(!i.addedCount&&!u)o=!0;else{let d=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);Kg.apply(d,f)}i.removed=d,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class d2 extends Ga{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,te.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,te.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?u2(this.source,t):Tx(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function f2(){if(Jg)return;Jg=!0,ee.setArrayObserverFactory(a=>new d2(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&a&&u.addSplice(pn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(ad(pn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const u=r.apply(this,arguments);return c!==void 0&&c.reset(a),u},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),u=this.$fastController;return u!==void 0&&a&&u.addSplice(pn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const u=o.apply(this,arguments);return c!==void 0&&c.reset(a),u},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(ad(pn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(ad(pn(0,[],arguments.length),this)),a}}class h2{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function xt(e){return new up("fast-ref",h2,e)}const Ex=e=>typeof e=="function",p2=()=>null;function Zg(e){return e===void 0?p2:Ex(e)?e:()=>e}function mp(e,t,n){const r=Ex(e)?e:()=>e,i=Zg(t),o=Zg(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function m2(e,t,n,r){e.bind(t[n],r)}function g2(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class v2{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=m2,this.itemsBindingObserver=ee.binding(n,this,r),this.templateBindingObserver=ee.binding(i,this,o),s.positioning&&(this.bindView=g2)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=Zr;return}const n=this.itemsObserver,r=this.itemsObserver=ee.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,u=0;for(let d=0,f=t.length;d0?(p<=y&&h.length>0?(S=h[p],p++):(S=a[c],c++),u--):S=s.create(),r.splice(b,0,S),i(S,o,b,n),S.insertBefore(C)}h[p]&&a.push(...h.slice(p))}for(let d=c,f=a.length;dr.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Zr),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class y2 extends Px{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function sn(e){return typeof e=="string"&&(e={property:e}),new up("fast-slotted",y2,e)}class b2 extends Px{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Ox(e){return typeof e=="string"&&(e={property:e}),new up("fast-children",b2,e)}class $o{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Io=(e,t)=>ce` + `),bR)),Ya=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,f=J(r,vR),v=S({},r,{color:o,disableShrink:s,size:l,thickness:c,value:u,variant:d}),m=xR(v),g={},b={},p={};if(d==="determinate"){const h=2*Math.PI*((ar-c)/2);g.strokeDasharray=h.toFixed(3),p["aria-valuenow"]=Math.round(u),g.strokeDashoffset=`${((100-u)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return k.jsx(wR,S({className:ie(m.root,i),style:S({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},p,f,{children:k.jsx(kR,{className:m.svg,ownerState:v,viewBox:`${ar/2} ${ar/2} ${ar} ${ar}`,children:k.jsx(CR,{className:m.circle,style:g,ownerState:v,cx:ar,cy:ar,r:(ar-c)/2,fill:"none",strokeWidth:c})})}))});function Fg(e){return e.substring(2).toLowerCase()}function SR(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const u=at(t.ref,l),d=tn(m=>{const g=c.current;c.current=!1;const b=Xi(l.current);if(!a.current||!l.current||"clientX"in m&&SR(m,b))return;if(s.current){s.current=!1;return}let p;m.composedPath?p=m.composedPath().indexOf(l.current)>-1:p=!b.documentElement.contains(m.target)||l.current.contains(m.target),!p&&(n||!g)&&i(m)}),f=m=>g=>{c.current=!0;const b=t.props[m];b&&b(g)},v={ref:u};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const m=Fg(o),g=Xi(l.current),b=()=>{s.current=!0};return g.addEventListener(m,d),g.addEventListener("touchmove",b),()=>{g.removeEventListener(m,d),g.removeEventListener("touchmove",b)}}},[d,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const m=Fg(r),g=Xi(l.current);return g.addEventListener(m,d),()=>{g.removeEventListener(m,d)}}},[d,r]),k.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const IR=(e,t)=>S({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),TR=e=>S({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),ER=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=S({html:IR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:S({margin:0},TR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function RR(e){const t=tt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return k.jsxs(x.Fragment,{children:[k.jsx(VE,{styles:i=>ER(i,r)}),n]})}function PR(e){return Ue("MuiLink",e)}const OR=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),sx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_R=e=>sx[e]||e,AR=({theme:e,ownerState:t})=>{const n=_R(t.color),r=fo(e,`palette.${n}`,!1)||t.color,i=fo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Rr(r,.4)},DR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],MR=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return We(o,PR,t)},LR=Z(nn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:AR({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${OR.focusVisible}`]:{outline:"auto"}})),Yi=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:f}=r,v=J(r,DR),{isFocusVisibleRef:m,onBlur:g,onFocus:b,ref:p}=ip(),[h,y]=x.useState(!1),w=at(n,p),C=L=>{g(L),m.current===!1&&y(!1),l&&l(L)},$=L=>{b(L),m.current===!0&&y(!0),a&&a(L)},I=S({},r,{color:o,component:s,focusVisible:h,underline:u,variant:d}),P=MR(I);return k.jsx(LR,S({color:o,className:ie(P.root,i),classes:c,component:s,onBlur:C,onFocus:$,ref:w,ownerState:I,variant:d,sx:[...Object.keys(sx).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function NR(e){return Ue("MuiSwitch",e)}const mt=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),FR=["className","color","edge","size","sx"],jR=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=We(l,NR,t);return S({},t,a)},zR=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${mt.thumb}`]:{width:16,height:16},[`& .${mt.switchBase}`]:{padding:4,[`&.${mt.checked}`]:{transform:"translateX(16px)"}}}}]}),BR=Z(ix,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${mt.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${mt.checked}`]:{transform:"translateX(20px)"},[`&.${mt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${mt.checked} + .${mt.track}`]:{opacity:.5},[`&.${mt.disabled} + .${mt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${mt.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${mt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?sp(e.palette[t].main,.62):op(e.palette[t].main,.55)}`}},[`&.${mt.checked} + .${mt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),VR=Z("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),HR=Z("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),UR=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=J(r,FR),u=S({},r,{color:o,edge:s,size:l}),d=jR(u),f=k.jsx(HR,{className:d.thumb,ownerState:u});return k.jsxs(zR,{className:ie(d.root,i),sx:a,ownerState:u,children:[k.jsx(BR,S({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:S({},d,{root:d.switchBase})})),k.jsx(VR,{className:d.track,ownerState:u})]})}),lx=x.createContext();function WR(e){return Ue("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const GR=["className","component","padding","size","stickyHeader"],qR=e=>{const{classes:t,stickyHeader:n}=e;return We({root:["root",n&&"stickyHeader"]},WR,t)},QR=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":S({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),jg="table",XR=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTable"}),{className:i,component:o=jg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=J(r,GR),u=S({},r,{component:o,padding:s,size:l,stickyHeader:a}),d=qR(u),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return k.jsx(lx.Provider,{value:f,children:k.jsx(QR,S({as:o,role:o===jg?null:"table",ref:n,className:ie(d.root,i),ownerState:u},c))})}),au=x.createContext();function YR(e){return Ue("MuiTableBody",e)}ze("MuiTableBody",["root"]);const KR=["className","component"],JR=e=>{const{classes:t}=e;return We({root:["root"]},YR,t)},ZR=Z("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),eP={variant:"body"},zg="tbody",tP=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableBody"}),{className:i,component:o=zg}=r,s=J(r,KR),l=S({},r,{component:o}),a=JR(l);return k.jsx(au.Provider,{value:eP,children:k.jsx(ZR,S({className:ie(a.root,i),as:o,ref:n,role:o===zg?null:"rowgroup",ownerState:l},s))})});function nP(e){return Ue("MuiTableCell",e)}const rP=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),iP=["align","className","component","padding","scope","size","sortDirection","variant"],oP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return We(l,nP,t)},sP=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?sp(Rr(e.palette.divider,1),.88):op(Rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${rP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),cr=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:u,variant:d}=r,f=J(r,iP),v=x.useContext(lx),m=x.useContext(au),g=m&&m.variant==="head";let b;s?b=s:b=g?"th":"td";let p=a;b==="td"?p=void 0:!p&&g&&(p="col");const h=d||m&&m.variant,y=S({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:u,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=oP(y);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),k.jsx(sP,S({as:b,ref:n,className:ie(w.root,o),"aria-sort":C,scope:p,ownerState:y},f))});function lP(e){return Ue("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const aP=["className","component"],cP=e=>{const{classes:t}=e;return We({root:["root"]},lP,t)},uP=Z("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),dP=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=J(r,aP),l=S({},r,{component:o}),a=cP(l);return k.jsx(uP,S({ref:n,as:o,className:ie(a.root,i),ownerState:l},s))});function fP(e){return Ue("MuiTableHead",e)}ze("MuiTableHead",["root"]);const hP=["className","component"],pP=e=>{const{classes:t}=e;return We({root:["root"]},fP,t)},mP=Z("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gP={variant:"head"},Bg="thead",vP=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableHead"}),{className:i,component:o=Bg}=r,s=J(r,hP),l=S({},r,{component:o}),a=pP(l);return k.jsx(au.Provider,{value:gP,children:k.jsx(mP,S({as:o,className:ie(a.root,i),ref:n,role:o===Bg?null:"rowgroup",ownerState:l},s))})});function yP(e){return Ue("MuiTableRow",e)}const Vg=ze("MuiTableRow",["root","selected","hover","head","footer"]),bP=["className","component","hover","selected"],xP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return We({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},yP,t)},wP=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Vg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Vg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Hg="tr",Ug=x.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableRow"}),{className:i,component:o=Hg,hover:s=!1,selected:l=!1}=r,a=J(r,bP),c=x.useContext(au),u=S({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=xP(u);return k.jsx(wP,S({as:o,ref:n,className:ie(d.root,i),role:o===Hg?null:"row",ownerState:u},a))}),kP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||En[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),En[500]}},zl=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=kP(`${t}`);return k.jsxs(bt,{display:"flex",alignItems:"center",gap:1,children:[k.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),k.jsx(bt,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},CP=()=>k.jsxs(k.Fragment,{children:["Note: Not implemented yet.",k.jsx("br",{})," Will show events from your last published module(s).",zl("editor-foreground"),zl("editor-background"),zl("badge-background"),zl("badge-foreground")]});class gp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class SP extends gp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class IP extends gp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Xn=["mainnet","testnet","devnet","localnet"],Mf=["Mainnet","Testnet","Devnet","Localnet"],Lf="suibase.dashboard",TP="suibase.console",Nf="suibase.explorer",Ka="0",Wg="2",ax="P",cx="x",vp=`${cx}-${Ka}-help`,ux="[TREE_ID_INSERT_ADDR]",Gg="Suibase not installed",qg="Suibase scripts not on $PATH",Qg="Git not installed";class EP{constructor(){Se(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const Ki=new EP;class cl{constructor(t,n){this.name=t,this.sender=n}}class dx extends cl{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class RP extends cl{constructor(t){super("InitView",t)}}class PP extends cl{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class OP extends cl{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class _P extends cl{constructor(){super("OpenDashboardPanel","")}}class AP{constructor(t,n){Se(this,"label");Se(this,"workdir");Se(this,"workdirIdx");Se(this,"versions");Se(this,"workdirStatus");Se(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new SP,this.workdirStatus=new $P,this.workdirPackages=new IP}}class DP{constructor(){Se(this,"_activeWorkdir");Se(this,"_activeWorkdirIdx");Se(this,"_activeLoaded");Se(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Xn.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Xn.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Xn[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const fx=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,i=x.useRef(new DP),[o]=x.useState(Xn.map((m,g)=>new AP(m,g))),s=!1,[l,a]=x.useState(0),[c,u]=x.useState(0),[d,f]=x.useState(0);x.useEffect(()=>{const m=g=>{g.data&&v(g.data)};return window.addEventListener("message",m),()=>window.removeEventListener("message",m)},[]),x.useEffect(()=>{let m=i.current.activeLoaded===!1;if(!m){for(let g=0;g{try{if(m.name){let g=!1,b=!1,p=!1;switch(m.name){case"UpdateVersions":{s&&console.log("UpdateVersions",m);let h=!1;if(m.setupIssue){const y=m.setupIssue;y!==i.current.setupIssue&&(i.current.setupIssue=y,g=!0),y!==""&&(h=!0)}if(h===!1&&i.current.setupIssue!==""&&(i.current.setupIssue="",g=!0),h===!1&&m.json){const y=o[m.workdirIdx];if(s&&console.log("workdir ",m.workdirIdx,"this.json",y.versions.getJson(),"this.json === null",y.versions.getJson()===null),!y.versions.update(m.json))s&&console.log("workdir ",m.workdirIdx,"UpdateVersions NOT changed",m.json);else{if(s&&console.log("workdir ",m.workdirIdx,"UpdateVersions changed",m.json),g=!0,n){const[C,$,I]=y.versions.isWorkdirStatusUpdateNeeded(y.workdirStatus);C&&(s&&console.log("workdir ",m.workdirIdx,"UpdateVersion update needed request posted"),Ki.postMessage(new PP(e,m.workdirIdx,$,I)))}if(r){const[C,$,I]=y.versions.isWorkdirPackagesUpdateNeeded(y.workdirPackages);C&&Ki.postMessage(new OP(e,m.workdirIdx,$,I))}}i.current.activeWorkdir!==m.json.asuiSelection&&(i.current.activeWorkdir=m.json.asuiSelection,g=!0)}break}case"UpdateWorkdirStatus":{n&&o[m.workdirIdx].workdirStatus.update(m.json)&&(b=!0);break}case"UpdateWorkdirPackages":{r&&o[m.workdirIdx].workdirPackages.update(m.json)&&(p=!0);break}default:console.log("Received an unknown command",m)}g&&a(h=>h+1),b&&u(h=>h+1),p&&f(h=>h+1)}}catch(g){console.error("An error occurred in useCommonController:",g)}};return{commonTrigger:l,statusTrigger:c,packagesTrigger:d,common:i,workdirs:o}},Pr=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Pr.trustedTypes===void 0&&(Pr.trustedTypes={createPolicy:(e,t)=>t});const hx={configurable:!1,enumerable:!1,writable:!1};Pr.FAST===void 0&&Reflect.defineProperty(Pr,"FAST",Object.assign({value:Object.create(null)},hx));const Us=Pr.FAST;if(Us.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Us,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},hx))}const ei=Object.freeze([]);function px(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const fd=Pr.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let hd=mx;const ys=`fast-${Math.random().toString(36).substring(2,8)}`,gx=`${ys}{`,yp=`}${ys}`,te=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(hd!==mx)throw new Error("The HTML policy can only be set once.");hd=e},createHTML(e){return hd.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(ys)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${ys}:`,""))},createInterpolationPlaceholder(e){return`${gx}${e}${yp}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:fd.enqueue,processUpdates:fd.process,nextUpdate(){return new Promise(fd.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Ja{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=te.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let u=c.$fastController||t.get(c);return u===void 0&&(Array.isArray(c)?u=i(c):t.set(c,u=new vx(c))),u}const s=px();class l{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return r!==void 0&&r.watch(u,this.name),u[this.field]}setValue(u,d){const f=this.field,v=u[f];if(v!==d){u[f]=d;const m=u[this.callback];typeof m=="function"&&m.call(u,v,d),o(u).notify(this.name)}}}class a extends Ja{constructor(u,d,f=!1){super(u,d),this.binding=u,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,d){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(u,d);return r=f,v}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,d){const f=this.last,v=o(u),m=f===null?this.first:{};if(m.propertySource=u,m.propertyName=d,m.notifier=v,v.subscribe(this,d),f!==null){if(!this.needsRefresh){let g;r=void 0,g=f.propertySource[f.propertyName],r=this,u===g&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{const d=u;return d===void 0?{value:void 0,done:!0}:(u=u.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,u){r!==void 0&&r.watch(c,u)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,u){o(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new l(u)),s(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(d){u.setValue(this,d)}})},getAccessors:s,binding(c,u,d=this.isVolatileBinding(c)){return new a(c,u,d)},isVolatileBinding(c){return e.test(c.toString())}})});function B(e,t){ee.defineProperty(e,t)}function MP(e,t,n){return Object.assign({},n,{get:function(){return ee.trackVolatile(),n.get.apply(this)}})}const Xg=Us.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Ws{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Xg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Xg.set(t)}}ee.defineProperty(Ws.prototype,"index");ee.defineProperty(Ws.prototype,"length");const bs=Object.seal(new Ws);class cu{constructor(){this.targetIndex=0}}class yx extends cu{constructor(){super(...arguments),this.createPlaceholder=te.createInterpolationPlaceholder}}class bp extends cu{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return te.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function LP(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=ee.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function NP(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function FP(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function jP(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function zP(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function BP(e){te.setAttribute(this.target,this.targetName,e)}function VP(e){te.setBooleanAttribute(this.target,this.targetName,e)}function HP(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function UP(e){this.target[this.targetName]=e}function WP(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;ote.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=VP;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=NP,this.unbind=zP;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=WP);break}}targetAtContent(){this.updateTarget=HP,this.unbind=jP}createBehavior(t){return new GP(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class GP{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Ws.setEvent(t);const n=this.binding(this.source,this.context);Ws.setEvent(null),n!==!0&&t.preventDefault()}}let pd=null;class wp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){pd=this}static borrow(t){const n=pd||new wp;return n.directives=t,n.reset(),pd=null,n}}function qP(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=qP(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function XP(e,t,n){const r=bx(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=te.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function de(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new xp(l)),l instanceof yx){const a=KP.exec(s);a!==null&&(l.targetName=a[2])}l instanceof cu?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new Kg(r,n)}class At{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}At.create=(()=>{if(te.supportsAdoptedStyleSheets){const e=new Map;return t=>new JP(t,e)}return e=>new tO(e)})();function kp(e){return e.map(t=>t instanceof At?kp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function wx(e){return e.map(t=>t instanceof At?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const kx=Symbol("prependToAdoptedStyleSheets");function Cx(e){const t=[],n=[];return e.forEach(r=>(r[kx]?t:n).push(r)),{prepend:t,append:n}}let Sx=(e,t)=>{const{prepend:n,append:r}=Cx(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},$x=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(te.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Sx=(e,t)=>{const{prepend:n,append:r}=Cx(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},$x=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class JP extends At{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=wx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=kp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){Sx(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){$x(t,this.styleSheets),super.removeStylesFrom(t)}}let ZP=0;function eO(){return`fast-style-class-${++ZP}`}class tO extends At{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=wx(t),this.styleSheets=kp(t),this.styleClass=eO()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;te.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":te.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(Za.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),Za.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Jg={mode:"open"},Zg={},Ff=Us.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class ul{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=ec.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(jf),n--;continue}if(n===0){i.push(zf),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const u=i.removed.length+a.removed.length-c;if(!i.addedCount&&!u)o=!0;else{let d=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);tv.apply(d,f)}i.removed=d,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class fO extends Ja{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,te.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,te.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?dO(this.source,t):Ox(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function hO(){if(nv)return;nv=!0,ee.setArrayObserverFactory(a=>new fO(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&a&&u.addSplice(vn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(vd(vn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const u=r.apply(this,arguments);return c!==void 0&&c.reset(a),u},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),u=this.$fastController;return u!==void 0&&a&&u.addSplice(vn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const u=o.apply(this,arguments);return c!==void 0&&c.reset(a),u},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(vd(vn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(vd(vn(0,[],arguments.length),this)),a}}class pO{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function kt(e){return new bp("fast-ref",pO,e)}const _x=e=>typeof e=="function",mO=()=>null;function rv(e){return e===void 0?mO:_x(e)?e:()=>e}function Sp(e,t,n){const r=_x(e)?e:()=>e,i=rv(t),o=rv(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function gO(e,t,n,r){e.bind(t[n],r)}function vO(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class yO{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=gO,this.itemsBindingObserver=ee.binding(n,this,r),this.templateBindingObserver=ee.binding(i,this,o),s.positioning&&(this.bindView=vO)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=ei;return}const n=this.itemsObserver,r=this.itemsObserver=ee.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,u=0;for(let d=0,f=t.length;d0?(g<=y&&h.length>0?($=h[g],g++):($=a[c],c++),u--):$=s.create(),r.splice(b,0,$),i($,o,b,n),$.insertBefore(C)}h[g]&&a.push(...h.slice(g))}for(let d=c,f=a.length;dr.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(ei),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class bO extends Dx{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function an(e){return typeof e=="string"&&(e={property:e}),new bp("fast-slotted",bO,e)}class xO extends Dx{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Mx(e){return typeof e=="string"&&(e={property:e}),new bp("fast-children",xO,e)}class Io{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const To=(e,t)=>de` t.end?"end":void 0} > - + ${t.end||""} -`,To=(e,t)=>ce` +`,Eo=(e,t)=>de` ${t.start||""} -`;ce` - +`;de` + -`;ce` - +`;de` + @@ -206,7 +206,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function I(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const cd=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=cd.get(n);r===void 0&&cd.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=cd.get(t);if(n!==void 0)return n.get(e)});class x2{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Ax(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Kt(i,t,n))}}function Qo(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:w2.singleton})}),ev=new Map;function tv(e){return t=>Reflect.getOwnMetadata(e,t)}let nv=null;const Se=Object.freeze({createContainer(e){return new gs(null,Object.assign({},ud.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:Se.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(_x,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||Se.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new gs(e,Object.assign({},ud.default,t,{parentLocator:Se.findParentContainer})):nv||(nv=new gs(null,Object.assign({},ud.default,t,{parentLocator:()=>null})))},getDesignParamtypes:tv("design:paramtypes"),getAnnotationParamtypes:tv("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=ev.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=Se.getDesignParamtypes(e),i=Se.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=Qo(Se.getDependencies(o)):t=[]}else t=Qo(i);else if(i===void 0)t=Qo(r);else{t=Qo(r);let o=i.length,s;for(let c=0;c{const u=Se.findResponsibleContainer(this).get(n),d=this[i];u!==d&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||sv,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)Se.defineProperty(s,l,o,i);else{const c=Se.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new x2(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=Se.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)Se.defineProperty(t,n,e[0]);else{const i=r?Se.getOrCreateAnnotationParamTypes(r.value):Se.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(R2.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(la(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const fd=new WeakMap;function Ax(e){return function(t,n,r){if(fd.has(r))return fd.get(r);const i=e(t,n,r);return fd.set(r,i),i}}const Vs=Object.freeze({instance(e,t){return new Kt(e,0,t)},singleton(e,t){return new Kt(e,1,t)},transient(e,t){return new Kt(e,2,t)},callback(e,t){return new Kt(e,3,t)},cachedCallback(e,t){return new Kt(e,3,Ax(t))},aliasTo(e,t){return new Kt(t,5,e)}});function Ml(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ov(e,t,n){if(e instanceof Kt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const sv="(anonymous)";function lv(e){return typeof e=="object"&&e!==null||typeof e=="function"}const P2=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Ll={};function Dx(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Ll[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Ll[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Ll[e]=!1;return Ll[e]=!0}default:return!1}}function av(e){return`${e.toLowerCase()}:presentation`}const Nl=new Map,Mx=Object.freeze({define(e,t,n){const r=av(e);Nl.get(r)===void 0?Nl.set(r,t):Nl.set(r,!1),n.register(Vs.instance(r,t))},forTag(e,t){const n=av(e),r=Nl.get(n);return r===!1?Se.findResponsibleContainer(t).get(n):r||null}});class O2{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?Ot.create(n):n instanceof Ot?n:Ot.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class xe extends ru{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Mx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new Lx(this===xe?class extends xe{}:this,t,n)}}I([B],xe.prototype,"template",void 0);I([B],xe.prototype,"styles",void 0);function Xo(e,t,n){return typeof e=="function"?e(t,n):e}class Lx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new O2(Xo(r.template,l,r),Xo(r.styles,l,r));l.definePresentation(a);let c=Xo(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Xo(r.elementOptions,l,r),shadowOptions:c,attributes:Xo(r.attributes,l,r)})}})}}function Dt(e,...t){const n=qa.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),qa.locate(r).forEach(o=>n.push(o))})}const vp={horizontal:"horizontal",vertical:"vertical"};function _2(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function A2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function D2(...e){return e.every(t=>t instanceof HTMLElement)}function M2(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let zr;function L2(){if(typeof zr=="boolean")return zr;if(!A2())return zr=!1,zr;const e=document.createElement("style"),t=M2();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),zr=!0}catch{zr=!1}finally{document.head.removeChild(e)}return zr}const cv="focus",uv="focusin",fo="focusout",ho="keydown";var dv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(dv||(dv={}));const fi="ArrowDown",Hs="ArrowLeft",Us="ArrowRight",hi="ArrowUp",ll="Enter",iu="Escape",Eo="Home",Ro="End",N2="F2",F2="PageDown",j2="PageUp",al=" ",yp="Tab",z2={ArrowDown:fi,ArrowLeft:Hs,ArrowRight:Us,ArrowUp:hi};var po;(function(e){e.ltr="ltr",e.rtl="rtl"})(po||(po={}));function B2(e,t,n){return Math.min(Math.max(n,e),t)}function Fl(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ece` +***************************************************************************** */function T(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const yd=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=yd.get(n);r===void 0&&yd.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=yd.get(t);if(n!==void 0)return n.get(e)});class wO{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Nx(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Zt(i,t,n))}}function Jo(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:kO.singleton})}),iv=new Map;function ov(e){return t=>Reflect.getOwnMetadata(e,t)}let sv=null;const $e=Object.freeze({createContainer(e){return new xs(null,Object.assign({},bd.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:$e.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Lx,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||$e.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new xs(e,Object.assign({},bd.default,t,{parentLocator:$e.findParentContainer})):sv||(sv=new xs(null,Object.assign({},bd.default,t,{parentLocator:()=>null})))},getDesignParamtypes:ov("design:paramtypes"),getAnnotationParamtypes:ov("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=iv.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=$e.getDesignParamtypes(e),i=$e.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=Jo($e.getDependencies(o)):t=[]}else t=Jo(i);else if(i===void 0)t=Jo(r);else{t=Jo(r);let o=i.length,s;for(let c=0;c{const u=$e.findResponsibleContainer(this).get(n),d=this[i];u!==d&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||uv,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)$e.defineProperty(s,l,o,i);else{const c=$e.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new wO(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=$e.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)$e.defineProperty(t,n,e[0]);else{const i=r?$e.getOrCreateAnnotationParamTypes(r.value):$e.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(PO.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ha(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const wd=new WeakMap;function Nx(e){return function(t,n,r){if(wd.has(r))return wd.get(r);const i=e(t,n,r);return wd.set(r,i),i}}const Gs=Object.freeze({instance(e,t){return new Zt(e,0,t)},singleton(e,t){return new Zt(e,1,t)},transient(e,t){return new Zt(e,2,t)},callback(e,t){return new Zt(e,3,t)},cachedCallback(e,t){return new Zt(e,3,Nx(t))},aliasTo(e,t){return new Zt(t,5,e)}});function Bl(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function cv(e,t,n){if(e instanceof Zt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const uv="(anonymous)";function dv(e){return typeof e=="object"&&e!==null||typeof e=="function"}const OO=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Vl={};function Fx(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Vl[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Vl[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Vl[e]=!1;return Vl[e]=!0}default:return!1}}function fv(e){return`${e.toLowerCase()}:presentation`}const Hl=new Map,jx=Object.freeze({define(e,t,n){const r=fv(e);Hl.get(r)===void 0?Hl.set(r,t):Hl.set(r,!1),n.register(Gs.instance(r,t))},forTag(e,t){const n=fv(e),r=Hl.get(n);return r===!1?$e.findResponsibleContainer(t).get(n):r||null}});class _O{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?At.create(n):n instanceof At?n:At.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class we extends uu{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=jx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new zx(this===we?class extends we{}:this,t,n)}}T([B],we.prototype,"template",void 0);T([B],we.prototype,"styles",void 0);function Zo(e,t,n){return typeof e=="function"?e(t,n):e}class zx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new _O(Zo(r.template,l,r),Zo(r.styles,l,r));l.definePresentation(a);let c=Zo(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Zo(r.elementOptions,l,r),shadowOptions:c,attributes:Zo(r.attributes,l,r)})}})}}function Lt(e,...t){const n=Za.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),Za.locate(r).forEach(o=>n.push(o))})}const Ip={horizontal:"horizontal",vertical:"vertical"};function AO(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function DO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function MO(...e){return e.every(t=>t instanceof HTMLElement)}function LO(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Br;function NO(){if(typeof Br=="boolean")return Br;if(!DO())return Br=!1,Br;const e=document.createElement("style"),t=LO();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Br=!0}catch{Br=!1}finally{document.head.removeChild(e)}return Br}const hv="focus",pv="focusin",ho="focusout",po="keydown";var mv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(mv||(mv={}));const hi="ArrowDown",qs="ArrowLeft",Qs="ArrowRight",pi="ArrowUp",dl="Enter",du="Escape",Ro="Home",Po="End",FO="F2",jO="PageDown",zO="PageUp",fl=" ",Tp="Tab",BO={ArrowDown:hi,ArrowLeft:qs,ArrowRight:Qs,ArrowUp:pi};var mo;(function(e){e.ltr="ltr",e.rtl="rtl"})(mo||(mo={}));function VO(e,t,n){return Math.min(Math.max(n,e),t)}function Ul(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ede` - ${To(e,t)} + ${Eo(e,t)} - + - ${Io(e,t)} + ${To(e,t)} -`;class we{}I([R({attribute:"aria-atomic"})],we.prototype,"ariaAtomic",void 0);I([R({attribute:"aria-busy"})],we.prototype,"ariaBusy",void 0);I([R({attribute:"aria-controls"})],we.prototype,"ariaControls",void 0);I([R({attribute:"aria-current"})],we.prototype,"ariaCurrent",void 0);I([R({attribute:"aria-describedby"})],we.prototype,"ariaDescribedby",void 0);I([R({attribute:"aria-details"})],we.prototype,"ariaDetails",void 0);I([R({attribute:"aria-disabled"})],we.prototype,"ariaDisabled",void 0);I([R({attribute:"aria-errormessage"})],we.prototype,"ariaErrormessage",void 0);I([R({attribute:"aria-flowto"})],we.prototype,"ariaFlowto",void 0);I([R({attribute:"aria-haspopup"})],we.prototype,"ariaHaspopup",void 0);I([R({attribute:"aria-hidden"})],we.prototype,"ariaHidden",void 0);I([R({attribute:"aria-invalid"})],we.prototype,"ariaInvalid",void 0);I([R({attribute:"aria-keyshortcuts"})],we.prototype,"ariaKeyshortcuts",void 0);I([R({attribute:"aria-label"})],we.prototype,"ariaLabel",void 0);I([R({attribute:"aria-labelledby"})],we.prototype,"ariaLabelledby",void 0);I([R({attribute:"aria-live"})],we.prototype,"ariaLive",void 0);I([R({attribute:"aria-owns"})],we.prototype,"ariaOwns",void 0);I([R({attribute:"aria-relevant"})],we.prototype,"ariaRelevant",void 0);I([R({attribute:"aria-roledescription"})],we.prototype,"ariaRoledescription",void 0);class xn extends xe{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}I([R],xn.prototype,"download",void 0);I([R],xn.prototype,"href",void 0);I([R],xn.prototype,"hreflang",void 0);I([R],xn.prototype,"ping",void 0);I([R],xn.prototype,"referrerpolicy",void 0);I([R],xn.prototype,"rel",void 0);I([R],xn.prototype,"target",void 0);I([R],xn.prototype,"type",void 0);I([B],xn.prototype,"defaultSlottedContent",void 0);class bp{}I([R({attribute:"aria-expanded"})],bp.prototype,"ariaExpanded",void 0);Dt(bp,we);Dt(xn,$o,bp);const U2=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?po.rtl:po.ltr},Nx=(e,t)=>ce` +`;class ke{}T([O({attribute:"aria-atomic"})],ke.prototype,"ariaAtomic",void 0);T([O({attribute:"aria-busy"})],ke.prototype,"ariaBusy",void 0);T([O({attribute:"aria-controls"})],ke.prototype,"ariaControls",void 0);T([O({attribute:"aria-current"})],ke.prototype,"ariaCurrent",void 0);T([O({attribute:"aria-describedby"})],ke.prototype,"ariaDescribedby",void 0);T([O({attribute:"aria-details"})],ke.prototype,"ariaDetails",void 0);T([O({attribute:"aria-disabled"})],ke.prototype,"ariaDisabled",void 0);T([O({attribute:"aria-errormessage"})],ke.prototype,"ariaErrormessage",void 0);T([O({attribute:"aria-flowto"})],ke.prototype,"ariaFlowto",void 0);T([O({attribute:"aria-haspopup"})],ke.prototype,"ariaHaspopup",void 0);T([O({attribute:"aria-hidden"})],ke.prototype,"ariaHidden",void 0);T([O({attribute:"aria-invalid"})],ke.prototype,"ariaInvalid",void 0);T([O({attribute:"aria-keyshortcuts"})],ke.prototype,"ariaKeyshortcuts",void 0);T([O({attribute:"aria-label"})],ke.prototype,"ariaLabel",void 0);T([O({attribute:"aria-labelledby"})],ke.prototype,"ariaLabelledby",void 0);T([O({attribute:"aria-live"})],ke.prototype,"ariaLive",void 0);T([O({attribute:"aria-owns"})],ke.prototype,"ariaOwns",void 0);T([O({attribute:"aria-relevant"})],ke.prototype,"ariaRelevant",void 0);T([O({attribute:"aria-roledescription"})],ke.prototype,"ariaRoledescription",void 0);class Sn extends we{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}T([O],Sn.prototype,"download",void 0);T([O],Sn.prototype,"href",void 0);T([O],Sn.prototype,"hreflang",void 0);T([O],Sn.prototype,"ping",void 0);T([O],Sn.prototype,"referrerpolicy",void 0);T([O],Sn.prototype,"rel",void 0);T([O],Sn.prototype,"target",void 0);T([O],Sn.prototype,"type",void 0);T([B],Sn.prototype,"defaultSlottedContent",void 0);class Ep{}T([O({attribute:"aria-expanded"})],Ep.prototype,"ariaExpanded",void 0);Lt(Ep,ke);Lt(Sn,Io,Ep);const WO=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?mo.rtl:mo.ltr},Bx=(e,t)=>de` -`;let cl=class extends xe{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};I([R({attribute:"fill"})],cl.prototype,"fill",void 0);I([R({attribute:"color"})],cl.prototype,"color",void 0);I([R({mode:"boolean"})],cl.prototype,"circular",void 0);const W2=(e,t)=>ce` +`;let hl=class extends we{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};T([O({attribute:"fill"})],hl.prototype,"fill",void 0);T([O({attribute:"color"})],hl.prototype,"color",void 0);T([O({mode:"boolean"})],hl.prototype,"circular",void 0);const GO=(e,t)=>de` -`,fv="form-associated-proxy",hv="ElementInternals",pv=hv in window&&"setFormValue"in window[hv].prototype,mv=new WeakMap;function ul(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return pv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return Zr}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),te.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),te.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!pv)return null;let n=mv.get(this);return n||(n=this.attachInternals(),mv.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",fv),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",fv)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case ll:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return R({mode:"boolean"})(t.prototype,"disabled"),R({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),R({attribute:"current-value"})(t.prototype,"currentValue"),R(t.prototype,"name"),R({mode:"boolean"})(t.prototype,"required"),B(t.prototype,"value"),t}function Fx(e){class t extends ul(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return R({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),R({attribute:"current-checked",converter:kx})(n.prototype,"currentChecked"),B(n.prototype,"defaultChecked"),B(n.prototype,"checked"),n}class G2 extends xe{}class q2 extends ul(G2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let wn=class extends q2{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};I([R({mode:"boolean"})],wn.prototype,"autofocus",void 0);I([R({attribute:"form"})],wn.prototype,"formId",void 0);I([R],wn.prototype,"formaction",void 0);I([R],wn.prototype,"formenctype",void 0);I([R],wn.prototype,"formmethod",void 0);I([R({mode:"boolean"})],wn.prototype,"formnovalidate",void 0);I([R],wn.prototype,"formtarget",void 0);I([R],wn.prototype,"type",void 0);I([B],wn.prototype,"defaultSlottedContent",void 0);class ou{}I([R({attribute:"aria-expanded"})],ou.prototype,"ariaExpanded",void 0);I([R({attribute:"aria-pressed"})],ou.prototype,"ariaPressed",void 0);Dt(ou,we);Dt(wn,$o,ou);const jl={none:"none",default:"default",sticky:"sticky"},ar={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},vs={default:"default",header:"header",stickyHeader:"sticky-header"};let ct=class extends xe{constructor(){super(...arguments),this.rowType=vs.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Rx(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(fo,this.handleFocusout),this.addEventListener(ho,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(fo,this.handleFocusout),this.removeEventListener(ho,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case Hs:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Us:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case Eo:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case Ro:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===vs.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===vs.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};I([R({attribute:"grid-template-columns"})],ct.prototype,"gridTemplateColumns",void 0);I([R({attribute:"row-type"})],ct.prototype,"rowType",void 0);I([B],ct.prototype,"rowData",void 0);I([B],ct.prototype,"columnDefinitions",void 0);I([B],ct.prototype,"cellItemTemplate",void 0);I([B],ct.prototype,"headerCellItemTemplate",void 0);I([B],ct.prototype,"rowIndex",void 0);I([B],ct.prototype,"isActiveRow",void 0);I([B],ct.prototype,"activeCellItemTemplate",void 0);I([B],ct.prototype,"defaultCellItemTemplate",void 0);I([B],ct.prototype,"defaultHeaderCellItemTemplate",void 0);I([B],ct.prototype,"cellElements",void 0);function Q2(e){const t=e.tagFor(ct);return ce` +`,gv="form-associated-proxy",vv="ElementInternals",yv=vv in window&&"setFormValue"in window[vv].prototype,bv=new WeakMap;function pl(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return yv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return ei}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),te.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),te.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!yv)return null;let n=bv.get(this);return n||(n=this.attachInternals(),bv.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",gv),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",gv)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case dl:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return O({mode:"boolean"})(t.prototype,"disabled"),O({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),O({attribute:"current-value"})(t.prototype,"currentValue"),O(t.prototype,"name"),O({mode:"boolean"})(t.prototype,"required"),B(t.prototype,"value"),t}function Vx(e){class t extends pl(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return O({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),O({attribute:"current-checked",converter:Ix})(n.prototype,"currentChecked"),B(n.prototype,"defaultChecked"),B(n.prototype,"checked"),n}class qO extends we{}class QO extends pl(qO){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let $n=class extends QO{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};T([O({mode:"boolean"})],$n.prototype,"autofocus",void 0);T([O({attribute:"form"})],$n.prototype,"formId",void 0);T([O],$n.prototype,"formaction",void 0);T([O],$n.prototype,"formenctype",void 0);T([O],$n.prototype,"formmethod",void 0);T([O({mode:"boolean"})],$n.prototype,"formnovalidate",void 0);T([O],$n.prototype,"formtarget",void 0);T([O],$n.prototype,"type",void 0);T([B],$n.prototype,"defaultSlottedContent",void 0);class fu{}T([O({attribute:"aria-expanded"})],fu.prototype,"ariaExpanded",void 0);T([O({attribute:"aria-pressed"})],fu.prototype,"ariaPressed",void 0);Lt(fu,ke);Lt($n,Io,fu);const Wl={none:"none",default:"default",sticky:"sticky"},ur={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},ws={default:"default",header:"header",stickyHeader:"sticky-header"};let ut=class extends we{constructor(){super(...arguments),this.rowType=ws.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ax(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(ho,this.handleFocusout),this.addEventListener(po,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(ho,this.handleFocusout),this.removeEventListener(po,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case qs:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Qs:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case Ro:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case Po:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===ws.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===ws.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};T([O({attribute:"grid-template-columns"})],ut.prototype,"gridTemplateColumns",void 0);T([O({attribute:"row-type"})],ut.prototype,"rowType",void 0);T([B],ut.prototype,"rowData",void 0);T([B],ut.prototype,"columnDefinitions",void 0);T([B],ut.prototype,"cellItemTemplate",void 0);T([B],ut.prototype,"headerCellItemTemplate",void 0);T([B],ut.prototype,"rowIndex",void 0);T([B],ut.prototype,"isActiveRow",void 0);T([B],ut.prototype,"activeCellItemTemplate",void 0);T([B],ut.prototype,"defaultCellItemTemplate",void 0);T([B],ut.prototype,"defaultHeaderCellItemTemplate",void 0);T([B],ut.prototype,"cellElements",void 0);function XO(e){const t=e.tagFor(ut);return de` <${t} :rowData="${n=>n}" :cellItemTemplate="${(n,r)=>r.parent.cellItemTemplate}" :headerCellItemTemplate="${(n,r)=>r.parent.headerCellItemTemplate}" > -`}const X2=(e,t)=>{const n=Q2(e),r=e.tagFor(ct);return ce` +`}const YO=(e,t)=>{const n=XO(e),r=e.tagFor(ut);return de` - `};let ut=class _f extends xe{constructor(){super(),this.noTabbing=!1,this.generateHeader=jl.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,te.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=_f.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=_f.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Rx(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(cv,this.handleFocus),this.addEventListener(ho,this.handleKeydown),this.addEventListener(fo,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),te.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(cv,this.handleFocus),this.removeEventListener(ho,this.handleKeydown),this.removeEventListener(fo,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case hi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case fi:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case j2:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===jl.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case Eo:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case Ro:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,te.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==jl.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===jl.sticky?vs.stickyHeader:vs.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};ut.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));I([R({attribute:"no-tabbing",mode:"boolean"})],ut.prototype,"noTabbing",void 0);I([R({attribute:"generate-header"})],ut.prototype,"generateHeader",void 0);I([R({attribute:"grid-template-columns"})],ut.prototype,"gridTemplateColumns",void 0);I([B],ut.prototype,"rowsData",void 0);I([B],ut.prototype,"columnDefinitions",void 0);I([B],ut.prototype,"rowItemTemplate",void 0);I([B],ut.prototype,"cellItemTemplate",void 0);I([B],ut.prototype,"headerCellItemTemplate",void 0);I([B],ut.prototype,"focusRowIndex",void 0);I([B],ut.prototype,"focusColumnIndex",void 0);I([B],ut.prototype,"defaultRowItemTemplate",void 0);I([B],ut.prototype,"rowElementTag",void 0);I([B],ut.prototype,"rowElements",void 0);const Y2=ce` + `};let dt=class Bf extends we{constructor(){super(),this.noTabbing=!1,this.generateHeader=Wl.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,te.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Bf.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Bf.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ax(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(hv,this.handleFocus),this.addEventListener(po,this.handleKeydown),this.addEventListener(ho,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),te.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(hv,this.handleFocus),this.removeEventListener(po,this.handleKeydown),this.removeEventListener(ho,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case pi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case hi:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case zO:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===Wl.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case Ro:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case Po:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,te.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Wl.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Wl.sticky?ws.stickyHeader:ws.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};dt.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));T([O({attribute:"no-tabbing",mode:"boolean"})],dt.prototype,"noTabbing",void 0);T([O({attribute:"generate-header"})],dt.prototype,"generateHeader",void 0);T([O({attribute:"grid-template-columns"})],dt.prototype,"gridTemplateColumns",void 0);T([B],dt.prototype,"rowsData",void 0);T([B],dt.prototype,"columnDefinitions",void 0);T([B],dt.prototype,"rowItemTemplate",void 0);T([B],dt.prototype,"cellItemTemplate",void 0);T([B],dt.prototype,"headerCellItemTemplate",void 0);T([B],dt.prototype,"focusRowIndex",void 0);T([B],dt.prototype,"focusColumnIndex",void 0);T([B],dt.prototype,"defaultRowItemTemplate",void 0);T([B],dt.prototype,"rowElementTag",void 0);T([B],dt.prototype,"rowElements",void 0);const KO=de` -`,K2=ce` +`,JO=de` -`;let Nr=class extends xe{constructor(){super(...arguments),this.cellType=ar.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(uv,this.handleFocusin),this.addEventListener(fo,this.handleFocusout),this.addEventListener(ho,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(uv,this.handleFocusin),this.removeEventListener(fo,this.handleFocusout),this.removeEventListener(ho,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case ar.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===ar.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===ar.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case ll:case N2:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case ar.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case iu:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case ar.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=K2.render(this,this);break;case void 0:case ar.rowHeader:case ar.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Y2.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};I([R({attribute:"cell-type"})],Nr.prototype,"cellType",void 0);I([R({attribute:"grid-column"})],Nr.prototype,"gridColumn",void 0);I([B],Nr.prototype,"rowData",void 0);I([B],Nr.prototype,"columnDefinition",void 0);function J2(e){const t=e.tagFor(Nr);return ce` +`;let Nr=class extends we{constructor(){super(...arguments),this.cellType=ur.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(pv,this.handleFocusin),this.addEventListener(ho,this.handleFocusout),this.addEventListener(po,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(pv,this.handleFocusin),this.removeEventListener(ho,this.handleFocusout),this.removeEventListener(po,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case ur.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===ur.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===ur.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case dl:case FO:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case ur.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case du:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case ur.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=JO.render(this,this);break;case void 0:case ur.rowHeader:case ur.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=KO.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};T([O({attribute:"cell-type"})],Nr.prototype,"cellType",void 0);T([O({attribute:"grid-column"})],Nr.prototype,"gridColumn",void 0);T([B],Nr.prototype,"rowData",void 0);T([B],Nr.prototype,"columnDefinition",void 0);function ZO(e){const t=e.tagFor(Nr);return de` <${t} cell-type="${n=>n.isRowHeader?"rowheader":void 0}" grid-column="${(n,r)=>r.index+1}" :rowData="${(n,r)=>r.parent.rowData}" :columnDefinition="${n=>n}" > -`}function Z2(e){const t=e.tagFor(Nr);return ce` +`}function e2(e){const t=e.tagFor(Nr);return de` <${t} cell-type="columnheader" grid-column="${(n,r)=>r.index+1}" :columnDefinition="${n=>n}" > -`}const eO=(e,t)=>{const n=J2(e),r=Z2(e);return ce` +`}const t2=(e,t)=>{const n=ZO(e),r=e2(e);return de` - `},tO=(e,t)=>ce` + `},n2=(e,t)=>de` - `,nO=(e,t)=>ce` + `,r2=(e,t)=>de` -`;class rO extends xe{}class iO extends Fx(rO){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let su=class extends iO{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case al:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};I([R({attribute:"readonly",mode:"boolean"})],su.prototype,"readOnly",void 0);I([B],su.prototype,"defaultSlottedNodes",void 0);I([B],su.prototype,"indeterminate",void 0);function jx(e){return D2(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class Zn extends xe{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),ee.notify(this,"value")}get value(){var t;return ee.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}I([B],Zn.prototype,"checked",void 0);I([B],Zn.prototype,"content",void 0);I([B],Zn.prototype,"defaultSelected",void 0);I([R({mode:"boolean"})],Zn.prototype,"disabled",void 0);I([R({attribute:"selected",mode:"boolean"})],Zn.prototype,"selectedAttribute",void 0);I([B],Zn.prototype,"selected",void 0);I([R({attribute:"value",mode:"fromView"})],Zn.prototype,"initialValue",void 0);class Po{}I([B],Po.prototype,"ariaChecked",void 0);I([B],Po.prototype,"ariaPosInSet",void 0);I([B],Po.prototype,"ariaSelected",void 0);I([B],Po.prototype,"ariaSetSize",void 0);Dt(Po,we);Dt(Zn,$o,Po);class yt extends xe{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return ee.track(this,"options"),this._options}set options(t){this._options=t,ee.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{yt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,yt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case Eo:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case fi:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case hi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case Ro:{t.preventDefault(),this.selectLastOption();break}case yp:return this.focusAndScrollOptionIntoView(),!0;case ll:case iu:return!0;case al:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(yt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=ee.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=_2(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(jx(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=Xa("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}yt.slottedOptionFilter=e=>jx(e)&&!e.hidden;yt.TYPE_AHEAD_TIMEOUT_MS=1e3;I([R({mode:"boolean"})],yt.prototype,"disabled",void 0);I([B],yt.prototype,"selectedIndex",void 0);I([B],yt.prototype,"selectedOptions",void 0);I([B],yt.prototype,"slottedOptions",void 0);I([B],yt.prototype,"typeaheadBuffer",void 0);class pi{}I([B],pi.prototype,"ariaActiveDescendant",void 0);I([B],pi.prototype,"ariaDisabled",void 0);I([B],pi.prototype,"ariaExpanded",void 0);I([B],pi.prototype,"ariaMultiSelectable",void 0);Dt(pi,we);Dt(yt,pi);const hd={above:"above",below:"below"};function Af(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function oO(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Af(n)}return!1}const Hn=document.createElement("div");function sO(e){return e instanceof ru}class xp{setProperty(t,n){te.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){te.queueUpdate(()=>this.target.removeProperty(t))}}class lO extends xp{constructor(t){super();const n=new CSSStyleSheet;n[yx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(Ot.create([n]))}}class aO extends xp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class cO extends xp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class zx{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),ee.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),te.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),te.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}I([B],zx.prototype,"target",void 0);class uO{constructor(t){this.target=t.style}setProperty(t,n){te.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){te.queueUpdate(()=>this.target.removeProperty(t))}}class We{setProperty(t,n){We.properties[t]=n;for(const r of We.roots.values())Ni.getOrCreate(We.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete We.properties[t];for(const n of We.roots.values())Ni.getOrCreate(We.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=We;if(!n.has(t)){n.add(t);const r=Ni.getOrCreate(this.normalizeRoot(t));for(const i in We.properties)r.setProperty(i,We.properties[i])}}static unregisterRoot(t){const{roots:n}=We;if(n.has(t)){n.delete(t);const r=Ni.getOrCreate(We.normalizeRoot(t));for(const i in We.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===Hn?document:t}}We.roots=new Set;We.properties={};const pd=new WeakMap,dO=te.supportsAdoptedStyleSheets?lO:zx,Ni=Object.freeze({getOrCreate(e){if(pd.has(e))return pd.get(e);let t;return e===Hn?t=new We:e instanceof Document?t=te.supportsAdoptedStyleSheets?new aO:new cO:sO(e)?t=new dO(e):t=new uO(e),pd.set(e,t),t}});class mt extends Sx{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=mt.uniqueId(),mt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new mt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return mt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=_e.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof mt&&(n=this.alias(n)),_e.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),_e.existsFor(t)&&_e.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Hn,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!_e.existsFor(n)&&_e.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}mt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();mt.tokensById=new Map;class fO{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Ni.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(_e.getOrCreate(n).get(t)))}remove(t,n){Ni.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class hO{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=ee.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,ms))}}class pO{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),ee.getNotifier(this).notify(t.id))}get(t){return ee.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Yo=new WeakMap,Ko=new WeakMap;class _e{constructor(t){this.target=t,this.store=new pO,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=mt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},Yo.set(t,this),ee.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof ru?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Yo.get(t)||new _e(t)}static existsFor(t){return Yo.has(t)}static findParent(t){if(Hn!==t.target){let n=Af(t.target);for(;n!==null;){if(Yo.has(n))return Yo.get(n);n=Af(n)}return _e.getOrCreate(Hn)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Hn?_e.getOrCreate(Hn):null}while(r!==null);return null}get parent(){return Ko.get(this)||null}updateCSSTokenReflection(t,n){if(mt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=_e.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){mt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),mt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=_e.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&Ko.get(this).removeChild(this)}appendChild(t){t.parent&&Ko.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));Ko.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),ee.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),ee.getNotifier(this.store).unsubscribe(t),t.parent===this?Ko.delete(t):!1}contains(t){return oO(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),_e.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),_e.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=mt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);mt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new hO(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}_e.cssCustomPropertyReflector=new fO;I([B],_e.prototype,"children",void 0);function mO(e){return mt.from(e)}const Bx=Object.freeze({create:mO,notifyConnection(e){return!e.isConnected||!_e.existsFor(e)?!1:(_e.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!_e.existsFor(e)?!1:(_e.getOrCreate(e).unbind(),!0)},registerRoot(e=Hn){We.registerRoot(e)},unregisterRoot(e=Hn){We.unregisterRoot(e)}}),md=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),gd=new Map,aa=new Map;let Ki=null;const Jo=Se.createInterface(e=>e.cachedCallback(t=>(Ki===null&&(Ki=new Hx(null,t)),Ki))),Vx=Object.freeze({tagFor(e){return aa.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||Se.findResponsibleContainer(e).get(Jo)},getOrCreate(e){if(!e)return Ki===null&&(Ki=Se.getOrCreateDOMContainer().get(Jo)),Ki;const t=e.$$designSystem$$;if(t)return t;const n=Se.getOrCreateDOMContainer(e);if(n.has(Jo,!1))return n.get(Jo);{const r=new Hx(e,n);return n.register(Vs.instance(Jo,r)),r}}});function gO(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class Hx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>md.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const u=gO(l,a,c),{name:d,callback:f,baseClass:v}=u;let{type:g}=u,p=d,b=gd.get(p),m=!0;for(;b;){const h=i(p,g,b);switch(h){case md.ignoreDuplicate:return;case md.definitionCallbackOnly:m=!1,b=void 0;break;default:p=h,b=gd.get(p);break}}m&&((aa.has(g)||g===xe)&&(g=class extends g{}),gd.set(p,g),aa.set(g,p),v&&aa.set(v,p)),r.push(new vO(n,p,g,o,f,m))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Bx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class vO{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){Mx.define(this.name,t,this.container)}defineElement(t){this.definition=new sl(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Vx.tagFor(t)}}const yO=(e,t)=>ce` +`;class i2 extends we{}class o2 extends Vx(i2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let hu=class extends o2{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case fl:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};T([O({attribute:"readonly",mode:"boolean"})],hu.prototype,"readOnly",void 0);T([B],hu.prototype,"defaultSlottedNodes",void 0);T([B],hu.prototype,"indeterminate",void 0);function Hx(e){return MO(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class rr extends we{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),ee.notify(this,"value")}get value(){var t;return ee.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}T([B],rr.prototype,"checked",void 0);T([B],rr.prototype,"content",void 0);T([B],rr.prototype,"defaultSelected",void 0);T([O({mode:"boolean"})],rr.prototype,"disabled",void 0);T([O({attribute:"selected",mode:"boolean"})],rr.prototype,"selectedAttribute",void 0);T([B],rr.prototype,"selected",void 0);T([O({attribute:"value",mode:"fromView"})],rr.prototype,"initialValue",void 0);class Oo{}T([B],Oo.prototype,"ariaChecked",void 0);T([B],Oo.prototype,"ariaPosInSet",void 0);T([B],Oo.prototype,"ariaSelected",void 0);T([B],Oo.prototype,"ariaSetSize",void 0);Lt(Oo,ke);Lt(rr,Io,Oo);class wt extends we{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return ee.track(this,"options"),this._options}set options(t){this._options=t,ee.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{wt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,wt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case Ro:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case hi:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case pi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case Po:{t.preventDefault(),this.selectLastOption();break}case Tp:return this.focusAndScrollOptionIntoView(),!0;case dl:case du:return!0;case fl:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(wt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=ee.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=AO(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(Hx(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=tc("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}wt.slottedOptionFilter=e=>Hx(e)&&!e.hidden;wt.TYPE_AHEAD_TIMEOUT_MS=1e3;T([O({mode:"boolean"})],wt.prototype,"disabled",void 0);T([B],wt.prototype,"selectedIndex",void 0);T([B],wt.prototype,"selectedOptions",void 0);T([B],wt.prototype,"slottedOptions",void 0);T([B],wt.prototype,"typeaheadBuffer",void 0);class mi{}T([B],mi.prototype,"ariaActiveDescendant",void 0);T([B],mi.prototype,"ariaDisabled",void 0);T([B],mi.prototype,"ariaExpanded",void 0);T([B],mi.prototype,"ariaMultiSelectable",void 0);Lt(mi,ke);Lt(wt,mi);const kd={above:"above",below:"below"};function Vf(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function s2(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Vf(n)}return!1}const qn=document.createElement("div");function l2(e){return e instanceof uu}class Rp{setProperty(t,n){te.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){te.queueUpdate(()=>this.target.removeProperty(t))}}class a2 extends Rp{constructor(t){super();const n=new CSSStyleSheet;n[kx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(At.create([n]))}}class c2 extends Rp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class u2 extends Rp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class Ux{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),ee.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),te.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),te.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}T([B],Ux.prototype,"target",void 0);class d2{constructor(t){this.target=t.style}setProperty(t,n){te.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){te.queueUpdate(()=>this.target.removeProperty(t))}}class qe{setProperty(t,n){qe.properties[t]=n;for(const r of qe.roots.values())Fi.getOrCreate(qe.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete qe.properties[t];for(const n of qe.roots.values())Fi.getOrCreate(qe.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=qe;if(!n.has(t)){n.add(t);const r=Fi.getOrCreate(this.normalizeRoot(t));for(const i in qe.properties)r.setProperty(i,qe.properties[i])}}static unregisterRoot(t){const{roots:n}=qe;if(n.has(t)){n.delete(t);const r=Fi.getOrCreate(qe.normalizeRoot(t));for(const i in qe.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===qn?document:t}}qe.roots=new Set;qe.properties={};const Cd=new WeakMap,f2=te.supportsAdoptedStyleSheets?a2:Ux,Fi=Object.freeze({getOrCreate(e){if(Cd.has(e))return Cd.get(e);let t;return e===qn?t=new qe:e instanceof Document?t=te.supportsAdoptedStyleSheets?new c2:new u2:l2(e)?t=new f2(e):t=new d2(e),Cd.set(e,t),t}});class yt extends Ex{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=yt.uniqueId(),yt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new yt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return yt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=Ae.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof yt&&(n=this.alias(n)),Ae.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),Ae.existsFor(t)&&Ae.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(qn,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!Ae.existsFor(n)&&Ae.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}yt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();yt.tokensById=new Map;class h2{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Fi.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(Ae.getOrCreate(n).get(t)))}remove(t,n){Fi.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class p2{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=ee.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,bs))}}class m2{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),ee.getNotifier(this).notify(t.id))}get(t){return ee.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const es=new WeakMap,ts=new WeakMap;class Ae{constructor(t){this.target=t,this.store=new m2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=yt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},es.set(t,this),ee.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof uu?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return es.get(t)||new Ae(t)}static existsFor(t){return es.has(t)}static findParent(t){if(qn!==t.target){let n=Vf(t.target);for(;n!==null;){if(es.has(n))return es.get(n);n=Vf(n)}return Ae.getOrCreate(qn)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==qn?Ae.getOrCreate(qn):null}while(r!==null);return null}get parent(){return ts.get(this)||null}updateCSSTokenReflection(t,n){if(yt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=Ae.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){yt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),yt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=Ae.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&ts.get(this).removeChild(this)}appendChild(t){t.parent&&ts.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));ts.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),ee.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),ee.getNotifier(this.store).unsubscribe(t),t.parent===this?ts.delete(t):!1}contains(t){return s2(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Ae.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Ae.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=yt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);yt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new p2(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}Ae.cssCustomPropertyReflector=new h2;T([B],Ae.prototype,"children",void 0);function g2(e){return yt.from(e)}const Wx=Object.freeze({create:g2,notifyConnection(e){return!e.isConnected||!Ae.existsFor(e)?!1:(Ae.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!Ae.existsFor(e)?!1:(Ae.getOrCreate(e).unbind(),!0)},registerRoot(e=qn){qe.registerRoot(e)},unregisterRoot(e=qn){qe.unregisterRoot(e)}}),Sd=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),$d=new Map,pa=new Map;let Ji=null;const ns=$e.createInterface(e=>e.cachedCallback(t=>(Ji===null&&(Ji=new qx(null,t)),Ji))),Gx=Object.freeze({tagFor(e){return pa.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||$e.findResponsibleContainer(e).get(ns)},getOrCreate(e){if(!e)return Ji===null&&(Ji=$e.getOrCreateDOMContainer().get(ns)),Ji;const t=e.$$designSystem$$;if(t)return t;const n=$e.getOrCreateDOMContainer(e);if(n.has(ns,!1))return n.get(ns);{const r=new qx(e,n);return n.register(Gs.instance(ns,r)),r}}});function v2(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class qx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Sd.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const u=v2(l,a,c),{name:d,callback:f,baseClass:v}=u;let{type:m}=u,g=d,b=$d.get(g),p=!0;for(;b;){const h=i(g,m,b);switch(h){case Sd.ignoreDuplicate:return;case Sd.definitionCallbackOnly:p=!1,b=void 0;break;default:g=h,b=$d.get(g);break}}p&&((pa.has(m)||m===we)&&(m=class extends m{}),$d.set(g,m),pa.set(m,g),v&&pa.set(v,g)),r.push(new y2(n,g,m,o,f,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Wx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class y2{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){jx.define(this.name,t,this.container)}defineElement(t){this.definition=new ul(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Gx.tagFor(t)}}const b2=(e,t)=>de` -`,bO={separator:"separator",presentation:"presentation"};let wp=class extends xe{constructor(){super(...arguments),this.role=bO.separator,this.orientation=vp.horizontal}};I([R],wp.prototype,"role",void 0);I([R],wp.prototype,"orientation",void 0);const xO=(e,t)=>ce` +`,x2={separator:"separator",presentation:"presentation"};let Pp=class extends we{constructor(){super(...arguments),this.role=x2.separator,this.orientation=Ip.horizontal}};T([O],Pp.prototype,"role",void 0);T([O],Pp.prototype,"orientation",void 0);const w2=(e,t)=>de` -`;class lu extends yt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=Fl(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Fl(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Fl(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=Fl(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case Eo:{this.checkFirstOption(r);return}case fi:{this.checkNextOption(r);return}case hi:{this.checkPreviousOption(r);return}case Ro:{this.checkLastOption(r);return}case yp:return this.focusAndScrollOptionIntoView(),!0;case iu:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case al:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&te.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}I([B],lu.prototype,"activeIndex",void 0);I([R({mode:"boolean"})],lu.prototype,"multiple",void 0);I([R({converter:bn})],lu.prototype,"size",void 0);class wO extends xe{}class kO extends ul(wO){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const CO={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let Wt=class extends kO{constructor(){super(...arguments),this.type=CO.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&te.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};I([R({attribute:"readonly",mode:"boolean"})],Wt.prototype,"readOnly",void 0);I([R({mode:"boolean"})],Wt.prototype,"autofocus",void 0);I([R],Wt.prototype,"placeholder",void 0);I([R],Wt.prototype,"type",void 0);I([R],Wt.prototype,"list",void 0);I([R({converter:bn})],Wt.prototype,"maxlength",void 0);I([R({converter:bn})],Wt.prototype,"minlength",void 0);I([R],Wt.prototype,"pattern",void 0);I([R({converter:bn})],Wt.prototype,"size",void 0);I([R({mode:"boolean"})],Wt.prototype,"spellcheck",void 0);I([B],Wt.prototype,"defaultSlottedNodes",void 0);class kp{}Dt(kp,we);Dt(Wt,$o,kp);const gv=44,SO=(e,t)=>ce` +`;class pu extends wt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=Ul(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ul(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ul(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=Ul(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case Ro:{this.checkFirstOption(r);return}case hi:{this.checkNextOption(r);return}case pi:{this.checkPreviousOption(r);return}case Po:{this.checkLastOption(r);return}case Tp:return this.focusAndScrollOptionIntoView(),!0;case du:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case fl:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&te.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}T([B],pu.prototype,"activeIndex",void 0);T([O({mode:"boolean"})],pu.prototype,"multiple",void 0);T([O({converter:Cn})],pu.prototype,"size",void 0);class k2 extends we{}class C2 extends pl(k2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const S2={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let qt=class extends C2{constructor(){super(...arguments),this.type=S2.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&te.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};T([O({attribute:"readonly",mode:"boolean"})],qt.prototype,"readOnly",void 0);T([O({mode:"boolean"})],qt.prototype,"autofocus",void 0);T([O],qt.prototype,"placeholder",void 0);T([O],qt.prototype,"type",void 0);T([O],qt.prototype,"list",void 0);T([O({converter:Cn})],qt.prototype,"maxlength",void 0);T([O({converter:Cn})],qt.prototype,"minlength",void 0);T([O],qt.prototype,"pattern",void 0);T([O({converter:Cn})],qt.prototype,"size",void 0);T([O({mode:"boolean"})],qt.prototype,"spellcheck",void 0);T([B],qt.prototype,"defaultSlottedNodes",void 0);class Op{}Lt(Op,ke);Lt(qt,Io,Op);const xv=44,$2=(e,t)=>de` -`;class Oo extends xe{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}I([R({converter:bn})],Oo.prototype,"value",void 0);I([R({converter:bn})],Oo.prototype,"min",void 0);I([R({converter:bn})],Oo.prototype,"max",void 0);I([R({mode:"boolean"})],Oo.prototype,"paused",void 0);I([B],Oo.prototype,"percentComplete",void 0);const $O=(e,t)=>ce` +`;class _o extends we{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}T([O({converter:Cn})],_o.prototype,"value",void 0);T([O({converter:Cn})],_o.prototype,"min",void 0);T([O({converter:Cn})],_o.prototype,"max",void 0);T([O({mode:"boolean"})],_o.prototype,"paused",void 0);T([B],_o.prototype,"percentComplete",void 0);const I2=(e,t)=>de` -`;let Fr=class extends xe{constructor(){super(...arguments),this.orientation=vp.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Us,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===Hs,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in z2&&this.isInsideFoundationToolbar)return!0;switch(n){case ll:{this.checkFocusedRadio();break}case Us:case fi:{this.direction===po.ltr?this.moveRight(t):this.moveLeft(t);break}case Hs:case hi:{this.direction===po.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=U2(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};I([R({attribute:"readonly",mode:"boolean"})],Fr.prototype,"readOnly",void 0);I([R({attribute:"disabled",mode:"boolean"})],Fr.prototype,"disabled",void 0);I([R],Fr.prototype,"name",void 0);I([R],Fr.prototype,"value",void 0);I([R],Fr.prototype,"orientation",void 0);I([B],Fr.prototype,"childItems",void 0);I([B],Fr.prototype,"slottedRadioButtons",void 0);const IO=(e,t)=>ce` +`;let Fr=class extends we{constructor(){super(...arguments),this.orientation=Ip.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Qs,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===qs,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in BO&&this.isInsideFoundationToolbar)return!0;switch(n){case dl:{this.checkFocusedRadio();break}case Qs:case hi:{this.direction===mo.ltr?this.moveRight(t):this.moveLeft(t);break}case qs:case pi:{this.direction===mo.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=WO(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};T([O({attribute:"readonly",mode:"boolean"})],Fr.prototype,"readOnly",void 0);T([O({attribute:"disabled",mode:"boolean"})],Fr.prototype,"disabled",void 0);T([O],Fr.prototype,"name",void 0);T([O],Fr.prototype,"value",void 0);T([O],Fr.prototype,"orientation",void 0);T([B],Fr.prototype,"childItems",void 0);T([B],Fr.prototype,"slottedRadioButtons",void 0);const T2=(e,t)=>de` -`;class TO extends xe{}class EO extends Fx(TO){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let au=class extends EO{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case al:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};I([R({attribute:"readonly",mode:"boolean"})],au.prototype,"readOnly",void 0);I([B],au.prototype,"name",void 0);I([B],au.prototype,"defaultSlottedNodes",void 0);function RO(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class PO extends lu{}class OO extends ul(PO){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class jr extends OO{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Xa("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,te.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return ee.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const u=this._options.findIndex(v=>v.value===t),d=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[u])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(u===-1||d!==f)&&(t="",this.selectedIndex=u),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),ee.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?hd.above:hd.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===hd.above?~~t.top:~~r}get displayValue(){var t,n;return ee.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{ee.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{ee.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(yt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case al:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case Eo:case Ro:{t.preventDefault();break}case ll:{t.preventDefault(),this.open=!this.open;break}case iu:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case yp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===fi||n===hi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&ee.notify(this,"displayValue")}}I([R({attribute:"open",mode:"boolean"})],jr.prototype,"open",void 0);I([DP],jr.prototype,"collapsible",null);I([B],jr.prototype,"control",void 0);I([R({attribute:"position"})],jr.prototype,"positionAttribute",void 0);I([B],jr.prototype,"position",void 0);I([B],jr.prototype,"maxHeight",void 0);class Cp{}I([B],Cp.prototype,"ariaControls",void 0);Dt(Cp,pi);Dt(jr,$o,Cp);const _O=(e,t)=>ce` +`;class E2 extends we{}class R2 extends Vx(E2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let mu=class extends R2{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case fl:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};T([O({attribute:"readonly",mode:"boolean"})],mu.prototype,"readOnly",void 0);T([B],mu.prototype,"name",void 0);T([B],mu.prototype,"defaultSlottedNodes",void 0);function P2(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class O2 extends pu{}class _2 extends pl(O2){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class jr extends _2{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=tc("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,te.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return ee.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const u=this._options.findIndex(v=>v.value===t),d=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[u])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(u===-1||d!==f)&&(t="",this.selectedIndex=u),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),ee.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?kd.above:kd.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===kd.above?~~t.top:~~r}get displayValue(){var t,n;return ee.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{ee.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{ee.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(wt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case fl:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case Ro:case Po:{t.preventDefault();break}case dl:{t.preventDefault(),this.open=!this.open;break}case du:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case Tp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===hi||n===pi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&ee.notify(this,"displayValue")}}T([O({attribute:"open",mode:"boolean"})],jr.prototype,"open",void 0);T([MP],jr.prototype,"collapsible",null);T([B],jr.prototype,"control",void 0);T([O({attribute:"position"})],jr.prototype,"positionAttribute",void 0);T([B],jr.prototype,"position",void 0);T([B],jr.prototype,"maxHeight",void 0);class _p{}T([B],_p.prototype,"ariaControls",void 0);Lt(_p,mi);Lt(jr,Io,_p);const A2=(e,t)=>de` -`,AO=(e,t)=>ce` +`,D2=(e,t)=>de` -`;class DO extends xe{}const MO=(e,t)=>ce` +`;class M2 extends we{}const L2=(e,t)=>de` -`;class Ux extends xe{}I([R({mode:"boolean"})],Ux.prototype,"disabled",void 0);const LO=(e,t)=>ce` +`;class Qx extends we{}T([O({mode:"boolean"})],Qx.prototype,"disabled",void 0);const N2=(e,t)=>de` -`,Df={vertical:"vertical",horizontal:"horizontal"};class er extends xe{constructor(){super(...arguments),this.orientation=Df.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Hs:t.preventDefault(),this.adjustBackward(t);break;case Us:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case hi:t.preventDefault(),this.adjustBackward(t);break;case fi:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Eo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ro:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${Xa()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${Xa()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Df.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=B2(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}I([R],er.prototype,"orientation",void 0);I([R],er.prototype,"activeid",void 0);I([B],er.prototype,"tabs",void 0);I([B],er.prototype,"tabpanels",void 0);I([R({mode:"boolean"})],er.prototype,"activeindicator",void 0);I([B],er.prototype,"activeIndicatorRef",void 0);I([B],er.prototype,"showActiveIndicator",void 0);Dt(er,$o);class NO extends xe{}class FO extends ul(NO){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Wx={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let St=class extends FO{constructor(){super(...arguments),this.resize=Wx.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};I([R({mode:"boolean"})],St.prototype,"readOnly",void 0);I([R],St.prototype,"resize",void 0);I([R({mode:"boolean"})],St.prototype,"autofocus",void 0);I([R({attribute:"form"})],St.prototype,"formId",void 0);I([R],St.prototype,"list",void 0);I([R({converter:bn})],St.prototype,"maxlength",void 0);I([R({converter:bn})],St.prototype,"minlength",void 0);I([R],St.prototype,"name",void 0);I([R],St.prototype,"placeholder",void 0);I([R({converter:bn,mode:"fromView"})],St.prototype,"cols",void 0);I([R({converter:bn,mode:"fromView"})],St.prototype,"rows",void 0);I([R({mode:"boolean"})],St.prototype,"spellcheck",void 0);I([B],St.prototype,"defaultSlottedNodes",void 0);Dt(St,kp);const jO=(e,t)=>ce` +`,Hf={vertical:"vertical",horizontal:"horizontal"};class ir extends we{constructor(){super(...arguments),this.orientation=Hf.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case qs:t.preventDefault(),this.adjustBackward(t);break;case Qs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case pi:t.preventDefault(),this.adjustBackward(t);break;case hi:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Ro:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Po:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${tc()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${tc()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Hf.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=VO(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}T([O],ir.prototype,"orientation",void 0);T([O],ir.prototype,"activeid",void 0);T([B],ir.prototype,"tabs",void 0);T([B],ir.prototype,"tabpanels",void 0);T([O({mode:"boolean"})],ir.prototype,"activeindicator",void 0);T([B],ir.prototype,"activeIndicatorRef",void 0);T([B],ir.prototype,"showActiveIndicator",void 0);Lt(ir,Io);class F2 extends we{}class j2 extends pl(F2){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Xx={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let It=class extends j2{constructor(){super(...arguments),this.resize=Xx.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};T([O({mode:"boolean"})],It.prototype,"readOnly",void 0);T([O],It.prototype,"resize",void 0);T([O({mode:"boolean"})],It.prototype,"autofocus",void 0);T([O({attribute:"form"})],It.prototype,"formId",void 0);T([O],It.prototype,"list",void 0);T([O({converter:Cn})],It.prototype,"maxlength",void 0);T([O({converter:Cn})],It.prototype,"minlength",void 0);T([O],It.prototype,"name",void 0);T([O],It.prototype,"placeholder",void 0);T([O({converter:Cn,mode:"fromView"})],It.prototype,"cols",void 0);T([O({converter:Cn,mode:"fromView"})],It.prototype,"rows",void 0);T([O({mode:"boolean"})],It.prototype,"spellcheck",void 0);T([B],It.prototype,"defaultSlottedNodes",void 0);Lt(It,Op);const z2=(e,t)=>de` -`,zO=(e,t)=>ce` +`,B2=(e,t)=>de` -`,Or="not-allowed",BO=":host([hidden]){display:none}";function dt(e){return`${BO}:host{display:${e}}`}const at=L2()?"focus-visible":"focus",VO=new Set(["children","localName","ref","style","className"]),HO=Object.freeze(Object.create(null)),vv="_default",zl=new Map;function UO(e,t){typeof e=="function"?e(t):e.current=t}function Gx(e,t){if(!t.name){const n=sl.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function Mf(e){return e.events||(e.events={})}function yv(e,t,n){return VO.has(n)?(console.warn(`${Gx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function WO(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Mf(t))));else{const n=new Set(Object.keys(Mf(t))),r=ee.getAccessors(e.prototype);if(r.length>0)for(const i of r)yv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&yv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function GO(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof Lx&&(t?t.register(o):n.push(o),o=o.type);const c=zl.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:vv);if(f)return f}class u extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const g=this._element;if(g===null)return;const p=this.props,b=v||HO,m=Mf(s);for(const h in this._elementProps){const y=p[h],w=m[h];if(w===void 0)g[h]=y;else{const C=b[h];if(y===C)continue;C!==void 0&&g.removeEventListener(w,C),y!==void 0&&g.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&UO(v,h),this._userRef=v});const g={ref:this._ref},p=this._elementProps={},b=WO(o,s),m=this.props;for(const h in m){const y=m[h];b.has(h)?p[h]=y:g[h==="className"?"class":h]=y}return e.createElement(Gx(o,s),g)}}const d=e.forwardRef((f,v)=>e.createElement(u,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return zl.has(o)||zl.set(o,new Map),zl.get(o).set((a=s.name)!==null&&a!==void 0?a:vv,d),d}return{wrap:i,registry:r}}function qx(e){return Vx.getOrCreate(e).withPrefix("vscode")}function qO(e){window.addEventListener("load",()=>{new MutationObserver(()=>{bv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),bv(e)})}function bv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const xv=new Map;let wv=!1;function F(e,t){const n=Bx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}xv.set(t,n)}return wv||(qO(xv),wv=!0),n}const QO=F("background","--vscode-editor-background").withDefault("#1e1e1e"),re=F("border-width").withDefault(1),Qx=F("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");F("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const dl=F("corner-radius").withDefault(0),Ji=F("corner-radius-round").withDefault(2),Q=F("design-unit").withDefault(4),mi=F("disabled-opacity").withDefault(.4),De=F("focus-border","--vscode-focusBorder").withDefault("#007fd4"),cn=F("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");F("font-weight","--vscode-font-weight").withDefault("400");const st=F("foreground","--vscode-foreground").withDefault("#cccccc"),ca=F("input-height").withDefault("26"),Sp=F("input-min-width").withDefault("100px"),wt=F("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),At=F("type-ramp-base-line-height").withDefault("normal"),Xx=F("type-ramp-minus1-font-size").withDefault("11px"),Yx=F("type-ramp-minus1-line-height").withDefault("16px");F("type-ramp-minus2-font-size").withDefault("9px");F("type-ramp-minus2-line-height").withDefault("16px");F("type-ramp-plus1-font-size").withDefault("16px");F("type-ramp-plus1-line-height").withDefault("24px");const XO=F("scrollbarWidth").withDefault("10px"),YO=F("scrollbarHeight").withDefault("10px"),KO=F("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),JO=F("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),ZO=F("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Kx=F("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Jx=F("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),$p=F("button-border","--vscode-button-border").withDefault("transparent"),kv=F("button-icon-background").withDefault("transparent"),e_=F("button-icon-corner-radius").withDefault("5px"),t_=F("button-icon-outline-offset").withDefault(0),Cv=F("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),n_=F("button-icon-padding").withDefault("3px"),Zi=F("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Zx=F("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),e1=F("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),vd=F("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),r_=F("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),i_=F("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),o_=F("button-padding-horizontal").withDefault("11px"),s_=F("button-padding-vertical").withDefault("4px"),jn=F("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Fi=F("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),l_=F("checkbox-corner-radius").withDefault(3);F("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Wr=F("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),eo=F("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),a_=F("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),c_=F("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Bl=F("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ir=F("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");F("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const u_=F("dropdown-list-max-height").withDefault("200px"),Yr=F("input-background","--vscode-input-background").withDefault("#3c3c3c"),t1=F("input-foreground","--vscode-input-foreground").withDefault("#cccccc");F("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const Sv=F("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),d_=F("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),f_=F("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),h_=F("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Si=F("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),p_=F("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");F("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");F("panel-view-border","--vscode-panel-border").withDefault("#80808059");const m_=F("tag-corner-radius").withDefault("2px"),g_=(e,t)=>Ee` - ${dt("inline-block")} :host { +`,Or="not-allowed",V2=":host([hidden]){display:none}";function ft(e){return`${V2}:host{display:${e}}`}const ct=NO()?"focus-visible":"focus",H2=new Set(["children","localName","ref","style","className"]),U2=Object.freeze(Object.create(null)),wv="_default",Gl=new Map;function W2(e,t){typeof e=="function"?e(t):e.current=t}function Yx(e,t){if(!t.name){const n=ul.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function Uf(e){return e.events||(e.events={})}function kv(e,t,n){return H2.has(n)?(console.warn(`${Yx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function G2(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Uf(t))));else{const n=new Set(Object.keys(Uf(t))),r=ee.getAccessors(e.prototype);if(r.length>0)for(const i of r)kv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&kv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function q2(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof zx&&(t?t.register(o):n.push(o),o=o.type);const c=Gl.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:wv);if(f)return f}class u extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const m=this._element;if(m===null)return;const g=this.props,b=v||U2,p=Uf(s);for(const h in this._elementProps){const y=g[h],w=p[h];if(w===void 0)m[h]=y;else{const C=b[h];if(y===C)continue;C!==void 0&&m.removeEventListener(w,C),y!==void 0&&m.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&W2(v,h),this._userRef=v});const m={ref:this._ref},g=this._elementProps={},b=G2(o,s),p=this.props;for(const h in p){const y=p[h];b.has(h)?g[h]=y:m[h==="className"?"class":h]=y}return e.createElement(Yx(o,s),m)}}const d=e.forwardRef((f,v)=>e.createElement(u,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return Gl.has(o)||Gl.set(o,new Map),Gl.get(o).set((a=s.name)!==null&&a!==void 0?a:wv,d),d}return{wrap:i,registry:r}}function Kx(e){return Gx.getOrCreate(e).withPrefix("vscode")}function Q2(e){window.addEventListener("load",()=>{new MutationObserver(()=>{Cv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Cv(e)})}function Cv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const Sv=new Map;let $v=!1;function j(e,t){const n=Wx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}Sv.set(t,n)}return $v||(Q2(Sv),$v=!0),n}const X2=j("background","--vscode-editor-background").withDefault("#1e1e1e"),re=j("border-width").withDefault(1),Jx=j("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");j("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const ml=j("corner-radius").withDefault(0),Zi=j("corner-radius-round").withDefault(2),Q=j("design-unit").withDefault(4),gi=j("disabled-opacity").withDefault(.4),Me=j("focus-border","--vscode-focusBorder").withDefault("#007fd4"),dn=j("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");j("font-weight","--vscode-font-weight").withDefault("400");const st=j("foreground","--vscode-foreground").withDefault("#cccccc"),ma=j("input-height").withDefault("26"),Ap=j("input-min-width").withDefault("100px"),Ct=j("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Mt=j("type-ramp-base-line-height").withDefault("normal"),Zx=j("type-ramp-minus1-font-size").withDefault("11px"),e1=j("type-ramp-minus1-line-height").withDefault("16px");j("type-ramp-minus2-font-size").withDefault("9px");j("type-ramp-minus2-line-height").withDefault("16px");j("type-ramp-plus1-font-size").withDefault("16px");j("type-ramp-plus1-line-height").withDefault("24px");const Y2=j("scrollbarWidth").withDefault("10px"),K2=j("scrollbarHeight").withDefault("10px"),J2=j("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Z2=j("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),e_=j("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),t1=j("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),n1=j("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Dp=j("button-border","--vscode-button-border").withDefault("transparent"),Iv=j("button-icon-background").withDefault("transparent"),t_=j("button-icon-corner-radius").withDefault("5px"),n_=j("button-icon-outline-offset").withDefault(0),Tv=j("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),r_=j("button-icon-padding").withDefault("3px"),eo=j("button-primary-background","--vscode-button-background").withDefault("#0e639c"),r1=j("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),i1=j("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Id=j("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),i_=j("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),o_=j("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),s_=j("button-padding-horizontal").withDefault("11px"),l_=j("button-padding-vertical").withDefault("4px"),Hn=j("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),ji=j("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),a_=j("checkbox-corner-radius").withDefault(3);j("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Gr=j("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),to=j("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),c_=j("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),u_=j("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),ql=j("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ir=j("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");j("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const d_=j("dropdown-list-max-height").withDefault("200px"),Kr=j("input-background","--vscode-input-background").withDefault("#3c3c3c"),o1=j("input-foreground","--vscode-input-foreground").withDefault("#cccccc");j("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const Ev=j("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),f_=j("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),h_=j("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),p_=j("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),$i=j("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),m_=j("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");j("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");j("panel-view-border","--vscode-panel-border").withDefault("#80808059");const g_=j("tag-corner-radius").withDefault("2px"),v_=(e,t)=>Re` + ${ft("inline-block")} :host { box-sizing: border-box; - font-family: ${cn}; - font-size: ${Xx}; - line-height: ${Yx}; + font-family: ${dn}; + font-size: ${Zx}; + line-height: ${e1}; text-align: center; } .control { align-items: center; - background-color: ${Kx}; - border: calc(${re} * 1px) solid ${$p}; + background-color: ${t1}; + border: calc(${re} * 1px) solid ${Dp}; border-radius: 11px; box-sizing: border-box; - color: ${Jx}; + color: ${n1}; display: flex; height: calc(${Q} * 4px); justify-content: center; @@ -694,15 +694,15 @@ PERFORMANCE OF THIS SOFTWARE. min-height: calc(${Q} * 4px + 2px); padding: 3px 6px; } -`;class v_ extends cl{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const n1=v_.compose({baseName:"badge",template:Nx,styles:g_});function y_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const b_=Ee` - ${dt("inline-flex")} :host { +`;class y_ extends hl{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const s1=y_.compose({baseName:"badge",template:Bx,styles:v_});function b_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const x_=Re` + ${ft("inline-flex")} :host { outline: none; - font-family: ${cn}; - font-size: ${wt}; - line-height: ${At}; - color: ${Zx}; - background: ${Zi}; - border-radius: calc(${Ji} * 1px); + font-family: ${dn}; + font-size: ${Ct}; + line-height: ${Mt}; + color: ${r1}; + background: ${eo}; + border-radius: calc(${Zi} * 1px); fill: currentColor; cursor: pointer; } @@ -714,11 +714,11 @@ PERFORMANCE OF THIS SOFTWARE. display: inline-flex; justify-content: center; align-items: center; - padding: ${s_} ${o_}; + padding: ${l_} ${s_}; white-space: wrap; outline: none; text-decoration: none; - border: calc(${re} * 1px) solid ${$p}; + border: calc(${re} * 1px) solid ${Dp}; color: inherit; border-radius: inherit; fill: inherit; @@ -726,21 +726,21 @@ PERFORMANCE OF THIS SOFTWARE. font-family: inherit; } :host(:hover) { - background: ${e1}; + background: ${i1}; } :host(:active) { - background: ${Zi}; + background: ${eo}; } - .control:${at} { - outline: calc(${re} * 1px) solid ${De}; + .control:${ct} { + outline: calc(${re} * 1px) solid ${Me}; outline-offset: calc(${re} * 2px); } .control::-moz-focus-inner { border: 0; } :host([disabled]) { - opacity: ${mi}; - background: ${Zi}; + opacity: ${gi}; + background: ${eo}; cursor: ${Or}; } .content { @@ -757,94 +757,94 @@ PERFORMANCE OF THIS SOFTWARE. .start { margin-inline-end: 8px; } -`,x_=Ee` +`,w_=Re` :host([appearance='primary']) { - background: ${Zi}; - color: ${Zx}; + background: ${eo}; + color: ${r1}; } :host([appearance='primary']:hover) { - background: ${e1}; + background: ${i1}; } :host([appearance='primary']:active) .control:active { - background: ${Zi}; + background: ${eo}; } - :host([appearance='primary']) .control:${at} { - outline: calc(${re} * 1px) solid ${De}; + :host([appearance='primary']) .control:${ct} { + outline: calc(${re} * 1px) solid ${Me}; outline-offset: calc(${re} * 2px); } :host([appearance='primary'][disabled]) { - background: ${Zi}; + background: ${eo}; } -`,w_=Ee` +`,k_=Re` :host([appearance='secondary']) { - background: ${vd}; - color: ${r_}; + background: ${Id}; + color: ${i_}; } :host([appearance='secondary']:hover) { - background: ${i_}; + background: ${o_}; } :host([appearance='secondary']:active) .control:active { - background: ${vd}; + background: ${Id}; } - :host([appearance='secondary']) .control:${at} { - outline: calc(${re} * 1px) solid ${De}; + :host([appearance='secondary']) .control:${ct} { + outline: calc(${re} * 1px) solid ${Me}; outline-offset: calc(${re} * 2px); } :host([appearance='secondary'][disabled]) { - background: ${vd}; + background: ${Id}; } -`,k_=Ee` +`,C_=Re` :host([appearance='icon']) { - background: ${kv}; - border-radius: ${e_}; + background: ${Iv}; + border-radius: ${t_}; color: ${st}; } :host([appearance='icon']:hover) { - background: ${Cv}; - outline: 1px dotted ${Qx}; + background: ${Tv}; + outline: 1px dotted ${Jx}; outline-offset: -1px; } :host([appearance='icon']) .control { - padding: ${n_}; + padding: ${r_}; border: none; } :host([appearance='icon']:active) .control:active { - background: ${Cv}; + background: ${Tv}; } - :host([appearance='icon']) .control:${at} { - outline: calc(${re} * 1px) solid ${De}; - outline-offset: ${t_}; + :host([appearance='icon']) .control:${ct} { + outline: calc(${re} * 1px) solid ${Me}; + outline-offset: ${n_}; } :host([appearance='icon'][disabled]) { - background: ${kv}; + background: ${Iv}; } -`,C_=(e,t)=>Ee` - ${b_} +`,S_=(e,t)=>Re` ${x_} ${w_} ${k_} -`;class r1 extends wn{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}y_([R],r1.prototype,"appearance",void 0);const i1=r1.compose({baseName:"button",template:W2,styles:C_,shadowOptions:{delegatesFocus:!0}}),S_=(e,t)=>Ee` - ${dt("inline-flex")} :host { + ${C_} +`;class l1 extends $n{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}b_([O],l1.prototype,"appearance",void 0);const a1=l1.compose({baseName:"button",template:GO,styles:S_,shadowOptions:{delegatesFocus:!0}}),$_=(e,t)=>Re` + ${ft("inline-flex")} :host { align-items: center; outline: none; margin: calc(${Q} * 1px) 0; user-select: none; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; } .control { position: relative; width: calc(${Q} * 4px + 2px); height: calc(${Q} * 4px + 2px); box-sizing: border-box; - border-radius: calc(${l_} * 1px); - border: calc(${re} * 1px) solid ${Fi}; - background: ${jn}; + border-radius: calc(${a_} * 1px); + border: calc(${re} * 1px) solid ${ji}; + background: ${Hn}; outline: none; cursor: pointer; } .label { - font-family: ${cn}; + font-family: ${dn}; color: ${st}; padding-inline-start: calc(${Q} * 2px + 2px); margin-inline-end: calc(${Q} * 2px + 2px); @@ -874,15 +874,15 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 0; } :host(:enabled) .control:hover { - background: ${jn}; - border-color: ${Fi}; + background: ${Hn}; + border-color: ${ji}; } :host(:enabled) .control:active { - background: ${jn}; - border-color: ${De}; + background: ${Hn}; + border-color: ${Me}; } - :host(:${at}) .control { - border: calc(${re} * 1px) solid ${De}; + :host(:${ct}) .control { + border: calc(${re} * 1px) solid ${Me}; } :host(.disabled) .label, :host(.readonly) .label, @@ -895,9 +895,9 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } :host(.disabled) { - opacity: ${mi}; + opacity: ${gi}; } -`;class $_ extends su{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const o1=$_.compose({baseName:"checkbox",template:nO,styles:S_,checkedIndicator:` +`;class I_ extends hu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const c1=I_.compose({baseName:"checkbox",template:r2,styles:$_,checkedIndicator:` `,indeterminateIndicator:`
- `}),I_=(e,t)=>Ee` + `}),T_=(e,t)=>Re` :host { display: flex; position: relative; flex-direction: column; width: 100%; } -`,T_=(e,t)=>Ee` +`,E_=(e,t)=>Re` :host { display: grid; padding: calc((${Q} / 4) * 1px) 0; @@ -933,67 +933,67 @@ PERFORMANCE OF THIS SOFTWARE. :host(.header) { } :host(.sticky-header) { - background: ${QO}; + background: ${X2}; position: sticky; top: 0; } :host(:hover) { - background: ${a_}; - outline: 1px dotted ${Qx}; + background: ${c_}; + outline: 1px dotted ${Jx}; outline-offset: -1px; } -`,E_=(e,t)=>Ee` +`,R_=(e,t)=>Re` :host { padding: calc(${Q} * 1px) calc(${Q} * 3px); color: ${st}; opacity: 1; box-sizing: border-box; - font-family: ${cn}; - font-size: ${wt}; - line-height: ${At}; + font-family: ${dn}; + font-size: ${Ct}; + line-height: ${Mt}; font-weight: 400; border: solid calc(${re} * 1px) transparent; - border-radius: calc(${dl} * 1px); + border-radius: calc(${ml} * 1px); white-space: wrap; overflow-wrap: anywhere; } :host(.column-header) { font-weight: 600; } - :host(:${at}), + :host(:${ct}), :host(:focus), :host(:active) { - background: ${Wr}; - border: solid calc(${re} * 1px) ${De}; - color: ${eo}; + background: ${Gr}; + border: solid calc(${re} * 1px) ${Me}; + color: ${to}; outline: none; } - :host(:${at}) ::slotted(*), + :host(:${ct}) ::slotted(*), :host(:focus) ::slotted(*), :host(:active) ::slotted(*) { - color: ${eo} !important; + color: ${to} !important; } -`;class R_ extends ut{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const s1=R_.compose({baseName:"data-grid",baseClass:ut,template:X2,styles:I_});class P_ extends ct{}const l1=P_.compose({baseName:"data-grid-row",baseClass:ct,template:eO,styles:T_});class O_ extends Nr{}const a1=O_.compose({baseName:"data-grid-cell",baseClass:Nr,template:tO,styles:E_}),__=(e,t)=>Ee` - ${dt("block")} :host { +`;class P_ extends dt{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const u1=P_.compose({baseName:"data-grid",baseClass:dt,template:YO,styles:T_});class O_ extends ut{}const d1=O_.compose({baseName:"data-grid-row",baseClass:ut,template:t2,styles:E_});class __ extends Nr{}const f1=__.compose({baseName:"data-grid-cell",baseClass:Nr,template:n2,styles:R_}),A_=(e,t)=>Re` + ${ft("block")} :host { border: none; - border-top: calc(${re} * 1px) solid ${c_}; + border-top: calc(${re} * 1px) solid ${u_}; box-sizing: content-box; height: 0; margin: calc(${Q} * 1px) 0; width: 100%; } -`;class A_ extends wp{}const c1=A_.compose({baseName:"divider",template:yO,styles:__}),D_=(e,t)=>Ee` - ${dt("inline-flex")} :host { - background: ${Bl}; - border-radius: calc(${Ji} * 1px); +`;class D_ extends Pp{}const h1=D_.compose({baseName:"divider",template:b2,styles:A_}),M_=(e,t)=>Re` + ${ft("inline-flex")} :host { + background: ${ql}; + border-radius: calc(${Zi} * 1px); box-sizing: border-box; color: ${st}; contain: contents; - font-family: ${cn}; - height: calc(${ca} * 1px); + font-family: ${dn}; + height: calc(${ma} * 1px); position: relative; user-select: none; - min-width: ${Sp}; + min-width: ${Ap}; outline: none; vertical-align: top; } @@ -1001,25 +1001,25 @@ PERFORMANCE OF THIS SOFTWARE. align-items: center; box-sizing: border-box; border: calc(${re} * 1px) solid ${Ir}; - border-radius: calc(${Ji} * 1px); + border-radius: calc(${Zi} * 1px); cursor: pointer; display: flex; font-family: inherit; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; min-height: 100%; padding: 2px 6px 2px 8px; width: 100%; } .listbox { - background: ${Bl}; - border: calc(${re} * 1px) solid ${De}; - border-radius: calc(${Ji} * 1px); + background: ${ql}; + border: calc(${re} * 1px) solid ${Me}; + border-radius: calc(${Zi} * 1px); box-sizing: border-box; display: inline-flex; flex-direction: column; left: 0; - max-height: ${u_}; + max-height: ${d_}; padding: 0; overflow-y: auto; position: absolute; @@ -1029,39 +1029,39 @@ PERFORMANCE OF THIS SOFTWARE. .listbox[hidden] { display: none; } - :host(:${at}) .control { - border-color: ${De}; + :host(:${ct}) .control { + border-color: ${Me}; } :host(:not([disabled]):hover) { - background: ${Bl}; + background: ${ql}; border-color: ${Ir}; } - :host(:${at}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { - background: ${Wr}; + :host(:${ct}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { + background: ${Gr}; border: calc(${re} * 1px) solid transparent; - color: ${eo}; + color: ${to}; } :host([disabled]) { cursor: ${Or}; - opacity: ${mi}; + opacity: ${gi}; } :host([disabled]) .control { cursor: ${Or}; user-select: none; } :host([disabled]:hover) { - background: ${Bl}; + background: ${ql}; color: ${st}; fill: currentcolor; } :host(:not([disabled])) .control:active { - border-color: ${De}; + border-color: ${Me}; } :host(:empty) .listbox { display: none; } :host([open]) .control { - border-color: ${De}; + border-color: ${Me}; } :host([open][position='above']) .listbox { border-bottom-left-radius: 0; @@ -1072,10 +1072,10 @@ PERFORMANCE OF THIS SOFTWARE. border-top-right-radius: 0; } :host([open][position='above']) .listbox { - bottom: calc(${ca} * 1px); + bottom: calc(${ma} * 1px); } :host([open][position='below']) .listbox { - top: calc(${ca} * 1px); + top: calc(${ma} * 1px); } .selected-value { flex: 1 1 auto; @@ -1116,7 +1116,7 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(option) { flex: 0 0 auto; } -`;class M_ extends jr{}const u1=M_.compose({baseName:"dropdown",template:_O,styles:D_,indicator:` +`;class L_ extends jr{}const p1=L_.compose({baseName:"dropdown",template:A2,styles:M_,indicator:` - `}),L_=(e,t)=>Ee` - ${dt("inline-flex")} :host { + `}),N_=(e,t)=>Re` + ${ft("inline-flex")} :host { background: transparent; box-sizing: border-box; - color: ${d_}; + color: ${f_}; cursor: pointer; fill: currentcolor; - font-family: ${cn}; - font-size: ${wt}; - line-height: ${At}; + font-family: ${dn}; + font-size: ${Ct}; + line-height: ${Mt}; outline: none; } .control { background: transparent; border: calc(${re} * 1px) solid transparent; - border-radius: calc(${dl} * 1px); + border-radius: calc(${ml} * 1px); box-sizing: border-box; color: inherit; cursor: inherit; @@ -1163,30 +1163,30 @@ PERFORMANCE OF THIS SOFTWARE. border: 0; } :host(:hover) { - color: ${Sv}; + color: ${Ev}; } :host(:hover) .content { text-decoration: underline; } :host(:active) { background: transparent; - color: ${Sv}; + color: ${Ev}; } - :host(:${at}) .control, + :host(:${ct}) .control, :host(:focus) .control { - border: calc(${re} * 1px) solid ${De}; + border: calc(${re} * 1px) solid ${Me}; } -`;class N_ extends xn{}const d1=N_.compose({baseName:"link",template:H2,styles:L_,shadowOptions:{delegatesFocus:!0}}),F_=(e,t)=>Ee` - ${dt("inline-flex")} :host { +`;class F_ extends Sn{}const m1=F_.compose({baseName:"link",template:UO,styles:N_,shadowOptions:{delegatesFocus:!0}}),j_=(e,t)=>Re` + ${ft("inline-flex")} :host { font-family: var(--body-font); - border-radius: ${dl}; + border-radius: ${ml}; border: calc(${re} * 1px) solid transparent; box-sizing: border-box; color: ${st}; cursor: pointer; fill: currentcolor; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; margin: 0; outline: none; overflow: hidden; @@ -1195,32 +1195,32 @@ PERFORMANCE OF THIS SOFTWARE. user-select: none; white-space: nowrap; } - :host(:${at}) { - border-color: ${De}; - background: ${Wr}; + :host(:${ct}) { + border-color: ${Me}; + background: ${Gr}; color: ${st}; } :host([aria-selected='true']) { - background: ${Wr}; + background: ${Gr}; border: calc(${re} * 1px) solid transparent; - color: ${eo}; + color: ${to}; } :host(:active) { - background: ${Wr}; - color: ${eo}; + background: ${Gr}; + color: ${to}; } :host(:not([aria-selected='true']):hover) { - background: ${Wr}; + background: ${Gr}; border: calc(${re} * 1px) solid transparent; - color: ${eo}; + color: ${to}; } :host(:not([aria-selected='true']):active) { - background: ${Wr}; + background: ${Gr}; color: ${st}; } :host([disabled]) { cursor: ${Or}; - opacity: ${mi}; + opacity: ${gi}; } :host([disabled]:hover) { background-color: inherit; @@ -1231,12 +1231,12 @@ PERFORMANCE OF THIS SOFTWARE. overflow: hidden; text-overflow: ellipsis; } -`;let j_=class extends Zn{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const f1=j_.compose({baseName:"option",template:xO,styles:F_}),z_=(e,t)=>Ee` - ${dt("grid")} :host { +`;let z_=class extends rr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const g1=z_.compose({baseName:"option",template:w2,styles:j_}),B_=(e,t)=>Re` + ${ft("grid")} :host { box-sizing: border-box; - font-family: ${cn}; - font-size: ${wt}; - line-height: ${At}; + font-family: ${dn}; + font-size: ${Ct}; + line-height: ${Mt}; color: ${st}; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; @@ -1263,9 +1263,9 @@ PERFORMANCE OF THIS SOFTWARE. width: 100%; height: calc((${Q} / 4) * 1px); justify-self: center; - background: ${Si}; + background: ${$i}; margin: 0; - border-radius: calc(${dl} * 1px); + border-radius: calc(${ml} * 1px); } .activeIndicatorTransition { transition: transform 0.01s linear; @@ -1276,17 +1276,17 @@ PERFORMANCE OF THIS SOFTWARE. grid-column-end: 4; position: relative; } -`,B_=(e,t)=>Ee` - ${dt("inline-flex")} :host { +`,V_=(e,t)=>Re` + ${ft("inline-flex")} :host { box-sizing: border-box; - font-family: ${cn}; - font-size: ${wt}; - line-height: ${At}; + font-family: ${dn}; + font-size: ${Ct}; + line-height: ${Mt}; height: calc(${Q} * 7px); padding: calc(${Q} * 1px) 0; - color: ${p_}; + color: ${m_}; fill: currentcolor; - border-radius: calc(${dl} * 1px); + border-radius: calc(${ml} * 1px); border: solid calc(${re} * 1px) transparent; align-items: center; justify-content: center; @@ -1294,31 +1294,31 @@ PERFORMANCE OF THIS SOFTWARE. cursor: pointer; } :host(:hover) { - color: ${Si}; + color: ${$i}; fill: currentcolor; } :host(:active) { - color: ${Si}; + color: ${$i}; fill: currentcolor; } :host([aria-selected='true']) { background: transparent; - color: ${Si}; + color: ${$i}; fill: currentcolor; } :host([aria-selected='true']:hover) { background: transparent; - color: ${Si}; + color: ${$i}; fill: currentcolor; } :host([aria-selected='true']:active) { background: transparent; - color: ${Si}; + color: ${$i}; fill: currentcolor; } - :host(:${at}) { + :host(:${ct}) { outline: none; - border: solid calc(${re} * 1px) ${h_}; + border: solid calc(${re} * 1px) ${p_}; } :host(:focus) { outline: none; @@ -1326,18 +1326,18 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(vscode-badge) { margin-inline-start: calc(${Q} * 2px); } -`,V_=(e,t)=>Ee` - ${dt("flex")} :host { +`,H_=(e,t)=>Re` + ${ft("flex")} :host { color: inherit; background-color: transparent; border: solid calc(${re} * 1px) transparent; box-sizing: border-box; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; padding: 10px calc((${Q} + 2) * 1px); } -`;class H_ extends er{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Df.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const h1=H_.compose({baseName:"panels",template:LO,styles:z_});class U_ extends Ux{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const p1=U_.compose({baseName:"panel-tab",template:MO,styles:B_});class W_ extends DO{}const m1=W_.compose({baseName:"panel-view",template:AO,styles:V_}),G_=(e,t)=>Ee` - ${dt("flex")} :host { +`;class U_ extends ir{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Hf.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const v1=U_.compose({baseName:"panels",template:N2,styles:B_});class W_ extends Qx{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const y1=W_.compose({baseName:"panel-tab",template:L2,styles:V_});class G_ extends M2{}const b1=G_.compose({baseName:"panel-view",template:D2,styles:H_}),q_=(e,t)=>Re` + ${ft("flex")} :host { align-items: center; outline: none; height: calc(${Q} * 7px); @@ -1355,7 +1355,7 @@ PERFORMANCE OF THIS SOFTWARE. } .indeterminate-indicator-1 { fill: none; - stroke: ${f_}; + stroke: ${h_}; stroke-width: calc(${Q} / 2 * 1px); stroke-linecap: square; transform-origin: 50% 50%; @@ -1377,7 +1377,7 @@ PERFORMANCE OF THIS SOFTWARE. transform: rotate(1080deg); } } -`;class q_ extends Oo{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const g1=q_.compose({baseName:"progress-ring",template:SO,styles:G_,indeterminateIndicator:` +`;class Q_ extends _o{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const x1=Q_.compose({baseName:"progress-ring",template:$2,styles:q_,indeterminateIndicator:` - `}),Q_=(e,t)=>Ee` - ${dt("flex")} :host { + `}),X_=(e,t)=>Re` + ${ft("flex")} :host { align-items: flex-start; margin: calc(${Q} * 1px) 0; flex-direction: column; @@ -1412,15 +1412,15 @@ PERFORMANCE OF THIS SOFTWARE. } ::slotted([slot='label']) { color: ${st}; - font-size: ${wt}; + font-size: ${Ct}; margin: calc(${Q} * 1px) 0; } -`;class X_ extends Fr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const v1=X_.compose({baseName:"radio-group",template:$O,styles:Q_}),Y_=(e,t)=>Ee` - ${dt("inline-flex")} :host { +`;class Y_ extends Fr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const w1=Y_.compose({baseName:"radio-group",template:I2,styles:X_}),K_=(e,t)=>Re` + ${ft("inline-flex")} :host { align-items: center; flex-direction: row; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; margin: calc(${Q} * 1px) 0; outline: none; position: relative; @@ -1428,9 +1428,9 @@ PERFORMANCE OF THIS SOFTWARE. user-select: none; } .control { - background: ${jn}; + background: ${Hn}; border-radius: 999px; - border: calc(${re} * 1px) solid ${Fi}; + border: calc(${re} * 1px) solid ${ji}; box-sizing: border-box; cursor: pointer; height: calc(${Q} * 4px); @@ -1441,7 +1441,7 @@ PERFORMANCE OF THIS SOFTWARE. .label { color: ${st}; cursor: pointer; - font-family: ${cn}; + font-family: ${dn}; margin-inline-end: calc(${Q} * 2px + 2px); padding-inline-start: calc(${Q} * 2px + 2px); } @@ -1463,30 +1463,30 @@ PERFORMANCE OF THIS SOFTWARE. position: absolute; } :host(:not([disabled])) .control:hover { - background: ${jn}; - border-color: ${Fi}; + background: ${Hn}; + border-color: ${ji}; } :host(:not([disabled])) .control:active { - background: ${jn}; - border-color: ${De}; + background: ${Hn}; + border-color: ${Me}; } - :host(:${at}) .control { - border: calc(${re} * 1px) solid ${De}; + :host(:${ct}) .control { + border: calc(${re} * 1px) solid ${Me}; } :host([aria-checked='true']) .control { - background: ${jn}; - border: calc(${re} * 1px) solid ${Fi}; + background: ${Hn}; + border: calc(${re} * 1px) solid ${ji}; } :host([aria-checked='true']:not([disabled])) .control:hover { - background: ${jn}; - border: calc(${re} * 1px) solid ${Fi}; + background: ${Hn}; + border: calc(${re} * 1px) solid ${ji}; } :host([aria-checked='true']:not([disabled])) .control:active { - background: ${jn}; - border: calc(${re} * 1px) solid ${De}; + background: ${Hn}; + border: calc(${re} * 1px) solid ${Me}; } - :host([aria-checked="true"]:${at}:not([disabled])) .control { - border: calc(${re} * 1px) solid ${De}; + :host([aria-checked="true"]:${ct}:not([disabled])) .control { + border: calc(${re} * 1px) solid ${Me}; } :host([disabled]) .label, :host([readonly]) .label, @@ -1498,78 +1498,78 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } :host([disabled]) { - opacity: ${mi}; + opacity: ${gi}; } -`;class K_ extends au{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const y1=K_.compose({baseName:"radio",template:IO,styles:Y_,checkedIndicator:` +`;class J_ extends mu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const k1=J_.compose({baseName:"radio",template:T2,styles:K_,checkedIndicator:`
- `}),J_=(e,t)=>Ee` - ${dt("inline-block")} :host { + `}),Z_=(e,t)=>Re` + ${ft("inline-block")} :host { box-sizing: border-box; - font-family: ${cn}; - font-size: ${Xx}; - line-height: ${Yx}; + font-family: ${dn}; + font-size: ${Zx}; + line-height: ${e1}; } .control { - background-color: ${Kx}; - border: calc(${re} * 1px) solid ${$p}; - border-radius: ${m_}; - color: ${Jx}; + background-color: ${t1}; + border: calc(${re} * 1px) solid ${Dp}; + border-radius: ${g_}; + color: ${n1}; padding: calc(${Q} * 0.5px) calc(${Q} * 1px); text-transform: uppercase; } -`;class Z_ extends cl{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const b1=Z_.compose({baseName:"tag",template:Nx,styles:J_}),eA=(e,t)=>Ee` - ${dt("inline-block")} :host { - font-family: ${cn}; +`;class eA extends hl{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const C1=eA.compose({baseName:"tag",template:Bx,styles:Z_}),tA=(e,t)=>Re` + ${ft("inline-block")} :host { + font-family: ${dn}; outline: none; user-select: none; } .control { box-sizing: border-box; position: relative; - color: ${t1}; - background: ${Yr}; - border-radius: calc(${Ji} * 1px); + color: ${o1}; + background: ${Kr}; + border-radius: calc(${Zi} * 1px); border: calc(${re} * 1px) solid ${Ir}; font: inherit; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; padding: calc(${Q} * 2px + 1px); width: 100%; - min-width: ${Sp}; + min-width: ${Ap}; resize: none; } .control:hover:enabled { - background: ${Yr}; + background: ${Kr}; border-color: ${Ir}; } .control:active:enabled { - background: ${Yr}; - border-color: ${De}; + background: ${Kr}; + border-color: ${Me}; } .control:hover, - .control:${at}, + .control:${ct}, .control:disabled, .control:active { outline: none; } .control::-webkit-scrollbar { - width: ${XO}; - height: ${YO}; + width: ${Y2}; + height: ${K2}; } .control::-webkit-scrollbar-corner { - background: ${Yr}; + background: ${Kr}; } .control::-webkit-scrollbar-thumb { - background: ${KO}; + background: ${J2}; } .control::-webkit-scrollbar-thumb:hover { - background: ${JO}; + background: ${Z2}; } .control::-webkit-scrollbar-thumb:active { - background: ${ZO}; + background: ${e_}; } :host(:focus-within:not([disabled])) .control { - border-color: ${De}; + border-color: ${Me}; } :host([resize='both']) .control { resize: both; @@ -1584,8 +1584,8 @@ PERFORMANCE OF THIS SOFTWARE. display: block; color: ${st}; cursor: pointer; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; margin-bottom: 2px; } .label__hidden { @@ -1599,14 +1599,14 @@ PERFORMANCE OF THIS SOFTWARE. cursor: ${Or}; } :host([disabled]) { - opacity: ${mi}; + opacity: ${gi}; } :host([disabled]) .control { border-color: ${Ir}; } -`;class tA extends St{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const x1=tA.compose({baseName:"text-area",template:jO,styles:eA,shadowOptions:{delegatesFocus:!0}}),nA=(e,t)=>Ee` - ${dt("inline-block")} :host { - font-family: ${cn}; +`;class nA extends It{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const S1=nA.compose({baseName:"text-area",template:z2,styles:tA,shadowOptions:{delegatesFocus:!0}}),rA=(e,t)=>Re` + ${ft("inline-block")} :host { + font-family: ${dn}; outline: none; user-select: none; } @@ -1615,12 +1615,12 @@ PERFORMANCE OF THIS SOFTWARE. position: relative; display: flex; flex-direction: row; - color: ${t1}; - background: ${Yr}; - border-radius: calc(${Ji} * 1px); + color: ${o1}; + background: ${Kr}; + border-radius: calc(${Zi} * 1px); border: calc(${re} * 1px) solid ${Ir}; - height: calc(${ca} * 1px); - min-width: ${Sp}; + height: calc(${ma} * 1px); + min-width: ${Ap}; } .control { -webkit-appearance: none; @@ -1634,11 +1634,11 @@ PERFORMANCE OF THIS SOFTWARE. margin-bottom: auto; border: none; padding: 0 calc(${Q} * 2px + 1px); - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; } .control:hover, - .control:${at}, + .control:${ct}, .control:disabled, .control:active { outline: none; @@ -1647,8 +1647,8 @@ PERFORMANCE OF THIS SOFTWARE. display: block; color: ${st}; cursor: pointer; - font-size: ${wt}; - line-height: ${At}; + font-size: ${Ct}; + line-height: ${Mt}; margin-bottom: 2px; } .label__hidden { @@ -1673,15 +1673,15 @@ PERFORMANCE OF THIS SOFTWARE. margin-inline-end: calc(${Q} * 2px); } :host(:hover:not([disabled])) .root { - background: ${Yr}; + background: ${Kr}; border-color: ${Ir}; } :host(:active:not([disabled])) .root { - background: ${Yr}; - border-color: ${De}; + background: ${Kr}; + border-color: ${Me}; } :host(:focus-within:not([disabled])) .root { - border-color: ${De}; + border-color: ${Me}; } :host([disabled]) .label, :host([readonly]) .label, @@ -1690,13 +1690,13 @@ PERFORMANCE OF THIS SOFTWARE. cursor: ${Or}; } :host([disabled]) { - opacity: ${mi}; + opacity: ${gi}; } :host([disabled]) .control { border-color: ${Ir}; } -`;class rA extends Wt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const w1=rA.compose({baseName:"text-field",template:zO,styles:nA,shadowOptions:{delegatesFocus:!0}}),iA={vsCodeBadge:n1,vsCodeButton:i1,vsCodeCheckbox:o1,vsCodeDataGrid:s1,vsCodeDataGridCell:a1,vsCodeDataGridRow:l1,vsCodeDivider:c1,vsCodeDropdown:u1,vsCodeLink:d1,vsCodeOption:f1,vsCodePanels:h1,vsCodePanelTab:p1,vsCodePanelView:m1,vsCodeProgressRing:g1,vsCodeRadioGroup:v1,vsCodeRadio:y1,vsCodeTag:b1,vsCodeTextArea:x1,vsCodeTextField:w1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Ue}=GO(It,qx());Ue(n1(),{name:"vscode-badge"});Ue(i1(),{name:"vscode-button"});Ue(o1(),{name:"vscode-checkbox",events:{onChange:"change"}});Ue(s1(),{name:"vscode-data-grid"});Ue(a1(),{name:"vscode-data-grid-cell"});Ue(l1(),{name:"vscode-data-grid-row"});Ue(c1(),{name:"vscode-divider"});const oA=Ue(u1(),{name:"vscode-dropdown",events:{onChange:"change"}});Ue(d1(),{name:"vscode-link"});const sA=Ue(f1(),{name:"vscode-option"});Ue(h1(),{name:"vscode-panels",events:{onChange:"change"}});Ue(p1(),{name:"vscode-panel-tab"});Ue(m1(),{name:"vscode-panel-view"});Ue(g1(),{name:"vscode-progress-ring"});Ue(y1(),{name:"vscode-radio",events:{onChange:"change"}});Ue(v1(),{name:"vscode-radio-group",events:{onChange:"change"}});Ue(b1(),{name:"vscode-tag"});Ue(x1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Ue(w1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function lA(e){return typeof e=="string"}function aA(e,t,n){return e===void 0||lA(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}const cA={disableDefaultClasses:!1},uA=x.createContext(cA);function dA(e){const{disableDefaultClasses:t}=x.useContext(uA);return n=>t?"":e(n)}function Ln(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function zn(e,t,n){return typeof e=="function"?e(t,n):e}function $v(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function fA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=ie(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},n,i,r);return v.length>0&&(p.className=v),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const s=Ln($({},i,r)),l=$v(r),a=$v(i),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=$({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=$({},c,n,a,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const hA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Y(e,hA),l=o?{}:zn(r,i),{props:a,internalRef:c}=fA($({},s,{externalSlotProps:l})),u=bt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return aA(n,$({},a,{ref:u}),i)}function pA(e){return Ve("MuiRichTreeView",e)}je("MuiRichTreeView",["root"]);function k1(e){return TT}const mA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(u=>$({},u,{[s]:c}))}}]}))};class gA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,C1=()=>{const[e]=x.useState(()=>new gA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(vA(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};C1.params={};const S1=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};S1.params={};const $1=({params:e})=>{const t=Lb(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};$1.params={id:!0};const yA=[C1,S1,$1],bA=["slots","slotProps","apiRef","experimentalFeatures"],xA=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:i},plugins:o}=e,s=Y(e.props,bA);const l={};o.forEach(d=>{Object.assign(l,d.params)});const a={},c={};Object.keys(s).forEach(d=>{const f=s[d];l[d]?a[d]=f:c[d]=f});const u=o.reduce((d,f)=>f.getDefaultizedParams?f.getDefaultizedParams(d):d,a);return{apiRef:r,forwardedProps:c,pluginParams:u,slots:t??{},slotProps:n??{},experimentalFeatures:i??{}}},wA=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:l=>{let a=null,c=null;return e.forEach(u=>{if(!u.itemPlugin)return;const d=u.itemPlugin({props:l,rootRef:a,contentRef:c});d!=null&&d.rootRef&&(a=d.rootRef),d!=null&&d.contentRef&&(c=d.contentRef)}),{contentRef:c,rootRef:a}},wrapItem:({itemId:l,children:a})=>{let c=a;for(let u=e.length-1;u>=0;u-=1){const d=e[u];d.wrapItem&&(c=d.wrapItem({itemId:l,children:c,instance:t}))}return c},wrapRoot:({children:l})=>{let a=l;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapRoot&&(a=u.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function kA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const CA=({plugins:e,rootRef:t,props:n})=>{const r=[...yA,...e],{pluginParams:i,forwardedProps:o,apiRef:s,experimentalFeatures:l,slots:a,slotProps:c}=xA({plugins:r,props:n}),u=mA(r,i),f=x.useRef({}).current,v=kA(s),g=x.useRef(null),p=bt(g,t),b=wA({plugins:r,instance:f,publicAPI:v,rootRef:g}),[m,h]=x.useState(()=>{const S={};return r.forEach(T=>{T.getInitialState&&Object.assign(S,T.getInitialState(i))}),S}),y=[],w=S=>{const T=S({instance:f,params:i,slots:a,slotProps:c,experimentalFeatures:l,state:m,setState:h,rootRef:g,models:u,plugins:r});T.getRootProps&&y.push(T.getRootProps),T.publicAPI&&Object.assign(v,T.publicAPI),T.instance&&Object.assign(f,T.instance),T.contextValue&&Object.assign(b,T.contextValue)};return r.forEach(w),{getRootProps:(S={})=>{const T=$({role:"tree"},o,S,{ref:p});return y.forEach(E=>{Object.assign(T,E(S))}),T},rootRef:p,contextValue:b,instance:f}},I1=x.createContext(null);function SA(e){const{value:t,children:n}=e;return k.jsx(I1.Provider,{value:t,children:t.wrapRoot({children:n})})}const $A=(e,t,n)=>{e.$$publishEvent(t,n)},ji="__TREE_VIEW_ROOT_PARENT_ID__",IA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Ip=x.createContext(()=>-1),TA=["children"],T1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[ji]:[]},l=(c,u,d)=>{var p,b;const f=r?r(c):c.id;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` +`;class iA extends qt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const $1=iA.compose({baseName:"text-field",template:B2,styles:rA,shadowOptions:{delegatesFocus:!0}}),oA={vsCodeBadge:s1,vsCodeButton:a1,vsCodeCheckbox:c1,vsCodeDataGrid:u1,vsCodeDataGridCell:f1,vsCodeDataGridRow:d1,vsCodeDivider:h1,vsCodeDropdown:p1,vsCodeLink:m1,vsCodeOption:g1,vsCodePanels:v1,vsCodePanelTab:y1,vsCodePanelView:b1,vsCodeProgressRing:x1,vsCodeRadioGroup:w1,vsCodeRadio:k1,vsCodeTag:C1,vsCodeTextArea:S1,vsCodeTextField:$1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Ge}=q2(Et,Kx());Ge(s1(),{name:"vscode-badge"});Ge(a1(),{name:"vscode-button"});Ge(c1(),{name:"vscode-checkbox",events:{onChange:"change"}});Ge(u1(),{name:"vscode-data-grid"});Ge(f1(),{name:"vscode-data-grid-cell"});Ge(d1(),{name:"vscode-data-grid-row"});Ge(h1(),{name:"vscode-divider"});const sA=Ge(p1(),{name:"vscode-dropdown",events:{onChange:"change"}});Ge(m1(),{name:"vscode-link"});const lA=Ge(g1(),{name:"vscode-option"});Ge(v1(),{name:"vscode-panels",events:{onChange:"change"}});Ge(y1(),{name:"vscode-panel-tab"});Ge(b1(),{name:"vscode-panel-view"});Ge(x1(),{name:"vscode-progress-ring"});Ge(k1(),{name:"vscode-radio",events:{onChange:"change"}});Ge(w1(),{name:"vscode-radio-group",events:{onChange:"change"}});Ge(C1(),{name:"vscode-tag"});Ge(S1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Ge($1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function aA(e){return Ue("MuiRichTreeView",e)}ze("MuiRichTreeView",["root"]);function I1(e){return ET}const cA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(u=>S({},u,{[s]:c}))}}]}))};class uA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,T1=()=>{const[e]=x.useState(()=>new uA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(dA(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};T1.params={};const E1=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};E1.params={};const R1=({params:e})=>{const t=zb(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};R1.params={id:!0};const fA=[T1,E1,R1],hA=["slots","slotProps","apiRef","experimentalFeatures"],pA=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:i},plugins:o}=e,s=J(e.props,hA);const l={};o.forEach(d=>{Object.assign(l,d.params)});const a={},c={};Object.keys(s).forEach(d=>{const f=s[d];l[d]?a[d]=f:c[d]=f});const u=o.reduce((d,f)=>f.getDefaultizedParams?f.getDefaultizedParams(d):d,a);return{apiRef:r,forwardedProps:c,pluginParams:u,slots:t??{},slotProps:n??{},experimentalFeatures:i??{}}},mA=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:l=>{let a=null,c=null;const u=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const g=m.itemPlugin({props:l,rootRef:a,contentRef:c});g!=null&&g.rootRef&&(a=g.rootRef),g!=null&&g.contentRef&&(c=g.contentRef),g!=null&&g.propsEnhancers&&(u.push(g.propsEnhancers),Object.keys(g.propsEnhancers).forEach(b=>{d[b]=!0}))});const f=m=>g=>{const b={};return u.forEach(p=>{const h=p[m];h!=null&&Object.assign(b,h(g))}),b},v=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:c,rootRef:a,propsEnhancers:v}},wrapItem:({itemId:l,children:a})=>{let c=a;for(let u=e.length-1;u>=0;u-=1){const d=e[u];d.wrapItem&&(c=d.wrapItem({itemId:l,children:c,instance:t}))}return c},wrapRoot:({children:l})=>{let a=l;for(let c=e.length-1;c>=0;c-=1){const u=e[c];u.wrapRoot&&(a=u.wrapRoot({children:a,instance:t}))}return a},instance:t,rootRef:r,publicAPI:n});function gA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const vA=({plugins:e,rootRef:t,props:n})=>{const r=[...fA,...e],{pluginParams:i,forwardedProps:o,apiRef:s,experimentalFeatures:l,slots:a,slotProps:c}=pA({plugins:r,props:n}),u=cA(r,i),f=x.useRef({}).current,v=gA(s),m=x.useRef(null),g=at(m,t),b=mA({plugins:r,instance:f,publicAPI:v,rootRef:m}),[p,h]=x.useState(()=>{const $={};return r.forEach(I=>{I.getInitialState&&Object.assign($,I.getInitialState(i))}),$}),y=[],w=$=>{const I=$({instance:f,params:i,slots:a,slotProps:c,experimentalFeatures:l,state:p,setState:h,rootRef:m,models:u,plugins:r});I.getRootProps&&y.push(I.getRootProps),I.publicAPI&&Object.assign(v,I.publicAPI),I.instance&&Object.assign(f,I.instance),I.contextValue&&Object.assign(b,I.contextValue)};return r.forEach(w),{getRootProps:($={})=>{const I=S({role:"tree"},o,$,{ref:g});return y.forEach(P=>{Object.assign(I,P($))}),I},rootRef:g,contextValue:b,instance:f}},P1=x.createContext(null);function yA(e){const{value:t,children:n}=e;return k.jsx(P1.Provider,{value:t,children:t.wrapRoot({children:n})})}const Ao=()=>{const e=x.useContext(P1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` +`));return e},bA=(e,t,n)=>{e.$$publishEvent(t,n)},zi="__TREE_VIEW_ROOT_PARENT_ID__",xA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Mp=x.createContext(()=>-1),wA=["children"],O1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[zi]:[]},l=(c,u,d)=>{var g,b;const f=r?r(c):c.id;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` `));if(i[f]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${f}"`].join(` `));const v=n?n(c):c.label;if(v==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(c)].join(` -`));i[f]={id:f,label:v,parentId:d,idAttribute:void 0,expandable:!!((p=c.children)!=null&&p.length),disabled:t?t(c):!1,depth:u},o[f]=c;const g=d??ji;s[g]||(s[g]=[]),s[g].push(f),(b=c.children)==null||b.forEach(m=>l(m,u+1,f))};e.forEach(c=>l(c,0,null));const a={};return Object.keys(s).forEach(c=>{a[c]=IA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},fl=({instance:e,params:t,state:n,setState:r,experimentalFeatures:i})=>{const o=x.useCallback(m=>n.items.itemMetaMap[m],[n.items.itemMetaMap]),s=x.useCallback(m=>n.items.itemMap[m],[n.items.itemMap]),l=x.useCallback(()=>{const m=h=>{const y=n.items.itemMap[h],w=Y(y,TA),C=n.items.itemOrderedChildrenIds[h];return C&&(w.children=C.map(m)),w};return n.items.itemOrderedChildrenIds[ji].map(m)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),a=x.useCallback(m=>{if(m==null)return!1;let h=e.getItemMeta(m);if(!h)return!1;if(h.disabled)return!0;for(;h.parentId!=null;)if(h=e.getItemMeta(h.parentId),h.disabled)return!0;return!1},[e]),c=x.useCallback(m=>{const h=e.getItemMeta(m).parentId??ji;return n.items.itemChildrenIndexes[h][m]},[e,n.items.itemChildrenIndexes]),u=x.useCallback(m=>n.items.itemOrderedChildrenIds[m??ji]??[],[n.items.itemOrderedChildrenIds]),d=m=>{const h=e.getItemMeta(m);return h==null?null:document.getElementById(e.getTreeItemIdAttribute(m,h.idAttribute))},f=m=>t.disabledItemsFocusable?!0:!e.isItemDisabled(m),v=x.useRef(!1),g=x.useCallback(()=>{v.current=!0},[]),p=x.useCallback(()=>v.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(m=>{const h=T1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(m.items.itemMetaMap).forEach(y=>{h.itemMetaMap[y.id]||$A(e,"removeItem",{id:y.id})}),$({},m,{items:h})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:d,getItemTree:l,getItemOrderedChildrenIds:u},instance:{getItemMeta:o,getItem:s,getItemTree:l,getItemsToRender:()=>{const m=h=>{var w;const y=n.items.itemMetaMap[h];return{label:y.label,itemId:y.id,id:y.idAttribute,children:(w=n.items.itemOrderedChildrenIds[h])==null?void 0:w.map(m)}};return n.items.itemOrderedChildrenIds[ji].map(m)},getItemIndex:c,getItemDOMElement:d,getItemOrderedChildrenIds:u,isItemDisabled:a,isItemNavigable:f,preventItemUpdates:g,areItemUpdatesPrevented:p},contextValue:{disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:i.indentationAtItemLevel??!1}}};fl.getInitialState=e=>({items:T1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});fl.getDefaultizedParams=e=>$({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});fl.wrapRoot=({children:e,instance:t})=>k.jsx(Ip.Provider,{value:n=>{var r;return((r=t.getItemMeta(n))==null?void 0:r.depth)??0},children:e});fl.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,itemChildrenIndentation:!0};const cu=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(f=>{d.set(f,!0)}),d},[n.expandedItems.value]),i=(d,f)=>{var v;(v=t.onExpandedItemsChange)==null||v.call(t,d,f),n.expandedItems.setControlledValue(f)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var f;return!!((f=e.getItemMeta(d))!=null&&f.expandable)},[e]),l=Zt((d,f)=>{const v=e.isItemExpanded(f);e.setItemExpansion(d,f,!v)}),a=Zt((d,f,v)=>{if(e.isItemExpanded(f)===v)return;let p;v?p=[f].concat(n.expandedItems.value):p=n.expandedItems.value.filter(b=>b!==f),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,f,v),i(d,p)}),c=(d,f)=>{const v=e.getItemMeta(f),p=e.getItemOrderedChildrenIds(v.parentId).filter(m=>e.isItemExpandable(m)&&!e.isItemExpanded(m)),b=n.expandedItems.value.concat(p);p.length>0&&(t.onItemExpansionToggle&&p.forEach(m=>{t.onItemExpansionToggle(d,m,!0)}),i(d,b))},u=x.useMemo(()=>t.expansionTrigger?t.expansionTrigger:"content",[t.expansionTrigger]);return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:u}}}};cu.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const EA=[];cu.getDefaultizedParams=e=>$({},e,{defaultExpandedItems:e.defaultExpandedItems??EA});cu.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const E1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},R1=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=i-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:R1(e,n.parentId);let s=r[o],l=E1(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&l!=null;)s=l,l=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ua=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=E1(e,n);if(r==null)return t;t=r}return t},Ws=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),O1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,u=o.indexOf(a)!==-1,d=!0,f=!0;for(;!u&&!c;)d&&(o.push(l),c=s.indexOf(l)!==-1,d=l!==null,!c&&d&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),u=o.indexOf(a)!==-1,f=a!==null,!u&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,g=e.getItemOrderedChildrenIds(v),p=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return g.indexOf(p){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const u=e.getItemOrderedChildrenIds(c.parentId),d=e.getItemIndex(c.id);if(d{let t=Ws(e);const n=[];for(;t!=null;)n.push(t),t=ua(e,t);return n},da=e=>Array.isArray(e)?e:e!=null?[e]:[],yd=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},uu=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{p.set(b,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),s=(p,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const m=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));m.forEach(y=>{t.onItemSelectionToggle(p,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(p,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(p,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,b),n.selectedItems.setControlledValue(b)},l=p=>o.has(p),a=({event:p,itemId:b,keepExistingSelection:m=!1,shouldBeSelected:h})=>{if(t.disableSelection)return;let y;if(m){const w=da(n.selectedItems.value),C=e.isItemSelected(b);C&&(h===!1||h==null)?y=w.filter(S=>S!==b):!C&&(h===!0||h==null)?y=[b].concat(w):y=w}else h===!1||h==null&&e.isItemSelected(b)?y=t.multiSelect?[]:null:y=t.multiSelect?[b]:b;s(p,y),r.current=b,i.current={}},c=(p,[b,m])=>{if(t.disableSelection||!t.multiSelect)return;let h=da(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter(S=>!i.current[S]));const y=yd(h),w=RA(e,b,m),C=w.filter(S=>!y[S]);h=h.concat(C),s(p,h),i.current=yd(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:a},instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const b=PA(e);s(p,b),i.current=yd(b)},expandSelectionRange:(p,b)=>{if(r.current!=null){const[m,h]=O1(e,b,r.current);c(p,[m,h])}},selectRangeFromStartToItem:(p,b)=>{c(p,[Ws(e),b])},selectRangeFromItemToEnd:(p,b)=>{c(p,[b,P1(e)])},selectItemFromArrowNavigation:(p,b,m)=>{if(t.disableSelection||!t.multiSelect)return;let h=da(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(m),i.current={[b]:!0,[m]:!0}):(i.current[b]||(i.current={}),i.current[m]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(m),i.current[m]=!0)),s(p,h)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};uu.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const OA=[];uu.getDefaultizedParams=e=>$({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?OA:null)});uu.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const Iv=1e3;class _A{constructor(t=Iv){this.timeouts=new Map,this.cleanupTimeout=Iv,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class AA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class DA{}function MA(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new AA:new _A);const[s]=x.useState(new DA),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const u=(d,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,d,f)};l.current=r.$$subscribeEvent(i,u),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var d;(d=l.current)==null||d.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const u=(d,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,d,f)};l.current=r.$$subscribeEvent(i,u)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var u;(u=l.current)==null||u.call(l),l.current=null}},[r,i])}}const LA={registry:null},NA=MA(LA),_1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?_1(t.shadowRoot):t:null},FA=(e,t)=>{let n=da(t).find(r=>{if(!e.isItemNavigable(r))return!1;const i=e.getItemMeta(r);return i&&(i.parentId==null||e.isItemExpanded(i.parentId))});return n==null&&(n=Ws(e)),n},Tp=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=FA(e,i.selectedItems.value),l=Zt(b=>{const m=typeof b=="function"?b(n.focusedItemId):b;n.focusedItemId!==m&&r(h=>$({},h,{focusedItemId:m}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(_1(Qi(o.current))),[o]),c=x.useCallback(b=>n.focusedItemId===b&&a(),[n.focusedItemId,a]),u=b=>{const m=e.getItemMeta(b);return m&&(m.parentId==null||e.isItemExpanded(m.parentId))},d=(b,m)=>{const h=e.getItemDOMElement(m);h&&h.focus(),l(m),t.onItemFocus&&t.onItemFocus(b,m)},f=Zt((b,m)=>{u(m)&&d(b,m)}),v=Zt(()=>{if(n.focusedItemId==null)return;const b=e.getItemMeta(n.focusedItemId);if(b){const m=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,b.idAttribute));m&&m.blur()}l(null)}),g=b=>b===s;NA(e,"removeItem",({id:b})=>{n.focusedItemId===b&&d(null,s)});const p=b=>m=>{var h;(h=b.onFocus)==null||h.call(b,m),!m.defaultMuiPrevented&&m.target===m.currentTarget&&d(m,s)};return{getRootProps:b=>({onFocus:p(b)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:f,removeFocusedItem:v}}};Tp.getInitialState=()=>({focusedItemId:null});Tp.params={onItemFocus:!0};function jA(e){return!!e&&e.length===1&&!!e.match(/\S/)}const A1=({instance:e,params:t,state:n})=>{const r=BI(),i=x.useRef({}),o=Zt(u=>{i.current=u(i.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},d=f=>{u[f.id]=f.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(d),i.current=u},[n.items.itemMetaMap,t.getItemId,e]);const s=(u,d)=>{const f=d.toLowerCase(),v=m=>{const h=ua(e,m);return h===null?Ws(e):h};let g=null,p=v(u);const b={};for(;g==null&&!b[p];)i.current[p]===f?g=p:(b[p]=!0,p=v(p));return g},l=u=>!t.disableSelection&&!e.isItemDisabled(u),a=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(u,d)=>{if(u.defaultMuiPrevented||u.altKey||u.currentTarget!==u.target.closest('*[role="treeitem"]'))return;const f=u.ctrlKey||u.metaKey,v=u.key;switch(!0){case(v===" "&&l(d)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,d):e.selectItem({event:u,itemId:d,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case v==="Enter":{a(d)?(e.toggleItemExpansion(u,d),u.preventDefault()):l(d)&&(t.multiSelect?(u.preventDefault(),e.selectItem({event:u,itemId:d,keepExistingSelection:!0})):e.isItemSelected(d)||(e.selectItem({event:u,itemId:d}),u.preventDefault()));break}case v==="ArrowDown":{const g=ua(e,d);g&&(u.preventDefault(),e.focusItem(u,g),t.multiSelect&&u.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(u,d,g));break}case v==="ArrowUp":{const g=R1(e,d);g&&(u.preventDefault(),e.focusItem(u,g),t.multiSelect&&u.shiftKey&&l(g)&&e.selectItemFromArrowNavigation(u,d,g));break}case(v==="ArrowRight"&&!r||v==="ArrowLeft"&&r):{if(e.isItemExpanded(d)){const g=ua(e,d);g&&(e.focusItem(u,g),u.preventDefault())}else a(d)&&(e.toggleItemExpansion(u,d),u.preventDefault());break}case(v==="ArrowLeft"&&!r||v==="ArrowRight"&&r):{if(a(d)&&e.isItemExpanded(d))e.toggleItemExpansion(u,d),u.preventDefault();else{const g=e.getItemMeta(d).parentId;g&&(e.focusItem(u,g),u.preventDefault())}break}case v==="Home":{l(d)&&t.multiSelect&&f&&u.shiftKey?e.selectRangeFromStartToItem(u,d):e.focusItem(u,Ws(e)),u.preventDefault();break}case v==="End":{l(d)&&t.multiSelect&&f&&u.shiftKey?e.selectRangeFromItemToEnd(u,d):e.focusItem(u,P1(e)),u.preventDefault();break}case v==="*":{e.expandAllSiblings(u,d),u.preventDefault();break}case(v==="a"&&f&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!f&&!u.shiftKey&&jA(v)):{const g=s(d,v);g!=null&&(e.focusItem(u,g),u.preventDefault());break}}}}}};A1.params={};const D1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});D1.params={};const zA=[fl,cu,uu,Tp,A1,D1],M1="base";function BA(e){return`${M1}--${e}`}function VA(e,t){return`${M1}-${e}-${t}`}function L1(e,t){const n=Rb[t];return n?BA(n):VA(e,t)}function HA(e,t){const n={};return t.forEach(r=>{n[r]=L1(e,r)}),n}const Ya=Math.min,ei=Math.max,Ka=Math.round,Vl=Math.floor,_r=e=>({x:e,y:e}),UA={left:"right",right:"left",bottom:"top",top:"bottom"},WA={start:"end",end:"start"};function Tv(e,t,n){return ei(e,Ya(t,n))}function du(e,t){return typeof e=="function"?e(t):e}function ai(e){return e.split("-")[0]}function fu(e){return e.split("-")[1]}function N1(e){return e==="x"?"y":"x"}function F1(e){return e==="y"?"height":"width"}function mo(e){return["top","bottom"].includes(ai(e))?"y":"x"}function j1(e){return N1(mo(e))}function GA(e,t,n){n===void 0&&(n=!1);const r=fu(e),i=j1(e),o=F1(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ja(s)),[s,Ja(s)]}function qA(e){const t=Ja(e);return[Lf(e),t,Lf(t)]}function Lf(e){return e.replace(/start|end/g,t=>WA[t])}function QA(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function XA(e,t,n,r){const i=fu(e);let o=QA(ai(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Lf)))),o}function Ja(e){return e.replace(/left|right|bottom|top/g,t=>UA[t])}function YA(e){return{top:0,right:0,bottom:0,left:0,...e}}function KA(e){return typeof e!="number"?YA(e):{top:e,right:e,bottom:e,left:e}}function Za(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ev(e,t,n){let{reference:r,floating:i}=e;const o=mo(t),s=j1(t),l=F1(s),a=ai(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:u,y:r.y-i.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-i.width,y:d};break;default:v={x:r.x,y:r.y}}switch(fu(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const JA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ev(c,r,a),f=r,v={},g=0;for(let p=0;pV<=0)){var z,N;const V=(((z=o.flip)==null?void 0:z.index)||0)+1,W=T[V];if(W)return{data:{index:V,overflows:_},reset:{placement:W}};let K=(N=_.filter(q=>q.overflows[0]<=0).sort((q,P)=>q.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!K)switch(v){case"bestFit":{var U;const q=(U=_.filter(P=>{if(S){const M=mo(P.placement);return M===h||M==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(M=>M>0).reduce((M,O)=>M+O,0)]).sort((P,M)=>P[1]-M[1])[0])==null?void 0:U[0];q&&(K=q);break}case"initialPlacement":K=l;break}if(i!==K)return{reset:{placement:K}}}return{}}}};async function eD(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ai(n),l=fu(n),a=mo(n)==="y",c=["left","top"].includes(s)?-1:1,u=o&&a?-1:1,d=du(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*u,y:f*c}:{x:f*c,y:v*u}}const tD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await eD(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},nD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:m,y:h}=b;return{x:m,y:h}}},...a}=du(e,t),c={x:n,y:r},u=await z1(t,a),d=mo(ai(i)),f=N1(d);let v=c[f],g=c[d];if(o){const b=f==="y"?"top":"left",m=f==="y"?"bottom":"right",h=v+u[b],y=v-u[m];v=Tv(h,v,y)}if(s){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",h=g+u[b],y=g-u[m];g=Tv(h,g,y)}const p=l.fn({...t,[f]:v,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function _o(e){return B1(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tr(e){var t;return(t=(B1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function B1(e){return e instanceof Node||e instanceof zt(e).Node}function _n(e){return e instanceof Element||e instanceof zt(e).Element}function An(e){return e instanceof HTMLElement||e instanceof zt(e).HTMLElement}function Rv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function hl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function rD(e){return["table","td","th"].includes(_o(e))}function hu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ep(e){const t=Rp(),n=yn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function iD(e){let t=Ar(e);for(;An(t)&&!go(t);){if(hu(t))return null;if(Ep(t))return t;t=Ar(t)}return null}function Rp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function go(e){return["html","body","#document"].includes(_o(e))}function yn(e){return zt(e).getComputedStyle(e)}function pu(e){return _n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ar(e){if(_o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rv(e)&&e.host||tr(e);return Rv(t)?t.host:t}function V1(e){const t=Ar(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:An(t)&&hl(t)?t:V1(t)}function Gs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=V1(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=zt(i);return o?t.concat(s,s.visualViewport||[],hl(i)?i:[],s.frameElement&&n?Gs(s.frameElement):[]):t.concat(i,Gs(i,[],n))}function H1(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=An(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Ka(n)!==o||Ka(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Pp(e){return _n(e)?e:e.contextElement}function to(e){const t=Pp(e);if(!An(t))return _r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=H1(t);let s=(o?Ka(n.width):n.width)/r,l=(o?Ka(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const oD=_r(0);function U1(e){const t=zt(e);return!Rp()||!t.visualViewport?oD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Pp(e);let s=_r(1);t&&(r?_n(r)&&(s=to(r)):s=to(e));const l=sD(o,n,r)?U1(o):_r(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=zt(o),v=r&&_n(r)?zt(r):r;let g=f,p=g.frameElement;for(;p&&r&&v!==g;){const b=to(p),m=p.getBoundingClientRect(),h=yn(p),y=m.left+(p.clientLeft+parseFloat(h.paddingLeft))*b.x,w=m.top+(p.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,u*=b.x,d*=b.y,a+=y,c+=w,g=zt(p),p=g.frameElement}}return Za({width:u,height:d,x:a,y:c})}function lD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=tr(r),l=t?hu(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=_r(1);const u=_r(0),d=An(r);if((d||!d&&!o)&&((_o(r)!=="body"||hl(s))&&(a=pu(r)),An(r))){const f=ci(r);c=to(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function aD(e){return Array.from(e.getClientRects())}function W1(e){return ci(tr(e)).left+pu(e).scrollLeft}function cD(e){const t=tr(e),n=pu(e),r=e.ownerDocument.body,i=ei(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ei(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+W1(e);const l=-n.scrollTop;return yn(r).direction==="rtl"&&(s+=ei(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function uD(e,t){const n=zt(e),r=tr(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=Rp();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function dD(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=An(e)?to(e):_r(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Pv(e,t,n){let r;if(t==="viewport")r=uD(e,n);else if(t==="document")r=cD(tr(e));else if(_n(t))r=dD(t,n);else{const i=U1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Za(r)}function G1(e,t){const n=Ar(e);return n===t||!_n(n)||go(n)?!1:yn(n).position==="fixed"||G1(n,t)}function fD(e,t){const n=t.get(e);if(n)return n;let r=Gs(e,[],!1).filter(l=>_n(l)&&_o(l)!=="body"),i=null;const o=yn(e).position==="fixed";let s=o?Ar(e):e;for(;_n(s)&&!go(s);){const l=yn(s),a=Ep(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||hl(s)&&!a&&G1(e,s))?r=r.filter(u=>u!==s):i=l,s=Ar(s)}return t.set(e,r),r}function hD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?hu(t)?[]:fD(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,u)=>{const d=Pv(t,u,i);return c.top=ei(d.top,c.top),c.right=Ya(d.right,c.right),c.bottom=Ya(d.bottom,c.bottom),c.left=ei(d.left,c.left),c},Pv(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function pD(e){const{width:t,height:n}=H1(e);return{width:t,height:n}}function mD(e,t,n){const r=An(t),i=tr(t),o=n==="fixed",s=ci(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=_r(0);if(r||!r&&!o)if((_o(t)!=="body"||hl(i))&&(l=pu(t)),r){const d=ci(t,!0,o,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else i&&(a.x=W1(i));const c=s.left+l.scrollLeft-a.x,u=s.top+l.scrollTop-a.y;return{x:c,y:u,width:s.width,height:s.height}}function bd(e){return yn(e).position==="static"}function Ov(e,t){return!An(e)||yn(e).position==="fixed"?null:t?t(e):e.offsetParent}function q1(e,t){const n=zt(e);if(hu(e))return n;if(!An(e)){let i=Ar(e);for(;i&&!go(i);){if(_n(i)&&!bd(i))return i;i=Ar(i)}return n}let r=Ov(e,t);for(;r&&rD(r)&&bd(r);)r=Ov(r,t);return r&&go(r)&&bd(r)&&!Ep(r)?n:r||iD(e)||n}const gD=async function(e){const t=this.getOffsetParent||q1,n=this.getDimensions,r=await n(e.floating);return{reference:mD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vD(e){return yn(e).direction==="rtl"}const yD={convertOffsetParentRelativeRectToViewportRelativeRect:lD,getDocumentElement:tr,getClippingRect:hD,getOffsetParent:q1,getElementRects:gD,getClientRects:aD,getDimensions:pD,getScale:to,isElement:_n,isRTL:vD};function bD(e,t){let n=null,r;const i=tr(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const v=Vl(u),g=Vl(i.clientWidth-(c+d)),p=Vl(i.clientHeight-(u+f)),b=Vl(c),h={rootMargin:-v+"px "+-g+"px "+-p+"px "+-b+"px",threshold:ei(0,Ya(1,a))||1};let y=!0;function w(C){const S=C[0].intersectionRatio;if(S!==a){if(!y)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function _v(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=Pp(e),u=i||o?[...c?Gs(c):[],...Gs(t)]:[];u.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const d=c&&l?bD(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(m=>{let[h]=m;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let g,p=a?ci(e):null;a&&b();function b(){const m=ci(e);p&&(m.x!==p.x||m.y!==p.y||m.width!==p.width||m.height!==p.height)&&n(),p=m,g=requestAnimationFrame(b)}return n(),()=>{var m;u.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),d==null||d(),(m=v)==null||m.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const xD=tD,wD=nD,kD=ZA,CD=(e,t,n)=>{const r=new Map,i={platform:yD,...n},o={...i.platform,_c:r};return JA(e,t,{...i,platform:o})};var fa=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ec(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ec(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ec(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Q1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Av(e,t){const n=Q1(e);return Math.round(t*n)/n}function Dv(e){const t=x.useRef(e);return fa(()=>{t.current=e}),t}function SD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);ec(f,r)||v(r);const[g,p]=x.useState(null),[b,m]=x.useState(null),h=x.useCallback(q=>{q!==S.current&&(S.current=q,p(q))},[]),y=x.useCallback(q=>{q!==T.current&&(T.current=q,m(q))},[]),w=o||g,C=s||b,S=x.useRef(null),T=x.useRef(null),E=x.useRef(u),L=a!=null,_=Dv(a),z=Dv(i),N=x.useCallback(()=>{if(!S.current||!T.current)return;const q={placement:t,strategy:n,middleware:f};z.current&&(q.platform=z.current),CD(S.current,T.current,q).then(P=>{const M={...P,isPositioned:!0};U.current&&!ec(E.current,M)&&(E.current=M,vc.flushSync(()=>{d(M)}))})},[f,t,n,z]);fa(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[c]);const U=x.useRef(!1);fa(()=>(U.current=!0,()=>{U.current=!1}),[]),fa(()=>{if(w&&(S.current=w),C&&(T.current=C),w&&C){if(_.current)return _.current(w,C,N);N()}},[w,C,N,_,L]);const V=x.useMemo(()=>({reference:S,floating:T,setReference:h,setFloating:y}),[h,y]),W=x.useMemo(()=>({reference:w,floating:C}),[w,C]),K=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!W.floating)return q;const P=Av(W.floating,u.x),M=Av(W.floating,u.y);return l?{...q,transform:"translate("+P+"px, "+M+"px)",...Q1(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:M}},[n,l,W.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:N,refs:V,elements:W,floatingStyles:K}),[u,N,V,W,K])}const Mv=(e,t)=>({...xD(e),options:[e,t]}),$D=(e,t)=>({...wD(e),options:[e,t]}),ID=(e,t)=>({...kD(e),options:[e,t]});function TD(e){return typeof e=="function"?e():e}const ED=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=bt(x.isValidElement(r)?r.ref:null,n);if(js(()=>{o||l(TD(i)||document.body)},[i,o]),js(()=>{if(s&&!o)return za(n,s),()=>{za(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return k.jsx(x.Fragment,{children:r})}return k.jsx(x.Fragment,{children:s&&vc.createPortal(r,s)})}),X1="Popup";function RD(e){return L1(X1,e)}HA(X1,["root","open"]);const PD=x.createContext(null);function OD(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let u;return o?e?u=!1:u=!r.current&&t:u=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:u}),[a,e,c,u]),hasExited:u}}const _D=x.createContext(null),AD=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function DD(e){const{open:t}=e;return He({root:["root",t&&"open"]},dA(RD))}function MD(e){return typeof e=="function"?e():e}const LD=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:u=0,open:d=!1,placement:f="bottom",slotProps:v={},slots:g={},strategy:p="absolute"}=t,b=Y(t,AD),{refs:m,elements:h,floatingStyles:y,update:w,placement:C}=SD({elements:{reference:MD(i)},open:d,middleware:c??[Mv(u??0),ID(),$D()],placement:f,strategy:p,whileElementsMounted:a?void 0:_v}),S=bt(m.setFloating,n);js(()=>{if(a&&d&&h.reference&&h.floating)return _v(h.reference,h.floating,w)},[a,d,h,w]);const T=$({},t,{disablePortal:l,keepMounted:a,offset:Mv,open:d,placement:f,finalPlacement:C,strategy:p}),{contextValue:E,hasExited:L}=OD(d),_=a&&L?"hidden":void 0,z=DD(T),N=(r=g==null?void 0:g.root)!=null?r:"div",U=vr({elementType:N,externalSlotProps:v.root,externalForwardedProps:b,ownerState:T,className:z.root,additionalProps:{ref:S,role:"tooltip",style:$({},y,{visibility:_})}}),V=x.useMemo(()=>({placement:C}),[C]);return a||!L?k.jsx(ED,{disablePortal:l,container:s,children:k.jsx(_D.Provider,{value:V,children:k.jsx(PD.Provider,{value:E,children:k.jsx(N,$({},U,{children:o}))})})}):null}),Ao=()=>{const e=x.useContext(I1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` -`));return e};function Y1(e){const{instance:t,selection:{multiSelect:n,checkboxSelection:r,disableSelection:i},expansion:{expansionTrigger:o}}=Ao(),s=t.isItemExpandable(e),l=t.isItemExpanded(e),a=t.isItemFocused(e),c=t.isItemSelected(e),u=t.isItemDisabled(e);return{disabled:u,expanded:l,selected:c,focused:a,disableSelection:i,checkboxSelection:r,handleExpansion:p=>{if(!u){a||t.focusItem(p,e);const b=n&&(p.shiftKey||p.ctrlKey||p.metaKey);s&&!(b&&t.isItemExpanded(e))&&t.toggleItemExpansion(p,e)}},handleSelection:p=>{u||(a||t.focusItem(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.expandSelectionRange(p,e):t.selectItem({event:p,itemId:e,keepExistingSelection:!0}):t.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:p=>{if(i||u)return;const b=p.nativeEvent.shiftKey;n&&b?t.expandSelectionRange(p,e):t.selectItem({event:p,itemId:e,keepExistingSelection:n,shouldBeSelected:p.target.checked})},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||u)&&p.preventDefault()},expansionTrigger:o}}const ND=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],K1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:u,onMouseDown:d}=t,f=Y(t,ND),{disabled:v,expanded:g,selected:p,focused:b,disableSelection:m,checkboxSelection:h,handleExpansion:y,handleSelection:w,handleCheckboxSelection:C,preventSelection:S,expansionTrigger:T}=Y1(c),E=l||s||o,L=x.useRef(null),_=N=>{S(N),d&&d(N)},z=N=>{var U;(U=L.current)!=null&&U.contains(N.target)||(T==="content"&&y(N),h||w(N),u&&u(N))};return k.jsxs("div",$({},f,{className:ie(i,r.root,g&&r.expanded,p&&r.selected,b&&r.focused,v&&r.disabled),onClick:z,onMouseDown:_,ref:n,children:[k.jsx("div",{className:r.iconContainer,children:E}),h&&k.jsx(tx,{className:r.checkbox,checked:p,onChange:C,disabled:v||m,ref:L,tabIndex:-1}),k.jsx("div",{className:r.label,children:a})]}))});function FD(e){return Ve("MuiTreeItem",e)}const Mn=je("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox"]),J1=So(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),Z1=So(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function Op(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:i}=Ao();return r({children:t,itemId:n,instance:i})}Op.propTypes={children:rg.node,itemId:rg.string.isRequired};const jD=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],zD=["ownerState"],BD=["ownerState"],VD=["ownerState"],HD=k1(),UD=e=>{const{classes:t}=e;return He({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"]},FD,t)},WD=Z("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),GD=Z(K1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Mn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Mn.label}`]:t.label}],shouldForwardProp:e=>Jc(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Mn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Mn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Mn.label}`]:$({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Mn.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),qD=Z(sp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Jc(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),QD=x.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},expansion:{expansionTrigger:s},disabledItemsFocusable:l,indentationAtItemLevel:a,instance:c}=Ao(),u=x.useContext(Ip),d=HD({props:t,name:"MuiTreeItem"}),{children:f,className:v,slots:g,slotProps:p,ContentComponent:b=K1,ContentProps:m,itemId:h,id:y,label:w,onClick:C,onMouseDown:S,onBlur:T,onKeyDown:E}=d,L=Y(d,jD),{expanded:_,focused:z,selected:N,disabled:U,handleExpansion:V}=Y1(h),{contentRef:W,rootRef:K}=i(d),q=bt(n,K),P=bt(m==null?void 0:m.ref,W),M={expandIcon:(g==null?void 0:g.expandIcon)??r.slots.expandIcon??J1,collapseIcon:(g==null?void 0:g.collapseIcon)??r.slots.collapseIcon??Z1,endIcon:(g==null?void 0:g.endIcon)??r.slots.endIcon,icon:g==null?void 0:g.icon,groupTransition:g==null?void 0:g.groupTransition},O=ue=>Array.isArray(ue)?ue.length>0&&ue.some(O):!!ue,D=O(f),H=$({},d,{expanded:_,focused:z,selected:N,disabled:U,indentationAtItemLevel:a}),se=UD(H),ke=M.groupTransition??void 0,tt=vr({elementType:ke,ownerState:{},externalSlotProps:p==null?void 0:p.groupTransition,additionalProps:$({unmountOnExit:!0,in:_,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:se.groupTransition}),G=ue=>{s==="iconContainer"&&V(ue)},me=_?M.collapseIcon:M.expandIcon,ft=vr({elementType:me,ownerState:{},externalSlotProps:ue=>_?$({},zn(r.slotProps.collapseIcon,ue),zn(p==null?void 0:p.collapseIcon,ue)):$({},zn(r.slotProps.expandIcon,ue),zn(p==null?void 0:p.expandIcon,ue)),additionalProps:{onClick:G}}),Xe=Y(ft,zD),nr=D&&me?k.jsx(me,$({},Xe)):null,rr=D?void 0:M.endIcon,mu=vr({elementType:rr,ownerState:{},externalSlotProps:ue=>D?{}:$({},zn(r.slotProps.endIcon,ue),zn(p==null?void 0:p.endIcon,ue))}),gu=Y(mu,BD),vu=rr?k.jsx(rr,$({},gu)):null,Do=M.icon,yu=vr({elementType:Do,ownerState:{},externalSlotProps:p==null?void 0:p.icon}),bu=Y(yu,VD),xu=Do?k.jsx(Do,$({},bu)):null;let Mo;o?Mo=N:N&&(Mo=!0);function Lo(ue){!z&&(!U||l)&&ue.currentTarget===ue.target&&c.focusItem(ue,h)}function No(ue){T==null||T(ue),c.removeFocusedItem()}const wu=ue=>{E==null||E(ue),c.handleItemKeyDown(ue,h)},ku=c.getTreeItemIdAttribute(h,y),gi=c.canItemBeTabbed(h)?0:-1;return k.jsx(Op,{itemId:h,children:k.jsxs(WD,$({className:ie(se.root,v),role:"treeitem","aria-expanded":D?_:void 0,"aria-selected":Mo,"aria-disabled":U||void 0,id:ku,tabIndex:gi},L,{ownerState:H,onFocus:Lo,onBlur:No,onKeyDown:wu,ref:q,style:a?$({},L.style,{"--TreeView-itemDepth":typeof u=="function"?u(h):u}):L.style,children:[k.jsx(GD,$({as:b,classes:{root:se.content,expanded:se.expanded,selected:se.selected,focused:se.focused,disabled:se.disabled,iconContainer:se.iconContainer,label:se.label,checkbox:se.checkbox},label:w,itemId:h,onClick:C,onMouseDown:S,icon:xu,expansionIcon:nr,displayIcon:vu,ownerState:H},m,{ref:P})),f&&k.jsx(qD,$({as:ke},tt,{children:f}))]}))})}),XD=k1(),YD=e=>{const{classes:t}=e;return He({root:["root"]},pA,t)},KD=Z("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function JD({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??QD,l=vr({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return k.jsx(s,$({},l,{children:o}))}const ZD=x.forwardRef(function(t,n){const r=XD({props:t,name:"MuiRichTreeView"}),{getRootProps:i,contextValue:o,instance:s}=CA({plugins:zA,rootRef:n,props:r}),{slots:l,slotProps:a}=r,c=YD(r),u=(l==null?void 0:l.root)??KD,d=vr({elementType:u,externalSlotProps:a==null?void 0:a.root,className:c.root,getSlotProps:i,ownerState:r}),f=s.getItemsToRender(),v=({label:g,itemId:p,id:b,children:m})=>k.jsx(JD,{slots:l,slotProps:a,label:g,id:b,itemId:p,children:m==null?void 0:m.map(v)},p);return k.jsx(SA,{value:o,children:k.jsx(u,$({},d,{children:f.map(v)}))})}),ew=e=>Array.isArray(e)?e.length>0&&e.some(ew):!!e,eM=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Ao(),i={expandable:ew(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:c=>{if(i.disabled)return;i.focused||n.focusItem(c,e);const u=r&&(c.shiftKey||c.ctrlKey||c.metaKey);i.expandable&&!(u&&n.isItemExpanded(e))&&n.toggleItemExpansion(c,e)},handleSelection:c=>{if(i.disabled)return;i.focused||n.focusItem(c,e),r&&(c.shiftKey||c.ctrlKey||c.metaKey)?c.shiftKey?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:!0}):n.selectItem({event:c,itemId:e,shouldBeSelected:!0})},handleCheckboxSelection:c=>{const u=c.nativeEvent.shiftKey;r&&u?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:r,shouldBeSelected:c.target.checked})}},status:i}},tM=e=>{const{runItemPlugins:t,selection:{multiSelect:n,disableSelection:r,checkboxSelection:i},expansion:{expansionTrigger:o},disabledItemsFocusable:s,indentationAtItemLevel:l,instance:a,publicAPI:c}=Ao(),u=x.useContext(Ip),{id:d,itemId:f,label:v,children:g,rootRef:p}=e,{rootRef:b,contentRef:m}=t(e),{interactions:h,status:y}=eM({itemId:f,children:g}),w=a.getTreeItemIdAttribute(f,d),C=bt(p,b),S=x.useRef(null),T=O=>D=>{var se;if((se=O.onFocus)==null||se.call(O,D),D.defaultMuiPrevented)return;const H=!y.disabled||s;!y.focused&&H&&D.currentTarget===D.target&&a.focusItem(D,f)},E=O=>D=>{var H;(H=O.onBlur)==null||H.call(O,D),!D.defaultMuiPrevented&&a.removeFocusedItem()},L=O=>D=>{var H;(H=O.onKeyDown)==null||H.call(O,D),!D.defaultMuiPrevented&&a.handleItemKeyDown(D,f)},_=O=>D=>{var H,se;(H=O.onClick)==null||H.call(O,D),!(D.defaultMuiPrevented||(se=S.current)!=null&&se.contains(D.target))&&(o==="content"&&h.handleExpansion(D),i||h.handleSelection(D))},z=O=>D=>{var H;(H=O.onMouseDown)==null||H.call(O,D),!D.defaultMuiPrevented&&(D.shiftKey||D.ctrlKey||D.metaKey||y.disabled)&&D.preventDefault()},N=O=>D=>{var H;(H=O.onChange)==null||H.call(O,D),!D.defaultMuiPrevented&&(r||y.disabled||h.handleCheckboxSelection(D))},U=O=>D=>{var H;(H=O.onClick)==null||H.call(O,D),!D.defaultMuiPrevented&&o==="iconContainer"&&h.handleExpansion(D)};return{getRootProps:(O={})=>{const D=$({},Ln(e),Ln(O));let H;n?H=y.selected:y.selected&&(H=!0);const se=$({},D,{ref:C,role:"treeitem",tabIndex:a.canItemBeTabbed(f)?0:-1,id:w,"aria-expanded":y.expandable?y.expanded:void 0,"aria-selected":H,"aria-disabled":y.disabled||void 0},O,{onFocus:T(D),onBlur:E(D),onKeyDown:L(D)});return l&&(se.style={"--TreeView-itemDepth":typeof u=="function"?u(f):u}),se},getContentProps:(O={})=>{const D=Ln(O),H=$({},D,O,{ref:m,onClick:_(D),onMouseDown:z(D),status:y});return l&&(H.indentationAtItemLevel=!0),H},getGroupTransitionProps:(O={})=>{const D=Ln(O),H=$({},D,{unmountOnExit:!0,component:"ul",role:"group",in:y.expanded,children:g},O);return l&&(H.indentationAtItemLevel=!0),H},getIconContainerProps:(O={})=>{const D=Ln(O);return $({},D,O,{onClick:U(D)})},getCheckboxProps:(O={})=>{const D=Ln(O);return $({},D,{visible:i,ref:S,checked:y.selected,disabled:r||y.disabled,tabIndex:-1},O,{onChange:N(D)})},getLabelProps:(O={})=>{const D=$({},Ln(e),Ln(O));return $({},D,{children:v},O)},rootRef:C,status:y,publicAPI:c}};function nM(e){const{slots:t,slotProps:n,status:r}=e,i=Ao(),o=$({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??J1,collapseIcon:i.icons.slots.collapseIcon??Z1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=vr({elementType:a,externalSlotProps:u=>$({},zn(s[l],u),zn(n==null?void 0:n[l],u)),ownerState:{}});return a?k.jsx(a,$({},c)):null}const rM=["visible"],iM=Z("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),oM=Z("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Jc(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));Z("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>$({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const sM=Z("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),lM=Z(sp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Jc(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Z(x.forwardRef((e,t)=>{const{visible:n}=e,r=Y(e,rM);return n?k.jsx(tx,$({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});var _p={},xd={};const aM=Kn(rE);var Lv;function tw(){return Lv||(Lv=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aM}(xd)),xd}var cM=Yc;Object.defineProperty(_p,"__esModule",{value:!0});var nw=_p.default=void 0,uM=cM(tw()),dM=k;nw=_p.default=(0,uM.default)((0,dM.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopyOutlined");const fM=({text:e,message:t})=>{const n=np(),[r,i]=It.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),k.jsxs(k.Fragment,{children:[k.jsx(gt,{className:"icon",onClick:l,sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(nw,{sx:{height:"16px"}})}),k.jsx(LD,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:k.jsx(SR,{onClickAway:a,children:k.jsx(UE,{in:o,timeout:500,children:k.jsx(gt,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})};var Ap={},hM=Yc;Object.defineProperty(Ap,"__esModule",{value:!0});var rw=Ap.default=void 0,pM=hM(tw()),mM=k;rw=Ap.default=(0,pM.default)((0,mM.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");const gM=({network:e,type:t,id:n})=>{let r;return e==="localnet"?t==="txn"?r=`http://localhost:44380/txblock/${n}`:r=`http://localhost:44380/object/${n}`:t==="package"?r=`https://suiscan.xyz/${e}/object/${n}/contracts`:t==="txn"?r=`https://suiscan.xyz/${e}/tx/${n}`:r=`https://suiscan.xyz/${e}/object/${n}`,k.jsx(Xi,{className:"icon",color:"inherit",href:r,target:"_blank",rel:"noopener noreferrer",sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(rw,{sx:{height:"16px"}})})},vM=Z(oM)(({})=>({padding:0}));function yM(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>7?e.slice(0,4)+"~"+e.slice(-4):e)}const bM=e=>{const n=String(e).split(/(0x|~|::)/),r={fontSize:"9px",fontWeight:"lighter"},i={...r,verticalAlign:"middle",marginRight:"-1px",marginLeft:"-1px"};return n.map((o,s)=>{const l=o==="0x",a=o==="~",c=o==="::",u=!l&&!a&&!c;return k.jsxs(x.Fragment,{children:[l&&k.jsx("span",{style:r,children:"0x"}),a&&k.jsx("span",{style:r,children:"…"}),c&&k.jsxs(k.Fragment,{children:[k.jsx("span",{style:i,children:":"}),k.jsx("span",{style:i,children:":"})]}),u&&o]},s)})},xM=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,[u,d]=x.useState(!1),f=!1,v=!1,g="(empty)",p,b,m;const h=o.charAt(0);if(h.length>0){if(h>="0"&&h<="9")f=!0;else if(h===ox)v=!0,o===ap&&(g=`To get started, do '${r} publish' in a terminal`);else if(h===ix){const N=o.split("-").pop();if(c&&N){const U=yM(N);c=c.toString().replace(sx,U),p=N,m="0x"+N,b="package"}}}const{getRootProps:y,getContentProps:w,getIconContainerProps:C,getLabelProps:S,getGroupTransitionProps:T,status:E}=tM({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let L={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};f?(L.fontSize="11px",L.textTransform="uppercase",L.fontWeight="bold"):v?L.whiteSpace="normal":(L.letterSpacing=0,L.fontFamily="monospace");const _=()=>k.jsxs(k.Fragment,{children:[p&&k.jsx(fM,{text:p,message:"Copied"}),m&&b&&k.jsx(gM,{network:r,type:b,id:m})]}),z=()=>k.jsxs(gt,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[k.jsx(gt,{flexGrow:1,overflow:"hidden",children:k.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:k.jsx("span",{style:L,...S(),children:bM(c)})})}),u&&_()]});return k.jsx(Op,{itemId:o,children:k.jsxs(iM,{...y(a),children:[k.jsxs(vM,{...w(),children:[k.jsx(sM,{...C(),children:k.jsx(nM,{status:E})}),v?k.jsx(en,{variant:"caption",sx:L,...S(),children:g}):z()]}),l&&k.jsx(lM,{...T()})]})})});function wM({items:e,workdir:t}){return k.jsx(ZD,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>k.jsx(xM,{...n,workdir:t})}})}const iw=[{id:Wa,label:"Recent Packages",children:[{id:ap,label:""}]}];class Nf{constructor(t,n){Ce(this,"workdir");Ce(this,"workdirIdx");Ce(this,"methodUuid");Ce(this,"dataUuid");Ce(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=iw}}function kM(e,t){if(!t.isLoaded)return e.tree==iw?e:new Nf(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new Nf(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){let a=!0;const c=i[l];if(c.packages!=null){const u=`${Wa}-${l}`,d=`${Bg}-${l}`;for(let f of c.packages){if(a){a=!1;let g=Nv(u,f);g&&o.push(g)}const v=Nv(d,f);v&&s.push(v)}}}return o.length==0&&(o=[{id:ap,label:""}]),n.tree.push({id:Wa,label:"Recent Packages",children:o}),n.tree.push({id:Bg,label:"All Packages",children:s}),n}function Nv(e,t){const n=t.name;if(!n){console.log("Missing name field in package json: "+JSON.stringify(t));return}const r=t.pid;if(!r){console.log("Missing pid field in package json: "+JSON.stringify(t));return}const i=`${sx}::${n}`;return{id:`${ix}-${e}-${r}`,label:i}}function CM({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new Nf(e,t));return x.useEffect(()=>{try{const s=kM(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),k.jsx(k.Fragment,{children:k.jsx(wM,{items:i.tree,workdir:e})})}function ow(e){let t=e.issue,n="";const r=t.match(/,homedir=(.*)/);return r&&(n=r[1],t=t.replace(/,homedir=(.*)/,"")),t==Vg?k.jsxs(en,{variant:"body2",children:[Vg,k.jsx("br",{}),"Check ",k.jsx(Xi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Ug?k.jsxs(en,{variant:"body2",children:[Ug,k.jsx("br",{}),"Please install Sui prerequisites",k.jsx("br",{}),"Check ",k.jsx(Xi,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):t==Hg?k.jsxs(en,{variant:"body2",children:[Hg,k.jsx("br",{}),"Initialize your shell to have ",n,"/.local/bin added to the $PATH.",k.jsx("br",{}),"Check ",k.jsx(Xi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):k.jsx(en,{variant:"body2",children:t})}const SM=()=>{const{common:e,workdirs:t,statusTrigger:n,commonTrigger:r,packagesTrigger:i}=ax(Ef,{trackStatus:!0,trackPackages:!0}),[o,s]=x.useState(""),[l,a]=x.useState(e.current.activeWorkdir),[c,u]=x.useState(!1),d=m=>{const h=m.target.value;if(h!==e.current.activeWorkdir){s(h),a(h);const y=Wn.indexOf(h);y!==-1&&Yi.postMessage(new lx(Ef,y,"set-active"))}else s(""),a(e.current.activeWorkdir)};x.useEffect(()=>(o!==""?o===e.current.activeWorkdir&&(s(""),a(e.current.activeWorkdir)):l!==e.current.activeWorkdir&&a(e.current.activeWorkdir),()=>{}),[o,l,e.current.activeWorkdir,r]),x.useEffect(()=>{let m=!0;for(let h=0;hk.jsx(gt,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded?k.jsxs(k.Fragment,{children:[k.jsx(oA,{value:l,onChange:d,children:Wn.map((m,h)=>{const y=t[h],w=m===l,C=!w&&y.workdirStatus.status==="DISABLED";return k.jsx(sA,{value:m,selected:w,disabled:C,children:If[h]},m)})}),o&&k.jsx(Ua,{size:15,style:{marginLeft:"3px"}})]}):k.jsx(Ua,{size:15})}),v=()=>k.jsx(gt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",k.jsx(Xi,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),g=()=>k.jsx(gt,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&k.jsx(CM,{packagesTrigger:i,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})}),p=()=>k.jsx(gt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(en,{variant:"body2",children:["There is no workdir enabled. Do 'testnet start' command in a terminal or try the ",k.jsx(Xi,{component:"button",variant:"body2",onClick:()=>{Yi.postMessage(new OP)},children:"dashboard"}),"."]})}),b=!e.current.setupIssue&&!c;return k.jsxs(k.Fragment,{children:[e.current.setupIssue&&k.jsx(ow,{issue:e.current.setupIssue}),!e.current.setupIssue&&c&&p(),b&&f(),v(),b&&g()]})},$M=Z(HR)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class IM{constructor(){Ce(this,"showSpinner");Ce(this,"spinnerForSwitch");Ce(this,"requestedChange");Ce(this,"switchState");Ce(this,"switchSkeleton");Ce(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const TM=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=ax(Tf,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(!1),[l,a]=x.useState(Wn.map(()=>new IM)),c=(f,v)=>{a(g=>g.map((p,b)=>b===f?{...p,...v}:p))},u=f=>{switch(f.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},d=(f,v)=>{const g=r[f],p=u(g);if(v!==p){c(f,{requestedChange:v,switchState:v,spinnerForSwitch:!0});const b=v?"start":"stop";Yi.postMessage(new lx(Tf,f,b))}else c(f,{requestedChange:void 0,switchState:p,spinnerForSwitch:!1})};return x.useEffect(()=>(l.forEach((f,v)=>{const g=r[v],p=u(g);f.requestedChange!==void 0?f.requestedChange===p?c(v,{requestedChange:void 0,switchState:p,spinnerForSwitch:!1}):f.spinnerForSwitch||c(v,{spinnerForSwitch:!0}):f.switchState!==p&&c(v,{switchState:p,spinnerForSwitch:!1});const b=f.spinnerForSwitch||f.spinnerForUpdate;f.showSpinner!==b&&c(v,{showSpinner:b})}),()=>{}),[e,t,r,l]),x.useEffect(()=>{let f=!0;for(let v=0;v{const g=r[v],p=o||!g.workdirStatus.isLoaded||v!==n.current.activeWorkdirIdx;return k.jsxs(zg,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[k.jsx(lr,{sx:{width:115,maxWidth:115,pt:"6px",pb:"6px",pl:0,pr:0,m:0},children:k.jsxs(gt,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[k.jsx(gt,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:f.showSpinner&&k.jsx(Ua,{size:9})}),k.jsx(gt,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:k.jsx($M,{...i,size:"small",disabled:f.showSpinner,checked:f.switchState,onChange:b=>d(v,b.target.checked)})}),k.jsx(gt,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:k.jsx(KE,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:p,children:k.jsx(en,{variant:"body2",sx:{pl:"2px"},children:If[v]})})})]})}),k.jsx(lr,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:k.jsx(en,{variant:"subtitle2",children:g.workdirStatus.status})}),k.jsx(lr,{align:"center",sx:{width:65,maxWidth:65,p:0,m:0},children:k.jsx(en,{variant:"body2",children:g.workdirStatus.isLoaded&&g.workdirStatus.suiClientVersionShort})}),k.jsx(lr,{})]},If[v])})})]})})]}):k.jsx(Ua,{size:15})]})},Hl=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||Sn[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),Sn[500]}},EM=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function RM(){const e=EM("--vscode-editor-foreground"),t=It.useMemo(()=>tp({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:Hl("--vscode-editor-background")},text:{primary:Hl("--vscode-editor-foreground")},primary:{main:Hl("--vscode-editor-foreground")},secondary:{main:Hl("--vscode-editor-foreground")}}}),[e]);let n;switch(globalThis.suibase_view_key){case Tf:n=k.jsx(TM,{});break;case IP:n=k.jsx(kP,{});break;case Ef:n=k.jsx(SM,{});break;default:n=null}return k.jsx(k.Fragment,{children:k.jsxs(KT,{theme:t,children:[k.jsx(ER,{}),k.jsx("main",{children:n})]})})}qx().register(iA);kd.createRoot(document.getElementById("root")).render(k.jsxs(k.Fragment,{children:[k.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),k.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),k.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),k.jsx(It.StrictMode,{children:k.jsx(RM,{})})]})); +`));i[f]={id:f,label:v,parentId:d,idAttribute:void 0,expandable:!!((g=c.children)!=null&&g.length),disabled:t?t(c):!1,depth:u},o[f]=c;const m=d??zi;s[m]||(s[m]=[]),s[m].push(f),(b=c.children)==null||b.forEach(p=>l(p,u+1,f))};e.forEach(c=>l(c,0,null));const a={};return Object.keys(s).forEach(c=>{a[c]=xA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},gl=({instance:e,params:t,state:n,setState:r,experimentalFeatures:i})=>{const o=x.useCallback(p=>n.items.itemMetaMap[p],[n.items.itemMetaMap]),s=x.useCallback(p=>n.items.itemMap[p],[n.items.itemMap]),l=x.useCallback(()=>{const p=h=>{const y=n.items.itemMap[h],w=J(y,wA),C=n.items.itemOrderedChildrenIds[h];return C&&(w.children=C.map(p)),w};return n.items.itemOrderedChildrenIds[zi].map(p)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),a=x.useCallback(p=>{if(p==null)return!1;let h=e.getItemMeta(p);if(!h)return!1;if(h.disabled)return!0;for(;h.parentId!=null;)if(h=e.getItemMeta(h.parentId),h.disabled)return!0;return!1},[e]),c=x.useCallback(p=>{const h=e.getItemMeta(p).parentId??zi;return n.items.itemChildrenIndexes[h][p]},[e,n.items.itemChildrenIndexes]),u=x.useCallback(p=>n.items.itemOrderedChildrenIds[p??zi]??[],[n.items.itemOrderedChildrenIds]),d=p=>{const h=e.getItemMeta(p);return h==null?null:document.getElementById(e.getTreeItemIdAttribute(p,h.idAttribute))},f=p=>t.disabledItemsFocusable?!0:!e.isItemDisabled(p),v=x.useRef(!1),m=x.useCallback(()=>{v.current=!0},[]),g=x.useCallback(()=>v.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(p=>{const h=O1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(p.items.itemMetaMap).forEach(y=>{h.itemMetaMap[y.id]||bA(e,"removeItem",{id:y.id})}),S({},p,{items:h})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:d,getItemTree:l,getItemOrderedChildrenIds:u},instance:{getItemMeta:o,getItem:s,getItemTree:l,getItemsToRender:()=>{const p=h=>{var w;const y=n.items.itemMetaMap[h];return{label:y.label,itemId:y.id,id:y.idAttribute,children:(w=n.items.itemOrderedChildrenIds[h])==null?void 0:w.map(p)}};return n.items.itemOrderedChildrenIds[zi].map(p)},getItemIndex:c,getItemDOMElement:d,getItemOrderedChildrenIds:u,isItemDisabled:a,isItemNavigable:f,preventItemUpdates:m,areItemUpdatesPrevented:g},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:i.indentationAtItemLevel??!1}}}};gl.getInitialState=e=>({items:O1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});gl.getDefaultizedParams=e=>S({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});gl.wrapRoot=({children:e,instance:t})=>k.jsx(Mp.Provider,{value:n=>{var r;return((r=t.getItemMeta(n))==null?void 0:r.depth)??0},children:e});gl.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const gu=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(f=>{d.set(f,!0)}),d},[n.expandedItems.value]),i=(d,f)=>{var v;(v=t.onExpandedItemsChange)==null||v.call(t,d,f),n.expandedItems.setControlledValue(f)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var f;return!!((f=e.getItemMeta(d))!=null&&f.expandable)},[e]),l=tn((d,f)=>{const v=e.isItemExpanded(f);e.setItemExpansion(d,f,!v)}),a=tn((d,f,v)=>{if(e.isItemExpanded(f)===v)return;let g;v?g=[f].concat(n.expandedItems.value):g=n.expandedItems.value.filter(b=>b!==f),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,f,v),i(d,g)}),c=(d,f)=>{const v=e.getItemMeta(f),g=e.getItemOrderedChildrenIds(v.parentId).filter(p=>e.isItemExpandable(p)&&!e.isItemExpanded(p)),b=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(p=>{t.onItemExpansionToggle(d,p,!0)}),i(d,b))},u=x.useMemo(()=>t.expansionTrigger?t.expansionTrigger:"content",[t.expansionTrigger]);return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:c},contextValue:{expansion:{expansionTrigger:u}}}};gu.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const kA=[];gu.getDefaultizedParams=e=>S({},e,{defaultExpandedItems:e.defaultExpandedItems??kA});gu.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const _1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},A1=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=i-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:A1(e,n.parentId);let s=r[o],l=_1(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&l!=null;)s=l,l=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ga=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=_1(e,n);if(r==null)return t;t=r}return t},Xs=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),M1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,u=o.indexOf(a)!==-1,d=!0,f=!0;for(;!u&&!c;)d&&(o.push(l),c=s.indexOf(l)!==-1,d=l!==null,!c&&d&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),u=o.indexOf(a)!==-1,f=a!==null,!u&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,m=e.getItemOrderedChildrenIds(v),g=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return m.indexOf(g){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const u=e.getItemOrderedChildrenIds(c.parentId),d=e.getItemIndex(c.id);if(d{let t=Xs(e);const n=[];for(;t!=null;)n.push(t),t=ga(e,t);return n},$A=(e,t)=>t!==e.closest('*[role="treeitem"]'),va=e=>Array.isArray(e)?e:e!=null?[e]:[],Td=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},vu=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const g=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{g.set(b,!0)}):n.selectedItems.value!=null&&g.set(n.selectedItems.value,!0),g},[n.selectedItems.value]),s=(g,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const p=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));p.forEach(y=>{t.onItemSelectionToggle(g,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(g,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(g,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(g,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(g,b),n.selectedItems.setControlledValue(b)},l=g=>o.has(g),a=({event:g,itemId:b,keepExistingSelection:p=!1,shouldBeSelected:h})=>{if(t.disableSelection)return;let y;if(p){const w=va(n.selectedItems.value),C=e.isItemSelected(b);C&&(h===!1||h==null)?y=w.filter($=>$!==b):!C&&(h===!0||h==null)?y=[b].concat(w):y=w}else h===!1||h==null&&e.isItemSelected(b)?y=t.multiSelect?[]:null:y=t.multiSelect?[b]:b;s(g,y),r.current=b,i.current={}},c=(g,[b,p])=>{if(t.disableSelection||!t.multiSelect)return;let h=va(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter($=>!i.current[$]));const y=Td(h),w=CA(e,b,p),C=w.filter($=>!y[$]);h=h.concat(C),s(g,h),i.current=Td(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:a},instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:g=>{if(t.disableSelection||!t.multiSelect)return;const b=SA(e);s(g,b),i.current=Td(b)},expandSelectionRange:(g,b)=>{if(r.current!=null){const[p,h]=M1(e,b,r.current);c(g,[p,h])}},selectRangeFromStartToItem:(g,b)=>{c(g,[Xs(e),b])},selectRangeFromItemToEnd:(g,b)=>{c(g,[b,D1(e)])},selectItemFromArrowNavigation:(g,b,p)=>{if(t.disableSelection||!t.multiSelect)return;let h=va(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(p),i.current={[b]:!0,[p]:!0}):(i.current[b]||(i.current={}),i.current[p]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(p),i.current[p]=!0)),s(g,h)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};vu.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const IA=[];vu.getDefaultizedParams=e=>S({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?IA:null)});vu.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const Rv=1e3;class TA{constructor(t=Rv){this.timeouts=new Map,this.cleanupTimeout=Rv,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class EA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class RA{}function PA(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new EA:new TA);const[s]=x.useState(new RA),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const u=(d,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,d,f)};l.current=r.$$subscribeEvent(i,u),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var d;(d=l.current)==null||d.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const u=(d,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,d,f)};l.current=r.$$subscribeEvent(i,u)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var u;(u=l.current)==null||u.call(l),l.current=null}},[r,i])}}const OA={registry:null},_A=PA(OA),L1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?L1(t.shadowRoot):t:null},AA=(e,t)=>{let n=va(t).find(r=>{if(!e.isItemNavigable(r))return!1;const i=e.getItemMeta(r);return i&&(i.parentId==null||e.isItemExpanded(i.parentId))});return n==null&&(n=Xs(e)),n},Lp=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=AA(e,i.selectedItems.value),l=tn(b=>{const p=typeof b=="function"?b(n.focusedItemId):b;n.focusedItemId!==p&&r(h=>S({},h,{focusedItemId:p}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(L1(Xi(o.current))),[o]),c=x.useCallback(b=>n.focusedItemId===b&&a(),[n.focusedItemId,a]),u=b=>{const p=e.getItemMeta(b);return p&&(p.parentId==null||e.isItemExpanded(p.parentId))},d=(b,p)=>{const h=e.getItemDOMElement(p);h&&h.focus(),l(p),t.onItemFocus&&t.onItemFocus(b,p)},f=tn((b,p)=>{u(p)&&d(b,p)}),v=tn(()=>{if(n.focusedItemId==null)return;const b=e.getItemMeta(n.focusedItemId);if(b){const p=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,b.idAttribute));p&&p.blur()}l(null)}),m=b=>b===s;_A(e,"removeItem",({id:b})=>{n.focusedItemId===b&&d(null,s)});const g=b=>p=>{var h;(h=b.onFocus)==null||h.call(b,p),!p.defaultMuiPrevented&&p.target===p.currentTarget&&d(p,s)};return{getRootProps:b=>({onFocus:g(b)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:m,focusItem:f,removeFocusedItem:v}}};Lp.getInitialState=()=>({focusedItemId:null});Lp.params={onItemFocus:!0};function DA(e){return!!e&&e.length===1&&!!e.match(/\S/)}const N1=({instance:e,params:t,state:n})=>{const r=VI(),i=x.useRef({}),o=tn(u=>{i.current=u(i.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},d=f=>{u[f.id]=f.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(d),i.current=u},[n.items.itemMetaMap,t.getItemId,e]);const s=(u,d)=>{const f=d.toLowerCase(),v=p=>{const h=ga(e,p);return h===null?Xs(e):h};let m=null,g=v(u);const b={};for(;m==null&&!b[g];)i.current[g]===f?m=g:(b[g]=!0,g=v(g));return m},l=u=>!t.disableSelection&&!e.isItemDisabled(u),a=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(u,d)=>{if(u.defaultMuiPrevented||u.altKey||$A(u.target,u.currentTarget))return;const f=u.ctrlKey||u.metaKey,v=u.key;switch(!0){case(v===" "&&l(d)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,d):e.selectItem({event:u,itemId:d,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case v==="Enter":{a(d)?(e.toggleItemExpansion(u,d),u.preventDefault()):l(d)&&(t.multiSelect?(u.preventDefault(),e.selectItem({event:u,itemId:d,keepExistingSelection:!0})):e.isItemSelected(d)||(e.selectItem({event:u,itemId:d}),u.preventDefault()));break}case v==="ArrowDown":{const m=ga(e,d);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&l(m)&&e.selectItemFromArrowNavigation(u,d,m));break}case v==="ArrowUp":{const m=A1(e,d);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&l(m)&&e.selectItemFromArrowNavigation(u,d,m));break}case(v==="ArrowRight"&&!r||v==="ArrowLeft"&&r):{if(e.isItemExpanded(d)){const m=ga(e,d);m&&(e.focusItem(u,m),u.preventDefault())}else a(d)&&(e.toggleItemExpansion(u,d),u.preventDefault());break}case(v==="ArrowLeft"&&!r||v==="ArrowRight"&&r):{if(a(d)&&e.isItemExpanded(d))e.toggleItemExpansion(u,d),u.preventDefault();else{const m=e.getItemMeta(d).parentId;m&&(e.focusItem(u,m),u.preventDefault())}break}case v==="Home":{l(d)&&t.multiSelect&&f&&u.shiftKey?e.selectRangeFromStartToItem(u,d):e.focusItem(u,Xs(e)),u.preventDefault();break}case v==="End":{l(d)&&t.multiSelect&&f&&u.shiftKey?e.selectRangeFromItemToEnd(u,d):e.focusItem(u,D1(e)),u.preventDefault();break}case v==="*":{e.expandAllSiblings(u,d),u.preventDefault();break}case(v==="a"&&f&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!f&&!u.shiftKey&&DA(v)):{const m=s(d,v);m!=null&&(e.focusItem(u,m),u.preventDefault());break}}}}}};N1.params={};const F1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});F1.params={};const MA=[gl,gu,vu,Lp,N1,F1];function j1(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:i,disableSelection:o},expansion:{expansionTrigger:s}}=Ao(),l=t.isItemExpandable(e),a=t.isItemExpanded(e),c=t.isItemFocused(e),u=t.isItemSelected(e),d=t.isItemDisabled(e);return{disabled:d,expanded:a,selected:u,focused:c,disableSelection:o,checkboxSelection:i,handleExpansion:b=>{if(!d){c||t.focusItem(b,e);const p=r&&(b.shiftKey||b.ctrlKey||b.metaKey);l&&!(p&&t.isItemExpanded(e))&&t.toggleItemExpansion(b,e)}},handleSelection:b=>{d||(c||t.focusItem(b,e),r&&(b.shiftKey||b.ctrlKey||b.metaKey)?b.shiftKey?t.expandSelectionRange(b,e):t.selectItem({event:b,itemId:e,keepExistingSelection:!0}):t.selectItem({event:b,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:b=>{if(o||d)return;const p=b.nativeEvent.shiftKey;r&&p?t.expandSelectionRange(b,e):t.selectItem({event:b,itemId:e,keepExistingSelection:r,shouldBeSelected:b.target.checked})},handleContentClick:n,preventSelection:b=>{(b.shiftKey||b.ctrlKey||b.metaKey||d)&&b.preventDefault()},expansionTrigger:s}}const LA=Z("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>lI(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:vt((e.vars||e).palette.primary.dark,.15)}},{props:{action:"reorder-above"},style:S({marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${vt((e.vars||e).palette.grey[900],.6)}`},e.palette.mode==="dark"&&{borderTop:`1px solid ${vt((e.vars||e).palette.grey[100],.6)}`})},{props:{action:"reorder-below"},style:S({marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${vt((e.vars||e).palette.grey[900],.6)}`},e.palette.mode==="dark"&&{borderBottom:`1px solid ${vt((e.vars||e).palette.grey[100],.6)}`})},{props:{action:"move-to-parent"},style:S({marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${vt((e.vars||e).palette.grey[900],.6)}`},e.palette.mode==="dark"&&{borderBottom:`1px solid ${vt((e.vars||e).palette.grey[900],.6)}`})}]}));function NA(e){return e.action==null?null:k.jsx(LA,S({},e))}const FA=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps"],z1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:u,onMouseDown:d,dragAndDropOverlayProps:f}=t,v=J(t,FA),{disabled:m,expanded:g,selected:b,focused:p,disableSelection:h,checkboxSelection:y,handleExpansion:w,handleSelection:C,handleCheckboxSelection:$,handleContentClick:I,preventSelection:P,expansionTrigger:L}=j1(c),_=l||s||o,F=x.useRef(null),V=N=>{P(N),d&&d(N)},G=N=>{var U;I==null||I(N,c),!((U=F.current)!=null&&U.contains(N.target))&&(L==="content"&&w(N),y||C(N),u&&u(N))};return k.jsxs("div",S({},v,{className:ie(i,r.root,g&&r.expanded,b&&r.selected,p&&r.focused,m&&r.disabled),onClick:G,onMouseDown:V,ref:n,children:[k.jsx("div",{className:r.iconContainer,children:_}),y&&k.jsx(ox,{className:r.checkbox,checked:b,onChange:$,disabled:m||h,ref:F,tabIndex:-1}),k.jsx("div",{className:r.label,children:a}),f&&k.jsx(NA,S({},f))]}))});function jA(e){return Ue("MuiTreeItem",e)}const jn=ze("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","dragAndDropOverlay"]),B1=$o(k.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),V1=$o(k.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function Np(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:i}=Ao();return r({children:t,itemId:n,instance:i})}Np.propTypes={children:ag.node,itemId:ag.string.isRequired};const zA=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],BA=["ownerState"],VA=["ownerState"],HA=["ownerState"],UA=I1(),WA=e=>{const{classes:t}=e;return We({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"]},jA,t)},GA=Z("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),qA=Z(z1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${jn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${jn.label}`]:t.label}],shouldForwardProp:e=>ou(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${jn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${jn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${jn.label}`]:S({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${jn.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),QA=Z(mp,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ou(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),XA=x.forwardRef(function(t,n){var bl,Bo,Ou;const{icons:r,runItemPlugins:i,items:{disabledItemsFocusable:o,indentationAtItemLevel:s},selection:{multiSelect:l},expansion:{expansionTrigger:a},instance:c}=Ao(),u=x.useContext(Mp),d=UA({props:t,name:"MuiTreeItem"}),{children:f,className:v,slots:m,slotProps:g,ContentComponent:b=z1,ContentProps:p,itemId:h,id:y,label:w,onClick:C,onMouseDown:$,onBlur:I,onKeyDown:P}=d,L=J(d,zA),{expanded:_,focused:F,selected:V,disabled:G,handleExpansion:N}=j1(h),{contentRef:U,rootRef:K,propsEnhancers:H}=i(d),R=x.useRef(null),M=x.useRef(null),W=at(n,K,R),se=at(p==null?void 0:p.ref,U,M),le={expandIcon:(m==null?void 0:m.expandIcon)??r.slots.expandIcon??B1,collapseIcon:(m==null?void 0:m.collapseIcon)??r.slots.collapseIcon??V1,endIcon:(m==null?void 0:m.endIcon)??r.slots.endIcon,icon:m==null?void 0:m.icon,groupTransition:m==null?void 0:m.groupTransition},ht=Ce=>Array.isArray(Ce)?Ce.length>0&&Ce.some(ht):!!Ce,me=ht(f),Be=S({},d,{expanded:_,focused:F,selected:V,disabled:G,indentationAtItemLevel:s}),E=WA(Be),D=le.groupTransition??void 0,q=Gn({elementType:D,ownerState:{},externalSlotProps:g==null?void 0:g.groupTransition,additionalProps:S({unmountOnExit:!0,in:_,component:"ul",role:"group"},s?{indentationAtItemLevel:!0}:{}),className:E.groupTransition}),ae=Ce=>{a==="iconContainer"&&N(Ce)},pt=_?le.collapseIcon:le.expandIcon,Fn=Gn({elementType:pt,ownerState:{},externalSlotProps:Ce=>_?S({},Vn(r.slotProps.collapseIcon,Ce),Vn(g==null?void 0:g.collapseIcon,Ce)):S({},Vn(r.slotProps.expandIcon,Ce),Vn(g==null?void 0:g.expandIcon,Ce)),additionalProps:{onClick:ae}}),ku=J(Fn,BA),Cu=me&&pt?k.jsx(pt,S({},ku)):null,Mo=me?void 0:le.endIcon,Su=Gn({elementType:Mo,ownerState:{},externalSlotProps:Ce=>me?{}:S({},Vn(r.slotProps.endIcon,Ce),Vn(g==null?void 0:g.endIcon,Ce))}),$u=J(Su,VA),Iu=Mo?k.jsx(Mo,S({},$u)):null,Lo=le.icon,Tu=Gn({elementType:Lo,ownerState:{},externalSlotProps:g==null?void 0:g.icon}),No=J(Tu,HA),Fo=Lo?k.jsx(Lo,S({},No)):null;let jo;l?jo=V:V&&(jo=!0);function Eu(Ce){!F&&(!G||o)&&Ce.currentTarget===Ce.target&&c.focusItem(Ce,h)}function vi(Ce){I==null||I(Ce),c.removeFocusedItem()}const zr=Ce=>{P==null||P(Ce),c.handleItemKeyDown(Ce,h)},Ru=c.getTreeItemIdAttribute(h,y),yl=c.canItemBeTabbed(h)?0:-1,Pu=((bl=H.root)==null?void 0:bl.call(H,{rootRefObject:R,contentRefObject:M,externalEventHandlers:pn(L)}))??{},Y=((Bo=H.content)==null?void 0:Bo.call(H,{rootRefObject:R,contentRefObject:M,externalEventHandlers:pn(p)}))??{},zo=((Ou=H.dragAndDropOverlay)==null?void 0:Ou.call(H,{rootRefObject:R,contentRefObject:M,externalEventHandlers:{}}))??{};return k.jsx(Np,{itemId:h,children:k.jsxs(GA,S({className:ie(E.root,v),role:"treeitem","aria-expanded":me?_:void 0,"aria-selected":jo,"aria-disabled":G||void 0,id:Ru,tabIndex:yl},L,{ownerState:Be,onFocus:Eu,onBlur:vi,onKeyDown:zr,ref:W,style:s?S({},L.style,{"--TreeView-itemDepth":typeof u=="function"?u(h):u}):L.style},Pu,{children:[k.jsx(qA,S({as:b,classes:{root:E.content,expanded:E.expanded,selected:E.selected,focused:E.focused,disabled:E.disabled,iconContainer:E.iconContainer,label:E.label,checkbox:E.checkbox},label:w,itemId:h,onClick:C,onMouseDown:$,icon:Fo,expansionIcon:Cu,displayIcon:Iu,ownerState:Be},p,Y,zo.action==null?{}:{dragAndDropOverlayProps:zo},{ref:se})),f&&k.jsx(QA,S({as:D},q,{children:f}))]}))})}),YA=I1(),KA=e=>{const{classes:t}=e;return We({root:["root"]},aA,t)},JA=Z("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function ZA({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??XA,l=Gn({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return k.jsx(s,S({},l,{children:o}))}const eD=x.forwardRef(function(t,n){const r=YA({props:t,name:"MuiRichTreeView"}),{getRootProps:i,contextValue:o,instance:s}=vA({plugins:MA,rootRef:n,props:r}),{slots:l,slotProps:a}=r,c=KA(r),u=(l==null?void 0:l.root)??JA,d=Gn({elementType:u,externalSlotProps:a==null?void 0:a.root,className:c.root,getSlotProps:i,ownerState:r}),f=s.getItemsToRender(),v=({label:m,itemId:g,id:b,children:p})=>k.jsx(ZA,{slots:l,slotProps:a,label:m,id:b,itemId:g,children:p==null?void 0:p.map(v)},g);return k.jsx(yA,{value:o,children:k.jsx(u,S({},d,{children:f.map(v)}))})}),H1=e=>Array.isArray(e)?e.length>0&&e.some(H1):!!e,tD=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Ao(),i={expandable:H1(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:c=>{if(i.disabled)return;i.focused||n.focusItem(c,e);const u=r&&(c.shiftKey||c.ctrlKey||c.metaKey);i.expandable&&!(u&&n.isItemExpanded(e))&&n.toggleItemExpansion(c,e)},handleSelection:c=>{if(i.disabled)return;i.focused||n.focusItem(c,e),r&&(c.shiftKey||c.ctrlKey||c.metaKey)?c.shiftKey?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:!0}):n.selectItem({event:c,itemId:e,shouldBeSelected:!0})},handleCheckboxSelection:c=>{const u=c.nativeEvent.shiftKey;r&&u?n.expandSelectionRange(c,e):n.selectItem({event:c,itemId:e,keepExistingSelection:r,shouldBeSelected:c.target.checked})}},status:i}},nD=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:i},selection:{multiSelect:o,disableSelection:s,checkboxSelection:l},expansion:{expansionTrigger:a},instance:c,publicAPI:u}=Ao(),d=x.useContext(Mp),{id:f,itemId:v,label:m,children:g,rootRef:b}=e,{rootRef:p,contentRef:h,propsEnhancers:y}=t(e),{interactions:w,status:C}=tD({itemId:v,children:g}),$=x.useRef(null),I=x.useRef(null),P=c.getTreeItemIdAttribute(v,f),L=at(b,p,$),_=at(h,I),F=x.useRef(null),V=E=>D=>{var ae;if((ae=E.onFocus)==null||ae.call(E,D),D.defaultMuiPrevented)return;const q=!C.disabled||r;!C.focused&&q&&D.currentTarget===D.target&&c.focusItem(D,v)},G=E=>D=>{var q;(q=E.onBlur)==null||q.call(E,D),!D.defaultMuiPrevented&&c.removeFocusedItem()},N=E=>D=>{var q;(q=E.onKeyDown)==null||q.call(E,D),!D.defaultMuiPrevented&&c.handleItemKeyDown(D,v)},U=E=>D=>{var q,ae;(q=E.onClick)==null||q.call(E,D),n==null||n(D,v),!(D.defaultMuiPrevented||(ae=F.current)!=null&&ae.contains(D.target))&&(a==="content"&&w.handleExpansion(D),l||w.handleSelection(D))},K=E=>D=>{var q;(q=E.onMouseDown)==null||q.call(E,D),!D.defaultMuiPrevented&&(D.shiftKey||D.ctrlKey||D.metaKey||C.disabled)&&D.preventDefault()},H=E=>D=>{var q;(q=E.onChange)==null||q.call(E,D),!D.defaultMuiPrevented&&(s||C.disabled||w.handleCheckboxSelection(D))},R=E=>D=>{var q;(q=E.onClick)==null||q.call(E,D),!D.defaultMuiPrevented&&a==="iconContainer"&&w.handleExpansion(D)};return{getRootProps:(E={})=>{var Fn;const D=S({},pn(e),pn(E));let q;o?q=C.selected:C.selected&&(q=!0);const ae=S({},D,{ref:L,role:"treeitem",tabIndex:c.canItemBeTabbed(v)?0:-1,id:P,"aria-expanded":C.expandable?C.expanded:void 0,"aria-selected":q,"aria-disabled":C.disabled||void 0},E,{onFocus:V(D),onBlur:G(D),onKeyDown:N(D)});i&&(ae.style={"--TreeView-itemDepth":typeof d=="function"?d(v):d});const pt=((Fn=y.root)==null?void 0:Fn.call(y,{rootRefObject:$,contentRefObject:I,externalEventHandlers:D}))??{};return S({},ae,pt)},getContentProps:(E={})=>{var pt;const D=pn(E),q=S({},D,E,{ref:_,onClick:U(D),onMouseDown:K(D),status:C});i&&(q.indentationAtItemLevel=!0);const ae=((pt=y.content)==null?void 0:pt.call(y,{rootRefObject:$,contentRefObject:I,externalEventHandlers:D}))??{};return S({},q,ae)},getGroupTransitionProps:(E={})=>{const D=pn(E),q=S({},D,{unmountOnExit:!0,component:"ul",role:"group",in:C.expanded,children:g},E);return i&&(q.indentationAtItemLevel=!0),q},getIconContainerProps:(E={})=>{const D=pn(E);return S({},D,E,{onClick:R(D)})},getCheckboxProps:(E={})=>{const D=pn(E);return S({},D,{visible:l,ref:F,checked:C.selected,disabled:s||C.disabled,tabIndex:-1},E,{onChange:H(D)})},getLabelProps:(E={})=>{const D=S({},pn(E));return S({},D,{children:m},E)},getDragAndDropOverlayProps:(E={})=>{var ae;const D=S({},pn(E)),q=((ae=y.dragAndDropOverlay)==null?void 0:ae.call(y,{rootRefObject:$,contentRefObject:I,externalEventHandlers:D}))??{};return S({},E,q)},rootRef:L,status:C,publicAPI:u}};function rD(e){const{slots:t,slotProps:n,status:r}=e,i=Ao(),o=S({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??B1,collapseIcon:i.icons.slots.collapseIcon??V1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=Gn({elementType:a,externalSlotProps:u=>S({},Vn(s[l],u),Vn(n==null?void 0:n[l],u)),ownerState:{}});return a?k.jsx(a,S({},c)):null}const iD=["visible"],oD=Z("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),sD=Z("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>ou(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:vt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));Z("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>S({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const lD=Z("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),aD=Z(mp,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>ou(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});Z(x.forwardRef((e,t)=>{const{visible:n}=e,r=J(e,iD);return n?k.jsx(ox,S({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});const nc=Math.min,ti=Math.max,rc=Math.round,Ql=Math.floor,_r=e=>({x:e,y:e}),cD={left:"right",right:"left",bottom:"top",top:"bottom"},uD={start:"end",end:"start"};function Pv(e,t,n){return ti(e,nc(t,n))}function yu(e,t){return typeof e=="function"?e(t):e}function ci(e){return e.split("-")[0]}function bu(e){return e.split("-")[1]}function U1(e){return e==="x"?"y":"x"}function W1(e){return e==="y"?"height":"width"}function go(e){return["top","bottom"].includes(ci(e))?"y":"x"}function G1(e){return U1(go(e))}function dD(e,t,n){n===void 0&&(n=!1);const r=bu(e),i=G1(e),o=W1(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ic(s)),[s,ic(s)]}function fD(e){const t=ic(e);return[Wf(e),t,Wf(t)]}function Wf(e){return e.replace(/start|end/g,t=>uD[t])}function hD(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function pD(e,t,n,r){const i=bu(e);let o=hD(ci(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Wf)))),o}function ic(e){return e.replace(/left|right|bottom|top/g,t=>cD[t])}function mD(e){return{top:0,right:0,bottom:0,left:0,...e}}function gD(e){return typeof e!="number"?mD(e):{top:e,right:e,bottom:e,left:e}}function oc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ov(e,t,n){let{reference:r,floating:i}=e;const o=go(t),s=G1(t),l=W1(s),a=ci(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:u,y:r.y-i.height};break;case"bottom":v={x:u,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-i.width,y:d};break;default:v={x:r.x,y:r.y}}switch(bu(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const vD=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ov(c,r,a),f=r,v={},m=0;for(let g=0;gN<=0)){var F,V;const N=(((F=o.flip)==null?void 0:F.index)||0)+1,U=I[N];if(U)return{data:{index:N,overflows:_},reset:{placement:U}};let K=(V=_.filter(H=>H.overflows[0]<=0).sort((H,R)=>H.overflows[1]-R.overflows[1])[0])==null?void 0:V.placement;if(!K)switch(v){case"bestFit":{var G;const H=(G=_.filter(R=>{if($){const M=go(R.placement);return M===h||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,W)=>M+W,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:G[0];H&&(K=H);break}case"initialPlacement":K=l;break}if(i!==K)return{reset:{placement:K}}}return{}}}};async function bD(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ci(n),l=bu(n),a=go(n)==="y",c=["left","top"].includes(s)?-1:1,u=o&&a?-1:1,d=yu(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof m=="number"&&(v=l==="end"?m*-1:m),a?{x:v*u,y:f*c}:{x:f*c,y:v*u}}const xD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await bD(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},wD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y:h}=b;return{x:p,y:h}}},...a}=yu(e,t),c={x:n,y:r},u=await q1(t,a),d=go(ci(i)),f=U1(d);let v=c[f],m=c[d];if(o){const b=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+u[b],y=v-u[p];v=Pv(h,v,y)}if(s){const b=d==="y"?"top":"left",p=d==="y"?"bottom":"right",h=m+u[b],y=m-u[p];m=Pv(h,m,y)}const g=l.fn({...t,[f]:v,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}};function Do(e){return Q1(e)?(e.nodeName||"").toLowerCase():"#document"}function Vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function or(e){var t;return(t=(Q1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q1(e){return e instanceof Node||e instanceof Vt(e).Node}function wn(e){return e instanceof Element||e instanceof Vt(e).Element}function Ln(e){return e instanceof HTMLElement||e instanceof Vt(e).HTMLElement}function _v(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Vt(e).ShadowRoot}function vl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function kD(e){return["table","td","th"].includes(Do(e))}function xu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Fp(e){const t=jp(),n=wn(e)?kn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CD(e){let t=Ar(e);for(;Ln(t)&&!vo(t);){if(Fp(t))return t;if(xu(t))return null;t=Ar(t)}return null}function jp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(Do(e))}function kn(e){return Vt(e).getComputedStyle(e)}function wu(e){return wn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ar(e){if(Do(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_v(e)&&e.host||or(e);return _v(t)?t.host:t}function X1(e){const t=Ar(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ln(t)&&vl(t)?t:X1(t)}function Ys(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=X1(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Vt(i);if(o){const l=Gf(s);return t.concat(s,s.visualViewport||[],vl(i)?i:[],l&&n?Ys(l):[])}return t.concat(i,Ys(i,[],n))}function Gf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y1(e){const t=kn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ln(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=rc(n)!==o||rc(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function zp(e){return wn(e)?e:e.contextElement}function no(e){const t=zp(e);if(!Ln(t))return _r(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Y1(t);let s=(o?rc(n.width):n.width)/r,l=(o?rc(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const SD=_r(0);function K1(e){const t=Vt(e);return!jp()||!t.visualViewport?SD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $D(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Vt(e)?!1:t}function ui(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=zp(e);let s=_r(1);t&&(r?wn(r)&&(s=no(r)):s=no(e));const l=$D(o,n,r)?K1(o):_r(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=Vt(o),v=r&&wn(r)?Vt(r):r;let m=f,g=Gf(m);for(;g&&r&&v!==m;){const b=no(g),p=g.getBoundingClientRect(),h=kn(g),y=p.left+(g.clientLeft+parseFloat(h.paddingLeft))*b.x,w=p.top+(g.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,u*=b.x,d*=b.y,a+=y,c+=w,m=Vt(g),g=Gf(m)}}return oc({width:u,height:d,x:a,y:c})}function ID(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=or(r),l=t?xu(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=_r(1);const u=_r(0),d=Ln(r);if((d||!d&&!o)&&((Do(r)!=="body"||vl(s))&&(a=wu(r)),Ln(r))){const f=ui(r);c=no(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function TD(e){return Array.from(e.getClientRects())}function J1(e){return ui(or(e)).left+wu(e).scrollLeft}function ED(e){const t=or(e),n=wu(e),r=e.ownerDocument.body,i=ti(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ti(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+J1(e);const l=-n.scrollTop;return kn(r).direction==="rtl"&&(s+=ti(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function RD(e,t){const n=Vt(e),r=or(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=jp();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function PD(e,t){const n=ui(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ln(e)?no(e):_r(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function Av(e,t,n){let r;if(t==="viewport")r=RD(e,n);else if(t==="document")r=ED(or(e));else if(wn(t))r=PD(t,n);else{const i=K1(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return oc(r)}function Z1(e,t){const n=Ar(e);return n===t||!wn(n)||vo(n)?!1:kn(n).position==="fixed"||Z1(n,t)}function OD(e,t){const n=t.get(e);if(n)return n;let r=Ys(e,[],!1).filter(l=>wn(l)&&Do(l)!=="body"),i=null;const o=kn(e).position==="fixed";let s=o?Ar(e):e;for(;wn(s)&&!vo(s);){const l=kn(s),a=Fp(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||vl(s)&&!a&&Z1(e,s))?r=r.filter(u=>u!==s):i=l,s=Ar(s)}return t.set(e,r),r}function _D(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?xu(t)?[]:OD(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,u)=>{const d=Av(t,u,i);return c.top=ti(d.top,c.top),c.right=nc(d.right,c.right),c.bottom=nc(d.bottom,c.bottom),c.left=ti(d.left,c.left),c},Av(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function AD(e){const{width:t,height:n}=Y1(e);return{width:t,height:n}}function DD(e,t,n){const r=Ln(t),i=or(t),o=n==="fixed",s=ui(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=_r(0);if(r||!r&&!o)if((Do(t)!=="body"||vl(i))&&(l=wu(t)),r){const d=ui(t,!0,o,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else i&&(a.x=J1(i));const c=s.left+l.scrollLeft-a.x,u=s.top+l.scrollTop-a.y;return{x:c,y:u,width:s.width,height:s.height}}function Ed(e){return kn(e).position==="static"}function Dv(e,t){return!Ln(e)||kn(e).position==="fixed"?null:t?t(e):e.offsetParent}function ew(e,t){const n=Vt(e);if(xu(e))return n;if(!Ln(e)){let i=Ar(e);for(;i&&!vo(i);){if(wn(i)&&!Ed(i))return i;i=Ar(i)}return n}let r=Dv(e,t);for(;r&&kD(r)&&Ed(r);)r=Dv(r,t);return r&&vo(r)&&Ed(r)&&!Fp(r)?n:r||CD(e)||n}const MD=async function(e){const t=this.getOffsetParent||ew,n=this.getDimensions,r=await n(e.floating);return{reference:DD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LD(e){return kn(e).direction==="rtl"}const ND={convertOffsetParentRelativeRectToViewportRelativeRect:ID,getDocumentElement:or,getClippingRect:_D,getOffsetParent:ew,getElementRects:MD,getClientRects:TD,getDimensions:AD,getScale:no,isElement:wn,isRTL:LD};function FD(e,t){let n=null,r;const i=or(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const v=Ql(u),m=Ql(i.clientWidth-(c+d)),g=Ql(i.clientHeight-(u+f)),b=Ql(c),h={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:ti(0,nc(1,a))||1};let y=!0;function w(C){const $=C[0].intersectionRatio;if($!==a){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function Mv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=zp(e),u=i||o?[...c?Ys(c):[],...Ys(t)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&l?FD(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let m,g=a?ui(e):null;a&&b();function b(){const p=ui(e);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&n(),g=p,m=requestAnimationFrame(b)}return n(),()=>{var p;u.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),d==null||d(),(p=v)==null||p.disconnect(),v=null,a&&cancelAnimationFrame(m)}}const jD=xD,zD=wD,BD=yD,VD=(e,t,n)=>{const r=new Map,i={platform:ND,...n},o={...i.platform,_c:r};return vD(e,t,{...i,platform:o})};var ya=typeof document<"u"?x.useLayoutEffect:x.useEffect;function sc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!sc(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function tw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lv(e,t){const n=tw(e);return Math.round(t*n)/n}function Nv(e){const t=x.useRef(e);return ya(()=>{t.current=e}),t}function HD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);sc(f,r)||v(r);const[m,g]=x.useState(null),[b,p]=x.useState(null),h=x.useCallback(H=>{H!==$.current&&($.current=H,g(H))},[]),y=x.useCallback(H=>{H!==I.current&&(I.current=H,p(H))},[]),w=o||m,C=s||b,$=x.useRef(null),I=x.useRef(null),P=x.useRef(u),L=a!=null,_=Nv(a),F=Nv(i),V=x.useCallback(()=>{if(!$.current||!I.current)return;const H={placement:t,strategy:n,middleware:f};F.current&&(H.platform=F.current),VD($.current,I.current,H).then(R=>{const M={...R,isPositioned:!0};G.current&&!sc(P.current,M)&&(P.current=M,Cc.flushSync(()=>{d(M)}))})},[f,t,n,F]);ya(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[c]);const G=x.useRef(!1);ya(()=>(G.current=!0,()=>{G.current=!1}),[]),ya(()=>{if(w&&($.current=w),C&&(I.current=C),w&&C){if(_.current)return _.current(w,C,V);V()}},[w,C,V,_,L]);const N=x.useMemo(()=>({reference:$,floating:I,setReference:h,setFloating:y}),[h,y]),U=x.useMemo(()=>({reference:w,floating:C}),[w,C]),K=x.useMemo(()=>{const H={position:n,left:0,top:0};if(!U.floating)return H;const R=Lv(U.floating,u.x),M=Lv(U.floating,u.y);return l?{...H,transform:"translate("+R+"px, "+M+"px)",...tw(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:M}},[n,l,U.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:V,refs:N,elements:U,floatingStyles:K}),[u,V,N,U,K])}const Fv=(e,t)=>({...jD(e),options:[e,t]}),UD=(e,t)=>({...zD(e),options:[e,t]}),WD=(e,t)=>({...BD(e),options:[e,t]});function GD(e){return typeof e=="function"?e():e}const qD=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=at(x.isValidElement(r)?r.ref:null,n);if(Hs(()=>{o||l(GD(i)||document.body)},[i,o]),Hs(()=>{if(s&&!o)return Ga(n,s),()=>{Ga(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return k.jsx(x.Fragment,{children:r})}return k.jsx(x.Fragment,{children:s&&Cc.createPortal(r,s)})});function QD(e){return typeof e=="string"}function XD(e,t,n){return e===void 0||QD(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const YD={disableDefaultClasses:!1},KD=x.createContext(YD);function JD(e){const{disableDefaultClasses:t}=x.useContext(KD);return n=>t?"":e(n)}function ZD(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function eM(e,t,n){return typeof e=="function"?e(t,n):e}function jv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tM(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=ie(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=S({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=S({},n,i,r);return v.length>0&&(g.className=v),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=ZD(S({},i,r)),l=jv(r),a=jv(i),c=t(s),u=ie(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=S({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=S({},c,n,a,l);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const nM=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function rM(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=J(e,nM),l=o?{}:eM(r,i),{props:a,internalRef:c}=tM(S({},s,{externalSlotProps:l})),u=at(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return XD(n,S({},a,{ref:u}),i)}const nw="base";function iM(e){return`${nw}--${e}`}function oM(e,t){return`${nw}-${e}-${t}`}function rw(e,t){const n=Ab[t];return n?iM(n):oM(e,t)}function sM(e,t){const n={};return t.forEach(r=>{n[r]=rw(e,r)}),n}const iw="Popup";function lM(e){return rw(iw,e)}sM(iw,["root","open"]);const aM=x.createContext(null);function cM(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let u;return o?e?u=!1:u=!r.current&&t:u=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:u}),[a,e,c,u]),hasExited:u}}const uM=x.createContext(null),dM=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function fM(e){const{open:t}=e;return We({root:["root",t&&"open"]},JD(lM))}function hM(e){return typeof e=="function"?e():e}const pM=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:u=0,open:d=!1,placement:f="bottom",slotProps:v={},slots:m={},strategy:g="absolute"}=t,b=J(t,dM),{refs:p,elements:h,floatingStyles:y,update:w,placement:C}=HD({elements:{reference:hM(i)},open:d,middleware:c??[Fv(u??0),WD(),UD()],placement:f,strategy:g,whileElementsMounted:a?void 0:Mv}),$=at(p.setFloating,n);Hs(()=>{if(a&&d&&h.reference&&h.floating)return Mv(h.reference,h.floating,w)},[a,d,h,w]);const I=S({},t,{disablePortal:l,keepMounted:a,offset:Fv,open:d,placement:f,finalPlacement:C,strategy:g}),{contextValue:P,hasExited:L}=cM(d),_=a&&L?"hidden":void 0,F=fM(I),V=(r=m==null?void 0:m.root)!=null?r:"div",G=rM({elementType:V,externalSlotProps:v.root,externalForwardedProps:b,ownerState:I,className:F.root,additionalProps:{ref:$,role:"tooltip",style:S({},y,{visibility:_})}}),N=x.useMemo(()=>({placement:C}),[C]);return a||!L?k.jsx(qD,{disablePortal:l,container:s,children:k.jsx(uM.Provider,{value:N,children:k.jsx(aM.Provider,{value:P,children:k.jsx(V,S({},G,{children:o}))})})}):null});var Bp={},Rd={};const mM=tr(iE);var zv;function ow(){return zv||(zv=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mM}(Rd)),Rd}var gM=ru;Object.defineProperty(Bp,"__esModule",{value:!0});var sw=Bp.default=void 0,vM=gM(ow()),yM=k;sw=Bp.default=(0,vM.default)((0,yM.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopyOutlined");const bM=({text:e,message:t})=>{const n=dp(),[r,i]=Et.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),k.jsxs(k.Fragment,{children:[k.jsx(bt,{className:"icon",onClick:l,sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(sw,{sx:{height:"16px"}})}),k.jsx(pM,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:k.jsx($R,{onClickAway:a,children:k.jsx(WE,{in:o,timeout:500,children:k.jsx(bt,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})};var Vp={},xM=ru;Object.defineProperty(Vp,"__esModule",{value:!0});var lw=Vp.default=void 0,wM=xM(ow()),kM=k;lw=Vp.default=(0,wM.default)((0,kM.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");const CM=({network:e,type:t,id:n})=>{let r;return e==="localnet"?t==="txn"?r=`http://localhost:44380/txblock/${n}`:r=`http://localhost:44380/object/${n}`:t==="package"?r=`https://suiscan.xyz/${e}/object/${n}/contracts`:t==="txn"?r=`https://suiscan.xyz/${e}/tx/${n}`:r=`https://suiscan.xyz/${e}/object/${n}`,k.jsx(Yi,{className:"icon",color:"inherit",href:r,target:"_blank",rel:"noopener noreferrer",sx:{width:"20px",display:"flex",alignItems:"center",justifyContent:"center"},children:k.jsx(lw,{sx:{height:"16px"}})})},SM=Z(sD)(({})=>({padding:0}));function $M(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>7?e.slice(0,4)+"~"+e.slice(-4):e)}const IM=e=>{const n=String(e).split(/(0x|~|::)/),r={fontSize:"9px",fontWeight:"lighter"},i={...r,verticalAlign:"middle",marginRight:"-1px",marginLeft:"-1px"};return n.map((o,s)=>{const l=o==="0x",a=o==="~",c=o==="::",u=!l&&!a&&!c;return k.jsxs(x.Fragment,{children:[l&&k.jsx("span",{style:r,children:"0x"}),a&&k.jsx("span",{style:r,children:"…"}),c&&k.jsxs(k.Fragment,{children:[k.jsx("span",{style:i,children:":"}),k.jsx("span",{style:i,children:":"})]}),u&&o]},s)})},TM=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,[u,d]=x.useState(!1),f=!1,v=!1,m="(empty)",g,b,p;const h=o.charAt(0);if(h.length>0){if(h>="0"&&h<="9")f=!0;else if(h===cx)v=!0,o===vp&&(m=`To get started, do '${r} publish' in a terminal`);else if(h===ax){const V=o.split("-").pop();if(c&&V){const G=$M(V);c=c.toString().replace(ux,G),g=V,p="0x"+V,b="package"}}}const{getRootProps:y,getContentProps:w,getIconContainerProps:C,getLabelProps:$,getGroupTransitionProps:I,status:P}=nD({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let L={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};f?(L.fontSize="11px",L.textTransform="uppercase",L.fontWeight="bold"):v?L.whiteSpace="normal":(L.letterSpacing=0,L.fontFamily="monospace");const _=()=>k.jsxs(k.Fragment,{children:[g&&k.jsx(bM,{text:g,message:"Copied"}),p&&b&&k.jsx(CM,{network:r,type:b,id:p})]}),F=()=>k.jsxs(bt,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[k.jsx(bt,{flexGrow:1,overflow:"hidden",children:k.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:k.jsx("span",{style:L,...$(),children:IM(c)})})}),u&&_()]});return k.jsx(Np,{itemId:o,children:k.jsxs(oD,{...y(a),children:[k.jsxs(SM,{...w(),children:[k.jsx(lD,{...C(),children:k.jsx(rD,{status:P})}),v?k.jsx(nn,{variant:"caption",sx:L,...$(),children:m}):F()]}),l&&k.jsx(aD,{...I()})]})})});function EM({items:e,workdir:t}){return k.jsx(eD,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>k.jsx(TM,{...n,workdir:t})}})}const aw=[{id:Ka,label:"Recent Packages",children:[{id:vp,label:""}]}];class qf{constructor(t,n){Se(this,"workdir");Se(this,"workdirIdx");Se(this,"methodUuid");Se(this,"dataUuid");Se(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=aw}}function RM(e,t){if(!t.isLoaded)return e.tree==aw?e:new qf(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new qf(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){let a=!0;const c=i[l];if(c.packages!=null){const u=`${Ka}-${l}`,d=`${Wg}-${l}`;for(let f of c.packages){if(a){a=!1;let m=Bv(u,f);m&&o.push(m)}const v=Bv(d,f);v&&s.push(v)}}}return o.length==0&&(o=[{id:vp,label:""}]),n.tree.push({id:Ka,label:"Recent Packages",children:o}),n.tree.push({id:Wg,label:"All Packages",children:s}),n}function Bv(e,t){const n=t.name;if(!n){console.log("Missing name field in package json: "+JSON.stringify(t));return}const r=t.pid;if(!r){console.log("Missing pid field in package json: "+JSON.stringify(t));return}const i=`${ux}::${n}`;return{id:`${ax}-${e}-${r}`,label:i}}function PM({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new qf(e,t));return x.useEffect(()=>{try{const s=RM(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),k.jsx(k.Fragment,{children:k.jsx(EM,{items:i.tree,workdir:e})})}function cw(e){let t=e.issue,n="";const r=t.match(/,homedir=(.*)/);return r&&(n=r[1],t=t.replace(/,homedir=(.*)/,"")),t==Gg?k.jsxs(nn,{variant:"body2",children:[Gg,k.jsx("br",{}),"Check ",k.jsx(Yi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Qg?k.jsxs(nn,{variant:"body2",children:[Qg,k.jsx("br",{}),"Please install Sui prerequisites",k.jsx("br",{}),"Check ",k.jsx(Yi,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):t==qg?k.jsxs(nn,{variant:"body2",children:[qg,k.jsx("br",{}),"Initialize your shell to have ",n,"/.local/bin added to the $PATH.",k.jsx("br",{}),"Check ",k.jsx(Yi,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):k.jsx(nn,{variant:"body2",children:t})}const OM=()=>{const{common:e,workdirs:t,statusTrigger:n,commonTrigger:r,packagesTrigger:i}=fx(Nf,{trackStatus:!0,trackPackages:!0}),[o,s]=x.useState(""),[l,a]=x.useState(e.current.activeWorkdir),[c,u]=x.useState(!1),d=p=>{const h=p.target.value;if(h!==e.current.activeWorkdir){s(h),a(h);const y=Xn.indexOf(h);y!==-1&&Ki.postMessage(new dx(Nf,y,"set-active"))}else s(""),a(e.current.activeWorkdir)};x.useEffect(()=>(o!==""?o===e.current.activeWorkdir&&(s(""),a(e.current.activeWorkdir)):l!==e.current.activeWorkdir&&a(e.current.activeWorkdir),()=>{}),[o,l,e.current.activeWorkdir,r]),x.useEffect(()=>{let p=!0;for(let h=0;hk.jsx(bt,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded?k.jsxs(k.Fragment,{children:[k.jsx(sA,{value:l,onChange:d,children:Xn.map((p,h)=>{const y=t[h],w=p===l,C=!w&&y.workdirStatus.status==="DISABLED";return k.jsx(lA,{value:p,selected:w,disabled:C,children:Mf[h]},p)})}),o&&k.jsx(Ya,{size:15,style:{marginLeft:"3px"}})]}):k.jsx(Ya,{size:15})}),v=()=>k.jsx(bt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(nn,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",k.jsx(Yi,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),m=()=>k.jsx(bt,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&k.jsx(PM,{packagesTrigger:i,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})}),g=()=>k.jsx(bt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:k.jsxs(nn,{variant:"body2",children:["There is no workdir enabled. Do 'testnet start' command in a terminal or try the ",k.jsx(Yi,{component:"button",variant:"body2",onClick:()=>{Ki.postMessage(new _P)},children:"dashboard"}),"."]})}),b=!e.current.setupIssue&&!c;return k.jsxs(k.Fragment,{children:[e.current.setupIssue&&k.jsx(cw,{issue:e.current.setupIssue}),!e.current.setupIssue&&c&&g(),b&&f(),v(),b&&m()]})},_M=Z(UR)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class AM{constructor(){Se(this,"showSpinner");Se(this,"spinnerForSwitch");Se(this,"requestedChange");Se(this,"switchState");Se(this,"switchSkeleton");Se(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const DM=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=fx(Lf,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(!1),[l,a]=x.useState(Xn.map(()=>new AM)),c=(f,v)=>{a(m=>m.map((g,b)=>b===f?{...g,...v}:g))},u=f=>{switch(f.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},d=(f,v)=>{const m=r[f],g=u(m);if(v!==g){c(f,{requestedChange:v,switchState:v,spinnerForSwitch:!0});const b=v?"start":"stop";Ki.postMessage(new dx(Lf,f,b))}else c(f,{requestedChange:void 0,switchState:g,spinnerForSwitch:!1})};return x.useEffect(()=>(l.forEach((f,v)=>{const m=r[v],g=u(m);f.requestedChange!==void 0?f.requestedChange===g?c(v,{requestedChange:void 0,switchState:g,spinnerForSwitch:!1}):f.spinnerForSwitch||c(v,{spinnerForSwitch:!0}):f.switchState!==g&&c(v,{switchState:g,spinnerForSwitch:!1});const b=f.spinnerForSwitch||f.spinnerForUpdate;f.showSpinner!==b&&c(v,{showSpinner:b})}),()=>{}),[e,t,r,l]),x.useEffect(()=>{let f=!0;for(let v=0;v{const m=r[v],g=o||!m.workdirStatus.isLoaded||v!==n.current.activeWorkdirIdx;return k.jsxs(Ug,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[k.jsx(cr,{sx:{width:115,maxWidth:115,pt:"6px",pb:"6px",pl:0,pr:0,m:0},children:k.jsxs(bt,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[k.jsx(bt,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:f.showSpinner&&k.jsx(Ya,{size:9})}),k.jsx(bt,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:k.jsx(_M,{...i,size:"small",disabled:f.showSpinner,checked:f.switchState,onChange:b=>d(v,b.target.checked)})}),k.jsx(bt,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:k.jsx(JE,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:g,children:k.jsx(nn,{variant:"body2",sx:{pl:"2px"},children:Mf[v]})})})]})}),k.jsx(cr,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:k.jsx(nn,{variant:"subtitle2",children:m.workdirStatus.status})}),k.jsx(cr,{align:"center",sx:{width:65,maxWidth:65,p:0,m:0},children:k.jsx(nn,{variant:"body2",children:m.workdirStatus.isLoaded&&m.workdirStatus.suiClientVersionShort})}),k.jsx(cr,{})]},Mf[v])})})]})})]}):k.jsx(Ya,{size:15})]})},Xl=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||En[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),En[500]}},MM=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function LM(){const e=MM("--vscode-editor-foreground"),t=Et.useMemo(()=>up({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:Xl("--vscode-editor-background")},text:{primary:Xl("--vscode-editor-foreground")},primary:{main:Xl("--vscode-editor-foreground")},secondary:{main:Xl("--vscode-editor-foreground")}}}),[e]);let n;switch(globalThis.suibase_view_key){case Lf:n=k.jsx(DM,{});break;case TP:n=k.jsx(CP,{});break;case Nf:n=k.jsx(OM,{});break;default:n=null}return k.jsx(k.Fragment,{children:k.jsxs(JT,{theme:t,children:[k.jsx(RR,{}),k.jsx("main",{children:n})]})})}Kx().register(oA);Od.createRoot(document.getElementById("root")).render(k.jsxs(k.Fragment,{children:[k.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),k.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),k.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),k.jsx(Et.StrictMode,{children:k.jsx(LM,{})})]})); diff --git a/typescript/vscode-extension/webview-ui/package.json b/typescript/vscode-extension/webview-ui/package.json index b90bfa8e..212ae270 100644 --- a/typescript/vscode-extension/webview-ui/package.json +++ b/typescript/vscode-extension/webview-ui/package.json @@ -14,6 +14,7 @@ "@emotion/styled": "latest", "@estruyf/vscode": "^1.1.0", "@fontsource/roboto": "^5.0.13", + "@mui/base": "^5.0.0-beta.40", "@mui/icons-material": "^5.15.17", "@mui/material": "^5.15.15", "@mui/x-tree-view": "^7.3.1", diff --git a/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx b/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx index f44af819..44d043d8 100644 --- a/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx +++ b/typescript/vscode-extension/webview-ui/src/components/CopyToClipboardButton.tsx @@ -29,14 +29,14 @@ const CopyToClipboardButton = ({text,message}: CopyToClipboardButtonProps) => { const handleClickAway = () => { setOpen(false) }; - + // Default message to "{text} copied" if message not specified. if (!message) { message = `Copied ${text}` } return ( - <> + <> @@ -49,15 +49,15 @@ const CopyToClipboardButton = ({text,message}: CopyToClipboardButtonProps) => { > - {message} - + );