diff --git a/README.md b/README.md index ef7f833..39f9018 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ ### Prerequisites -- You need Python 3.8 and above +- You need Python 3.10 and above - Ability to type or copy paste in your computer's Terminal or Command Line ### 🔰 Casual Users @@ -71,6 +71,8 @@ albibong 2. A window will pop out and you're good to go! +Note: If you can't start the application by typing `albibong`, you can try use `sudo albibong` instead. + ### 👨‍💻 Devs 1. Clone this repository diff --git a/gui/src/components/Navigation.tsx b/gui/src/components/Navigation.tsx index 78c6ed4..73d7eb0 100644 --- a/gui/src/components/Navigation.tsx +++ b/gui/src/components/Navigation.tsx @@ -186,7 +186,6 @@ const Navigation = () => { })} -

Hello

); }; diff --git a/gui/src/pages/DPSMeter.tsx b/gui/src/pages/DPSMeter.tsx index 18c5226..13889cb 100644 --- a/gui/src/pages/DPSMeter.tsx +++ b/gui/src/pages/DPSMeter.tsx @@ -1,6 +1,8 @@ import classNames from "classnames"; import { useContext, useRef, useState } from "react"; import styles from "./DPSMeter.module.css"; +import dungeon from "./DungeonTracker.module.css"; + import app from "../App.module.css"; import Checkbox from "../components/Checkbox"; import { WorldContext } from "../providers/WorldProvider"; @@ -17,9 +19,7 @@ import { theme } from "../theme"; export type DisplayedColumn = { Heal: boolean; - "Heal%": boolean; Damage: boolean; - "Damage%": boolean; }; export const formatter = (num: number) => { @@ -28,10 +28,8 @@ export const formatter = (num: number) => { const DPSMeter = () => { const [displayedCol, setDisplayedCol] = useState({ - Heal: true, - "Heal%": true, + Heal: false, Damage: true, - "Damage%": true, }); const [alert, setAlert] = useState({ copyDamage: false, @@ -43,7 +41,7 @@ const DPSMeter = () => { const { me, world } = useContext(WorldContext); const { sendMessage } = useContext(WebsocketContext); - const dpsRowBold = classNames(styles.bold, styles.dpsRow); + const dpsRowBold = classNames(styles.bold, styles.dpsRow, dungeon.stickToTop); const getMaxHeal = () => { let maxHeal = 0; @@ -56,8 +54,7 @@ const DPSMeter = () => { }; const show = (label: keyof DisplayedColumn) => - classNames({ - [styles.dpsNumber]: true, + classNames(styles.dpsNumber, { [styles.hidden]: !displayedCol[label], }); @@ -107,7 +104,7 @@ const DPSMeter = () => { Damage has been reset. - Damage Meter + Damage Meter Damage Meter is currently{" "} {world.isDPSMeterRunning ? "recording damage" : "paused"} @@ -162,7 +159,10 @@ const DPSMeter = () => { style={{ backgroundColor: theme.palette.background.default }} ref={dpsRef} > -
+
{world.isDPSMeterRunning == false ? (
{world.party.map((member, index) => { @@ -221,11 +223,17 @@ const DPSMeter = () => { {formatter(member.damage_dealt)} + + {formatter(member.damage_percent)}% + + + {member.combat_duration} + - {formatter(member.damage_percent)}% + {member.dps}/dps
diff --git a/gui/src/pages/DungeonTracker.module.css b/gui/src/pages/DungeonTracker.module.css index 1b8c4a0..21ba367 100644 --- a/gui/src/pages/DungeonTracker.module.css +++ b/gui/src/pages/DungeonTracker.module.css @@ -16,3 +16,14 @@ color: #0f3c4e; font-weight: bold; } + +.stickToTop { + z-index: 10; + + position: sticky; + top: 64px; + left: 0; + + width: 100%; + padding: 24px 0; +} diff --git a/gui/src/pages/DungeonTracker.tsx b/gui/src/pages/DungeonTracker.tsx index a30e303..b159ac6 100644 --- a/gui/src/pages/DungeonTracker.tsx +++ b/gui/src/pages/DungeonTracker.tsx @@ -9,6 +9,8 @@ import { import { useContext, useEffect, useState } from "react"; import { Dungeon, WorldContext } from "../providers/WorldProvider"; import DungeonCard from "../components/DungeonCard"; +import style from "./DungeonTracker.module.css"; +import { theme } from "../theme"; const DungeonTracker = () => { const { world, dungeonFilter } = useContext(WorldContext); @@ -38,23 +40,29 @@ const DungeonTracker = () => { return (
- Dungeon Tracker - - - Filter by Dungeon Type - - - + Dungeon Tracker +
+ + + Filter by Dungeon Type + + + +
+ {filteredDungeon.length > 0 ? ( filteredDungeon.map((dungeon) => { return ; diff --git a/gui/src/providers/WorldProvider.tsx b/gui/src/providers/WorldProvider.tsx index d36cf69..39d94b3 100644 --- a/gui/src/providers/WorldProvider.tsx +++ b/gui/src/providers/WorldProvider.tsx @@ -14,6 +14,8 @@ type PartyMember = { damage_dealt: number; heal_percent: number; healing_dealt: number; + combat_duration: string; + dps: number; weapon: string; }; diff --git a/pyproject.toml b/pyproject.toml index b742516..911ee67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,12 +19,12 @@ albibong = "albibong:main" [project] name = "albibong" -version = "1.0.4" +version = "1.0.5" authors = [ { name="imjangkar", email="imjangkar@gmail.com" }, ] description = "A cross-platform Albion Online damage, fame, and dungeon tracker" -requires-python = ">=3.8" +requires-python = ">=3.10" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", diff --git a/readme_screenshots/damage_meter.png b/readme_screenshots/damage_meter.png index c0c5a12..b981b19 100644 Binary files a/readme_screenshots/damage_meter.png and b/readme_screenshots/damage_meter.png differ diff --git a/src/albibong/classes/character.py b/src/albibong/classes/character.py index fe85684..50fe005 100644 --- a/src/albibong/classes/character.py +++ b/src/albibong/classes/character.py @@ -1,3 +1,4 @@ +from datetime import datetime, timedelta import json from uuid import UUID @@ -20,25 +21,46 @@ def __init__( coords: Coords, equipment: list[Item] = [Item.get_item_from_code("0")] * 10, ): + # Profile self.id = id self.uuid = uuid self.username = username self.guild = guild self.alliance = alliance self.coords = coords + self.equipment = equipment + + # Stats self.fame_gained: int = 0 self.re_spec_gained: int = 0 self.silver_gained: int = 0 + self.loot: list[str] = [] + + # Combat self.damage_dealt: int = 0 self.healing_dealt: int = 0 - self.loot: list[str] = [] - self.equipment = equipment + self.is_already_in_combat: bool = False + self.start_combat_time: timedelta = timedelta(0, 0) + self.total_combat_duration: timedelta = timedelta(0, 0) + + def update_combat_duration(self, is_starting_combat): + if self.is_already_in_combat == False: + if is_starting_combat == True: + self.is_already_in_combat = True + self.start_combat_time = datetime.now() + else: + if is_starting_combat == False: + self.is_already_in_combat = False + current_combat_duration = datetime.now() - self.start_combat_time + self.total_combat_duration += current_combat_duration def update_damage_dealt(self, nominal): - self.damage_dealt += nominal + if self.is_already_in_combat: + self.damage_dealt += nominal def update_heal_dealt(self, nominal): - self.healing_dealt += nominal + if self.is_already_in_combat: + self.healing_dealt += nominal def update_coords(self, parameters): if 3 in parameters: diff --git a/src/albibong/classes/event_handler/__init__.py b/src/albibong/classes/event_handler/__init__.py index 59bf9f8..25f0e06 100644 --- a/src/albibong/classes/event_handler/__init__.py +++ b/src/albibong/classes/event_handler/__init__.py @@ -5,6 +5,9 @@ handle_event_health_update, handle_event_health_updates, ) +from albibong.classes.event_handler.handle_event_in_combat_state_update import ( + handle_event_in_combat_state_update, +) from albibong.classes.event_handler.handle_event_new_character import ( handle_event_new_character, ) @@ -48,6 +51,10 @@ def __init__(self): self.event_handler[EventCode.NEW_CHARACTER.value] = handle_event_new_character self.event_handler[EventCode.HEALTH_UPDATE.value] = handle_event_health_update self.event_handler[EventCode.HEALTH_UPDATES.value] = handle_event_health_updates + self.event_handler[EventCode.IN_COMBAT_STATE_UPDATE.value] = ( + handle_event_in_combat_state_update + ) + self.event_handler[EventCode.UPDATE_FAME.value] = handle_event_update_fame self.event_handler[EventCode.UPDATE_RE_SPEC_POINTS.value] = ( handle_event_update_re_spec_points diff --git a/src/albibong/classes/event_handler/handle_event_health.py b/src/albibong/classes/event_handler/handle_event_health.py index 84f6c41..56d092d 100644 --- a/src/albibong/classes/event_handler/handle_event_health.py +++ b/src/albibong/classes/event_handler/handle_event_health.py @@ -1,4 +1,5 @@ from albibong.classes.character import Character +from albibong.classes.event_handler.world_data_utils import WorldDataUtils from albibong.classes.world_data import WorldData from albibong.threads.websocket_server import send_event @@ -15,7 +16,7 @@ def handle_event_health_update(world_data: WorldData, parameters): target = parameters[0] inflictor = parameters[6] - update_damage_or_heal(world_data, target, inflictor, nominal) + WorldDataUtils.update_damage_or_heal(world_data, target, inflictor, nominal) def handle_event_health_updates(world_data: WorldData, parameters): @@ -31,37 +32,4 @@ def handle_event_health_updates(world_data: WorldData, parameters): target = parameters[0] inflictor = parameters[6][i] - update_damage_or_heal(world_data, target, inflictor, nominal) - - -def update_damage_or_heal(world_data: WorldData, target, inflictor, nominal): - - if inflictor not in world_data.char_id_to_username: - # character not initialized yet - return - - username = world_data.char_id_to_username[inflictor] - - if username == "not initialized": - # self not initialized - return - - char: Character = world_data.characters[username] - - if nominal < 0: - if target == inflictor: - # suicide - return - char.update_damage_dealt(abs(nominal)) - else: - char.update_heal_dealt(nominal) - - ws_update_damage_heal(world_data) - - -def ws_update_damage_heal(world_data: WorldData): - event = { - "type": "update_dps", - "payload": {"party_members": world_data.serialize_party_members()}, - } - send_event(event) + WorldDataUtils.update_damage_or_heal(world_data, target, inflictor, nominal) diff --git a/src/albibong/classes/event_handler/handle_event_in_combat_state_update.py b/src/albibong/classes/event_handler/handle_event_in_combat_state_update.py new file mode 100644 index 0000000..2a23b02 --- /dev/null +++ b/src/albibong/classes/event_handler/handle_event_in_combat_state_update.py @@ -0,0 +1,17 @@ +from albibong.classes.character import Character +from albibong.classes.world_data import WorldData + + +def handle_event_in_combat_state_update(world_data: WorldData, parameters): + + if parameters[0] not in world_data.char_id_to_username: + # character not initialized + return + + name = world_data.char_id_to_username[parameters[0]] + char: Character = world_data.characters[name] + + if 1 in parameters: + char.update_combat_duration(True) + else: + char.update_combat_duration(False) diff --git a/src/albibong/classes/event_handler/handle_event_new_character.py b/src/albibong/classes/event_handler/handle_event_new_character.py index 0b18f09..1e79f1e 100644 --- a/src/albibong/classes/event_handler/handle_event_new_character.py +++ b/src/albibong/classes/event_handler/handle_event_new_character.py @@ -1,5 +1,6 @@ from albibong.classes.character import Character from albibong.classes.coords import Coords +from albibong.classes.event_handler.world_data_utils import WorldDataUtils from albibong.classes.utils import Utils from albibong.classes.world_data import WorldData @@ -38,4 +39,6 @@ def handle_event_new_character(world_data: WorldData, parameters): char: Character = world_data.characters[username] char.update_equipment(equipments) char.coords = coords - world_data.convert_id_to_name(old_id=char.id, new_id=id, char=char) + WorldDataUtils.convert_id_to_name( + world_data, old_id=char.id, new_id=id, char=char + ) diff --git a/src/albibong/classes/event_handler/handle_operation_change_cluster.py b/src/albibong/classes/event_handler/handle_operation_change_cluster.py index 5ce18f0..123d1b7 100644 --- a/src/albibong/classes/event_handler/handle_operation_change_cluster.py +++ b/src/albibong/classes/event_handler/handle_operation_change_cluster.py @@ -1,3 +1,4 @@ +from albibong.classes.event_handler.world_data_utils import WorldDataUtils from albibong.classes.location import Location from albibong.classes.world_data import WorldData from albibong.threads.websocket_server import send_event @@ -9,7 +10,7 @@ def handle_operation_change_cluster(world_data: WorldData, parameters): if 1 in parameters: check_map = Location.get_location_from_code(parameters[1]) map_type_splitted = set(check_map.type.split("_")) - world_data.set_dungeon_status(check_map, map_type_splitted) + WorldDataUtils.set_dungeon_status(world_data, check_map, map_type_splitted) if "ISLAND" in map_type_splitted or "HIDEOUT" in map_type_splitted: check_map.name = f"{parameters[2]}'s {check_map.name}" @@ -18,7 +19,9 @@ def handle_operation_change_cluster(world_data: WorldData, parameters): elif 0 in parameters: check_map = Location.get_location_from_code(parameters[0]) map_type_splitted = set(check_map.type.split("_")) - is_dungeon = world_data.set_dungeon_status(check_map, map_type_splitted) + is_dungeon = WorldDataUtils.set_dungeon_status( + world_data, check_map, map_type_splitted + ) if is_dungeon == False: world_data.current_map = Location.get_location_from_code(parameters[0]) diff --git a/src/albibong/classes/event_handler/handle_operation_join.py b/src/albibong/classes/event_handler/handle_operation_join.py index 524f945..3a60903 100644 --- a/src/albibong/classes/event_handler/handle_operation_join.py +++ b/src/albibong/classes/event_handler/handle_operation_join.py @@ -1,4 +1,5 @@ from albibong.classes.dungeon import Dungeon +from albibong.classes.event_handler.world_data_utils import WorldDataUtils from albibong.classes.location import Location from albibong.classes.utils import Utils from albibong.classes.world_data import WorldData @@ -7,8 +8,8 @@ def handle_operation_join(world_data: WorldData, parameters): # set my character - world_data.convert_id_to_name( - old_id=world_data.me.id, new_id=parameters[0], char=world_data.me + WorldDataUtils.convert_id_to_name( + world_data, old_id=world_data.me.id, new_id=parameters[0], char=world_data.me ) world_data.me.uuid = Utils.convert_int_arr_to_uuid(parameters[1]) world_data.me.username = parameters[2] @@ -31,7 +32,9 @@ def handle_operation_join(world_data: WorldData, parameters): area = parameters[8].split("@") if area[1] == "RANDOMDUNGEON": check_map = Location.get_location_from_code(area[1]) - world_data.start_current_dungeon(type=check_map.type, name=check_map.name) + WorldDataUtils.start_current_dungeon( + world_data, type=check_map.type, name=check_map.name + ) ws_init_character(world_data) ws_update_location(world_data) diff --git a/src/albibong/classes/event_handler/world_data_utils.py b/src/albibong/classes/event_handler/world_data_utils.py new file mode 100644 index 0000000..5bf42fb --- /dev/null +++ b/src/albibong/classes/event_handler/world_data_utils.py @@ -0,0 +1,102 @@ +from collections import deque +import json +import os + +from albibong.classes.character import Character +from albibong.classes.dungeon import Dungeon +from albibong.classes.location import Location +from albibong.classes.utils import Utils +from albibong.classes.world_data import WorldData +from albibong.threads.websocket_server import send_event + +FILENAME = os.path.join(os.path.expanduser("~"), "Albibong/list_dungeon.json") +os.makedirs(os.path.dirname(FILENAME), exist_ok=True) + + +class WorldDataUtils: + + def end_current_dungeon(world_data: WorldData): + if world_data.current_dungeon: + list_dungeon = deque() + + try: + with open(FILENAME) as json_file: + list_dungeon = deque(json.load(json_file)) + except: + pass + + world_data.current_dungeon.get_elapsed_time() + list_dungeon.appendleft(Dungeon.serialize(world_data.current_dungeon)) + + with open(FILENAME, "w") as json_file: + json.dump(list(list_dungeon), json_file) + + WorldDataUtils.ws_update_dungeon(list(list_dungeon)) + + world_data.current_dungeon = None + + def ws_update_dungeon(list_dungeon: list): + event = { + "type": "update_dungeon", + "payload": {"list_dungeon": list_dungeon}, + } + send_event(event) + + @staticmethod + def start_current_dungeon(world_data: WorldData, type: str, name: str): + if world_data.current_dungeon == None: + new_dungeon = Dungeon(type, name) + world_data.current_dungeon = new_dungeon + + @staticmethod + def set_dungeon_status( + world_data: WorldData, check_map: Location, map_type_splitted: set + ): + if "EXPEDITION" in map_type_splitted or "DUNGEON" in map_type_splitted: + WorldDataUtils.start_current_dungeon( + world_data, type=check_map.type, name=check_map.name + ) + elif ( + "EXPEDITION" not in map_type_splitted or "DUNGEON" not in map_type_splitted + ): + WorldDataUtils.end_current_dungeon(world_data) + return False + + @staticmethod + def convert_id_to_name(world_data: WorldData, old_id, new_id, char: Character): + if old_id in world_data.char_id_to_username: + world_data.char_id_to_username.pop(old_id) # delete old relative id + char.id = new_id + world_data.char_id_to_username[char.id] = char.username # add new relative id + + @staticmethod + def update_damage_or_heal(world_data: WorldData, target, inflictor, nominal): + + if inflictor not in world_data.char_id_to_username: + # character not initialized yet + return + + username = world_data.char_id_to_username[inflictor] + + if username == "not initialized": + # self not initialized + return + + char: Character = world_data.characters[username] + + if nominal < 0: + if target == inflictor: + # suicide + return + char.update_damage_dealt(abs(nominal)) + else: + char.update_heal_dealt(nominal) + + WorldDataUtils.ws_update_damage_heal(world_data) + + def ws_update_damage_heal(world_data: WorldData): + event = { + "type": "update_dps", + "payload": {"party_members": world_data.serialize_party_members()}, + } + send_event(event) diff --git a/src/albibong/classes/item.py b/src/albibong/classes/item.py index c541bd0..8f2556d 100644 --- a/src/albibong/classes/item.py +++ b/src/albibong/classes/item.py @@ -15,7 +15,7 @@ def __init__(self, id: str, name: str, unique_name: str): self.image = ( "https://render.albiononline.com/v1/item/" + self.unique_name if self.unique_name != "None" - else "../public/No Equipment.png" + else "/No Equipment.png" ) @staticmethod diff --git a/src/albibong/classes/world_data.py b/src/albibong/classes/world_data.py index 68a6398..6d98698 100644 --- a/src/albibong/classes/world_data.py +++ b/src/albibong/classes/world_data.py @@ -1,22 +1,10 @@ -import json -import os -from collections import deque -import threading from uuid import UUID -from playsound import playsound from albibong.classes.character import Character from albibong.classes.coords import Coords from albibong.classes.dungeon import Dungeon from albibong.classes.item import Item from albibong.classes.location import Location -from albibong.classes.utils import Utils -from albibong.resources.EventCode import EventCode -from albibong.resources.OperationCode import OperationCode -from albibong.threads.websocket_server import send_event - -FILENAME = os.path.join(os.path.expanduser("~"), "Albibong/list_dungeon.json") -os.makedirs(os.path.dirname(FILENAME), exist_ok=True) class WorldData: @@ -39,49 +27,6 @@ def __init__(self) -> None: self.party_members: set[str] = set() self.is_dps_meter_running: bool = True - def end_current_dungeon(self): - if self.current_dungeon: - list_dungeon = deque() - - try: - with open(FILENAME) as json_file: - list_dungeon = deque(json.load(json_file)) - except: - pass - - self.current_dungeon.get_elapsed_time() - list_dungeon.appendleft(Dungeon.serialize(self.current_dungeon)) - - with open(FILENAME, "w") as json_file: - json.dump(list(list_dungeon), json_file) - - event = { - "type": "update_dungeon", - "payload": {"list_dungeon": list(list_dungeon)}, - } - send_event(event) - self.current_dungeon = None - - def start_current_dungeon(self, type, name): - if self.current_dungeon == None: - new_dungeon = Dungeon(type, name) - self.current_dungeon = new_dungeon - - def set_dungeon_status(self, check_map, map_type_splitted): - if "EXPEDITION" in map_type_splitted or "DUNGEON" in map_type_splitted: - self.start_current_dungeon(type=check_map.type, name=check_map.name) - elif ( - "EXPEDITION" not in map_type_splitted or "DUNGEON" not in map_type_splitted - ): - self.end_current_dungeon() - return False - - def convert_id_to_name(self, old_id, new_id, char: Character): - if old_id in self.char_id_to_username: - self.char_id_to_username.pop(old_id) # delete old relative id - char.id = new_id - self.char_id_to_username[char.id] = char.username # add new relative id - def serialize_party_members(self): serialized = [] @@ -111,10 +56,18 @@ def serialize_party_members(self): if total_heal > 0 else 0 ) + duration = char.total_combat_duration + + combat_duration = str(duration).split(".")[0] + dps = ( + damage_dealt // duration.total_seconds() + if duration.total_seconds() != 0 + else 0 + ) weapon = ( Item.serialize(char.equipment[0])["image"] if char.equipment != [] - else "../public/No Equipment.png" + else "/No Equipment.png" ) # member character not initialized @@ -124,7 +77,9 @@ def serialize_party_members(self): damage_percent = 0 healing_dealt = 0 heal_percent = 0 - weapon = "../public/No Equipment.png" + combat_duration = 0 + dps = 0 + weapon = "/No Equipment.png" data = { "username": username, @@ -132,6 +87,8 @@ def serialize_party_members(self): "damage_percent": damage_percent, "healing_dealt": healing_dealt, "heal_percent": heal_percent, + "combat_duration": combat_duration, + "dps": dps, "weapon": weapon, } serialized.append(data) diff --git a/src/albibong/gui_dist/assets/index-BFSx0nua.css b/src/albibong/gui_dist/assets/index-DZvgNqlG.css similarity index 68% rename from src/albibong/gui_dist/assets/index-BFSx0nua.css rename to src/albibong/gui_dist/assets/index-DZvgNqlG.css index c99581e..d3b85ba 100644 --- a/src/albibong/gui_dist/assets/index-BFSx0nua.css +++ b/src/albibong/gui_dist/assets/index-DZvgNqlG.css @@ -1 +1 @@ -*{box-sizing:border-box}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p{margin:0}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}#root,body{margin:auto;display:flex;flex-direction:column;justify-content:start;align-items:center;min-width:320px;min-height:100vh;color:#fff;width:100%}h1{font-size:2em;line-height:1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}._dmgBar_zdqdf_1{background:linear-gradient(135deg,#ff6486,#6486ff);height:6px;border-radius:8px;margin-bottom:2px}._healBar_zdqdf_8{background:linear-gradient(135deg,#64ffde,#64ff90);height:2px;border-radius:4px}._dpsContainer_zdqdf_14{display:flex;flex-direction:column;justify-content:flex-start;width:100%;gap:4px;box-sizing:content-box;padding:16px}._dpsRow_zdqdf_24{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._dpsNumber_zdqdf_31{width:128px;text-align:right}._hidden_zdqdf_36{display:none}._player_zdqdf_40{flex-grow:1}._checkboxColor_zdqdf_44{accent-color:#64d3ff}._container_pkz1i_1{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;gap:1.5rem}._snackbar_pkz1i_10{position:fixed;right:64px}._stats_pkz1i_15{display:flex;flex-direction:row;align-items:center;gap:.5rem}._options_pkz1i_22{display:flex;flex-direction:row;align-items:center;gap:2rem}._row_pkz1i_29{display:flex;width:100%;justify-content:space-between}._hidden_pkz1i_35{display:none}._dungeonContainer_mlu2u_1{border-radius:1rem;width:100%;padding:2rem;display:flex;flex-direction:column;gap:1rem}._tag_mlu2u_12{background-color:#64d3ff;padding:0 1rem;border-radius:1rem;color:#0f3c4e;font-weight:700} +*{box-sizing:border-box}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}p{margin:0}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}#root,body{margin:auto;display:flex;flex-direction:column;justify-content:start;align-items:center;min-width:320px;min-height:100vh;color:#fff;width:100%}h1{font-size:2em;line-height:1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}._dmgBar_zdqdf_1{background:linear-gradient(135deg,#ff6486,#6486ff);height:6px;border-radius:8px;margin-bottom:2px}._healBar_zdqdf_8{background:linear-gradient(135deg,#64ffde,#64ff90);height:2px;border-radius:4px}._dpsContainer_zdqdf_14{display:flex;flex-direction:column;justify-content:flex-start;width:100%;gap:4px;box-sizing:content-box;padding:16px}._dpsRow_zdqdf_24{display:flex;flex-direction:row;justify-content:space-between;align-items:center}._dpsNumber_zdqdf_31{width:128px;text-align:right}._hidden_zdqdf_36{display:none}._player_zdqdf_40{flex-grow:1}._checkboxColor_zdqdf_44{accent-color:#64d3ff}._dungeonContainer_3nxyx_1{border-radius:1rem;width:100%;padding:2rem;display:flex;flex-direction:column;gap:1rem}._tag_3nxyx_12{background-color:#64d3ff;padding:0 1rem;border-radius:1rem;color:#0f3c4e;font-weight:700}._stickToTop_3nxyx_20{z-index:10;position:sticky;top:64px;left:0;width:100%;padding:24px 0}._container_pkz1i_1{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;gap:1.5rem}._snackbar_pkz1i_10{position:fixed;right:64px}._stats_pkz1i_15{display:flex;flex-direction:row;align-items:center;gap:.5rem}._options_pkz1i_22{display:flex;flex-direction:row;align-items:center;gap:2rem}._row_pkz1i_29{display:flex;width:100%;justify-content:space-between}._hidden_pkz1i_35{display:none} diff --git a/src/albibong/gui_dist/assets/index-DAndaN_4.js b/src/albibong/gui_dist/assets/index-E7pha23k.js similarity index 65% rename from src/albibong/gui_dist/assets/index-DAndaN_4.js rename to src/albibong/gui_dist/assets/index-E7pha23k.js index a516ce9..7144412 100644 --- a/src/albibong/gui_dist/assets/index-DAndaN_4.js +++ b/src/albibong/gui_dist/assets/index-E7pha23k.js @@ -1,4 +1,4 @@ -function cv(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lr(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dv={exports:{}},Es={},fv={exports:{}},pe={};/** +function cv(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Es(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lr(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dv={exports:{}},ks={},fv={exports:{}},pe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function cv(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mc=Object.prototype.hasOwnProperty,V1=/^[: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]*$/,Ep={},kp={};function K1(e){return Mc.call(kp,e)?!0:Mc.call(Ep,e)?!1:V1.test(e)?kp[e]=!0:(Ep[e]=!0,!1)}function G1(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 q1(e,t,n,r){if(t===null||typeof t>"u"||G1(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 Ot(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wt[e]=new Ot(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){wt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qd=/[\-:]([a-z])/g;function Yd(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(Qd,Yd);wt[t]=new Ot(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(Qd,Yd);wt[t]=new Ot(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(Qd,Yd);wt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});wt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xd(e,t,n,r){var o=wt.hasOwnProperty(t)?wt[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=Object.prototype.hasOwnProperty,V1=/^[: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]*$/,kp={},Rp={};function K1(e){return Oc.call(Rp,e)?!0:Oc.call(kp,e)?!1:V1.test(e)?Rp[e]=!0:(kp[e]=!0,!1)}function G1(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 q1(e,t,n,r){if(t===null||typeof t>"u"||G1(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 Ot(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var wt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wt[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wt[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wt[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wt[e]=new Ot(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){wt[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wt[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wt[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wt[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wt[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yd=/[\-:]([a-z])/g;function Xd(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(Yd,Xd);wt[t]=new Ot(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(Yd,Xd);wt[t]=new Ot(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(Yd,Xd);wt[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});wt.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wt[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jd(e,t,n,r){var o=wt.hasOwnProperty(t)?wt[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Vu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fi(e):""}function Q1(e){switch(e.tag){case 5:return Fi(e.type);case 16:return Fi("Lazy");case 13:return Fi("Suspense");case 19:return Fi("SuspenseList");case 0:case 2:case 15:return e=Ku(e.type,!1),e;case 11:return e=Ku(e.type.render,!1),e;case 1:return e=Ku(e.type,!0),e;default:return""}}function jc(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 $o:return"Fragment";case To:return"Portal";case Oc:return"Profiler";case Jd:return"StrictMode";case Nc:return"Suspense";case Lc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _v:return(e.displayName||"Context")+".Consumer";case Rv:return(e._context.displayName||"Context")+".Provider";case Zd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ef:return t=e.displayName||null,t!==null?t:jc(e.type)||"Memo";case gr:t=e._payload,e=e._init;try{return jc(e(t))}catch{}}return null}function Y1(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 jc(t);case 8:return t===Jd?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X1(e){var t=Tv(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Za(e){e._valueTracker||(e._valueTracker=X1(e))}function $v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(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 Ac(e,t){var n=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _p(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Lr(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 Iv(e,t){t=t.checked,t!=null&&Xd(e,"checked",t,!1)}function Dc(e,t){Iv(e,t);var n=Lr(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")?zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&zc(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pp(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 zc(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bi=Array.isArray;function Wo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={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},J1=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){J1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Lv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function jv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Lv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z1=Ke({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 Uc(e,t){if(t){if(Z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Wc(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 Hc=null;function tf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vc=null,Ho=null,Vo=null;function Ip(e){if(e=Na(e)){if(typeof Vc!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Ts(t),Vc(e.stateNode,e.type,t))}}function Av(e){Ho?Vo?Vo.push(e):Vo=[e]:Ho=e}function Dv(){if(Ho){var e=Ho,t=Vo;if(Vo=Ho=null,Ip(e),t)for(e=0;e>>=0,e===0?32:31-(cx(e)/dx|0)|0}var tl=64,nl=4194304;function Ui(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 Wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Ui(l):(i&=a,i!==0&&(r=Ui(i)))}else a=n&~o,a!==0?r=Ui(a):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Ma(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tn(t),e[t]=n}function mx(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=Qi),Fp=" ",Bp=!1;function og(e,t){switch(e){case"keyup":return Wx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Io=!1;function Vx(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(Bp=!0,Fp);case"textInput":return e=t.data,e===Fp&&Bp?null:e;default:return null}}function Kx(e,t){if(Io)return e==="compositionend"||!cf&&og(e,t)?(e=ng(),El=lf=Er=null,Io=!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=Vp(n)}}function ug(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ug(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cg(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function df(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 tS(e){var t=cg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ug(n.ownerDocument.documentElement,n)){if(r!==null&&df(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Kp(n,i);var a=Kp(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Mo=null,Xc=null,Xi=null,Jc=!1;function Gp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jc||Mo==null||Mo!==zl(r)||(r=Mo,"selectionStart"in r&&df(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}),Xi&&ha(Xi,r)||(Xi=r,r=Kl(Xc,"onSelect"),0Lo||(e.current=od[Lo],od[Lo]=null,Lo--)}function ze(e,t){Lo++,od[Lo]=e.current,e.current=t}var jr={},Pt=Fr(jr),Wt=Fr(!1),io=jr;function Jo(e,t){var n=e.type.contextTypes;if(!n)return jr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ht(e){return e=e.childContextTypes,e!=null}function ql(){Be(Wt),Be(Pt)}function eh(e,t,n){if(Pt.current!==jr)throw Error(z(168));ze(Pt,t),ze(Wt,n)}function xg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,Y1(e)||"Unknown",o));return Ke({},n,r)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jr,io=Pt.current,ze(Pt,e),ze(Wt,Wt.current),!0}function th(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=xg(e,t,io),r.__reactInternalMemoizedMergedChildContext=e,Be(Wt),Be(Pt),ze(Pt,e)):Be(Wt),ze(Wt,n)}var Jn=null,$s=!1,ac=!1;function Sg(e){Jn===null?Jn=[e]:Jn.push(e)}function pS(e){$s=!0,Sg(e)}function Br(){if(!ac&&Jn!==null){ac=!0;var e=0,t=Ie;try{var n=Jn;for(Ie=1;e>=a,o-=a,Zn=1<<32-Tn(t)+o|n<T?(M=k,k=null):M=k.sibling;var I=d(p,k,m[T],E);if(I===null){k===null&&(k=M);break}e&&k&&I.alternate===null&&t(p,k),h=i(I,h,T),x===null?R=I:x.sibling=I,x=I,k=M}if(T===m.length)return n(p,k),We&&Hr(p,T),R;if(k===null){for(;TT?(M=k,k=null):M=k.sibling;var N=d(p,k,I.value,E);if(N===null){k===null&&(k=M);break}e&&k&&N.alternate===null&&t(p,k),h=i(N,h,T),x===null?R=N:x.sibling=N,x=N,k=M}if(I.done)return n(p,k),We&&Hr(p,T),R;if(k===null){for(;!I.done;T++,I=m.next())I=f(p,I.value,E),I!==null&&(h=i(I,h,T),x===null?R=I:x.sibling=I,x=I);return We&&Hr(p,T),R}for(k=r(p,k);!I.done;T++,I=m.next())I=b(k,p,T,I.value,E),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?T:I.key),h=i(I,h,T),x===null?R=I:x.sibling=I,x=I);return e&&k.forEach(function(F){return t(p,F)}),We&&Hr(p,T),R}function S(p,h,m,E){if(typeof m=="object"&&m!==null&&m.type===$o&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ja:e:{for(var R=m.key,x=h;x!==null;){if(x.key===R){if(R=m.type,R===$o){if(x.tag===7){n(p,x.sibling),h=o(x,m.props.children),h.return=p,p=h;break e}}else if(x.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===gr&&sh(R)===x.type){n(p,x.sibling),h=o(x,m.props),h.ref=Ri(p,x,m),h.return=p,p=h;break e}n(p,x);break}else t(p,x);x=x.sibling}m.type===$o?(h=ro(m.props.children,p.mode,E,m.key),h.return=p,p=h):(E=Ml(m.type,m.key,m.props,null,p.mode,E),E.ref=Ri(p,h,m),E.return=p,p=E)}return a(p);case To:e:{for(x=m.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=o(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=hc(m,p.mode,E),h.return=p,p=h}return a(p);case gr:return x=m._init,S(p,h,x(m._payload),E)}if(Bi(m))return g(p,h,m,E);if(bi(m))return v(p,h,m,E);ul(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,m),h.return=p,p=h):(n(p,h),h=pc(m,p.mode,E),h.return=p,p=h),a(p)):n(p,h)}return S}var ei=Pg(!0),Tg=Pg(!1),La={},Kn=Fr(La),ya=Fr(La),xa=Fr(La);function Xr(e){if(e===La)throw Error(z(174));return e}function Sf(e,t){switch(ze(xa,t),ze(ya,e),ze(Kn,La),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bc(t,e)}Be(Kn),ze(Kn,t)}function ti(){Be(Kn),Be(ya),Be(xa)}function $g(e){Xr(xa.current);var t=Xr(Kn.current),n=Bc(t,e.type);t!==n&&(ze(ya,e),ze(Kn,n))}function bf(e){ya.current===e&&(Be(Kn),Be(ya))}var He=Fr(0);function ts(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lc=[];function wf(){for(var e=0;en?n:4,e(!0);var r=sc.transition;sc.transition={};try{e(!1),t()}finally{Ie=n,sc.transition=r}}function Kg(){return xn().memoizedState}function gS(e,t,n){var r=Mr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gg(e))qg(t,n);else if(n=Eg(e,t,n,r),n!==null){var o=It();$n(n,e,r,o),Qg(n,t,r)}}function yS(e,t,n){var r=Mr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gg(e))qg(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Mn(l,a)){var s=t.interleaved;s===null?(o.next=o,yf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Eg(e,t,o,r),n!==null&&(o=It(),$n(n,e,r,o),Qg(n,t,r))}}function Gg(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function qg(e,t){Ji=ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rf(e,n)}}var rs={readContext:yn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},xS={readContext:yn,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:yn,useEffect:ch,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pl(4194308,4,Bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pl(4,2,e,t)},useMemo:function(e,t){var n=zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zn();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=gS.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=zn();return e={current:e},t.memoizedState=e},useState:uh,useDebugValue:_f,useDeferredValue:function(e){return zn().memoizedState=e},useTransition:function(){var e=uh(!1),t=e[0];return e=vS.bind(null,e[1]),zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,o=zn();if(We){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),vt===null)throw Error(z(349));lo&30||Og(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ch(Lg.bind(null,r,i,e),[e]),r.flags|=2048,wa(9,Ng.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zn(),t=vt.identifierPrefix;if(We){var n=er,r=Zn;n=(r&~(1<<32-Tn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sa++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ku=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function Q1(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=Gu(e.type,!1),e;case 11:return e=Gu(e.type.render,!1),e;case 1:return e=Gu(e.type,!0),e;default:return""}}function Ac(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 Io:return"Fragment";case $o:return"Portal";case Nc:return"Profiler";case Zd:return"StrictMode";case Lc:return"Suspense";case jc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _v:return(e.displayName||"Context")+".Consumer";case Rv:return(e._context.displayName||"Context")+".Provider";case ef:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tf:return t=e.displayName||null,t!==null?t:Ac(e.type)||"Memo";case gr:t=e._payload,e=e._init;try{return Ac(e(t))}catch{}}return null}function Y1(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 Ac(t);case 8:return t===Zd?"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 Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X1(e){var t=Tv(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Za(e){e._valueTracker||(e._valueTracker=X1(e))}function $v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(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 Dc(e,t){var n=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Pp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Lr(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 Iv(e,t){t=t.checked,t!=null&&Jd(e,"checked",t,!1)}function zc(e,t){Iv(e,t);var n=Lr(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")?Fc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fc(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tp(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 Fc(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ui=Array.isArray;function Ho(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ua(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qi={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},J1=["Webkit","ms","Moz","O"];Object.keys(qi).forEach(function(e){J1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qi[t]=qi[e]})});function Lv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qi.hasOwnProperty(e)&&qi[e]?(""+t).trim():t+"px"}function jv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Lv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z1=Ke({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 Wc(e,t){if(t){if(Z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Hc(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 Vc=null;function nf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kc=null,Vo=null,Ko=null;function Mp(e){if(e=La(e)){if(typeof Kc!="function")throw Error(z(280));var t=e.stateNode;t&&(t=$s(t),Kc(e.stateNode,e.type,t))}}function Av(e){Vo?Ko?Ko.push(e):Ko=[e]:Vo=e}function Dv(){if(Vo){var e=Vo,t=Ko;if(Ko=Vo=null,Mp(e),t)for(e=0;e>>=0,e===0?32:31-(cx(e)/dx|0)|0}var tl=64,nl=4194304;function Wi(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 Wl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Wi(l):(i&=a,i!==0&&(r=Wi(i)))}else a=n&~o,a!==0?r=Wi(a):i!==0&&(r=Wi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 Oa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$n(t),e[t]=n}function mx(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=Yi),Bp=" ",Up=!1;function og(e,t){switch(e){case"keyup":return Wx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mo=!1;function Vx(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(Up=!0,Bp);case"textInput":return e=t.data,e===Bp&&Up?null:e;default:return null}}function Kx(e,t){if(Mo)return e==="compositionend"||!df&&og(e,t)?(e=ng(),El=sf=Er=null,Mo=!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=Kp(n)}}function ug(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ug(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cg(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function ff(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 tS(e){var t=cg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ug(n.ownerDocument.documentElement,n)){if(r!==null&&ff(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Gp(n,i);var a=Gp(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Oo=null,Jc=null,Ji=null,Zc=!1;function qp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zc||Oo==null||Oo!==zl(r)||(r=Oo,"selectionStart"in r&&ff(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}),Ji&&ma(Ji,r)||(Ji=r,r=Kl(Jc,"onSelect"),0jo||(e.current=id[jo],id[jo]=null,jo--)}function ze(e,t){jo++,id[jo]=e.current,e.current=t}var jr={},Pt=Fr(jr),Wt=Fr(!1),io=jr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return jr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ht(e){return e=e.childContextTypes,e!=null}function ql(){Be(Wt),Be(Pt)}function th(e,t,n){if(Pt.current!==jr)throw Error(z(168));ze(Pt,t),ze(Wt,n)}function xg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,Y1(e)||"Unknown",o));return Ke({},n,r)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jr,io=Pt.current,ze(Pt,e),ze(Wt,Wt.current),!0}function nh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=xg(e,t,io),r.__reactInternalMemoizedMergedChildContext=e,Be(Wt),Be(Pt),ze(Pt,e)):Be(Wt),ze(Wt,n)}var Jn=null,Is=!1,lc=!1;function Sg(e){Jn===null?Jn=[e]:Jn.push(e)}function pS(e){Is=!0,Sg(e)}function Br(){if(!lc&&Jn!==null){lc=!0;var e=0,t=Ie;try{var n=Jn;for(Ie=1;e>=a,o-=a,Zn=1<<32-$n(t)+o|n<T?(M=k,k=null):M=k.sibling;var I=d(p,k,m[T],E);if(I===null){k===null&&(k=M);break}e&&k&&I.alternate===null&&t(p,k),h=i(I,h,T),x===null?R=I:x.sibling=I,x=I,k=M}if(T===m.length)return n(p,k),We&&Hr(p,T),R;if(k===null){for(;TT?(M=k,k=null):M=k.sibling;var N=d(p,k,I.value,E);if(N===null){k===null&&(k=M);break}e&&k&&N.alternate===null&&t(p,k),h=i(N,h,T),x===null?R=N:x.sibling=N,x=N,k=M}if(I.done)return n(p,k),We&&Hr(p,T),R;if(k===null){for(;!I.done;T++,I=m.next())I=f(p,I.value,E),I!==null&&(h=i(I,h,T),x===null?R=I:x.sibling=I,x=I);return We&&Hr(p,T),R}for(k=r(p,k);!I.done;T++,I=m.next())I=b(k,p,T,I.value,E),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?T:I.key),h=i(I,h,T),x===null?R=I:x.sibling=I,x=I);return e&&k.forEach(function(F){return t(p,F)}),We&&Hr(p,T),R}function S(p,h,m,E){if(typeof m=="object"&&m!==null&&m.type===Io&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ja:e:{for(var R=m.key,x=h;x!==null;){if(x.key===R){if(R=m.type,R===Io){if(x.tag===7){n(p,x.sibling),h=o(x,m.props.children),h.return=p,p=h;break e}}else if(x.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===gr&&uh(R)===x.type){n(p,x.sibling),h=o(x,m.props),h.ref=_i(p,x,m),h.return=p,p=h;break e}n(p,x);break}else t(p,x);x=x.sibling}m.type===Io?(h=ro(m.props.children,p.mode,E,m.key),h.return=p,p=h):(E=Ml(m.type,m.key,m.props,null,p.mode,E),E.ref=_i(p,h,m),E.return=p,p=E)}return a(p);case $o:e:{for(x=m.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=o(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=mc(m,p.mode,E),h.return=p,p=h}return a(p);case gr:return x=m._init,S(p,h,x(m._payload),E)}if(Ui(m))return g(p,h,m,E);if(wi(m))return v(p,h,m,E);ul(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,m),h.return=p,p=h):(n(p,h),h=hc(m,p.mode,E),h.return=p,p=h),a(p)):n(p,h)}return S}var ti=Pg(!0),Tg=Pg(!1),ja={},Kn=Fr(ja),xa=Fr(ja),Sa=Fr(ja);function Xr(e){if(e===ja)throw Error(z(174));return e}function bf(e,t){switch(ze(Sa,t),ze(xa,e),ze(Kn,ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uc(t,e)}Be(Kn),ze(Kn,t)}function ni(){Be(Kn),Be(xa),Be(Sa)}function $g(e){Xr(Sa.current);var t=Xr(Kn.current),n=Uc(t,e.type);t!==n&&(ze(xa,e),ze(Kn,n))}function wf(e){xa.current===e&&(Be(Kn),Be(xa))}var He=Fr(0);function ts(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sc=[];function Cf(){for(var e=0;en?n:4,e(!0);var r=uc.transition;uc.transition={};try{e(!1),t()}finally{Ie=n,uc.transition=r}}function Kg(){return Sn().memoizedState}function gS(e,t,n){var r=Mr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gg(e))qg(t,n);else if(n=Eg(e,t,n,r),n!==null){var o=It();In(n,e,r,o),Qg(n,t,r)}}function yS(e,t,n){var r=Mr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gg(e))qg(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,On(l,a)){var s=t.interleaved;s===null?(o.next=o,xf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Eg(e,t,o,r),n!==null&&(o=It(),In(n,e,r,o),Qg(n,t,r))}}function Gg(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function qg(e,t){Zi=ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,of(e,n)}}var rs={readContext:xn,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useInsertionEffect:Et,useLayoutEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useMutableSource:Et,useSyncExternalStore:Et,useId:Et,unstable_isNewReconciler:!1},xS={readContext:xn,useCallback:function(e,t){return zn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:dh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pl(4194308,4,Bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pl(4,2,e,t)},useMemo:function(e,t){var n=zn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zn();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=gS.bind(null,Ve,e),[r.memoizedState,e]},useRef:function(e){var t=zn();return e={current:e},t.memoizedState=e},useState:ch,useDebugValue:Pf,useDeferredValue:function(e){return zn().memoizedState=e},useTransition:function(){var e=ch(!1),t=e[0];return e=vS.bind(null,e[1]),zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ve,o=zn();if(We){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),vt===null)throw Error(z(349));lo&30||Og(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,dh(Lg.bind(null,r,i,e),[e]),r.flags|=2048,Ca(9,Ng.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zn(),t=vt.identifierPrefix;if(We){var n=er,r=Zn;n=(r&~(1<<32-$n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ba++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Wn]=t,e[ga]=r,o0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;ori&&(t.flags|=128,r=!0,_i(i,!1),t.lanes=4194304)}else{if(!r)if(e=ts(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_i(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!We)return kt(t),null}else 2*nt()-i.renderingStartTime>ri&&n!==1073741824&&(t.flags|=128,r=!0,_i(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=He.current,ze(He,r?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return Of(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function _S(e,t){switch(pf(t),t.tag){case 1:return Ht(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),Be(Wt),Be(Pt),wf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bf(t),null;case 13:if(Be(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Zo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(He),null;case 4:return ti(),null;case 10:return gf(t.type._context),null;case 22:case 23:return Of(),null;case 24:return null;default:return null}}var dl=!1,_t=!1,PS=typeof WeakSet=="function"?WeakSet:Set,G=null;function zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xe(e,t,r)}else n.current=null}function vd(e,t,n){try{n()}catch(r){Xe(e,t,r)}}var xh=!1;function TS(e,t){if(Zc=Hl,e=cg(),df(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var b;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)d=f,f=b;for(;;){if(f===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++c===r&&(s=a),(b=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=b}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ed={focusedElem:e,selectionRange:n},Hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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 v=g.memoizedProps,S=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:kn(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(E){Xe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=xh,xh=!1,g}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&vd(t,n,i)}o=o.next}while(o!==r)}}function Os(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 gd(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 l0(e){var t=e.alternate;t!==null&&(e.alternate=null,l0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wn],delete t[ga],delete t[rd],delete t[dS],delete t[fS])),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 s0(e){return e.tag===5||e.tag===3||e.tag===4}function Sh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0(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 yd(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=Gl));else if(r!==4&&(e=e.child,e!==null))for(yd(e,t,n),e=e.sibling;e!==null;)yd(e,t,n),e=e.sibling}function xd(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(xd(e,t,n),e=e.sibling;e!==null;)xd(e,t,n),e=e.sibling}var xt=null,Rn=!1;function hr(e,t,n){for(n=n.child;n!==null;)u0(e,t,n),n=n.sibling}function u0(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(ks,n)}catch{}switch(n.tag){case 5:_t||zo(n,t);case 6:var r=xt,o=Rn;xt=null,hr(e,t,n),xt=r,Rn=o,xt!==null&&(Rn?(e=xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xt.removeChild(n.stateNode));break;case 18:xt!==null&&(Rn?(e=xt,n=n.stateNode,e.nodeType===8?ic(e.parentNode,n):e.nodeType===1&&ic(e,n),fa(e)):ic(xt,n.stateNode));break;case 4:r=xt,o=Rn,xt=n.stateNode.containerInfo,Rn=!0,hr(e,t,n),xt=r,Rn=o;break;case 0:case 11:case 14:case 15:if(!_t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&vd(n,t,a),o=o.next}while(o!==r)}hr(e,t,n);break;case 1:if(!_t&&(zo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Xe(n,t,l)}hr(e,t,n);break;case 21:hr(e,t,n);break;case 22:n.mode&1?(_t=(r=_t)||n.memoizedState!==null,hr(e,t,n),_t=r):hr(e,t,n);break;default:hr(e,t,n)}}function bh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new PS),t.forEach(function(r){var o=DS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function En(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IS(r/1960))-r,10e?16:e,kr===null)var r=!1;else{if(e=kr,kr=null,as=0,be&6)throw Error(z(331));var o=be;for(be|=4,G=e.current;G!==null;){var i=G,a=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;snt()-If?no(e,0):$f|=n),Vt(e,t)}function g0(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=It();e=or(e,t),e!==null&&(Ma(e,t,n),Vt(e,n))}function AS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),g0(e,n)}function DS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),g0(e,n)}var y0;y0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ut=!1,kS(e,t,n);Ut=!!(e.flags&131072)}else Ut=!1,We&&t.flags&1048576&&bg(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tl(e,t),e=t.pendingProps;var o=Jo(t,Pt.current);Go(t,n),o=Ef(null,t,r,e,o,n);var i=kf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(r)?(i=!0,Ql(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,xf(t),o.updater=Is,t.stateNode=o,o._reactInternals=t,ud(t,r,e,n),t=fd(null,t,r,!0,i,n)):(t.tag=0,We&&i&&ff(t),$t(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=FS(r),e=kn(r,e),o){case 0:t=dd(null,t,r,e,n);break e;case 1:t=vh(null,t,r,e,n);break e;case 11:t=hh(null,t,r,e,n);break e;case 14:t=mh(null,t,r,kn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kn(r,o),dd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kn(r,o),vh(e,t,r,o,n);case 3:e:{if(t0(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,kg(e,t),es(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(z(423)),t),t=gh(e,t,r,n,o);break e}else if(r!==o){o=ni(Error(z(424)),t),t=gh(e,t,r,n,o);break e}else for(Zt=Tr(t.stateNode.containerInfo.firstChild),en=t,We=!0,Pn=null,n=Tg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zo(),r===o){t=ir(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&ad(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,td(r,o)?a=null:i!==null&&td(r,i)&&(t.flags|=32),e0(e,t),$t(e,t,a,n),t.child;case 6:return e===null&&ad(t),null;case 13:return n0(e,t,n);case 4:return Sf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ei(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kn(r,o),hh(e,t,r,o,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ze(Jl,r._currentValue),r._currentValue=a,i!==null)if(Mn(i.value,a)){if(i.children===o.children&&!Wt.current){t=ir(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=tr(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ld(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(z(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ld(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$t(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Go(t,n),o=yn(o),r=r(o),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,o=kn(r,t.pendingProps),o=kn(r.type,o),mh(e,t,r,o,n);case 15:return Jg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kn(r,o),Tl(e,t),t.tag=1,Ht(r)?(e=!0,Ql(t)):e=!1,Go(t,n),_g(t,r,o),ud(t,r,o,n),fd(null,t,r,!0,e,n);case 19:return r0(e,t,n);case 22:return Zg(e,t,n)}throw Error(z(156,t.tag))};function x0(e,t){return Vv(e,t)}function zS(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 vn(e,t,n,r){return new zS(e,t,n,r)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FS(e){if(typeof e=="function")return Lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zd)return 11;if(e===ef)return 14}return 2}function Or(e,t){var n=e.alternate;return n===null?(n=vn(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 Ml(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Lf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case $o:return ro(n.children,o,i,t);case Jd:a=8,o|=8;break;case Oc:return e=vn(12,n,t,o|2),e.elementType=Oc,e.lanes=i,e;case Nc:return e=vn(13,n,t,o),e.elementType=Nc,e.lanes=i,e;case Lc:return e=vn(19,n,t,o),e.elementType=Lc,e.lanes=i,e;case Pv:return Ls(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rv:a=10;break e;case _v:a=9;break e;case Zd:a=11;break e;case ef:a=14;break e;case gr:a=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=vn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ro(e,t,n,r){return e=vn(7,e,r,t),e.lanes=n,e}function Ls(e,t,n,r){return e=vn(22,e,r,t),e.elementType=Pv,e.lanes=n,e.stateNode={isHidden:!1},e}function pc(e,t,n){return e=vn(6,e,null,t),e.lanes=n,e}function hc(e,t,n){return t=vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BS(e,t,n,r,o){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=qu(0),this.expirationTimes=qu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jf(e,t,n,r,o,i,a,l,s){return e=new BS(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=vn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xf(i),e}function US(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C0)}catch(e){console.error(e)}}C0(),bv.exports=on;var ja=bv.exports;const Hi=Cs(ja),GS=cv({__proto__:null,default:Hi},[ja]);var Th=ja;Ic.createRoot=Th.createRoot,Ic.hydrateRoot=Th.hydrateRoot;function co(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function E0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,YS=E0(function(e){return QS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function XS(e){if(e.sheet)return e.sheet;for(var t=0;t0?St(pi,--Gt):0,ii--,lt===10&&(ii=1,Bs--),lt}function tn(){return lt=Gt2||ka(lt)>3?"":" "}function cb(e,t){for(;--t&&tn()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return Aa(e,Ol()+(t<6&&Gn()==32&&tn()==32))}function kd(e){for(;tn();)switch(lt){case e:return Gt;case 34:case 39:e!==34&&e!==39&&kd(lt);break;case 40:e===41&&kd(e);break;case 92:tn();break}return Gt}function db(e,t){for(;tn()&&e+lt!==57;)if(e+lt===84&&Gn()===47)break;return"/*"+Aa(t,Gt-1)+"*"+Fs(e===47?e:tn())}function fb(e){for(;!ka(Gn());)tn();return Aa(e,Gt)}function pb(e){return $0(Ll("",null,null,null,[""],e=T0(e),0,[0],e))}function Ll(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,f=a,d=0,b=0,g=0,v=1,S=1,p=1,h=0,m="",E=o,R=i,x=r,k=m;S;)switch(g=h,h=tn()){case 40:if(g!=108&&St(k,f-1)==58){Ed(k+=ke(Nl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:k+=Nl(h);break;case 9:case 10:case 13:case 32:k+=ub(g);break;case 92:k+=cb(Ol()-1,7);continue;case 47:switch(Gn()){case 42:case 47:hl(hb(db(tn(),Ol()),t,n),s);break;default:k+="/"}break;case 123*v:l[u++]=Bn(k)*p;case 125*v:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:p==-1&&(k=ke(k,/\f/g,"")),b>0&&Bn(k)-f&&hl(b>32?Ih(k+";",r,n,f-1):Ih(ke(k," ","")+";",r,n,f-2),s);break;case 59:k+=";";default:if(hl(x=$h(k,t,n,u,c,o,l,m,E=[],R=[],f),i),h===123)if(c===0)Ll(k,t,x,x,E,i,f,l,R);else switch(d===99&&St(k,3)===110?100:d){case 100:case 108:case 109:case 115:Ll(e,x,x,r&&hl($h(e,x,x,0,0,o,l,m,o,E=[],f),R),o,R,f,l,r?E:R);break;default:Ll(k,x,x,x,[""],R,0,l,R)}}u=c=b=0,v=p=1,m=k="",f=a;break;case 58:f=1+Bn(k),b=g;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&sb()==125)continue}switch(k+=Fs(h),h*v){case 38:p=c>0?1:(k+="\f",-1);break;case 44:l[u++]=(Bn(k)-1)*p,p=1;break;case 64:Gn()===45&&(k+=Nl(tn())),d=Gn(),c=f=Bn(m=k+=fb(Ol())),h++;break;case 45:g===45&&Bn(k)==2&&(v=0)}}return i}function $h(e,t,n,r,o,i,a,l,s,u,c){for(var f=o-1,d=o===0?i:[""],b=Uf(d),g=0,v=0,S=0;g0?d[p]+" "+h:ke(h,/&\f/g,d[p])))&&(s[S++]=m);return Us(e,t,n,o===0?Ff:l,s,u,c)}function hb(e,t,n){return Us(e,t,n,k0,Fs(lb()),Ea(e,2,-2),0)}function Ih(e,t,n,r){return Us(e,t,n,Bf,Ea(e,0,r),Ea(e,r+1,-1),r)}function Qo(e,t){for(var n="",r=Uf(e),o=0;o6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return ke(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+us+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ed(e,"stretch")?I0(ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Bn(e)-3-(~Ed(e,"!important")&&10))){case 107:return ke(e,":",":"+Ee)+e;case 101:return ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(St(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return Ee+e+Rt+ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+Rt+ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+Rt+ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+Rt+e+e}return e}var Cb=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Bf:t.return=I0(t.value,t.length);break;case R0:return Qo([Ti(t,{value:ke(t.value,"@","@"+Ee)})],o);case Ff:if(t.length)return ab(t.props,function(i){switch(ib(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qo([Ti(t,{props:[ke(i,/:(read-\w+)/,":"+us+"$1")]})],o);case"::placeholder":return Qo([Ti(t,{props:[ke(i,/:(plac\w+)/,":"+Ee+"input-$1")]}),Ti(t,{props:[ke(i,/:(plac\w+)/,":"+us+"$1")]}),Ti(t,{props:[ke(i,/:(plac\w+)/,Rt+"input-$1")]})],o)}return""})}},Eb=[Cb],M0=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(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Eb,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),p=1;p<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Wn]=t,e[ya]=r,o0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Hc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;ooi&&(t.flags|=128,r=!0,Pi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ts(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!We)return kt(t),null}else 2*nt()-i.renderingStartTime>oi&&n!==1073741824&&(t.flags|=128,r=!0,Pi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=He.current,ze(He,r?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return Nf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xt&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function _S(e,t){switch(hf(t),t.tag){case 1:return Ht(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ni(),Be(Wt),Be(Pt),Cf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wf(t),null;case 13:if(Be(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(He),null;case 4:return ni(),null;case 10:return yf(t.type._context),null;case 22:case 23:return Nf(),null;case 24:return null;default:return null}}var dl=!1,_t=!1,PS=typeof WeakSet=="function"?WeakSet:Set,G=null;function Fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xe(e,t,r)}else n.current=null}function gd(e,t,n){try{n()}catch(r){Xe(e,t,r)}}var Sh=!1;function TS(e,t){if(ed=Hl,e=cg(),ff(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var b;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)d=f,f=b;for(;;){if(f===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++c===r&&(s=a),(b=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=b}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(td={focusedElem:e,selectionRange:n},Hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;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 v=g.memoizedProps,S=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rn(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(E){Xe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=Sh,Sh=!1,g}function ea(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&gd(t,n,i)}o=o.next}while(o!==r)}}function Ns(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 yd(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 l0(e){var t=e.alternate;t!==null&&(e.alternate=null,l0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wn],delete t[ya],delete t[od],delete t[dS],delete t[fS])),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 s0(e){return e.tag===5||e.tag===3||e.tag===4}function bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0(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 xd(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=Gl));else if(r!==4&&(e=e.child,e!==null))for(xd(e,t,n),e=e.sibling;e!==null;)xd(e,t,n),e=e.sibling}function Sd(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(Sd(e,t,n),e=e.sibling;e!==null;)Sd(e,t,n),e=e.sibling}var xt=null,_n=!1;function hr(e,t,n){for(n=n.child;n!==null;)u0(e,t,n),n=n.sibling}function u0(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(Rs,n)}catch{}switch(n.tag){case 5:_t||Fo(n,t);case 6:var r=xt,o=_n;xt=null,hr(e,t,n),xt=r,_n=o,xt!==null&&(_n?(e=xt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xt.removeChild(n.stateNode));break;case 18:xt!==null&&(_n?(e=xt,n=n.stateNode,e.nodeType===8?ac(e.parentNode,n):e.nodeType===1&&ac(e,n),pa(e)):ac(xt,n.stateNode));break;case 4:r=xt,o=_n,xt=n.stateNode.containerInfo,_n=!0,hr(e,t,n),xt=r,_n=o;break;case 0:case 11:case 14:case 15:if(!_t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&gd(n,t,a),o=o.next}while(o!==r)}hr(e,t,n);break;case 1:if(!_t&&(Fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Xe(n,t,l)}hr(e,t,n);break;case 21:hr(e,t,n);break;case 22:n.mode&1?(_t=(r=_t)||n.memoizedState!==null,hr(e,t,n),_t=r):hr(e,t,n);break;default:hr(e,t,n)}}function wh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new PS),t.forEach(function(r){var o=DS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function kn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*IS(r/1960))-r,10e?16:e,kr===null)var r=!1;else{if(e=kr,kr=null,as=0,we&6)throw Error(z(331));var o=we;for(we|=4,G=e.current;G!==null;){var i=G,a=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var s=0;snt()-Mf?no(e,0):If|=n),Vt(e,t)}function g0(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=It();e=or(e,t),e!==null&&(Oa(e,t,n),Vt(e,n))}function AS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),g0(e,n)}function DS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),g0(e,n)}var y0;y0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)Ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ut=!1,kS(e,t,n);Ut=!!(e.flags&131072)}else Ut=!1,We&&t.flags&1048576&&bg(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tl(e,t),e=t.pendingProps;var o=Zo(t,Pt.current);qo(t,n),o=kf(null,t,r,e,o,n);var i=Rf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ht(r)?(i=!0,Ql(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Sf(t),o.updater=Ms,t.stateNode=o,o._reactInternals=t,cd(t,r,e,n),t=pd(null,t,r,!0,i,n)):(t.tag=0,We&&i&&pf(t),$t(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=FS(r),e=Rn(r,e),o){case 0:t=fd(null,t,r,e,n);break e;case 1:t=gh(null,t,r,e,n);break e;case 11:t=mh(null,t,r,e,n);break e;case 14:t=vh(null,t,r,Rn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rn(r,o),fd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rn(r,o),gh(e,t,r,o,n);case 3:e:{if(t0(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,kg(e,t),es(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ri(Error(z(423)),t),t=yh(e,t,r,n,o);break e}else if(r!==o){o=ri(Error(z(424)),t),t=yh(e,t,r,n,o);break e}else for(Zt=Tr(t.stateNode.containerInfo.firstChild),en=t,We=!0,Tn=null,n=Tg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ei(),r===o){t=ir(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&ld(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,nd(r,o)?a=null:i!==null&&nd(r,i)&&(t.flags|=32),e0(e,t),$t(e,t,a,n),t.child;case 6:return e===null&&ld(t),null;case 13:return n0(e,t,n);case 4:return bf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ti(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rn(r,o),mh(e,t,r,o,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ze(Jl,r._currentValue),r._currentValue=a,i!==null)if(On(i.value,a)){if(i.children===o.children&&!Wt.current){t=ir(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=tr(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),sd(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(z(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),sd(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$t(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,qo(t,n),o=xn(o),r=r(o),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,o=Rn(r,t.pendingProps),o=Rn(r.type,o),vh(e,t,r,o,n);case 15:return Jg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rn(r,o),Tl(e,t),t.tag=1,Ht(r)?(e=!0,Ql(t)):e=!1,qo(t,n),_g(t,r,o),cd(t,r,o,n),pd(null,t,r,!0,e,n);case 19:return r0(e,t,n);case 22:return Zg(e,t,n)}throw Error(z(156,t.tag))};function x0(e,t){return Vv(e,t)}function zS(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 gn(e,t,n,r){return new zS(e,t,n,r)}function jf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FS(e){if(typeof e=="function")return jf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ef)return 11;if(e===tf)return 14}return 2}function Or(e,t){var n=e.alternate;return n===null?(n=gn(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 Ml(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")jf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Io:return ro(n.children,o,i,t);case Zd:a=8,o|=8;break;case Nc:return e=gn(12,n,t,o|2),e.elementType=Nc,e.lanes=i,e;case Lc:return e=gn(13,n,t,o),e.elementType=Lc,e.lanes=i,e;case jc:return e=gn(19,n,t,o),e.elementType=jc,e.lanes=i,e;case Pv:return js(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rv:a=10;break e;case _v:a=9;break e;case ef:a=11;break e;case tf:a=14;break e;case gr:a=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=gn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ro(e,t,n,r){return e=gn(7,e,r,t),e.lanes=n,e}function js(e,t,n,r){return e=gn(22,e,r,t),e.elementType=Pv,e.lanes=n,e.stateNode={isHidden:!1},e}function hc(e,t,n){return e=gn(6,e,null,t),e.lanes=n,e}function mc(e,t,n){return t=gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BS(e,t,n,r,o){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=Qu(0),this.expirationTimes=Qu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Af(e,t,n,r,o,i,a,l,s){return e=new BS(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(i),e}function US(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C0)}catch(e){console.error(e)}}C0(),bv.exports=on;var Aa=bv.exports;const Vi=Es(Aa),GS=cv({__proto__:null,default:Vi},[Aa]);var $h=Aa;Mc.createRoot=$h.createRoot,Mc.hydrateRoot=$h.hydrateRoot;function co(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[o]=e[o]);return n}function E0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,YS=E0(function(e){return QS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function XS(e){if(e.sheet)return e.sheet;for(var t=0;t0?St(hi,--Gt):0,ai--,lt===10&&(ai=1,Us--),lt}function tn(){return lt=Gt2||Ra(lt)>3?"":" "}function cb(e,t){for(;--t&&tn()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return Da(e,Ol()+(t<6&&Gn()==32&&tn()==32))}function Rd(e){for(;tn();)switch(lt){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Rd(lt);break;case 40:e===41&&Rd(e);break;case 92:tn();break}return Gt}function db(e,t){for(;tn()&&e+lt!==57;)if(e+lt===84&&Gn()===47)break;return"/*"+Da(t,Gt-1)+"*"+Bs(e===47?e:tn())}function fb(e){for(;!Ra(Gn());)tn();return Da(e,Gt)}function pb(e){return $0(Ll("",null,null,null,[""],e=T0(e),0,[0],e))}function Ll(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,f=a,d=0,b=0,g=0,v=1,S=1,p=1,h=0,m="",E=o,R=i,x=r,k=m;S;)switch(g=h,h=tn()){case 40:if(g!=108&&St(k,f-1)==58){kd(k+=Re(Nl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:k+=Nl(h);break;case 9:case 10:case 13:case 32:k+=ub(g);break;case 92:k+=cb(Ol()-1,7);continue;case 47:switch(Gn()){case 42:case 47:hl(hb(db(tn(),Ol()),t,n),s);break;default:k+="/"}break;case 123*v:l[u++]=Bn(k)*p;case 125*v:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:p==-1&&(k=Re(k,/\f/g,"")),b>0&&Bn(k)-f&&hl(b>32?Mh(k+";",r,n,f-1):Mh(Re(k," ","")+";",r,n,f-2),s);break;case 59:k+=";";default:if(hl(x=Ih(k,t,n,u,c,o,l,m,E=[],R=[],f),i),h===123)if(c===0)Ll(k,t,x,x,E,i,f,l,R);else switch(d===99&&St(k,3)===110?100:d){case 100:case 108:case 109:case 115:Ll(e,x,x,r&&hl(Ih(e,x,x,0,0,o,l,m,o,E=[],f),R),o,R,f,l,r?E:R);break;default:Ll(k,x,x,x,[""],R,0,l,R)}}u=c=b=0,v=p=1,m=k="",f=a;break;case 58:f=1+Bn(k),b=g;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&sb()==125)continue}switch(k+=Bs(h),h*v){case 38:p=c>0?1:(k+="\f",-1);break;case 44:l[u++]=(Bn(k)-1)*p,p=1;break;case 64:Gn()===45&&(k+=Nl(tn())),d=Gn(),c=f=Bn(m=k+=fb(Ol())),h++;break;case 45:g===45&&Bn(k)==2&&(v=0)}}return i}function Ih(e,t,n,r,o,i,a,l,s,u,c){for(var f=o-1,d=o===0?i:[""],b=Wf(d),g=0,v=0,S=0;g0?d[p]+" "+h:Re(h,/&\f/g,d[p])))&&(s[S++]=m);return Ws(e,t,n,o===0?Bf:l,s,u,c)}function hb(e,t,n){return Ws(e,t,n,k0,Bs(lb()),ka(e,2,-2),0)}function Mh(e,t,n,r){return Ws(e,t,n,Uf,ka(e,0,r),ka(e,r+1,-1),r)}function Yo(e,t){for(var n="",r=Wf(e),o=0;o6)switch(St(e,t+1)){case 109:if(St(e,t+4)!==45)break;case 102:return Re(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+us+(St(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~kd(e,"stretch")?I0(Re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(St(e,t+1)!==115)break;case 6444:switch(St(e,Bn(e)-3-(~kd(e,"!important")&&10))){case 107:return Re(e,":",":"+ke)+e;case 101:return Re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(St(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Rt+"$2box$3")+e}break;case 5936:switch(St(e,t+11)){case 114:return ke+e+Rt+Re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Rt+Re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Rt+Re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Rt+e+e}return e}var Cb=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Uf:t.return=I0(t.value,t.length);break;case R0:return Yo([$i(t,{value:Re(t.value,"@","@"+ke)})],o);case Bf:if(t.length)return ab(t.props,function(i){switch(ib(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yo([$i(t,{props:[Re(i,/:(read-\w+)/,":"+us+"$1")]})],o);case"::placeholder":return Yo([$i(t,{props:[Re(i,/:(plac\w+)/,":"+ke+"input-$1")]}),$i(t,{props:[Re(i,/:(plac\w+)/,":"+us+"$1")]}),$i(t,{props:[Re(i,/:(plac\w+)/,Rt+"input-$1")]})],o)}return""})}},Eb=[Cb],M0=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(v){var S=v.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Eb,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var S=v.getAttribute("data-emotion").split(" "),p=1;p=4;++r,o-=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(o){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 jb={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},Ab=/[A-Z]|^ms/g,Db=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},Oh=function(t){return t!=null&&typeof t!="boolean"},mc=E0(function(e){return z0(e)?e:e.replace(Ab,"-$&").toLowerCase()}),Nh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Db,function(r,o,i){return Un={name:o,styles:i,next:Un},o})}return jb[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ra(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Un={name:n.name,styles:n.styles,next:Un},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Un={name:r.name,styles:r.styles,next:Un},r=r.next;var o=n.styles+";";return o}return zb(e,t,n)}case"function":{if(e!==void 0){var i=Un,a=n(e);return Un=i,Ra(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function zb(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Hb:Vb},zh=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Kb=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return A0(n,r,o),Bb(function(){return D0(n,r,o)}),null},Gb=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=zh(t,n,r),s=l||Dh(o),u=!s("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,b=1;bt(Yb(o)?n:o):t;return w.jsx(Wb,{styles:r})}function Xb(e,t){return Rd(e,t)}const Jb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Zb=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:V0,StyledEngineProvider:Qb,ThemeContext:Da,css:H0,default:Xb,internal_processStyles:Jb,keyframes:Zs},Symbol.toStringTag,{value:"Module"}));function Cr(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 K0(e){if(!Cr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=K0(e[n])}),t}function nn(e,t,n={clone:!0}){const r=n.clone?C({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Cr(t[o])&&o in e&&Cr(e[o])?r[o]=nn(e[o],t[o],n):n.clone?r[o]=Cr(t[o])?K0(t[o]):t[o]:r[o]=t[o])}),r}const ew=Object.freeze(Object.defineProperty({__proto__:null,default:nn,isPlainObject:Cr},Symbol.toStringTag,{value:"Module"})),tw=["values","unit","step"],nw=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)=>C({},n,{[r.key]:r.val}),{})};function G0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=q(e,tw),i=nw(t),a=Object.keys(i);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function c(d){return a.indexOf(d)+1`@media (min-width:${Gf[e]}px)`};function ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Fh;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Fh;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||Gf).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function iw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function aw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ne(e){if(typeof e!="string")throw new Error(co(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lw=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));function eu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function cs(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=eu(e,n)||r,t&&(o=t(o,r,e)),o}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=eu(s,r)||{};return ar(a,l,f=>{let d=cs(u,o,f);return f===d&&typeof f=="string"&&(d=cs(u,o,`${t}${f==="default"?"":ne(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes={},i.filterProps=[t],i}function sw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uw={m:"margin",p:"padding"},cw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dw=sw(e=>{if(e.length>2)if(Bh[e])e=Bh[e];else return[e];const[t,n]=e.split(""),r=uw[t],o=cw[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),qf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qf,...Qf];function za(e,t,n,r){var o;const i=(o=eu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function q0(e){return za(e,"spacing",8)}function Fa(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 fw(e,t){return n=>e.reduce((r,o)=>(r[o]=Fa(t,n),r),{})}function pw(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=dw(n),i=fw(o,r),a=e[n];return ar(e,a,i)}function Q0(e,t){const n=q0(e.theme);return Object.keys(e).map(r=>pw(e,t,r,n)).reduce(na,{})}function qe(e){return Q0(e,qf)}qe.propTypes={};qe.filterProps=qf;function Qe(e){return Q0(e,Qf)}Qe.propTypes={};Qe.filterProps=Qf;function hw(e=8){if(e.mui)return e;const t=q0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function tu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?na(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function bn(e,t){return it({prop:e,themeKey:"borders",transform:t})}const mw=bn("border",mn),vw=bn("borderTop",mn),gw=bn("borderRight",mn),yw=bn("borderBottom",mn),xw=bn("borderLeft",mn),Sw=bn("borderColor"),bw=bn("borderTopColor"),ww=bn("borderRightColor"),Cw=bn("borderBottomColor"),Ew=bn("borderLeftColor"),kw=bn("outline",mn),Rw=bn("outlineColor"),nu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=za(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Fa(t,r)});return ar(e,e.borderRadius,n)}return null};nu.propTypes={};nu.filterProps=["borderRadius"];tu(mw,vw,gw,yw,xw,Sw,bw,ww,Cw,Ew,nu,kw,Rw);const ru=e=>{if(e.gap!==void 0&&e.gap!==null){const t=za(e.theme,"spacing",8),n=r=>({gap:Fa(t,r)});return ar(e,e.gap,n)}return null};ru.propTypes={};ru.filterProps=["gap"];const ou=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=za(e.theme,"spacing",8),n=r=>({columnGap:Fa(t,r)});return ar(e,e.columnGap,n)}return null};ou.propTypes={};ou.filterProps=["columnGap"];const iu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=za(e.theme,"spacing",8),n=r=>({rowGap:Fa(t,r)});return ar(e,e.rowGap,n)}return null};iu.propTypes={};iu.filterProps=["rowGap"];const _w=it({prop:"gridColumn"}),Pw=it({prop:"gridRow"}),Tw=it({prop:"gridAutoFlow"}),$w=it({prop:"gridAutoColumns"}),Iw=it({prop:"gridAutoRows"}),Mw=it({prop:"gridTemplateColumns"}),Ow=it({prop:"gridTemplateRows"}),Nw=it({prop:"gridTemplateAreas"}),Lw=it({prop:"gridArea"});tu(ru,ou,iu,_w,Pw,Tw,$w,Iw,Mw,Ow,Nw,Lw);function Yo(e,t){return t==="grey"?t:e}const jw=it({prop:"color",themeKey:"palette",transform:Yo}),Aw=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yo}),Dw=it({prop:"backgroundColor",themeKey:"palette",transform:Yo});tu(jw,Aw,Dw);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const zw=it({prop:"width",transform:Jt}),Yf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Gf[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Jt(n)}};return ar(e,e.maxWidth,t)}return null};Yf.filterProps=["maxWidth"];const Fw=it({prop:"minWidth",transform:Jt}),Bw=it({prop:"height",transform:Jt}),Uw=it({prop:"maxHeight",transform:Jt}),Ww=it({prop:"minHeight",transform:Jt});it({prop:"size",cssProperty:"width",transform:Jt});it({prop:"size",cssProperty:"height",transform:Jt});const Hw=it({prop:"boxSizing"});tu(zw,Yf,Fw,Bw,Uw,Ww,Hw);const Vw={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nu},color:{themeKey:"palette",transform:Yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yo},backgroundColor:{themeKey:"palette",transform:Yo},p:{style:Qe},pt:{style:Qe},pr:{style:Qe},pb:{style:Qe},pl:{style:Qe},px:{style:Qe},py:{style:Qe},padding:{style:Qe},paddingTop:{style:Qe},paddingRight:{style:Qe},paddingBottom:{style:Qe},paddingLeft:{style:Qe},paddingX:{style:Qe},paddingY:{style:Qe},paddingInline:{style:Qe},paddingInlineStart:{style:Qe},paddingInlineEnd:{style:Qe},paddingBlock:{style:Qe},paddingBlockStart:{style:Qe},paddingBlockEnd:{style:Qe},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},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:ru},rowGap:{style:iu},columnGap:{style:ou},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Yf},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ba=Vw;function Kw(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gw(e,t){return typeof e=="function"?e(t):e}function Y0(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=eu(o,u)||{};return f?f(a):ar(a,r,g=>{let v=cs(d,c,g);return g===v&&typeof g=="string"&&(v=cs(d,c,`${n}${g==="default"?"":ne(g)}`,g)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ba;function l(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=iw(i.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(b=>{const g=Gw(u[b],i);if(g!=null)if(typeof g=="object")if(a[b])d=na(d,e(b,g,i,a));else{const v=ar({theme:i},g,S=>({[b]:S}));Kw(v,g)?d[b]=t({sx:g,theme:i}):d=na(d,v)}else d=na(d,e(b,g,i,a))}),aw(f,d)}return Array.isArray(o)?o.map(l):l(o)}return t}const au=Y0();au.filterProps=["sx"];function X0(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 qw=["breakpoints","palette","spacing","shape"];function Xf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=q(e,qw),l=G0(n),s=hw(o);let u=nn({breakpoints:l,direction:"ltr",components:{},palette:C({mode:"light"},r),spacing:s,shape:C({},ow,i)},a);return u.applyStyles=X0,u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=C({},Ba,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return au({sx:f,theme:this})},u}const Qw=Object.freeze(Object.defineProperty({__proto__:null,default:Xf,private_createBreakpoints:G0,unstable_applyStyles:X0},Symbol.toStringTag,{value:"Module"}));function Yw(e){return Object.keys(e).length===0}function J0(e=null){const t=y.useContext(Da);return!t||Yw(t)?e:t}const Xw=Xf();function Jf(e=Xw){return J0(e)}function Jw({styles:e,themeId:t,defaultTheme:n={}}){const r=Jf(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(V0,{styles:o})}const Zw=["sx"],eC=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ba;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Z0(e){const{sx:t}=e,n=q(e,Zw),{systemProps:r,otherProps:o}=eC(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Cr(l)?C({},r,l):r}:i=C({},r,t),C({},o,{sx:i})}const tC=Object.freeze(Object.defineProperty({__proto__:null,default:au,extendSxProp:Z0,unstable_createStyleFunctionSx:Y0,unstable_defaultSxConfig:Ba},Symbol.toStringTag,{value:"Module"})),Uh=e=>e,nC=()=>{let e=Uh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Uh}}},ey=nC();function ty(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=ve(e,o,n)}),r}var ny={exports:{}},Oe={};/** + */var gt=typeof Symbol=="function"&&Symbol.for,Hf=gt?Symbol.for("react.element"):60103,Vf=gt?Symbol.for("react.portal"):60106,Hs=gt?Symbol.for("react.fragment"):60107,Vs=gt?Symbol.for("react.strict_mode"):60108,Ks=gt?Symbol.for("react.profiler"):60114,Gs=gt?Symbol.for("react.provider"):60109,qs=gt?Symbol.for("react.context"):60110,Kf=gt?Symbol.for("react.async_mode"):60111,Qs=gt?Symbol.for("react.concurrent_mode"):60111,Ys=gt?Symbol.for("react.forward_ref"):60112,Xs=gt?Symbol.for("react.suspense"):60113,kb=gt?Symbol.for("react.suspense_list"):60120,Js=gt?Symbol.for("react.memo"):60115,Zs=gt?Symbol.for("react.lazy"):60116,Rb=gt?Symbol.for("react.block"):60121,_b=gt?Symbol.for("react.fundamental"):60117,Pb=gt?Symbol.for("react.responder"):60118,Tb=gt?Symbol.for("react.scope"):60119;function ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hf:switch(e=e.type,e){case Kf:case Qs:case Hs:case Ks:case Vs:case Xs:return e;default:switch(e=e&&e.$$typeof,e){case qs:case Ys:case Zs:case Js:case Gs:return e;default:return t}}case Vf:return t}}}function N0(e){return ln(e)===Qs}Me.AsyncMode=Kf;Me.ConcurrentMode=Qs;Me.ContextConsumer=qs;Me.ContextProvider=Gs;Me.Element=Hf;Me.ForwardRef=Ys;Me.Fragment=Hs;Me.Lazy=Zs;Me.Memo=Js;Me.Portal=Vf;Me.Profiler=Ks;Me.StrictMode=Vs;Me.Suspense=Xs;Me.isAsyncMode=function(e){return N0(e)||ln(e)===Kf};Me.isConcurrentMode=N0;Me.isContextConsumer=function(e){return ln(e)===qs};Me.isContextProvider=function(e){return ln(e)===Gs};Me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hf};Me.isForwardRef=function(e){return ln(e)===Ys};Me.isFragment=function(e){return ln(e)===Hs};Me.isLazy=function(e){return ln(e)===Zs};Me.isMemo=function(e){return ln(e)===Js};Me.isPortal=function(e){return ln(e)===Vf};Me.isProfiler=function(e){return ln(e)===Ks};Me.isStrictMode=function(e){return ln(e)===Vs};Me.isSuspense=function(e){return ln(e)===Xs};Me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hs||e===Qs||e===Ks||e===Vs||e===Xs||e===kb||typeof e=="object"&&e!==null&&(e.$$typeof===Zs||e.$$typeof===Js||e.$$typeof===Gs||e.$$typeof===qs||e.$$typeof===Ys||e.$$typeof===_b||e.$$typeof===Pb||e.$$typeof===Tb||e.$$typeof===Rb)};Me.typeOf=ln;O0.exports=Me;var $b=O0.exports,L0=$b,Ib={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j0={};j0[L0.ForwardRef]=Ib;j0[L0.Memo]=Mb;var Ob=!0;function Nb(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var A0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Ob===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},D0=function(t,n,r){A0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Lb(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 jb={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},Ab=/[A-Z]|^ms/g,Db=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},Nh=function(t){return t!=null&&typeof t!="boolean"},vc=E0(function(e){return z0(e)?e:e.replace(Ab,"-$&").toLowerCase()}),Lh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Db,function(r,o,i){return Un={name:o,styles:i,next:Un},o})}return jb[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n};function _a(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Un={name:n.name,styles:n.styles,next:Un},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Un={name:r.name,styles:r.styles,next:Un},r=r.next;var o=n.styles+";";return o}return zb(e,t,n)}case"function":{if(e!==void 0){var i=Un,a=n(e);return Un=i,_a(e,t,a)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function zb(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?Hb:Vb},Fh=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Kb=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return A0(n,r,o),Bb(function(){return D0(n,r,o)}),null},Gb=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=Fh(t,n,r),s=l||zh(o),u=!s("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,b=1;bt(Yb(o)?n:o):t;return w.jsx(Wb,{styles:r})}function Xb(e,t){return _d(e,t)}const Jb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Zb=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:V0,StyledEngineProvider:Qb,ThemeContext:za,css:H0,default:Xb,internal_processStyles:Jb,keyframes:eu},Symbol.toStringTag,{value:"Module"}));function Cr(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 K0(e){if(!Cr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=K0(e[n])}),t}function nn(e,t,n={clone:!0}){const r=n.clone?C({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Cr(t[o])&&o in e&&Cr(e[o])?r[o]=nn(e[o],t[o],n):n.clone?r[o]=Cr(t[o])?K0(t[o]):t[o]:r[o]=t[o])}),r}const ew=Object.freeze(Object.defineProperty({__proto__:null,default:nn,isPlainObject:Cr},Symbol.toStringTag,{value:"Module"})),tw=["values","unit","step"],nw=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)=>C({},n,{[r.key]:r.val}),{})};function G0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=q(e,tw),i=nw(t),a=Object.keys(i);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function c(d){return a.indexOf(d)+1`@media (min-width:${qf[e]}px)`};function ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Bh;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Bh;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||qf).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function iw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function aw(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ne(e){if(typeof e!="string")throw new Error(co(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lw=Object.freeze(Object.defineProperty({__proto__:null,default:ne},Symbol.toStringTag,{value:"Module"}));function tu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function cs(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=tu(e,n)||r,t&&(o=t(o,r,e)),o}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=tu(s,r)||{};return ar(a,l,f=>{let d=cs(u,o,f);return f===d&&typeof f=="string"&&(d=cs(u,o,`${t}${f==="default"?"":ne(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes={},i.filterProps=[t],i}function sw(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uw={m:"margin",p:"padding"},cw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dw=sw(e=>{if(e.length>2)if(Uh[e])e=Uh[e];else return[e];const[t,n]=e.split(""),r=uw[t],o=cw[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Qf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Qf,...Yf];function Fa(e,t,n,r){var o;const i=(o=tu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function q0(e){return Fa(e,"spacing",8)}function Ba(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 fw(e,t){return n=>e.reduce((r,o)=>(r[o]=Ba(t,n),r),{})}function pw(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=dw(n),i=fw(o,r),a=e[n];return ar(e,a,i)}function Q0(e,t){const n=q0(e.theme);return Object.keys(e).map(r=>pw(e,t,r,n)).reduce(ra,{})}function qe(e){return Q0(e,Qf)}qe.propTypes={};qe.filterProps=Qf;function Qe(e){return Q0(e,Yf)}Qe.propTypes={};Qe.filterProps=Yf;function hw(e=8){if(e.mui)return e;const t=q0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function nu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ra(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function vn(e){return typeof e!="number"?e:`${e}px solid`}function wn(e,t){return it({prop:e,themeKey:"borders",transform:t})}const mw=wn("border",vn),vw=wn("borderTop",vn),gw=wn("borderRight",vn),yw=wn("borderBottom",vn),xw=wn("borderLeft",vn),Sw=wn("borderColor"),bw=wn("borderTopColor"),ww=wn("borderRightColor"),Cw=wn("borderBottomColor"),Ew=wn("borderLeftColor"),kw=wn("outline",vn),Rw=wn("outlineColor"),ru=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fa(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ba(t,r)});return ar(e,e.borderRadius,n)}return null};ru.propTypes={};ru.filterProps=["borderRadius"];nu(mw,vw,gw,yw,xw,Sw,bw,ww,Cw,Ew,ru,kw,Rw);const ou=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fa(e.theme,"spacing",8),n=r=>({gap:Ba(t,r)});return ar(e,e.gap,n)}return null};ou.propTypes={};ou.filterProps=["gap"];const iu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fa(e.theme,"spacing",8),n=r=>({columnGap:Ba(t,r)});return ar(e,e.columnGap,n)}return null};iu.propTypes={};iu.filterProps=["columnGap"];const au=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fa(e.theme,"spacing",8),n=r=>({rowGap:Ba(t,r)});return ar(e,e.rowGap,n)}return null};au.propTypes={};au.filterProps=["rowGap"];const _w=it({prop:"gridColumn"}),Pw=it({prop:"gridRow"}),Tw=it({prop:"gridAutoFlow"}),$w=it({prop:"gridAutoColumns"}),Iw=it({prop:"gridAutoRows"}),Mw=it({prop:"gridTemplateColumns"}),Ow=it({prop:"gridTemplateRows"}),Nw=it({prop:"gridTemplateAreas"}),Lw=it({prop:"gridArea"});nu(ou,iu,au,_w,Pw,Tw,$w,Iw,Mw,Ow,Nw,Lw);function Xo(e,t){return t==="grey"?t:e}const jw=it({prop:"color",themeKey:"palette",transform:Xo}),Aw=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xo}),Dw=it({prop:"backgroundColor",themeKey:"palette",transform:Xo});nu(jw,Aw,Dw);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const zw=it({prop:"width",transform:Jt}),Xf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||qf[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Jt(n)}};return ar(e,e.maxWidth,t)}return null};Xf.filterProps=["maxWidth"];const Fw=it({prop:"minWidth",transform:Jt}),Bw=it({prop:"height",transform:Jt}),Uw=it({prop:"maxHeight",transform:Jt}),Ww=it({prop:"minHeight",transform:Jt});it({prop:"size",cssProperty:"width",transform:Jt});it({prop:"size",cssProperty:"height",transform:Jt});const Hw=it({prop:"boxSizing"});nu(zw,Xf,Fw,Bw,Uw,Ww,Hw);const Vw={border:{themeKey:"borders",transform:vn},borderTop:{themeKey:"borders",transform:vn},borderRight:{themeKey:"borders",transform:vn},borderBottom:{themeKey:"borders",transform:vn},borderLeft:{themeKey:"borders",transform:vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ru},color:{themeKey:"palette",transform:Xo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xo},backgroundColor:{themeKey:"palette",transform:Xo},p:{style:Qe},pt:{style:Qe},pr:{style:Qe},pb:{style:Qe},pl:{style:Qe},px:{style:Qe},py:{style:Qe},padding:{style:Qe},paddingTop:{style:Qe},paddingRight:{style:Qe},paddingBottom:{style:Qe},paddingLeft:{style:Qe},paddingX:{style:Qe},paddingY:{style:Qe},paddingInline:{style:Qe},paddingInlineStart:{style:Qe},paddingInlineEnd:{style:Qe},paddingBlock:{style:Qe},paddingBlockStart:{style:Qe},paddingBlockEnd:{style:Qe},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},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:ou},rowGap:{style:au},columnGap:{style:iu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:Xf},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ua=Vw;function Kw(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Gw(e,t){return typeof e=="function"?e(t):e}function Y0(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=tu(o,u)||{};return f?f(a):ar(a,r,g=>{let v=cs(d,c,g);return g===v&&typeof g=="string"&&(v=cs(d,c,`${n}${g==="default"?"":ne(g)}`,g)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Ua;function l(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=iw(i.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(b=>{const g=Gw(u[b],i);if(g!=null)if(typeof g=="object")if(a[b])d=ra(d,e(b,g,i,a));else{const v=ar({theme:i},g,S=>({[b]:S}));Kw(v,g)?d[b]=t({sx:g,theme:i}):d=ra(d,v)}else d=ra(d,e(b,g,i,a))}),aw(f,d)}return Array.isArray(o)?o.map(l):l(o)}return t}const lu=Y0();lu.filterProps=["sx"];function X0(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 qw=["breakpoints","palette","spacing","shape"];function Jf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=q(e,qw),l=G0(n),s=hw(o);let u=nn({breakpoints:l,direction:"ltr",components:{},palette:C({mode:"light"},r),spacing:s,shape:C({},ow,i)},a);return u.applyStyles=X0,u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=C({},Ua,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return lu({sx:f,theme:this})},u}const Qw=Object.freeze(Object.defineProperty({__proto__:null,default:Jf,private_createBreakpoints:G0,unstable_applyStyles:X0},Symbol.toStringTag,{value:"Module"}));function Yw(e){return Object.keys(e).length===0}function J0(e=null){const t=y.useContext(za);return!t||Yw(t)?e:t}const Xw=Jf();function Zf(e=Xw){return J0(e)}function Jw({styles:e,themeId:t,defaultTheme:n={}}){const r=Zf(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(V0,{styles:o})}const Zw=["sx"],eC=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ua;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Z0(e){const{sx:t}=e,n=q(e,Zw),{systemProps:r,otherProps:o}=eC(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Cr(l)?C({},r,l):r}:i=C({},r,t),C({},o,{sx:i})}const tC=Object.freeze(Object.defineProperty({__proto__:null,default:lu,extendSxProp:Z0,unstable_createStyleFunctionSx:Y0,unstable_defaultSxConfig:Ua},Symbol.toStringTag,{value:"Module"})),Wh=e=>e,nC=()=>{let e=Wh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wh}}},ey=nC();function ty(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=ve(e,o,n)}),r}var ny={exports:{}},Oe={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zf=Symbol.for("react.element"),ep=Symbol.for("react.portal"),lu=Symbol.for("react.fragment"),su=Symbol.for("react.strict_mode"),uu=Symbol.for("react.profiler"),cu=Symbol.for("react.provider"),du=Symbol.for("react.context"),oC=Symbol.for("react.server_context"),fu=Symbol.for("react.forward_ref"),pu=Symbol.for("react.suspense"),hu=Symbol.for("react.suspense_list"),mu=Symbol.for("react.memo"),vu=Symbol.for("react.lazy"),iC=Symbol.for("react.offscreen"),ry;ry=Symbol.for("react.module.reference");function wn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zf:switch(e=e.type,e){case lu:case uu:case su:case pu:case hu:return e;default:switch(e=e&&e.$$typeof,e){case oC:case du:case fu:case vu:case mu:case cu:return e;default:return t}}case ep:return t}}}Oe.ContextConsumer=du;Oe.ContextProvider=cu;Oe.Element=Zf;Oe.ForwardRef=fu;Oe.Fragment=lu;Oe.Lazy=vu;Oe.Memo=mu;Oe.Portal=ep;Oe.Profiler=uu;Oe.StrictMode=su;Oe.Suspense=pu;Oe.SuspenseList=hu;Oe.isAsyncMode=function(){return!1};Oe.isConcurrentMode=function(){return!1};Oe.isContextConsumer=function(e){return wn(e)===du};Oe.isContextProvider=function(e){return wn(e)===cu};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zf};Oe.isForwardRef=function(e){return wn(e)===fu};Oe.isFragment=function(e){return wn(e)===lu};Oe.isLazy=function(e){return wn(e)===vu};Oe.isMemo=function(e){return wn(e)===mu};Oe.isPortal=function(e){return wn(e)===ep};Oe.isProfiler=function(e){return wn(e)===uu};Oe.isStrictMode=function(e){return wn(e)===su};Oe.isSuspense=function(e){return wn(e)===pu};Oe.isSuspenseList=function(e){return wn(e)===hu};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lu||e===uu||e===su||e===pu||e===hu||e===iC||typeof e=="object"&&e!==null&&(e.$$typeof===vu||e.$$typeof===mu||e.$$typeof===cu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===ry||e.getModuleId!==void 0)};Oe.typeOf=wn;ny.exports=Oe;var Wh=ny.exports;const aC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oy(e){const t=`${e}`.match(aC);return t&&t[1]||""}function iy(e,t=""){return e.displayName||e.name||oy(e)||t}function Hh(e,t,n){const r=iy(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Wh.ForwardRef:return Hh(e,e.render,"ForwardRef");case Wh.Memo:return Hh(e,e.type,"memo");default:return}}}const sC=Object.freeze(Object.defineProperty({__proto__:null,default:lC,getFunctionName:oy},Symbol.toStringTag,{value:"Module"}));function tp(e,t){const n=C({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=C({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=C({},i),Object.keys(o).forEach(a=>{n[r][a]=tp(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function uC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:tp(t.components[n].defaultProps,r)}function cC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Jf(n);return r&&(o=o[r]||o),uC({theme:o,name:t,props:e})}const On=typeof window<"u"?y.useLayoutEffect:y.useEffect;function dC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const fC=Object.freeze(Object.defineProperty({__proto__:null,default:dC},Symbol.toStringTag,{value:"Module"}));function Pd(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function gu(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function pC(e,t){return()=>null}function ra(e,t){var n,r;return y.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 Kt(e){return e&&e.ownerDocument||document}function Qn(e){return Kt(e).defaultView||window}function hC(e,t){return()=>null}function ds(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Vh=0;function mC(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{t==null&&(Vh+=1,n(`mui-${Vh}`))},[t]),r}const Kh=Dl.useId;function np(e){if(Kh!==void 0){const t=Kh();return e??t}return mC(e)}function vC(e,t,n,r,o){return null}function Td({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(e!==void 0),[i,a]=y.useState(t),l=o?e:i,s=y.useCallback(u=>{o||a(u)},[]);return[l,s]}function Jr(e){const t=y.useRef(e);return On(()=>{t.current=e}),y.useRef((...n)=>(0,t.current)(...n)).current}function ot(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ds(n,t)})},e)}const Gh={};function gC(e,t){const n=y.useRef(Gh);return n.current===Gh&&(n.current=e(t)),n}const yC=[];function xC(e){y.useEffect(e,yC)}class yu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new yu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function rp(){const e=gC(yu.create).current;return xC(e.disposeEffect),e}let xu=!0,$d=!1;const SC=new yu,bC={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 wC(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&bC[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function CC(e){e.metaKey||e.altKey||e.ctrlKey||(xu=!0)}function gc(){xu=!1}function EC(){this.visibilityState==="hidden"&&$d&&(xu=!0)}function kC(e){e.addEventListener("keydown",CC,!0),e.addEventListener("mousedown",gc,!0),e.addEventListener("pointerdown",gc,!0),e.addEventListener("touchstart",gc,!0),e.addEventListener("visibilitychange",EC,!0)}function RC(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return xu||wC(t)}function ay(){const e=y.useCallback(o=>{o!=null&&kC(o.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?($d=!0,SC.start(100,()=>{$d=!1}),t.current=!1,!0):!1}function r(o){return RC(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ly(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ye(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const _C=y.createContext(null),sy=_C;function uy(){return y.useContext(sy)}const PC=typeof Symbol=="function"&&Symbol.for,TC=PC?Symbol.for("mui.nested"):"__THEME_NESTED__";function $C(e,t){return typeof t=="function"?t(e):C({},e,t)}function IC(e){const{children:t,theme:n}=e,r=uy(),o=y.useMemo(()=>{const i=r===null?n:$C(r,n);return i!=null&&(i[TC]=r!==null),i},[n,r]);return w.jsx(sy.Provider,{value:o,children:t})}const MC=["value"],cy=y.createContext();function OC(e){let{value:t}=e,n=q(e,MC);return w.jsx(cy.Provider,C({value:t??!0},n))}const dy=()=>{const e=y.useContext(cy);return e??!1},qh={};function Qh(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?C({},t,{[e]:i}):i;return r?()=>a:a}return e?C({},t,{[e]:n}):C({},t,n)},[e,t,n,r])}function NC(e){const{children:t,theme:n,themeId:r}=e,o=J0(qh),i=uy()||qh,a=Qh(r,o,n),l=Qh(r,i,n,!0),s=a.direction==="rtl";return w.jsx(IC,{theme:l,children:w.jsx(Da.Provider,{value:a,children:w.jsx(OC,{value:s,children:t})})})}function LC(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var at={},fy={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})(fy);var op=fy.exports;const jC=lr(qS),AC=lr(fC);var py=op;Object.defineProperty(at,"__esModule",{value:!0});var rt=at.alpha=gy;at.blend=qC;at.colorChannel=void 0;var Id=at.darken=ap;at.decomposeColor=Sn;at.emphasize=yy;var DC=at.getContrastRatio=WC;at.getLuminance=fs;at.hexToRgb=hy;at.hslToRgb=vy;var Md=at.lighten=lp;at.private_safeAlpha=HC;at.private_safeColorChannel=void 0;at.private_safeDarken=VC;at.private_safeEmphasize=GC;at.private_safeLighten=KC;at.recomposeColor=hi;at.rgbToHex=UC;var Yh=py(jC),zC=py(AC);function ip(e,t=0,n=1){return(0,zC.default)(e,t,n)}function hy(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function FC(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Sn(e){if(e.type)return e;if(e.charAt(0)==="#")return Sn(hy(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Yh.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error((0,Yh.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const my=e=>{const t=Sn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};at.colorChannel=my;const BC=(e,t)=>{try{return my(e)}catch{return e}};at.private_safeColorChannel=BC;function hi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):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 UC(e){if(e.indexOf("#")===0)return e;const{values:t}=Sn(e);return`#${t.map((n,r)=>FC(r===3?Math.round(255*n):n)).join("")}`}function vy(e){e=Sn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),hi({type:l,values:s})}function fs(e){e=Sn(e);let t=e.type==="hsl"||e.type==="hsla"?Sn(vy(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 WC(e,t){const n=fs(e),r=fs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gy(e,t){return e=Sn(e),t=ip(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hi(e)}function HC(e,t,n){try{return gy(e,t)}catch{return e}}function ap(e,t){if(e=Sn(e),t=ip(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 hi(e)}function VC(e,t,n){try{return ap(e,t)}catch{return e}}function lp(e,t){if(e=Sn(e),t=ip(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 hi(e)}function KC(e,t,n){try{return lp(e,t)}catch{return e}}function yy(e,t=.15){return fs(e)>.5?ap(e,t):lp(e,t)}function GC(e,t,n){try{return yy(e,t)}catch{return e}}function qC(e,t,n,r=1){const o=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=Sn(e),a=Sn(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return hi({type:"rgb",values:l})}const QC={black:"#000",white:"#fff"},_a=QC,YC={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"},XC=YC,JC={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"},So=JC,ZC={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"},bo=ZC,eE={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"},$i=eE,tE={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"},wo=tE,nE={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"},Co=nE,rE={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"},Eo=rE,oE=["mode","contrastThreshold","tonalOffset"],Xh={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:_a.white,default:_a.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}},yc={text:{primary:_a.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:_a.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 Jh(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Md(e.main,o):t==="dark"&&(e.dark=Id(e.main,i)))}function iE(e="light"){return e==="dark"?{main:wo[200],light:wo[50],dark:wo[400]}:{main:wo[700],light:wo[400],dark:wo[800]}}function aE(e="light"){return e==="dark"?{main:So[200],light:So[50],dark:So[400]}:{main:So[500],light:So[300],dark:So[700]}}function lE(e="light"){return e==="dark"?{main:bo[500],light:bo[300],dark:bo[700]}:{main:bo[700],light:bo[400],dark:bo[800]}}function sE(e="light"){return e==="dark"?{main:Co[400],light:Co[300],dark:Co[700]}:{main:Co[700],light:Co[500],dark:Co[900]}}function uE(e="light"){return e==="dark"?{main:Eo[400],light:Eo[300],dark:Eo[700]}:{main:Eo[800],light:Eo[500],dark:Eo[900]}}function cE(e="light"){return e==="dark"?{main:$i[400],light:$i[300],dark:$i[700]}:{main:"#ed6c02",light:$i[500],dark:$i[900]}}function dE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=q(e,oE),i=e.primary||iE(t),a=e.secondary||aE(t),l=e.error||lE(t),s=e.info||sE(t),u=e.success||uE(t),c=e.warning||cE(t);function f(v){return DC(v,yc.text.primary)>=n?yc.text.primary:Xh.text.primary}const d=({color:v,name:S,mainShade:p=500,lightShade:h=300,darkShade:m=700})=>{if(v=C({},v),!v.main&&v[p]&&(v.main=v[p]),!v.hasOwnProperty("main"))throw new Error(co(11,S?` (${S})`:"",p));if(typeof v.main!="string")throw new Error(co(12,S?` (${S})`:"",JSON.stringify(v.main)));return Jh(v,"light",h,r),Jh(v,"dark",m,r),v.contrastText||(v.contrastText=f(v.main)),v},b={dark:yc,light:Xh};return nn(C({common:C({},_a),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:u,name:"success"}),grey:XC,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},b[t]),o)}const fE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pE(e){return Math.round(e*1e5)/1e5}const Zh={textTransform:"uppercase"},em='"Roboto", "Helvetica", "Arial", sans-serif';function hE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=em,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,d=q(n,fE),b=o/14,g=f||(p=>`${p/u*b}rem`),v=(p,h,m,E,R)=>C({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:m},r===em?{letterSpacing:`${pE(E/h)}em`}:{},R,c),S={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(l,14,1.75,.4,Zh),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,Zh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(C({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},S),d,{clone:!1})}const mE=.2,vE=.14,gE=.12;function Ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gE})`].join(",")}const yE=["none",Ue(0,2,1,-1,0,1,1,0,0,1,3,0),Ue(0,3,1,-2,0,2,2,0,0,1,5,0),Ue(0,3,3,-2,0,3,4,0,0,1,8,0),Ue(0,2,4,-1,0,4,5,0,0,1,10,0),Ue(0,3,5,-1,0,5,8,0,0,1,14,0),Ue(0,3,5,-1,0,6,10,0,0,1,18,0),Ue(0,4,5,-2,0,7,10,1,0,2,16,1),Ue(0,5,5,-3,0,8,10,1,0,3,14,2),Ue(0,5,6,-3,0,9,12,1,0,3,16,2),Ue(0,6,6,-3,0,10,14,1,0,4,18,3),Ue(0,6,7,-4,0,11,15,1,0,4,20,3),Ue(0,7,8,-4,0,12,17,2,0,5,22,4),Ue(0,7,8,-4,0,13,19,2,0,5,24,4),Ue(0,7,9,-4,0,14,21,2,0,5,26,4),Ue(0,8,9,-5,0,15,22,2,0,6,28,5),Ue(0,8,10,-5,0,16,24,2,0,6,30,5),Ue(0,8,11,-5,0,17,26,2,0,6,32,5),Ue(0,9,11,-5,0,18,28,2,0,7,34,6),Ue(0,9,12,-6,0,19,29,2,0,7,36,6),Ue(0,10,13,-6,0,20,31,3,0,8,38,7),Ue(0,10,13,-6,0,21,33,3,0,8,40,7),Ue(0,10,14,-6,0,22,35,3,0,8,42,7),Ue(0,11,14,-7,0,23,36,3,0,9,44,8),Ue(0,11,15,-7,0,24,38,3,0,9,46,8)],xE=["duration","easing","delay"],SE={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)"},xy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tm(e){return`${Math.round(e)}ms`}function bE(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function wE(e){const t=C({},SE,e.easing),n=C({},xy,e.duration);return C({getAutoHeightDuration:bE,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:s=0}=i;return q(i,xE),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:tm(a)} ${l} ${typeof s=="string"?s:tm(s)}`).join(",")}},e,{easing:t,duration:n})}const CE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EE=CE,kE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=q(e,kE);if(e.vars)throw new Error(co(18));const l=dE(r),s=Xf(e);let u=nn(s,{mixins:LC(s.breakpoints,n),palette:l,shadows:yE.slice(),typography:hE(l,i),transitions:wE(o),zIndex:C({},EE)});return u=nn(u,a),u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=C({},Ba,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return au({sx:f,theme:this})},u}const RE=Sy(),Su=RE;function Ua(){const e=Jf(Su);return e[oi]||e}function xe({props:e,name:t}){return cC({props:e,name:t,defaultTheme:Su,themeId:oi})}var Wa={},xc={exports:{}},nm;function _E(){return nm||(nm=1,function(e){function t(n,r){if(n==null)return{};var o={},i=Object.keys(n),a,l;for(l=0;l=0)&&(o[a]=n[a]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(xc)),xc.exports}const PE=lr(Zb),TE=lr(ew),$E=lr(lw),IE=lr(sC),ME=lr(Qw),OE=lr(tC);var mi=op;Object.defineProperty(Wa,"__esModule",{value:!0});var NE=Wa.default=GE;Wa.shouldForwardProp=jl;Wa.systemDefaultTheme=void 0;var cn=mi(W0()),Od=mi(_E()),rm=BE(PE),LE=TE;mi($E);mi(IE);var jE=mi(ME),AE=mi(OE);const DE=["ownerState"],zE=["variants"],FE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function by(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(by=function(r){return r?n:t})(e)}function BE(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=by(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function UE(e){return Object.keys(e).length===0}function WE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const HE=Wa.systemDefaultTheme=(0,jE.default)(),VE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ml({defaultTheme:e,theme:t,themeId:n}){return UE(t)?e:t[n]||t}function KE(e){return e?(t,n)=>n[e]:null}function Al(e,t){let{ownerState:n}=t,r=(0,Od.default)(t,DE);const o=typeof e=="function"?e((0,cn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Al(i,(0,cn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,Od.default)(o,zE);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,cn.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style((0,cn.default)({ownerState:n},r,n)):s.style))}),l}return o}function GE(e={}){const{themeId:t,defaultTheme:n=HE,rootShouldForwardProp:r=jl,slotShouldForwardProp:o=jl}=e,i=a=>(0,AE.default)((0,cn.default)({},a,{theme:ml((0,cn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{(0,rm.internal_processStyles)(a,R=>R.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=KE(VE(u))}=l,b=(0,Od.default)(l,FE),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let S,p=jl;u==="Root"||u==="root"?p=r:u?p=o:WE(a)&&(p=void 0);const h=(0,rm.default)(a,(0,cn.default)({shouldForwardProp:p,label:S},b)),m=R=>typeof R=="function"&&R.__emotion_real!==R||(0,LE.isPlainObject)(R)?x=>Al(R,(0,cn.default)({},x,{theme:ml({theme:x.theme,defaultTheme:n,themeId:t})})):R,E=(R,...x)=>{let k=m(R);const T=x?x.map(m):[];s&&d&&T.push(N=>{const F=ml((0,cn.default)({},N,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const j=F.components[s].styleOverrides,A={};return Object.entries(j).forEach(([B,U])=>{A[B]=Al(U,(0,cn.default)({},N,{theme:F}))}),d(N,A)}),s&&!g&&T.push(N=>{var F;const j=ml((0,cn.default)({},N,{defaultTheme:n,themeId:t})),A=j==null||(F=j.components)==null||(F=F[s])==null?void 0:F.variants;return Al({variants:A},(0,cn.default)({},N,{theme:j}))}),v||T.push(i);const M=T.length-x.length;if(Array.isArray(R)&&M>0){const N=new Array(M).fill("");k=[...R,...N],k.raw=[...R.raw,...N]}const I=h(k,...T);return a.muiName&&(I.muiName=a.muiName),I};return h.withConfig&&(E.withConfig=h.withConfig),E}}function wy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qE=e=>wy(e)&&e!=="classes",qt=qE,K=NE({themeId:oi,defaultTheme:Su,rootShouldForwardProp:qt}),QE=["theme"];function YE(e){let{theme:t}=e,n=q(e,QE);const r=t[oi];return w.jsx(NC,C({},n,{themeId:r?oi:void 0,theme:r||t}))}const om=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};/** + */var ep=Symbol.for("react.element"),tp=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),uu=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),du=Symbol.for("react.provider"),fu=Symbol.for("react.context"),oC=Symbol.for("react.server_context"),pu=Symbol.for("react.forward_ref"),hu=Symbol.for("react.suspense"),mu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),gu=Symbol.for("react.lazy"),iC=Symbol.for("react.offscreen"),ry;ry=Symbol.for("react.module.reference");function Cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ep:switch(e=e.type,e){case su:case cu:case uu:case hu:case mu:return e;default:switch(e=e&&e.$$typeof,e){case oC:case fu:case pu:case gu:case vu:case du:return e;default:return t}}case tp:return t}}}Oe.ContextConsumer=fu;Oe.ContextProvider=du;Oe.Element=ep;Oe.ForwardRef=pu;Oe.Fragment=su;Oe.Lazy=gu;Oe.Memo=vu;Oe.Portal=tp;Oe.Profiler=cu;Oe.StrictMode=uu;Oe.Suspense=hu;Oe.SuspenseList=mu;Oe.isAsyncMode=function(){return!1};Oe.isConcurrentMode=function(){return!1};Oe.isContextConsumer=function(e){return Cn(e)===fu};Oe.isContextProvider=function(e){return Cn(e)===du};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ep};Oe.isForwardRef=function(e){return Cn(e)===pu};Oe.isFragment=function(e){return Cn(e)===su};Oe.isLazy=function(e){return Cn(e)===gu};Oe.isMemo=function(e){return Cn(e)===vu};Oe.isPortal=function(e){return Cn(e)===tp};Oe.isProfiler=function(e){return Cn(e)===cu};Oe.isStrictMode=function(e){return Cn(e)===uu};Oe.isSuspense=function(e){return Cn(e)===hu};Oe.isSuspenseList=function(e){return Cn(e)===mu};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===cu||e===uu||e===hu||e===mu||e===iC||typeof e=="object"&&e!==null&&(e.$$typeof===gu||e.$$typeof===vu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===pu||e.$$typeof===ry||e.getModuleId!==void 0)};Oe.typeOf=Cn;ny.exports=Oe;var Hh=ny.exports;const aC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oy(e){const t=`${e}`.match(aC);return t&&t[1]||""}function iy(e,t=""){return e.displayName||e.name||oy(e)||t}function Vh(e,t,n){const r=iy(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lC(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iy(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hh.ForwardRef:return Vh(e,e.render,"ForwardRef");case Hh.Memo:return Vh(e,e.type,"memo");default:return}}}const sC=Object.freeze(Object.defineProperty({__proto__:null,default:lC,getFunctionName:oy},Symbol.toStringTag,{value:"Module"}));function np(e,t){const n=C({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=C({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=C({},i),Object.keys(o).forEach(a=>{n[r][a]=np(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function uC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:np(t.components[n].defaultProps,r)}function cC({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zf(n);return r&&(o=o[r]||o),uC({theme:o,name:t,props:e})}const Nn=typeof window<"u"?y.useLayoutEffect:y.useEffect;function dC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const fC=Object.freeze(Object.defineProperty({__proto__:null,default:dC},Symbol.toStringTag,{value:"Module"}));function Td(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function yu(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function pC(e,t){return()=>null}function oa(e,t){var n,r;return y.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 Kt(e){return e&&e.ownerDocument||document}function Qn(e){return Kt(e).defaultView||window}function hC(e,t){return()=>null}function ds(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Kh=0;function mC(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{t==null&&(Kh+=1,n(`mui-${Kh}`))},[t]),r}const Gh=Dl.useId;function rp(e){if(Gh!==void 0){const t=Gh();return e??t}return mC(e)}function vC(e,t,n,r,o){return null}function $d({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(e!==void 0),[i,a]=y.useState(t),l=o?e:i,s=y.useCallback(u=>{o||a(u)},[]);return[l,s]}function Jr(e){const t=y.useRef(e);return Nn(()=>{t.current=e}),y.useRef((...n)=>(0,t.current)(...n)).current}function ot(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ds(n,t)})},e)}const qh={};function gC(e,t){const n=y.useRef(qh);return n.current===qh&&(n.current=e(t)),n}const yC=[];function xC(e){y.useEffect(e,yC)}class xu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function op(){const e=gC(xu.create).current;return xC(e.disposeEffect),e}let Su=!0,Id=!1;const SC=new xu,bC={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 wC(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&bC[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function CC(e){e.metaKey||e.altKey||e.ctrlKey||(Su=!0)}function yc(){Su=!1}function EC(){this.visibilityState==="hidden"&&Id&&(Su=!0)}function kC(e){e.addEventListener("keydown",CC,!0),e.addEventListener("mousedown",yc,!0),e.addEventListener("pointerdown",yc,!0),e.addEventListener("touchstart",yc,!0),e.addEventListener("visibilitychange",EC,!0)}function RC(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Su||wC(t)}function ay(){const e=y.useCallback(o=>{o!=null&&kC(o.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?(Id=!0,SC.start(100,()=>{Id=!1}),t.current=!1,!0):!1}function r(o){return RC(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ly(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const _C=y.createContext(null),sy=_C;function uy(){return y.useContext(sy)}const PC=typeof Symbol=="function"&&Symbol.for,TC=PC?Symbol.for("mui.nested"):"__THEME_NESTED__";function $C(e,t){return typeof t=="function"?t(e):C({},e,t)}function IC(e){const{children:t,theme:n}=e,r=uy(),o=y.useMemo(()=>{const i=r===null?n:$C(r,n);return i!=null&&(i[TC]=r!==null),i},[n,r]);return w.jsx(sy.Provider,{value:o,children:t})}const MC=["value"],cy=y.createContext();function OC(e){let{value:t}=e,n=q(e,MC);return w.jsx(cy.Provider,C({value:t??!0},n))}const dy=()=>{const e=y.useContext(cy);return e??!1},Qh={};function Yh(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?C({},t,{[e]:i}):i;return r?()=>a:a}return e?C({},t,{[e]:n}):C({},t,n)},[e,t,n,r])}function NC(e){const{children:t,theme:n,themeId:r}=e,o=J0(Qh),i=uy()||Qh,a=Yh(r,o,n),l=Yh(r,i,n,!0),s=a.direction==="rtl";return w.jsx(IC,{theme:l,children:w.jsx(za.Provider,{value:a,children:w.jsx(OC,{value:s,children:t})})})}function LC(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var at={},fy={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})(fy);var ip=fy.exports;const jC=lr(qS),AC=lr(fC);var py=ip;Object.defineProperty(at,"__esModule",{value:!0});var rt=at.alpha=gy;at.blend=qC;at.colorChannel=void 0;var Md=at.darken=lp;at.decomposeColor=bn;at.emphasize=yy;var DC=at.getContrastRatio=WC;at.getLuminance=fs;at.hexToRgb=hy;at.hslToRgb=vy;var Od=at.lighten=sp;at.private_safeAlpha=HC;at.private_safeColorChannel=void 0;at.private_safeDarken=VC;at.private_safeEmphasize=GC;at.private_safeLighten=KC;at.recomposeColor=mi;at.rgbToHex=UC;var Xh=py(jC),zC=py(AC);function ap(e,t=0,n=1){return(0,zC.default)(e,t,n)}function hy(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function FC(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function bn(e){if(e.type)return e;if(e.charAt(0)==="#")return bn(hy(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Xh.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o)===-1)throw new Error((0,Xh.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const my=e=>{const t=bn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};at.colorChannel=my;const BC=(e,t)=>{try{return my(e)}catch{return e}};at.private_safeColorChannel=BC;function mi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):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 UC(e){if(e.indexOf("#")===0)return e;const{values:t}=bn(e);return`#${t.map((n,r)=>FC(r===3?Math.round(255*n):n)).join("")}`}function vy(e){e=bn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const s=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),mi({type:l,values:s})}function fs(e){e=bn(e);let t=e.type==="hsl"||e.type==="hsla"?bn(vy(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 WC(e,t){const n=fs(e),r=fs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gy(e,t){return e=bn(e),t=ap(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mi(e)}function HC(e,t,n){try{return gy(e,t)}catch{return e}}function lp(e,t){if(e=bn(e),t=ap(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 mi(e)}function VC(e,t,n){try{return lp(e,t)}catch{return e}}function sp(e,t){if(e=bn(e),t=ap(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 mi(e)}function KC(e,t,n){try{return sp(e,t)}catch{return e}}function yy(e,t=.15){return fs(e)>.5?lp(e,t):sp(e,t)}function GC(e,t,n){try{return yy(e,t)}catch{return e}}function qC(e,t,n,r=1){const o=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=bn(e),a=bn(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return mi({type:"rgb",values:l})}const QC={black:"#000",white:"#fff"},Pa=QC,YC={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"},XC=YC,JC={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"},bo=JC,ZC={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"},wo=ZC,eE={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"},Ii=eE,tE={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"},Co=tE,nE={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"},Eo=nE,rE={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"},ko=rE,oE=["mode","contrastThreshold","tonalOffset"],Jh={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:Pa.white,default:Pa.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}},xc={text:{primary:Pa.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:Pa.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 Zh(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Od(e.main,o):t==="dark"&&(e.dark=Md(e.main,i)))}function iE(e="light"){return e==="dark"?{main:Co[200],light:Co[50],dark:Co[400]}:{main:Co[700],light:Co[400],dark:Co[800]}}function aE(e="light"){return e==="dark"?{main:bo[200],light:bo[50],dark:bo[400]}:{main:bo[500],light:bo[300],dark:bo[700]}}function lE(e="light"){return e==="dark"?{main:wo[500],light:wo[300],dark:wo[700]}:{main:wo[700],light:wo[400],dark:wo[800]}}function sE(e="light"){return e==="dark"?{main:Eo[400],light:Eo[300],dark:Eo[700]}:{main:Eo[700],light:Eo[500],dark:Eo[900]}}function uE(e="light"){return e==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:ko[800],light:ko[500],dark:ko[900]}}function cE(e="light"){return e==="dark"?{main:Ii[400],light:Ii[300],dark:Ii[700]}:{main:"#ed6c02",light:Ii[500],dark:Ii[900]}}function dE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=q(e,oE),i=e.primary||iE(t),a=e.secondary||aE(t),l=e.error||lE(t),s=e.info||sE(t),u=e.success||uE(t),c=e.warning||cE(t);function f(v){return DC(v,xc.text.primary)>=n?xc.text.primary:Jh.text.primary}const d=({color:v,name:S,mainShade:p=500,lightShade:h=300,darkShade:m=700})=>{if(v=C({},v),!v.main&&v[p]&&(v.main=v[p]),!v.hasOwnProperty("main"))throw new Error(co(11,S?` (${S})`:"",p));if(typeof v.main!="string")throw new Error(co(12,S?` (${S})`:"",JSON.stringify(v.main)));return Zh(v,"light",h,r),Zh(v,"dark",m,r),v.contrastText||(v.contrastText=f(v.main)),v},b={dark:xc,light:Jh};return nn(C({common:C({},Pa),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:u,name:"success"}),grey:XC,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r},b[t]),o)}const fE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pE(e){return Math.round(e*1e5)/1e5}const em={textTransform:"uppercase"},tm='"Roboto", "Helvetica", "Arial", sans-serif';function hE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=tm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,d=q(n,fE),b=o/14,g=f||(p=>`${p/u*b}rem`),v=(p,h,m,E,R)=>C({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:m},r===tm?{letterSpacing:`${pE(E/h)}em`}:{},R,c),S={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(l,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(l,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(l,14,1.75,.4,em),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,em),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(C({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},S),d,{clone:!1})}const mE=.2,vE=.14,gE=.12;function Ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gE})`].join(",")}const yE=["none",Ue(0,2,1,-1,0,1,1,0,0,1,3,0),Ue(0,3,1,-2,0,2,2,0,0,1,5,0),Ue(0,3,3,-2,0,3,4,0,0,1,8,0),Ue(0,2,4,-1,0,4,5,0,0,1,10,0),Ue(0,3,5,-1,0,5,8,0,0,1,14,0),Ue(0,3,5,-1,0,6,10,0,0,1,18,0),Ue(0,4,5,-2,0,7,10,1,0,2,16,1),Ue(0,5,5,-3,0,8,10,1,0,3,14,2),Ue(0,5,6,-3,0,9,12,1,0,3,16,2),Ue(0,6,6,-3,0,10,14,1,0,4,18,3),Ue(0,6,7,-4,0,11,15,1,0,4,20,3),Ue(0,7,8,-4,0,12,17,2,0,5,22,4),Ue(0,7,8,-4,0,13,19,2,0,5,24,4),Ue(0,7,9,-4,0,14,21,2,0,5,26,4),Ue(0,8,9,-5,0,15,22,2,0,6,28,5),Ue(0,8,10,-5,0,16,24,2,0,6,30,5),Ue(0,8,11,-5,0,17,26,2,0,6,32,5),Ue(0,9,11,-5,0,18,28,2,0,7,34,6),Ue(0,9,12,-6,0,19,29,2,0,7,36,6),Ue(0,10,13,-6,0,20,31,3,0,8,38,7),Ue(0,10,13,-6,0,21,33,3,0,8,40,7),Ue(0,10,14,-6,0,22,35,3,0,8,42,7),Ue(0,11,14,-7,0,23,36,3,0,9,44,8),Ue(0,11,15,-7,0,24,38,3,0,9,46,8)],xE=["duration","easing","delay"],SE={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)"},xy={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nm(e){return`${Math.round(e)}ms`}function bE(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function wE(e){const t=C({},SE,e.easing),n=C({},xy,e.duration);return C({getAutoHeightDuration:bE,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:s=0}=i;return q(i,xE),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:nm(a)} ${l} ${typeof s=="string"?s:nm(s)}`).join(",")}},e,{easing:t,duration:n})}const CE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EE=CE,kE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=q(e,kE);if(e.vars)throw new Error(co(18));const l=dE(r),s=Jf(e);let u=nn(s,{mixins:LC(s.breakpoints,n),palette:l,shadows:yE.slice(),typography:hE(l,i),transitions:wE(o),zIndex:C({},EE)});return u=nn(u,a),u=t.reduce((c,f)=>nn(c,f),u),u.unstable_sxConfig=C({},Ua,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return lu({sx:f,theme:this})},u}const RE=Sy(),bu=RE;function Wa(){const e=Zf(bu);return e[ii]||e}function Se({props:e,name:t}){return cC({props:e,name:t,defaultTheme:bu,themeId:ii})}var Ha={},Sc={exports:{}},rm;function _E(){return rm||(rm=1,function(e){function t(n,r){if(n==null)return{};var o={},i=Object.keys(n),a,l;for(l=0;l=0)&&(o[a]=n[a]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sc)),Sc.exports}const PE=lr(Zb),TE=lr(ew),$E=lr(lw),IE=lr(sC),ME=lr(Qw),OE=lr(tC);var vi=ip;Object.defineProperty(Ha,"__esModule",{value:!0});var NE=Ha.default=GE;Ha.shouldForwardProp=jl;Ha.systemDefaultTheme=void 0;var dn=vi(W0()),Nd=vi(_E()),om=BE(PE),LE=TE;vi($E);vi(IE);var jE=vi(ME),AE=vi(OE);const DE=["ownerState"],zE=["variants"],FE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function by(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(by=function(r){return r?n:t})(e)}function BE(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=by(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function UE(e){return Object.keys(e).length===0}function WE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const HE=Ha.systemDefaultTheme=(0,jE.default)(),VE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ml({defaultTheme:e,theme:t,themeId:n}){return UE(t)?e:t[n]||t}function KE(e){return e?(t,n)=>n[e]:null}function Al(e,t){let{ownerState:n}=t,r=(0,Nd.default)(t,DE);const o=typeof e=="function"?e((0,dn.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Al(i,(0,dn.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,Nd.default)(o,zE);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,dn.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style((0,dn.default)({ownerState:n},r,n)):s.style))}),l}return o}function GE(e={}){const{themeId:t,defaultTheme:n=HE,rootShouldForwardProp:r=jl,slotShouldForwardProp:o=jl}=e,i=a=>(0,AE.default)((0,dn.default)({},a,{theme:ml((0,dn.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{(0,om.internal_processStyles)(a,R=>R.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=KE(VE(u))}=l,b=(0,Nd.default)(l,FE),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let S,p=jl;u==="Root"||u==="root"?p=r:u?p=o:WE(a)&&(p=void 0);const h=(0,om.default)(a,(0,dn.default)({shouldForwardProp:p,label:S},b)),m=R=>typeof R=="function"&&R.__emotion_real!==R||(0,LE.isPlainObject)(R)?x=>Al(R,(0,dn.default)({},x,{theme:ml({theme:x.theme,defaultTheme:n,themeId:t})})):R,E=(R,...x)=>{let k=m(R);const T=x?x.map(m):[];s&&d&&T.push(N=>{const F=ml((0,dn.default)({},N,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[s]||!F.components[s].styleOverrides)return null;const j=F.components[s].styleOverrides,A={};return Object.entries(j).forEach(([B,U])=>{A[B]=Al(U,(0,dn.default)({},N,{theme:F}))}),d(N,A)}),s&&!g&&T.push(N=>{var F;const j=ml((0,dn.default)({},N,{defaultTheme:n,themeId:t})),A=j==null||(F=j.components)==null||(F=F[s])==null?void 0:F.variants;return Al({variants:A},(0,dn.default)({},N,{theme:j}))}),v||T.push(i);const M=T.length-x.length;if(Array.isArray(R)&&M>0){const N=new Array(M).fill("");k=[...R,...N],k.raw=[...R.raw,...N]}const I=h(k,...T);return a.muiName&&(I.muiName=a.muiName),I};return h.withConfig&&(E.withConfig=h.withConfig),E}}function wy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qE=e=>wy(e)&&e!=="classes",qt=qE,K=NE({themeId:ii,defaultTheme:bu,rootShouldForwardProp:qt}),QE=["theme"];function YE(e){let{theme:t}=e,n=q(e,QE);const r=t[ii];return w.jsx(NC,C({},n,{themeId:r?ii:void 0,theme:r||t}))}const im=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};/** * @remix-run/router v1.15.3 * * Copyright (c) Remix Software Inc. @@ -61,8 +61,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ai(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JE(){return Math.random().toString(36).substr(2,8)}function am(e,t){return{usr:e.state,key:e.key,idx:t}}function Pa(e,t,n,r){return n===void 0&&(n=null),Je({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||JE()})}function Ha(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=tt.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Je({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){l=tt.Pop;let S=c(),p=S==null?null:S-u;u=S,s&&s({action:l,location:v.location,delta:p})}function d(S,p){l=tt.Push;let h=Pa(v.location,S,p);n&&n(h,S),u=c()+1;let m=am(h,u),E=v.createHref(h);try{a.pushState(m,"",E)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function b(S,p){l=tt.Replace;let h=Pa(v.location,S,p);n&&n(h,S),u=c();let m=am(h,u),E=v.createHref(h);a.replaceState(m,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function g(S){let p=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:Ha(S);return h=h.replace(/ $/,"%20"),fe(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return l},get location(){return e(o,a)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(im,f),s=S,()=>{o.removeEventListener(im,f),s=null}},createHref(S){return t(o,S)},createURL:g,encodeLocation(S){let p=g(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:b,go(S){return a.go(S)}};return v}var Ye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ye||(Ye={}));const ek=new Set(["lazy","caseSensitive","path","id","index","children"]);function tk(e){return e.index===!0}function Nd(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(fe(o.index!==!0||!o.children,"Cannot specify children on an index route"),fe(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),tk(o)){let s=Je({},o,t(o),{id:l});return r[l]=s,s}else{let s=Je({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=Nd(o.children,t,a,r)),s}})}function Bo(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,o=Va(r.pathname||"/",n);if(o==null)return null;let i=Cy(e);rk(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(fe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Nr([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:ck(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of Ey(i.path))o(i,a,s)}),t}function Ey(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Ey(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function rk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ok=/^:[\w-]+$/,ik=3,ak=2,lk=1,sk=10,uk=-2,lm=e=>e==="*";function ck(e,t){let n=e.split("/"),r=n.length;return n.some(lm)&&(r+=uk),t&&(r+=ak),n.filter(o=>!lm(o)).reduce((o,i)=>o+(ok.test(i)?ik:i===""?lk:sk),r)}function dk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function fk(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:b}=c;if(d==="*"){let v=l[f]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return b&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function hk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ai(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function mk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ai(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vk(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:gk(n,t):t,search:xk(r),hash:Sk(o)}}function gk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Sc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ky(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ry(e,t){let n=ky(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _y(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ur(e):(o=Je({},e),fe(!o.pathname||!o.pathname.includes("?"),Sc("?","pathname","search",o)),fe(!o.pathname||!o.pathname.includes("#"),Sc("#","pathname","hash",o)),fe(!o.search||!o.search.includes("#"),Sc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=vk(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Nr=e=>e.join("/").replace(/\/\/+/g,"/"),yk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class sp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Py(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ty=["post","put","patch","delete"],bk=new Set(Ty),wk=["get",...Ty],Ck=new Set(wk),Ek=new Set([301,302,303,307,308]),kk=new Set([307,308]),bc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ii={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_k=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Iy="remix-router-transitions";function Pk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;fe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let P=e.detectErrorBoundary;o=$=>({hasErrorBoundary:P($)})}else o=_k;let i={},a=Nd(e.routes,o,void 0,i),l,s=e.basename||"/",u=Je({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,d=null,b=null,g=null,v=e.hydrationData!=null,S=Bo(a,e.history.location,s),p=null;if(S==null){let P=dn(404,{pathname:e.history.location.pathname}),{matches:$,route:O}=mm(a);S=$,p={[O.id]:P}}let h,m=S.some(P=>P.route.lazy),E=S.some(P=>P.route.loader);if(m)h=!1;else if(!E)h=!0;else if(u.v7_partialHydration){let P=e.hydrationData?e.hydrationData.loaderData:null,$=e.hydrationData?e.hydrationData.errors:null,O=H=>H.route.loader?H.route.loader.hydrate===!0?!1:P&&P[H.route.id]!==void 0||$&&$[H.route.id]!==void 0:!0;if($){let H=S.findIndex(Q=>$[Q.route.id]!==void 0);h=S.slice(0,H+1).every(O)}else h=S.every(O)}else h=e.hydrationData!=null;let R,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:h,navigation:bc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},k=tt.Pop,T=!1,M,I=!1,N=new Map,F=null,j=!1,A=!1,B=[],U=[],D=new Map,_=0,L=-1,W=new Map,X=new Set,re=new Map,he=new Map,J=new Set,ue=new Map,V=new Map,de=!1;function Ae(){if(c=e.history.listen(P=>{let{action:$,location:O,delta:H}=P;if(de){de=!1;return}ai(V.size===0||H!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Yn({currentLocation:x.location,nextLocation:O,historyAction:$});if(Q&&H!=null){de=!0,e.history.go(H*-1),Ge(Q,{state:"blocked",location:O,proceed(){Ge(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(H)},reset(){let ce=new Map(x.blockers);ce.set(Q,Ii),ie({blockers:ce})}});return}return we($,O)}),n){zk(t,N);let P=()=>Fk(t,N);t.addEventListener("pagehide",P),F=()=>t.removeEventListener("pagehide",P)}return x.initialized||we(tt.Pop,x.location,{initialHydration:!0}),R}function Pe(){c&&c(),F&&F(),f.clear(),M&&M.abort(),x.fetchers.forEach((P,$)=>Dt($)),x.blockers.forEach((P,$)=>Le($))}function et(P){return f.add(P),()=>f.delete(P)}function ie(P,$){$===void 0&&($={}),x=Je({},x,P);let O=[],H=[];u.v7_fetcherPersist&&x.fetchers.forEach((Q,ce)=>{Q.state==="idle"&&(J.has(ce)?H.push(ce):O.push(ce))}),[...f].forEach(Q=>Q(x,{deletedFetchers:H,unstable_viewTransitionOpts:$.viewTransitionOpts,unstable_flushSync:$.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(Q=>x.fetchers.delete(Q)),H.forEach(Q=>Dt(Q)))}function Te(P,$,O){var H,Q;let{flushSync:ce}=O===void 0?{}:O,ae=x.actionData!=null&&x.navigation.formMethod!=null&&_n(x.navigation.formMethod)&&x.navigation.state==="loading"&&((H=P.state)==null?void 0:H._isRedirect)!==!0,oe;$.actionData?Object.keys($.actionData).length>0?oe=$.actionData:oe=null:ae?oe=x.actionData:oe=null;let ee=$.loaderData?hm(x.loaderData,$.loaderData,$.matches||[],$.errors):x.loaderData,me=x.blockers;me.size>0&&(me=new Map(me),me.forEach((De,yt)=>me.set(yt,Ii)));let ft=T===!0||x.navigation.formMethod!=null&&_n(x.navigation.formMethod)&&((Q=P.state)==null?void 0:Q._isRedirect)!==!0;l&&(a=l,l=void 0),j||k===tt.Pop||(k===tt.Push?e.history.push(P,P.state):k===tt.Replace&&e.history.replace(P,P.state));let le;if(k===tt.Pop){let De=N.get(x.location.pathname);De&&De.has(P.pathname)?le={currentLocation:x.location,nextLocation:P}:N.has(P.pathname)&&(le={currentLocation:P,nextLocation:x.location})}else if(I){let De=N.get(x.location.pathname);De?De.add(P.pathname):(De=new Set([P.pathname]),N.set(x.location.pathname,De)),le={currentLocation:x.location,nextLocation:P}}ie(Je({},$,{actionData:oe,loaderData:ee,historyAction:k,location:P,initialized:!0,navigation:bc,revalidation:"idle",restoreScrollPosition:Sp(P,$.matches||x.matches),preventScrollReset:ft,blockers:me}),{viewTransitionOpts:le,flushSync:ce===!0}),k=tt.Pop,T=!1,I=!1,j=!1,A=!1,B=[],U=[]}async function se(P,$){if(typeof P=="number"){e.history.go(P);return}let O=Ld(x.location,x.matches,s,u.v7_prependBasename,P,u.v7_relativeSplatPath,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:H,submission:Q,error:ce}=sm(u.v7_normalizeFormMethod,!1,O,$),ae=x.location,oe=Pa(x.location,H,$&&$.state);oe=Je({},oe,e.history.encodeLocation(oe));let ee=$&&$.replace!=null?$.replace:void 0,me=tt.Push;ee===!0?me=tt.Replace:ee===!1||Q!=null&&_n(Q.formMethod)&&Q.formAction===x.location.pathname+x.location.search&&(me=tt.Replace);let ft=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,le=($&&$.unstable_flushSync)===!0,De=Yn({currentLocation:ae,nextLocation:oe,historyAction:me});if(De){Ge(De,{state:"blocked",location:oe,proceed(){Ge(De,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),se(P,$)},reset(){let yt=new Map(x.blockers);yt.set(De,Ii),ie({blockers:yt})}});return}return await we(me,oe,{submission:Q,pendingError:ce,preventScrollReset:ft,replace:$&&$.replace,enableViewTransition:$&&$.unstable_viewTransition,flushSync:le})}function Re(){if(dt(),ie({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){we(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}we(k||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function we(P,$,O){M&&M.abort(),M=null,k=P,j=(O&&O.startUninterruptedRevalidation)===!0,S1(x.location,x.matches),T=(O&&O.preventScrollReset)===!0,I=(O&&O.enableViewTransition)===!0;let H=l||a,Q=O&&O.overrideNavigation,ce=Bo(H,$,s),ae=(O&&O.flushSync)===!0;if(!ce){let yt=dn(404,{pathname:$.pathname}),{matches:Yt,route:pt}=mm(H);mo(),Te($,{matches:Yt,loaderData:{},errors:{[pt.id]:yt}},{flushSync:ae});return}if(x.initialized&&!A&&Ok(x.location,$)&&!(O&&O.submission&&_n(O.submission.formMethod))){Te($,{matches:ce},{flushSync:ae});return}M=new AbortController;let oe=Oi(e.history,$,M.signal,O&&O.submission),ee,me;if(O&&O.pendingError)me={[oa(ce).route.id]:O.pendingError};else if(O&&O.submission&&_n(O.submission.formMethod)){let yt=await Ln(oe,$,O.submission,ce,{replace:O.replace,flushSync:ae});if(yt.shortCircuited)return;ee=yt.pendingActionData,me=yt.pendingActionError,Q=wc($,O.submission),ae=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:ft,loaderData:le,errors:De}=await Lt(oe,$,ce,Q,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ae,ee,me);ft||(M=null,Te($,Je({matches:ce},ee?{actionData:ee}:{},{loaderData:le,errors:De})))}async function Ln(P,$,O,H,Q){Q===void 0&&(Q={}),dt();let ce=Ak($,O);ie({navigation:ce},{flushSync:Q.flushSync===!0});let ae,oe=Ad(H,$);if(!oe.route.action&&!oe.route.lazy)ae={type:Ye.error,error:dn(405,{method:P.method,pathname:$.pathname,routeId:oe.route.id})};else if(ae=await Mi("action",P,oe,H,i,o,s,u.v7_relativeSplatPath),P.signal.aborted)return{shortCircuited:!0};if(eo(ae)){let ee;return Q&&Q.replace!=null?ee=Q.replace:ee=ae.location===x.location.pathname+x.location.search,await $e(x,ae,{submission:O,replace:ee}),{shortCircuited:!0}}if(Uo(ae)){let ee=oa(H,oe.route.id);return(Q&&Q.replace)!==!0&&(k=tt.Push),{pendingActionData:{},pendingActionError:{[ee.route.id]:ae.error}}}if(Zr(ae))throw dn(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ae.data}}}async function Lt(P,$,O,H,Q,ce,ae,oe,ee,me,ft){let le=H||wc($,Q),De=Q||ce||ym(le),yt=l||a,[Yt,pt]=um(e.history,x,O,De,$,u.v7_partialHydration&&oe===!0,A,B,U,J,re,X,yt,s,me,ft);if(mo(Ce=>!(O&&O.some(je=>je.route.id===Ce))||Yt&&Yt.some(je=>je.route.id===Ce)),L=++_,Yt.length===0&&pt.length===0){let Ce=dr();return Te($,Je({matches:O,loaderData:{},errors:ft||null},me?{actionData:me}:{},Ce?{fetchers:new Map(x.fetchers)}:{}),{flushSync:ee}),{shortCircuited:!0}}if(!j&&(!u.v7_partialHydration||!oe)){pt.forEach(je=>{let zt=x.fetchers.get(je.key),Ya=Ni(void 0,zt?zt.data:void 0);x.fetchers.set(je.key,Ya)});let Ce=me||x.actionData;ie(Je({navigation:le},Ce?Object.keys(Ce).length===0?{actionData:null}:{actionData:Ce}:{},pt.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:ee})}pt.forEach(Ce=>{D.has(Ce.key)&&Y(Ce.key),Ce.controller&&D.set(Ce.key,Ce.controller)});let vo=()=>pt.forEach(Ce=>Y(Ce.key));M&&M.signal.addEventListener("abort",vo);let{results:Fu,loaderResults:go,fetcherResults:pr}=await sn(x.matches,O,Yt,pt,P);if(P.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",vo),pt.forEach(Ce=>D.delete(Ce.key));let Ur=vm(Fu);if(Ur){if(Ur.idx>=Yt.length){let Ce=pt[Ur.idx-Yt.length].key;X.add(Ce)}return await $e(x,Ur.result,{replace:ae}),{shortCircuited:!0}}let{loaderData:Bu,errors:Si}=pm(x,O,Yt,go,ft,pt,pr,ue);ue.forEach((Ce,je)=>{Ce.subscribe(zt=>{(zt||Ce.done)&&ue.delete(je)})}),u.v7_partialHydration&&oe&&x.errors&&Object.entries(x.errors).filter(Ce=>{let[je]=Ce;return!Yt.some(zt=>zt.route.id===je)}).forEach(Ce=>{let[je,zt]=Ce;Si=Object.assign(Si||{},{[je]:zt})});let Uu=dr(),yo=fr(L),Qa=Uu||yo||pt.length>0;return Je({loaderData:Bu,errors:Si},Qa?{fetchers:new Map(x.fetchers)}:{})}function jt(P,$,O,H){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");D.has(P)&&Y(P);let Q=(H&&H.unstable_flushSync)===!0,ce=l||a,ae=Ld(x.location,x.matches,s,u.v7_prependBasename,O,u.v7_relativeSplatPath,$,H==null?void 0:H.relative),oe=Bo(ce,ae,s);if(!oe){Ct(P,$,dn(404,{pathname:ae}),{flushSync:Q});return}let{path:ee,submission:me,error:ft}=sm(u.v7_normalizeFormMethod,!0,ae,H);if(ft){Ct(P,$,ft,{flushSync:Q});return}let le=Ad(oe,ee);if(T=(H&&H.preventScrollReset)===!0,me&&_n(me.formMethod)){Qt(P,$,ee,le,oe,Q,me);return}re.set(P,{routeId:$,path:ee}),At(P,$,ee,le,oe,Q,me)}async function Qt(P,$,O,H,Q,ce,ae){if(dt(),re.delete(P),!H.route.action&&!H.route.lazy){let je=dn(405,{method:ae.formMethod,pathname:O,routeId:$});Ct(P,$,je,{flushSync:ce});return}let oe=x.fetchers.get(P);Se(P,Dk(ae,oe),{flushSync:ce});let ee=new AbortController,me=Oi(e.history,O,ee.signal,ae);D.set(P,ee);let ft=_,le=await Mi("action",me,H,Q,i,o,s,u.v7_relativeSplatPath);if(me.signal.aborted){D.get(P)===ee&&D.delete(P);return}if(u.v7_fetcherPersist&&J.has(P)){if(eo(le)||Uo(le)){Se(P,vr(void 0));return}}else{if(eo(le))if(D.delete(P),L>ft){Se(P,vr(void 0));return}else return X.add(P),Se(P,Ni(ae)),$e(x,le,{fetcherSubmission:ae});if(Uo(le)){Ct(P,$,le.error);return}}if(Zr(le))throw dn(400,{type:"defer-action"});let De=x.navigation.location||x.location,yt=Oi(e.history,De,ee.signal),Yt=l||a,pt=x.navigation.state!=="idle"?Bo(Yt,x.navigation.location,s):x.matches;fe(pt,"Didn't find any matches after fetcher action");let vo=++_;W.set(P,vo);let Fu=Ni(ae,le.data);x.fetchers.set(P,Fu);let[go,pr]=um(e.history,x,pt,ae,De,!1,A,B,U,J,re,X,Yt,s,{[H.route.id]:le.data},void 0);pr.filter(je=>je.key!==P).forEach(je=>{let zt=je.key,Ya=x.fetchers.get(zt),w1=Ni(void 0,Ya?Ya.data:void 0);x.fetchers.set(zt,w1),D.has(zt)&&Y(zt),je.controller&&D.set(zt,je.controller)}),ie({fetchers:new Map(x.fetchers)});let Ur=()=>pr.forEach(je=>Y(je.key));ee.signal.addEventListener("abort",Ur);let{results:Bu,loaderResults:Si,fetcherResults:Uu}=await sn(x.matches,pt,go,pr,yt);if(ee.signal.aborted)return;ee.signal.removeEventListener("abort",Ur),W.delete(P),D.delete(P),pr.forEach(je=>D.delete(je.key));let yo=vm(Bu);if(yo){if(yo.idx>=go.length){let je=pr[yo.idx-go.length].key;X.add(je)}return $e(x,yo.result)}let{loaderData:Qa,errors:Ce}=pm(x,x.matches,go,Si,void 0,pr,Uu,ue);if(x.fetchers.has(P)){let je=vr(le.data);x.fetchers.set(P,je)}fr(vo),x.navigation.state==="loading"&&vo>L?(fe(k,"Expected pending action"),M&&M.abort(),Te(x.navigation.location,{matches:pt,loaderData:Qa,errors:Ce,fetchers:new Map(x.fetchers)})):(ie({errors:Ce,loaderData:hm(x.loaderData,Qa,pt,Ce),fetchers:new Map(x.fetchers)}),A=!1)}async function At(P,$,O,H,Q,ce,ae){let oe=x.fetchers.get(P);Se(P,Ni(ae,oe?oe.data:void 0),{flushSync:ce});let ee=new AbortController,me=Oi(e.history,O,ee.signal);D.set(P,ee);let ft=_,le=await Mi("loader",me,H,Q,i,o,s,u.v7_relativeSplatPath);if(Zr(le)&&(le=await Ny(le,me.signal,!0)||le),D.get(P)===ee&&D.delete(P),!me.signal.aborted){if(J.has(P)){Se(P,vr(void 0));return}if(eo(le))if(L>ft){Se(P,vr(void 0));return}else{X.add(P),await $e(x,le);return}if(Uo(le)){Ct(P,$,le.error);return}fe(!Zr(le),"Unhandled fetcher deferred data"),Se(P,vr(le.data))}}async function $e(P,$,O){let{submission:H,fetcherSubmission:Q,replace:ce}=O===void 0?{}:O;$.revalidate&&(A=!0);let ae=Pa(P.location,$.location,{_isRedirect:!0});if(fe(ae,"Expected a location on the redirect navigation"),n){let De=!1;if($.reloadDocument)De=!0;else if($y.test($.location)){const yt=e.history.createURL($.location);De=yt.origin!==t.location.origin||Va(yt.pathname,s)==null}if(De){ce?t.location.replace($.location):t.location.assign($.location);return}}M=null;let oe=ce===!0?tt.Replace:tt.Push,{formMethod:ee,formAction:me,formEncType:ft}=P.navigation;!H&&!Q&&ee&&me&&ft&&(H=ym(P.navigation));let le=H||Q;if(kk.has($.status)&&le&&_n(le.formMethod))await we(oe,ae,{submission:Je({},le,{formAction:$.location}),preventScrollReset:T});else{let De=wc(ae,H);await we(oe,ae,{overrideNavigation:De,fetcherSubmission:Q,preventScrollReset:T})}}async function sn(P,$,O,H,Q){let ce=await Promise.all([...O.map(ee=>Mi("loader",Q,ee,$,i,o,s,u.v7_relativeSplatPath)),...H.map(ee=>ee.matches&&ee.match&&ee.controller?Mi("loader",Oi(e.history,ee.path,ee.controller.signal),ee.match,ee.matches,i,o,s,u.v7_relativeSplatPath):{type:Ye.error,error:dn(404,{pathname:ee.path})})]),ae=ce.slice(0,O.length),oe=ce.slice(O.length);return await Promise.all([gm(P,O,ae,ae.map(()=>Q.signal),!1,x.loaderData),gm(P,H.map(ee=>ee.match),oe,H.map(ee=>ee.controller?ee.controller.signal:null),!0)]),{results:ce,loaderResults:ae,fetcherResults:oe}}function dt(){A=!0,B.push(...mo()),re.forEach((P,$)=>{D.has($)&&(U.push($),Y($))})}function Se(P,$,O){O===void 0&&(O={}),x.fetchers.set(P,$),ie({fetchers:new Map(x.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Ct(P,$,O,H){H===void 0&&(H={});let Q=oa(x.matches,$);Dt(P),ie({errors:{[Q.route.id]:O},fetchers:new Map(x.fetchers)},{flushSync:(H&&H.flushSync)===!0})}function Cn(P){return u.v7_fetcherPersist&&(he.set(P,(he.get(P)||0)+1),J.has(P)&&J.delete(P)),x.fetchers.get(P)||Rk}function Dt(P){let $=x.fetchers.get(P);D.has(P)&&!($&&$.state==="loading"&&W.has(P))&&Y(P),re.delete(P),W.delete(P),X.delete(P),J.delete(P),x.fetchers.delete(P)}function Ne(P){if(u.v7_fetcherPersist){let $=(he.get(P)||0)-1;$<=0?(he.delete(P),J.add(P)):he.set(P,$)}else Dt(P);ie({fetchers:new Map(x.fetchers)})}function Y(P){let $=D.get(P);fe($,"Expected fetch controller: "+P),$.abort(),D.delete(P)}function un(P){for(let $ of P){let O=Cn($),H=vr(O.data);x.fetchers.set($,H)}}function dr(){let P=[],$=!1;for(let O of X){let H=x.fetchers.get(O);fe(H,"Expected fetcher: "+O),H.state==="loading"&&(X.delete(O),P.push(O),$=!0)}return un(P),$}function fr(P){let $=[];for(let[O,H]of W)if(H0}function te(P,$){let O=x.blockers.get(P)||Ii;return V.get(P)!==$&&V.set(P,$),O}function Le(P){x.blockers.delete(P),V.delete(P)}function Ge(P,$){let O=x.blockers.get(P)||Ii;fe(O.state==="unblocked"&&$.state==="blocked"||O.state==="blocked"&&$.state==="blocked"||O.state==="blocked"&&$.state==="proceeding"||O.state==="blocked"&&$.state==="unblocked"||O.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+$.state);let H=new Map(x.blockers);H.set(P,$),ie({blockers:H})}function Yn(P){let{currentLocation:$,nextLocation:O,historyAction:H}=P;if(V.size===0)return;V.size>1&&ai(!1,"A router only supports one blocker at a time");let Q=Array.from(V.entries()),[ce,ae]=Q[Q.length-1],oe=x.blockers.get(ce);if(!(oe&&oe.state==="proceeding")&&ae({currentLocation:$,nextLocation:O,historyAction:H}))return ce}function mo(P){let $=[];return ue.forEach((O,H)=>{(!P||P(H))&&(O.cancel(),$.push(H),ue.delete(H))}),$}function x1(P,$,O){if(d=P,g=$,b=O||null,!v&&x.navigation===bc){v=!0;let H=Sp(x.location,x.matches);H!=null&&ie({restoreScrollPosition:H})}return()=>{d=null,g=null,b=null}}function xp(P,$){return b&&b(P,$.map(H=>nk(H,x.loaderData)))||P.key}function S1(P,$){if(d&&g){let O=xp(P,$);d[O]=g()}}function Sp(P,$){if(d){let O=xp(P,$),H=d[O];if(typeof H=="number")return H}return null}function b1(P){i={},l=Nd(P,o,void 0,i)}return R={get basename(){return s},get future(){return u},get state(){return x},get routes(){return a},get window(){return t},initialize:Ae,subscribe:et,enableScrollRestoration:x1,navigate:se,fetch:jt,revalidate:Re,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:Cn,deleteFetcher:Ne,dispose:Pe,getBlocker:te,deleteBlocker:Le,_internalFetchControllers:D,_internalActiveDeferreds:ue,_internalSetRoutes:b1},R}function Tk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ld(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let f of t)if(s.push(f),f.route.id===a){u=f;break}}else s=t,u=t[t.length-1];let c=_y(o||".",Ry(s,i),Va(e.pathname,n)||e.pathname,l==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!up(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Nr([n,c.pathname])),Ha(c)}function sm(e,t,n,r){if(!r||!Tk(r))return{path:n};if(r.formMethod&&!jk(r.formMethod))return{path:n,error:dn(405,{method:r.formMethod})};let o=()=>({path:n,error:dn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=Oy(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!_n(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,g)=>{let[v,S]=g;return""+b+v+"="+S+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!_n(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}fe(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=jd(r.formData),u=r.formData;else if(r.body instanceof FormData)s=jd(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=fm(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=fm(s)}catch{return o()}let c={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(_n(c.formMethod))return{path:n,submission:c};let f=ur(n);return t&&f.search&&up(f.search)&&s.append("index",""),f.search="?"+s,{path:Ha(f),submission:c}}function $k(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function um(e,t,n,r,o,i,a,l,s,u,c,f,d,b,g,v){let S=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,p=e.createURL(t.location),h=e.createURL(o),m=v?Object.keys(v)[0]:void 0,R=$k(n,m).filter((k,T)=>{let{route:M}=k;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(Ik(t.loaderData,t.matches[T],k)||l.some(F=>F===k.route.id))return!0;let I=t.matches[T],N=k;return cm(k,Je({currentUrl:p,currentParams:I.params,nextUrl:h,nextParams:N.params},r,{actionResult:S,defaultShouldRevalidate:a||p.pathname+p.search===h.pathname+h.search||p.search!==h.search||My(I,N)}))}),x=[];return c.forEach((k,T)=>{if(i||!n.some(j=>j.route.id===k.routeId)||u.has(T))return;let M=Bo(d,k.path,b);if(!M){x.push({key:T,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(T),N=Ad(M,k.path),F=!1;f.has(T)?F=!1:s.includes(T)?F=!0:I&&I.state!=="idle"&&I.data===void 0?F=a:F=cm(N,Je({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:a})),F&&x.push({key:T,routeId:k.routeId,path:k.path,matches:M,match:N,controller:new AbortController})}),[R,x]}function Ik(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function My(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function cm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function dm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];fe(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";ai(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!ek.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Je({},t(o),{lazy:void 0}))}async function Mi(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let u,c,f,d=v=>{let S,p=new Promise((h,m)=>S=m);return f=()=>S(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:s.requestContext}),p])};try{let v=n.route[e];if(n.route.lazy)if(v){let S,p=await Promise.all([d(v).catch(h=>{S=h}),dm(n.route,i,o)]);if(S)throw S;c=p[0]}else if(await dm(n.route,i,o),v=n.route[e],v)c=await d(v);else if(e==="action"){let S=new URL(t.url),p=S.pathname+S.search;throw dn(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:Ye.data,data:void 0};else if(v)c=await d(v);else{let S=new URL(t.url),p=S.pathname+S.search;throw dn(404,{pathname:p})}fe(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){u=Ye.error,c=v}finally{f&&t.signal.removeEventListener("abort",f)}if(Lk(c)){let v=c.status;if(Ek.has(v)){let p=c.headers.get("Location");if(fe(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!$y.test(p))p=Ld(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,p,l);else if(!s.isStaticRequest){let h=new URL(t.url),m=p.startsWith("//")?new URL(h.protocol+p):new URL(p),E=Va(m.pathname,a)!=null;m.origin===h.origin&&E&&(p=m.pathname+m.search+m.hash)}if(s.isStaticRequest)throw c.headers.set("Location",p),c;return{type:Ye.redirect,status:v,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===Ye.error?Ye.error:Ye.data,response:c};let S;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?S=null:S=await c.json():S=await c.text()}catch(p){return{type:Ye.error,error:p}}return u===Ye.error?{type:u,error:new sp(v,c.statusText,S),headers:c.headers}:{type:Ye.data,data:S,statusCode:c.status,headers:c.headers}}if(u===Ye.error)return{type:u,error:c};if(Nk(c)){var b,g;return{type:Ye.deferred,deferredData:c,statusCode:(b=c.init)==null?void 0:b.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Ye.data,data:c}}function Oi(e,t,n,r){let o=e.createURL(Oy(t)).toString(),i={signal:n};if(r&&_n(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=jd(r.formData):i.body=r.formData}return new Request(o,i)}function jd(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function fm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mk(e,t,n,r,o){let i={},a=null,l,s=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(fe(!eo(c),"Cannot handle redirect results in processLoaderData"),Uo(c)){let b=oa(e,d),g=c.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=g),i[d]=void 0,s||(s=!0,l=Py(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else Zr(c)?(o.set(d,c.deferredData),i[d]=c.deferredData.data):i[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(l=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:u}}function pm(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Mk(t,n,r,o,l);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function mm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function dn(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new sp(e||500,a,new Error(l),!0)}function vm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(eo(n))return{result:n,idx:t}}}function Oy(e){let t=typeof e=="string"?ur(e):e;return Ha(Je({},t,{hash:""}))}function Ok(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Zr(e){return e.type===Ye.deferred}function Uo(e){return e.type===Ye.error}function eo(e){return(e&&e.type)===Ye.redirect}function Nk(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Lk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jk(e){return Ck.has(e.toLowerCase())}function _n(e){return bk.has(e.toLowerCase())}async function gm(e,t,n,r,o,i){for(let a=0;af.route.id===s.route.id),c=u!=null&&!My(u,s)&&(i&&i[s.route.id])!==void 0;if(Zr(l)&&(o||c)){let f=r[a];fe(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ny(l,f,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function Ny(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ye.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ye.error,error:o}}return{type:Ye.data,data:e.deferredData.data}}}function up(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ad(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&up(n||""))return e[e.length-1];let r=ky(e);return r[r.length-1]}function ym(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function wc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ak(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ni(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Dk(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function zk(e,t){try{let n=e.sessionStorage.getItem(Iy);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Fk(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Iy,JSON.stringify(n))}catch(r){ai(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function li(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JE(){return Math.random().toString(36).substr(2,8)}function lm(e,t){return{usr:e.state,key:e.key,idx:t}}function Ta(e,t,n,r){return n===void 0&&(n=null),Je({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||JE()})}function Va(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=tt.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Je({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){l=tt.Pop;let S=c(),p=S==null?null:S-u;u=S,s&&s({action:l,location:v.location,delta:p})}function d(S,p){l=tt.Push;let h=Ta(v.location,S,p);n&&n(h,S),u=c()+1;let m=lm(h,u),E=v.createHref(h);try{a.pushState(m,"",E)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(E)}i&&s&&s({action:l,location:v.location,delta:1})}function b(S,p){l=tt.Replace;let h=Ta(v.location,S,p);n&&n(h,S),u=c();let m=lm(h,u),E=v.createHref(h);a.replaceState(m,"",E),i&&s&&s({action:l,location:v.location,delta:0})}function g(S){let p=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:Va(S);return h=h.replace(/ $/,"%20"),fe(p,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,p)}let v={get action(){return l},get location(){return e(o,a)},listen(S){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(am,f),s=S,()=>{o.removeEventListener(am,f),s=null}},createHref(S){return t(o,S)},createURL:g,encodeLocation(S){let p=g(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:b,go(S){return a.go(S)}};return v}var Ye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ye||(Ye={}));const ek=new Set(["lazy","caseSensitive","path","id","index","children"]);function tk(e){return e.index===!0}function Ld(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],l=typeof o.id=="string"?o.id:a.join("-");if(fe(o.index!==!0||!o.children,"Cannot specify children on an index route"),fe(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),tk(o)){let s=Je({},o,t(o),{id:l});return r[l]=s,s}else{let s=Je({},o,t(o),{id:l,children:void 0});return r[l]=s,o.children&&(s.children=Ld(o.children,t,a,r)),s}})}function Uo(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ur(t):t,o=Ka(r.pathname||"/",n);if(o==null)return null;let i=Cy(e);rk(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(fe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Nr([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Cy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:ck(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of Ey(i.path))o(i,a,s)}),t}function Ey(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Ey(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function rk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dk(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ok=/^:[\w-]+$/,ik=3,ak=2,lk=1,sk=10,uk=-2,sm=e=>e==="*";function ck(e,t){let n=e.split("/"),r=n.length;return n.some(sm)&&(r+=uk),t&&(r+=ak),n.filter(o=>!sm(o)).reduce((o,i)=>o+(ok.test(i)?ik:i===""?lk:sk),r)}function dk(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function fk(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{let{paramName:d,isOptional:b}=c;if(d==="*"){let v=l[f]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return b&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function hk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),li(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function mk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return li(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ka(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vk(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ur(e):e;return{pathname:n?n.startsWith("/")?n:gk(n,t):t,search:xk(r),hash:Sk(o)}}function gk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function bc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function ky(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ry(e,t){let n=ky(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function _y(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ur(e):(o=Je({},e),fe(!o.pathname||!o.pathname.includes("?"),bc("?","pathname","search",o)),fe(!o.pathname||!o.pathname.includes("#"),bc("#","pathname","hash",o)),fe(!o.search||!o.search.includes("#"),bc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=vk(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const Nr=e=>e.join("/").replace(/\/\/+/g,"/"),yk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class up{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Py(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ty=["post","put","patch","delete"],bk=new Set(Ty),wk=["get",...Ty],Ck=new Set(wk),Ek=new Set([301,302,303,307,308]),kk=new Set([307,308]),wc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Mi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$y=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_k=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Iy="remix-router-transitions";function Pk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;fe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let P=e.detectErrorBoundary;o=$=>({hasErrorBoundary:P($)})}else o=_k;let i={},a=Ld(e.routes,o,void 0,i),l,s=e.basename||"/",u=Je({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,d=null,b=null,g=null,v=e.hydrationData!=null,S=Uo(a,e.history.location,s),p=null;if(S==null){let P=fn(404,{pathname:e.history.location.pathname}),{matches:$,route:O}=vm(a);S=$,p={[O.id]:P}}let h,m=S.some(P=>P.route.lazy),E=S.some(P=>P.route.loader);if(m)h=!1;else if(!E)h=!0;else if(u.v7_partialHydration){let P=e.hydrationData?e.hydrationData.loaderData:null,$=e.hydrationData?e.hydrationData.errors:null,O=H=>H.route.loader?H.route.loader.hydrate===!0?!1:P&&P[H.route.id]!==void 0||$&&$[H.route.id]!==void 0:!0;if($){let H=S.findIndex(Q=>$[Q.route.id]!==void 0);h=S.slice(0,H+1).every(O)}else h=S.every(O)}else h=e.hydrationData!=null;let R,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:h,navigation:wc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},k=tt.Pop,T=!1,M,I=!1,N=new Map,F=null,j=!1,A=!1,B=[],U=[],D=new Map,_=0,L=-1,W=new Map,X=new Set,re=new Map,he=new Map,J=new Set,ue=new Map,V=new Map,de=!1;function Ae(){if(c=e.history.listen(P=>{let{action:$,location:O,delta:H}=P;if(de){de=!1;return}li(V.size===0||H!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Yn({currentLocation:x.location,nextLocation:O,historyAction:$});if(Q&&H!=null){de=!0,e.history.go(H*-1),Ge(Q,{state:"blocked",location:O,proceed(){Ge(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(H)},reset(){let ce=new Map(x.blockers);ce.set(Q,Mi),ie({blockers:ce})}});return}return Ce($,O)}),n){zk(t,N);let P=()=>Fk(t,N);t.addEventListener("pagehide",P),F=()=>t.removeEventListener("pagehide",P)}return x.initialized||Ce(tt.Pop,x.location,{initialHydration:!0}),R}function Pe(){c&&c(),F&&F(),f.clear(),M&&M.abort(),x.fetchers.forEach((P,$)=>Dt($)),x.blockers.forEach((P,$)=>Le($))}function et(P){return f.add(P),()=>f.delete(P)}function ie(P,$){$===void 0&&($={}),x=Je({},x,P);let O=[],H=[];u.v7_fetcherPersist&&x.fetchers.forEach((Q,ce)=>{Q.state==="idle"&&(J.has(ce)?H.push(ce):O.push(ce))}),[...f].forEach(Q=>Q(x,{deletedFetchers:H,unstable_viewTransitionOpts:$.viewTransitionOpts,unstable_flushSync:$.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(Q=>x.fetchers.delete(Q)),H.forEach(Q=>Dt(Q)))}function Te(P,$,O){var H,Q;let{flushSync:ce}=O===void 0?{}:O,ae=x.actionData!=null&&x.navigation.formMethod!=null&&Pn(x.navigation.formMethod)&&x.navigation.state==="loading"&&((H=P.state)==null?void 0:H._isRedirect)!==!0,oe;$.actionData?Object.keys($.actionData).length>0?oe=$.actionData:oe=null:ae?oe=x.actionData:oe=null;let ee=$.loaderData?mm(x.loaderData,$.loaderData,$.matches||[],$.errors):x.loaderData,me=x.blockers;me.size>0&&(me=new Map(me),me.forEach((De,yt)=>me.set(yt,Mi)));let ft=T===!0||x.navigation.formMethod!=null&&Pn(x.navigation.formMethod)&&((Q=P.state)==null?void 0:Q._isRedirect)!==!0;l&&(a=l,l=void 0),j||k===tt.Pop||(k===tt.Push?e.history.push(P,P.state):k===tt.Replace&&e.history.replace(P,P.state));let le;if(k===tt.Pop){let De=N.get(x.location.pathname);De&&De.has(P.pathname)?le={currentLocation:x.location,nextLocation:P}:N.has(P.pathname)&&(le={currentLocation:P,nextLocation:x.location})}else if(I){let De=N.get(x.location.pathname);De?De.add(P.pathname):(De=new Set([P.pathname]),N.set(x.location.pathname,De)),le={currentLocation:x.location,nextLocation:P}}ie(Je({},$,{actionData:oe,loaderData:ee,historyAction:k,location:P,initialized:!0,navigation:wc,revalidation:"idle",restoreScrollPosition:bp(P,$.matches||x.matches),preventScrollReset:ft,blockers:me}),{viewTransitionOpts:le,flushSync:ce===!0}),k=tt.Pop,T=!1,I=!1,j=!1,A=!1,B=[],U=[]}async function se(P,$){if(typeof P=="number"){e.history.go(P);return}let O=jd(x.location,x.matches,s,u.v7_prependBasename,P,u.v7_relativeSplatPath,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:H,submission:Q,error:ce}=um(u.v7_normalizeFormMethod,!1,O,$),ae=x.location,oe=Ta(x.location,H,$&&$.state);oe=Je({},oe,e.history.encodeLocation(oe));let ee=$&&$.replace!=null?$.replace:void 0,me=tt.Push;ee===!0?me=tt.Replace:ee===!1||Q!=null&&Pn(Q.formMethod)&&Q.formAction===x.location.pathname+x.location.search&&(me=tt.Replace);let ft=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,le=($&&$.unstable_flushSync)===!0,De=Yn({currentLocation:ae,nextLocation:oe,historyAction:me});if(De){Ge(De,{state:"blocked",location:oe,proceed(){Ge(De,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),se(P,$)},reset(){let yt=new Map(x.blockers);yt.set(De,Mi),ie({blockers:yt})}});return}return await Ce(me,oe,{submission:Q,pendingError:ce,preventScrollReset:ft,replace:$&&$.replace,enableViewTransition:$&&$.unstable_viewTransition,flushSync:le})}function _e(){if(dt(),ie({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){Ce(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}Ce(k||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function Ce(P,$,O){M&&M.abort(),M=null,k=P,j=(O&&O.startUninterruptedRevalidation)===!0,S1(x.location,x.matches),T=(O&&O.preventScrollReset)===!0,I=(O&&O.enableViewTransition)===!0;let H=l||a,Q=O&&O.overrideNavigation,ce=Uo(H,$,s),ae=(O&&O.flushSync)===!0;if(!ce){let yt=fn(404,{pathname:$.pathname}),{matches:Yt,route:pt}=vm(H);vo(),Te($,{matches:Yt,loaderData:{},errors:{[pt.id]:yt}},{flushSync:ae});return}if(x.initialized&&!A&&Ok(x.location,$)&&!(O&&O.submission&&Pn(O.submission.formMethod))){Te($,{matches:ce},{flushSync:ae});return}M=new AbortController;let oe=Ni(e.history,$,M.signal,O&&O.submission),ee,me;if(O&&O.pendingError)me={[ia(ce).route.id]:O.pendingError};else if(O&&O.submission&&Pn(O.submission.formMethod)){let yt=await jn(oe,$,O.submission,ce,{replace:O.replace,flushSync:ae});if(yt.shortCircuited)return;ee=yt.pendingActionData,me=yt.pendingActionError,Q=Cc($,O.submission),ae=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:ft,loaderData:le,errors:De}=await Lt(oe,$,ce,Q,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ae,ee,me);ft||(M=null,Te($,Je({matches:ce},ee?{actionData:ee}:{},{loaderData:le,errors:De})))}async function jn(P,$,O,H,Q){Q===void 0&&(Q={}),dt();let ce=Ak($,O);ie({navigation:ce},{flushSync:Q.flushSync===!0});let ae,oe=Dd(H,$);if(!oe.route.action&&!oe.route.lazy)ae={type:Ye.error,error:fn(405,{method:P.method,pathname:$.pathname,routeId:oe.route.id})};else if(ae=await Oi("action",P,oe,H,i,o,s,u.v7_relativeSplatPath),P.signal.aborted)return{shortCircuited:!0};if(eo(ae)){let ee;return Q&&Q.replace!=null?ee=Q.replace:ee=ae.location===x.location.pathname+x.location.search,await $e(x,ae,{submission:O,replace:ee}),{shortCircuited:!0}}if(Wo(ae)){let ee=ia(H,oe.route.id);return(Q&&Q.replace)!==!0&&(k=tt.Push),{pendingActionData:{},pendingActionError:{[ee.route.id]:ae.error}}}if(Zr(ae))throw fn(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ae.data}}}async function Lt(P,$,O,H,Q,ce,ae,oe,ee,me,ft){let le=H||Cc($,Q),De=Q||ce||xm(le),yt=l||a,[Yt,pt]=cm(e.history,x,O,De,$,u.v7_partialHydration&&oe===!0,A,B,U,J,re,X,yt,s,me,ft);if(vo(Ee=>!(O&&O.some(je=>je.route.id===Ee))||Yt&&Yt.some(je=>je.route.id===Ee)),L=++_,Yt.length===0&&pt.length===0){let Ee=dr();return Te($,Je({matches:O,loaderData:{},errors:ft||null},me?{actionData:me}:{},Ee?{fetchers:new Map(x.fetchers)}:{}),{flushSync:ee}),{shortCircuited:!0}}if(!j&&(!u.v7_partialHydration||!oe)){pt.forEach(je=>{let zt=x.fetchers.get(je.key),Ya=Li(void 0,zt?zt.data:void 0);x.fetchers.set(je.key,Ya)});let Ee=me||x.actionData;ie(Je({navigation:le},Ee?Object.keys(Ee).length===0?{actionData:null}:{actionData:Ee}:{},pt.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:ee})}pt.forEach(Ee=>{D.has(Ee.key)&&Y(Ee.key),Ee.controller&&D.set(Ee.key,Ee.controller)});let go=()=>pt.forEach(Ee=>Y(Ee.key));M&&M.signal.addEventListener("abort",go);let{results:Bu,loaderResults:yo,fetcherResults:pr}=await sn(x.matches,O,Yt,pt,P);if(P.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",go),pt.forEach(Ee=>D.delete(Ee.key));let Ur=gm(Bu);if(Ur){if(Ur.idx>=Yt.length){let Ee=pt[Ur.idx-Yt.length].key;X.add(Ee)}return await $e(x,Ur.result,{replace:ae}),{shortCircuited:!0}}let{loaderData:Uu,errors:bi}=hm(x,O,Yt,yo,ft,pt,pr,ue);ue.forEach((Ee,je)=>{Ee.subscribe(zt=>{(zt||Ee.done)&&ue.delete(je)})}),u.v7_partialHydration&&oe&&x.errors&&Object.entries(x.errors).filter(Ee=>{let[je]=Ee;return!Yt.some(zt=>zt.route.id===je)}).forEach(Ee=>{let[je,zt]=Ee;bi=Object.assign(bi||{},{[je]:zt})});let Wu=dr(),xo=fr(L),Qa=Wu||xo||pt.length>0;return Je({loaderData:Uu,errors:bi},Qa?{fetchers:new Map(x.fetchers)}:{})}function jt(P,$,O,H){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");D.has(P)&&Y(P);let Q=(H&&H.unstable_flushSync)===!0,ce=l||a,ae=jd(x.location,x.matches,s,u.v7_prependBasename,O,u.v7_relativeSplatPath,$,H==null?void 0:H.relative),oe=Uo(ce,ae,s);if(!oe){Ct(P,$,fn(404,{pathname:ae}),{flushSync:Q});return}let{path:ee,submission:me,error:ft}=um(u.v7_normalizeFormMethod,!0,ae,H);if(ft){Ct(P,$,ft,{flushSync:Q});return}let le=Dd(oe,ee);if(T=(H&&H.preventScrollReset)===!0,me&&Pn(me.formMethod)){Qt(P,$,ee,le,oe,Q,me);return}re.set(P,{routeId:$,path:ee}),At(P,$,ee,le,oe,Q,me)}async function Qt(P,$,O,H,Q,ce,ae){if(dt(),re.delete(P),!H.route.action&&!H.route.lazy){let je=fn(405,{method:ae.formMethod,pathname:O,routeId:$});Ct(P,$,je,{flushSync:ce});return}let oe=x.fetchers.get(P);be(P,Dk(ae,oe),{flushSync:ce});let ee=new AbortController,me=Ni(e.history,O,ee.signal,ae);D.set(P,ee);let ft=_,le=await Oi("action",me,H,Q,i,o,s,u.v7_relativeSplatPath);if(me.signal.aborted){D.get(P)===ee&&D.delete(P);return}if(u.v7_fetcherPersist&&J.has(P)){if(eo(le)||Wo(le)){be(P,vr(void 0));return}}else{if(eo(le))if(D.delete(P),L>ft){be(P,vr(void 0));return}else return X.add(P),be(P,Li(ae)),$e(x,le,{fetcherSubmission:ae});if(Wo(le)){Ct(P,$,le.error);return}}if(Zr(le))throw fn(400,{type:"defer-action"});let De=x.navigation.location||x.location,yt=Ni(e.history,De,ee.signal),Yt=l||a,pt=x.navigation.state!=="idle"?Uo(Yt,x.navigation.location,s):x.matches;fe(pt,"Didn't find any matches after fetcher action");let go=++_;W.set(P,go);let Bu=Li(ae,le.data);x.fetchers.set(P,Bu);let[yo,pr]=cm(e.history,x,pt,ae,De,!1,A,B,U,J,re,X,Yt,s,{[H.route.id]:le.data},void 0);pr.filter(je=>je.key!==P).forEach(je=>{let zt=je.key,Ya=x.fetchers.get(zt),w1=Li(void 0,Ya?Ya.data:void 0);x.fetchers.set(zt,w1),D.has(zt)&&Y(zt),je.controller&&D.set(zt,je.controller)}),ie({fetchers:new Map(x.fetchers)});let Ur=()=>pr.forEach(je=>Y(je.key));ee.signal.addEventListener("abort",Ur);let{results:Uu,loaderResults:bi,fetcherResults:Wu}=await sn(x.matches,pt,yo,pr,yt);if(ee.signal.aborted)return;ee.signal.removeEventListener("abort",Ur),W.delete(P),D.delete(P),pr.forEach(je=>D.delete(je.key));let xo=gm(Uu);if(xo){if(xo.idx>=yo.length){let je=pr[xo.idx-yo.length].key;X.add(je)}return $e(x,xo.result)}let{loaderData:Qa,errors:Ee}=hm(x,x.matches,yo,bi,void 0,pr,Wu,ue);if(x.fetchers.has(P)){let je=vr(le.data);x.fetchers.set(P,je)}fr(go),x.navigation.state==="loading"&&go>L?(fe(k,"Expected pending action"),M&&M.abort(),Te(x.navigation.location,{matches:pt,loaderData:Qa,errors:Ee,fetchers:new Map(x.fetchers)})):(ie({errors:Ee,loaderData:mm(x.loaderData,Qa,pt,Ee),fetchers:new Map(x.fetchers)}),A=!1)}async function At(P,$,O,H,Q,ce,ae){let oe=x.fetchers.get(P);be(P,Li(ae,oe?oe.data:void 0),{flushSync:ce});let ee=new AbortController,me=Ni(e.history,O,ee.signal);D.set(P,ee);let ft=_,le=await Oi("loader",me,H,Q,i,o,s,u.v7_relativeSplatPath);if(Zr(le)&&(le=await Ny(le,me.signal,!0)||le),D.get(P)===ee&&D.delete(P),!me.signal.aborted){if(J.has(P)){be(P,vr(void 0));return}if(eo(le))if(L>ft){be(P,vr(void 0));return}else{X.add(P),await $e(x,le);return}if(Wo(le)){Ct(P,$,le.error);return}fe(!Zr(le),"Unhandled fetcher deferred data"),be(P,vr(le.data))}}async function $e(P,$,O){let{submission:H,fetcherSubmission:Q,replace:ce}=O===void 0?{}:O;$.revalidate&&(A=!0);let ae=Ta(P.location,$.location,{_isRedirect:!0});if(fe(ae,"Expected a location on the redirect navigation"),n){let De=!1;if($.reloadDocument)De=!0;else if($y.test($.location)){const yt=e.history.createURL($.location);De=yt.origin!==t.location.origin||Ka(yt.pathname,s)==null}if(De){ce?t.location.replace($.location):t.location.assign($.location);return}}M=null;let oe=ce===!0?tt.Replace:tt.Push,{formMethod:ee,formAction:me,formEncType:ft}=P.navigation;!H&&!Q&&ee&&me&&ft&&(H=xm(P.navigation));let le=H||Q;if(kk.has($.status)&&le&&Pn(le.formMethod))await Ce(oe,ae,{submission:Je({},le,{formAction:$.location}),preventScrollReset:T});else{let De=Cc(ae,H);await Ce(oe,ae,{overrideNavigation:De,fetcherSubmission:Q,preventScrollReset:T})}}async function sn(P,$,O,H,Q){let ce=await Promise.all([...O.map(ee=>Oi("loader",Q,ee,$,i,o,s,u.v7_relativeSplatPath)),...H.map(ee=>ee.matches&&ee.match&&ee.controller?Oi("loader",Ni(e.history,ee.path,ee.controller.signal),ee.match,ee.matches,i,o,s,u.v7_relativeSplatPath):{type:Ye.error,error:fn(404,{pathname:ee.path})})]),ae=ce.slice(0,O.length),oe=ce.slice(O.length);return await Promise.all([ym(P,O,ae,ae.map(()=>Q.signal),!1,x.loaderData),ym(P,H.map(ee=>ee.match),oe,H.map(ee=>ee.controller?ee.controller.signal:null),!0)]),{results:ce,loaderResults:ae,fetcherResults:oe}}function dt(){A=!0,B.push(...vo()),re.forEach((P,$)=>{D.has($)&&(U.push($),Y($))})}function be(P,$,O){O===void 0&&(O={}),x.fetchers.set(P,$),ie({fetchers:new Map(x.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function Ct(P,$,O,H){H===void 0&&(H={});let Q=ia(x.matches,$);Dt(P),ie({errors:{[Q.route.id]:O},fetchers:new Map(x.fetchers)},{flushSync:(H&&H.flushSync)===!0})}function En(P){return u.v7_fetcherPersist&&(he.set(P,(he.get(P)||0)+1),J.has(P)&&J.delete(P)),x.fetchers.get(P)||Rk}function Dt(P){let $=x.fetchers.get(P);D.has(P)&&!($&&$.state==="loading"&&W.has(P))&&Y(P),re.delete(P),W.delete(P),X.delete(P),J.delete(P),x.fetchers.delete(P)}function Ne(P){if(u.v7_fetcherPersist){let $=(he.get(P)||0)-1;$<=0?(he.delete(P),J.add(P)):he.set(P,$)}else Dt(P);ie({fetchers:new Map(x.fetchers)})}function Y(P){let $=D.get(P);fe($,"Expected fetch controller: "+P),$.abort(),D.delete(P)}function un(P){for(let $ of P){let O=En($),H=vr(O.data);x.fetchers.set($,H)}}function dr(){let P=[],$=!1;for(let O of X){let H=x.fetchers.get(O);fe(H,"Expected fetcher: "+O),H.state==="loading"&&(X.delete(O),P.push(O),$=!0)}return un(P),$}function fr(P){let $=[];for(let[O,H]of W)if(H0}function te(P,$){let O=x.blockers.get(P)||Mi;return V.get(P)!==$&&V.set(P,$),O}function Le(P){x.blockers.delete(P),V.delete(P)}function Ge(P,$){let O=x.blockers.get(P)||Mi;fe(O.state==="unblocked"&&$.state==="blocked"||O.state==="blocked"&&$.state==="blocked"||O.state==="blocked"&&$.state==="proceeding"||O.state==="blocked"&&$.state==="unblocked"||O.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+$.state);let H=new Map(x.blockers);H.set(P,$),ie({blockers:H})}function Yn(P){let{currentLocation:$,nextLocation:O,historyAction:H}=P;if(V.size===0)return;V.size>1&&li(!1,"A router only supports one blocker at a time");let Q=Array.from(V.entries()),[ce,ae]=Q[Q.length-1],oe=x.blockers.get(ce);if(!(oe&&oe.state==="proceeding")&&ae({currentLocation:$,nextLocation:O,historyAction:H}))return ce}function vo(P){let $=[];return ue.forEach((O,H)=>{(!P||P(H))&&(O.cancel(),$.push(H),ue.delete(H))}),$}function x1(P,$,O){if(d=P,g=$,b=O||null,!v&&x.navigation===wc){v=!0;let H=bp(x.location,x.matches);H!=null&&ie({restoreScrollPosition:H})}return()=>{d=null,g=null,b=null}}function Sp(P,$){return b&&b(P,$.map(H=>nk(H,x.loaderData)))||P.key}function S1(P,$){if(d&&g){let O=Sp(P,$);d[O]=g()}}function bp(P,$){if(d){let O=Sp(P,$),H=d[O];if(typeof H=="number")return H}return null}function b1(P){i={},l=Ld(P,o,void 0,i)}return R={get basename(){return s},get future(){return u},get state(){return x},get routes(){return a},get window(){return t},initialize:Ae,subscribe:et,enableScrollRestoration:x1,navigate:se,fetch:jt,revalidate:_e,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:En,deleteFetcher:Ne,dispose:Pe,getBlocker:te,deleteBlocker:Le,_internalFetchControllers:D,_internalActiveDeferreds:ue,_internalSetRoutes:b1},R}function Tk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jd(e,t,n,r,o,i,a,l){let s,u;if(a){s=[];for(let f of t)if(s.push(f),f.route.id===a){u=f;break}}else s=t,u=t[t.length-1];let c=_y(o||".",Ry(s,i),Ka(e.pathname,n)||e.pathname,l==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!cp(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Nr([n,c.pathname])),Va(c)}function um(e,t,n,r){if(!r||!Tk(r))return{path:n};if(r.formMethod&&!jk(r.formMethod))return{path:n,error:fn(405,{method:r.formMethod})};let o=()=>({path:n,error:fn(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=Oy(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Pn(a))return o();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,g)=>{let[v,S]=g;return""+b+v+"="+S+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Pn(a))return o();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return o()}}}fe(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Ad(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Ad(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=pm(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=pm(s)}catch{return o()}let c={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Pn(c.formMethod))return{path:n,submission:c};let f=ur(n);return t&&f.search&&cp(f.search)&&s.append("index",""),f.search="?"+s,{path:Va(f),submission:c}}function $k(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function cm(e,t,n,r,o,i,a,l,s,u,c,f,d,b,g,v){let S=v?Object.values(v)[0]:g?Object.values(g)[0]:void 0,p=e.createURL(t.location),h=e.createURL(o),m=v?Object.keys(v)[0]:void 0,R=$k(n,m).filter((k,T)=>{let{route:M}=k;if(M.lazy)return!0;if(M.loader==null)return!1;if(i)return M.loader.hydrate?!0:t.loaderData[M.id]===void 0&&(!t.errors||t.errors[M.id]===void 0);if(Ik(t.loaderData,t.matches[T],k)||l.some(F=>F===k.route.id))return!0;let I=t.matches[T],N=k;return dm(k,Je({currentUrl:p,currentParams:I.params,nextUrl:h,nextParams:N.params},r,{actionResult:S,defaultShouldRevalidate:a||p.pathname+p.search===h.pathname+h.search||p.search!==h.search||My(I,N)}))}),x=[];return c.forEach((k,T)=>{if(i||!n.some(j=>j.route.id===k.routeId)||u.has(T))return;let M=Uo(d,k.path,b);if(!M){x.push({key:T,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(T),N=Dd(M,k.path),F=!1;f.has(T)?F=!1:s.includes(T)?F=!0:I&&I.state!=="idle"&&I.data===void 0?F=a:F=dm(N,Je({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:a})),F&&x.push({key:T,routeId:k.routeId,path:k.path,matches:M,match:N,controller:new AbortController})}),[R,x]}function Ik(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function My(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function dm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function fm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];fe(o,"No route found in manifest");let i={};for(let a in r){let s=o[a]!==void 0&&a!=="hasErrorBoundary";li(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!ek.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Je({},t(o),{lazy:void 0}))}async function Oi(e,t,n,r,o,i,a,l,s){s===void 0&&(s={});let u,c,f,d=v=>{let S,p=new Promise((h,m)=>S=m);return f=()=>S(),t.signal.addEventListener("abort",f),Promise.race([v({request:t,params:n.params,context:s.requestContext}),p])};try{let v=n.route[e];if(n.route.lazy)if(v){let S,p=await Promise.all([d(v).catch(h=>{S=h}),fm(n.route,i,o)]);if(S)throw S;c=p[0]}else if(await fm(n.route,i,o),v=n.route[e],v)c=await d(v);else if(e==="action"){let S=new URL(t.url),p=S.pathname+S.search;throw fn(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:Ye.data,data:void 0};else if(v)c=await d(v);else{let S=new URL(t.url),p=S.pathname+S.search;throw fn(404,{pathname:p})}fe(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){u=Ye.error,c=v}finally{f&&t.signal.removeEventListener("abort",f)}if(Lk(c)){let v=c.status;if(Ek.has(v)){let p=c.headers.get("Location");if(fe(p,"Redirects returned/thrown from loaders/actions must have a Location header"),!$y.test(p))p=jd(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,p,l);else if(!s.isStaticRequest){let h=new URL(t.url),m=p.startsWith("//")?new URL(h.protocol+p):new URL(p),E=Ka(m.pathname,a)!=null;m.origin===h.origin&&E&&(p=m.pathname+m.search+m.hash)}if(s.isStaticRequest)throw c.headers.set("Location",p),c;return{type:Ye.redirect,status:v,location:p,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:u===Ye.error?Ye.error:Ye.data,response:c};let S;try{let p=c.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?c.body==null?S=null:S=await c.json():S=await c.text()}catch(p){return{type:Ye.error,error:p}}return u===Ye.error?{type:u,error:new up(v,c.statusText,S),headers:c.headers}:{type:Ye.data,data:S,statusCode:c.status,headers:c.headers}}if(u===Ye.error)return{type:u,error:c};if(Nk(c)){var b,g;return{type:Ye.deferred,deferredData:c,statusCode:(b=c.init)==null?void 0:b.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:Ye.data,data:c}}function Ni(e,t,n,r){let o=e.createURL(Oy(t)).toString(),i={signal:n};if(r&&Pn(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Ad(r.formData):i.body=r.formData}return new Request(o,i)}function Ad(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function pm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Mk(e,t,n,r,o){let i={},a=null,l,s=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(fe(!eo(c),"Cannot handle redirect results in processLoaderData"),Wo(c)){let b=ia(e,d),g=c.error;r&&(g=Object.values(r)[0],r=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=g),i[d]=void 0,s||(s=!0,l=Py(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else Zr(c)?(o.set(d,c.deferredData),i[d]=c.deferredData.data):i[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(l=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:u}}function hm(e,t,n,r,o,i,a,l){let{loaderData:s,errors:u}=Mk(t,n,r,o,l);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function vm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function fn(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new up(e||500,a,new Error(l),!0)}function gm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(eo(n))return{result:n,idx:t}}}function Oy(e){let t=typeof e=="string"?ur(e):e;return Va(Je({},t,{hash:""}))}function Ok(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Zr(e){return e.type===Ye.deferred}function Wo(e){return e.type===Ye.error}function eo(e){return(e&&e.type)===Ye.redirect}function Nk(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Lk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jk(e){return Ck.has(e.toLowerCase())}function Pn(e){return bk.has(e.toLowerCase())}async function ym(e,t,n,r,o,i){for(let a=0;af.route.id===s.route.id),c=u!=null&&!My(u,s)&&(i&&i[s.route.id])!==void 0;if(Zr(l)&&(o||c)){let f=r[a];fe(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ny(l,f,o).then(d=>{d&&(n[a]=d||n[a])})}}}async function Ny(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ye.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Ye.error,error:o}}return{type:Ye.data,data:e.deferredData.data}}}function cp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Dd(e,t){let n=typeof t=="string"?ur(t).search:t.search;if(e[e.length-1].route.index&&cp(n||""))return e[e.length-1];let r=ky(e);return r[r.length-1]}function xm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Cc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ak(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Li(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Dk(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function vr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function zk(e,t){try{let n=e.sessionStorage.getItem(Iy);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Fk(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(Iy,JSON.stringify(n))}catch(r){li(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.22.3 * * Copyright (c) Remix Software Inc. @@ -71,7 +71,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=_y(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}const Wk=y.createContext(null);function Hk(e){let t=y.useContext(ho).outlet;return t&&y.createElement(Wk.Provider,{value:e},t)}function Vk(e,t,n,r){Eu()||fe(!1);let{navigator:o}=y.useContext(wu),{matches:i}=y.useContext(ho),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Ay(),c;if(t){var f;let S=typeof t=="string"?ur(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||fe(!1),c=S}else c=u;let d=c.pathname||"/",b=d;if(s!=="/"){let S=s.replace(/^\//,"").split("/");b="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=Bo(e,{pathname:b}),v=Yk(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Nr([s,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Nr([s,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?y.createElement(Cu.Provider,{value:{location:Ta({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tt.Pop}},v):v}function Kk(){let e=e2(),t=Py(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const Gk=y.createElement(Kk,null);class qk extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(ho.Provider,{value:this.props.routeContext},y.createElement(jy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qk(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(bu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(ho.Provider,{value:t},r)}function Yk(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));c>=0||fe(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let b,g=!1,v=null,S=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||Gk,s&&(u<0&&d===0?(n2("route-fallback",!1),g=!0,S=null):u===d&&(g=!0,S=f.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,d+1)),h=()=>{let m;return b?m=v:g?m=S:f.route.Component?m=y.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,y.createElement(Qk,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(qk,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var zy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zy||{}),ps=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ps||{});function Xk(e){let t=y.useContext(bu);return t||fe(!1),t}function Jk(e){let t=y.useContext(Ly);return t||fe(!1),t}function Zk(e){let t=y.useContext(ho);return t||fe(!1),t}function Fy(e){let t=Zk(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function e2(){var e;let t=y.useContext(jy),n=Jk(ps.UseRouteError),r=Fy(ps.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function t2(){let{router:e}=Xk(zy.UseNavigateStable),t=Fy(ps.UseNavigateStable),n=y.useRef(!1);return Dy(()=>{n.current=!0}),y.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ta({fromRouteId:t},i)))},[e,t])}const xm={};function n2(e,t,n){!t&&!xm[e]&&(xm[e]=!0)}function r2(e){return Hk(e.context)}function o2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=tt.Pop,navigator:i,static:a=!1,future:l}=e;Eu()&&fe(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:a,future:Ta({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=ur(r));let{pathname:c="/",search:f="",hash:d="",state:b=null,key:g="default"}=r,v=y.useMemo(()=>{let S=Va(c,s);return S==null?null:{location:{pathname:S,search:f,hash:d,state:b,key:g},navigationType:o}},[s,c,f,d,b,g,o]);return v==null?null:y.createElement(wu.Provider,{value:u},y.createElement(Cu.Provider,{children:n,value:v}))}new Promise(()=>{});function i2(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=_y(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Nr([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}const Wk=y.createContext(null);function Hk(e){let t=y.useContext(mo).outlet;return t&&y.createElement(Wk.Provider,{value:e},t)}function Vk(e,t,n,r){ku()||fe(!1);let{navigator:o}=y.useContext(Cu),{matches:i}=y.useContext(mo),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=Ay(),c;if(t){var f;let S=typeof t=="string"?ur(t):t;s==="/"||(f=S.pathname)!=null&&f.startsWith(s)||fe(!1),c=S}else c=u;let d=c.pathname||"/",b=d;if(s!=="/"){let S=s.replace(/^\//,"").split("/");b="/"+d.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=Uo(e,{pathname:b}),v=Yk(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Nr([s,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:Nr([s,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?y.createElement(Eu.Provider,{value:{location:$a({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tt.Pop}},v):v}function Kk(){let e=e2(),t=Py(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const Gk=y.createElement(Kk,null);class qk extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(mo.Provider,{value:this.props.routeContext},y.createElement(jy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qk(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(wu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(mo.Provider,{value:t},r)}function Yk(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));c>=0||fe(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,f,d)=>{let b,g=!1,v=null,S=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||Gk,s&&(u<0&&d===0?(n2("route-fallback",!1),g=!0,S=null):u===d&&(g=!0,S=f.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,d+1)),h=()=>{let m;return b?m=v:g?m=S:f.route.Component?m=y.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,y.createElement(Qk,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(qk,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var zy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zy||{}),ps=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ps||{});function Xk(e){let t=y.useContext(wu);return t||fe(!1),t}function Jk(e){let t=y.useContext(Ly);return t||fe(!1),t}function Zk(e){let t=y.useContext(mo);return t||fe(!1),t}function Fy(e){let t=Zk(),n=t.matches[t.matches.length-1];return n.route.id||fe(!1),n.route.id}function e2(){var e;let t=y.useContext(jy),n=Jk(ps.UseRouteError),r=Fy(ps.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function t2(){let{router:e}=Xk(zy.UseNavigateStable),t=Fy(ps.UseNavigateStable),n=y.useRef(!1);return Dy(()=>{n.current=!0}),y.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$a({fromRouteId:t},i)))},[e,t])}const Sm={};function n2(e,t,n){!t&&!Sm[e]&&(Sm[e]=!0)}function r2(e){return Hk(e.context)}function o2(e){let{basename:t="/",children:n=null,location:r,navigationType:o=tt.Pop,navigator:i,static:a=!1,future:l}=e;ku()&&fe(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:a,future:$a({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof r=="string"&&(r=ur(r));let{pathname:c="/",search:f="",hash:d="",state:b=null,key:g="default"}=r,v=y.useMemo(()=>{let S=Ka(c,s);return S==null?null:{location:{pathname:S,search:f,hash:d,state:b,key:g},navigationType:o}},[s,c,f,d,b,g,o]);return v==null?null:y.createElement(Cu.Provider,{value:u},y.createElement(Eu.Provider,{children:n,value:v}))}new Promise(()=>{});function i2(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.3 * * Copyright (c) Remix Software Inc. @@ -80,7 +80,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function v2(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=y.useState(n.state),[a,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,b]=y.useState(),[g,v]=y.useState(),S=y.useRef(new Map),{v7_startTransition:p}=r||{},h=y.useCallback(k=>{p?h2(k):k()},[p]),m=y.useCallback((k,T)=>{let{deletedFetchers:M,unstable_flushSync:I,unstable_viewTransitionOpts:N}=T;M.forEach(j=>S.current.delete(j)),k.fetchers.forEach((j,A)=>{j.data!==void 0&&S.current.set(A,j.data)});let F=n.window==null||typeof n.window.document.startViewTransition!="function";if(!N||F){I?Li(()=>i(k)):h(()=>i(k));return}if(I){Li(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let j=n.window.document.startViewTransition(()=>{Li(()=>i(k))});j.finished.finally(()=>{Li(()=>{f(void 0),b(void 0),l(void 0),u({isTransitioning:!1})})}),Li(()=>b(j));return}d?(c&&c.resolve(),d.skipTransition(),v({state:k,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[n.window,d,c,S,h]);y.useLayoutEffect(()=>n.subscribe(m),[n,m]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new m2)},[s]),y.useEffect(()=>{if(c&&a&&n.window){let k=a,T=c.promise,M=n.window.document.startViewTransition(async()=>{h(()=>i(k)),await T});M.finished.finally(()=>{f(void 0),b(void 0),l(void 0),u({isTransitioning:!1})}),b(M)}},[h,a,c,n.window]),y.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,d,o.location,a]),y.useEffect(()=>{!s.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[s.isTransitioning,g]),y.useEffect(()=>{},[]);let E=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,T,M)=>n.navigate(k,{state:T,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(k,T,M)=>n.navigate(k,{replace:!0,state:T,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),R=n.basename||"/",x=y.useMemo(()=>({router:n,navigator:E,static:!1,basename:R}),[n,E,R]);return y.createElement(y.Fragment,null,y.createElement(bu.Provider,{value:x},y.createElement(Ly.Provider,{value:o},y.createElement(d2.Provider,{value:S.current},y.createElement(c2.Provider,{value:s},y.createElement(o2,{basename:R,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?y.createElement(g2,{routes:n.routes,future:n.future,state:o}):t))))),null)}function g2(e){let{routes:t,future:n,state:r}=e;return Vk(t,void 0,r,n)}var wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wm||(wm={}));var Cm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Cm||(Cm={}));function y2(e){return ve("MuiSvgIcon",e)}ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const x2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S2=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return ye(o,y2,r)},b2=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,f,d,b,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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),Dd=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,b=q(r,x2),g=y.isValidElement(o)&&o.type==="svg",v=C({},r,{color:a,component:l,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:g}),S={};c||(S.viewBox=d);const p=S2(v);return w.jsxs(b2,C({as:l,className:Z(p.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},S,b,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?w.jsx("title",{children:f}):null]}))});Dd.muiName="SvgIcon";function Nt(e,t){function n(r,o){return w.jsx(Dd,C({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Dd.muiName,y.memo(y.forwardRef(n))}const w2={configure:e=>{ey.configure(e)}},C2=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ne,createChainedFunction:Pd,createSvgIcon:Nt,debounce:gu,deprecatedPropType:pC,isMuiElement:ra,ownerDocument:Kt,ownerWindow:Qn,requirePropFactory:hC,setRef:ds,unstable_ClassNameGenerator:w2,unstable_useEnhancedEffect:On,unstable_useId:np,unsupportedProp:vC,useControlled:Td,useEventCallback:Jr,useForkRef:ot,useIsFocusVisible:ay},Symbol.toStringTag,{value:"Module"}));function E2(e){return xe}function zd(e,t){return zd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zd(e,t)}function By(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zd(e,t)}const Em={disabled:!1},ms=Bt.createContext(null);var k2=function(t){return t.scrollTop},Vi="unmounted",Kr="exited",Gr="entering",Ro="entered",Fd="exiting",cr=function(e){By(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?l?(s=Kr,i.appearStatus=Gr):s=Ro:r.unmountOnExit||r.mountOnEnter?s=Vi:s=Kr,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Vi?{status:Kr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Gr&&a!==Ro&&(i=Gr):(a===Gr||a===Ro)&&(i=Fd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Gr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Hi.findDOMNode(this);a&&k2(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Vi})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,s=this.props.nodeRef?[l]:[Hi.findDOMNode(this),l],u=s[0],c=s[1],f=this.getTimeouts(),d=l?f.appear:f.enter;if(!o&&!a||Em.disabled){this.safeSetState({status:Ro},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Gr},function(){i.props.onEntering(u,c),i.onTransitionEnd(d,function(){i.safeSetState({status:Ro},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Hi.findDOMNode(this);if(!i||Em.disabled){this.safeSetState({status:Kr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Fd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Kr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Hi.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Vi)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=q(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Bt.createElement(ms.Provider,{value:null},typeof a=="function"?a(o,l):Bt.cloneElement(Bt.Children.only(a),l))},t}(Bt.Component);cr.contextType=ms;cr.propTypes={};function ko(){}cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ko,onEntering:ko,onEntered:ko,onExit:ko,onExiting:ko,onExited:ko};cr.UNMOUNTED=Vi;cr.EXITED=Kr;cr.ENTERING=Gr;cr.ENTERED=Ro;cr.EXITING=Fd;const ku=cr;function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cp(e,t){var n=function(i){return t&&y.isValidElement(i)?t(i):i},r=Object.create(null);return e&&y.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function _2(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var s in t){if(r[s])for(a=0;ae.scrollTop;function Ar(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function O2(e){return ve("MuiCollapse",e)}ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const N2=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],L2=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ye(r,O2,n)},j2=K("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})=>C({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&C({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),A2=K("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>C({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),D2=K("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>C({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Uy=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:l="0px",component:s,easing:u,in:c,onEnter:f,onEntered:d,onEntering:b,onExit:g,onExited:v,onExiting:S,orientation:p="vertical",style:h,timeout:m=xy.standard,TransitionComponent:E=ku}=r,R=q(r,N2),x=C({},r,{orientation:p,collapsedSize:l}),k=L2(x),T=Ua(),M=rp(),I=y.useRef(null),N=y.useRef(),F=typeof l=="number"?`${l}px`:l,j=p==="horizontal",A=j?"width":"height",B=y.useRef(null),U=ot(n,B),D=V=>de=>{if(V){const Ae=B.current;de===void 0?V(Ae):V(Ae,de)}},_=()=>I.current?I.current[j?"clientWidth":"clientHeight"]:0,L=D((V,de)=>{I.current&&j&&(I.current.style.position="absolute"),V.style[A]=F,f&&f(V,de)}),W=D((V,de)=>{const Ae=_();I.current&&j&&(I.current.style.position="");const{duration:Pe,easing:et}=Ar({style:h,timeout:m,easing:u},{mode:"enter"});if(m==="auto"){const ie=T.transitions.getAutoHeightDuration(Ae);V.style.transitionDuration=`${ie}ms`,N.current=ie}else V.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;V.style[A]=`${Ae}px`,V.style.transitionTimingFunction=et,b&&b(V,de)}),X=D((V,de)=>{V.style[A]="auto",d&&d(V,de)}),re=D(V=>{V.style[A]=`${_()}px`,g&&g(V)}),he=D(v),J=D(V=>{const de=_(),{duration:Ae,easing:Pe}=Ar({style:h,timeout:m,easing:u},{mode:"exit"});if(m==="auto"){const et=T.transitions.getAutoHeightDuration(de);V.style.transitionDuration=`${et}ms`,N.current=et}else V.style.transitionDuration=typeof Ae=="string"?Ae:`${Ae}ms`;V.style[A]=F,V.style.transitionTimingFunction=Pe,S&&S(V)}),ue=V=>{m==="auto"&&M.start(N.current||0,V),o&&o(B.current,V)};return w.jsx(E,C({in:c,onEnter:L,onEntered:X,onEntering:W,onExit:re,onExited:he,onExiting:J,addEndListener:ue,nodeRef:B,timeout:m==="auto"?null:m},R,{children:(V,de)=>w.jsx(j2,C({as:s,className:Z(k.root,a,{entered:k.entered,exited:!c&&F==="0px"&&k.hidden}[V]),style:C({[j?"minWidth":"minHeight"]:F},h),ref:U},de,{ownerState:C({},x,{state:V}),children:w.jsx(A2,{ownerState:C({},x,{state:V}),className:k.wrapper,ref:I,children:w.jsx(D2,{ownerState:C({},x,{state:V}),className:k.wrapperInner,children:i})})}))}))});Uy.muiSupportAuto=!0;const km=Uy;function z2(e){return ve("MuiPaper",e)}ge("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const F2=["className","component","elevation","square","variant"],B2=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,z2,o)},U2=K("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return C({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&C({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rt("#fff",om(t.elevation))}, ${rt("#fff",om(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),W2=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation"}=r,u=q(r,F2),c=C({},r,{component:i,elevation:a,square:l,variant:s}),f=B2(c);return w.jsx(U2,C({as:i,ownerState:c,className:Z(f.root,o),ref:n},u))}),Ru=W2;function li(e){return typeof e=="string"}function Wy(e,t,n){return e===void 0||li(e)?t:C({},t,{ownerState:C({},t.ownerState,n)})}function Hy(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 Vy(e,t,n){return typeof e=="function"?e(t,n):e}function Rm(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 Ky(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=Z(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=C({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=C({},n,o,r);return b.length>0&&(v.className=b),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=Hy(C({},o,r)),l=Rm(r),s=Rm(o),u=t(a),c=Z(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=C({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=C({},u,n,s,l);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const H2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function si(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=q(e,H2),l=i?{}:Vy(r,o),{props:s,internalRef:u}=Ky(C({},a,{externalSlotProps:l})),c=ot(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Wy(n,C({},s,{ref:c}),o)}const V2=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],K2=["component","slots","slotProps"],G2=["component"];function _m(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:l}=t,s=q(t,V2),{component:u,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=i,d=q(i,K2),b=c[e]||r,g=Vy(f[e],o),v=Ky(C({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g})),{props:{component:S},internalRef:p}=v,h=q(v.props,G2),m=ot(p,g==null?void 0:g.ref,t.ref),E=a?a(h):{},R=C({},o,E),x=e==="root"?S||u:S,k=Wy(b,C({},e==="root"&&!u&&!c[e]&&l,e!=="root"&&!c[e]&&l,h,x&&{as:x},{ref:m}),R);return Object.keys(E).forEach(T=>{delete k[T]}),[b,k]}function q2(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,f]=y.useState(!1),d=Z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=Z(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&f(!0),y.useEffect(()=>{if(!l&&s!=null){const v=setTimeout(s,u);return()=>{clearTimeout(v)}}},[s,l,u]),w.jsx("span",{className:d,style:b,children:w.jsx("span",{className:g})})}const fn=ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q2=["center","classes","className"];let _u=e=>e,Pm,Tm,$m,Im;const Bd=550,Y2=80,X2=Zs(Pm||(Pm=_u` + */function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function v2(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=y.useState(n.state),[a,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,b]=y.useState(),[g,v]=y.useState(),S=y.useRef(new Map),{v7_startTransition:p}=r||{},h=y.useCallback(k=>{p?h2(k):k()},[p]),m=y.useCallback((k,T)=>{let{deletedFetchers:M,unstable_flushSync:I,unstable_viewTransitionOpts:N}=T;M.forEach(j=>S.current.delete(j)),k.fetchers.forEach((j,A)=>{j.data!==void 0&&S.current.set(A,j.data)});let F=n.window==null||typeof n.window.document.startViewTransition!="function";if(!N||F){I?ji(()=>i(k)):h(()=>i(k));return}if(I){ji(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let j=n.window.document.startViewTransition(()=>{ji(()=>i(k))});j.finished.finally(()=>{ji(()=>{f(void 0),b(void 0),l(void 0),u({isTransitioning:!1})})}),ji(()=>b(j));return}d?(c&&c.resolve(),d.skipTransition(),v({state:k,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[n.window,d,c,S,h]);y.useLayoutEffect(()=>n.subscribe(m),[n,m]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new m2)},[s]),y.useEffect(()=>{if(c&&a&&n.window){let k=a,T=c.promise,M=n.window.document.startViewTransition(async()=>{h(()=>i(k)),await T});M.finished.finally(()=>{f(void 0),b(void 0),l(void 0),u({isTransitioning:!1})}),b(M)}},[h,a,c,n.window]),y.useEffect(()=>{c&&a&&o.location.key===a.location.key&&c.resolve()},[c,d,o.location,a]),y.useEffect(()=>{!s.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[s.isTransitioning,g]),y.useEffect(()=>{},[]);let E=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,T,M)=>n.navigate(k,{state:T,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(k,T,M)=>n.navigate(k,{replace:!0,state:T,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[n]),R=n.basename||"/",x=y.useMemo(()=>({router:n,navigator:E,static:!1,basename:R}),[n,E,R]);return y.createElement(y.Fragment,null,y.createElement(wu.Provider,{value:x},y.createElement(Ly.Provider,{value:o},y.createElement(d2.Provider,{value:S.current},y.createElement(c2.Provider,{value:s},y.createElement(o2,{basename:R,location:o.location,navigationType:o.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?y.createElement(g2,{routes:n.routes,future:n.future,state:o}):t))))),null)}function g2(e){let{routes:t,future:n,state:r}=e;return Vk(t,void 0,r,n)}var Cm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cm||(Cm={}));var Em;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Em||(Em={}));function y2(e){return ve("MuiSvgIcon",e)}ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const x2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S2=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return xe(o,y2,r)},b2=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,f,d,b,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:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),zd=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,b=q(r,x2),g=y.isValidElement(o)&&o.type==="svg",v=C({},r,{color:a,component:l,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:g}),S={};c||(S.viewBox=d);const p=S2(v);return w.jsxs(b2,C({as:l,className:Z(p.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},S,b,g&&o.props,{ownerState:v,children:[g?o.props.children:o,f?w.jsx("title",{children:f}):null]}))});zd.muiName="SvgIcon";function Nt(e,t){function n(r,o){return w.jsx(zd,C({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=zd.muiName,y.memo(y.forwardRef(n))}const w2={configure:e=>{ey.configure(e)}},C2=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ne,createChainedFunction:Td,createSvgIcon:Nt,debounce:yu,deprecatedPropType:pC,isMuiElement:oa,ownerDocument:Kt,ownerWindow:Qn,requirePropFactory:hC,setRef:ds,unstable_ClassNameGenerator:w2,unstable_useEnhancedEffect:Nn,unstable_useId:rp,unsupportedProp:vC,useControlled:$d,useEventCallback:Jr,useForkRef:ot,useIsFocusVisible:ay},Symbol.toStringTag,{value:"Module"}));function E2(e){return Se}function Fd(e,t){return Fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fd(e,t)}function By(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fd(e,t)}const km={disabled:!1},ms=Bt.createContext(null);var k2=function(t){return t.scrollTop},Ki="unmounted",Kr="exited",Gr="entering",_o="entered",Bd="exiting",cr=function(e){By(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?l?(s=Kr,i.appearStatus=Gr):s=_o:r.unmountOnExit||r.mountOnEnter?s=Ki:s=Kr,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ki?{status:Kr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Gr&&a!==_o&&(i=Gr):(a===Gr||a===_o)&&(i=Bd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Gr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Vi.findDOMNode(this);a&&k2(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Ki})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,s=this.props.nodeRef?[l]:[Vi.findDOMNode(this),l],u=s[0],c=s[1],f=this.getTimeouts(),d=l?f.appear:f.enter;if(!o&&!a||km.disabled){this.safeSetState({status:_o},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Gr},function(){i.props.onEntering(u,c),i.onTransitionEnd(d,function(){i.safeSetState({status:_o},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Vi.findDOMNode(this);if(!i||km.disabled){this.safeSetState({status:Kr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Bd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Kr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Vi.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ki)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=q(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Bt.createElement(ms.Provider,{value:null},typeof a=="function"?a(o,l):Bt.cloneElement(Bt.Children.only(a),l))},t}(Bt.Component);cr.contextType=ms;cr.propTypes={};function Ro(){}cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ro,onEntering:Ro,onEntered:Ro,onExit:Ro,onExiting:Ro,onExited:Ro};cr.UNMOUNTED=Ki;cr.EXITED=Kr;cr.ENTERING=Gr;cr.ENTERED=_o;cr.EXITING=Bd;const Ru=cr;function R2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dp(e,t){var n=function(i){return t&&y.isValidElement(i)?t(i):i},r=Object.create(null);return e&&y.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function _2(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var s in t){if(r[s])for(a=0;ae.scrollTop;function Ar(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function O2(e){return ve("MuiCollapse",e)}ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const N2=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],L2=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return xe(r,O2,n)},j2=K("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})=>C({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&C({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),A2=K("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>C({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),D2=K("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>C({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Uy=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:l="0px",component:s,easing:u,in:c,onEnter:f,onEntered:d,onEntering:b,onExit:g,onExited:v,onExiting:S,orientation:p="vertical",style:h,timeout:m=xy.standard,TransitionComponent:E=Ru}=r,R=q(r,N2),x=C({},r,{orientation:p,collapsedSize:l}),k=L2(x),T=Wa(),M=op(),I=y.useRef(null),N=y.useRef(),F=typeof l=="number"?`${l}px`:l,j=p==="horizontal",A=j?"width":"height",B=y.useRef(null),U=ot(n,B),D=V=>de=>{if(V){const Ae=B.current;de===void 0?V(Ae):V(Ae,de)}},_=()=>I.current?I.current[j?"clientWidth":"clientHeight"]:0,L=D((V,de)=>{I.current&&j&&(I.current.style.position="absolute"),V.style[A]=F,f&&f(V,de)}),W=D((V,de)=>{const Ae=_();I.current&&j&&(I.current.style.position="");const{duration:Pe,easing:et}=Ar({style:h,timeout:m,easing:u},{mode:"enter"});if(m==="auto"){const ie=T.transitions.getAutoHeightDuration(Ae);V.style.transitionDuration=`${ie}ms`,N.current=ie}else V.style.transitionDuration=typeof Pe=="string"?Pe:`${Pe}ms`;V.style[A]=`${Ae}px`,V.style.transitionTimingFunction=et,b&&b(V,de)}),X=D((V,de)=>{V.style[A]="auto",d&&d(V,de)}),re=D(V=>{V.style[A]=`${_()}px`,g&&g(V)}),he=D(v),J=D(V=>{const de=_(),{duration:Ae,easing:Pe}=Ar({style:h,timeout:m,easing:u},{mode:"exit"});if(m==="auto"){const et=T.transitions.getAutoHeightDuration(de);V.style.transitionDuration=`${et}ms`,N.current=et}else V.style.transitionDuration=typeof Ae=="string"?Ae:`${Ae}ms`;V.style[A]=F,V.style.transitionTimingFunction=Pe,S&&S(V)}),ue=V=>{m==="auto"&&M.start(N.current||0,V),o&&o(B.current,V)};return w.jsx(E,C({in:c,onEnter:L,onEntered:X,onEntering:W,onExit:re,onExited:he,onExiting:J,addEndListener:ue,nodeRef:B,timeout:m==="auto"?null:m},R,{children:(V,de)=>w.jsx(j2,C({as:s,className:Z(k.root,a,{entered:k.entered,exited:!c&&F==="0px"&&k.hidden}[V]),style:C({[j?"minWidth":"minHeight"]:F},h),ref:U},de,{ownerState:C({},x,{state:V}),children:w.jsx(A2,{ownerState:C({},x,{state:V}),className:k.wrapper,ref:I,children:w.jsx(D2,{ownerState:C({},x,{state:V}),className:k.wrapperInner,children:i})})}))}))});Uy.muiSupportAuto=!0;const Rm=Uy;function z2(e){return ve("MuiPaper",e)}ge("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const F2=["className","component","elevation","square","variant"],B2=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(i,z2,o)},U2=K("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return C({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&C({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rt("#fff",im(t.elevation))}, ${rt("#fff",im(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),W2=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation"}=r,u=q(r,F2),c=C({},r,{component:i,elevation:a,square:l,variant:s}),f=B2(c);return w.jsx(U2,C({as:i,ownerState:c,className:Z(f.root,o),ref:n},u))}),_u=W2;function si(e){return typeof e=="string"}function Wy(e,t,n){return e===void 0||si(e)?t:C({},t,{ownerState:C({},t.ownerState,n)})}function Hy(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 Vy(e,t,n){return typeof e=="function"?e(t,n):e}function _m(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 Ky(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=Z(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=C({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=C({},n,o,r);return b.length>0&&(v.className=b),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=Hy(C({},o,r)),l=_m(r),s=_m(o),u=t(a),c=Z(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=C({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=C({},u,n,s,l);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const H2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ui(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=q(e,H2),l=i?{}:Vy(r,o),{props:s,internalRef:u}=Ky(C({},a,{externalSlotProps:l})),c=ot(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Wy(n,C({},s,{ref:c}),o)}const V2=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],K2=["component","slots","slotProps"],G2=["component"];function Pm(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:l}=t,s=q(t,V2),{component:u,slots:c={[e]:void 0},slotProps:f={[e]:void 0}}=i,d=q(i,K2),b=c[e]||r,g=Vy(f[e],o),v=Ky(C({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g})),{props:{component:S},internalRef:p}=v,h=q(v.props,G2),m=ot(p,g==null?void 0:g.ref,t.ref),E=a?a(h):{},R=C({},o,E),x=e==="root"?S||u:S,k=Wy(b,C({},e==="root"&&!u&&!c[e]&&l,e!=="root"&&!c[e]&&l,h,x&&{as:x},{ref:m}),R);return Object.keys(E).forEach(T=>{delete k[T]}),[b,k]}function q2(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,f]=y.useState(!1),d=Z(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=Z(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&f(!0),y.useEffect(()=>{if(!l&&s!=null){const v=setTimeout(s,u);return()=>{clearTimeout(v)}}},[s,l,u]),w.jsx("span",{className:d,style:b,children:w.jsx("span",{className:g})})}const pn=ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q2=["center","classes","className"];let Pu=e=>e,Tm,$m,Im,Mm;const Ud=550,Y2=80,X2=eu(Tm||(Tm=Pu` 0% { transform: scale(0); opacity: 0.1; @@ -90,7 +90,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),J2=Zs(Tm||(Tm=_u` +`)),J2=eu($m||($m=Pu` 0% { opacity: 1; } @@ -98,7 +98,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),Z2=Zs($m||($m=_u` +`)),Z2=eu(Im||(Im=Pu` 0% { transform: scale(1); } @@ -110,7 +110,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),eR=K("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tR=K(q2,{name:"MuiTouchRipple",slot:"Ripple"})(Im||(Im=_u` +`)),eR=K("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tR=K(q2,{name:"MuiTouchRipple",slot:"Ripple"})(Mm||(Mm=Pu` opacity: 0; position: absolute; @@ -153,9 +153,9 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),fn.rippleVisible,X2,Bd,({theme:e})=>e.transitions.easing.easeInOut,fn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fn.child,fn.childLeaving,J2,Bd,({theme:e})=>e.transitions.easing.easeInOut,fn.childPulsate,Z2,({theme:e})=>e.transitions.easing.easeInOut),nR=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=q(r,Q2),[s,u]=y.useState([]),c=y.useRef(0),f=y.useRef(null);y.useEffect(()=>{f.current&&(f.current(),f.current=null)},[s]);const d=y.useRef(!1),b=rp(),g=y.useRef(null),v=y.useRef(null),S=y.useCallback(E=>{const{pulsate:R,rippleX:x,rippleY:k,rippleSize:T,cb:M}=E;u(I=>[...I,w.jsx(tR,{classes:{ripple:Z(i.ripple,fn.ripple),rippleVisible:Z(i.rippleVisible,fn.rippleVisible),ripplePulsate:Z(i.ripplePulsate,fn.ripplePulsate),child:Z(i.child,fn.child),childLeaving:Z(i.childLeaving,fn.childLeaving),childPulsate:Z(i.childPulsate,fn.childPulsate)},timeout:Bd,pulsate:R,rippleX:x,rippleY:k,rippleSize:T},c.current)]),c.current+=1,f.current=M},[i]),p=y.useCallback((E={},R={},x=()=>{})=>{const{pulsate:k=!1,center:T=o||R.pulsate,fakeElement:M=!1}=R;if((E==null?void 0:E.type)==="mousedown"&&d.current){d.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(d.current=!0);const I=M?null:v.current,N=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,j,A;if(T||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)F=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:B,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;F=Math.round(B-N.left),j=Math.round(U-N.top)}if(T)A=Math.sqrt((2*N.width**2+N.height**2)/3),A%2===0&&(A+=1);else{const B=Math.max(Math.abs((I?I.clientWidth:0)-F),F)*2+2,U=Math.max(Math.abs((I?I.clientHeight:0)-j),j)*2+2;A=Math.sqrt(B**2+U**2)}E!=null&&E.touches?g.current===null&&(g.current=()=>{S({pulsate:k,rippleX:F,rippleY:j,rippleSize:A,cb:x})},b.start(Y2,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:k,rippleX:F,rippleY:j,rippleSize:A,cb:x})},[o,S,b]),h=y.useCallback(()=>{p({},{pulsate:!0})},[p]),m=y.useCallback((E,R)=>{if(b.clear(),(E==null?void 0:E.type)==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{m(E,R)});return}g.current=null,u(x=>x.length>0?x.slice(1):x),f.current=R},[b]);return y.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:m}),[h,p,m]),w.jsx(eR,C({className:Z(fn.root,i.root,a),ref:v},l,{children:w.jsx(M2,{component:null,exit:!0,children:s})}))}),rR=nR;function oR(e){return ve("MuiButtonBase",e)}const iR=ge("MuiButtonBase",["root","disabled","focusVisible"]),aR=["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"],lR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ye({root:["root",t&&"disabled",n&&"focusVisible"]},oR,o);return n&&r&&(a.root+=` ${r}`),a},sR=K("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"},[`&.${iR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uR=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:b="a",onBlur:g,onClick:v,onContextMenu:S,onDragLeave:p,onFocus:h,onFocusVisible:m,onKeyDown:E,onKeyUp:R,onMouseDown:x,onMouseLeave:k,onMouseUp:T,onTouchEnd:M,onTouchMove:I,onTouchStart:N,tabIndex:F=0,TouchRippleProps:j,touchRippleRef:A,type:B}=r,U=q(r,aR),D=y.useRef(null),_=y.useRef(null),L=ot(_,A),{isFocusVisibleRef:W,onFocus:X,onBlur:re,ref:he}=ay(),[J,ue]=y.useState(!1);u&&J&&ue(!1),y.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),D.current.focus()}}),[]);const[V,de]=y.useState(!1);y.useEffect(()=>{de(!0)},[]);const Ae=V&&!c&&!u;y.useEffect(()=>{J&&d&&!c&&V&&_.current.pulsate()},[c,d,J,V]);function Pe(Y,un,dr=f){return Jr(fr=>(un&&un(fr),!dr&&_.current&&_.current[Y](fr),!0))}const et=Pe("start",x),ie=Pe("stop",S),Te=Pe("stop",p),se=Pe("stop",T),Re=Pe("stop",Y=>{J&&Y.preventDefault(),k&&k(Y)}),we=Pe("start",N),Ln=Pe("stop",M),Lt=Pe("stop",I),jt=Pe("stop",Y=>{re(Y),W.current===!1&&ue(!1),g&&g(Y)},!1),Qt=Jr(Y=>{D.current||(D.current=Y.currentTarget),X(Y),W.current===!0&&(ue(!0),m&&m(Y)),h&&h(Y)}),At=()=>{const Y=D.current;return s&&s!=="button"&&!(Y.tagName==="A"&&Y.href)},$e=y.useRef(!1),sn=Jr(Y=>{d&&!$e.current&&J&&_.current&&Y.key===" "&&($e.current=!0,_.current.stop(Y,()=>{_.current.start(Y)})),Y.target===Y.currentTarget&&At()&&Y.key===" "&&Y.preventDefault(),E&&E(Y),Y.target===Y.currentTarget&&At()&&Y.key==="Enter"&&!u&&(Y.preventDefault(),v&&v(Y))}),dt=Jr(Y=>{d&&Y.key===" "&&_.current&&J&&!Y.defaultPrevented&&($e.current=!1,_.current.stop(Y,()=>{_.current.pulsate(Y)})),R&&R(Y),v&&Y.target===Y.currentTarget&&At()&&Y.key===" "&&!Y.defaultPrevented&&v(Y)});let Se=s;Se==="button"&&(U.href||U.to)&&(Se=b);const Ct={};Se==="button"?(Ct.type=B===void 0?"button":B,Ct.disabled=u):(!U.href&&!U.to&&(Ct.role="button"),u&&(Ct["aria-disabled"]=u));const Cn=ot(n,he,D),Dt=C({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:F,focusVisible:J}),Ne=lR(Dt);return w.jsxs(sR,C({as:Se,className:Z(Ne.root,l),ownerState:Dt,onBlur:jt,onClick:v,onContextMenu:ie,onFocus:Qt,onKeyDown:sn,onKeyUp:dt,onMouseDown:et,onMouseLeave:Re,onMouseUp:se,onDragLeave:Te,onTouchEnd:Ln,onTouchMove:Lt,onTouchStart:we,ref:Cn,tabIndex:u?-1:F,type:B},Ct,U,{children:[a,Ae?w.jsx(rR,C({ref:L,center:i},j)):null]}))}),Ka=uR;function cR(e){return ve("MuiAlert",e)}const dR=ge("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Mm=dR;function fR(e){return ve("MuiIconButton",e)}const pR=ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),hR=["edge","children","className","color","disabled","disableFocusRipple","size"],mR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ne(r)}`,o&&`edge${ne(o)}`,`size${ne(i)}`]};return ye(a,fR,t)},vR=K(Ka,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ne(n.color)}`],n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})(({theme:e,ownerState:t})=>C({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return C({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&C({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":C({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${pR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),gR=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=q(r,hR),d=C({},r,{edge:o,color:l,disabled:s,disableFocusRipple:u,size:c}),b=mR(d);return w.jsx(vR,C({className:Z(b.root,a),centerRipple:!0,focusRipple:!u,disabled:s,ref:n},f,{ownerState:d,children:i}))}),Ud=gR,yR=Nt(w.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),xR=Nt(w.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),SR=Nt(w.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),bR=Nt(w.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),wR=Nt(w.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),CR=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ER=E2(),kR=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ne(n||r)}`,`${t}${ne(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,cR,o)},RR=K(Ru,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Id:Md,n=e.palette.mode==="light"?Md:Id;return C({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Mm.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Mm.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:C({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),_R=K("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),PR=K("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Om=K("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Nm={success:w.jsx(yR,{fontSize:"inherit"}),warning:w.jsx(xR,{fontSize:"inherit"}),error:w.jsx(SR,{fontSize:"inherit"}),info:w.jsx(bR,{fontSize:"inherit"})},TR=y.forwardRef(function(t,n){const r=ER({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:l="Close",color:s,components:u={},componentsProps:c={},icon:f,iconMapping:d=Nm,onClose:b,role:g="alert",severity:v="success",slotProps:S={},slots:p={},variant:h="standard"}=r,m=q(r,CR),E=C({},r,{color:s,severity:v,variant:h,colorSeverity:s||v}),R=kR(E),x={slots:C({closeButton:u.CloseButton,closeIcon:u.CloseIcon},p),slotProps:C({},c,S)},[k,T]=_m("closeButton",{elementType:Ud,externalForwardedProps:x,ownerState:E}),[M,I]=_m("closeIcon",{elementType:wR,externalForwardedProps:x,ownerState:E});return w.jsxs(RR,C({role:g,elevation:0,ownerState:E,className:Z(R.root,a),ref:n},m,{children:[f!==!1?w.jsx(_R,{ownerState:E,className:R.icon,children:f||d[v]||Nm[v]}):null,w.jsx(PR,{ownerState:E,className:R.message,children:i}),o!=null?w.jsx(Om,{ownerState:E,className:R.action,children:o}):null,o==null&&b?w.jsx(Om,{ownerState:E,className:R.action,children:w.jsx(k,C({size:"small","aria-label":l,title:l,color:"inherit",onClick:b},T,{children:w.jsx(M,C({fontSize:"small"},I))}))}):null]}))}),Lm=TR;function $R(e){return ve("MuiTypography",e)}ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const IR=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(l,$R,a)},OR=K("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${ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({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})),jm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LR=e=>NR[e]||e,jR=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTypography"}),o=LR(r.color),i=Z0(C({},r,{color:o})),{align:a="inherit",className:l,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:b=jm}=i,g=q(i,IR),v=C({},i,{align:a,color:o,className:l,component:s,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:b}),S=s||(f?"p":b[d]||jm[d])||"span",p=MR(v);return w.jsx(OR,C({as:S,ref:n,ownerState:v,className:Z(p.root,l)},g))}),_e=jR;function AR(e){return ve("MuiAppBar",e)}ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const DR=["className","color","enableColorOnDark","position"],zR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ne(t)}`,`position${ne(n)}`]};return ye(o,AR,r)},vl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,FR=K(Ru,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ne(n.position)}`],t[`color${ne(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return C({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&C({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&C({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&C({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:vl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),BR=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:l="fixed"}=r,s=q(r,DR),u=C({},r,{color:i,position:l,enableColorOnDark:a}),c=zR(u);return w.jsx(FR,C({square:!0,component:"header",ownerState:u,elevation:4,className:Z(c.root,o,l==="fixed"&&"mui-fixed"),ref:n},s))}),UR=BR,WR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HR(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function VR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function KR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||VR(e))}function GR(e){const t=[],n=[];return Array.from(e.querySelectorAll(WR)).forEach((r,o)=>{const i=HR(r);i===-1||!KR(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function qR(){return!0}function QR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=GR,isEnabled:a=qR,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),f=y.useRef(null),d=y.useRef(null),b=y.useRef(!1),g=y.useRef(null),v=ot(t.ref,g),S=y.useRef(null);y.useEffect(()=>{!l||!g.current||(b.current=!n)},[n,l]),y.useEffect(()=>{if(!l||!g.current)return;const m=Kt(g.current);return g.current.contains(m.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),b.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(s.current=!0,f.current.focus()),f.current=null)}},[l]),y.useEffect(()=>{if(!l||!g.current)return;const m=Kt(g.current),E=k=>{S.current=k,!(r||!a()||k.key!=="Tab")&&m.activeElement===g.current&&k.shiftKey&&(s.current=!0,c.current&&c.current.focus())},R=()=>{const k=g.current;if(k===null)return;if(!m.hasFocus()||!a()||s.current){s.current=!1;return}if(k.contains(m.activeElement)||r&&m.activeElement!==u.current&&m.activeElement!==c.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!b.current)return;let T=[];if((m.activeElement===u.current||m.activeElement===c.current)&&(T=i(g.current)),T.length>0){var M,I;const N=!!((M=S.current)!=null&&M.shiftKey&&((I=S.current)==null?void 0:I.key)==="Tab"),F=T[0],j=T[T.length-1];typeof F!="string"&&typeof j!="string"&&(N?j.focus():F.focus())}else k.focus()};m.addEventListener("focusin",R),m.addEventListener("keydown",E,!0);const x=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(x),m.removeEventListener("focusin",R),m.removeEventListener("keydown",E,!0)}},[n,r,o,a,l,i]);const p=m=>{f.current===null&&(f.current=m.relatedTarget),b.current=!0,d.current=m.target;const E=t.props.onFocus;E&&E(m)},h=m=>{f.current===null&&(f.current=m.relatedTarget),b.current=!0};return w.jsxs(y.Fragment,{children:[w.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:v,onFocus:p}),w.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}function YR(e){return typeof e=="function"?e():e}const XR=y.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=y.useState(null),s=ot(y.isValidElement(r)?r.ref:null,n);if(On(()=>{i||l(YR(o)||document.body)},[o,i]),On(()=>{if(a&&!i)return ds(n,a),()=>{ds(n,null)}},[n,a,i]),i){if(y.isValidElement(r)){const u={ref:s};return y.cloneElement(r,u)}return w.jsx(y.Fragment,{children:r})}return w.jsx(y.Fragment,{children:a&&ja.createPortal(r,a)})});function JR(e){const t=Kt(e);return t.body===e?Qn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ia(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Am(e){return parseInt(Qn(e).getComputedStyle(e).paddingRight,10)||0}function ZR(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Dm(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,s=!ZR(a);l&&s&&ia(a,o)})}function Cc(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function e_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(JR(r)){const a=ly(Kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Am(r)+a}px`;const l=Kt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Am(s)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Kt(r).body;else{const a=r.parentElement,l=Qn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function t_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class n_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ia(t.modalRef,!1);const o=t_(n);Dm(n,t.mount,t.modalRef,o,!0);const i=Cc(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Cc(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=e_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Cc(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ia(t.modalRef,n),Dm(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&ia(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function r_(e){return typeof e=="function"?e():e}function o_(e){return e?e.props.hasOwnProperty("in"):!1}const i_=new n_;function a_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=i_,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:f}=e,d=y.useRef({}),b=y.useRef(null),g=y.useRef(null),v=ot(g,f),[S,p]=y.useState(!c),h=o_(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const E=()=>Kt(b.current),R=()=>(d.current.modalRef=g.current,d.current.mount=b.current,d.current),x=()=>{o.mount(R(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Jr(()=>{const U=r_(t)||E().body;o.add(R(),U),g.current&&x()}),T=y.useCallback(()=>o.isTopModal(R()),[o]),M=Jr(U=>{b.current=U,U&&(c&&T()?x():g.current&&ia(g.current,m))}),I=y.useCallback(()=>{o.remove(R(),m)},[m,o]);y.useEffect(()=>()=>{I()},[I]),y.useEffect(()=>{c?k():(!h||!i)&&I()},[c,I,h,i,k]);const N=U=>D=>{var _;(_=U.onKeyDown)==null||_.call(U,D),!(D.key!=="Escape"||D.which===229||!T())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},F=U=>D=>{var _;(_=U.onClick)==null||_.call(U,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(U={})=>{const D=Hy(e);delete D.onTransitionEnter,delete D.onTransitionExited;const _=C({},D,U);return C({role:"presentation"},_,{onKeyDown:N(_),ref:v})},getBackdropProps:(U={})=>{const D=U;return C({"aria-hidden":!0},D,{onClick:F(D),open:c})},getTransitionProps:()=>{const U=()=>{p(!1),a&&a()},D=()=>{p(!0),l&&l(),i&&I()};return{onEnter:Pd(U,s==null?void 0:s.props.onEnter),onExited:Pd(D,s==null?void 0:s.props.onExited)}},rootRef:v,portalRef:M,isTopModal:T,exited:S,hasTransition:h}}const l_=["onChange","maxRows","minRows","style","value"];function gl(e){return parseInt(e,10)||0}const s_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const c_=y.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=t,s=q(t,l_),{current:u}=y.useRef(l!=null),c=y.useRef(null),f=ot(n,c),d=y.useRef(null),b=y.useCallback(()=>{const S=c.current,h=Qn(S).getComputedStyle(S);if(h.width==="0px")return{outerHeightStyle:0,overflowing:!1};const m=d.current;m.style.width=h.width,m.value=S.value||t.placeholder||"x",m.value.slice(-1)===` -`&&(m.value+=" ");const E=h.boxSizing,R=gl(h.paddingBottom)+gl(h.paddingTop),x=gl(h.borderBottomWidth)+gl(h.borderTopWidth),k=m.scrollHeight;m.value="x";const T=m.scrollHeight;let M=k;i&&(M=Math.max(Number(i)*T,M)),o&&(M=Math.min(Number(o)*T,M)),M=Math.max(M,T);const I=M+(E==="border-box"?R+x:0),N=Math.abs(M-k)<=1;return{outerHeightStyle:I,overflowing:N}},[o,i,t.placeholder]),g=y.useCallback(()=>{const S=b();if(u_(S))return;const p=c.current;p.style.height=`${S.outerHeightStyle}px`,p.style.overflow=S.overflowing?"hidden":""},[b]);On(()=>{const S=()=>{g()};let p;const h=gu(S),m=c.current,E=Qn(m);E.addEventListener("resize",h);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(S),R.observe(m)),()=>{h.clear(),cancelAnimationFrame(p),E.removeEventListener("resize",h),R&&R.disconnect()}},[b,g]),On(()=>{g()});const v=S=>{u||g(),r&&r(S)};return w.jsxs(y.Fragment,{children:[w.jsx("textarea",C({value:l,onChange:v,ref:f,rows:i,style:a},s)),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:C({},s_.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function vi({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const d_=y.createContext(void 0),pp=d_;function gi(){return y.useContext(pp)}function f_(e){return w.jsx(Jw,C({},e,{defaultTheme:Su,themeId:oi}))}function zm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vs(e,t=!1){return e&&(zm(e.value)&&e.value!==""||t&&zm(e.defaultValue)&&e.defaultValue!=="")}function p_(e){return e.startAdornment}function h_(e){return ve("MuiInputBase",e)}const m_=ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ui=m_,v_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Pu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Tu=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},g_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:b,type:g}=e,v={root:["root",`color${ne(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",d&&d!=="medium"&&`size${ne(d)}`,c&&"multiline",b&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return ye(v,h_,t)},$u=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pu})(({theme:e,ownerState:t})=>C({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ui.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&C({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Iu=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=C({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return C({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ui.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ui.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),y_=w.jsx(f_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),x_=y.forwardRef(function(t,n){var r;const o=xe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:b,endAdornment:g,fullWidth:v=!1,id:S,inputComponent:p="input",inputProps:h={},inputRef:m,maxRows:E,minRows:R,multiline:x=!1,name:k,onBlur:T,onChange:M,onClick:I,onFocus:N,onKeyDown:F,onKeyUp:j,placeholder:A,readOnly:B,renderSuffix:U,rows:D,slotProps:_={},slots:L={},startAdornment:W,type:X="text",value:re}=o,he=q(o,v_),J=h.value!=null?h.value:re,{current:ue}=y.useRef(J!=null),V=y.useRef(),de=y.useCallback(Ne=>{},[]),Ae=ot(V,m,h.ref,de),[Pe,et]=y.useState(!1),ie=gi(),Te=vi({props:o,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=ie?ie.focused:Pe,y.useEffect(()=>{!ie&&d&&Pe&&(et(!1),T&&T())},[ie,d,Pe,T]);const se=ie&&ie.onFilled,Re=ie&&ie.onEmpty,we=y.useCallback(Ne=>{vs(Ne)?se&&se():Re&&Re()},[se,Re]);On(()=>{ue&&we({value:J})},[J,we,ue]);const Ln=Ne=>{if(Te.disabled){Ne.stopPropagation();return}N&&N(Ne),h.onFocus&&h.onFocus(Ne),ie&&ie.onFocus?ie.onFocus(Ne):et(!0)},Lt=Ne=>{T&&T(Ne),h.onBlur&&h.onBlur(Ne),ie&&ie.onBlur?ie.onBlur(Ne):et(!1)},jt=(Ne,...Y)=>{if(!ue){const un=Ne.target||V.current;if(un==null)throw new Error(co(1));we({value:un.value})}h.onChange&&h.onChange(Ne,...Y),M&&M(Ne,...Y)};y.useEffect(()=>{we(V.current)},[]);const Qt=Ne=>{V.current&&Ne.currentTarget===Ne.target&&V.current.focus(),I&&I(Ne)};let At=p,$e=h;x&&At==="input"&&(D?$e=C({type:void 0,minRows:D,maxRows:D},$e):$e=C({type:void 0,maxRows:E,minRows:R},$e),At=c_);const sn=Ne=>{we(Ne.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};y.useEffect(()=>{ie&&ie.setAdornedStart(!!W)},[ie,W]);const dt=C({},o,{color:Te.color||"primary",disabled:Te.disabled,endAdornment:g,error:Te.error,focused:Te.focused,formControl:ie,fullWidth:v,hiddenLabel:Te.hiddenLabel,multiline:x,size:Te.size,startAdornment:W,type:X}),Se=g_(dt),Ct=L.root||u.Root||$u,Cn=_.root||c.root||{},Dt=L.input||u.Input||Iu;return $e=C({},$e,(r=_.input)!=null?r:c.input),w.jsxs(y.Fragment,{children:[!b&&y_,w.jsxs(Ct,C({},Cn,!li(Ct)&&{ownerState:C({},dt,Cn.ownerState)},{ref:n,onClick:Qt},he,{className:Z(Se.root,Cn.className,s,B&&"MuiInputBase-readOnly"),children:[W,w.jsx(pp.Provider,{value:null,children:w.jsx(Dt,C({ownerState:dt,"aria-invalid":Te.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:f,disabled:Te.disabled,id:S,onAnimationStart:sn,name:k,placeholder:A,readOnly:B,required:Te.required,rows:D,value:J,onKeyDown:F,onKeyUp:j,type:X},$e,!li(Dt)&&{as:At,ownerState:C({},dt,$e.ownerState)},{ref:Ae,className:Z(Se.input,$e.className,B&&"MuiInputBase-readOnly"),onBlur:Lt,onChange:jt,onFocus:Ln}))}),g,U?U(C({},Te,{startAdornment:W})):null]}))]})}),hp=x_;function S_(e){return ve("MuiInput",e)}const b_=C({},ui,ge("MuiInput",["root","underline","input"])),ji=b_;function w_(e){return ve("MuiOutlinedInput",e)}const C_=C({},ui,ge("MuiOutlinedInput",["root","notchedOutline","input"])),mr=C_;function E_(e){return ve("MuiFilledInput",e)}const k_=C({},ui,ge("MuiFilledInput",["root","underline","input"])),Wr=k_,R_=Nt(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),__=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],P_={entering:{opacity:1},entered:{opacity:1}},T_=y.forwardRef(function(t,n){const r=Ua(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:b,onExited:g,onExiting:v,style:S,timeout:p=o,TransitionComponent:h=ku}=t,m=q(t,__),E=y.useRef(null),R=ot(E,l.ref,n),x=A=>B=>{if(A){const U=E.current;B===void 0?A(U):A(U,B)}},k=x(d),T=x((A,B)=>{fp(A);const U=Ar({style:S,timeout:p,easing:s},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",U),A.style.transition=r.transitions.create("opacity",U),c&&c(A,B)}),M=x(f),I=x(v),N=x(A=>{const B=Ar({style:S,timeout:p,easing:s},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",B),A.style.transition=r.transitions.create("opacity",B),b&&b(A)}),F=x(g),j=A=>{i&&i(E.current,A)};return w.jsx(h,C({appear:a,in:u,nodeRef:E,onEnter:T,onEntered:M,onEntering:k,onExit:N,onExited:F,onExiting:I,addEndListener:j,timeout:p},m,{children:(A,B)=>y.cloneElement(l,C({style:C({opacity:0,visibility:A==="exited"&&!u?"hidden":void 0},P_[A],S,l.props.style),ref:R},B))}))}),$_=T_;function I_(e){return ve("MuiBackdrop",e)}ge("MuiBackdrop",["root","invisible"]);const M_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],O_=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},I_,t)},N_=K("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>C({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),L_=y.forwardRef(function(t,n){var r,o,i;const a=xe({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:b,slotProps:g={},slots:v={},TransitionComponent:S=$_,transitionDuration:p}=a,h=q(a,M_),m=C({},a,{component:u,invisible:d}),E=O_(m),R=(r=g.root)!=null?r:f.root;return w.jsx(S,C({in:b,timeout:p},h,{children:w.jsx(N_,C({"aria-hidden":!0},R,{as:(o=(i=v.root)!=null?i:c.Root)!=null?o:u,className:Z(E.root,s,R==null?void 0:R.className),ownerState:C({},m,R==null?void 0:R.ownerState),classes:E,ref:n,children:l}))}))}),j_=L_;function A_(e){return ve("MuiButton",e)}const D_=ge("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),yl=D_,z_=y.createContext({}),F_=z_,B_=y.createContext(void 0),U_=B_,W_=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],H_=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l={root:["root",i,`${i}${ne(t)}`,`size${ne(o)}`,`${i}Size${ne(o)}`,`color${ne(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ne(o)}`],endIcon:["icon","endIcon",`iconSize${ne(o)}`]},s=ye(l,A_,a);return C({},a,s)},Gy=e=>C({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),V_=K(Ka,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color)}`],t[`size${ne(n.size)}`],t[`${n.variant}Size${ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return C({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yl.focusVisible}`]:C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yl.disabled}`]:C({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yl.disabled}`]:{boxShadow:"none"}}),K_=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gy(e))),G_=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gy(e))),q_=y.forwardRef(function(t,n){const r=y.useContext(F_),o=y.useContext(U_),i=tp(r,t),a=xe({props:i,name:"MuiButton"}),{children:l,color:s="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:v,fullWidth:S=!1,size:p="medium",startIcon:h,type:m,variant:E="text"}=a,R=q(a,W_),x=C({},a,{color:s,component:u,disabled:f,disableElevation:d,disableFocusRipple:b,fullWidth:S,size:p,type:m,variant:E}),k=H_(x),T=h&&w.jsx(K_,{className:k.startIcon,ownerState:x,children:h}),M=g&&w.jsx(G_,{className:k.endIcon,ownerState:x,children:g}),I=o||"";return w.jsxs(V_,C({ownerState:x,className:Z(r.className,k.root,c,I),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:Z(k.focusVisible,v),ref:n,type:m},R,{classes:k,children:[T,l,M]}))}),xl=q_;function Q_(e){return ve("MuiModal",e)}ge("MuiModal",["root","hidden","backdrop"]);const Y_=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X_=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q_,r)},J_=K("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Z_=K(j_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eP=y.forwardRef(function(t,n){var r,o,i,a,l,s;const u=xe({name:"MuiModal",props:t}),{BackdropComponent:c=Z_,BackdropProps:f,className:d,closeAfterTransition:b=!1,children:g,container:v,component:S,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:R=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:I=!1,onBackdropClick:N,open:F,slotProps:j,slots:A}=u,B=q(u,Y_),U=C({},u,{closeAfterTransition:b,disableAutoFocus:m,disableEnforceFocus:E,disableEscapeKeyDown:R,disablePortal:x,disableRestoreFocus:k,disableScrollLock:T,hideBackdrop:M,keepMounted:I}),{getRootProps:D,getBackdropProps:_,getTransitionProps:L,portalRef:W,isTopModal:X,exited:re,hasTransition:he}=a_(C({},U,{rootRef:n})),J=C({},U,{exited:re}),ue=X_(J),V={};if(g.props.tabIndex===void 0&&(V.tabIndex="-1"),he){const{onEnter:se,onExited:Re}=L();V.onEnter=se,V.onExited=Re}const de=(r=(o=A==null?void 0:A.root)!=null?o:p.Root)!=null?r:J_,Ae=(i=(a=A==null?void 0:A.backdrop)!=null?a:p.Backdrop)!=null?i:c,Pe=(l=j==null?void 0:j.root)!=null?l:h.root,et=(s=j==null?void 0:j.backdrop)!=null?s:h.backdrop,ie=si({elementType:de,externalSlotProps:Pe,externalForwardedProps:B,getSlotProps:D,additionalProps:{ref:n,as:S},ownerState:J,className:Z(d,Pe==null?void 0:Pe.className,ue==null?void 0:ue.root,!J.open&&J.exited&&(ue==null?void 0:ue.hidden))}),Te=si({elementType:Ae,externalSlotProps:et,additionalProps:f,getSlotProps:se=>_(C({},se,{onClick:Re=>{N&&N(Re),se!=null&&se.onClick&&se.onClick(Re)}})),className:Z(et==null?void 0:et.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:J});return!I&&!F&&(!he||re)?null:w.jsx(XR,{ref:W,container:v,disablePortal:x,children:w.jsxs(de,C({},ie,{children:[!M&&c?w.jsx(Ae,C({},Te)):null,w.jsx(QR,{disableEnforceFocus:E,disableAutoFocus:m,disableRestoreFocus:k,isEnabled:X,open:F,children:y.cloneElement(g,V)})]}))})}),qy=eP;function tP(e){return ve("MuiDivider",e)}const nP=ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Fm=nP,rP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],oP=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return ye({root:["root",t&&"absolute",s,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},tP,r)},iP=K("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>C({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:rt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>C({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>C({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>C({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>C({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),aP=K("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>C({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Qy=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:l=i?"div":"hr",flexItem:s=!1,light:u=!1,orientation:c="horizontal",role:f=l!=="hr"?"separator":void 0,textAlign:d="center",variant:b="fullWidth"}=r,g=q(r,rP),v=C({},r,{absolute:o,component:l,flexItem:s,light:u,orientation:c,role:f,textAlign:d,variant:b}),S=oP(v);return w.jsx(iP,C({as:l,className:Z(S.root,a),role:f,ref:n,ownerState:v},g,{children:i?w.jsx(aP,{className:S.wrapper,ownerState:v,children:i}):null}))});Qy.muiSkipListHighlight=!0;const lP=Qy,sP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uP(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Qn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,s=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),s=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${i.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}function cP(e){return typeof e=="function"?e():e}function Sl(e,t,n){const r=cP(n),o=uP(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const dP=y.forwardRef(function(t,n){const r=Ua(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,container:u,direction:c="down",easing:f=o,in:d,onEnter:b,onEntered:g,onEntering:v,onExit:S,onExited:p,onExiting:h,style:m,timeout:E=i,TransitionComponent:R=ku}=t,x=q(t,sP),k=y.useRef(null),T=ot(s.ref,k,n),M=_=>L=>{_&&(L===void 0?_(k.current):_(k.current,L))},I=M((_,L)=>{Sl(c,_,u),fp(_),b&&b(_,L)}),N=M((_,L)=>{const W=Ar({timeout:E,style:m,easing:f},{mode:"enter"});_.style.webkitTransition=r.transitions.create("-webkit-transform",C({},W)),_.style.transition=r.transitions.create("transform",C({},W)),_.style.webkitTransform="none",_.style.transform="none",v&&v(_,L)}),F=M(g),j=M(h),A=M(_=>{const L=Ar({timeout:E,style:m,easing:f},{mode:"exit"});_.style.webkitTransition=r.transitions.create("-webkit-transform",L),_.style.transition=r.transitions.create("transform",L),Sl(c,_,u),S&&S(_)}),B=M(_=>{_.style.webkitTransition="",_.style.transition="",p&&p(_)}),U=_=>{a&&a(k.current,_)},D=y.useCallback(()=>{k.current&&Sl(c,k.current,u)},[c,u]);return y.useEffect(()=>{if(d||c==="down"||c==="right")return;const _=gu(()=>{k.current&&Sl(c,k.current,u)}),L=Qn(k.current);return L.addEventListener("resize",_),()=>{_.clear(),L.removeEventListener("resize",_)}},[c,d,u]),y.useEffect(()=>{d||D()},[d,D]),w.jsx(R,C({nodeRef:k,onEnter:I,onEntered:F,onEntering:N,onExit:A,onExited:B,onExiting:j,addEndListener:U,appear:l,in:d,timeout:E},x,{children:(_,L)=>y.cloneElement(s,C({ref:T,style:C({visibility:_==="exited"&&!d?"hidden":void 0},m,s.props.style)},L))}))}),fP=dP;function pP(e){return ve("MuiDrawer",e)}ge("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hP=["BackdropProps"],mP=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Yy=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},vP=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ne(n)}`,r!=="temporary"&&`paperAnchorDocked${ne(n)}`]};return ye(o,pP,t)},gP=K(qy,{name:"MuiDrawer",slot:"Root",overridesResolver:Yy})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Bm=K("div",{shouldForwardProp:qt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Yy})({flex:"0 0 auto"}),yP=K(Ru,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ne(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ne(n.anchor)}`]]}})(({theme:e,ownerState:t})=>C({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Xy={left:"right",right:"left",top:"down",bottom:"up"};function xP(e){return["left","right"].indexOf(e)!==-1}function SP({direction:e},t){return e==="rtl"&&xP(t)?Xy[t]:t}const bP=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiDrawer"}),o=Ua(),i=dy(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:s,children:u,className:c,elevation:f=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:b}={},onClose:g,open:v=!1,PaperProps:S={},SlideProps:p,TransitionComponent:h=fP,transitionDuration:m=a,variant:E="temporary"}=r,R=q(r.ModalProps,hP),x=q(r,mP),k=y.useRef(!1);y.useEffect(()=>{k.current=!0},[]);const T=SP({direction:i?"rtl":"ltr"},l),I=C({},r,{anchor:l,elevation:f,open:v,variant:E},x),N=vP(I),F=w.jsx(yP,C({elevation:E==="temporary"?f:0,square:!0},S,{className:Z(N.paper,S.className),ownerState:I,children:u}));if(E==="permanent")return w.jsx(Bm,C({className:Z(N.root,N.docked,c),ownerState:I,ref:n},x,{children:F}));const j=w.jsx(h,C({in:v,direction:Xy[T],timeout:m,appear:k.current},p,{children:F}));return E==="persistent"?w.jsx(Bm,C({className:Z(N.root,N.docked,c),ownerState:I,ref:n},x,{children:j})):w.jsx(gP,C({BackdropProps:C({},s,b,{transitionDuration:m}),className:Z(N.root,N.modal,c),open:v,ownerState:I,onClose:g,hideBackdrop:d,ref:n},x,R,{children:j}))}),wP=bP,CP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],EP=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},E_,t);return C({},t,o)},kP=K($u,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return C({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Wr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&C({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),RP=K(Iu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>C({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Jy=y.forwardRef(function(t,n){var r,o,i,a;const l=xe({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:b,slots:g={},type:v="text"}=l,S=q(l,CP),p=C({},l,{fullWidth:c,inputComponent:f,multiline:d,type:v}),h=EP(l),m={root:{ownerState:p},input:{ownerState:p}},E=b??u?nn(m,b??u):m,R=(r=(o=g.root)!=null?o:s.Root)!=null?r:kP,x=(i=(a=g.input)!=null?a:s.Input)!=null?i:RP;return w.jsx(hp,C({slots:{root:R,input:x},componentsProps:E,fullWidth:c,inputComponent:f,multiline:d,ref:n,type:v},S,{classes:h}))});Jy.muiName="Input";const Zy=Jy;function _P(e){return ve("MuiFormControl",e)}ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PP=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],TP=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ne(n)}`,r&&"fullWidth"]};return ye(o,_P,t)},$P=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,t[`margin${ne(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>C({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),IP=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:b="none",required:g=!1,size:v="medium",variant:S="outlined"}=r,p=q(r,PP),h=C({},r,{color:a,component:l,disabled:s,error:u,fullWidth:f,hiddenLabel:d,margin:b,required:g,size:v,variant:S}),m=TP(h),[E,R]=y.useState(()=>{let j=!1;return o&&y.Children.forEach(o,A=>{if(!ra(A,["Input","Select"]))return;const B=ra(A,["Select"])?A.props.input:A;B&&p_(B.props)&&(j=!0)}),j}),[x,k]=y.useState(()=>{let j=!1;return o&&y.Children.forEach(o,A=>{ra(A,["Input","Select"])&&(vs(A.props,!0)||vs(A.props.inputProps,!0))&&(j=!0)}),j}),[T,M]=y.useState(!1);s&&T&&M(!1);const I=c!==void 0&&!s?c:T;let N;const F=y.useMemo(()=>({adornedStart:E,setAdornedStart:R,color:a,disabled:s,error:u,filled:x,focused:I,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{M(!0)},registerEffect:N,required:g,variant:S}),[E,a,s,u,x,I,f,d,N,g,v,S]);return w.jsx(pp.Provider,{value:F,children:w.jsx($P,C({as:l,ownerState:h,className:Z(m.root,i),ref:n},p,{children:o}))})}),e1=IP;function MP(e){return ve("MuiFormHelperText",e)}const OP=ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Um=OP;var Wm;const NP=["children","className","component","disabled","error","filled","focused","margin","required","variant"],LP=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ne(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return ye(u,MP,t)},jP=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>C({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Um.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Um.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),AP=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,l=q(r,NP),s=gi(),u=vi({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=C({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=LP(c);return w.jsx(jP,C({as:a,ownerState:c,className:Z(f.root,i),ref:n},l,{children:o===" "?Wm||(Wm=w.jsx("span",{className:"notranslate",children:"​"})):o}))}),DP=AP;function zP(e){return ve("MuiFormLabel",e)}const FP=ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),aa=FP,BP=["children","className","color","component","disabled","error","filled","focused","required"],UP=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,s={root:["root",`color${ne(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return ye(s,zP,t)},WP=K("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>C({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${aa.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${aa.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}})),HP=K("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${aa.error}`]:{color:(e.vars||e).palette.error.main}})),VP=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,l=q(r,BP),s=gi(),u=vi({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=C({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=UP(c);return w.jsxs(WP,C({as:a,ownerState:c,className:Z(f.root,i),ref:n},l,{children:[o,u.required&&w.jsxs(HP,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),KP=VP,GP=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wd(e){return`scale(${e}, ${e**2})`}const qP={entering:{opacity:1,transform:Wd(1)},entered:{opacity:1,transform:"none"}},Ec=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t1=y.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:b,style:g,timeout:v="auto",TransitionComponent:S=ku}=t,p=q(t,GP),h=rp(),m=y.useRef(),E=Ua(),R=y.useRef(null),x=ot(R,i.ref,n),k=B=>U=>{if(B){const D=R.current;U===void 0?B(D):B(D,U)}},T=k(c),M=k((B,U)=>{fp(B);const{duration:D,delay:_,easing:L}=Ar({style:g,timeout:v,easing:a},{mode:"enter"});let W;v==="auto"?(W=E.transitions.getAutoHeightDuration(B.clientHeight),m.current=W):W=D,B.style.transition=[E.transitions.create("opacity",{duration:W,delay:_}),E.transitions.create("transform",{duration:Ec?W:W*.666,delay:_,easing:L})].join(","),s&&s(B,U)}),I=k(u),N=k(b),F=k(B=>{const{duration:U,delay:D,easing:_}=Ar({style:g,timeout:v,easing:a},{mode:"exit"});let L;v==="auto"?(L=E.transitions.getAutoHeightDuration(B.clientHeight),m.current=L):L=U,B.style.transition=[E.transitions.create("opacity",{duration:L,delay:D}),E.transitions.create("transform",{duration:Ec?L:L*.666,delay:Ec?D:D||L*.333,easing:_})].join(","),B.style.opacity=0,B.style.transform=Wd(.75),f&&f(B)}),j=k(d),A=B=>{v==="auto"&&h.start(m.current||0,B),r&&r(R.current,B)};return w.jsx(S,C({appear:o,in:l,nodeRef:R,onEnter:M,onEntered:I,onEntering:T,onExit:F,onExited:j,onExiting:N,addEndListener:A,timeout:v==="auto"?null:v},p,{children:(B,U)=>y.cloneElement(i,C({style:C({opacity:0,transform:Wd(.75),visibility:B==="exited"&&!l?"hidden":void 0},qP[B],g,i.props.style),ref:x},U))}))});t1.muiSupportAuto=!0;const QP=t1,YP=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],XP=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},S_,t);return C({},t,o)},JP=K($u,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),C({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ji.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ji.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ji.disabled}, .${ji.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ji.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZP=K(Iu,{name:"MuiInput",slot:"Input",overridesResolver:Tu})({}),n1=y.forwardRef(function(t,n){var r,o,i,a;const l=xe({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:b=!1,slotProps:g,slots:v={},type:S="text"}=l,p=q(l,YP),h=XP(l),E={root:{ownerState:{disableUnderline:s}}},R=g??c?nn(g??c,E):E,x=(r=(o=v.root)!=null?o:u.Root)!=null?r:JP,k=(i=(a=v.input)!=null?a:u.Input)!=null?i:ZP;return w.jsx(hp,C({slots:{root:x,input:k},slotProps:R,fullWidth:f,inputComponent:d,multiline:b,ref:n,type:S},p,{classes:h}))});n1.muiName="Input";const r1=n1;function eT(e){return ve("MuiInputLabel",e)}ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tT=["disableAnimation","margin","shrink","variant","className"],nT=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,s={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ne(r)}`,a],asterisk:[l&&"asterisk"]},u=ye(s,eT,t);return C({},t,u)},rT=K(KP,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${aa.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>C({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&C({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&C({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&C({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),oT=y.forwardRef(function(t,n){const r=xe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,l=q(r,tT),s=gi();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=vi({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),f=C({},r,{disableAnimation:o,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=nT(f);return w.jsx(rT,C({"data-shrink":u,ownerState:f,ref:n,className:Z(d.root,a)},l,{classes:d}))}),o1=oT,iT=y.createContext({}),In=iT;function aT(e){return ve("MuiList",e)}ge("MuiList",["root","padding","dense","subheader"]);const lT=["children","className","component","dense","disablePadding","subheader"],sT=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},aT,t)},uT=K("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cT=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=r,c=q(r,lT),f=y.useMemo(()=>({dense:l}),[l]),d=C({},r,{component:a,dense:l,disablePadding:s}),b=sT(d);return w.jsx(In.Provider,{value:f,children:w.jsxs(uT,C({as:a,className:Z(b.root,i),ref:n,ownerState:d},c,{children:[u,o]}))})}),i1=cT;function dT(e){return ve("MuiListItem",e)}const fT=ge("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),_o=fT;function pT(e){return ve("MuiListItemButton",e)}const hT=ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Po=hT,mT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],vT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},gT=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:l}=e,u=ye({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},pT,n);return C({},n,u)},yT=K(Ka,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:vT})(({theme:e,ownerState:t})=>C({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Po.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Po.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Po.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Po.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Po.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),xT=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:l,dense:s=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:d=!1,className:b}=r,g=q(r,mT),v=y.useContext(In),S=y.useMemo(()=>({dense:s||v.dense||!1,alignItems:o,disableGutters:u}),[o,v.dense,s,u]),p=y.useRef(null);On(()=>{i&&p.current&&p.current.focus()},[i]);const h=C({},r,{alignItems:o,dense:S.dense,disableGutters:u,divider:c,selected:d}),m=gT(h),E=ot(p,n);return w.jsx(In.Provider,{value:S,children:w.jsx(yT,C({ref:E,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:Z(m.focusVisible,f),ownerState:h,className:Z(m.root,b)},g,{classes:m,children:l}))})}),ST=xT;function bT(e){return ve("MuiListItemSecondaryAction",e)}ge("MuiListItemSecondaryAction",["root","disableGutters"]);const wT=["className"],CT=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},bT,n)},ET=K("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>C({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a1=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=q(r,wT),a=y.useContext(In),l=C({},r,{disableGutters:a.disableGutters}),s=CT(l);return w.jsx(ET,C({className:Z(s.root,o),ownerState:l,ref:n},i))});a1.muiName="ListItemSecondaryAction";const kT=a1,RT=["className"],_T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],PT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},TT=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return ye({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},dT,r)},$T=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:PT})(({theme:e,ownerState:t})=>C({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&C({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Po.root}`]:{paddingRight:48}},{[`&.${_o.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_o.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_o.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_o.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_o.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),IT=K("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),MT=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:l,className:s,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:b}={},dense:g=!1,disabled:v=!1,disableGutters:S=!1,disablePadding:p=!1,divider:h=!1,focusVisibleClassName:m,secondaryAction:E,selected:R=!1,slotProps:x={},slots:k={}}=r,T=q(r.ContainerProps,RT),M=q(r,_T),I=y.useContext(In),N=y.useMemo(()=>({dense:g||I.dense||!1,alignItems:o,disableGutters:S}),[o,I.dense,g,S]),F=y.useRef(null);On(()=>{i&&F.current&&F.current.focus()},[i]);const j=y.Children.toArray(l),A=j.length&&ra(j[j.length-1],["ListItemSecondaryAction"]),B=C({},r,{alignItems:o,autoFocus:i,button:a,dense:N.dense,disabled:v,disableGutters:S,disablePadding:p,divider:h,hasSecondaryAction:A,selected:R}),U=TT(B),D=ot(F,n),_=k.root||c.Root||$T,L=x.root||f.root||{},W=C({className:Z(U.root,L.className,s),disabled:v},M);let X=u||"li";return a&&(W.component=u||"div",W.focusVisibleClassName=Z(_o.focusVisible,m),X=Ka),A?(X=!W.component&&!u?"div":X,d==="li"&&(X==="li"?X="div":W.component==="li"&&(W.component="div")),w.jsx(In.Provider,{value:N,children:w.jsxs(IT,C({as:d,className:Z(U.container,b),ref:D,ownerState:B},T,{children:[w.jsx(_,C({},L,!li(_)&&{as:X,ownerState:C({},B,L.ownerState)},W,{children:j})),j.pop()]}))})):w.jsx(In.Provider,{value:N,children:w.jsxs(_,C({},L,{as:X,ref:D},!li(_)&&{ownerState:C({},B,L.ownerState)},W,{children:[j,E&&w.jsx(kT,{children:E})]}))})}),OT=MT;function NT(e){return ve("MuiListItemIcon",e)}const LT=ge("MuiListItemIcon",["root","alignItemsFlexStart"]),Hm=LT,jT=["className"],AT=e=>{const{alignItems:t,classes:n}=e;return ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},NT,n)},DT=K("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),zT=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=q(r,jT),a=y.useContext(In),l=C({},r,{alignItems:a.alignItems}),s=AT(l);return w.jsx(DT,C({className:Z(s.root,o),ownerState:l,ref:n},i))}),FT=zT;function BT(e){return ve("MuiListItemText",e)}const UT=ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gs=UT,WT=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],HT=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ye({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},BT,t)},VT=K("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gs.primary}`]:t.primary},{[`& .${gs.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),KT=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,d=q(r,WT),{dense:b}=y.useContext(In);let g=s??o,v=c;const S=C({},r,{disableTypography:a,inset:l,primary:!!g,secondary:!!v,dense:b}),p=HT(S);return g!=null&&g.type!==_e&&!a&&(g=w.jsx(_e,C({variant:b?"body2":"body1",className:p.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==_e&&!a&&(v=w.jsx(_e,C({variant:"body2",className:p.secondary,color:"text.secondary",display:"block"},f,{children:v}))),w.jsxs(VT,C({className:Z(p.root,i),ownerState:S,ref:n},d,{children:[g,v]}))}),GT=KT,qT=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Vm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function l1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ai(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const s=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!l1(l,i)||s)l=o(e,l,n);else return l.focus(),!0}return!1}const QT=y.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=q(t,qT),b=y.useRef(null),g=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});On(()=>{o&&b.current.focus()},[o]),y.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,{direction:E})=>{const R=!b.current.style.width;if(m.clientHeight{const E=b.current,R=m.key,x=Kt(E).activeElement;if(R==="ArrowDown")m.preventDefault(),Ai(E,x,u,s,kc);else if(R==="ArrowUp")m.preventDefault(),Ai(E,x,u,s,Vm);else if(R==="Home")m.preventDefault(),Ai(E,null,u,s,kc);else if(R==="End")m.preventDefault(),Ai(E,null,u,s,Vm);else if(R.length===1){const k=g.current,T=R.toLowerCase(),M=performance.now();k.keys.length>0&&(M-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&T!==k.keys[0]&&(k.repeating=!1)),k.lastTime=M,k.keys.push(T);const I=x&&!k.repeating&&l1(x,k);k.previousKeyMatched&&(I||Ai(E,x,!1,s,kc,k))?m.preventDefault():k.previousKeyMatched=!1}c&&c(m)},S=ot(b,n);let p=-1;y.Children.forEach(a,(m,E)=>{if(!y.isValidElement(m)){p===E&&(p+=1,p>=a.length&&(p=-1));return}m.props.disabled||(f==="selectedMenu"&&m.props.selected||p===-1)&&(p=E),p===E&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(p+=1,p>=a.length&&(p=-1))});const h=y.Children.map(a,(m,E)=>{if(E===p){const R={};return i&&(R.autoFocus=!0),m.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),y.cloneElement(m,R)}return m});return w.jsx(i1,C({role:"menu",ref:S,className:l,onKeyDown:v,tabIndex:o?0:-1},d,{children:h}))}),YT=QT;function XT(e){return ve("MuiPopover",e)}ge("MuiPopover",["root","paper"]);const JT=["onEntering"],ZT=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],e$=["slotProps"];function Km(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Gm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rc(e){return typeof e=="function"?e():e}const t$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},XT,t)},n$=K(qy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s1=K(Ru,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),r$=y.forwardRef(function(t,n){var r,o,i;const a=xe({props:t,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:b,container:g,elevation:v=8,marginThreshold:S=16,open:p,PaperProps:h={},slots:m,slotProps:E,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:x=QP,transitionDuration:k="auto",TransitionProps:{onEntering:T}={},disableScrollLock:M=!1}=a,I=q(a.TransitionProps,JT),N=q(a,ZT),F=(r=E==null?void 0:E.paper)!=null?r:h,j=y.useRef(),A=ot(j,F.ref),B=C({},a,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:S,externalPaperSlotProps:F,transformOrigin:R,TransitionComponent:x,transitionDuration:k,TransitionProps:I}),U=t$(B),D=y.useCallback(()=>{if(f==="anchorPosition")return c;const se=Rc(s),we=(se&&se.nodeType===1?se:Kt(j.current).body).getBoundingClientRect();return{top:we.top+Km(we,u.vertical),left:we.left+Gm(we,u.horizontal)}},[s,u.horizontal,u.vertical,c,f]),_=y.useCallback(se=>({vertical:Km(se,R.vertical),horizontal:Gm(se,R.horizontal)}),[R.horizontal,R.vertical]),L=y.useCallback(se=>{const Re={width:se.offsetWidth,height:se.offsetHeight},we=_(Re);if(f==="none")return{top:null,left:null,transformOrigin:qm(we)};const Ln=D();let Lt=Ln.top-we.vertical,jt=Ln.left-we.horizontal;const Qt=Lt+Re.height,At=jt+Re.width,$e=Qn(Rc(s)),sn=$e.innerHeight-S,dt=$e.innerWidth-S;if(S!==null&&Ltsn){const Se=Qt-sn;Lt-=Se,we.vertical+=Se}if(S!==null&&jtdt){const Se=At-dt;jt-=Se,we.horizontal+=Se}return{top:`${Math.round(Lt)}px`,left:`${Math.round(jt)}px`,transformOrigin:qm(we)}},[s,f,D,_,S]),[W,X]=y.useState(p),re=y.useCallback(()=>{const se=j.current;if(!se)return;const Re=L(se);Re.top!==null&&(se.style.top=Re.top),Re.left!==null&&(se.style.left=Re.left),se.style.transformOrigin=Re.transformOrigin,X(!0)},[L]);y.useEffect(()=>(M&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[s,M,re]);const he=(se,Re)=>{T&&T(se,Re),re()},J=()=>{X(!1)};y.useEffect(()=>{p&&re()}),y.useImperativeHandle(l,()=>p?{updatePosition:()=>{re()}}:null,[p,re]),y.useEffect(()=>{if(!p)return;const se=gu(()=>{re()}),Re=Qn(s);return Re.addEventListener("resize",se),()=>{se.clear(),Re.removeEventListener("resize",se)}},[s,p,re]);let ue=k;k==="auto"&&!x.muiSupportAuto&&(ue=void 0);const V=g||(s?Kt(Rc(s)).body:void 0),de=(o=m==null?void 0:m.root)!=null?o:n$,Ae=(i=m==null?void 0:m.paper)!=null?i:s1,Pe=si({elementType:Ae,externalSlotProps:C({},F,{style:W?F.style:C({},F.style,{opacity:0})}),additionalProps:{elevation:v,ref:A},ownerState:B,className:Z(U.paper,F==null?void 0:F.className)}),et=si({elementType:de,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:p},ownerState:B,className:Z(U.root,b)}),{slotProps:ie}=et,Te=q(et,e$);return w.jsx(de,C({},Te,!li(de)&&{slotProps:ie,disableScrollLock:M},{children:w.jsx(x,C({appear:!0,in:p,onEntering:he,onExited:J,timeout:ue},I,{children:w.jsx(Ae,C({},Pe,{children:d}))}))}))}),o$=r$;function i$(e){return ve("MuiMenu",e)}ge("MuiMenu",["root","paper","list"]);const a$=["onEntering"],l$=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],s$={vertical:"top",horizontal:"right"},u$={vertical:"top",horizontal:"left"},c$=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},i$,t)},d$=K(o$,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),f$=K(s1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),p$=K(YT,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),h$=y.forwardRef(function(t,n){var r,o;const i=xe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:b={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:S}={},variant:p="selectedMenu",slots:h={},slotProps:m={}}=i,E=q(i.TransitionProps,a$),R=q(i,l$),x=dy(),k=C({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:S,PaperProps:b,transitionDuration:v,TransitionProps:E,variant:p}),T=c$(k),M=a&&!u&&d,I=y.useRef(null),N=(_,L)=>{I.current&&I.current.adjustStyleForScrollbar(_,{direction:x?"rtl":"ltr"}),S&&S(_,L)},F=_=>{_.key==="Tab"&&(_.preventDefault(),f&&f(_,"tabKeyDown"))};let j=-1;y.Children.map(l,(_,L)=>{y.isValidElement(_)&&(_.props.disabled||(p==="selectedMenu"&&_.props.selected||j===-1)&&(j=L))});const A=(r=h.paper)!=null?r:f$,B=(o=m.paper)!=null?o:b,U=si({elementType:h.root,externalSlotProps:m.root,ownerState:k,className:[T.root,s]}),D=si({elementType:A,externalSlotProps:B,ownerState:k,className:T.paper});return w.jsx(d$,C({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?s$:u$,slots:{paper:A,root:h.root},slotProps:{root:U,paper:D},open:d,ref:n,transitionDuration:v,TransitionProps:C({onEntering:N},E),ownerState:k},R,{classes:g,children:w.jsx(p$,C({onKeyDown:F,actions:I,autoFocus:a&&(j===-1||u),autoFocusItem:M,variant:p},c,{className:Z(T.list,c.className),children:l}))}))}),m$=h$;function v$(e){return ve("MuiMenuItem",e)}const g$=ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Di=g$,y$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},S$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},v$,a);return C({},a,s)},b$=K(Ka,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x$})(({theme:e,ownerState:t})=>C({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Di.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Di.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Di.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Di.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Di.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fm.inset}`]:{marginLeft:52},[`& .${gs.root}`]:{marginTop:0,marginBottom:0},[`& .${gs.inset}`]:{paddingLeft:36},[`& .${Hm.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&C({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hm.root} svg`]:{fontSize:"1.25rem"}}))),w$=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:d}=r,b=q(r,y$),g=y.useContext(In),v=y.useMemo(()=>({dense:a||g.dense||!1,disableGutters:s}),[g.dense,a,s]),S=y.useRef(null);On(()=>{o&&S.current&&S.current.focus()},[o]);const p=C({},r,{dense:v.dense,divider:l,disableGutters:s}),h=S$(r),m=ot(S,n);let E;return r.disabled||(E=f!==void 0?f:-1),w.jsx(In.Provider,{value:v,children:w.jsx(b$,C({ref:m,role:c,tabIndex:E,component:i,focusVisibleClassName:Z(h.focusVisible,u),className:Z(h.root,d)},b,{ownerState:p,classes:h}))})}),C$=w$;function E$(e){return ve("MuiNativeSelect",e)}const k$=ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mp=k$,R$=["className","disabled","error","IconComponent","inputRef","variant"],_$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(l,E$,t)},u1=({ownerState:e,theme:t})=>C({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":C({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${mp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),P$=K("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${mp.multiple}`]:t.multiple}]}})(u1),c1=({ownerState:e,theme:t})=>C({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${mp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),T$=K("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(c1),$$=y.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=t,u=q(t,R$),c=C({},t,{disabled:o,variant:s,error:i}),f=_$(c);return w.jsxs(y.Fragment,{children:[w.jsx(P$,C({ownerState:c,className:Z(f.select,r),disabled:o,ref:l||n},u)),t.multiple?null:w.jsx(T$,{as:a,ownerState:c,className:f.icon})]})}),I$=$$;var Qm;const M$=["children","classes","className","label","notched"],O$=K("fieldset",{shouldForwardProp:qt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),N$=K("legend",{shouldForwardProp:qt})(({ownerState:e,theme:t})=>C({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&C({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function L$(e){const{className:t,label:n,notched:r}=e,o=q(e,M$),i=n!=null&&n!=="",a=C({},e,{notched:r,withLabel:i});return w.jsx(O$,C({"aria-hidden":!0,className:t,ownerState:a},o,{children:w.jsx(N$,{ownerState:a,children:i?w.jsx("span",{children:n}):Qm||(Qm=w.jsx("span",{className:"notranslate",children:"​"}))})}))}const j$=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],A$=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w_,t);return C({},t,r)},D$=K($u,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return C({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${mr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${mr.focused} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${mr.error} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${mr.disabled} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&C({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),z$=K(L$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),F$=K(Iu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tu})(({theme:e,ownerState:t})=>C({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),d1=y.forwardRef(function(t,n){var r,o,i,a,l;const s=xe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:b=!1,notched:g,slots:v={},type:S="text"}=s,p=q(s,j$),h=A$(s),m=gi(),E=vi({props:s,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=C({},s,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:m,fullWidth:c,hiddenLabel:E.hiddenLabel,multiline:b,size:E.size,type:S}),x=(r=(o=v.root)!=null?o:u.Root)!=null?r:D$,k=(i=(a=v.input)!=null?a:u.Input)!=null?i:F$;return w.jsx(hp,C({slots:{root:x,input:k},renderSuffix:T=>w.jsx(z$,{ownerState:R,className:h.notchedOutline,label:d!=null&&d!==""&&E.required?l||(l=w.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:typeof g<"u"?g:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:c,inputComponent:f,multiline:b,ref:n,type:S},p,{classes:C({},h,{notchedOutline:null})}))});d1.muiName="Input";const f1=d1;function B$(e){return ve("MuiSelect",e)}const zi=ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ym;const U$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],W$=K("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zi.select}`]:t.select},{[`&.${zi.select}`]:t[n.variant]},{[`&.${zi.error}`]:t.error},{[`&.${zi.multiple}`]:t.multiple}]}})(u1,{[`&.${zi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),H$=K("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(c1),V$=K("input",{shouldForwardProp:e=>wy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Xm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function K$(e){return e==null||typeof e=="string"&&!e.trim()}const G$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(l,B$,t)},q$=y.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:b,error:g=!1,IconComponent:v,inputRef:S,labelId:p,MenuProps:h={},multiple:m,name:E,onBlur:R,onChange:x,onClose:k,onFocus:T,onOpen:M,open:I,readOnly:N,renderValue:F,SelectDisplayProps:j={},tabIndex:A,value:B,variant:U="standard"}=t,D=q(t,U$),[_,L]=Td({controlled:B,default:f,name:"Select"}),[W,X]=Td({controlled:I,default:c,name:"Select"}),re=y.useRef(null),he=y.useRef(null),[J,ue]=y.useState(null),{current:V}=y.useRef(I!=null),[de,Ae]=y.useState(),Pe=ot(n,S),et=y.useCallback(te=>{he.current=te,te&&ue(te)},[]),ie=J==null?void 0:J.parentNode;y.useImperativeHandle(Pe,()=>({focus:()=>{he.current.focus()},node:re.current,value:_}),[_]),y.useEffect(()=>{c&&W&&J&&!V&&(Ae(l?null:ie.clientWidth),he.current.focus())},[J,l]),y.useEffect(()=>{a&&he.current.focus()},[a]),y.useEffect(()=>{if(!p)return;const te=Kt(he.current).getElementById(p);if(te){const Le=()=>{getSelection().isCollapsed&&he.current.focus()};return te.addEventListener("click",Le),()=>{te.removeEventListener("click",Le)}}},[p]);const Te=(te,Le)=>{te?M&&M(Le):k&&k(Le),V||(Ae(l?null:ie.clientWidth),X(te))},se=te=>{te.button===0&&(te.preventDefault(),he.current.focus(),Te(!0,te))},Re=te=>{Te(!1,te)},we=y.Children.toArray(s),Ln=te=>{const Le=we.find(Ge=>Ge.props.value===te.target.value);Le!==void 0&&(L(Le.props.value),x&&x(te,Le))},Lt=te=>Le=>{let Ge;if(Le.currentTarget.hasAttribute("tabindex")){if(m){Ge=Array.isArray(_)?_.slice():[];const Yn=_.indexOf(te.props.value);Yn===-1?Ge.push(te.props.value):Ge.splice(Yn,1)}else Ge=te.props.value;if(te.props.onClick&&te.props.onClick(Le),_!==Ge&&(L(Ge),x)){const Yn=Le.nativeEvent||Le,mo=new Yn.constructor(Yn.type,Yn);Object.defineProperty(mo,"target",{writable:!0,value:{value:Ge,name:E}}),x(mo,te)}m||Te(!1,Le)}},jt=te=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(te.key)!==-1&&(te.preventDefault(),Te(!0,te))},Qt=J!==null&&W,At=te=>{!Qt&&R&&(Object.defineProperty(te,"target",{writable:!0,value:{value:_,name:E}}),R(te))};delete D["aria-invalid"];let $e,sn;const dt=[];let Se=!1;(vs({value:_})||b)&&(F?$e=F(_):Se=!0);const Ct=we.map(te=>{if(!y.isValidElement(te))return null;let Le;if(m){if(!Array.isArray(_))throw new Error(co(2));Le=_.some(Ge=>Xm(Ge,te.props.value)),Le&&Se&&dt.push(te.props.children)}else Le=Xm(_,te.props.value),Le&&Se&&(sn=te.props.children);return y.cloneElement(te,{"aria-selected":Le?"true":"false",onClick:Lt(te),onKeyUp:Ge=>{Ge.key===" "&&Ge.preventDefault(),te.props.onKeyUp&&te.props.onKeyUp(Ge)},role:"option",selected:Le,value:void 0,"data-value":te.props.value})});Se&&(m?dt.length===0?$e=null:$e=dt.reduce((te,Le,Ge)=>(te.push(Le),Ge{const{classes:t}=e;return t},vp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>qt(e)&&e!=="variant",slot:"Root"},Z$=K(r1,vp)(""),eI=K(f1,vp)(""),tI=K(Zy,vp)(""),p1=y.forwardRef(function(t,n){const r=xe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=R_,id:f,input:d,inputProps:b,label:g,labelId:v,MenuProps:S,multiple:p=!1,native:h=!1,onClose:m,onOpen:E,open:R,renderValue:x,SelectDisplayProps:k,variant:T="outlined"}=r,M=q(r,Y$),I=h?I$:Q$,N=gi(),F=vi({props:r,muiFormControl:N,states:["variant","error"]}),j=F.variant||T,A=C({},r,{variant:j,classes:a}),B=J$(A),U=q(B,X$),D=d||{standard:w.jsx(Z$,{ownerState:A}),outlined:w.jsx(eI,{label:g,ownerState:A}),filled:w.jsx(tI,{ownerState:A})}[j],_=ot(n,D.ref);return w.jsx(y.Fragment,{children:y.cloneElement(D,C({inputComponent:I,inputProps:C({children:i,error:F.error,IconComponent:c,variant:j,type:void 0,multiple:p},h?{id:f}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:v,MenuProps:S,onClose:m,onOpen:E,open:R,renderValue:x,SelectDisplayProps:C({id:f},k)},b,{classes:b?nn(U,b.classes):U},d?d.props.inputProps:{})},(p&&h||u)&&j==="outlined"?{notched:!0}:{},{ref:_,className:Z(D.props.className,l,B.root)},!d&&{variant:j},M))})});p1.muiName="Select";const h1=p1;function nI(e){return ve("MuiToolbar",e)}ge("MuiToolbar",["root","gutters","regular","dense"]);const rI=["className","component","disableGutters","variant"],oI=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},nI,t)},iI=K("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>C({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),aI=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular"}=r,s=q(r,rI),u=C({},r,{component:i,disableGutters:a,variant:l}),c=oI(u);return w.jsx(iI,C({as:i,className:Z(c.root,o),ref:n,ownerState:u},s))}),lI=aI;function sI(e){return ve("MuiTextField",e)}ge("MuiTextField",["root"]);const uI=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cI={standard:r1,filled:Zy,outlined:f1},dI=e=>{const{classes:t}=e;return ye({root:["root"]},sI,t)},fI=K(e1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pI=y.forwardRef(function(t,n){const r=xe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:s="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:b=!1,helperText:g,id:v,InputLabelProps:S,inputProps:p,InputProps:h,inputRef:m,label:E,maxRows:R,minRows:x,multiline:k=!1,name:T,onBlur:M,onChange:I,onFocus:N,placeholder:F,required:j=!1,rows:A,select:B=!1,SelectProps:U,type:D,value:_,variant:L="outlined"}=r,W=q(r,uI),X=C({},r,{autoFocus:i,color:s,disabled:c,error:f,fullWidth:b,multiline:k,required:j,select:B,variant:L}),re=dI(X),he={};L==="outlined"&&(S&&typeof S.shrink<"u"&&(he.notched=S.shrink),he.label=E),B&&((!U||!U.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const J=np(v),ue=g&&J?`${J}-helper-text`:void 0,V=E&&J?`${J}-label`:void 0,de=cI[L],Ae=w.jsx(de,C({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:b,multiline:k,name:T,rows:A,maxRows:R,minRows:x,type:D,value:_,id:J,inputRef:m,onBlur:M,onChange:I,onFocus:N,placeholder:F,inputProps:p},he,h));return w.jsxs(fI,C({className:Z(re.root,l),disabled:c,error:f,fullWidth:b,ref:n,required:j,color:s,variant:L,ownerState:X},W,{children:[E!=null&&E!==""&&w.jsx(o1,C({htmlFor:J,id:V},S,{children:E})),B?w.jsx(h1,C({"aria-describedby":ue,id:J,labelId:V,value:_,input:Ae},U,{children:a})):Ae,g&&w.jsx(DP,C({id:ue},d,{children:g}))]}))}),Jm=pI,hI=Nt(w.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-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),mI=Nt(w.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),vI=Nt(w.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),gI=Nt(w.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"}),"ContentCopy"),yI=Nt(w.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),xI=Nt(w.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),SI=Nt(w.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt"),bI=Nt(w.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed"),yi=Bt.createContext({me:{username:"Not initialized",fame:0,re_spec:0,silver:0,weapon:"Not initialized"},world:{map:"Not in map",dungeon:void 0,isDPSMeterRunning:!1,party:[],list_dungeon:[]},dungeonFilter:[],setWorld:()=>{},initWorld:()=>{},initPlayer:()=>{},updateFame:()=>{},updateReSpec:()=>{},updateSilver:()=>{},updateLocation:()=>{},updateIsDPSMeterRunning:()=>{},updateParty:()=>{},updateDungeon:()=>{}}),wI=({children:e})=>{const[t,n]=y.useState({username:"Not initialized",fame:0,re_spec:0,silver:0,weapon:"Not initialized"}),[r,o]=y.useState({map:"Not in map",dungeon:void 0,isDPSMeterRunning:!1,party:[],list_dungeon:[]}),[i,a]=y.useState(["ALL"]),l=(p,h)=>{n({username:p.username,fame:p.fame,re_spec:p.re_spec,silver:p.silver,weapon:p.weapon}),o({map:h.map,dungeon:h.dungeon,isDPSMeterRunning:h.isDPSMeterRunning,party:[],list_dungeon:[]})},s=p=>{n({username:p.username,fame:p.fame,re_spec:p.re_spec,silver:p.silver,weapon:p.weapon})},u=p=>{n(h=>({...h,fame:h.fame+p}))},c=p=>{n(h=>({...h,re_spec:h.re_spec+p}))},f=(p,h)=>{p==t.username&&n(m=>({...m,silver:m.silver+h}))},d=(p,h)=>o(m=>({...m,map:p,dungeon:h})),b=p=>{o(h=>({...h,isDPSMeterRunning:p}))},g=p=>{o(h=>({...h,party:p}))},v=p=>{o(h=>({...h,list_dungeon:p})),S(p)},S=p=>{let h=new Set;h.add("ALL"),p.forEach(m=>{h.add(m.type)}),a([...h])};return w.jsx(yi.Provider,{value:{me:t,world:r,dungeonFilter:i,setWorld:o,initWorld:l,initPlayer:s,updateFame:u,updateReSpec:c,updateSilver:f,updateLocation:d,updateIsDPSMeterRunning:b,updateParty:g,updateDungeon:v},children:e})},gp=240,Zm=e=>({width:gp,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),ev=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(8)} + 1px)`}),CI=K("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar})),EI=K(UR,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({paddingLeft:e.spacing(7),zIndex:e.zIndex.drawer-1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{paddingLeft:0,width:`calc(100% - ${gp}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),kI=K(wP,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({width:gp,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...Zm(e),"& .MuiDrawer-paper":Zm(e)},...!t&&{...ev(e),"& .MuiDrawer-paper":ev(e)}})),RI=()=>{const e=[{pageName:"DPS Meter",url:"/",icon:w.jsx(bI,{})},{pageName:"Dungeon Tracker",url:"/dungeon-tracker",icon:w.jsx(hI,{})}],t=Bk(),[n,r]=Bt.useState(!1),{me:o,world:i}=y.useContext(yi),a=()=>{r(!0)},l=()=>{r(!1)};return w.jsxs(w.Fragment,{children:[w.jsx(EI,{position:"fixed",open:n,color:"secondary",children:w.jsxs(lI,{style:{display:"flex",gap:"1rem"},children:[w.jsxs(_e,{children:["USERNAME: ",w.jsx("b",{children:o.username})]}),w.jsxs(_e,{children:["CURRENT MAP: ",w.jsx("b",{children:i.map})]}),w.jsxs(_e,{children:["CURRENT DUNGEON:"," ",w.jsx("b",{children:i.dungeon!=null?i.dungeon.name:"not in dungeon"})]})]})}),w.jsxs(kI,{variant:"permanent",open:n,children:[w.jsx(CI,{children:n?w.jsx(Ud,{onClick:l,children:w.jsx(mI,{})}):w.jsx(Ud,{onClick:a,children:w.jsx(vI,{})})}),w.jsx(lP,{}),w.jsx(i1,{children:e.map((s,u)=>w.jsx(OT,{disablePadding:!0,sx:{display:"block"},children:w.jsxs(ST,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},onClick:()=>{t(s.url),l()},children:[w.jsx(FT,{sx:{minWidth:0,mr:n?3:"auto",justifyContent:"center"},children:s.icon}),w.jsx(GT,{primary:s.pageName,sx:{opacity:n?1:0}})]})},u))})]}),w.jsx("p",{children:"Hello"})]})};var m1={exports:{}};/*! +`),pn.rippleVisible,X2,Ud,({theme:e})=>e.transitions.easing.easeInOut,pn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,pn.child,pn.childLeaving,J2,Ud,({theme:e})=>e.transitions.easing.easeInOut,pn.childPulsate,Z2,({theme:e})=>e.transitions.easing.easeInOut),nR=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=q(r,Q2),[s,u]=y.useState([]),c=y.useRef(0),f=y.useRef(null);y.useEffect(()=>{f.current&&(f.current(),f.current=null)},[s]);const d=y.useRef(!1),b=op(),g=y.useRef(null),v=y.useRef(null),S=y.useCallback(E=>{const{pulsate:R,rippleX:x,rippleY:k,rippleSize:T,cb:M}=E;u(I=>[...I,w.jsx(tR,{classes:{ripple:Z(i.ripple,pn.ripple),rippleVisible:Z(i.rippleVisible,pn.rippleVisible),ripplePulsate:Z(i.ripplePulsate,pn.ripplePulsate),child:Z(i.child,pn.child),childLeaving:Z(i.childLeaving,pn.childLeaving),childPulsate:Z(i.childPulsate,pn.childPulsate)},timeout:Ud,pulsate:R,rippleX:x,rippleY:k,rippleSize:T},c.current)]),c.current+=1,f.current=M},[i]),p=y.useCallback((E={},R={},x=()=>{})=>{const{pulsate:k=!1,center:T=o||R.pulsate,fakeElement:M=!1}=R;if((E==null?void 0:E.type)==="mousedown"&&d.current){d.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(d.current=!0);const I=M?null:v.current,N=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,j,A;if(T||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)F=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:B,clientY:U}=E.touches&&E.touches.length>0?E.touches[0]:E;F=Math.round(B-N.left),j=Math.round(U-N.top)}if(T)A=Math.sqrt((2*N.width**2+N.height**2)/3),A%2===0&&(A+=1);else{const B=Math.max(Math.abs((I?I.clientWidth:0)-F),F)*2+2,U=Math.max(Math.abs((I?I.clientHeight:0)-j),j)*2+2;A=Math.sqrt(B**2+U**2)}E!=null&&E.touches?g.current===null&&(g.current=()=>{S({pulsate:k,rippleX:F,rippleY:j,rippleSize:A,cb:x})},b.start(Y2,()=>{g.current&&(g.current(),g.current=null)})):S({pulsate:k,rippleX:F,rippleY:j,rippleSize:A,cb:x})},[o,S,b]),h=y.useCallback(()=>{p({},{pulsate:!0})},[p]),m=y.useCallback((E,R)=>{if(b.clear(),(E==null?void 0:E.type)==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{m(E,R)});return}g.current=null,u(x=>x.length>0?x.slice(1):x),f.current=R},[b]);return y.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:m}),[h,p,m]),w.jsx(eR,C({className:Z(pn.root,i.root,a),ref:v},l,{children:w.jsx(M2,{component:null,exit:!0,children:s})}))}),rR=nR;function oR(e){return ve("MuiButtonBase",e)}const iR=ge("MuiButtonBase",["root","disabled","focusVisible"]),aR=["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"],lR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=xe({root:["root",t&&"disabled",n&&"focusVisible"]},oR,o);return n&&r&&(a.root+=` ${r}`),a},sR=K("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"},[`&.${iR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uR=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:b="a",onBlur:g,onClick:v,onContextMenu:S,onDragLeave:p,onFocus:h,onFocusVisible:m,onKeyDown:E,onKeyUp:R,onMouseDown:x,onMouseLeave:k,onMouseUp:T,onTouchEnd:M,onTouchMove:I,onTouchStart:N,tabIndex:F=0,TouchRippleProps:j,touchRippleRef:A,type:B}=r,U=q(r,aR),D=y.useRef(null),_=y.useRef(null),L=ot(_,A),{isFocusVisibleRef:W,onFocus:X,onBlur:re,ref:he}=ay(),[J,ue]=y.useState(!1);u&&J&&ue(!1),y.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),D.current.focus()}}),[]);const[V,de]=y.useState(!1);y.useEffect(()=>{de(!0)},[]);const Ae=V&&!c&&!u;y.useEffect(()=>{J&&d&&!c&&V&&_.current.pulsate()},[c,d,J,V]);function Pe(Y,un,dr=f){return Jr(fr=>(un&&un(fr),!dr&&_.current&&_.current[Y](fr),!0))}const et=Pe("start",x),ie=Pe("stop",S),Te=Pe("stop",p),se=Pe("stop",T),_e=Pe("stop",Y=>{J&&Y.preventDefault(),k&&k(Y)}),Ce=Pe("start",N),jn=Pe("stop",M),Lt=Pe("stop",I),jt=Pe("stop",Y=>{re(Y),W.current===!1&&ue(!1),g&&g(Y)},!1),Qt=Jr(Y=>{D.current||(D.current=Y.currentTarget),X(Y),W.current===!0&&(ue(!0),m&&m(Y)),h&&h(Y)}),At=()=>{const Y=D.current;return s&&s!=="button"&&!(Y.tagName==="A"&&Y.href)},$e=y.useRef(!1),sn=Jr(Y=>{d&&!$e.current&&J&&_.current&&Y.key===" "&&($e.current=!0,_.current.stop(Y,()=>{_.current.start(Y)})),Y.target===Y.currentTarget&&At()&&Y.key===" "&&Y.preventDefault(),E&&E(Y),Y.target===Y.currentTarget&&At()&&Y.key==="Enter"&&!u&&(Y.preventDefault(),v&&v(Y))}),dt=Jr(Y=>{d&&Y.key===" "&&_.current&&J&&!Y.defaultPrevented&&($e.current=!1,_.current.stop(Y,()=>{_.current.pulsate(Y)})),R&&R(Y),v&&Y.target===Y.currentTarget&&At()&&Y.key===" "&&!Y.defaultPrevented&&v(Y)});let be=s;be==="button"&&(U.href||U.to)&&(be=b);const Ct={};be==="button"?(Ct.type=B===void 0?"button":B,Ct.disabled=u):(!U.href&&!U.to&&(Ct.role="button"),u&&(Ct["aria-disabled"]=u));const En=ot(n,he,D),Dt=C({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:F,focusVisible:J}),Ne=lR(Dt);return w.jsxs(sR,C({as:be,className:Z(Ne.root,l),ownerState:Dt,onBlur:jt,onClick:v,onContextMenu:ie,onFocus:Qt,onKeyDown:sn,onKeyUp:dt,onMouseDown:et,onMouseLeave:_e,onMouseUp:se,onDragLeave:Te,onTouchEnd:jn,onTouchMove:Lt,onTouchStart:Ce,ref:En,tabIndex:u?-1:F,type:B},Ct,U,{children:[a,Ae?w.jsx(rR,C({ref:L,center:i},j)):null]}))}),Ga=uR;function cR(e){return ve("MuiAlert",e)}const dR=ge("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Om=dR;function fR(e){return ve("MuiIconButton",e)}const pR=ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),hR=["edge","children","className","color","disabled","disableFocusRipple","size"],mR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ne(r)}`,o&&`edge${ne(o)}`,`size${ne(i)}`]};return xe(a,fR,t)},vR=K(Ga,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ne(n.color)}`],n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})(({theme:e,ownerState:t})=>C({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return C({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&C({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":C({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${pR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),gR=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=q(r,hR),d=C({},r,{edge:o,color:l,disabled:s,disableFocusRipple:u,size:c}),b=mR(d);return w.jsx(vR,C({className:Z(b.root,a),centerRipple:!0,focusRipple:!u,disabled:s,ref:n},f,{ownerState:d,children:i}))}),Wd=gR,yR=Nt(w.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),xR=Nt(w.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),SR=Nt(w.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),bR=Nt(w.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),wR=Nt(w.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),CR=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ER=E2(),kR=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ne(n||r)}`,`${t}${ne(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return xe(i,cR,o)},RR=K(_u,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Md:Od,n=e.palette.mode==="light"?Od:Md;return C({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Om.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Om.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:C({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),_R=K("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),PR=K("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Nm=K("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Lm={success:w.jsx(yR,{fontSize:"inherit"}),warning:w.jsx(xR,{fontSize:"inherit"}),error:w.jsx(SR,{fontSize:"inherit"}),info:w.jsx(bR,{fontSize:"inherit"})},TR=y.forwardRef(function(t,n){const r=ER({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:l="Close",color:s,components:u={},componentsProps:c={},icon:f,iconMapping:d=Lm,onClose:b,role:g="alert",severity:v="success",slotProps:S={},slots:p={},variant:h="standard"}=r,m=q(r,CR),E=C({},r,{color:s,severity:v,variant:h,colorSeverity:s||v}),R=kR(E),x={slots:C({closeButton:u.CloseButton,closeIcon:u.CloseIcon},p),slotProps:C({},c,S)},[k,T]=Pm("closeButton",{elementType:Wd,externalForwardedProps:x,ownerState:E}),[M,I]=Pm("closeIcon",{elementType:wR,externalForwardedProps:x,ownerState:E});return w.jsxs(RR,C({role:g,elevation:0,ownerState:E,className:Z(R.root,a),ref:n},m,{children:[f!==!1?w.jsx(_R,{ownerState:E,className:R.icon,children:f||d[v]||Lm[v]}):null,w.jsx(PR,{ownerState:E,className:R.message,children:i}),o!=null?w.jsx(Nm,{ownerState:E,className:R.action,children:o}):null,o==null&&b?w.jsx(Nm,{ownerState:E,className:R.action,children:w.jsx(k,C({size:"small","aria-label":l,title:l,color:"inherit",onClick:b},T,{children:w.jsx(M,C({fontSize:"small"},I))}))}):null]}))}),jm=TR;function $R(e){return ve("MuiTypography",e)}ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const IR=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],MR=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return xe(l,$R,a)},OR=K("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${ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({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})),Am={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NR={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LR=e=>NR[e]||e,jR=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTypography"}),o=LR(r.color),i=Z0(C({},r,{color:o})),{align:a="inherit",className:l,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:b=Am}=i,g=q(i,IR),v=C({},i,{align:a,color:o,className:l,component:s,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:b}),S=s||(f?"p":b[d]||Am[d])||"span",p=MR(v);return w.jsx(OR,C({as:S,ref:n,ownerState:v,className:Z(p.root,l)},g))}),ye=jR;function AR(e){return ve("MuiAppBar",e)}ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const DR=["className","color","enableColorOnDark","position"],zR=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ne(t)}`,`position${ne(n)}`]};return xe(o,AR,r)},vl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,FR=K(_u,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ne(n.position)}`],t[`color${ne(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return C({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&C({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&C({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&C({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:vl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),BR=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:l="fixed"}=r,s=q(r,DR),u=C({},r,{color:i,position:l,enableColorOnDark:a}),c=zR(u);return w.jsx(FR,C({square:!0,component:"header",ownerState:u,elevation:4,className:Z(c.root,o,l==="fixed"&&"mui-fixed"),ref:n},s))}),UR=BR,WR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HR(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function VR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function KR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||VR(e))}function GR(e){const t=[],n=[];return Array.from(e.querySelectorAll(WR)).forEach((r,o)=>{const i=HR(r);i===-1||!KR(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function qR(){return!0}function QR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=GR,isEnabled:a=qR,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),f=y.useRef(null),d=y.useRef(null),b=y.useRef(!1),g=y.useRef(null),v=ot(t.ref,g),S=y.useRef(null);y.useEffect(()=>{!l||!g.current||(b.current=!n)},[n,l]),y.useEffect(()=>{if(!l||!g.current)return;const m=Kt(g.current);return g.current.contains(m.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),b.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(s.current=!0,f.current.focus()),f.current=null)}},[l]),y.useEffect(()=>{if(!l||!g.current)return;const m=Kt(g.current),E=k=>{S.current=k,!(r||!a()||k.key!=="Tab")&&m.activeElement===g.current&&k.shiftKey&&(s.current=!0,c.current&&c.current.focus())},R=()=>{const k=g.current;if(k===null)return;if(!m.hasFocus()||!a()||s.current){s.current=!1;return}if(k.contains(m.activeElement)||r&&m.activeElement!==u.current&&m.activeElement!==c.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!b.current)return;let T=[];if((m.activeElement===u.current||m.activeElement===c.current)&&(T=i(g.current)),T.length>0){var M,I;const N=!!((M=S.current)!=null&&M.shiftKey&&((I=S.current)==null?void 0:I.key)==="Tab"),F=T[0],j=T[T.length-1];typeof F!="string"&&typeof j!="string"&&(N?j.focus():F.focus())}else k.focus()};m.addEventListener("focusin",R),m.addEventListener("keydown",E,!0);const x=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(x),m.removeEventListener("focusin",R),m.removeEventListener("keydown",E,!0)}},[n,r,o,a,l,i]);const p=m=>{f.current===null&&(f.current=m.relatedTarget),b.current=!0,d.current=m.target;const E=t.props.onFocus;E&&E(m)},h=m=>{f.current===null&&(f.current=m.relatedTarget),b.current=!0};return w.jsxs(y.Fragment,{children:[w.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:v,onFocus:p}),w.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}function YR(e){return typeof e=="function"?e():e}const XR=y.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=y.useState(null),s=ot(y.isValidElement(r)?r.ref:null,n);if(Nn(()=>{i||l(YR(o)||document.body)},[o,i]),Nn(()=>{if(a&&!i)return ds(n,a),()=>{ds(n,null)}},[n,a,i]),i){if(y.isValidElement(r)){const u={ref:s};return y.cloneElement(r,u)}return w.jsx(y.Fragment,{children:r})}return w.jsx(y.Fragment,{children:a&&Aa.createPortal(r,a)})});function JR(e){const t=Kt(e);return t.body===e?Qn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function aa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Dm(e){return parseInt(Qn(e).getComputedStyle(e).paddingRight,10)||0}function ZR(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function zm(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,s=!ZR(a);l&&s&&aa(a,o)})}function Ec(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function e_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(JR(r)){const a=ly(Kt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dm(r)+a}px`;const l=Kt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Dm(s)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Kt(r).body;else{const a=r.parentElement,l=Qn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function t_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class n_{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&aa(t.modalRef,!1);const o=t_(n);zm(n,t.mount,t.modalRef,o,!0);const i=Ec(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Ec(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=e_(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Ec(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&aa(t.modalRef,n),zm(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&aa(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function r_(e){return typeof e=="function"?e():e}function o_(e){return e?e.props.hasOwnProperty("in"):!1}const i_=new n_;function a_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=i_,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:f}=e,d=y.useRef({}),b=y.useRef(null),g=y.useRef(null),v=ot(g,f),[S,p]=y.useState(!c),h=o_(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const E=()=>Kt(b.current),R=()=>(d.current.modalRef=g.current,d.current.mount=b.current,d.current),x=()=>{o.mount(R(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},k=Jr(()=>{const U=r_(t)||E().body;o.add(R(),U),g.current&&x()}),T=y.useCallback(()=>o.isTopModal(R()),[o]),M=Jr(U=>{b.current=U,U&&(c&&T()?x():g.current&&aa(g.current,m))}),I=y.useCallback(()=>{o.remove(R(),m)},[m,o]);y.useEffect(()=>()=>{I()},[I]),y.useEffect(()=>{c?k():(!h||!i)&&I()},[c,I,h,i,k]);const N=U=>D=>{var _;(_=U.onKeyDown)==null||_.call(U,D),!(D.key!=="Escape"||D.which===229||!T())&&(n||(D.stopPropagation(),u&&u(D,"escapeKeyDown")))},F=U=>D=>{var _;(_=U.onClick)==null||_.call(U,D),D.target===D.currentTarget&&u&&u(D,"backdropClick")};return{getRootProps:(U={})=>{const D=Hy(e);delete D.onTransitionEnter,delete D.onTransitionExited;const _=C({},D,U);return C({role:"presentation"},_,{onKeyDown:N(_),ref:v})},getBackdropProps:(U={})=>{const D=U;return C({"aria-hidden":!0},D,{onClick:F(D),open:c})},getTransitionProps:()=>{const U=()=>{p(!1),a&&a()},D=()=>{p(!0),l&&l(),i&&I()};return{onEnter:Td(U,s==null?void 0:s.props.onEnter),onExited:Td(D,s==null?void 0:s.props.onExited)}},rootRef:v,portalRef:M,isTopModal:T,exited:S,hasTransition:h}}const l_=["onChange","maxRows","minRows","style","value"];function gl(e){return parseInt(e,10)||0}const s_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function u_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const c_=y.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l}=t,s=q(t,l_),{current:u}=y.useRef(l!=null),c=y.useRef(null),f=ot(n,c),d=y.useRef(null),b=y.useCallback(()=>{const S=c.current,h=Qn(S).getComputedStyle(S);if(h.width==="0px")return{outerHeightStyle:0,overflowing:!1};const m=d.current;m.style.width=h.width,m.value=S.value||t.placeholder||"x",m.value.slice(-1)===` +`&&(m.value+=" ");const E=h.boxSizing,R=gl(h.paddingBottom)+gl(h.paddingTop),x=gl(h.borderBottomWidth)+gl(h.borderTopWidth),k=m.scrollHeight;m.value="x";const T=m.scrollHeight;let M=k;i&&(M=Math.max(Number(i)*T,M)),o&&(M=Math.min(Number(o)*T,M)),M=Math.max(M,T);const I=M+(E==="border-box"?R+x:0),N=Math.abs(M-k)<=1;return{outerHeightStyle:I,overflowing:N}},[o,i,t.placeholder]),g=y.useCallback(()=>{const S=b();if(u_(S))return;const p=c.current;p.style.height=`${S.outerHeightStyle}px`,p.style.overflow=S.overflowing?"hidden":""},[b]);Nn(()=>{const S=()=>{g()};let p;const h=yu(S),m=c.current,E=Qn(m);E.addEventListener("resize",h);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(S),R.observe(m)),()=>{h.clear(),cancelAnimationFrame(p),E.removeEventListener("resize",h),R&&R.disconnect()}},[b,g]),Nn(()=>{g()});const v=S=>{u||g(),r&&r(S)};return w.jsxs(y.Fragment,{children:[w.jsx("textarea",C({value:l,onChange:v,ref:f,rows:i,style:a},s)),w.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:C({},s_.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function gi({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const d_=y.createContext(void 0),hp=d_;function yi(){return y.useContext(hp)}function f_(e){return w.jsx(Jw,C({},e,{defaultTheme:bu,themeId:ii}))}function Fm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vs(e,t=!1){return e&&(Fm(e.value)&&e.value!==""||t&&Fm(e.defaultValue)&&e.defaultValue!=="")}function p_(e){return e.startAdornment}function h_(e){return ve("MuiInputBase",e)}const m_=ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ci=m_,v_=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Tu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$u=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},g_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:b,type:g}=e,v={root:["root",`color${ne(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",d&&d!=="medium"&&`size${ne(d)}`,c&&"multiline",b&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return xe(v,h_,t)},Iu=K("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Tu})(({theme:e,ownerState:t})=>C({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&C({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Mu=K("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$u})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=C({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return C({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ci.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ci.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),y_=w.jsx(f_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),x_=y.forwardRef(function(t,n){var r;const o=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:s,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:b,endAdornment:g,fullWidth:v=!1,id:S,inputComponent:p="input",inputProps:h={},inputRef:m,maxRows:E,minRows:R,multiline:x=!1,name:k,onBlur:T,onChange:M,onClick:I,onFocus:N,onKeyDown:F,onKeyUp:j,placeholder:A,readOnly:B,renderSuffix:U,rows:D,slotProps:_={},slots:L={},startAdornment:W,type:X="text",value:re}=o,he=q(o,v_),J=h.value!=null?h.value:re,{current:ue}=y.useRef(J!=null),V=y.useRef(),de=y.useCallback(Ne=>{},[]),Ae=ot(V,m,h.ref,de),[Pe,et]=y.useState(!1),ie=yi(),Te=gi({props:o,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=ie?ie.focused:Pe,y.useEffect(()=>{!ie&&d&&Pe&&(et(!1),T&&T())},[ie,d,Pe,T]);const se=ie&&ie.onFilled,_e=ie&&ie.onEmpty,Ce=y.useCallback(Ne=>{vs(Ne)?se&&se():_e&&_e()},[se,_e]);Nn(()=>{ue&&Ce({value:J})},[J,Ce,ue]);const jn=Ne=>{if(Te.disabled){Ne.stopPropagation();return}N&&N(Ne),h.onFocus&&h.onFocus(Ne),ie&&ie.onFocus?ie.onFocus(Ne):et(!0)},Lt=Ne=>{T&&T(Ne),h.onBlur&&h.onBlur(Ne),ie&&ie.onBlur?ie.onBlur(Ne):et(!1)},jt=(Ne,...Y)=>{if(!ue){const un=Ne.target||V.current;if(un==null)throw new Error(co(1));Ce({value:un.value})}h.onChange&&h.onChange(Ne,...Y),M&&M(Ne,...Y)};y.useEffect(()=>{Ce(V.current)},[]);const Qt=Ne=>{V.current&&Ne.currentTarget===Ne.target&&V.current.focus(),I&&I(Ne)};let At=p,$e=h;x&&At==="input"&&(D?$e=C({type:void 0,minRows:D,maxRows:D},$e):$e=C({type:void 0,maxRows:E,minRows:R},$e),At=c_);const sn=Ne=>{Ce(Ne.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};y.useEffect(()=>{ie&&ie.setAdornedStart(!!W)},[ie,W]);const dt=C({},o,{color:Te.color||"primary",disabled:Te.disabled,endAdornment:g,error:Te.error,focused:Te.focused,formControl:ie,fullWidth:v,hiddenLabel:Te.hiddenLabel,multiline:x,size:Te.size,startAdornment:W,type:X}),be=g_(dt),Ct=L.root||u.Root||Iu,En=_.root||c.root||{},Dt=L.input||u.Input||Mu;return $e=C({},$e,(r=_.input)!=null?r:c.input),w.jsxs(y.Fragment,{children:[!b&&y_,w.jsxs(Ct,C({},En,!si(Ct)&&{ownerState:C({},dt,En.ownerState)},{ref:n,onClick:Qt},he,{className:Z(be.root,En.className,s,B&&"MuiInputBase-readOnly"),children:[W,w.jsx(hp.Provider,{value:null,children:w.jsx(Dt,C({ownerState:dt,"aria-invalid":Te.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:f,disabled:Te.disabled,id:S,onAnimationStart:sn,name:k,placeholder:A,readOnly:B,required:Te.required,rows:D,value:J,onKeyDown:F,onKeyUp:j,type:X},$e,!si(Dt)&&{as:At,ownerState:C({},dt,$e.ownerState)},{ref:Ae,className:Z(be.input,$e.className,B&&"MuiInputBase-readOnly"),onBlur:Lt,onChange:jt,onFocus:jn}))}),g,U?U(C({},Te,{startAdornment:W})):null]}))]})}),mp=x_;function S_(e){return ve("MuiInput",e)}const b_=C({},ci,ge("MuiInput",["root","underline","input"])),Ai=b_;function w_(e){return ve("MuiOutlinedInput",e)}const C_=C({},ci,ge("MuiOutlinedInput",["root","notchedOutline","input"])),mr=C_;function E_(e){return ve("MuiFilledInput",e)}const k_=C({},ci,ge("MuiFilledInput",["root","underline","input"])),Wr=k_,R_=Nt(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),__=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],P_={entering:{opacity:1},entered:{opacity:1}},T_=y.forwardRef(function(t,n){const r=Wa(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:b,onExited:g,onExiting:v,style:S,timeout:p=o,TransitionComponent:h=Ru}=t,m=q(t,__),E=y.useRef(null),R=ot(E,l.ref,n),x=A=>B=>{if(A){const U=E.current;B===void 0?A(U):A(U,B)}},k=x(d),T=x((A,B)=>{pp(A);const U=Ar({style:S,timeout:p,easing:s},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",U),A.style.transition=r.transitions.create("opacity",U),c&&c(A,B)}),M=x(f),I=x(v),N=x(A=>{const B=Ar({style:S,timeout:p,easing:s},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",B),A.style.transition=r.transitions.create("opacity",B),b&&b(A)}),F=x(g),j=A=>{i&&i(E.current,A)};return w.jsx(h,C({appear:a,in:u,nodeRef:E,onEnter:T,onEntered:M,onEntering:k,onExit:N,onExited:F,onExiting:I,addEndListener:j,timeout:p},m,{children:(A,B)=>y.cloneElement(l,C({style:C({opacity:0,visibility:A==="exited"&&!u?"hidden":void 0},P_[A],S,l.props.style),ref:R},B))}))}),$_=T_;function I_(e){return ve("MuiBackdrop",e)}ge("MuiBackdrop",["root","invisible"]);const M_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],O_=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},I_,t)},N_=K("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>C({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),L_=y.forwardRef(function(t,n){var r,o,i;const a=Se({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:b,slotProps:g={},slots:v={},TransitionComponent:S=$_,transitionDuration:p}=a,h=q(a,M_),m=C({},a,{component:u,invisible:d}),E=O_(m),R=(r=g.root)!=null?r:f.root;return w.jsx(S,C({in:b,timeout:p},h,{children:w.jsx(N_,C({"aria-hidden":!0},R,{as:(o=(i=v.root)!=null?i:c.Root)!=null?o:u,className:Z(E.root,s,R==null?void 0:R.className),ownerState:C({},m,R==null?void 0:R.ownerState),classes:E,ref:n,children:l}))}))}),j_=L_;function A_(e){return ve("MuiButton",e)}const D_=ge("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),yl=D_,z_=y.createContext({}),F_=z_,B_=y.createContext(void 0),U_=B_,W_=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],H_=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,l={root:["root",i,`${i}${ne(t)}`,`size${ne(o)}`,`${i}Size${ne(o)}`,`color${ne(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ne(o)}`],endIcon:["icon","endIcon",`iconSize${ne(o)}`]},s=xe(l,A_,a);return C({},a,s)},Gy=e=>C({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),V_=K(Ga,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color)}`],t[`size${ne(n.size)}`],t[`${n.variant}Size${ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return C({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yl.focusVisible}`]:C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yl.disabled}`]:C({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yl.disabled}`]:{boxShadow:"none"}}),K_=K("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Gy(e))),G_=K("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Gy(e))),q_=y.forwardRef(function(t,n){const r=y.useContext(F_),o=y.useContext(U_),i=np(r,t),a=Se({props:i,name:"MuiButton"}),{children:l,color:s="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:v,fullWidth:S=!1,size:p="medium",startIcon:h,type:m,variant:E="text"}=a,R=q(a,W_),x=C({},a,{color:s,component:u,disabled:f,disableElevation:d,disableFocusRipple:b,fullWidth:S,size:p,type:m,variant:E}),k=H_(x),T=h&&w.jsx(K_,{className:k.startIcon,ownerState:x,children:h}),M=g&&w.jsx(G_,{className:k.endIcon,ownerState:x,children:g}),I=o||"";return w.jsxs(V_,C({ownerState:x,className:Z(r.className,k.root,c,I),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:Z(k.focusVisible,v),ref:n,type:m},R,{classes:k,children:[T,l,M]}))}),xl=q_;function Q_(e){return ve("MuiModal",e)}ge("MuiModal",["root","hidden","backdrop"]);const Y_=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X_=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Q_,r)},J_=K("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Z_=K(j_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eP=y.forwardRef(function(t,n){var r,o,i,a,l,s;const u=Se({name:"MuiModal",props:t}),{BackdropComponent:c=Z_,BackdropProps:f,className:d,closeAfterTransition:b=!1,children:g,container:v,component:S,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:R=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:T=!1,hideBackdrop:M=!1,keepMounted:I=!1,onBackdropClick:N,open:F,slotProps:j,slots:A}=u,B=q(u,Y_),U=C({},u,{closeAfterTransition:b,disableAutoFocus:m,disableEnforceFocus:E,disableEscapeKeyDown:R,disablePortal:x,disableRestoreFocus:k,disableScrollLock:T,hideBackdrop:M,keepMounted:I}),{getRootProps:D,getBackdropProps:_,getTransitionProps:L,portalRef:W,isTopModal:X,exited:re,hasTransition:he}=a_(C({},U,{rootRef:n})),J=C({},U,{exited:re}),ue=X_(J),V={};if(g.props.tabIndex===void 0&&(V.tabIndex="-1"),he){const{onEnter:se,onExited:_e}=L();V.onEnter=se,V.onExited=_e}const de=(r=(o=A==null?void 0:A.root)!=null?o:p.Root)!=null?r:J_,Ae=(i=(a=A==null?void 0:A.backdrop)!=null?a:p.Backdrop)!=null?i:c,Pe=(l=j==null?void 0:j.root)!=null?l:h.root,et=(s=j==null?void 0:j.backdrop)!=null?s:h.backdrop,ie=ui({elementType:de,externalSlotProps:Pe,externalForwardedProps:B,getSlotProps:D,additionalProps:{ref:n,as:S},ownerState:J,className:Z(d,Pe==null?void 0:Pe.className,ue==null?void 0:ue.root,!J.open&&J.exited&&(ue==null?void 0:ue.hidden))}),Te=ui({elementType:Ae,externalSlotProps:et,additionalProps:f,getSlotProps:se=>_(C({},se,{onClick:_e=>{N&&N(_e),se!=null&&se.onClick&&se.onClick(_e)}})),className:Z(et==null?void 0:et.className,f==null?void 0:f.className,ue==null?void 0:ue.backdrop),ownerState:J});return!I&&!F&&(!he||re)?null:w.jsx(XR,{ref:W,container:v,disablePortal:x,children:w.jsxs(de,C({},ie,{children:[!M&&c?w.jsx(Ae,C({},Te)):null,w.jsx(QR,{disableEnforceFocus:E,disableAutoFocus:m,disableRestoreFocus:k,isEnabled:X,open:F,children:y.cloneElement(g,V)})]}))})}),qy=eP;function tP(e){return ve("MuiDivider",e)}const nP=ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bm=nP,rP=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],oP=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xe({root:["root",t&&"absolute",s,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},tP,r)},iP=K("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>C({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:rt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>C({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>C({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>C({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>C({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),aP=K("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>C({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Qy=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:l=i?"div":"hr",flexItem:s=!1,light:u=!1,orientation:c="horizontal",role:f=l!=="hr"?"separator":void 0,textAlign:d="center",variant:b="fullWidth"}=r,g=q(r,rP),v=C({},r,{absolute:o,component:l,flexItem:s,light:u,orientation:c,role:f,textAlign:d,variant:b}),S=oP(v);return w.jsx(iP,C({as:l,className:Z(S.root,a),role:f,ref:n,ownerState:v},g,{children:i?w.jsx(aP,{className:S.wrapper,ownerState:v,children:i}):null}))});Qy.muiSkipListHighlight=!0;const lP=Qy,sP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function uP(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Qn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,s=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),s=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${i.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}function cP(e){return typeof e=="function"?e():e}function Sl(e,t,n){const r=cP(n),o=uP(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const dP=y.forwardRef(function(t,n){const r=Wa(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,container:u,direction:c="down",easing:f=o,in:d,onEnter:b,onEntered:g,onEntering:v,onExit:S,onExited:p,onExiting:h,style:m,timeout:E=i,TransitionComponent:R=Ru}=t,x=q(t,sP),k=y.useRef(null),T=ot(s.ref,k,n),M=_=>L=>{_&&(L===void 0?_(k.current):_(k.current,L))},I=M((_,L)=>{Sl(c,_,u),pp(_),b&&b(_,L)}),N=M((_,L)=>{const W=Ar({timeout:E,style:m,easing:f},{mode:"enter"});_.style.webkitTransition=r.transitions.create("-webkit-transform",C({},W)),_.style.transition=r.transitions.create("transform",C({},W)),_.style.webkitTransform="none",_.style.transform="none",v&&v(_,L)}),F=M(g),j=M(h),A=M(_=>{const L=Ar({timeout:E,style:m,easing:f},{mode:"exit"});_.style.webkitTransition=r.transitions.create("-webkit-transform",L),_.style.transition=r.transitions.create("transform",L),Sl(c,_,u),S&&S(_)}),B=M(_=>{_.style.webkitTransition="",_.style.transition="",p&&p(_)}),U=_=>{a&&a(k.current,_)},D=y.useCallback(()=>{k.current&&Sl(c,k.current,u)},[c,u]);return y.useEffect(()=>{if(d||c==="down"||c==="right")return;const _=yu(()=>{k.current&&Sl(c,k.current,u)}),L=Qn(k.current);return L.addEventListener("resize",_),()=>{_.clear(),L.removeEventListener("resize",_)}},[c,d,u]),y.useEffect(()=>{d||D()},[d,D]),w.jsx(R,C({nodeRef:k,onEnter:I,onEntered:F,onEntering:N,onExit:A,onExited:B,onExiting:j,addEndListener:U,appear:l,in:d,timeout:E},x,{children:(_,L)=>y.cloneElement(s,C({ref:T,style:C({visibility:_==="exited"&&!d?"hidden":void 0},m,s.props.style)},L))}))}),fP=dP;function pP(e){return ve("MuiDrawer",e)}ge("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hP=["BackdropProps"],mP=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Yy=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},vP=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ne(n)}`,r!=="temporary"&&`paperAnchorDocked${ne(n)}`]};return xe(o,pP,t)},gP=K(qy,{name:"MuiDrawer",slot:"Root",overridesResolver:Yy})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),Um=K("div",{shouldForwardProp:qt,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Yy})({flex:"0 0 auto"}),yP=K(_u,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ne(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ne(n.anchor)}`]]}})(({theme:e,ownerState:t})=>C({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Xy={left:"right",right:"left",top:"down",bottom:"up"};function xP(e){return["left","right"].indexOf(e)!==-1}function SP({direction:e},t){return e==="rtl"&&xP(t)?Xy[t]:t}const bP=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDrawer"}),o=Wa(),i=dy(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:s,children:u,className:c,elevation:f=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:b}={},onClose:g,open:v=!1,PaperProps:S={},SlideProps:p,TransitionComponent:h=fP,transitionDuration:m=a,variant:E="temporary"}=r,R=q(r.ModalProps,hP),x=q(r,mP),k=y.useRef(!1);y.useEffect(()=>{k.current=!0},[]);const T=SP({direction:i?"rtl":"ltr"},l),I=C({},r,{anchor:l,elevation:f,open:v,variant:E},x),N=vP(I),F=w.jsx(yP,C({elevation:E==="temporary"?f:0,square:!0},S,{className:Z(N.paper,S.className),ownerState:I,children:u}));if(E==="permanent")return w.jsx(Um,C({className:Z(N.root,N.docked,c),ownerState:I,ref:n},x,{children:F}));const j=w.jsx(h,C({in:v,direction:Xy[T],timeout:m,appear:k.current},p,{children:F}));return E==="persistent"?w.jsx(Um,C({className:Z(N.root,N.docked,c),ownerState:I,ref:n},x,{children:j})):w.jsx(gP,C({BackdropProps:C({},s,b,{transitionDuration:m}),className:Z(N.root,N.modal,c),open:v,ownerState:I,onClose:g,hideBackdrop:d,ref:n},x,R,{children:j}))}),wP=bP,CP=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],EP=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},E_,t);return C({},t,o)},kP=K(Iu,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return C({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Wr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Wr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&C({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),RP=K(Mu,{name:"MuiFilledInput",slot:"Input",overridesResolver:$u})(({theme:e,ownerState:t})=>C({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Jy=y.forwardRef(function(t,n){var r,o,i,a;const l=Se({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:b,slots:g={},type:v="text"}=l,S=q(l,CP),p=C({},l,{fullWidth:c,inputComponent:f,multiline:d,type:v}),h=EP(l),m={root:{ownerState:p},input:{ownerState:p}},E=b??u?nn(m,b??u):m,R=(r=(o=g.root)!=null?o:s.Root)!=null?r:kP,x=(i=(a=g.input)!=null?a:s.Input)!=null?i:RP;return w.jsx(mp,C({slots:{root:R,input:x},componentsProps:E,fullWidth:c,inputComponent:f,multiline:d,ref:n,type:v},S,{classes:h}))});Jy.muiName="Input";const Zy=Jy;function _P(e){return ve("MuiFormControl",e)}ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const PP=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],TP=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ne(n)}`,r&&"fullWidth"]};return xe(o,_P,t)},$P=K("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,t[`margin${ne(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>C({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),IP=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:b="none",required:g=!1,size:v="medium",variant:S="outlined"}=r,p=q(r,PP),h=C({},r,{color:a,component:l,disabled:s,error:u,fullWidth:f,hiddenLabel:d,margin:b,required:g,size:v,variant:S}),m=TP(h),[E,R]=y.useState(()=>{let j=!1;return o&&y.Children.forEach(o,A=>{if(!oa(A,["Input","Select"]))return;const B=oa(A,["Select"])?A.props.input:A;B&&p_(B.props)&&(j=!0)}),j}),[x,k]=y.useState(()=>{let j=!1;return o&&y.Children.forEach(o,A=>{oa(A,["Input","Select"])&&(vs(A.props,!0)||vs(A.props.inputProps,!0))&&(j=!0)}),j}),[T,M]=y.useState(!1);s&&T&&M(!1);const I=c!==void 0&&!s?c:T;let N;const F=y.useMemo(()=>({adornedStart:E,setAdornedStart:R,color:a,disabled:s,error:u,filled:x,focused:I,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{M(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{M(!0)},registerEffect:N,required:g,variant:S}),[E,a,s,u,x,I,f,d,N,g,v,S]);return w.jsx(hp.Provider,{value:F,children:w.jsx($P,C({as:l,ownerState:h,className:Z(m.root,i),ref:n},p,{children:o}))})}),e1=IP;function MP(e){return ve("MuiFormHelperText",e)}const OP=ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Wm=OP;var Hm;const NP=["children","className","component","disabled","error","filled","focused","margin","required","variant"],LP=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:s}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ne(r)}`,n&&"contained",l&&"focused",a&&"filled",s&&"required"]};return xe(u,MP,t)},jP=K("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>C({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Wm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Wm.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),AP=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,l=q(r,NP),s=yi(),u=gi({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=C({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=LP(c);return w.jsx(jP,C({as:a,ownerState:c,className:Z(f.root,i),ref:n},l,{children:o===" "?Hm||(Hm=w.jsx("span",{className:"notranslate",children:"​"})):o}))}),DP=AP;function zP(e){return ve("MuiFormLabel",e)}const FP=ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),la=FP,BP=["children","className","color","component","disabled","error","filled","focused","required"],UP=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,s={root:["root",`color${ne(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return xe(s,zP,t)},WP=K("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>C({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${la.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${la.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${la.error}`]:{color:(e.vars||e).palette.error.main}})),HP=K("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${la.error}`]:{color:(e.vars||e).palette.error.main}})),VP=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,l=q(r,BP),s=yi(),u=gi({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=C({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=UP(c);return w.jsxs(WP,C({as:a,ownerState:c,className:Z(f.root,i),ref:n},l,{children:[o,u.required&&w.jsxs(HP,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),KP=VP,GP=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Hd(e){return`scale(${e}, ${e**2})`}const qP={entering:{opacity:1,transform:Hd(1)},entered:{opacity:1,transform:"none"}},kc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),t1=y.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:b,style:g,timeout:v="auto",TransitionComponent:S=Ru}=t,p=q(t,GP),h=op(),m=y.useRef(),E=Wa(),R=y.useRef(null),x=ot(R,i.ref,n),k=B=>U=>{if(B){const D=R.current;U===void 0?B(D):B(D,U)}},T=k(c),M=k((B,U)=>{pp(B);const{duration:D,delay:_,easing:L}=Ar({style:g,timeout:v,easing:a},{mode:"enter"});let W;v==="auto"?(W=E.transitions.getAutoHeightDuration(B.clientHeight),m.current=W):W=D,B.style.transition=[E.transitions.create("opacity",{duration:W,delay:_}),E.transitions.create("transform",{duration:kc?W:W*.666,delay:_,easing:L})].join(","),s&&s(B,U)}),I=k(u),N=k(b),F=k(B=>{const{duration:U,delay:D,easing:_}=Ar({style:g,timeout:v,easing:a},{mode:"exit"});let L;v==="auto"?(L=E.transitions.getAutoHeightDuration(B.clientHeight),m.current=L):L=U,B.style.transition=[E.transitions.create("opacity",{duration:L,delay:D}),E.transitions.create("transform",{duration:kc?L:L*.666,delay:kc?D:D||L*.333,easing:_})].join(","),B.style.opacity=0,B.style.transform=Hd(.75),f&&f(B)}),j=k(d),A=B=>{v==="auto"&&h.start(m.current||0,B),r&&r(R.current,B)};return w.jsx(S,C({appear:o,in:l,nodeRef:R,onEnter:M,onEntered:I,onEntering:T,onExit:F,onExited:j,onExiting:N,addEndListener:A,timeout:v==="auto"?null:v},p,{children:(B,U)=>y.cloneElement(i,C({style:C({opacity:0,transform:Hd(.75),visibility:B==="exited"&&!l?"hidden":void 0},qP[B],g,i.props.style),ref:x},U))}))});t1.muiSupportAuto=!0;const QP=t1,YP=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],XP=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},S_,t);return C({},t,o)},JP=K(Iu,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Tu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),C({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ai.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ai.disabled}, .${Ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ai.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZP=K(Mu,{name:"MuiInput",slot:"Input",overridesResolver:$u})({}),n1=y.forwardRef(function(t,n){var r,o,i,a;const l=Se({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:b=!1,slotProps:g,slots:v={},type:S="text"}=l,p=q(l,YP),h=XP(l),E={root:{ownerState:{disableUnderline:s}}},R=g??c?nn(g??c,E):E,x=(r=(o=v.root)!=null?o:u.Root)!=null?r:JP,k=(i=(a=v.input)!=null?a:u.Input)!=null?i:ZP;return w.jsx(mp,C({slots:{root:x,input:k},slotProps:R,fullWidth:f,inputComponent:d,multiline:b,ref:n,type:S},p,{classes:h}))});n1.muiName="Input";const r1=n1;function eT(e){return ve("MuiInputLabel",e)}ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tT=["disableAnimation","margin","shrink","variant","className"],nT=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,s={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ne(r)}`,a],asterisk:[l&&"asterisk"]},u=xe(s,eT,t);return C({},t,u)},rT=K(KP,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${la.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>C({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&C({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&C({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&C({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),oT=y.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,l=q(r,tT),s=yi();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=gi({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),f=C({},r,{disableAnimation:o,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=nT(f);return w.jsx(rT,C({"data-shrink":u,ownerState:f,ref:n,className:Z(d.root,a)},l,{classes:d}))}),o1=oT,iT=y.createContext({}),Mn=iT;function aT(e){return ve("MuiList",e)}ge("MuiList",["root","padding","dense","subheader"]);const lT=["children","className","component","dense","disablePadding","subheader"],sT=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},aT,t)},uT=K("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cT=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=r,c=q(r,lT),f=y.useMemo(()=>({dense:l}),[l]),d=C({},r,{component:a,dense:l,disablePadding:s}),b=sT(d);return w.jsx(Mn.Provider,{value:f,children:w.jsxs(uT,C({as:a,className:Z(b.root,i),ref:n,ownerState:d},c,{children:[u,o]}))})}),i1=cT;function dT(e){return ve("MuiListItem",e)}const fT=ge("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Po=fT;function pT(e){return ve("MuiListItemButton",e)}const hT=ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),To=hT,mT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],vT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},gT=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:l}=e,u=xe({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},pT,n);return C({},n,u)},yT=K(Ga,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:vT})(({theme:e,ownerState:t})=>C({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${To.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${To.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${To.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${To.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),xT=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:l,dense:s=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:d=!1,className:b}=r,g=q(r,mT),v=y.useContext(Mn),S=y.useMemo(()=>({dense:s||v.dense||!1,alignItems:o,disableGutters:u}),[o,v.dense,s,u]),p=y.useRef(null);Nn(()=>{i&&p.current&&p.current.focus()},[i]);const h=C({},r,{alignItems:o,dense:S.dense,disableGutters:u,divider:c,selected:d}),m=gT(h),E=ot(p,n);return w.jsx(Mn.Provider,{value:S,children:w.jsx(yT,C({ref:E,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:Z(m.focusVisible,f),ownerState:h,className:Z(m.root,b)},g,{classes:m,children:l}))})}),ST=xT;function bT(e){return ve("MuiListItemSecondaryAction",e)}ge("MuiListItemSecondaryAction",["root","disableGutters"]);const wT=["className"],CT=e=>{const{disableGutters:t,classes:n}=e;return xe({root:["root",t&&"disableGutters"]},bT,n)},ET=K("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>C({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),a1=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=q(r,wT),a=y.useContext(Mn),l=C({},r,{disableGutters:a.disableGutters}),s=CT(l);return w.jsx(ET,C({className:Z(s.root,o),ownerState:l,ref:n},i))});a1.muiName="ListItemSecondaryAction";const kT=a1,RT=["className"],_T=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],PT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},TT=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return xe({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},dT,r)},$T=K("div",{name:"MuiListItem",slot:"Root",overridesResolver:PT})(({theme:e,ownerState:t})=>C({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&C({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${To.root}`]:{paddingRight:48}},{[`&.${Po.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Po.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Po.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Po.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Po.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),IT=K("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),MT=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:l,className:s,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:b}={},dense:g=!1,disabled:v=!1,disableGutters:S=!1,disablePadding:p=!1,divider:h=!1,focusVisibleClassName:m,secondaryAction:E,selected:R=!1,slotProps:x={},slots:k={}}=r,T=q(r.ContainerProps,RT),M=q(r,_T),I=y.useContext(Mn),N=y.useMemo(()=>({dense:g||I.dense||!1,alignItems:o,disableGutters:S}),[o,I.dense,g,S]),F=y.useRef(null);Nn(()=>{i&&F.current&&F.current.focus()},[i]);const j=y.Children.toArray(l),A=j.length&&oa(j[j.length-1],["ListItemSecondaryAction"]),B=C({},r,{alignItems:o,autoFocus:i,button:a,dense:N.dense,disabled:v,disableGutters:S,disablePadding:p,divider:h,hasSecondaryAction:A,selected:R}),U=TT(B),D=ot(F,n),_=k.root||c.Root||$T,L=x.root||f.root||{},W=C({className:Z(U.root,L.className,s),disabled:v},M);let X=u||"li";return a&&(W.component=u||"div",W.focusVisibleClassName=Z(Po.focusVisible,m),X=Ga),A?(X=!W.component&&!u?"div":X,d==="li"&&(X==="li"?X="div":W.component==="li"&&(W.component="div")),w.jsx(Mn.Provider,{value:N,children:w.jsxs(IT,C({as:d,className:Z(U.container,b),ref:D,ownerState:B},T,{children:[w.jsx(_,C({},L,!si(_)&&{as:X,ownerState:C({},B,L.ownerState)},W,{children:j})),j.pop()]}))})):w.jsx(Mn.Provider,{value:N,children:w.jsxs(_,C({},L,{as:X,ref:D},!si(_)&&{ownerState:C({},B,L.ownerState)},W,{children:[j,E&&w.jsx(kT,{children:E})]}))})}),OT=MT;function NT(e){return ve("MuiListItemIcon",e)}const LT=ge("MuiListItemIcon",["root","alignItemsFlexStart"]),Vm=LT,jT=["className"],AT=e=>{const{alignItems:t,classes:n}=e;return xe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},NT,n)},DT=K("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),zT=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=q(r,jT),a=y.useContext(Mn),l=C({},r,{alignItems:a.alignItems}),s=AT(l);return w.jsx(DT,C({className:Z(s.root,o),ownerState:l,ref:n},i))}),FT=zT;function BT(e){return ve("MuiListItemText",e)}const UT=ge("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gs=UT,WT=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],HT=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return xe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},BT,t)},VT=K("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gs.primary}`]:t.primary},{[`& .${gs.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),KT=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,d=q(r,WT),{dense:b}=y.useContext(Mn);let g=s??o,v=c;const S=C({},r,{disableTypography:a,inset:l,primary:!!g,secondary:!!v,dense:b}),p=HT(S);return g!=null&&g.type!==ye&&!a&&(g=w.jsx(ye,C({variant:b?"body2":"body1",className:p.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==ye&&!a&&(v=w.jsx(ye,C({variant:"body2",className:p.secondary,color:"text.secondary",display:"block"},f,{children:v}))),w.jsxs(VT,C({className:Z(p.root,i),ownerState:S,ref:n},d,{children:[g,v]}))}),GT=KT,qT=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Rc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Km(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function l1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Di(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const s=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!l1(l,i)||s)l=o(e,l,n);else return l.focus(),!0}return!1}const QT=y.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=q(t,qT),b=y.useRef(null),g=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nn(()=>{o&&b.current.focus()},[o]),y.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,{direction:E})=>{const R=!b.current.style.width;if(m.clientHeight{const E=b.current,R=m.key,x=Kt(E).activeElement;if(R==="ArrowDown")m.preventDefault(),Di(E,x,u,s,Rc);else if(R==="ArrowUp")m.preventDefault(),Di(E,x,u,s,Km);else if(R==="Home")m.preventDefault(),Di(E,null,u,s,Rc);else if(R==="End")m.preventDefault(),Di(E,null,u,s,Km);else if(R.length===1){const k=g.current,T=R.toLowerCase(),M=performance.now();k.keys.length>0&&(M-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&T!==k.keys[0]&&(k.repeating=!1)),k.lastTime=M,k.keys.push(T);const I=x&&!k.repeating&&l1(x,k);k.previousKeyMatched&&(I||Di(E,x,!1,s,Rc,k))?m.preventDefault():k.previousKeyMatched=!1}c&&c(m)},S=ot(b,n);let p=-1;y.Children.forEach(a,(m,E)=>{if(!y.isValidElement(m)){p===E&&(p+=1,p>=a.length&&(p=-1));return}m.props.disabled||(f==="selectedMenu"&&m.props.selected||p===-1)&&(p=E),p===E&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(p+=1,p>=a.length&&(p=-1))});const h=y.Children.map(a,(m,E)=>{if(E===p){const R={};return i&&(R.autoFocus=!0),m.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),y.cloneElement(m,R)}return m});return w.jsx(i1,C({role:"menu",ref:S,className:l,onKeyDown:v,tabIndex:o?0:-1},d,{children:h}))}),YT=QT;function XT(e){return ve("MuiPopover",e)}ge("MuiPopover",["root","paper"]);const JT=["onEntering"],ZT=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],e$=["slotProps"];function Gm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function qm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Qm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _c(e){return typeof e=="function"?e():e}const t$=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},XT,t)},n$=K(qy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),s1=K(_u,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),r$=y.forwardRef(function(t,n){var r,o,i;const a=Se({props:t,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:b,container:g,elevation:v=8,marginThreshold:S=16,open:p,PaperProps:h={},slots:m,slotProps:E,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:x=QP,transitionDuration:k="auto",TransitionProps:{onEntering:T}={},disableScrollLock:M=!1}=a,I=q(a.TransitionProps,JT),N=q(a,ZT),F=(r=E==null?void 0:E.paper)!=null?r:h,j=y.useRef(),A=ot(j,F.ref),B=C({},a,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:S,externalPaperSlotProps:F,transformOrigin:R,TransitionComponent:x,transitionDuration:k,TransitionProps:I}),U=t$(B),D=y.useCallback(()=>{if(f==="anchorPosition")return c;const se=_c(s),Ce=(se&&se.nodeType===1?se:Kt(j.current).body).getBoundingClientRect();return{top:Ce.top+Gm(Ce,u.vertical),left:Ce.left+qm(Ce,u.horizontal)}},[s,u.horizontal,u.vertical,c,f]),_=y.useCallback(se=>({vertical:Gm(se,R.vertical),horizontal:qm(se,R.horizontal)}),[R.horizontal,R.vertical]),L=y.useCallback(se=>{const _e={width:se.offsetWidth,height:se.offsetHeight},Ce=_(_e);if(f==="none")return{top:null,left:null,transformOrigin:Qm(Ce)};const jn=D();let Lt=jn.top-Ce.vertical,jt=jn.left-Ce.horizontal;const Qt=Lt+_e.height,At=jt+_e.width,$e=Qn(_c(s)),sn=$e.innerHeight-S,dt=$e.innerWidth-S;if(S!==null&&Ltsn){const be=Qt-sn;Lt-=be,Ce.vertical+=be}if(S!==null&&jtdt){const be=At-dt;jt-=be,Ce.horizontal+=be}return{top:`${Math.round(Lt)}px`,left:`${Math.round(jt)}px`,transformOrigin:Qm(Ce)}},[s,f,D,_,S]),[W,X]=y.useState(p),re=y.useCallback(()=>{const se=j.current;if(!se)return;const _e=L(se);_e.top!==null&&(se.style.top=_e.top),_e.left!==null&&(se.style.left=_e.left),se.style.transformOrigin=_e.transformOrigin,X(!0)},[L]);y.useEffect(()=>(M&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[s,M,re]);const he=(se,_e)=>{T&&T(se,_e),re()},J=()=>{X(!1)};y.useEffect(()=>{p&&re()}),y.useImperativeHandle(l,()=>p?{updatePosition:()=>{re()}}:null,[p,re]),y.useEffect(()=>{if(!p)return;const se=yu(()=>{re()}),_e=Qn(s);return _e.addEventListener("resize",se),()=>{se.clear(),_e.removeEventListener("resize",se)}},[s,p,re]);let ue=k;k==="auto"&&!x.muiSupportAuto&&(ue=void 0);const V=g||(s?Kt(_c(s)).body:void 0),de=(o=m==null?void 0:m.root)!=null?o:n$,Ae=(i=m==null?void 0:m.paper)!=null?i:s1,Pe=ui({elementType:Ae,externalSlotProps:C({},F,{style:W?F.style:C({},F.style,{opacity:0})}),additionalProps:{elevation:v,ref:A},ownerState:B,className:Z(U.paper,F==null?void 0:F.className)}),et=ui({elementType:de,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:N,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:V,open:p},ownerState:B,className:Z(U.root,b)}),{slotProps:ie}=et,Te=q(et,e$);return w.jsx(de,C({},Te,!si(de)&&{slotProps:ie,disableScrollLock:M},{children:w.jsx(x,C({appear:!0,in:p,onEntering:he,onExited:J,timeout:ue},I,{children:w.jsx(Ae,C({},Pe,{children:d}))}))}))}),o$=r$;function i$(e){return ve("MuiMenu",e)}ge("MuiMenu",["root","paper","list"]);const a$=["onEntering"],l$=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],s$={vertical:"top",horizontal:"right"},u$={vertical:"top",horizontal:"left"},c$=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},i$,t)},d$=K(o$,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),f$=K(s1,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),p$=K(YT,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),h$=y.forwardRef(function(t,n){var r,o;const i=Se({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:b={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:S}={},variant:p="selectedMenu",slots:h={},slotProps:m={}}=i,E=q(i.TransitionProps,a$),R=q(i,l$),x=dy(),k=C({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:S,PaperProps:b,transitionDuration:v,TransitionProps:E,variant:p}),T=c$(k),M=a&&!u&&d,I=y.useRef(null),N=(_,L)=>{I.current&&I.current.adjustStyleForScrollbar(_,{direction:x?"rtl":"ltr"}),S&&S(_,L)},F=_=>{_.key==="Tab"&&(_.preventDefault(),f&&f(_,"tabKeyDown"))};let j=-1;y.Children.map(l,(_,L)=>{y.isValidElement(_)&&(_.props.disabled||(p==="selectedMenu"&&_.props.selected||j===-1)&&(j=L))});const A=(r=h.paper)!=null?r:f$,B=(o=m.paper)!=null?o:b,U=ui({elementType:h.root,externalSlotProps:m.root,ownerState:k,className:[T.root,s]}),D=ui({elementType:A,externalSlotProps:B,ownerState:k,className:T.paper});return w.jsx(d$,C({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?s$:u$,slots:{paper:A,root:h.root},slotProps:{root:U,paper:D},open:d,ref:n,transitionDuration:v,TransitionProps:C({onEntering:N},E),ownerState:k},R,{classes:g,children:w.jsx(p$,C({onKeyDown:F,actions:I,autoFocus:a&&(j===-1||u),autoFocusItem:M,variant:p},c,{className:Z(T.list,c.className),children:l}))}))}),m$=h$;function v$(e){return ve("MuiMenuItem",e)}const g$=ge("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zi=g$,y$=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],x$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},S$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},v$,a);return C({},a,s)},b$=K(Ga,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:x$})(({theme:e,ownerState:t})=>C({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rt(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})`:rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Bm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Bm.inset}`]:{marginLeft:52},[`& .${gs.root}`]:{marginTop:0,marginBottom:0},[`& .${gs.inset}`]:{paddingLeft:36},[`& .${Vm.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&C({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vm.root} svg`]:{fontSize:"1.25rem"}}))),w$=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:d}=r,b=q(r,y$),g=y.useContext(Mn),v=y.useMemo(()=>({dense:a||g.dense||!1,disableGutters:s}),[g.dense,a,s]),S=y.useRef(null);Nn(()=>{o&&S.current&&S.current.focus()},[o]);const p=C({},r,{dense:v.dense,divider:l,disableGutters:s}),h=S$(r),m=ot(S,n);let E;return r.disabled||(E=f!==void 0?f:-1),w.jsx(Mn.Provider,{value:v,children:w.jsx(b$,C({ref:m,role:c,tabIndex:E,component:i,focusVisibleClassName:Z(h.focusVisible,u),className:Z(h.root,d)},b,{ownerState:p,classes:h}))})}),C$=w$;function E$(e){return ve("MuiNativeSelect",e)}const k$=ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vp=k$,R$=["className","disabled","error","IconComponent","inputRef","variant"],_$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"]};return xe(l,E$,t)},u1=({ownerState:e,theme:t})=>C({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":C({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${vp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),P$=K("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vp.multiple}`]:t.multiple}]}})(u1),c1=({ownerState:e,theme:t})=>C({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${vp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),T$=K("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(c1),$$=y.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:s="standard"}=t,u=q(t,R$),c=C({},t,{disabled:o,variant:s,error:i}),f=_$(c);return w.jsxs(y.Fragment,{children:[w.jsx(P$,C({ownerState:c,className:Z(f.select,r),disabled:o,ref:l||n},u)),t.multiple?null:w.jsx(T$,{as:a,ownerState:c,className:f.icon})]})}),I$=$$;var Ym;const M$=["children","classes","className","label","notched"],O$=K("fieldset",{shouldForwardProp:qt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),N$=K("legend",{shouldForwardProp:qt})(({ownerState:e,theme:t})=>C({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&C({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function L$(e){const{className:t,label:n,notched:r}=e,o=q(e,M$),i=n!=null&&n!=="",a=C({},e,{notched:r,withLabel:i});return w.jsx(O$,C({"aria-hidden":!0,className:t,ownerState:a},o,{children:w.jsx(N$,{ownerState:a,children:i?w.jsx("span",{children:n}):Ym||(Ym=w.jsx("span",{className:"notranslate",children:"​"}))})}))}const j$=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],A$=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},w_,t);return C({},t,r)},D$=K(Iu,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Tu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return C({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${mr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${mr.focused} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${mr.error} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${mr.disabled} .${mr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&C({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),z$=K(L$,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),F$=K(Mu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$u})(({theme:e,ownerState:t})=>C({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),d1=y.forwardRef(function(t,n){var r,o,i,a,l;const s=Se({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:b=!1,notched:g,slots:v={},type:S="text"}=s,p=q(s,j$),h=A$(s),m=yi(),E=gi({props:s,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=C({},s,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:m,fullWidth:c,hiddenLabel:E.hiddenLabel,multiline:b,size:E.size,type:S}),x=(r=(o=v.root)!=null?o:u.Root)!=null?r:D$,k=(i=(a=v.input)!=null?a:u.Input)!=null?i:F$;return w.jsx(mp,C({slots:{root:x,input:k},renderSuffix:T=>w.jsx(z$,{ownerState:R,className:h.notchedOutline,label:d!=null&&d!==""&&E.required?l||(l=w.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:typeof g<"u"?g:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:c,inputComponent:f,multiline:b,ref:n,type:S},p,{classes:C({},h,{notchedOutline:null})}))});d1.muiName="Input";const f1=d1;function B$(e){return ve("MuiSelect",e)}const Fi=ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Xm;const U$=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],W$=K("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Fi.select}`]:t.select},{[`&.${Fi.select}`]:t[n.variant]},{[`&.${Fi.error}`]:t.error},{[`&.${Fi.multiple}`]:t.multiple}]}})(u1,{[`&.${Fi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),H$=K("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(c1),V$=K("input",{shouldForwardProp:e=>wy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Jm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function K$(e){return e==null||typeof e=="string"&&!e.trim()}const G$=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(l,B$,t)},q$=y.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:b,error:g=!1,IconComponent:v,inputRef:S,labelId:p,MenuProps:h={},multiple:m,name:E,onBlur:R,onChange:x,onClose:k,onFocus:T,onOpen:M,open:I,readOnly:N,renderValue:F,SelectDisplayProps:j={},tabIndex:A,value:B,variant:U="standard"}=t,D=q(t,U$),[_,L]=$d({controlled:B,default:f,name:"Select"}),[W,X]=$d({controlled:I,default:c,name:"Select"}),re=y.useRef(null),he=y.useRef(null),[J,ue]=y.useState(null),{current:V}=y.useRef(I!=null),[de,Ae]=y.useState(),Pe=ot(n,S),et=y.useCallback(te=>{he.current=te,te&&ue(te)},[]),ie=J==null?void 0:J.parentNode;y.useImperativeHandle(Pe,()=>({focus:()=>{he.current.focus()},node:re.current,value:_}),[_]),y.useEffect(()=>{c&&W&&J&&!V&&(Ae(l?null:ie.clientWidth),he.current.focus())},[J,l]),y.useEffect(()=>{a&&he.current.focus()},[a]),y.useEffect(()=>{if(!p)return;const te=Kt(he.current).getElementById(p);if(te){const Le=()=>{getSelection().isCollapsed&&he.current.focus()};return te.addEventListener("click",Le),()=>{te.removeEventListener("click",Le)}}},[p]);const Te=(te,Le)=>{te?M&&M(Le):k&&k(Le),V||(Ae(l?null:ie.clientWidth),X(te))},se=te=>{te.button===0&&(te.preventDefault(),he.current.focus(),Te(!0,te))},_e=te=>{Te(!1,te)},Ce=y.Children.toArray(s),jn=te=>{const Le=Ce.find(Ge=>Ge.props.value===te.target.value);Le!==void 0&&(L(Le.props.value),x&&x(te,Le))},Lt=te=>Le=>{let Ge;if(Le.currentTarget.hasAttribute("tabindex")){if(m){Ge=Array.isArray(_)?_.slice():[];const Yn=_.indexOf(te.props.value);Yn===-1?Ge.push(te.props.value):Ge.splice(Yn,1)}else Ge=te.props.value;if(te.props.onClick&&te.props.onClick(Le),_!==Ge&&(L(Ge),x)){const Yn=Le.nativeEvent||Le,vo=new Yn.constructor(Yn.type,Yn);Object.defineProperty(vo,"target",{writable:!0,value:{value:Ge,name:E}}),x(vo,te)}m||Te(!1,Le)}},jt=te=>{N||[" ","ArrowUp","ArrowDown","Enter"].indexOf(te.key)!==-1&&(te.preventDefault(),Te(!0,te))},Qt=J!==null&&W,At=te=>{!Qt&&R&&(Object.defineProperty(te,"target",{writable:!0,value:{value:_,name:E}}),R(te))};delete D["aria-invalid"];let $e,sn;const dt=[];let be=!1;(vs({value:_})||b)&&(F?$e=F(_):be=!0);const Ct=Ce.map(te=>{if(!y.isValidElement(te))return null;let Le;if(m){if(!Array.isArray(_))throw new Error(co(2));Le=_.some(Ge=>Jm(Ge,te.props.value)),Le&&be&&dt.push(te.props.children)}else Le=Jm(_,te.props.value),Le&&be&&(sn=te.props.children);return y.cloneElement(te,{"aria-selected":Le?"true":"false",onClick:Lt(te),onKeyUp:Ge=>{Ge.key===" "&&Ge.preventDefault(),te.props.onKeyUp&&te.props.onKeyUp(Ge)},role:"option",selected:Le,value:void 0,"data-value":te.props.value})});be&&(m?dt.length===0?$e=null:$e=dt.reduce((te,Le,Ge)=>(te.push(Le),Ge{const{classes:t}=e;return t},gp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>qt(e)&&e!=="variant",slot:"Root"},Z$=K(r1,gp)(""),eI=K(f1,gp)(""),tI=K(Zy,gp)(""),p1=y.forwardRef(function(t,n){const r=Se({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=R_,id:f,input:d,inputProps:b,label:g,labelId:v,MenuProps:S,multiple:p=!1,native:h=!1,onClose:m,onOpen:E,open:R,renderValue:x,SelectDisplayProps:k,variant:T="outlined"}=r,M=q(r,Y$),I=h?I$:Q$,N=yi(),F=gi({props:r,muiFormControl:N,states:["variant","error"]}),j=F.variant||T,A=C({},r,{variant:j,classes:a}),B=J$(A),U=q(B,X$),D=d||{standard:w.jsx(Z$,{ownerState:A}),outlined:w.jsx(eI,{label:g,ownerState:A}),filled:w.jsx(tI,{ownerState:A})}[j],_=ot(n,D.ref);return w.jsx(y.Fragment,{children:y.cloneElement(D,C({inputComponent:I,inputProps:C({children:i,error:F.error,IconComponent:c,variant:j,type:void 0,multiple:p},h?{id:f}:{autoWidth:o,defaultOpen:s,displayEmpty:u,labelId:v,MenuProps:S,onClose:m,onOpen:E,open:R,renderValue:x,SelectDisplayProps:C({id:f},k)},b,{classes:b?nn(U,b.classes):U},d?d.props.inputProps:{})},(p&&h||u)&&j==="outlined"?{notched:!0}:{},{ref:_,className:Z(D.props.className,l,B.root)},!d&&{variant:j},M))})});p1.muiName="Select";const h1=p1;function nI(e){return ve("MuiToolbar",e)}ge("MuiToolbar",["root","gutters","regular","dense"]);const rI=["className","component","disableGutters","variant"],oI=e=>{const{classes:t,disableGutters:n,variant:r}=e;return xe({root:["root",!n&&"gutters",r]},nI,t)},iI=K("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>C({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),aI=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular"}=r,s=q(r,rI),u=C({},r,{component:i,disableGutters:a,variant:l}),c=oI(u);return w.jsx(iI,C({as:i,className:Z(c.root,o),ref:n,ownerState:u},s))}),lI=aI;function sI(e){return ve("MuiTextField",e)}ge("MuiTextField",["root"]);const uI=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cI={standard:r1,filled:Zy,outlined:f1},dI=e=>{const{classes:t}=e;return xe({root:["root"]},sI,t)},fI=K(e1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pI=y.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:s="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:b=!1,helperText:g,id:v,InputLabelProps:S,inputProps:p,InputProps:h,inputRef:m,label:E,maxRows:R,minRows:x,multiline:k=!1,name:T,onBlur:M,onChange:I,onFocus:N,placeholder:F,required:j=!1,rows:A,select:B=!1,SelectProps:U,type:D,value:_,variant:L="outlined"}=r,W=q(r,uI),X=C({},r,{autoFocus:i,color:s,disabled:c,error:f,fullWidth:b,multiline:k,required:j,select:B,variant:L}),re=dI(X),he={};L==="outlined"&&(S&&typeof S.shrink<"u"&&(he.notched=S.shrink),he.label=E),B&&((!U||!U.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const J=rp(v),ue=g&&J?`${J}-helper-text`:void 0,V=E&&J?`${J}-label`:void 0,de=cI[L],Ae=w.jsx(de,C({"aria-describedby":ue,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:b,multiline:k,name:T,rows:A,maxRows:R,minRows:x,type:D,value:_,id:J,inputRef:m,onBlur:M,onChange:I,onFocus:N,placeholder:F,inputProps:p},he,h));return w.jsxs(fI,C({className:Z(re.root,l),disabled:c,error:f,fullWidth:b,ref:n,required:j,color:s,variant:L,ownerState:X},W,{children:[E!=null&&E!==""&&w.jsx(o1,C({htmlFor:J,id:V},S,{children:E})),B?w.jsx(h1,C({"aria-describedby":ue,id:J,labelId:V,value:_,input:Ae},U,{children:a})):Ae,g&&w.jsx(DP,C({id:ue},d,{children:g}))]}))}),Zm=pI,hI=Nt(w.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-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),mI=Nt(w.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),vI=Nt(w.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),gI=Nt(w.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"}),"ContentCopy"),yI=Nt(w.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),xI=Nt(w.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),SI=Nt(w.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt"),bI=Nt(w.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed"),xi=Bt.createContext({me:{username:"Not initialized",fame:0,re_spec:0,silver:0,weapon:"Not initialized"},world:{map:"Not in map",dungeon:void 0,isDPSMeterRunning:!1,party:[],list_dungeon:[]},dungeonFilter:[],setWorld:()=>{},initWorld:()=>{},initPlayer:()=>{},updateFame:()=>{},updateReSpec:()=>{},updateSilver:()=>{},updateLocation:()=>{},updateIsDPSMeterRunning:()=>{},updateParty:()=>{},updateDungeon:()=>{}}),wI=({children:e})=>{const[t,n]=y.useState({username:"Not initialized",fame:0,re_spec:0,silver:0,weapon:"Not initialized"}),[r,o]=y.useState({map:"Not in map",dungeon:void 0,isDPSMeterRunning:!1,party:[],list_dungeon:[]}),[i,a]=y.useState(["ALL"]),l=(p,h)=>{n({username:p.username,fame:p.fame,re_spec:p.re_spec,silver:p.silver,weapon:p.weapon}),o({map:h.map,dungeon:h.dungeon,isDPSMeterRunning:h.isDPSMeterRunning,party:[],list_dungeon:[]})},s=p=>{n({username:p.username,fame:p.fame,re_spec:p.re_spec,silver:p.silver,weapon:p.weapon})},u=p=>{n(h=>({...h,fame:h.fame+p}))},c=p=>{n(h=>({...h,re_spec:h.re_spec+p}))},f=(p,h)=>{p==t.username&&n(m=>({...m,silver:m.silver+h}))},d=(p,h)=>o(m=>({...m,map:p,dungeon:h})),b=p=>{o(h=>({...h,isDPSMeterRunning:p}))},g=p=>{o(h=>({...h,party:p}))},v=p=>{o(h=>({...h,list_dungeon:p})),S(p)},S=p=>{let h=new Set;h.add("ALL"),p.forEach(m=>{h.add(m.type)}),a([...h])};return w.jsx(xi.Provider,{value:{me:t,world:r,dungeonFilter:i,setWorld:o,initWorld:l,initPlayer:s,updateFame:u,updateReSpec:c,updateSilver:f,updateLocation:d,updateIsDPSMeterRunning:b,updateParty:g,updateDungeon:v},children:e})},yp=240,ev=e=>({width:yp,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),tv=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(8)} + 1px)`}),CI=K("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:e.spacing(0,1),...e.mixins.toolbar})),EI=K(UR,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({paddingLeft:e.spacing(7),zIndex:e.zIndex.drawer-1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{paddingLeft:0,width:`calc(100% - ${yp}px)`,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})}})),kI=K(wP,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({width:yp,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...t&&{...ev(e),"& .MuiDrawer-paper":ev(e)},...!t&&{...tv(e),"& .MuiDrawer-paper":tv(e)}})),RI=()=>{const e=[{pageName:"DPS Meter",url:"/",icon:w.jsx(bI,{})},{pageName:"Dungeon Tracker",url:"/dungeon-tracker",icon:w.jsx(hI,{})}],t=Bk(),[n,r]=Bt.useState(!1),{me:o,world:i}=y.useContext(xi),a=()=>{r(!0)},l=()=>{r(!1)};return w.jsxs(w.Fragment,{children:[w.jsx(EI,{position:"fixed",open:n,color:"secondary",children:w.jsxs(lI,{style:{display:"flex",gap:"1rem"},children:[w.jsxs(ye,{children:["USERNAME: ",w.jsx("b",{children:o.username})]}),w.jsxs(ye,{children:["CURRENT MAP: ",w.jsx("b",{children:i.map})]}),w.jsxs(ye,{children:["CURRENT DUNGEON:"," ",w.jsx("b",{children:i.dungeon!=null?i.dungeon.name:"not in dungeon"})]})]})}),w.jsxs(kI,{variant:"permanent",open:n,children:[w.jsx(CI,{children:n?w.jsx(Wd,{onClick:l,children:w.jsx(mI,{})}):w.jsx(Wd,{onClick:a,children:w.jsx(vI,{})})}),w.jsx(lP,{}),w.jsx(i1,{children:e.map((s,u)=>w.jsx(OT,{disablePadding:!0,sx:{display:"block"},children:w.jsxs(ST,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},onClick:()=>{t(s.url),l()},children:[w.jsx(FT,{sx:{minWidth:0,mr:n?3:"auto",justifyContent:"center"},children:s.icon}),w.jsx(GT,{primary:s.pageName,sx:{opacity:n?1:0}})]})},u))})]})]})};var m1={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;aw.jsxs("label",{className:ht.stats,children:[w.jsx("input",{type:"checkbox",required:t,disabled:n,checked:r,style:{accentColor:Ga.palette.primary.main},onChange:()=>o(i=>({...i,[e]:!i[e]}))}),w.jsx(_e,{children:e})]});var qr={},xi={},Nn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEventSourceSupported=e.isReactNative=e.ReadyState=e.DEFAULT_HEARTBEAT=e.UNPARSABLE_JSON_OBJECT=e.DEFAULT_RECONNECT_INTERVAL_MS=e.DEFAULT_RECONNECT_LIMIT=e.SOCKET_IO_PING_CODE=e.SOCKET_IO_PATH=e.SOCKET_IO_PING_INTERVAL=e.DEFAULT_EVENT_SOURCE_OPTIONS=e.EMPTY_EVENT_HANDLERS=e.DEFAULT_OPTIONS=void 0;var t=1,n=1e3*t;e.DEFAULT_OPTIONS={},e.EMPTY_EVENT_HANDLERS={},e.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:e.EMPTY_EVENT_HANDLERS},e.SOCKET_IO_PING_INTERVAL=25*n,e.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",e.SOCKET_IO_PING_CODE="2",e.DEFAULT_RECONNECT_LIMIT=20,e.DEFAULT_RECONNECT_INTERVAL_MS=5e3,e.UNPARSABLE_JSON_OBJECT={},e.DEFAULT_HEARTBEAT={message:"ping",timeout:6e4,interval:25e3},function(o){o[o.UNINSTANTIATED=-1]="UNINSTANTIATED",o[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSING=2]="CLOSING",o[o.CLOSED=3]="CLOSED"}(e.ReadyState||(e.ReadyState={}));var r=function(){try{return"EventSource"in globalThis}catch{return!1}};e.isReactNative=typeof navigator<"u"&&navigator.product==="ReactNative",e.isEventSourceSupported=!e.isReactNative&&r()})(Nn);var Mu={},Ou={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetWebSockets=e.sharedWebSockets=void 0,e.sharedWebSockets={};var t=function(n){if(n&&e.sharedWebSockets.hasOwnProperty(n))delete e.sharedWebSockets[n];else for(var r in e.sharedWebSockets)e.sharedWebSockets.hasOwnProperty(r)&&delete e.sharedWebSockets[r]};e.resetWebSockets=t})(Ou);var Nu={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.setUpSocketIOPing=qn.appendQueryParams=qn.parseSocketIOUrl=void 0;var ys=Nn,UI=function(e){if(e){var t=/^https|wss/.test(e),n=e.replace(/^(https?|wss?)(:\/\/)?/,""),r=n.replace(/\/$/,""),o=t?"wss":"ws";return"".concat(o,"://").concat(r).concat(ys.SOCKET_IO_PATH)}else if(e===""){var t=/^https/.test(window.location.protocol),o=t?"wss":"ws",i=window.location.port?":".concat(window.location.port):"";return"".concat(o,"://").concat(window.location.hostname).concat(i).concat(ys.SOCKET_IO_PATH)}return e};qn.parseSocketIOUrl=UI;var WI=function(e,t){t===void 0&&(t={});var n=/\?([\w]+=[\w]+)/,r=n.test(e),o="".concat(Object.entries(t).reduce(function(i,a){var l=a[0],s=a[1];return i+"".concat(l,"=").concat(s,"&")},"").slice(0,-1));return"".concat(e).concat(r?"&":"?").concat(o)};qn.appendQueryParams=WI;var HI=function(e,t){t===void 0&&(t=ys.SOCKET_IO_PING_INTERVAL);var n=function(){return e(ys.SOCKET_IO_PING_CODE)};return window.setInterval(n,t)};qn.setUpSocketIOPing=HI;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.heartbeat=void 0;var _c=Nn;function VI(e,t){var n=t||{},r=n.interval,o=r===void 0?_c.DEFAULT_HEARTBEAT.interval:r,i=n.timeout,a=i===void 0?_c.DEFAULT_HEARTBEAT.timeout:i,l=n.message,s=l===void 0?_c.DEFAULT_HEARTBEAT.message:l,u=!1,c=setInterval(function(){try{typeof s=="function"?e.send(s()):e.send(s)}catch{}},o),f=setInterval(function(){u?u=!1:e.close()},a);return e.addEventListener("close",function(){clearInterval(c),clearInterval(f)}),function(){u=!0}}qa.heartbeat=VI;var Dr={},Lu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetSubscribers=e.removeSubscriber=e.addSubscriber=e.hasSubscribers=e.getSubscribers=void 0;var t={},n=[],r=function(s){return(0,e.hasSubscribers)(s)?Array.from(t[s]):n};e.getSubscribers=r;var o=function(s){var u;return((u=t[s])===null||u===void 0?void 0:u.size)>0};e.hasSubscribers=o;var i=function(s,u){t[s]=t[s]||new Set,t[s].add(u)};e.addSubscriber=i;var a=function(s,u){t[s].delete(u)};e.removeSubscriber=a;var l=function(s){if(s&&t.hasOwnProperty(s))delete t[s];else for(var u in t)t.hasOwnProperty(u)&&delete t[u]};e.resetSubscribers=l})(Lu);Object.defineProperty(Dr,"__esModule",{value:!0});Dr.resetGlobalState=Dr.assertIsWebSocket=void 0;var KI=Ou,GI=Lu;function qI(e,t){if(!t&&!(e instanceof WebSocket))throw new Error("")}Dr.assertIsWebSocket=qI;function QI(e){(0,GI.resetSubscribers)(e),(0,KI.resetWebSockets)(e)}Dr.resetGlobalState=QI;var xs=Ze&&Ze.__assign||function(){return xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&d[d.length-1])&&(S[0]===6||S[0]===2)){u=0;continue}if(S[0]===3&&(!d||S[1]>d[0]&&S[1]0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{},sendMessage:()=>{},lastMessage:null,connectionStatus:""}),IM={retryOnError:!0,shouldReconnect:e=>!0,reconnectAttempts:1/0,reconnectInterval:1e3},MM=({children:e})=>{const t="ws://localhost:8081",{sendMessage:n,lastMessage:r,readyState:o}=$M(t,IM),i=l=>{n(JSON.stringify(l))},a={[qr.ReadyState.CONNECTING]:"Connecting",[qr.ReadyState.OPEN]:"Open",[qr.ReadyState.CLOSING]:"Closing",[qr.ReadyState.CLOSED]:"Closed",[qr.ReadyState.UNINSTANTIATED]:"Uninstantiated"}[o];return w.jsx(zu.Provider,{value:{sendToBE:n,sendMessage:i,lastMessage:r,connectionStatus:a},children:e})},Fn=e=>new Intl.NumberFormat("id").format(e),OM=()=>{const[e,t]=y.useState({Heal:!0,"Heal%":!0,Damage:!0,"Damage%":!0}),[n,r]=y.useState({copyDamage:!1,resetDamage:!1}),o=y.useRef(null),{me:i,world:a}=y.useContext(yi),{sendMessage:l}=y.useContext(zu),s=tv(An.bold,An.dpsRow),u=()=>{let g=0;return a.party.forEach(v=>{v.healing_dealt>g&&(g=v.healing_dealt)}),g},c=g=>tv({[An.dpsNumber]:!0,[An.hidden]:!e[g]}),f=g=>{l({type:"update_is_dps_meter_running",payload:{value:g}})},d=()=>{var g=[];a.party.forEach(v=>{g.push(v.username)}),l({type:"reset_dps_meter",payload:{party_members:g}}),r(v=>({...v,resetDamage:!0})),setTimeout(()=>{r(v=>({...v,resetDamage:!1}))},1e3)},b=()=>{var g="";a.party.map((v,S)=>{g+=`${S+1}.${v.username}: ${~~(v.damage_dealt/1e3)}K (${v.damage_percent}%) `}),navigator.clipboard.writeText(g),r(v=>({...v,copyDamage:!0})),setTimeout(()=>{r(v=>({...v,copyDamage:!1}))},1e3)};return w.jsxs("div",{className:ht.container,children:[w.jsxs("div",{className:ht.snackbar,children:[w.jsx(km,{in:n.copyDamage,children:w.jsx(Lm,{severity:"success",children:"Damage copied to clipboard."})}),w.jsx(km,{in:n.resetDamage,children:w.jsx(Lm,{severity:"success",children:"Damage has been reset."})})]}),w.jsx(_e,{variant:"h1",children:"Damage Meter"}),w.jsxs(_e,{children:["Damage Meter is currently"," ",w.jsx("b",{children:a.isDPSMeterRunning?"recording damage":"paused"})]}),w.jsxs("div",{className:ht.row,children:[w.jsxs("div",{className:ht.options,children:[w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"fame.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(i.fame))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"silver.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(i.silver))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"re_spec.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(i.re_spec))})]})]}),w.jsx(xl,{variant:"contained",startIcon:w.jsx(gI,{}),onClick:()=>b(),children:"Copy Damage"})]}),w.jsxs("div",{className:ht.row,children:[w.jsxs("div",{className:ht.options,children:[w.jsx(nv,{label:"Damage",checked:e.Damage,onclick:t}),w.jsx(nv,{label:"Heal",checked:e.Heal,onclick:t})]}),w.jsx(xl,{variant:"text",startIcon:w.jsx(SI,{}),onClick:()=>d(),children:"Reset Damage Meter"})]}),w.jsxs("div",{className:An.dpsContainer,style:{backgroundColor:Ga.palette.background.default},ref:o,children:[w.jsxs("div",{className:s,children:[w.jsx("div",{className:An.player,children:a.isDPSMeterRunning==!1?w.jsx(xl,{variant:"outlined",startIcon:w.jsx(yI,{}),onClick:()=>f(!0),children:"Record"}):w.jsx(xl,{variant:"outlined",startIcon:w.jsx(xI,{}),onClick:()=>f(!1),children:"Pause"})}),w.jsx(_e,{className:c("Heal"),children:"Heal"}),w.jsx(_e,{className:c("Heal"),children:"Heal%"}),w.jsx(_e,{className:c("Damage"),children:"Damage"}),w.jsx(_e,{className:c("Damage"),sx:{fontWeight:"bold"},children:"Damage%"})]}),a.party.map((g,v)=>{const S=a.party[0],p=g.damage_dealt/S.damage_dealt,h={width:S.damage_dealt>0?`${p*100}%`:"0"},m=g.healing_dealt/u(),E={width:u()>0?`${m*100}%`:"0"};return w.jsxs("div",{style:{width:"100%"},children:[w.jsxs("div",{className:An.dpsRow,children:[w.jsxs(_e,{style:{marginRight:16},children:[v+1,"."]})," ",w.jsx(_e,{className:An.player,children:g.username}),w.jsx("img",{src:g.weapon,width:"48px",height:"48px"}),w.jsx(_e,{className:c("Heal"),children:g.healing_dealt>0&&Fn(g.healing_dealt)}),w.jsx(_e,{className:c("Heal"),children:g.heal_percent>0&&`${Fn(g.heal_percent)}%`}),w.jsx(_e,{className:c("Damage"),children:Fn(g.damage_dealt)}),w.jsxs(_e,{className:c("Damage"),sx:{fontWeight:"bold"},children:[Fn(g.damage_percent),"%"]})]}),w.jsx("div",{className:An.dmgBar,style:h}),w.jsx("div",{className:An.healBar,style:E})]},v)})]})]})},NM="_dungeonContainer_mlu2u_1",LM="_tag_mlu2u_12",lv={dungeonContainer:NM,tag:LM};var yp={},$c={};const jM=lr(C2);var sv;function AM(){return sv||(sv=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jM}($c)),$c}var DM=op;Object.defineProperty(yp,"__esModule",{value:!0});var y1=yp.default=void 0,zM=DM(AM()),uv=w;y1=yp.default=(0,zM.default)([(0,uv.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,uv.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");const FM=({dungeon:e})=>{const{world:t,setWorld:n}=y.useContext(yi),{sendMessage:r}=y.useContext(zu),o=f=>{r({type:"update_dungeon_data",payload:{list_dungeon:f}})},i=()=>{let f=t.list_dungeon;f.forEach((d,b)=>{d.id==e.id&&(f[b].name=l)}),n(d=>({...d,list_dungeon:f})),o(f)},a=()=>{let f=t.list_dungeon;f.forEach((d,b)=>{d.id==e.id&&(f[b].tier=Number(u))}),n(d=>({...d,list_dungeon:f})),o(f)},[l,s]=y.useState(e.name),[u,c]=y.useState(String(e.tier));return w.jsxs("div",{className:lv.dungeonContainer,style:{backgroundColor:Ga.palette.background.paper},children:[w.jsxs("div",{className:ht.row,children:[w.jsx("div",{className:lv.tag,children:w.jsx(_e,{children:e.type})}),w.jsx(_e,{children:e.date_time})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx(Jm,{id:e.id,variant:"standard",sx:{width:`${l.length*1.5}ch`},value:l,onBlur:i,onChange:f=>s(f.target.value)}),w.jsx(_e,{variant:"h2",children:" • Tier"}),w.jsx(Jm,{type:"number",inputMode:"numeric",id:e.id,variant:"standard",sx:{width:"2ch"},value:u,onBlur:a,onChange:f=>c(f.target.value)})]}),w.jsxs("div",{className:ht.options,children:[w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"fame.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(e.fame))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"silver.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(e.silver))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"re_spec.png",width:"24px"}),w.jsx(_e,{children:Fn(Math.round(e.re_spec))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx(y1,{}),e.time_elapsed]})]})]})},BM=()=>{const{world:e,dungeonFilter:t}=y.useContext(yi),[n,r]=y.useState([]),[o,i]=y.useState("ALL"),a=l=>{if(l=="ALL")r(e.list_dungeon);else{let s=e.list_dungeon.filter(u=>u.type==l);r(s)}};return y.useEffect(()=>{a(o)},[e.list_dungeon]),y.useEffect(()=>{a(o)},[o]),w.jsxs("div",{className:ht.container,children:[w.jsx(_e,{variant:"h1",children:"Dungeon Tracker"}),w.jsxs(e1,{fullWidth:!0,children:[w.jsx(o1,{id:"demo-simple-select-label",children:"Filter by Dungeon Type"}),w.jsx(h1,{value:o,label:"Filter by Dungeon Type",onChange:l=>i(l.target.value),children:t.map((l,s)=>w.jsx(C$,{value:l,children:l},s))})]}),n.length>0?n.map(l=>w.jsx(FM,{dungeon:l},l.id)):w.jsx("p",{children:"No dungeon"})]})},UM=()=>w.jsx(MM,{children:w.jsx(wI,{children:w.jsx(KM,{children:w.jsx(VM,{})})})}),WM={width:"100%",padding:"96px 64px 64px 128px",backgroundColor:Ga.palette.background.default,minHeight:"100vh"},HM=()=>w.jsxs(w.Fragment,{children:[w.jsx(RI,{}),w.jsx("div",{style:WM,children:w.jsx(r2,{})})]}),VM=()=>{const e=l2([{path:"/",element:w.jsx(HM,{}),children:[{path:"/",element:w.jsx(OM,{})},{path:"/dungeon-tracker",element:w.jsx(BM,{})}]}]);return w.jsx(v2,{router:e})},KM=({children:e})=>{const{lastMessage:t,sendMessage:n}=y.useContext(zu),{initPlayer:r,initWorld:o,updateFame:i,updateReSpec:a,updateSilver:l,updateLocation:s,updateIsDPSMeterRunning:u,updateParty:c,updateDungeon:f}=y.useContext(yi);return y.useEffect(()=>{if(t!==null){let d=JSON.parse(t.data);d.type=="init_world"?o(d.payload.me,d.payload.world):d.type=="init_character"?r(d.payload):d.type=="update_fame"?i(d.payload.fame_gained):d.type=="update_re_spec"?a(d.payload.re_spec_gained):d.type=="update_silver"?l(d.payload.username,d.payload.silver_gained):d.type=="update_location"?s(d.payload.map,d.payload.dungeon):d.type=="update_dps"?c(d.payload.party_members):d.type=="update_is_dps_meter_running"?u(d.payload.value):d.type=="update_dungeon"&&f(d.payload.list_dungeon)}},[t]),y.useEffect(()=>{n({type:"refresh_dungeon_list",payload:{value:!0}})},[]),w.jsx(w.Fragment,{children:e})};Ic.createRoot(document.getElementById("root")).render(w.jsx(Bt.StrictMode,{children:w.jsx(YE,{theme:Ga,children:w.jsx(UM,{})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;aw.jsxs("label",{className:ht.stats,children:[w.jsx("input",{type:"checkbox",required:t,disabled:n,checked:r,style:{accentColor:fo.palette.primary.main},onChange:()=>o(i=>({...i,[e]:!i[e]}))}),w.jsx(ye,{children:e})]});var qr={},Si={},Ln={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEventSourceSupported=e.isReactNative=e.ReadyState=e.DEFAULT_HEARTBEAT=e.UNPARSABLE_JSON_OBJECT=e.DEFAULT_RECONNECT_INTERVAL_MS=e.DEFAULT_RECONNECT_LIMIT=e.SOCKET_IO_PING_CODE=e.SOCKET_IO_PATH=e.SOCKET_IO_PING_INTERVAL=e.DEFAULT_EVENT_SOURCE_OPTIONS=e.EMPTY_EVENT_HANDLERS=e.DEFAULT_OPTIONS=void 0;var t=1,n=1e3*t;e.DEFAULT_OPTIONS={},e.EMPTY_EVENT_HANDLERS={},e.DEFAULT_EVENT_SOURCE_OPTIONS={withCredentials:!1,events:e.EMPTY_EVENT_HANDLERS},e.SOCKET_IO_PING_INTERVAL=25*n,e.SOCKET_IO_PATH="/socket.io/?EIO=3&transport=websocket",e.SOCKET_IO_PING_CODE="2",e.DEFAULT_RECONNECT_LIMIT=20,e.DEFAULT_RECONNECT_INTERVAL_MS=5e3,e.UNPARSABLE_JSON_OBJECT={},e.DEFAULT_HEARTBEAT={message:"ping",timeout:6e4,interval:25e3},function(o){o[o.UNINSTANTIATED=-1]="UNINSTANTIATED",o[o.CONNECTING=0]="CONNECTING",o[o.OPEN=1]="OPEN",o[o.CLOSING=2]="CLOSING",o[o.CLOSED=3]="CLOSED"}(e.ReadyState||(e.ReadyState={}));var r=function(){try{return"EventSource"in globalThis}catch{return!1}};e.isReactNative=typeof navigator<"u"&&navigator.product==="ReactNative",e.isEventSourceSupported=!e.isReactNative&&r()})(Ln);var Ou={},Nu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetWebSockets=e.sharedWebSockets=void 0,e.sharedWebSockets={};var t=function(n){if(n&&e.sharedWebSockets.hasOwnProperty(n))delete e.sharedWebSockets[n];else for(var r in e.sharedWebSockets)e.sharedWebSockets.hasOwnProperty(r)&&delete e.sharedWebSockets[r]};e.resetWebSockets=t})(Nu);var Lu={},qn={};Object.defineProperty(qn,"__esModule",{value:!0});qn.setUpSocketIOPing=qn.appendQueryParams=qn.parseSocketIOUrl=void 0;var xs=Ln,VI=function(e){if(e){var t=/^https|wss/.test(e),n=e.replace(/^(https?|wss?)(:\/\/)?/,""),r=n.replace(/\/$/,""),o=t?"wss":"ws";return"".concat(o,"://").concat(r).concat(xs.SOCKET_IO_PATH)}else if(e===""){var t=/^https/.test(window.location.protocol),o=t?"wss":"ws",i=window.location.port?":".concat(window.location.port):"";return"".concat(o,"://").concat(window.location.hostname).concat(i).concat(xs.SOCKET_IO_PATH)}return e};qn.parseSocketIOUrl=VI;var KI=function(e,t){t===void 0&&(t={});var n=/\?([\w]+=[\w]+)/,r=n.test(e),o="".concat(Object.entries(t).reduce(function(i,a){var l=a[0],s=a[1];return i+"".concat(l,"=").concat(s,"&")},"").slice(0,-1));return"".concat(e).concat(r?"&":"?").concat(o)};qn.appendQueryParams=KI;var GI=function(e,t){t===void 0&&(t=xs.SOCKET_IO_PING_INTERVAL);var n=function(){return e(xs.SOCKET_IO_PING_CODE)};return window.setInterval(n,t)};qn.setUpSocketIOPing=GI;var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.heartbeat=void 0;var Pc=Ln;function qI(e,t){var n=t||{},r=n.interval,o=r===void 0?Pc.DEFAULT_HEARTBEAT.interval:r,i=n.timeout,a=i===void 0?Pc.DEFAULT_HEARTBEAT.timeout:i,l=n.message,s=l===void 0?Pc.DEFAULT_HEARTBEAT.message:l,u=!1,c=setInterval(function(){try{typeof s=="function"?e.send(s()):e.send(s)}catch{}},o),f=setInterval(function(){u?u=!1:e.close()},a);return e.addEventListener("close",function(){clearInterval(c),clearInterval(f)}),function(){u=!0}}qa.heartbeat=qI;var Dr={},ju={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resetSubscribers=e.removeSubscriber=e.addSubscriber=e.hasSubscribers=e.getSubscribers=void 0;var t={},n=[],r=function(s){return(0,e.hasSubscribers)(s)?Array.from(t[s]):n};e.getSubscribers=r;var o=function(s){var u;return((u=t[s])===null||u===void 0?void 0:u.size)>0};e.hasSubscribers=o;var i=function(s,u){t[s]=t[s]||new Set,t[s].add(u)};e.addSubscriber=i;var a=function(s,u){t[s].delete(u)};e.removeSubscriber=a;var l=function(s){if(s&&t.hasOwnProperty(s))delete t[s];else for(var u in t)t.hasOwnProperty(u)&&delete t[u]};e.resetSubscribers=l})(ju);Object.defineProperty(Dr,"__esModule",{value:!0});Dr.resetGlobalState=Dr.assertIsWebSocket=void 0;var QI=Nu,YI=ju;function XI(e,t){if(!t&&!(e instanceof WebSocket))throw new Error("")}Dr.assertIsWebSocket=XI;function JI(e){(0,YI.resetSubscribers)(e),(0,QI.resetWebSockets)(e)}Dr.resetGlobalState=JI;var Ss=Ze&&Ze.__assign||function(){return Ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&d[d.length-1])&&(S[0]===6||S[0]===2)){u=0;continue}if(S[0]===3&&(!d||S[1]>d[0]&&S[1]0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{},sendMessage:()=>{},lastMessage:null,connectionStatus:""}),NM={retryOnError:!0,shouldReconnect:e=>!0,reconnectAttempts:1/0,reconnectInterval:1e3},LM=({children:e})=>{const t="ws://localhost:8081",{sendMessage:n,lastMessage:r,readyState:o}=OM(t,NM),i=l=>{n(JSON.stringify(l))},a={[qr.ReadyState.CONNECTING]:"Connecting",[qr.ReadyState.OPEN]:"Open",[qr.ReadyState.CLOSING]:"Closing",[qr.ReadyState.CLOSED]:"Closed",[qr.ReadyState.UNINSTANTIATED]:"Uninstantiated"}[o];return w.jsx(Fu.Provider,{value:{sendToBE:n,sendMessage:i,lastMessage:r,connectionStatus:a},children:e})},Fn=e=>new Intl.NumberFormat("id").format(e),jM=()=>{const[e,t]=y.useState({Heal:!1,Damage:!0}),[n,r]=y.useState({copyDamage:!1,resetDamage:!1}),o=y.useRef(null),{me:i,world:a}=y.useContext(xi),{sendMessage:l}=y.useContext(Fu),s=nv(cn.bold,cn.dpsRow,ys.stickToTop),u=()=>{let g=0;return a.party.forEach(v=>{v.healing_dealt>g&&(g=v.healing_dealt)}),g},c=g=>nv(cn.dpsNumber,{[cn.hidden]:!e[g]}),f=g=>{l({type:"update_is_dps_meter_running",payload:{value:g}})},d=()=>{var g=[];a.party.forEach(v=>{g.push(v.username)}),l({type:"reset_dps_meter",payload:{party_members:g}}),r(v=>({...v,resetDamage:!0})),setTimeout(()=>{r(v=>({...v,resetDamage:!1}))},1e3)},b=()=>{var g="";a.party.map((v,S)=>{g+=`${S+1}.${v.username}: ${~~(v.damage_dealt/1e3)}K (${v.damage_percent}%) `}),navigator.clipboard.writeText(g),r(v=>({...v,copyDamage:!0})),setTimeout(()=>{r(v=>({...v,copyDamage:!1}))},1e3)};return w.jsxs("div",{className:ht.container,children:[w.jsxs("div",{className:ht.snackbar,children:[w.jsx(Rm,{in:n.copyDamage,children:w.jsx(jm,{severity:"success",children:"Damage copied to clipboard."})}),w.jsx(Rm,{in:n.resetDamage,children:w.jsx(jm,{severity:"success",children:"Damage has been reset."})})]}),w.jsx(ye,{variant:"h2",children:"Damage Meter"}),w.jsxs(ye,{children:["Damage Meter is currently"," ",w.jsx("b",{children:a.isDPSMeterRunning?"recording damage":"paused"})]}),w.jsxs("div",{className:ht.row,children:[w.jsxs("div",{className:ht.options,children:[w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"fame.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(i.fame))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"silver.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(i.silver))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"re_spec.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(i.re_spec))})]})]}),w.jsx(xl,{variant:"contained",startIcon:w.jsx(gI,{}),onClick:()=>b(),children:"Copy Damage"})]}),w.jsxs("div",{className:ht.row,children:[w.jsxs("div",{className:ht.options,children:[w.jsx(rv,{label:"Damage",checked:e.Damage,onclick:t}),w.jsx(rv,{label:"Heal",checked:e.Heal,onclick:t})]}),w.jsx(xl,{variant:"text",startIcon:w.jsx(SI,{}),onClick:()=>d(),children:"Reset Damage Meter"})]}),w.jsxs("div",{className:cn.dpsContainer,style:{backgroundColor:fo.palette.background.default},ref:o,children:[w.jsxs("div",{className:s,style:{backgroundColor:fo.palette.background.default},children:[w.jsx("div",{className:cn.player,children:a.isDPSMeterRunning==!1?w.jsx(xl,{variant:"outlined",startIcon:w.jsx(yI,{}),onClick:()=>f(!0),children:"Record"}):w.jsx(xl,{variant:"outlined",startIcon:w.jsx(xI,{}),onClick:()=>f(!1),children:"Pause"})}),w.jsx(ye,{className:c("Heal"),children:"Heal"}),w.jsx(ye,{className:c("Heal"),children:"Heal%"}),w.jsx(ye,{className:c("Damage"),children:"Damage"}),w.jsx(ye,{className:c("Damage"),children:"Damage%"}),w.jsx(ye,{className:cn.dpsNumber,children:"Duration"}),w.jsx(ye,{className:c("Damage"),sx:{fontWeight:"bold"},children:"DPS"})]}),a.party.map((g,v)=>{const S=a.party[0],p=g.damage_dealt/S.damage_dealt,h={width:S.damage_dealt>0?`${p*100}%`:"0"},m=g.healing_dealt/u(),E={width:u()>0?`${m*100}%`:"0"};return w.jsxs("div",{style:{width:"100%"},children:[w.jsxs("div",{className:cn.dpsRow,children:[w.jsxs(ye,{style:{marginRight:16},children:[v+1,"."]})," ",w.jsx(ye,{className:cn.player,children:g.username}),w.jsx("img",{src:g.weapon,width:"48px",height:"48px"}),w.jsx(ye,{className:c("Heal"),children:g.healing_dealt>0&&Fn(g.healing_dealt)}),w.jsx(ye,{className:c("Heal"),children:g.heal_percent>0&&`${Fn(g.heal_percent)}%`}),w.jsx(ye,{className:c("Damage"),children:Fn(g.damage_dealt)}),w.jsxs(ye,{className:c("Damage"),children:[Fn(g.damage_percent),"%"]}),w.jsx(ye,{className:cn.dpsNumber,children:g.combat_duration}),w.jsxs(ye,{className:c("Damage"),sx:{fontWeight:"bold"},children:[g.dps,"/dps"]})]}),w.jsx("div",{className:cn.dmgBar,style:h}),w.jsx("div",{className:cn.healBar,style:E})]},v)})]})]})};var xp={},Ic={};const AM=lr(C2);var sv;function DM(){return sv||(sv=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}(Ic)),Ic}var zM=ip;Object.defineProperty(xp,"__esModule",{value:!0});var y1=xp.default=void 0,FM=zM(DM()),uv=w;y1=xp.default=(0,FM.default)([(0,uv.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,uv.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");const BM=({dungeon:e})=>{const{world:t,setWorld:n}=y.useContext(xi),{sendMessage:r}=y.useContext(Fu),o=f=>{r({type:"update_dungeon_data",payload:{list_dungeon:f}})},i=()=>{let f=t.list_dungeon;f.forEach((d,b)=>{d.id==e.id&&(f[b].name=l)}),n(d=>({...d,list_dungeon:f})),o(f)},a=()=>{let f=t.list_dungeon;f.forEach((d,b)=>{d.id==e.id&&(f[b].tier=Number(u))}),n(d=>({...d,list_dungeon:f})),o(f)},[l,s]=y.useState(e.name),[u,c]=y.useState(String(e.tier));return w.jsxs("div",{className:ys.dungeonContainer,style:{backgroundColor:fo.palette.background.paper},children:[w.jsxs("div",{className:ht.row,children:[w.jsx("div",{className:ys.tag,children:w.jsx(ye,{children:e.type})}),w.jsx(ye,{children:e.date_time})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx(Zm,{id:e.id,variant:"standard",sx:{width:`${l.length*1.5}ch`},value:l,onBlur:i,onChange:f=>s(f.target.value)}),w.jsx(ye,{variant:"h2",children:" • Tier"}),w.jsx(Zm,{type:"number",inputMode:"numeric",id:e.id,variant:"standard",sx:{width:"2ch"},value:u,onBlur:a,onChange:f=>c(f.target.value)})]}),w.jsxs("div",{className:ht.options,children:[w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"fame.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(e.fame))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"silver.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(e.silver))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx("img",{src:"re_spec.png",width:"24px"}),w.jsx(ye,{children:Fn(Math.round(e.re_spec))})]}),w.jsxs("div",{className:ht.stats,children:[w.jsx(y1,{}),e.time_elapsed]})]})]})},UM=()=>{const{world:e,dungeonFilter:t}=y.useContext(xi),[n,r]=y.useState([]),[o,i]=y.useState("ALL"),a=l=>{if(l=="ALL")r(e.list_dungeon);else{let s=e.list_dungeon.filter(u=>u.type==l);r(s)}};return y.useEffect(()=>{a(o)},[e.list_dungeon]),y.useEffect(()=>{a(o)},[o]),w.jsxs("div",{className:ht.container,children:[w.jsx(ye,{variant:"h2",children:"Dungeon Tracker"}),w.jsx("div",{className:ys.stickToTop,style:{backgroundColor:fo.palette.background.default},children:w.jsxs(e1,{fullWidth:!0,children:[w.jsx(o1,{id:"demo-simple-select-label",children:"Filter by Dungeon Type"}),w.jsx(h1,{value:o,label:"Filter by Dungeon Type",onChange:l=>i(l.target.value),children:t.map((l,s)=>w.jsx(C$,{value:l,children:l},s))})]})}),n.length>0?n.map(l=>w.jsx(BM,{dungeon:l},l.id)):w.jsx("p",{children:"No dungeon"})]})},WM=()=>w.jsx(LM,{children:w.jsx(wI,{children:w.jsx(GM,{children:w.jsx(KM,{})})})}),HM={width:"100%",padding:"96px 64px 64px 128px",backgroundColor:fo.palette.background.default,minHeight:"100vh"},VM=()=>w.jsxs(w.Fragment,{children:[w.jsx(RI,{}),w.jsx("div",{style:HM,children:w.jsx(r2,{})})]}),KM=()=>{const e=l2([{path:"/",element:w.jsx(VM,{}),children:[{path:"/",element:w.jsx(jM,{})},{path:"/dungeon-tracker",element:w.jsx(UM,{})}]}]);return w.jsx(v2,{router:e})},GM=({children:e})=>{const{lastMessage:t,sendMessage:n}=y.useContext(Fu),{initPlayer:r,initWorld:o,updateFame:i,updateReSpec:a,updateSilver:l,updateLocation:s,updateIsDPSMeterRunning:u,updateParty:c,updateDungeon:f}=y.useContext(xi);return y.useEffect(()=>{if(t!==null){let d=JSON.parse(t.data);d.type=="init_world"?o(d.payload.me,d.payload.world):d.type=="init_character"?r(d.payload):d.type=="update_fame"?i(d.payload.fame_gained):d.type=="update_re_spec"?a(d.payload.re_spec_gained):d.type=="update_silver"?l(d.payload.username,d.payload.silver_gained):d.type=="update_location"?s(d.payload.map,d.payload.dungeon):d.type=="update_dps"?c(d.payload.party_members):d.type=="update_is_dps_meter_running"?u(d.payload.value):d.type=="update_dungeon"&&f(d.payload.list_dungeon)}},[t]),y.useEffect(()=>{n({type:"refresh_dungeon_list",payload:{value:!0}})},[]),w.jsx(w.Fragment,{children:e})};Mc.createRoot(document.getElementById("root")).render(w.jsx(Bt.StrictMode,{children:w.jsx(YE,{theme:fo,children:w.jsx(WM,{})})})); diff --git a/src/albibong/gui_dist/index.html b/src/albibong/gui_dist/index.html index b92aba5..de5d9a7 100644 --- a/src/albibong/gui_dist/index.html +++ b/src/albibong/gui_dist/index.html @@ -5,8 +5,8 @@ Albibong - Albion Data Tracker - - + +
diff --git a/src/albibong/threads/websocket_server.py b/src/albibong/threads/websocket_server.py index dac1cf7..f75adb8 100644 --- a/src/albibong/threads/websocket_server.py +++ b/src/albibong/threads/websocket_server.py @@ -1,4 +1,5 @@ import asyncio +from datetime import timedelta import json import os import queue @@ -89,6 +90,7 @@ async def handler(self, websocket): char = world_data.characters[member] char.damage_dealt = 0 char.healing_dealt = 0 + char.total_combat_duration = timedelta(0, 0) reply = { "type": "update_dps", "payload": {